diff --git a/assets/index-64749b9d.js b/assets/index-581dcab4.js similarity index 97% rename from assets/index-64749b9d.js rename to assets/index-581dcab4.js index c7fc3e6..b9f8e30 100644 --- a/assets/index-64749b9d.js +++ b/assets/index-581dcab4.js @@ -992,7 +992,7 @@ void main() { const events = $.__internal__?.events; const parent = $.__internal__?.parent; return ${ne}; - `);return ce=>oe(new Proxy(normalize$1(ce),{get(ue,pe){return typeof(ue==null?void 0:ue[pe])=="function"?ue[pe]({}):ue==null?void 0:ue[pe]}}))},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(ne=>{const oe=parser$2(ne);return lodashExports$1.join(oe.literals,"")?ce=>distExports.evaluateParsedString(oe,{},{},ue=>parseToken$1(ue)(ce)):parseToken$1(oe.variables[0].name)},{primitive:!0});function parseProperty$1(ne){switch(ne==null?void 0:ne.constructor){case Array:{const oe=lodashExports$1.map(ne,parseProperty$1);return ce=>lodashExports$1.map(oe,ue=>ue(ce))}case Object:{const oe=lodashExports$1.mapValues(ne,parseProperty$1);return ce=>lodashExports$1.mapValues(oe,ue=>ue(ce))}case String:return parseString$1(ne);default:return()=>ne}}function commonjsRequire(ne){throw new Error('Could not dynamically require "'+ne+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pluralize$1={exports:{}};(function(ne,oe){(function(ce,ue){typeof commonjsRequire=="function"?ne.exports=ue():ce.pluralize=ue()})(commonjsGlobal,function(){var ce=[],ue=[],pe={},me={},ge={};function ye(Ie){return typeof Ie=="string"?new RegExp("^"+Ie+"$","i"):Ie}function ve(Ie,ke){return Ie===ke?ke:Ie===Ie.toLowerCase()?ke.toLowerCase():Ie===Ie.toUpperCase()?ke.toUpperCase():Ie[0]===Ie[0].toUpperCase()?ke.charAt(0).toUpperCase()+ke.substr(1).toLowerCase():ke.toLowerCase()}function xe(Ie,ke){return Ie.replace(/\$(\d{1,2})/g,function(Be,Ne){return ke[Ne]||""})}function _e(Ie,ke){return Ie.replace(ke[0],function(Be,Ne){var Fe=xe(ke[1],arguments);return ve(Be===""?Ie[Ne-1]:Be,Fe)})}function Se(Ie,ke,Be){if(!Ie.length||pe.hasOwnProperty(Ie))return ke;for(var Ne=Be.length;Ne--;){var Fe=Be[Ne];if(Fe[0].test(ke))return _e(ke,Fe)}return ke}function $e(Ie,ke,Be){return function(Ne){var Fe=Ne.toLowerCase();return ke.hasOwnProperty(Fe)?ve(Ne,Fe):Ie.hasOwnProperty(Fe)?ve(Ne,Ie[Fe]):Se(Fe,Ne,Be)}}function Re(Ie,ke,Be,Ne){return function(Fe){var Ue=Fe.toLowerCase();return ke.hasOwnProperty(Ue)?!0:Ie.hasOwnProperty(Ue)?!1:Se(Ue,Ue,Be)===Ue}}function Ae(Ie,ke,Be){var Ne=ke===1?Ae.singular(Ie):Ae.plural(Ie);return(Be?ke+" ":"")+Ne}return Ae.plural=$e(ge,me,ce),Ae.isPlural=Re(ge,me,ce),Ae.singular=$e(me,ge,ue),Ae.isSingular=Re(me,ge,ue),Ae.addPluralRule=function(Ie,ke){ce.push([ye(Ie),ke])},Ae.addSingularRule=function(Ie,ke){ue.push([ye(Ie),ke])},Ae.addUncountableRule=function(Ie){if(typeof Ie=="string"){pe[Ie.toLowerCase()]=!0;return}Ae.addPluralRule(Ie,"$0"),Ae.addSingularRule(Ie,"$0")},Ae.addIrregularRule=function(Ie,ke){ke=ke.toLowerCase(),Ie=Ie.toLowerCase(),ge[Ie]=ke,me[ke]=Ie},[["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(Ie){return Ae.addIrregularRule(Ie[0],Ie[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(Ie){return Ae.addPluralRule(Ie[0],Ie[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(Ie){return Ae.addSingularRule(Ie[0],Ie[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(Ae.addUncountableRule),Ae})})(pluralize$1);var pluralizeExports=pluralize$1.exports;const pluralize=getDefaultExportFromCjs(pluralizeExports),parseTraceWorkerLegacyUrl=""+new URL("parseTrace.worker-d91f3db3.js",import.meta.url).href,parseTraceWorkerUrl=""+new URL("parseTrace.worker-84f6a0d9.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(ne,oe){const ce=useSnackbar(),ue=useLoadingState("specimen");return reactExports.useMemo(()=>{if(ne.trace)return()=>ue(async()=>{var pe,me;ce("Processing trace...");try{const ge=((pe=ne.trace)==null?void 0:pe.version)==="1.4.0"?await parseTraceAsync(ne):await parseTraceLegacyAsync(ne);return ce("Trace loaded",pluralize("step",((me=ge==null?void 0:ge.stepsPersistent)==null?void 0:me.length)??0,!0)),{components:ge,content:ne.trace}}catch(ge){return console.error(ge),ce("Error parsing",lodashExports$1.get(ge,"message")),{error:lodashExports$1.get(ge,"message")}}})},oe)}function mapProperties(ne={},oe){const ce={};for(const ue of Object.keys(ne))ce[ue]=ue==="$"?ne[ue]:oe(ne[ue],ue,ne);return Object.setPrototypeOf(ce,ne)}function normalize(ne={}){return mapProperties(ne,oe=>lodashExports$1.isFunction(oe)?oe:parseProperty(oe))}const parseToken=ne=>{const oe=Function("$",`return ${ne};`);return ce=>oe(new Proxy(normalize(ce),{get(ue,pe){return typeof(ue==null?void 0:ue[pe])=="function"?ue[pe]({}):ue==null?void 0:ue[pe]}}))},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(ne=>{const oe=parser$1(ne);return lodashExports$1.join(oe.literals,"")?ce=>distExports.evaluateParsedString(oe,{},{},ue=>parseToken(ue)(ce)):parseToken(oe.variables[0].name)},{primitive:!0});function parseProperty(ne){switch(ne==null?void 0:ne.constructor){case Array:{const oe=lodashExports$1.map(ne,parseProperty);return ce=>lodashExports$1.map(oe,ue=>ue(ce))}case Object:{const oe=lodashExports$1.mapValues(ne,parseProperty);return ce=>lodashExports$1.mapValues(oe,ue=>ue(ce))}case String:return parseString(ne);default:return()=>ne}}function useTraceContent(ne){const oe=useSnackbar(),ce=useLoadingState("specimen"),ue=useConnectionResolver(),[{traces:pe}]=useFeatures(),me=reactExports.useMemo(()=>memoizee$1(async({source:Se,id:$e})=>{if(Se&&$e){const Re=ue({url:Se});if(Re){oe("Fetching trace...");const Ae=await Re.transport().call("features/trace",{id:$e});return console.log(Ae==null?void 0:Ae.content),Ae==null?void 0:Ae.content}}},{normalizer:JSON.stringify}),[ue,oe]),{content:ge,source:ye,id:ve,key:xe}=ne??{},{lastModified:_e}=lodashExports$1.find(pe,{id:ve,source:ye})??{};return useAsync(()=>ce(async()=>{if(ve){if(ge)return{...ne,content:ge};{const Se=await me({source:ye,id:ve,lastModified:_e});return{...ne,content:Se}}}}),[me,!!ge,xe,ye,ve,_e])}const labelScale=1.25,reuseCanvas={canvas:document.createElement("canvas")};function getTextWidth(ne,oe){const ue=(reuseCanvas.canvas||(reuseCanvas.canvas=document.createElement("canvas"))).getContext("2d");return ue.font=oe,ue.measureText(ne).width}const isNullish=ne=>ne==null;function makePathIndex(ne){const oe=[],ce={},ue={},pe=lodashExports$1.chain(ne==null?void 0:ne.events).map((ye,ve)=>({step:ve,id:ye.id,pId:ye.pId})).groupBy("id").value();lodashExports$1.forEach(ne==null?void 0:ne.events,({id:ye,pId:ve},xe)=>{!isNullish(ve)&&ce[ye]!==ve&&(oe.push({id:ye,pId:ve,step:xe,prev:lodashExports$1.last(oe)}),ce[ye]=ve),ue[xe]=lodashExports$1.last(oe)});const me=(ye,ve=(xe=>(xe=ne==null?void 0:ne.events)==null?void 0:xe.length)()??0)=>{let _e=ue[ve];for(;_e;){if(_e.id===ye)return _e.pId;_e=_e.prev}};return{getParent:me,getPath:ye=>{const ve=[ye];let xe={...(ne.events??[])[ye],step:ye};for(;xe;){const _e=me(xe.id,xe.step);if(_e){const Se=lodashExports$1.findLast(pe[_e],$e=>$e.step<=xe.step);if(Se)ve.push(Se.step),xe=Se;else break}else break}return ve}}}const controller$1={key:"trace",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),inferName:ne=>{var oe,ce;return((ce=(oe=ne.source)==null?void 0:oe.trace)==null?void 0:ce.name)??"Untitled Trace"},error:ne=>{var oe,ce,ue,pe;return((ce=(oe=ne==null?void 0:ne.source)==null?void 0:oe.trace)==null?void 0:ce.error)||((pe=(ue=ne==null?void 0:ne.source)==null?void 0:ue.parsedTrace)==null?void 0:pe.error)},compress:ne=>lodashExports$1.pick(ne,["trace","onion","step","code","breakpoints"]),claimImportedFile:async ne=>isTraceFormat(ne)?{claimed:!0,layer:async oe=>{oe("Opening trace...");try{return{trace:await readUploadedTrace(ne).read()}}catch(ce){return console.error(ce),oe(`Error opening, ${lodashExports$1.get(ce,"message")}`),{trace:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(ce,"message"),name:lodashExports$1.startCase(name$2(ne.name))}}}}}:{claimed:!1},editor:withProduce(({value:ne,produce:oe})=>{var ce,ue,pe,me,ge,ye,ve,xe,_e,Se,$e;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Trace",content:jsxRuntimeExports.jsx(TracePicker,{onChange:Re=>oe(Ae=>lodashExports$1.set(Ae,"source.trace",Re)),value:(ce=ne==null?void 0:ne.source)==null?void 0:ce.trace})}),((pe=(ue=ne==null?void 0:ne.source)==null?void 0:ue.trace)==null?void 0:pe.error)&&jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"body2",color:Re=>Re.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(ge=(me=ne==null?void 0:ne.source)==null?void 0:me.trace)==null?void 0:ge.error})}),((ve=(ye=ne==null?void 0:ne.source)==null?void 0:ye.parsedTrace)==null?void 0:ve.error)&&jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"body2",color:Re=>Re.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(_e=(xe=ne==null?void 0:ne.source)==null?void 0:xe.parsedTrace)==null?void 0:_e.error})}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:($e=(Se=ne==null?void 0:ne.source)==null?void 0:Se.parsedTrace)==null?void 0:$e.content})})]})}),service:withProduce(({value:ne,produce:oe})=>{var ge;const{palette:ce}=useTheme$1(),{result:ue,loading:pe}=useTraceContent((ge=ne==null?void 0:ne.source)==null?void 0:ge.trace);reactExports.useEffect(()=>{oe(ye=>{var ve,xe;return lodashExports$1.set(ye,"source.playbackTo",((xe=(ve=ue==null?void 0:ue.content)==null?void 0:ve.events)==null?void 0:xe.length)??0)})},[ue==null?void 0:ue.key]);const me=useTraceParser({trace:ue==null?void 0:ue.content,context:{theme:{foreground:ce.text.primary,background:ce.background.paper,accent:ce.primary.main},color:{...colorsHex,...lodashExports$1.mapValues(accentColors,(ye,ve)=>getShade(ve,ce.mode,500,400))},themeAccent:ce.primary.main,themeTextPrimary:ce.text.primary,themeBackground:ce.background.paper},view:"main"},[ue==null?void 0:ue.key,ce.mode]);return useAsync$1(async()=>{if(me&&!pe){const ye=await me();oe(ve=>{lodashExports$1.set(ve,"source.parsedTrace",ye),lodashExports$1.set(ve,"viewKey",nanoid$1())})}},[pe,me]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(PlaybackService,{value:ne})})}),renderer:({layer:ne,index:oe})=>{var ve,xe,_e;const ce=(xe=(ve=ne==null?void 0:ne.source)==null?void 0:ve.parsedTrace)==null?void 0:xe.components,ue=useThrottle$1(((_e=ne==null?void 0:ne.source)==null?void 0:_e.step)??0,1e3/60),pe=use2DPath(ne,oe,ue),me=reactExports.useMemo(()=>lodashExports$1.map(ce==null?void 0:ce.stepsPersistent,Se=>lodashExports$1.map(Se,$e=>lodashExports$1.merge($e,{meta:{sourceLayer:ne==null?void 0:ne.key,sourceLayerIndex:oe,sourceLayerAlpha:1-.01*+((ne==null?void 0:ne.transparency)??0),sourceLayerDisplayMode:(ne==null?void 0:ne.displayMode)??"source-over"}}))),[ce==null?void 0:ce.stepsPersistent,ne==null?void 0:ne.key,ne==null?void 0:ne.transparency,ne==null?void 0:ne.displayMode,oe]),ge=reactExports.useMemo(()=>lodashExports$1.map(ce==null?void 0:ce.stepsTransient,Se=>lodashExports$1.map(Se,$e=>lodashExports$1.merge($e,{meta:{sourceLayer:ne==null?void 0:ne.key,sourceLayerIndex:oe,sourceLayerAlpha:1-.01*+((ne==null?void 0:ne.transparency)??0),sourceLayerDisplayMode:(ne==null?void 0:ne.displayMode)??"source-over"}}))),[ce==null?void 0:ce.stepsTransient,ne==null?void 0:ne.key,ne==null?void 0:ne.transparency,ne==null?void 0:ne.displayMode,oe]),ye=reactExports.useMemo(()=>[ge[ue]??[]],[ge,ue]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyNodeList,{end:ue,nodes:me}),jsxRuntimeExports.jsx(NodeList,{nodes:ye}),pe]})},steps:ne=>{var oe,ce,ue;return((ue=(ce=(oe=ne==null?void 0:ne.source)==null?void 0:oe.parsedTrace)==null?void 0:ce.content)==null?void 0:ue.events)??[]},provideSelectionInfo:({layer:ne,event:oe,children:ce})=>{const{layer:ue,setLayer:pe}=useLayer(ne),me=reactExports.useMemo(()=>{var xe,_e,Se,$e,Re;const ge=((Se=(_e=(xe=ue==null?void 0:ue.source)==null?void 0:xe.parsedTrace)==null?void 0:_e.content)==null?void 0:Se.events)??[],ye=lodashExports$1.chain(($e=oe==null?void 0:oe.info)==null?void 0:$e.components).filter(Ae=>{var Ie;return((Ie=Ae.meta)==null?void 0:Ie.sourceLayer)===(ue==null?void 0:ue.key)}).map(Ae=>{var Ie;return(Ie=Ae.meta)==null?void 0:Ie.step}).filter(lodashExports$1.negate(lodashExports$1.isUndefined)).sort((Ae,Ie)=>Ae-Ie).value(),ve=lodashExports$1.chain((Re=oe==null?void 0:oe.info)==null?void 0:Re.components).filter(Ae=>{var Ie;return((Ie=Ae.meta)==null?void 0:Ie.sourceLayer)===(ue==null?void 0:ue.key)}).filter(Ae=>{var Ie;return(Ie=Ae.meta)==null?void 0:Ie.info}).value();if(ye.length&&ue){const Ae=lodashExports$1.last(ye),Ie=ge[Ae];if(Ie)return{...lodashExports$1.keyBy(lodashExports$1.map(ve,(ke,Be)=>({key:`${ue.key}.${Be}`,primary:`Selection in ${inferLayerName(ue)}`,items:{info:{index:-1,primary:jsxRuntimeExports.jsx(PropertyList,{event:ke.meta.info,vertical:!0})}}})),"key"),[ue.key]:{primary:inferLayerName(ue),items:{properties:{index:-2,primary:jsxRuntimeExports.jsx(PropertyList,{event:Ie,vertical:!0,simple:!0,primitives:!0})},propertiesDetails:{index:-1,extras:jsxRuntimeExports.jsx(PropertyDialog,{event:Ie,trigger:ke=>jsxRuntimeExports.jsxs(MenuItem$1,{onClick:ke,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(DataObjectOutlined,{})}),jsxRuntimeExports.jsx(ListItemText$1,{sx:{mr:4},children:"See properties"}),jsxRuntimeExports.jsxs(Type$2,{component:"div",variant:"body2",color:"text.secondary",children:["Step ",Ae]})]})})},[`${Ie}`]:{primary:`Go to step ${Ae}`,secondary:`${lodashExports$1.startCase(Ie.type)}`,action:()=>pe(produce(ue,ke=>{lodashExports$1.set(ke,"source.step",Ae)})),icon:jsxRuntimeExports.jsx(ArrowOutwardRounded,{})}}}}}return{}},[ue,oe]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ce==null?void 0:ce(me)})},getSources:ne=>{var ce;const oe=(ce=ne==null?void 0:ne.source)==null?void 0:ce.trace;return oe?[{id:"trace",name:`(Source) ${oe.name}`,language:"yaml",content:dump(oe.content,{noCompatMode:!0})}]:[]}},labelSize=.8;function use2DPath(ne,oe=0,ce=0){var ge,ye,ve;const{palette:ue}=useTheme$1(),{getPath:pe}=reactExports.useMemo(()=>{var xe,_e,Se;return((xe=ne==null?void 0:ne.source)==null?void 0:xe.playback)!=="playing"&&((Se=(_e=ne==null?void 0:ne.source)==null?void 0:_e.parsedTrace)!=null&&Se.content)?makePathIndex(ne.source.parsedTrace.content):{getParent:lodashExports$1.constant(void 0),getPath:lodashExports$1.constant([])}},[(ye=(ge=ne==null?void 0:ne.source)==null?void 0:ge.parsedTrace)==null?void 0:ye.content,(ve=ne==null?void 0:ne.source)==null?void 0:ve.playback]);return reactExports.useMemo(()=>{var Se,$e,Re,Ae,Ie,ke,Be,Ne,Fe,Ue,We,qe;const xe=interpolate$1([ue.background.paper,ue.text.primary])(.05),_e=($e=(Se=ne==null?void 0:ne.source)==null?void 0:Se.parsedTrace)==null?void 0:$e.content;if((Re=_e==null?void 0:_e.render)!=null&&Re.path||_e!=null&&_e.pivot){const ze=((Ie=(Ae=_e==null?void 0:_e.render)==null?void 0:Ae.path)==null?void 0:Ie.pivot)??(_e==null?void 0:_e.pivot)??{},Ge=(Be=(ke=_e==null?void 0:_e.render)==null?void 0:ke.path)!=null&&Be.scale?_e.render.path.scale*(1/.3):((Ne=_e==null?void 0:_e.pivot)==null?void 0:Ne.scale)??1,{x:Ze,y:Dt}=ze,Je=(_e==null?void 0:_e.version)==="1.4.0"?parseProperty$1:Zt=>en=>parseProperty(Zt)({event:en}),Ut=Ze?Je(Ze):Zt=>Zt.x,jt=Dt?Je(Dt):Zt=>Zt.y,Ke=lodashExports$1.map(pe(ce),Zt=>{var en;return(en=_e==null?void 0:_e.events)==null?void 0:en[Zt]}),an={x:Ut({x:0,y:0,...lodashExports$1.head(Ke)}),y:jt({x:0,y:0,...lodashExports$1.head(Ke)})};if(Ke.length){const Zt=`${lodashExports$1.startCase((Fe=lodashExports$1.head(Ke))==null?void 0:Fe.type)} ${(Ue=lodashExports$1.head(Ke))==null?void 0:Ue.id}`,en=getTextWidth(Zt,`${labelSize*Ge*labelScale}px Inter`),Kt=[{$:"circle",x:Ut({x:0,y:0,...lodashExports$1.last(Ke)}),y:jt({x:0,y:0,...lodashExports$1.last(Ke)}),fill:ue.primary.main,radius:.3*Ge},{$:"path",points:Ke.map(Wt=>({x:Ut({x:0,y:0,...Wt}),y:jt({x:0,y:0,...Wt})})),fill:ue.primary.main,alpha:1,lineWidth:.3*Ge},{$:"circle",...an,fill:ue.primary.main,radius:.3*Ge},{$:"rect",alpha:.85,fill:xe,x:an.x-.3*Ge*labelScale,y:an.y-2*Ge*labelScale,width:en+(.8+.5)*Ge*labelScale,height:1.4*Ge*labelScale},{$:"path",points:[{x:an.x,y:an.y},{x:an.x+(-.3-.05)*Ge*labelScale,y:an.y+(-2+1.4)*Ge*labelScale}],fill:getColorHex((We=lodashExports$1.head(Ke))==null?void 0:We.type),alpha:1,lineWidth:.1*Ge*labelScale},{$:"rect",x:an.x+(-.3-.1)*Ge*labelScale,y:an.y+-2*Ge*labelScale,fill:getColorHex((qe=lodashExports$1.head(Ke))==null?void 0:qe.type),height:1.4*Ge*labelScale,width:.1*Ge*labelScale},{$:"rect",alpha:0,fill:"rgba(255, 255, 255, 0)",x:an.x-.3*Ge*labelScale,y:an.y-2*Ge*labelScale,width:en*2,height:1*Ge*labelScale,label:Zt,"label-size":labelSize*Ge*labelScale,"label-x":(.1+.5)*Ge*labelScale,"label-y":1*Ge*labelScale,"label-color":ue.text.primary}];return jsxRuntimeExports.jsx(NodeList,{nodes:[lodashExports$1.map(Kt,Wt=>({component:Wt,meta:{source:"path",sourceLayerIndex:-99999+oe}}))]})}}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},[ne,oe,ce,ue,pe])}const mapValuesDeep=(ne,oe)=>lodashExports$1.isArray(ne)?lodashExports$1.map(ne,ce=>mapValuesDeep(ce,oe)):lodashExports$1.isObject(ne)?lodashExports$1.mapValues(ne,ce=>mapValuesDeep(ce,oe)):oe(ne);async function findConnection(ne,oe,ce){for(const ue of ne){const pe=await ue.transport().call("features/algorithms"),me=await ue.transport().call("features/formats");if(lodashExports$1.find(pe,{id:oe})&&lodashExports$1.find(me,{id:ce}))return ue}}const maxStringPropLength=40,controller={...lodashExports$1.omit(controller$1,"claimImportedFile"),key:"query",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),compress:ne=>lodashExports$1.pick(ne,["mapLayerKey","query","start","end","algorithm","onion","step","code","breakpoints"]),editor:withProduce(({value:ne,produce:oe})=>{var xe,_e;const{algorithm:ce}=(ne==null?void 0:ne.source)??{},{layers:ue,allLayers:pe,layer:me,key:ge}=useLayer(void 0,Se=>{var $e;return(($e=Se.source)==null?void 0:$e.type)==="map"}),[{algorithms:ye}]=useFeatures(),[ve]=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:ce,items:ye.map(Se=>{var $e;return{...Se,description:($e=lodashExports$1.find(ve,{url:Se.source}))==null?void 0:$e.name}}),onChange:async Se=>oe($e=>lodashExports$1.set($e,"source.algorithm",Se))})}),!(ye!=null&&ye.length)&&jsxRuntimeExports.jsx(Type$2,{component:"div",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:ge,items:pe.map(Se=>({id:Se.key,hidden:!lodashExports$1.find(ue,$e=>$e.key===Se.key),name:inferLayerName(Se)})),onChange:async Se=>oe($e=>lodashExports$1.set($e,"source.mapLayerKey",Se))})}),me&&jsxRuntimeExports.jsxs(Type$2,{component:"div",variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",inferLayerName(me)]}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(_e=(xe=ne==null?void 0:ne.source)==null?void 0:xe.trace)==null?void 0:_e.content})})]})}),service:withProduce(({value:ne,produce:oe,onChange:ce})=>{var Ae;const ue=controller$1.service,pe=useSnackbar(),{algorithm:me,mapLayerKey:ge,start:ye,end:ve}=(ne==null?void 0:ne.source)??{},[{layers:xe}]=useLayers(),[_e]=useConnections(),[{algorithms:Se}]=useFeatures(),$e=reactExports.useMemo(()=>{if(ge&&me)return lodashExports$1.find(xe,{key:ge})},[ge,me,xe]),{result:Re}=useMapContent((Ae=$e==null?void 0:$e.source)==null?void 0:Ae.map);return useEffectWhenAsync(async Ie=>{var ke;if($e&&Re&&me){const{format:Be}=((ke=$e==null?void 0:$e.source)==null?void 0:ke.map)??{},{content:Ne}=Re??{};if(Be&&Ne){const Fe=await findConnection(_e,me,Be),Ue=lodashExports$1.find(Se,{id:me});if(Fe){pe(`Executing ${inferLayerName(ne)} using ${Fe.name}...`);const We={format:Be,instances:[{start:ye??0,end:ve??0}],mapURI:`map:${encodeURIComponent(Ne)}`,algorithm:me},qe=await Fe.transport().call("solve/pathfinding",We);Ie.aborted?pe("Canceled"):oe(ze=>{lodashExports$1.set(ze,"source.trace",{name:`${Ue==null?void 0:Ue.name}`,content:qe,key:nanoid$1(),id:nanoid$1()}),lodashExports$1.set(ze,"source.query",We)})}}}},[$e,_e,me,ye,ve,oe,pe,ne,Se],[$e,Re,_e,me,ye,ve]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ue,{value:ne,onChange:ce})})}),inferName:ne=>{var oe,ce;return((ce=(oe=ne.source)==null?void 0:oe.trace)==null?void 0:ce.name)??"Untitled Query"},provideSelectionInfo:({children:ne,event:oe,layer:ce})=>{const ue=controller$1.provideSelectionInfo,{layer:pe,setLayer:me,layers:ge}=useLayer(ce),ye=reactExports.useMemo(()=>{const xe=lodashExports$1.filter(ge,{source:{type:"map"}});return lodashExports$1.filter(lodashExports$1.map(xe,_e=>{var $e,Re,Ae,Ie;const{parsedMap:Se}=(_e==null?void 0:_e.source)??{};if(Se&&oe){const ke=(Ie=(Ae=getParser((Re=($e=_e==null?void 0:_e.source)==null?void 0:$e.map)==null?void 0:Re.format))==null?void 0:Ae.hydrate)==null?void 0:Ie.call(Ae,Se);if(ke){const Be=(oe==null?void 0:oe.world)&&ke.snap(oe.world);if(Be){const Ne=(oe==null?void 0:oe.world)&&ke.nodeAt(Be);return{point:Be,node:Ne,key:_e.key,name:inferLayerName(_e)}}}}}))},[ge]),ve=reactExports.useMemo(()=>!!pe&&!!ye.length&&{[pe.key]:{primary:inferLayerName(pe),items:{...lodashExports$1.reduce(ye,(xe,_e)=>({...xe,[`${ce}-${_e==null?void 0:_e.key}-source`]:{primary:"Set as source",secondary:_e==null?void 0:_e.name,action:()=>me(produce(pe,Se=>{lodashExports$1.set(Se,"source.start",_e==null?void 0:_e.node),lodashExports$1.set(Se,"source.query",void 0),lodashExports$1.set(Se,"source.mapLayerKey",_e==null?void 0:_e.key),lodashExports$1.set(Se,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(StartIcon,{sx:{transform:"scale(0.5)"}})},[`${ce}-${_e==null?void 0:_e.key}-destination`]:{primary:"Set as destination",secondary:_e==null?void 0:_e.name,action:()=>me(produce(pe,Se=>{lodashExports$1.set(Se,"source.end",_e==null?void 0:_e.node),lodashExports$1.set(Se,"source.query",void 0),lodashExports$1.set(Se,"source.mapLayerKey",_e==null?void 0:_e.key),lodashExports$1.set(Se,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(DestinationIcon,{})}}),{})}}},[ye,pe,ge,me]);return jsxRuntimeExports.jsx(ue,{event:oe,layer:ce,children:xe=>ne==null?void 0:ne(lodashExports$1.merge(xe,ve))})},getSources:ne=>{const{algorithm:oe=null,start:ce=0,end:ue=0,query:pe}=(ne==null?void 0:ne.source)??{};return[{id:"params",name:"Query",language:"yaml",content:dump({algorithm:oe,instances:[{start:ce,end:ue}],mapURI:"(...)",format:"(...)",...mapValuesDeep(pe,me=>typeof me=="string"&&me.length>maxStringPropLength?`${lodashExports$1.truncate(me,{length:maxStringPropLength})} (${me.length} characters)`:me)},{noCompatMode:!0})},...controller$1.getSources(ne)]}};function getController(ne){var oe;return getControllers()[((oe=ne==null?void 0:ne.source)==null?void 0:oe.type)??""]}const getControllers=lodashExports$1.once(()=>({trace:controller$1,map:controller$2,query:controller}));function inferLayerName(ne){var oe;return ne!=null&&ne.name?ne==null?void 0:ne.name:(oe=ne==null?void 0:ne.source)!=null&&oe.type?getController(ne).inferName(ne):"Untitled Layer"}var shim$5={exports:{}},useSyncExternalStoreShim_production_min={};/** + `);return ce=>oe(new Proxy(normalize$1(ce),{get(ue,pe){return typeof(ue==null?void 0:ue[pe])=="function"?ue[pe]({}):ue==null?void 0:ue[pe]}}))},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(ne=>{const oe=parser$2(ne);return lodashExports$1.join(oe.literals,"")?ce=>distExports.evaluateParsedString(oe,{},{},ue=>parseToken$1(ue)(ce)):parseToken$1(oe.variables[0].name)},{primitive:!0});function parseProperty$1(ne){switch(ne==null?void 0:ne.constructor){case Array:{const oe=lodashExports$1.map(ne,parseProperty$1);return ce=>lodashExports$1.map(oe,ue=>ue(ce))}case Object:{const oe=lodashExports$1.mapValues(ne,parseProperty$1);return ce=>lodashExports$1.mapValues(oe,ue=>ue(ce))}case String:return parseString$1(ne);default:return()=>ne}}function commonjsRequire(ne){throw new Error('Could not dynamically require "'+ne+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pluralize$1={exports:{}};(function(ne,oe){(function(ce,ue){typeof commonjsRequire=="function"?ne.exports=ue():ce.pluralize=ue()})(commonjsGlobal,function(){var ce=[],ue=[],pe={},me={},ge={};function ye(Ie){return typeof Ie=="string"?new RegExp("^"+Ie+"$","i"):Ie}function ve(Ie,ke){return Ie===ke?ke:Ie===Ie.toLowerCase()?ke.toLowerCase():Ie===Ie.toUpperCase()?ke.toUpperCase():Ie[0]===Ie[0].toUpperCase()?ke.charAt(0).toUpperCase()+ke.substr(1).toLowerCase():ke.toLowerCase()}function xe(Ie,ke){return Ie.replace(/\$(\d{1,2})/g,function(Be,Ne){return ke[Ne]||""})}function _e(Ie,ke){return Ie.replace(ke[0],function(Be,Ne){var Fe=xe(ke[1],arguments);return ve(Be===""?Ie[Ne-1]:Be,Fe)})}function Se(Ie,ke,Be){if(!Ie.length||pe.hasOwnProperty(Ie))return ke;for(var Ne=Be.length;Ne--;){var Fe=Be[Ne];if(Fe[0].test(ke))return _e(ke,Fe)}return ke}function $e(Ie,ke,Be){return function(Ne){var Fe=Ne.toLowerCase();return ke.hasOwnProperty(Fe)?ve(Ne,Fe):Ie.hasOwnProperty(Fe)?ve(Ne,Ie[Fe]):Se(Fe,Ne,Be)}}function Re(Ie,ke,Be,Ne){return function(Fe){var Ue=Fe.toLowerCase();return ke.hasOwnProperty(Ue)?!0:Ie.hasOwnProperty(Ue)?!1:Se(Ue,Ue,Be)===Ue}}function Ae(Ie,ke,Be){var Ne=ke===1?Ae.singular(Ie):Ae.plural(Ie);return(Be?ke+" ":"")+Ne}return Ae.plural=$e(ge,me,ce),Ae.isPlural=Re(ge,me,ce),Ae.singular=$e(me,ge,ue),Ae.isSingular=Re(me,ge,ue),Ae.addPluralRule=function(Ie,ke){ce.push([ye(Ie),ke])},Ae.addSingularRule=function(Ie,ke){ue.push([ye(Ie),ke])},Ae.addUncountableRule=function(Ie){if(typeof Ie=="string"){pe[Ie.toLowerCase()]=!0;return}Ae.addPluralRule(Ie,"$0"),Ae.addSingularRule(Ie,"$0")},Ae.addIrregularRule=function(Ie,ke){ke=ke.toLowerCase(),Ie=Ie.toLowerCase(),ge[Ie]=ke,me[ke]=Ie},[["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(Ie){return Ae.addIrregularRule(Ie[0],Ie[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(Ie){return Ae.addPluralRule(Ie[0],Ie[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(Ie){return Ae.addSingularRule(Ie[0],Ie[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(Ae.addUncountableRule),Ae})})(pluralize$1);var pluralizeExports=pluralize$1.exports;const pluralize=getDefaultExportFromCjs(pluralizeExports),parseTraceWorkerLegacyUrl=""+new URL("parseTrace.worker-46466b88.js",import.meta.url).href,parseTraceWorkerUrl=""+new URL("parseTrace.worker-84f6a0d9.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(ne,oe){const ce=useSnackbar(),ue=useLoadingState("specimen");return reactExports.useMemo(()=>{if(ne.trace)return()=>ue(async()=>{var pe,me;ce("Processing trace...");try{const ge=((pe=ne.trace)==null?void 0:pe.version)==="1.4.0"?await parseTraceAsync(ne):await parseTraceLegacyAsync(ne);return ce("Trace loaded",pluralize("step",((me=ge==null?void 0:ge.stepsPersistent)==null?void 0:me.length)??0,!0)),{components:ge,content:ne.trace}}catch(ge){return console.error(ge),ce("Error parsing",lodashExports$1.get(ge,"message")),{error:lodashExports$1.get(ge,"message")}}})},oe)}function mapProperties(ne={},oe){const ce={};for(const ue of Object.keys(ne))ce[ue]=ue==="$"?ne[ue]:oe(ne[ue],ue,ne);return Object.setPrototypeOf(ce,ne)}function normalize(ne={}){return mapProperties(ne,oe=>lodashExports$1.isFunction(oe)?oe:parseProperty(oe))}const parseToken=ne=>{const oe=Function("$",`return ${ne};`);return ce=>oe(new Proxy(normalize(ce),{get(ue,pe){return typeof(ue==null?void 0:ue[pe])=="function"?ue[pe]({}):ue==null?void 0:ue[pe]}}))},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(ne=>{const oe=parser$1(ne);return lodashExports$1.join(oe.literals,"")?ce=>distExports.evaluateParsedString(oe,{},{},ue=>parseToken(ue)(ce)):parseToken(oe.variables[0].name)},{primitive:!0});function parseProperty(ne){switch(ne==null?void 0:ne.constructor){case Array:{const oe=lodashExports$1.map(ne,parseProperty);return ce=>lodashExports$1.map(oe,ue=>ue(ce))}case Object:{const oe=lodashExports$1.mapValues(ne,parseProperty);return ce=>lodashExports$1.mapValues(oe,ue=>ue(ce))}case String:return parseString(ne);default:return()=>ne}}function useTraceContent(ne){const oe=useSnackbar(),ce=useLoadingState("specimen"),ue=useConnectionResolver(),[{traces:pe}]=useFeatures(),me=reactExports.useMemo(()=>memoizee$1(async({source:Se,id:$e})=>{if(Se&&$e){const Re=ue({url:Se});if(Re){oe("Fetching trace...");const Ae=await Re.transport().call("features/trace",{id:$e});return console.log(Ae==null?void 0:Ae.content),Ae==null?void 0:Ae.content}}},{normalizer:JSON.stringify}),[ue,oe]),{content:ge,source:ye,id:ve,key:xe}=ne??{},{lastModified:_e}=lodashExports$1.find(pe,{id:ve,source:ye})??{};return useAsync(()=>ce(async()=>{if(ve){if(ge)return{...ne,content:ge};{const Se=await me({source:ye,id:ve,lastModified:_e});return{...ne,content:Se}}}}),[me,!!ge,xe,ye,ve,_e])}const labelScale=1.25,reuseCanvas={canvas:document.createElement("canvas")};function getTextWidth(ne,oe){const ue=(reuseCanvas.canvas||(reuseCanvas.canvas=document.createElement("canvas"))).getContext("2d");return ue.font=oe,ue.measureText(ne).width}const isNullish=ne=>ne==null;function makePathIndex(ne){const oe=[],ce={},ue={},pe=lodashExports$1.chain(ne==null?void 0:ne.events).map((ye,ve)=>({step:ve,id:ye.id,pId:ye.pId})).groupBy("id").value();lodashExports$1.forEach(ne==null?void 0:ne.events,({id:ye,pId:ve},xe)=>{!isNullish(ve)&&ce[ye]!==ve&&(oe.push({id:ye,pId:ve,step:xe,prev:lodashExports$1.last(oe)}),ce[ye]=ve),ue[xe]=lodashExports$1.last(oe)});const me=(ye,ve=(xe=>(xe=ne==null?void 0:ne.events)==null?void 0:xe.length)()??0)=>{let _e=ue[ve];for(;_e;){if(_e.id===ye)return _e.pId;_e=_e.prev}};return{getParent:me,getPath:ye=>{const ve=[ye];let xe={...(ne.events??[])[ye],step:ye};for(;xe;){const _e=me(xe.id,xe.step);if(_e){const Se=lodashExports$1.findLast(pe[_e],$e=>$e.step<=xe.step);if(Se)ve.push(Se.step),xe=Se;else break}else break}return ve}}}const controller$1={key:"trace",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),inferName:ne=>{var oe,ce;return((ce=(oe=ne.source)==null?void 0:oe.trace)==null?void 0:ce.name)??"Untitled Trace"},error:ne=>{var oe,ce,ue,pe;return((ce=(oe=ne==null?void 0:ne.source)==null?void 0:oe.trace)==null?void 0:ce.error)||((pe=(ue=ne==null?void 0:ne.source)==null?void 0:ue.parsedTrace)==null?void 0:pe.error)},compress:ne=>lodashExports$1.pick(ne,["trace","onion","step","code","breakpoints"]),claimImportedFile:async ne=>isTraceFormat(ne)?{claimed:!0,layer:async oe=>{oe("Opening trace...");try{return{trace:await readUploadedTrace(ne).read()}}catch(ce){return console.error(ce),oe(`Error opening, ${lodashExports$1.get(ce,"message")}`),{trace:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(ce,"message"),name:lodashExports$1.startCase(name$2(ne.name))}}}}}:{claimed:!1},editor:withProduce(({value:ne,produce:oe})=>{var ce,ue,pe,me,ge,ye,ve,xe,_e,Se,$e;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Trace",content:jsxRuntimeExports.jsx(TracePicker,{onChange:Re=>oe(Ae=>lodashExports$1.set(Ae,"source.trace",Re)),value:(ce=ne==null?void 0:ne.source)==null?void 0:ce.trace})}),((pe=(ue=ne==null?void 0:ne.source)==null?void 0:ue.trace)==null?void 0:pe.error)&&jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"body2",color:Re=>Re.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(ge=(me=ne==null?void 0:ne.source)==null?void 0:me.trace)==null?void 0:ge.error})}),((ve=(ye=ne==null?void 0:ne.source)==null?void 0:ye.parsedTrace)==null?void 0:ve.error)&&jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"body2",color:Re=>Re.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(_e=(xe=ne==null?void 0:ne.source)==null?void 0:xe.parsedTrace)==null?void 0:_e.error})}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:($e=(Se=ne==null?void 0:ne.source)==null?void 0:Se.parsedTrace)==null?void 0:$e.content})})]})}),service:withProduce(({value:ne,produce:oe})=>{var ge;const{palette:ce}=useTheme$1(),{result:ue,loading:pe}=useTraceContent((ge=ne==null?void 0:ne.source)==null?void 0:ge.trace);reactExports.useEffect(()=>{oe(ye=>{var ve,xe;return lodashExports$1.set(ye,"source.playbackTo",((xe=(ve=ue==null?void 0:ue.content)==null?void 0:ve.events)==null?void 0:xe.length)??0)})},[ue==null?void 0:ue.key]);const me=useTraceParser({trace:ue==null?void 0:ue.content,context:{theme:{foreground:ce.text.primary,background:ce.background.paper,accent:ce.primary.main},color:{...colorsHex,...lodashExports$1.mapValues(accentColors,(ye,ve)=>getShade(ve,ce.mode,500,400))},themeAccent:ce.primary.main,themeTextPrimary:ce.text.primary,themeBackground:ce.background.paper},view:"main"},[ue==null?void 0:ue.key,ce.mode]);return useAsync$1(async()=>{if(me&&!pe){const ye=await me();oe(ve=>{lodashExports$1.set(ve,"source.parsedTrace",ye),lodashExports$1.set(ve,"viewKey",nanoid$1())})}},[pe,me]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(PlaybackService,{value:ne})})}),renderer:({layer:ne,index:oe})=>{var ve,xe,_e;const ce=(xe=(ve=ne==null?void 0:ne.source)==null?void 0:ve.parsedTrace)==null?void 0:xe.components,ue=useThrottle$1(((_e=ne==null?void 0:ne.source)==null?void 0:_e.step)??0,1e3/60),pe=use2DPath(ne,oe,ue),me=reactExports.useMemo(()=>lodashExports$1.map(ce==null?void 0:ce.stepsPersistent,Se=>lodashExports$1.map(Se,$e=>lodashExports$1.merge($e,{meta:{sourceLayer:ne==null?void 0:ne.key,sourceLayerIndex:oe,sourceLayerAlpha:1-.01*+((ne==null?void 0:ne.transparency)??0),sourceLayerDisplayMode:(ne==null?void 0:ne.displayMode)??"source-over"}}))),[ce==null?void 0:ce.stepsPersistent,ne==null?void 0:ne.key,ne==null?void 0:ne.transparency,ne==null?void 0:ne.displayMode,oe]),ge=reactExports.useMemo(()=>lodashExports$1.map(ce==null?void 0:ce.stepsTransient,Se=>lodashExports$1.map(Se,$e=>lodashExports$1.merge($e,{meta:{sourceLayer:ne==null?void 0:ne.key,sourceLayerIndex:oe,sourceLayerAlpha:1-.01*+((ne==null?void 0:ne.transparency)??0),sourceLayerDisplayMode:(ne==null?void 0:ne.displayMode)??"source-over"}}))),[ce==null?void 0:ce.stepsTransient,ne==null?void 0:ne.key,ne==null?void 0:ne.transparency,ne==null?void 0:ne.displayMode,oe]),ye=reactExports.useMemo(()=>[ge[ue]??[]],[ge,ue]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyNodeList,{end:ue,nodes:me}),jsxRuntimeExports.jsx(NodeList,{nodes:ye}),pe]})},steps:ne=>{var oe,ce,ue;return((ue=(ce=(oe=ne==null?void 0:ne.source)==null?void 0:oe.parsedTrace)==null?void 0:ce.content)==null?void 0:ue.events)??[]},provideSelectionInfo:({layer:ne,event:oe,children:ce})=>{const{layer:ue,setLayer:pe}=useLayer(ne),me=reactExports.useMemo(()=>{var xe,_e,Se,$e,Re;const ge=((Se=(_e=(xe=ue==null?void 0:ue.source)==null?void 0:xe.parsedTrace)==null?void 0:_e.content)==null?void 0:Se.events)??[],ye=lodashExports$1.chain(($e=oe==null?void 0:oe.info)==null?void 0:$e.components).filter(Ae=>{var Ie;return((Ie=Ae.meta)==null?void 0:Ie.sourceLayer)===(ue==null?void 0:ue.key)}).map(Ae=>{var Ie;return(Ie=Ae.meta)==null?void 0:Ie.step}).filter(lodashExports$1.negate(lodashExports$1.isUndefined)).sort((Ae,Ie)=>Ae-Ie).value(),ve=lodashExports$1.chain((Re=oe==null?void 0:oe.info)==null?void 0:Re.components).filter(Ae=>{var Ie;return((Ie=Ae.meta)==null?void 0:Ie.sourceLayer)===(ue==null?void 0:ue.key)}).filter(Ae=>{var Ie;return(Ie=Ae.meta)==null?void 0:Ie.info}).value();if(ye.length&&ue){const Ae=lodashExports$1.last(ye),Ie=ge[Ae];if(Ie)return{...lodashExports$1.keyBy(lodashExports$1.map(ve,(ke,Be)=>({key:`${ue.key}.${Be}`,primary:`Selection in ${inferLayerName(ue)}`,items:{info:{index:-1,primary:jsxRuntimeExports.jsx(PropertyList,{event:ke.meta.info,vertical:!0})}}})),"key"),[ue.key]:{primary:inferLayerName(ue),items:{properties:{index:-2,primary:jsxRuntimeExports.jsx(PropertyList,{event:Ie,vertical:!0,simple:!0,primitives:!0})},propertiesDetails:{index:-1,extras:jsxRuntimeExports.jsx(PropertyDialog,{event:Ie,trigger:ke=>jsxRuntimeExports.jsxs(MenuItem$1,{onClick:ke,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(DataObjectOutlined,{})}),jsxRuntimeExports.jsx(ListItemText$1,{sx:{mr:4},children:"See properties"}),jsxRuntimeExports.jsxs(Type$2,{component:"div",variant:"body2",color:"text.secondary",children:["Step ",Ae]})]})})},[`${Ie}`]:{primary:`Go to step ${Ae}`,secondary:`${lodashExports$1.startCase(Ie.type)}`,action:()=>pe(produce(ue,ke=>{lodashExports$1.set(ke,"source.step",Ae)})),icon:jsxRuntimeExports.jsx(ArrowOutwardRounded,{})}}}}}return{}},[ue,oe]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ce==null?void 0:ce(me)})},getSources:ne=>{var ce;const oe=(ce=ne==null?void 0:ne.source)==null?void 0:ce.trace;return oe?[{id:"trace",name:`(Source) ${oe.name}`,language:"yaml",content:dump(oe.content,{noCompatMode:!0})}]:[]}},labelSize=.8;function use2DPath(ne,oe=0,ce=0){var ge,ye,ve;const{palette:ue}=useTheme$1(),{getPath:pe}=reactExports.useMemo(()=>{var xe,_e,Se;return((xe=ne==null?void 0:ne.source)==null?void 0:xe.playback)!=="playing"&&((Se=(_e=ne==null?void 0:ne.source)==null?void 0:_e.parsedTrace)!=null&&Se.content)?makePathIndex(ne.source.parsedTrace.content):{getParent:lodashExports$1.constant(void 0),getPath:lodashExports$1.constant([])}},[(ye=(ge=ne==null?void 0:ne.source)==null?void 0:ge.parsedTrace)==null?void 0:ye.content,(ve=ne==null?void 0:ne.source)==null?void 0:ve.playback]);return reactExports.useMemo(()=>{var Se,$e,Re,Ae,Ie,ke,Be,Ne,Fe,Ue,We,qe;const xe=interpolate$1([ue.background.paper,ue.text.primary])(.05),_e=($e=(Se=ne==null?void 0:ne.source)==null?void 0:Se.parsedTrace)==null?void 0:$e.content;if((Re=_e==null?void 0:_e.render)!=null&&Re.path||_e!=null&&_e.pivot){const ze=((Ie=(Ae=_e==null?void 0:_e.render)==null?void 0:Ae.path)==null?void 0:Ie.pivot)??(_e==null?void 0:_e.pivot)??{},Ge=(Be=(ke=_e==null?void 0:_e.render)==null?void 0:ke.path)!=null&&Be.scale?_e.render.path.scale*(1/.3):((Ne=_e==null?void 0:_e.pivot)==null?void 0:Ne.scale)??1,{x:Ze,y:Dt}=ze,Je=(_e==null?void 0:_e.version)==="1.4.0"?parseProperty$1:Zt=>en=>parseProperty(Zt)({event:en}),Ut=Ze?Je(Ze):Zt=>Zt.x,jt=Dt?Je(Dt):Zt=>Zt.y,Ke=lodashExports$1.map(pe(ce),Zt=>{var en;return(en=_e==null?void 0:_e.events)==null?void 0:en[Zt]}),an={x:Ut({x:0,y:0,...lodashExports$1.head(Ke)}),y:jt({x:0,y:0,...lodashExports$1.head(Ke)})};if(Ke.length){const Zt=`${lodashExports$1.startCase((Fe=lodashExports$1.head(Ke))==null?void 0:Fe.type)} ${(Ue=lodashExports$1.head(Ke))==null?void 0:Ue.id}`,en=getTextWidth(Zt,`${labelSize*Ge*labelScale}px Inter`),Kt=[{$:"circle",x:Ut({x:0,y:0,...lodashExports$1.last(Ke)}),y:jt({x:0,y:0,...lodashExports$1.last(Ke)}),fill:ue.primary.main,radius:.3*Ge},{$:"path",points:Ke.map(Wt=>({x:Ut({x:0,y:0,...Wt}),y:jt({x:0,y:0,...Wt})})),fill:ue.primary.main,alpha:1,lineWidth:.3*Ge},{$:"circle",...an,fill:ue.primary.main,radius:.3*Ge},{$:"rect",alpha:.85,fill:xe,x:an.x-.3*Ge*labelScale,y:an.y-2*Ge*labelScale,width:en+(.8+.5)*Ge*labelScale,height:1.4*Ge*labelScale},{$:"path",points:[{x:an.x,y:an.y},{x:an.x+(-.3-.05)*Ge*labelScale,y:an.y+(-2+1.4)*Ge*labelScale}],fill:getColorHex((We=lodashExports$1.head(Ke))==null?void 0:We.type),alpha:1,lineWidth:.1*Ge*labelScale},{$:"rect",x:an.x+(-.3-.1)*Ge*labelScale,y:an.y+-2*Ge*labelScale,fill:getColorHex((qe=lodashExports$1.head(Ke))==null?void 0:qe.type),height:1.4*Ge*labelScale,width:.1*Ge*labelScale},{$:"rect",alpha:0,fill:"rgba(255, 255, 255, 0)",x:an.x-.3*Ge*labelScale,y:an.y-2*Ge*labelScale,width:en*2,height:1*Ge*labelScale,label:Zt,"label-size":labelSize*Ge*labelScale,"label-x":(.1+.5)*Ge*labelScale,"label-y":1*Ge*labelScale,"label-color":ue.text.primary}];return jsxRuntimeExports.jsx(NodeList,{nodes:[lodashExports$1.map(Kt,Wt=>({component:Wt,meta:{source:"path",sourceLayerIndex:-99999+oe}}))]})}}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},[ne,oe,ce,ue,pe])}const mapValuesDeep=(ne,oe)=>lodashExports$1.isArray(ne)?lodashExports$1.map(ne,ce=>mapValuesDeep(ce,oe)):lodashExports$1.isObject(ne)?lodashExports$1.mapValues(ne,ce=>mapValuesDeep(ce,oe)):oe(ne);async function findConnection(ne,oe,ce){for(const ue of ne){const pe=await ue.transport().call("features/algorithms"),me=await ue.transport().call("features/formats");if(lodashExports$1.find(pe,{id:oe})&&lodashExports$1.find(me,{id:ce}))return ue}}const maxStringPropLength=40,controller={...lodashExports$1.omit(controller$1,"claimImportedFile"),key:"query",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),compress:ne=>lodashExports$1.pick(ne,["mapLayerKey","query","start","end","algorithm","onion","step","code","breakpoints"]),editor:withProduce(({value:ne,produce:oe})=>{var xe,_e;const{algorithm:ce}=(ne==null?void 0:ne.source)??{},{layers:ue,allLayers:pe,layer:me,key:ge}=useLayer(void 0,Se=>{var $e;return(($e=Se.source)==null?void 0:$e.type)==="map"}),[{algorithms:ye}]=useFeatures(),[ve]=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:ce,items:ye.map(Se=>{var $e;return{...Se,description:($e=lodashExports$1.find(ve,{url:Se.source}))==null?void 0:$e.name}}),onChange:async Se=>oe($e=>lodashExports$1.set($e,"source.algorithm",Se))})}),!(ye!=null&&ye.length)&&jsxRuntimeExports.jsx(Type$2,{component:"div",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:ge,items:pe.map(Se=>({id:Se.key,hidden:!lodashExports$1.find(ue,$e=>$e.key===Se.key),name:inferLayerName(Se)})),onChange:async Se=>oe($e=>lodashExports$1.set($e,"source.mapLayerKey",Se))})}),me&&jsxRuntimeExports.jsxs(Type$2,{component:"div",variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",inferLayerName(me)]}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(_e=(xe=ne==null?void 0:ne.source)==null?void 0:xe.trace)==null?void 0:_e.content})})]})}),service:withProduce(({value:ne,produce:oe,onChange:ce})=>{var Ae;const ue=controller$1.service,pe=useSnackbar(),{algorithm:me,mapLayerKey:ge,start:ye,end:ve}=(ne==null?void 0:ne.source)??{},[{layers:xe}]=useLayers(),[_e]=useConnections(),[{algorithms:Se}]=useFeatures(),$e=reactExports.useMemo(()=>{if(ge&&me)return lodashExports$1.find(xe,{key:ge})},[ge,me,xe]),{result:Re}=useMapContent((Ae=$e==null?void 0:$e.source)==null?void 0:Ae.map);return useEffectWhenAsync(async Ie=>{var ke;if($e&&Re&&me){const{format:Be}=((ke=$e==null?void 0:$e.source)==null?void 0:ke.map)??{},{content:Ne}=Re??{};if(Be&&Ne){const Fe=await findConnection(_e,me,Be),Ue=lodashExports$1.find(Se,{id:me});if(Fe){pe(`Executing ${inferLayerName(ne)} using ${Fe.name}...`);const We={format:Be,instances:[{start:ye??0,end:ve??0}],mapURI:`map:${encodeURIComponent(Ne)}`,algorithm:me},qe=await Fe.transport().call("solve/pathfinding",We);Ie.aborted?pe("Canceled"):oe(ze=>{lodashExports$1.set(ze,"source.trace",{name:`${Ue==null?void 0:Ue.name}`,content:qe,key:nanoid$1(),id:nanoid$1()}),lodashExports$1.set(ze,"source.query",We)})}}}},[$e,_e,me,ye,ve,oe,pe,ne,Se],[$e,Re,_e,me,ye,ve]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ue,{value:ne,onChange:ce})})}),inferName:ne=>{var oe,ce;return((ce=(oe=ne.source)==null?void 0:oe.trace)==null?void 0:ce.name)??"Untitled Query"},provideSelectionInfo:({children:ne,event:oe,layer:ce})=>{const ue=controller$1.provideSelectionInfo,{layer:pe,setLayer:me,layers:ge}=useLayer(ce),ye=reactExports.useMemo(()=>{const xe=lodashExports$1.filter(ge,{source:{type:"map"}});return lodashExports$1.filter(lodashExports$1.map(xe,_e=>{var $e,Re,Ae,Ie;const{parsedMap:Se}=(_e==null?void 0:_e.source)??{};if(Se&&oe){const ke=(Ie=(Ae=getParser((Re=($e=_e==null?void 0:_e.source)==null?void 0:$e.map)==null?void 0:Re.format))==null?void 0:Ae.hydrate)==null?void 0:Ie.call(Ae,Se);if(ke){const Be=(oe==null?void 0:oe.world)&&ke.snap(oe.world);if(Be){const Ne=(oe==null?void 0:oe.world)&&ke.nodeAt(Be);return{point:Be,node:Ne,key:_e.key,name:inferLayerName(_e)}}}}}))},[ge]),ve=reactExports.useMemo(()=>!!pe&&!!ye.length&&{[pe.key]:{primary:inferLayerName(pe),items:{...lodashExports$1.reduce(ye,(xe,_e)=>({...xe,[`${ce}-${_e==null?void 0:_e.key}-source`]:{primary:"Set as source",secondary:_e==null?void 0:_e.name,action:()=>me(produce(pe,Se=>{lodashExports$1.set(Se,"source.start",_e==null?void 0:_e.node),lodashExports$1.set(Se,"source.query",void 0),lodashExports$1.set(Se,"source.mapLayerKey",_e==null?void 0:_e.key),lodashExports$1.set(Se,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(StartIcon,{sx:{transform:"scale(0.5)"}})},[`${ce}-${_e==null?void 0:_e.key}-destination`]:{primary:"Set as destination",secondary:_e==null?void 0:_e.name,action:()=>me(produce(pe,Se=>{lodashExports$1.set(Se,"source.end",_e==null?void 0:_e.node),lodashExports$1.set(Se,"source.query",void 0),lodashExports$1.set(Se,"source.mapLayerKey",_e==null?void 0:_e.key),lodashExports$1.set(Se,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(DestinationIcon,{})}}),{})}}},[ye,pe,ge,me]);return jsxRuntimeExports.jsx(ue,{event:oe,layer:ce,children:xe=>ne==null?void 0:ne(lodashExports$1.merge(xe,ve))})},getSources:ne=>{const{algorithm:oe=null,start:ce=0,end:ue=0,query:pe}=(ne==null?void 0:ne.source)??{};return[{id:"params",name:"Query",language:"yaml",content:dump({algorithm:oe,instances:[{start:ce,end:ue}],mapURI:"(...)",format:"(...)",...mapValuesDeep(pe,me=>typeof me=="string"&&me.length>maxStringPropLength?`${lodashExports$1.truncate(me,{length:maxStringPropLength})} (${me.length} characters)`:me)},{noCompatMode:!0})},...controller$1.getSources(ne)]}};function getController(ne){var oe;return getControllers()[((oe=ne==null?void 0:ne.source)==null?void 0:oe.type)??""]}const getControllers=lodashExports$1.once(()=>({trace:controller$1,map:controller$2,query:controller}));function inferLayerName(ne){var oe;return ne!=null&&ne.name?ne==null?void 0:ne.name:(oe=ne==null?void 0:ne.source)!=null&&oe.type?getController(ne).inferName(ne):"Untitled Layer"}var shim$5={exports:{}},useSyncExternalStoreShim_production_min={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -1228,7 +1228,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\ `)||null}}function resolveTagDirective(ne,oe){var ce=ne.tagPrefixes,ue=_slicedToArray(oe.parameters,2),pe=ue[0],me=ue[1];if(!pe||!me){var ge="Insufficient parameters given for %TAG directive";throw new YAMLSemanticError(oe,ge)}if(ce.some(function(ve){return ve.handle===pe})){var ye="The %TAG directive must only be given at most once per handle in the same document.";throw new YAMLSemanticError(oe,ye)}return{handle:pe,prefix:me}}function resolveYamlDirective(ne,oe){var ce=_slicedToArray(oe.parameters,1),ue=ce[0];if(oe.name==="YAML:1.0"&&(ue="1.0"),!ue){var pe="Insufficient parameters given for %YAML directive";throw new YAMLSemanticError(oe,pe)}if(!documentOptions[ue]){var me=ne.version||ne.options.version,ge="Document will be parsed as YAML ".concat(me," rather than YAML ").concat(ue);ne.warnings.push(new YAMLWarning(oe,ge))}return ue}function parseDirectives(ne,oe,ce){var ue=[],pe=!1,me=_createForOfIteratorHelper(oe),ge;try{for(me.s();!(ge=me.n()).done;){var ye=ge.value,ve=ye.comment,xe=ye.name;switch(xe){case"TAG":try{ne.tagPrefixes.push(resolveTagDirective(ne,ye))}catch(Re){ne.errors.push(Re)}pe=!0;break;case"YAML":case"YAML:1.0":if(ne.version){var _e="The %YAML directive must only be given at most once per document.";ne.errors.push(new YAMLSemanticError(ye,_e))}try{ne.version=resolveYamlDirective(ne,ye)}catch(Re){ne.errors.push(Re)}pe=!0;break;default:if(xe){var Se="YAML only supports %TAG and %YAML directives, and not %".concat(xe);ne.warnings.push(new YAMLWarning(ye,Se))}}ve&&ue.push(ve)}}catch(Re){me.e(Re)}finally{me.f()}if(ce&&!pe&&(ne.version||ce.version||ne.options.version)==="1.1"){var $e=function(Ae){var Ie=Ae.handle,ke=Ae.prefix;return{handle:Ie,prefix:ke}};ne.tagPrefixes=ce.tagPrefixes.map($e),ne.version=ce.version}ne.commentBefore=ue.join(` `)||null}function assertCollection(ne){if(ne instanceof Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Document$1=function(){function ne(oe){_classCallCheck(this,ne),this.anchors=new Anchors(oe.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=oe,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return _createClass(ne,[{key:"add",value:function(ce){return assertCollection(this.contents),this.contents.add(ce)}},{key:"addIn",value:function(ce,ue){assertCollection(this.contents),this.contents.addIn(ce,ue)}},{key:"delete",value:function(ce){return assertCollection(this.contents),this.contents.delete(ce)}},{key:"deleteIn",value:function(ce){return isEmptyPath(ce)?this.contents==null?!1:(this.contents=null,!0):(assertCollection(this.contents),this.contents.deleteIn(ce))}},{key:"getDefaults",value:function(){return ne.defaults[this.version]||ne.defaults[this.options.version]||{}}},{key:"get",value:function(ce,ue){return this.contents instanceof Collection?this.contents.get(ce,ue):void 0}},{key:"getIn",value:function(ce,ue){return isEmptyPath(ce)?!ue&&this.contents instanceof Scalar?this.contents.value:this.contents:this.contents instanceof Collection?this.contents.getIn(ce,ue):void 0}},{key:"has",value:function(ce){return this.contents instanceof Collection?this.contents.has(ce):!1}},{key:"hasIn",value:function(ce){return isEmptyPath(ce)?this.contents!==void 0:this.contents instanceof Collection?this.contents.hasIn(ce):!1}},{key:"set",value:function(ce,ue){assertCollection(this.contents),this.contents.set(ce,ue)}},{key:"setIn",value:function(ce,ue){isEmptyPath(ce)?this.contents=ue:(assertCollection(this.contents),this.contents.setIn(ce,ue))}},{key:"setSchema",value:function(ce,ue){if(!(!ce&&!ue&&this.schema)){typeof ce=="number"&&(ce=ce.toFixed(1)),ce==="1.0"||ce==="1.1"||ce==="1.2"?(this.version?this.version=ce:this.options.version=ce,delete this.options.schema):ce&&typeof ce=="string"&&(this.options.schema=ce),Array.isArray(ue)&&(this.options.customTags=ue);var pe=Object.assign({},this.getDefaults(),this.options);this.schema=new Schema(pe)}}},{key:"parse",value:function(ce,ue){this.options.keepCstNodes&&(this.cstNode=ce),this.options.keepNodeTypes&&(this.type="DOCUMENT");var pe=ce.directives,me=pe===void 0?[]:pe,ge=ce.contents,ye=ge===void 0?[]:ge,ve=ce.directivesEndMarker,xe=ce.error,_e=ce.valueRange;if(xe&&(xe.source||(xe.source=this),this.errors.push(xe)),parseDirectives(this,me,ue),ve&&(this.directivesEndMarker=!0),this.range=_e?[_e.start,_e.end]:null,this.setSchema(),this.anchors._cstAliases=[],parseContents(this,ye),this.anchors.resolveNodes(),this.options.prettyErrors){var Se=_createForOfIteratorHelper(this.errors),$e;try{for(Se.s();!($e=Se.n()).done;){var Re=$e.value;Re instanceof YAMLError&&Re.makePretty()}}catch(Be){Se.e(Be)}finally{Se.f()}var Ae=_createForOfIteratorHelper(this.warnings),Ie;try{for(Ae.s();!(Ie=Ae.n()).done;){var ke=Ie.value;ke instanceof YAMLError&&ke.makePretty()}}catch(Be){Ae.e(Be)}finally{Ae.f()}}return this}},{key:"listNonDefaultTags",value:function(){return listTagNames(this.contents).filter(function(ce){return ce.indexOf(Schema.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(ce,ue){if(ce[0]!=="!"||ce[ce.length-1]!=="!")throw new Error("Handle must start and end with !");if(ue){var pe=this.tagPrefixes.find(function(me){return me.handle===ce});pe?pe.prefix=ue:this.tagPrefixes.push({handle:ce,prefix:ue})}else this.tagPrefixes=this.tagPrefixes.filter(function(me){return me.handle!==ce})}},{key:"toJSON",value:function(ce,ue){var pe=this,me=this.options,ge=me.keepBlobsInJSON,ye=me.mapAsMap,ve=me.maxAliasCount,xe=ge&&(typeof ce!="string"||!(this.contents instanceof Scalar)),_e={doc:this,indentStep:" ",keep:xe,mapAsMap:xe&&!!ye,maxAliasCount:ve,stringify:stringify$1$1},Se=Object.keys(this.anchors.map);Se.length>0&&(_e.anchors=new Map(Se.map(function(Ne){return[pe.anchors.map[Ne],{alias:[],aliasCount:0,count:1}]})));var $e=toJSON(this.contents,ce,_e);if(typeof ue=="function"&&_e.anchors){var Re=_createForOfIteratorHelper(_e.anchors.values()),Ae;try{for(Re.s();!(Ae=Re.n()).done;){var Ie=Ae.value,ke=Ie.count,Be=Ie.res;ue(Be,ke)}}catch(Ne){Re.e(Ne)}finally{Re.f()}}return $e}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var ce=this.options.indent;if(!Number.isInteger(ce)||ce<=0){var ue=JSON.stringify(ce);throw new Error('"indent" option must be a positive integer, not '.concat(ue))}this.setSchema();var pe=[],me=!1;if(this.version){var ge="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?ge="%YAML:1.0":this.version==="1.1"&&(ge="%YAML 1.1")),pe.push(ge),me=!0}var ye=this.listNonDefaultTags();this.tagPrefixes.forEach(function(Re){var Ae=Re.handle,Ie=Re.prefix;ye.some(function(ke){return ke.indexOf(Ie)===0})&&(pe.push("%TAG ".concat(Ae," ").concat(Ie)),me=!0)}),(me||this.directivesEndMarker)&&pe.push("---"),this.commentBefore&&((me||!this.directivesEndMarker)&&pe.unshift(""),pe.unshift(this.commentBefore.replace(/^/gm,"#")));var ve={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(ce),stringify:stringify$1$1},xe=!1,_e=null;if(this.contents){this.contents instanceof Node$2&&(this.contents.spaceBefore&&(me||this.directivesEndMarker)&&pe.push(""),this.contents.commentBefore&&pe.push(this.contents.commentBefore.replace(/^/gm,"#")),ve.forceBlockIndent=!!this.comment,_e=this.contents.comment);var Se=_e?null:function(){return xe=!0},$e=stringify$1$1(this.contents,ve,function(){return _e=null},Se);pe.push(addComment($e,"",_e))}else this.contents!==void 0&&pe.push(stringify$1$1(this.contents,ve));return this.comment&&((!xe||_e)&&pe[pe.length-1]!==""&&pe.push(""),pe.push(this.comment.replace(/^/gm,"#"))),pe.join(` `)+` -`}}]),ne}();_defineProperty(Document$1,"defaults",documentOptions);function createNode$1(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ce=arguments.length>2?arguments[2]:void 0;ce===void 0&&typeof oe=="string"&&(ce=oe,oe=!0);var ue=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),pe=new Schema(ue);return pe.createNode(ne,oe,ce)}var Document=function(ne){_inherits(ce,ne);var oe=_createSuper(ce);function ce(ue){return _classCallCheck(this,ce),oe.call(this,Object.assign({},defaultOptions,ue))}return ce}(Document$1);function parseAllDocuments(ne,oe){var ce=[],ue,pe=_createForOfIteratorHelper(parse$5(ne)),me;try{for(pe.s();!(me=pe.n()).done;){var ge=me.value,ye=new Document(oe);ye.parse(ge,ue),ce.push(ye),ue=ye}}catch(ve){pe.e(ve)}finally{pe.f()}return ce}function parseDocument(ne,oe){var ce=parse$5(ne),ue=new Document(oe).parse(ce[0]);if(ce.length>1){var pe="Source contains multiple documents; please use YAML.parseAllDocuments()";ue.errors.unshift(new YAMLSemanticError(ce[1],pe))}return ue}function parse$4(ne,oe){var ce=parseDocument(ne,oe);if(ce.warnings.forEach(function(ue){return warn(ue)}),ce.errors.length>0)throw ce.errors[0];return ce.toJSON()}function stringify$2(ne,oe){var ce=new Document(oe);return ce.contents=ne,String(ce)}var YAML={createNode:createNode$1,defaultOptions,Document,parse:parse$4,parseAllDocuments,parseCST:parse$5,parseDocument,scalarOptions,stringify:stringify$2};const dist$3=Object.freeze(Object.defineProperty({__proto__:null,YAML},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(dist$3);var browser=require$$0.YAML;function Button({children:ne,sx:oe,...ce}){const ue=usePaper();return jsxRuntimeExports.jsx(MuiButton,{disableElevation:!0,variant:"outlined",color:"primary",...ce,sx:{minWidth:0,borderColor:pe=>alpha$1(pe.palette.text.primary,pe.palette.action.activatedOpacity),...ce.variant==="text"?void 0:ue(1),...oe},children:jsxRuntimeExports.jsx(Box$1,{sx:{color:"text.primary",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:ne})})}function Image$1(ne){return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:({open:oe,isOpen:ce})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Fade$1,{in:ce,children:jsxRuntimeExports.jsx("img",{...ne,onLoad:oe})})})})}const paths$1=Object.assign({"/public/recipes/9-tiles.workspace":()=>__vitePreload(()=>import("./9-tiles-1f224294.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/a-star-grid-search-heat-map.workspace":()=>__vitePreload(()=>import("./a-star-grid-search-heat-map-0f76793f.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/a-star-grid-search.workspace":()=>__vitePreload(()=>import("./a-star-grid-search-ffae5751.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/dynamic-star-craft.workspace":()=>__vitePreload(()=>import("./dynamic-star-craft-6a733d35.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/palette-reference.workspace":()=>__vitePreload(()=>import("./palette-reference-9c0fac30.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/primitives-reference.workspace":()=>__vitePreload(()=>import("./primitives-reference-9d7af09e.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/rayscan.workspace":()=>__vitePreload(()=>import("./rayscan-202b7804.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/variables-reference.workspace":()=>__vitePreload(()=>import("./variables-reference-b00bbb42.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/weighted-a-star.workspace":()=>__vitePreload(()=>import("./weighted-a-star-756c8812.js"),[],import.meta.url).then(ne=>ne.default)}),metaPaths=Object.assign({"/public/recipes/9-tiles.workspace.meta":()=>__vitePreload(()=>import("./9-tiles.workspace-59d4551f.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/a-star-grid-search-heat-map.workspace.meta":()=>__vitePreload(()=>import("./a-star-grid-search-heat-map.workspace-3224cf75.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/a-star-grid-search.workspace.meta":()=>__vitePreload(()=>import("./a-star-grid-search.workspace-f767f34b.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/dynamic-star-craft.workspace.meta":()=>__vitePreload(()=>import("./dynamic-star-craft.workspace-5fa26288.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/palette-reference.workspace.meta":()=>__vitePreload(()=>import("./palette-reference.workspace-76a89235.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/primitives-reference.workspace.meta":()=>__vitePreload(()=>import("./primitives-reference.workspace-cc4c7f83.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/rayscan.workspace.meta":()=>__vitePreload(()=>import("./rayscan.workspace-b6c007ed.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/variables-reference.workspace.meta":()=>__vitePreload(()=>import("./variables-reference.workspace-4bafa382.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/weighted-a-star.workspace.meta":()=>__vitePreload(()=>import("./weighted-a-star.workspace-44781276.js"),[],import.meta.url).then(ne=>ne.default)});function stripExtension$1(ne){return ne.split(".")[0]}function basename$1(ne){return ne.split("/").pop()}async function getMeta(ne){const oe=metaPaths[ne.replace(/workspace$/,"workspace.meta")],ce=await(oe==null?void 0:oe());if(ce){const ue=await fetch(ce);return browser.parse(await ue.text())}}const getFileInfo$1=memoizee$1(async(ne,oe)=>({name:lodashExports$1.chain(ne).thru(basename$1).thru(stripExtension$1).startCase().value(),path:await oe(),...await getMeta(ne)}),{normalizer:([ne])=>ne}),makeAvatar=ne=>oe=>jsxRuntimeExports.jsx(Avatar$1,{sx:oe,children:ne});function getAuthor(ne){if(ne){try{const{protocol:oe,pathname:ce}=new URL(ne);switch(oe){case"github:":return{name:ce,avatar:ue=>jsxRuntimeExports.jsx("a",{href:`https://github.com/${ce}`,target:"_blank",rel:"noreferrer",children:jsxRuntimeExports.jsx(Avatar$1,{sx:ue,children:jsxRuntimeExports.jsx(Image$1,{width:"100%",height:"100%",src:`https://github.com/${ce}.png`})})})};default:break}}catch{}return{name:ne,avatar:makeAvatar(ne[0])}}return{name:"No author",avatar:makeAvatar()}}const ellipsisProps={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"};function FeatureCard2({entry:ne,onOpenClick:oe,search:ce}){const{result:ue,loading:pe}=useAsync(async()=>{if(ne)return await getFileInfo$1(...ne)},[ne]),{name:me,description:ge,screenshots:ye,author:ve,path:xe,size:_e}=ue??{};return lodashExports$1.upperCase(browser.stringify(ue)).includes(lodashExports$1.upperCase(ce))?jsxRuntimeExports.jsx(Box$1,{sx:{p:1},children:jsxRuntimeExports.jsx(FeatureCard,{loading:pe,name:me,description:ge??"No description",image:lodashExports$1.first(ye),author:ve,onOpenClick:()=>{oe==null||oe(xe)},size:_e})}):void 0}function FeatureCard({name:ne,description:oe,image:ce,author:ue,size:pe,onOpenClick:me,loading:ge,...ye}){const[{"appearance/acrylic":ve}]=useSettings(),xe=usePaper(),_e=useTheme$1(),{name:Se,avatar:$e}=reactExports.useMemo(()=>getAuthor(ue),[ue]);return jsxRuntimeExports.jsx(Card$1,{variant:"outlined",sx:{...xe(1),position:"relative",height:"100%"},...ye,children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ve&&jsxRuntimeExports.jsx(Fade$1,{in:!ge,timeout:_e.transitions.duration.complex,children:jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(Box$1,{sx:{zIndex:-1,filter:"blur(48px)",opacity:.1,position:"absolute",width:"100%",height:"100%",backgroundImage:`url("${ce}")`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"-52px -52px"}})})}),jsxRuntimeExports.jsx(CardHeader$1,{sx:{alignItems:"flex-start","> .MuiCardHeader-content":{overflow:"hidden"}},avatar:jsxRuntimeExports.jsx(Box$1,{sx:{...xe(1),border:"none",borderRadius:1,width:64,height:64,overflow:"hidden"},children:jsxRuntimeExports.jsx(Fade$1,{in:!!ce,children:jsxRuntimeExports.jsx(Box$1,{sx:{width:64,height:64,backgroundImage:`url("${ce}")`,backgroundSize:"100%",backgroundPosition:"center"}})})}),titleTypographyProps:ellipsisProps,title:ge?jsxRuntimeExports.jsx(Placeholder$3,{}):ne||"Untitled",subheaderTypographyProps:ellipsisProps,subheader:jsxRuntimeExports.jsxs(Stack$1,{gap:2,sx:{pt:1,alignItems:"flex-start"},children:[jsxRuntimeExports.jsx(Type$2,{component:"div",sx:{...ellipsisProps,maxWidth:"100%",width:"100%",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,whiteSpace:"break-spaces",height:60},children:ge?lodashExports$1.map([80,30],Re=>jsxRuntimeExports.jsx(Placeholder$3,{width:`${Re}%`},Re)):oe||"No description"}),jsxRuntimeExports.jsxs(Stack$1,{direction:"row",alignItems:"center",gap:1,children:[$e==null?void 0:$e({width:18,height:18,fontSize:"0.8rem"}),jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"caption",children:ge?jsxRuntimeExports.jsx(Placeholder$3,{width:120}):Se})]}),jsxRuntimeExports.jsx(Button,{disabled:ge,onClick:me,startIcon:jsxRuntimeExports.jsx(WorkspacesOutlined,{}),sx:xe(2),children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",gap:1,children:[jsxRuntimeExports.jsx(Type$2,{component:"div",children:"Open"}),!!pe&&jsxRuntimeExports.jsxs(Type$2,{component:"div",color:"text.secondary",children:[lodashExports$1.round(pe/1024/1024,2)," MB"]})]})})]})})]})})}const CONTENT_WIDTH=940,entries2=lodashExports$1.entries(paths$1);function ExplorePage({template:ne}){const oe=useTheme$1(),[{"behaviour/showOnStart":ce},ue]=useSettings(),pe=useSnackbar(),{controls:me,onChange:ge,state:ye,dragHandle:ve,isViewTree:xe}=useViewTreeContext(),{close:_e}=useFullscreenModalContext(),$e=useSmallDisplay()||xe,[Re,Ae]=reactExports.useState(""),[Ie,ke]=reactExports.useState("explore"),{load:Be}=useWorkspace(),Ne=useLoadingState(),Fe=ze=>Ne(async()=>{try{pe(`Loading ${basename$1(ze)}...`);const Ge=await fetch(ze);Ge.ok||pe(`Couldn't load ${basename$1(ze)}`,"Network error",{error:!0});const Ze=await Ge.blob(),Dt=new File([Ze],basename$1(ze),{type:Ze.type});Be(Dt)}catch(Ge){pe(`Couldn't load ${basename$1(ze)}`,`${Ge}`,{error:!0})}}),Ue=ce==="explore";function We(ze){ue(()=>({"behaviour/showOnStart":ze?"explore":void 0}))}function qe(){const ze=new Rt(oe.palette.primary.main).H,Ge=new Rt("rgba(0,50,255,.2)").H;return jsxRuntimeExports.jsx(Box$1,{sx:{position:"absolute",top:"-100%",left:"calc(50%)",width:"100%",zIndex:-1,transform:"translateX(-50%) rotate(180deg)",height:"150%",filter:`hue-rotate(${ze-Ge}deg)`,minWidth:640,opacity:.75,background:"radial-gradient(46.56% 45.08% at 56.04% 55.33%,rgba(0,50,255,.2) 0,transparent 100%),radial-gradient(46.69% 41.74% at 69.64% 60.81%,rgba(192,59,196,.2) 0,transparent 100%),radial-gradient(59.78% 45.73% at 30.42% 58.68%,rgba(0,120,212,.2) 0,transparent 100%),radial-gradient(32.53% 31.57% at 50% 66.82%,rgba(70,54,104,.2) 0,transparent 100%)"}})}return jsxRuntimeExports.jsx(TabContext,{value:Ie,children:jsxRuntimeExports.jsxs(ne,{onChange:ge,stack:ye,children:[jsxRuntimeExports.jsx(ne.Title,{children:"Explore"}),jsxRuntimeExports.jsx(ne.Key,{children:"explore"}),jsxRuntimeExports.jsx(ne.Handle,{children:ve}),jsxRuntimeExports.jsx(ne.Options,{children:jsxRuntimeExports.jsxs(TabList$1,{onChange:(ze,Ge)=>ke(Ge),sx:{mx:xe?0:-1},children:[jsxRuntimeExports.jsx(Tab$1,{label:"Examples",value:"explore"}),jsxRuntimeExports.jsx(Tab$1,{label:"Guides",value:"guides"})]})}),jsxRuntimeExports.jsx(ne.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(Box$1,{sx:$e?void 0:{p:4,maxWidth:CONTENT_WIDTH,mx:"auto"},children:jsxRuntimeExports.jsxs(Box$1,{pt:6,children:[jsxRuntimeExports.jsxs(TabPanel$1,{value:"explore",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:4,sx:{textAlign:"center"},children:[jsxRuntimeExports.jsx(Type$2,{component:"div",variant:$e?"h6":"h4",children:"Examples"}),jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"subtitle2",color:"text.secondary",children:"Browse a library of included and community-made examples"})]}),oe.palette.mode==="dark"&&qe(),jsxRuntimeExports.jsx(Box$1,{px:2,pb:4,sx:{textAlign:"center"},children:jsxRuntimeExports.jsx(TextField$1,{...textFieldProps,size:$e?"small":"medium",hiddenLabel:!0,fullWidth:!0,sx:{maxWidth:480},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment$1,{position:"start",children:jsxRuntimeExports.jsx(SearchOutlined,{})})},onChange:ze=>Ae(ze.target.value),placeholder:"Search examples"})}),jsxRuntimeExports.jsx(Box$1,{sx:{p:1,display:"grid",gridAutoFlow:"row",gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 320px), 1fr))"},children:lodashExports$1.map(entries2,ze=>jsxRuntimeExports.jsx(FeatureCard2,{search:Re,entry:ze,onOpenClick:Ge=>{Fe(Ge),_e==null||_e()}},ze[0]))})]}),jsxRuntimeExports.jsxs(TabPanel$1,{value:"guides",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:4,sx:{textAlign:"center"},children:[jsxRuntimeExports.jsx(Type$2,{component:"div",variant:$e?"h6":"h4",children:"Guides"}),jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"subtitle2",color:"text.secondary",children:`Learn how to use ${name} and explore ${name} features`})]}),jsxRuntimeExports.jsxs(Stack$1,{sx:{p:4,maxWidth:480,mx:"auto",textAlign:"center",alignItems:"center"},gap:2,children:[jsxRuntimeExports.jsx(Type$2,{component:"div",children:"We're still working on this feature. Check out our documentation instead."}),jsxRuntimeExports.jsx(Button,{onClick:()=>window.open(docs,"_blank"),sx:{maxWidth:"min-content"},startIcon:jsxRuntimeExports.jsx(LaunchOutlined,{}),children:"Open Documentation"})]})]})]})})})})}),jsxRuntimeExports.jsxs(ne.Extras,{children:[!$e&&jsxRuntimeExports.jsx(FormControlLabel$1,{label:"Show on start-up",labelPlacement:"start",sx:{ml:"auto",mr:-5,minWidth:"fit-content"},control:jsxRuntimeExports.jsx(Checkbox$1,{defaultChecked:Ue,onChange:(ze,Ge)=>We==null?void 0:We(Ge)})}),me]})]})})}function InfoPage({template:ne}){const{controls:oe,onChange:ce,state:ue,dragHandle:pe}=useViewTreeContext(),[me,ge]=useLog();return jsxRuntimeExports.jsxs(ne,{onChange:ce,stack:ue,children:[jsxRuntimeExports.jsx(ne.Key,{children:"info"}),jsxRuntimeExports.jsx(ne.Title,{children:"Logs"}),jsxRuntimeExports.jsx(ne.Handle,{children:pe}),jsxRuntimeExports.jsx(ne.Options,{children:jsxRuntimeExports.jsx(FeaturePickerButton,{disabled:!me.length,icon:jsxRuntimeExports.jsx(CloseOutlined,{}),onClick:()=>ge(()=>({action:"clear"})),children:"Clear"})}),jsxRuntimeExports.jsx(ne.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:me.length?jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(List$2,{sx:{pt:6},children:lodashExports$1.map(me,(ye,ve)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(ListItemText$1,{primary:ye.content,secondary:ye.timestamp})}),jsxRuntimeExports.jsx(Divider$1,{})]},ve))})}):jsxRuntimeExports.jsx(Placeholder$2,{pt:6,label:"Logs",icon:jsxRuntimeExports.jsx(ListOutlined,{})})})}),jsxRuntimeExports.jsx(ne.Extras,{children:oe})]})}const compositeOperations=["color","color-burn","color-dodge","copy","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","lighten","lighter","luminosity","multiply","overlay","saturation","screen","soft-light","source-atop","source-in","source-out","source-over","xor"];function useDraft(ne,oe,ce=300,ue=[]){const[pe,me]=reactExports.useState(ne);reactExports.useEffect(()=>{ne&&requestIdleCallback(()=>me(lodashExports$1.merge(pe,lodashExports$1.omit(ne,...ue))))},[me,ne]);const ge=reactExports.useMemo(()=>lodashExports$1.debounce(ye=>oe==null?void 0:oe(ye),ce),[oe,ce]);return[pe,ye=>{const ve=ye(pe);me(ve),ge(ve)}]}function LayerEditor({value:ne,onValueChange:oe}){var Se,$e,Re,Ae;const ce=usePaper(),[ue,pe]=useDraft(ne,oe,300,["name","source.type"]),me=Ie=>jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"overline",color:"text.secondary",sx:{pt:1},children:Ie}),ge=Ie=>jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"body1",children:Ie}),ye=(Ie,ke)=>jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[ge(Ie),jsxRuntimeExports.jsx(Space,{flex:1}),ke]}),ve=Ie=>Ie.map(ke=>({id:ke,name:lodashExports$1.startCase(ke)})),xe=ue.name||inferLayerName(ne),_e=($e=(Se=getController(ne))==null?void 0:Se.error)==null?void 0:$e.call(Se,ne);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ManagedModal,{popover:!0,slotProps:{popover:{anchorOrigin:{horizontal:-12,vertical:-12}}},appBar:{children:"Edit Layer"},trigger:Ie=>{var ke;return jsxRuntimeExports.jsx(ButtonBase$1,{onClick:Ie,className:ue.key,sx:{flex:1,display:"block",textAlign:"left",px:2},children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",direction:"row",gap:2,children:[jsxRuntimeExports.jsx(Stack$1,{sx:{...ce(.5),alignItems:"center",justifyContent:"center",width:36,height:36,color:"action.disabled"},children:getController(ne).icon}),jsxRuntimeExports.jsxs(Box$1,{sx:{py:1.5,flex:1,width:0,ml:0,overflow:"hidden","> *":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[jsxRuntimeExports.jsx(Type$2,{component:"div",children:xe}),jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"body2",color:"text.secondary",children:lodashExports$1.startCase((ke=ne.source)==null?void 0:ke.type)})]}),!!_e&&jsxRuntimeExports.jsx(Tooltip$1,{title:_e,children:jsxRuntimeExports.jsx(Chip$1,{sx:{mr:-2,...lodashExports$1.omit(ce(1),"borderRadius"),color:Be=>Be.palette.error.main,flex:0},label:`${lodashExports$1.truncate(`${_e}`,{length:8})}`,size:"small"})})]})})},children:jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(TextField$1,{sx:{mb:2},autoComplete:"off",autoFocus:!0,placeholder:inferLayerName(ue),fullWidth:!0,variant:"filled",label:"Layer Name",defaultValue:ue.name??"",onChange:Ie=>pe==null?void 0:pe(ke=>lodashExports$1.set(ke,"name",Ie.target.value))}),jsxRuntimeExports.jsxs(Box$1,{sx:{mx:-2,pb:1},children:[jsxRuntimeExports.jsx(Tabs$1,{variant:"fullWidth",onChange:(Ie,ke)=>pe==null?void 0:pe(Be=>lodashExports$1.set(Be,"source",{type:ke})),value:((Re=ue.source)==null?void 0:Re.type)??lodashExports$1.first(lodashExports$1.keys(getControllers()))??"",children:lodashExports$1.keys(getControllers()).map(Ie=>jsxRuntimeExports.jsx(Tab$1,{label:lodashExports$1.startCase(Ie),value:Ie},Ie))}),jsxRuntimeExports.jsx(Divider$1,{sx:{width:"100%"}})]}),me("Source Options"),((Ae=ue.source)==null?void 0:Ae.type)&&reactExports.createElement(getController(ue).editor,{onChange:pe,value:ue}),me("Layer Options"),ye("Transparency",jsxRuntimeExports.jsx(FeaturePicker,{label:"Transparency",items:["0","25","50","75"].map(Ie=>({id:Ie,name:`${Ie}%`})),value:ue.transparency??"0",arrow:!0,onChange:Ie=>pe==null?void 0:pe(ke=>lodashExports$1.set(ke,"transparency",Ie))})),ye("Display Mode",jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,label:"Display Mode",value:ue.displayMode??"source-over",items:ve(compositeOperations),onChange:Ie=>pe==null?void 0:pe(ke=>lodashExports$1.set(ke,"displayMode",Ie))}))]})})})}function LayerListEditor(){const[{layers:ne=[]},oe]=useLayers();return jsxRuntimeExports.jsx(Box$1,{sx:{overflow:"auto hidden",width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{sx:{mb:2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,icon:null,value:ne,deletable:!0,orderable:!0,extras:ce=>jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:ue=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Menu$1,{...bindMenu(ue),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{p:0},children:[{name:"Fit Layer",key:"fit-layer",action:()=>oe(({layers:pe})=>({layers:lodashExports$1.map(pe,me=>({...me,viewKey:me.key===(ce==null?void 0:ce.key)?nanoid$1():void 0}))}))}].map(({name:pe,key:me,action:ge})=>jsxRuntimeExports.jsx(MenuItem$1,{onClick:()=>{ge==null||ge(),ue.close()},children:pe},me))})}),jsxRuntimeExports.jsx(IconButton$1,{...bindTrigger(ue),sx:{color:pe=>pe.palette.text.secondary},children:jsxRuntimeExports.jsx(MoreVertOutlined,{})})]})}),renderEditor:({extras:ce,handle:ue,value:pe,onValueChange:me})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ue,jsxRuntimeExports.jsx(LayerEditor,{value:pe,onValueChange:me}),ce]}),create:()=>({source:{type:"trace",trace:{}}}),onChange:ce=>requestIdleCallback(()=>oe(()=>({layers:ce})),{timeout:300}),addItemLabel:"Layer",placeholder:jsxRuntimeExports.jsx(Box$1,{pt:2,children:"Get started by adding a layer."}),onFocus:ce=>{const ue=lodashExports$1.head(document.getElementsByClassName(ce));ue&&"click"in ue&&typeof ue.click=="function"&&ue.click()}})})})}function LayersPage({template:ne}){const{controls:oe,onChange:ce,state:ue,dragHandle:pe}=useViewTreeContext();return jsxRuntimeExports.jsxs(ne,{onChange:ce,stack:ue,children:[jsxRuntimeExports.jsx(ne.Key,{children:"layers"}),jsxRuntimeExports.jsx(ne.Title,{children:"Layers"}),jsxRuntimeExports.jsx(ne.Handle,{children:pe}),jsxRuntimeExports.jsx(ne.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Scroll,{y:!0,style:{width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{pt:6,children:jsxRuntimeExports.jsx(LayerListEditor,{})})})})}),jsxRuntimeExports.jsx(ne.Extras,{children:oe})]})}var dist$2={},client$1={},models={};(function(ne){var oe=commonjsGlobal&&commonjsGlobal.__extends||function(){var Re=function(Ae,Ie){return Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,Be){ke.__proto__=Be}||function(ke,Be){for(var Ne in Be)Object.prototype.hasOwnProperty.call(Be,Ne)&&(ke[Ne]=Be[Ne])},Re(Ae,Ie)};return function(Ae,Ie){if(typeof Ie!="function"&&Ie!==null)throw new TypeError("Class extends value "+String(Ie)+" is not a constructor or null");Re(Ae,Ie);function ke(){this.constructor=Ae}Ae.prototype=Ie===null?Object.create(Ie):(ke.prototype=Ie.prototype,new ke)}}();Object.defineProperty(ne,"__esModule",{value:!0}),ne.createJSONRPCNotification=ne.createJSONRPCRequest=ne.createJSONRPCSuccessResponse=ne.createJSONRPCErrorResponse=ne.JSONRPCErrorCode=ne.JSONRPCErrorException=ne.isJSONRPCResponses=ne.isJSONRPCResponse=ne.isJSONRPCRequests=ne.isJSONRPCRequest=ne.isJSONRPCID=ne.JSONRPC=void 0,ne.JSONRPC="2.0";var ce=function(Re){return typeof Re=="string"||typeof Re=="number"||Re===null};ne.isJSONRPCID=ce;var ue=function(Re){return Re.jsonrpc===ne.JSONRPC&&Re.method!==void 0&&Re.result===void 0&&Re.error===void 0};ne.isJSONRPCRequest=ue;var pe=function(Re){return Array.isArray(Re)&&Re.every(ne.isJSONRPCRequest)};ne.isJSONRPCRequests=pe;var me=function(Re){return Re.jsonrpc===ne.JSONRPC&&Re.id!==void 0&&(Re.result!==void 0||Re.error!==void 0)};ne.isJSONRPCResponse=me;var ge=function(Re){return Array.isArray(Re)&&Re.every(ne.isJSONRPCResponse)};ne.isJSONRPCResponses=ge;var ye=function(Re,Ae,Ie){var ke={code:Re,message:Ae};return Ie!=null&&(ke.data=Ie),ke},ve=function(Re){oe(Ae,Re);function Ae(Ie,ke,Be){var Ne=Re.call(this,Ie)||this;return Object.setPrototypeOf(Ne,Ae.prototype),Ne.code=ke,Ne.data=Be,Ne}return Ae.prototype.toObject=function(){return ye(this.code,this.message,this.data)},Ae}(Error);ne.JSONRPCErrorException=ve,function(Re){Re[Re.ParseError=-32700]="ParseError",Re[Re.InvalidRequest=-32600]="InvalidRequest",Re[Re.MethodNotFound=-32601]="MethodNotFound",Re[Re.InvalidParams=-32602]="InvalidParams",Re[Re.InternalError=-32603]="InternalError"}(ne.JSONRPCErrorCode||(ne.JSONRPCErrorCode={}));var xe=function(Re,Ae,Ie,ke){return{jsonrpc:ne.JSONRPC,id:Re,error:ye(Ae,Ie,ke)}};ne.createJSONRPCErrorResponse=xe;var _e=function(Re,Ae){return{jsonrpc:ne.JSONRPC,id:Re,result:Ae??null}};ne.createJSONRPCSuccessResponse=_e;var Se=function(Re,Ae,Ie){return{jsonrpc:ne.JSONRPC,id:Re,method:Ae,params:Ie}};ne.createJSONRPCRequest=Se;var $e=function(Re,Ae){return{jsonrpc:ne.JSONRPC,method:Re,params:Ae}};ne.createJSONRPCNotification=$e})(models);var internal$1={};Object.defineProperty(internal$1,"__esModule",{value:!0});internal$1.DefaultErrorCode=void 0;internal$1.DefaultErrorCode=0;var __awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(ne,oe,ce,ue){function pe(me){return me instanceof ce?me:new ce(function(ge){ge(me)})}return new(ce||(ce=Promise))(function(me,ge){function ye(_e){try{xe(ue.next(_e))}catch(Se){ge(Se)}}function ve(_e){try{xe(ue.throw(_e))}catch(Se){ge(Se)}}function xe(_e){_e.done?me(_e.value):pe(_e.value).then(ye,ve)}xe((ue=ue.apply(ne,oe||[])).next())})},__generator$2=commonjsGlobal&&commonjsGlobal.__generator||function(ne,oe){var ce={label:0,sent:function(){if(me[0]&1)throw me[1];return me[1]},trys:[],ops:[]},ue,pe,me,ge;return ge={next:ye(0),throw:ye(1),return:ye(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function ye(xe){return function(_e){return ve([xe,_e])}}function ve(xe){if(ue)throw new TypeError("Generator is already executing.");for(;ge&&(ge=0,xe[0]&&(ce=0)),ce;)try{if(ue=1,pe&&(me=xe[0]&2?pe.return:xe[0]?pe.throw||((me=pe.return)&&me.call(pe),0):pe.next)&&!(me=me.call(pe,xe[1])).done)return me;switch(pe=0,me&&(xe=[xe[0]&2,me.value]),xe[0]){case 0:case 1:me=xe;break;case 4:return ce.label++,{value:xe[1],done:!1};case 5:ce.label++,pe=xe[1],xe=[0];continue;case 7:xe=ce.ops.pop(),ce.trys.pop();continue;default:if(me=ce.trys,!(me=me.length>0&&me[me.length-1])&&(xe[0]===6||xe[0]===2)){ce=0;continue}if(xe[0]===3&&(!me||xe[1]>me[0]&&xe[1]0&&me[me.length-1])&&(xe[0]===6||xe[0]===2)){ce=0;continue}if(xe[0]===3&&(!me||xe[1]>me[0]&&xe[1]0&&me[me.length-1])&&(xe[0]===6||xe[0]===2)){ce=0;continue}if(xe[0]===3&&(!me||xe[1]>me[0]&&xe[1]{const pe=({data:me})=>{me.id===ue.id&&(this.rpc.receive(me),this.worker.removeEventListener("message",pe))};this.worker.postMessage(ue),this.worker.addEventListener("message",pe)})}connect(){return this.worker.postMessage(this.options.url),new Promise(ce=>{const ue=()=>{ce(),this.worker.removeEventListener("message",ue)};this.worker.addEventListener("message",ue)})}async disconnect(){this.worker.terminate()}async call(ce,ue){return await this.rpc.request(ce,ue)}}var requiresPort=function(oe,ce){if(ce=ce.split(":")[0],oe=+oe,!oe)return!1;switch(ce){case"http":case"ws":return oe!==80;case"https":case"wss":return oe!==443;case"ftp":return oe!==21;case"gopher":return oe!==70;case"file":return!1}return oe!==0},querystringify$1={},has$4=Object.prototype.hasOwnProperty,undef;function decode$3(ne){try{return decodeURIComponent(ne.replace(/\+/g," "))}catch{return null}}function encode$3(ne){try{return encodeURIComponent(ne)}catch{return null}}function querystring$1(ne){for(var oe=/([^=?#&]+)=?([^&]*)/g,ce={},ue;ue=oe.exec(ne);){var pe=decode$3(ue[1]),me=decode$3(ue[2]);pe===null||me===null||pe in ce||(ce[pe]=me)}return ce}function querystringify(ne,oe){oe=oe||"";var ce=[],ue,pe;typeof oe!="string"&&(oe="?");for(pe in ne)if(has$4.call(ne,pe)){if(ue=ne[pe],!ue&&(ue===null||ue===undef||isNaN(ue))&&(ue=""),pe=encode$3(pe),ue=encode$3(ue),pe===null||ue===null)continue;ce.push(pe+"="+ue)}return ce.length?oe+ce.join("&"):""}querystringify$1.stringify=querystringify;querystringify$1.parse=querystring$1;var required=requiresPort,qs=querystringify$1,controlOrWhitespace=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,CRHTLF=/[\n\r\t]/g,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,port=/:\d+$/,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/;function trimLeft(ne){return(ne||"").toString().replace(controlOrWhitespace,"")}var rules=[["#","hash"],["?","query"],function(oe,ce){return isSpecial(ce.protocol)?oe.replace(/\\/g,"/"):oe},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(ne){var oe;typeof window<"u"?oe=window:typeof commonjsGlobal<"u"?oe=commonjsGlobal:typeof self<"u"?oe=self:oe={};var ce=oe.location||{};ne=ne||ce;var ue={},pe=typeof ne,me;if(ne.protocol==="blob:")ue=new Url$1(unescape(ne.pathname),{});else if(pe==="string"){ue=new Url$1(ne,{});for(me in ignore)delete ue[me]}else if(pe==="object"){for(me in ne)me in ignore||(ue[me]=ne[me]);ue.slashes===void 0&&(ue.slashes=slashes.test(ne.href))}return ue}function isSpecial(ne){return ne==="file:"||ne==="ftp:"||ne==="http:"||ne==="https:"||ne==="ws:"||ne==="wss:"}function extractProtocol(ne,oe){ne=trimLeft(ne),ne=ne.replace(CRHTLF,""),oe=oe||{};var ce=protocolre.exec(ne),ue=ce[1]?ce[1].toLowerCase():"",pe=!!ce[2],me=!!ce[3],ge=0,ye;return pe?me?(ye=ce[2]+ce[3]+ce[4],ge=ce[2].length+ce[3].length):(ye=ce[2]+ce[4],ge=ce[2].length):me?(ye=ce[3]+ce[4],ge=ce[3].length):ye=ce[4],ue==="file:"?ge>=2&&(ye=ye.slice(2)):isSpecial(ue)?ye=ce[4]:ue?pe&&(ye=ye.slice(2)):ge>=2&&isSpecial(oe.protocol)&&(ye=ce[4]),{protocol:ue,slashes:pe||isSpecial(ue),slashesCount:ge,rest:ye}}function resolve$1(ne,oe){if(ne==="")return oe;for(var ce=(oe||"/").split("/").slice(0,-1).concat(ne.split("/")),ue=ce.length,pe=ce[ue-1],me=!1,ge=0;ue--;)ce[ue]==="."?ce.splice(ue,1):ce[ue]===".."?(ce.splice(ue,1),ge++):ge&&(ue===0&&(me=!0),ce.splice(ue,1),ge--);return me&&ce.unshift(""),(pe==="."||pe==="..")&&ce.push(""),ce.join("/")}function Url$1(ne,oe,ce){if(ne=trimLeft(ne),ne=ne.replace(CRHTLF,""),!(this instanceof Url$1))return new Url$1(ne,oe,ce);var ue,pe,me,ge,ye,ve,xe=rules.slice(),_e=typeof oe,Se=this,$e=0;for(_e!=="object"&&_e!=="string"&&(ce=oe,oe=null),ce&&typeof ce!="function"&&(ce=qs.parse),oe=lolcation(oe),pe=extractProtocol(ne||"",oe),ue=!pe.protocol&&!pe.slashes,Se.slashes=pe.slashes||ue&&oe.slashes,Se.protocol=pe.protocol||oe.protocol||"",ne=pe.rest,(pe.protocol==="file:"&&(pe.slashesCount!==2||windowsDriveLetter.test(ne))||!pe.slashes&&(pe.protocol||pe.slashesCount<2||!isSpecial(Se.protocol)))&&(xe[3]=[/(.*)/,"pathname"]);$e__vitePreload(()=>import("./alien-81a163a8.js"),[],import.meta.url).then(ne=>ne.default),"/public/maps/maze-medium.grid":()=>__vitePreload(()=>import("./maze-medium-a955cbb9.js"),[],import.meta.url).then(ne=>ne.default),"/public/maps/maze-small.grid":()=>__vitePreload(()=>import("./maze-small-85d74cf5.js"),[],import.meta.url).then(ne=>ne.default),"/public/maps/random-32x32.grid":()=>__vitePreload(()=>import("./random-32x32-1b96f0c8.js"),[],import.meta.url).then(ne=>ne.default)});function ext(ne){return ne.split(".")[1]}function stripExtension(ne){return ne.split(".")[0]}function basename(ne){return ne.split("/").pop()}const getFileInfo=memoizee$1(async(ne,oe)=>({id:`basic-maps${ne}`,name:lodashExports$1.chain(ne).thru(basename).thru(stripExtension).startCase().value(),path:await oe(),format:ext(ne)}),{normalizer:([ne])=>ne}),getFiles=async()=>await Promise.all(lodashExports$1.map(lodashExports$1.entries(paths),ne=>getFileInfo(...ne))),internal={"basic-maps":async(ne,oe)=>{switch(ne){case"about":return{name:"Basic Maps",description:"A collection of basic grid maps",version:"1.2.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/maps":return await getFiles();case"features/map":{const ce=await getFiles(),ue=lodashExports$1.find(ce,{id:oe==null?void 0:oe.id});if(ue){const pe=await fetch(ue.path);return{...ue,content:await pe.text()}}}}}};class NativeTransport extends EventEmitter$2{constructor(ce){super();Gl(this,"handler");this.options=ce;const{hostname:ue}=url$2(ce.url);this.handler=internal[ue]}async connect(){}async disconnect(){}async call(ce,ue){return await this.handler(ce,ue)}}const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(ne=>{PACKET_TYPES_REVERSE[PACKET_TYPES[ne]]=ne});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=ne=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(ne):ne&&ne.buffer instanceof ArrayBuffer,encodePacket=({type:ne,data:oe},ce,ue)=>withNativeBlob$1&&oe instanceof Blob?ce?ue(oe):encodeBlobAsBase64(oe,ue):withNativeArrayBuffer$2&&(oe instanceof ArrayBuffer||isView$1(oe))?ce?ue(oe):encodeBlobAsBase64(new Blob([oe]),ue):ue(PACKET_TYPES[ne]+(oe||"")),encodeBlobAsBase64=(ne,oe)=>{const ce=new FileReader;return ce.onload=function(){const ue=ce.result.split(",")[1];oe("b"+(ue||""))},ce.readAsDataURL(ne)};function toArray(ne){return ne instanceof Uint8Array?ne:ne instanceof ArrayBuffer?new Uint8Array(ne):new Uint8Array(ne.buffer,ne.byteOffset,ne.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(ne,oe){if(withNativeBlob$1&&ne.data instanceof Blob)return ne.data.arrayBuffer().then(toArray).then(oe);if(withNativeArrayBuffer$2&&(ne.data instanceof ArrayBuffer||isView$1(ne.data)))return oe(toArray(ne.data));encodePacket(ne,!1,ce=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),oe(TEXT_ENCODER.encode(ce))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let ne=0;ne{let oe=ne.length*.75,ce=ne.length,ue,pe=0,me,ge,ye,ve;ne[ne.length-1]==="="&&(oe--,ne[ne.length-2]==="="&&oe--);const xe=new ArrayBuffer(oe),_e=new Uint8Array(xe);for(ue=0;ue>4,_e[pe++]=(ge&15)<<4|ye>>2,_e[pe++]=(ye&3)<<6|ve&63;return xe},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(ne,oe)=>{if(typeof ne!="string")return{type:"message",data:mapBinary(ne,oe)};const ce=ne.charAt(0);return ce==="b"?{type:"message",data:decodeBase64Packet(ne.substring(1),oe)}:PACKET_TYPES_REVERSE[ce]?ne.length>1?{type:PACKET_TYPES_REVERSE[ce],data:ne.substring(1)}:{type:PACKET_TYPES_REVERSE[ce]}:ERROR_PACKET},decodeBase64Packet=(ne,oe)=>{if(withNativeArrayBuffer$1){const ce=decode$2(ne);return mapBinary(ce,oe)}else return{base64:!0,data:ne}},mapBinary=(ne,oe)=>{switch(oe){case"blob":return ne instanceof Blob?ne:new Blob([ne]);case"arraybuffer":default:return ne instanceof ArrayBuffer?ne:ne.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(ne,oe)=>{const ce=ne.length,ue=new Array(ce);let pe=0;ne.forEach((me,ge)=>{encodePacket(me,!1,ye=>{ue[ge]=ye,++pe===ce&&oe(ue.join(SEPARATOR))})})},decodePayload=(ne,oe)=>{const ce=ne.split(SEPARATOR),ue=[];for(let pe=0;pe{const ue=ce.length;let pe;if(ue<126)pe=new Uint8Array(1),new DataView(pe.buffer).setUint8(0,ue);else if(ue<65536){pe=new Uint8Array(3);const me=new DataView(pe.buffer);me.setUint8(0,126),me.setUint16(1,ue)}else{pe=new Uint8Array(9);const me=new DataView(pe.buffer);me.setUint8(0,127),me.setBigUint64(1,BigInt(ue))}ne.data&&typeof ne.data!="string"&&(pe[0]|=128),oe.enqueue(pe),oe.enqueue(ce)})}})}let TEXT_DECODER;function totalLength(ne){return ne.reduce((oe,ce)=>oe+ce.length,0)}function concatChunks(ne,oe){if(ne[0].length===oe)return ne.shift();const ce=new Uint8Array(oe);let ue=0;for(let pe=0;peMath.pow(2,53-32)-1){ye.enqueue(ERROR_PACKET);break}pe=_e*Math.pow(2,32)+xe.getUint32(4),ue=3}else{if(totalLength(ce)ne){ye.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(ne){if(ne)return mixin(ne)}function mixin(ne){for(var oe in Emitter.prototype)ne[oe]=Emitter.prototype[oe];return ne}Emitter.prototype.on=Emitter.prototype.addEventListener=function(ne,oe){return this._callbacks=this._callbacks||{},(this._callbacks["$"+ne]=this._callbacks["$"+ne]||[]).push(oe),this};Emitter.prototype.once=function(ne,oe){function ce(){this.off(ne,ce),oe.apply(this,arguments)}return ce.fn=oe,this.on(ne,ce),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(ne,oe){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var ce=this._callbacks["$"+ne];if(!ce)return this;if(arguments.length==1)return delete this._callbacks["$"+ne],this;for(var ue,pe=0;petypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(ne,...oe){return oe.reduce((ce,ue)=>(ne.hasOwnProperty(ue)&&(ce[ue]=ne[ue]),ce),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(ne,oe){oe.useNativeTimers?(ne.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),ne.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(ne.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),ne.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(ne){return typeof ne=="string"?utf8Length(ne):Math.ceil((ne.byteLength||ne.size)*BASE64_OVERHEAD)}function utf8Length(ne){let oe=0,ce=0;for(let ue=0,pe=ne.length;ue=57344?ce+=3:(ue++,ce+=4);return ce}function encode$2(ne){let oe="";for(let ce in ne)ne.hasOwnProperty(ce)&&(oe.length&&(oe+="&"),oe+=encodeURIComponent(ce)+"="+encodeURIComponent(ne[ce]));return oe}function decode$1(ne){let oe={},ce=ne.split("&");for(let ue=0,pe=ce.length;ue0);return oe}function yeast(){const ne=encode$1(+new Date);return ne!==prev?(seed=0,prev=ne):ne+"."+encode$1(seed++)}for(;i$2{this.readyState="paused",oe()};if(this.polling||!this.writable){let ue=0;this.polling&&(ue++,this.once("pollComplete",function(){--ue||ce()})),this.writable||(ue++,this.once("drain",function(){--ue||ce()}))}else ce()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(oe){const ce=ue=>{if(this.readyState==="opening"&&ue.type==="open"&&this.onOpen(),ue.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(ue)};decodePayload(oe,this.socket.binaryType).forEach(ce),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const oe=()=>{this.write([{type:"close"}])};this.readyState==="open"?oe():this.once("open",oe)}write(oe){this.writable=!1,encodePayload(oe,ce=>{this.doWrite(ce,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const oe=this.opts.secure?"https":"http",ce=this.query||{};return this.opts.timestampRequests!==!1&&(ce[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!ce.sid&&(ce.b64=1),this.createUri(oe,ce)}request(oe={}){return Object.assign(oe,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),oe)}doWrite(oe,ce){const ue=this.request({method:"POST",data:oe});ue.on("success",ce),ue.on("error",(pe,me)=>{this.onError("xhr post error",pe,me)})}doPoll(){const oe=this.request();oe.on("data",this.onData.bind(this)),oe.on("error",(ce,ue)=>{this.onError("xhr poll error",ce,ue)}),this.pollXhr=oe}}class Request extends Emitter{constructor(oe,ce){super(),installTimerFunctions(this,ce),this.opts=ce,this.method=ce.method||"GET",this.uri=oe,this.data=ce.data!==void 0?ce.data:null,this.create()}create(){var oe;const ce=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");ce.xdomain=!!this.opts.xd;const ue=this.xhr=new XHR(ce);try{ue.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){ue.setDisableHeaderCheck&&ue.setDisableHeaderCheck(!0);for(let pe in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(pe)&&ue.setRequestHeader(pe,this.opts.extraHeaders[pe])}}catch{}if(this.method==="POST")try{ue.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{ue.setRequestHeader("Accept","*/*")}catch{}(oe=this.opts.cookieJar)===null||oe===void 0||oe.addCookies(ue),"withCredentials"in ue&&(ue.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(ue.timeout=this.opts.requestTimeout),ue.onreadystatechange=()=>{var pe;ue.readyState===3&&((pe=this.opts.cookieJar)===null||pe===void 0||pe.parseCookies(ue)),ue.readyState===4&&(ue.status===200||ue.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof ue.status=="number"?ue.status:0)},0))},ue.send(this.data)}catch(pe){this.setTimeoutFn(()=>{this.onError(pe)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(oe){this.emitReserved("error",oe,this.xhr),this.cleanup(!0)}cleanup(oe){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty$1,oe)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const oe=this.xhr.responseText;oe!==null&&(this.emitReserved("data",oe),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const ne="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(ne,unloadHandler,!1)}}function unloadHandler(){for(let ne in Request.requests)Request.requests.hasOwnProperty(ne)&&Request.requests[ne].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?oe=>Promise.resolve().then(oe):(oe,ce)=>ce(oe,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(oe){super(oe),this.supportsBinary=!oe.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const oe=this.uri(),ce=this.opts.protocols,ue=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(ue.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?ce?new WebSocket(oe,ce):new WebSocket(oe):new WebSocket(oe,ce,ue)}catch(pe){return this.emitReserved("error",pe)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=oe=>this.onClose({description:"websocket connection closed",context:oe}),this.ws.onmessage=oe=>this.onData(oe.data),this.ws.onerror=oe=>this.onError("websocket error",oe)}write(oe){this.writable=!1;for(let ce=0;ce{const ge={};try{usingBrowserWebSocket&&this.ws.send(me)}catch{}pe&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const oe=this.opts.secure?"wss":"ws",ce=this.query||{};return this.opts.timestampRequests&&(ce[this.opts.timestampParam]=yeast()),this.supportsBinary||(ce.b64=1),this.createUri(oe,ce)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(oe=>{this.onError("webtransport error",oe)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(oe=>{const ce=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),ue=oe.readable.pipeThrough(ce).getReader(),pe=createPacketEncoderStream();pe.readable.pipeTo(oe.writable),this.writer=pe.writable.getWriter();const me=()=>{ue.read().then(({done:ye,value:ve})=>{ye||(this.onPacket(ve),me())}).catch(ye=>{})};me();const ge={type:"open"};this.query.sid&&(ge.data=`{"sid":"${this.query.sid}"}`),this.writer.write(ge).then(()=>this.onOpen())})}))}write(oe){this.writable=!1;for(let ce=0;ce{pe&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var oe;(oe=this.transport)===null||oe===void 0||oe.close()}}const transports$2={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse$3(ne){if(ne.length>2e3)throw"URI too long";const oe=ne,ce=ne.indexOf("["),ue=ne.indexOf("]");ce!=-1&&ue!=-1&&(ne=ne.substring(0,ce)+ne.substring(ce,ue).replace(/:/g,";")+ne.substring(ue,ne.length));let pe=re.exec(ne||""),me={},ge=14;for(;ge--;)me[parts[ge]]=pe[ge]||"";return ce!=-1&&ue!=-1&&(me.source=oe,me.host=me.host.substring(1,me.host.length-1).replace(/;/g,":"),me.authority=me.authority.replace("[","").replace("]","").replace(/;/g,":"),me.ipv6uri=!0),me.pathNames=pathNames(me,me.path),me.queryKey=queryKey(me,me.query),me}function pathNames(ne,oe){const ce=/\/{2,9}/g,ue=oe.replace(ce,"/").split("/");return(oe.slice(0,1)=="/"||oe.length===0)&&ue.splice(0,1),oe.slice(-1)=="/"&&ue.splice(ue.length-1,1),ue}function queryKey(ne,oe){const ce={};return oe.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(ue,pe,me){pe&&(ce[pe]=me)}),ce}let Socket$1=class Ql extends Emitter{constructor(oe,ce={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],oe&&typeof oe=="object"&&(ce=oe,oe=null),oe?(oe=parse$3(oe),ce.hostname=oe.host,ce.secure=oe.protocol==="https"||oe.protocol==="wss",ce.port=oe.port,oe.query&&(ce.query=oe.query)):ce.host&&(ce.hostname=parse$3(ce.host).host),installTimerFunctions(this,ce),this.secure=ce.secure!=null?ce.secure:typeof location<"u"&&location.protocol==="https:",ce.hostname&&!ce.port&&(ce.port=this.secure?"443":"80"),this.hostname=ce.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=ce.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=ce.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},ce),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode$1(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(oe){const ce=Object.assign({},this.opts.query);ce.EIO=protocol$1,ce.transport=oe,this.id&&(ce.sid=this.id);const ue=Object.assign({},this.opts,{query:ce,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[oe]);return new transports$2[oe](ue)}open(){let oe;if(this.opts.rememberUpgrade&&Ql.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)oe="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else oe=this.transports[0];this.readyState="opening";try{oe=this.createTransport(oe)}catch{this.transports.shift(),this.open();return}oe.open(),this.setTransport(oe)}setTransport(oe){this.transport&&this.transport.removeAllListeners(),this.transport=oe,oe.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",ce=>this.onClose("transport close",ce))}probe(oe){let ce=this.createTransport(oe),ue=!1;Ql.priorWebsocketSuccess=!1;const pe=()=>{ue||(ce.send([{type:"ping",data:"probe"}]),ce.once("packet",Se=>{if(!ue)if(Se.type==="pong"&&Se.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",ce),!ce)return;Ql.priorWebsocketSuccess=ce.name==="websocket",this.transport.pause(()=>{ue||this.readyState!=="closed"&&(_e(),this.setTransport(ce),ce.send([{type:"upgrade"}]),this.emitReserved("upgrade",ce),ce=null,this.upgrading=!1,this.flush())})}else{const $e=new Error("probe error");$e.transport=ce.name,this.emitReserved("upgradeError",$e)}}))};function me(){ue||(ue=!0,_e(),ce.close(),ce=null)}const ge=Se=>{const $e=new Error("probe error: "+Se);$e.transport=ce.name,me(),this.emitReserved("upgradeError",$e)};function ye(){ge("transport closed")}function ve(){ge("socket closed")}function xe(Se){ce&&Se.name!==ce.name&&me()}const _e=()=>{ce.removeListener("open",pe),ce.removeListener("error",ge),ce.removeListener("close",ye),this.off("close",ve),this.off("upgrading",xe)};ce.once("open",pe),ce.once("error",ge),ce.once("close",ye),this.once("close",ve),this.once("upgrading",xe),this.upgrades.indexOf("webtransport")!==-1&&oe!=="webtransport"?this.setTimeoutFn(()=>{ue||ce.open()},200):ce.open()}onOpen(){if(this.readyState="open",Ql.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let oe=0;const ce=this.upgrades.length;for(;oe{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const oe=this.getWritablePackets();this.transport.send(oe),this.prevBufferLen=oe.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let ce=1;for(let ue=0;ue0&&ce>this.maxPayload)return this.writeBuffer.slice(0,ue);ce+=2}return this.writeBuffer}write(oe,ce,ue){return this.sendPacket("message",oe,ce,ue),this}send(oe,ce,ue){return this.sendPacket("message",oe,ce,ue),this}sendPacket(oe,ce,ue,pe){if(typeof ce=="function"&&(pe=ce,ce=void 0),typeof ue=="function"&&(pe=ue,ue=null),this.readyState==="closing"||this.readyState==="closed")return;ue=ue||{},ue.compress=ue.compress!==!1;const me={type:oe,data:ce,options:ue};this.emitReserved("packetCreate",me),this.writeBuffer.push(me),pe&&this.once("flush",pe),this.flush()}close(){const oe=()=>{this.onClose("forced close"),this.transport.close()},ce=()=>{this.off("upgrade",ce),this.off("upgradeError",ce),oe()},ue=()=>{this.once("upgrade",ce),this.once("upgradeError",ce)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?ue():oe()}):this.upgrading?ue():oe()),this}onError(oe){Ql.priorWebsocketSuccess=!1,this.emitReserved("error",oe),this.onClose("transport error",oe)}onClose(oe,ce){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",oe,ce),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(oe){const ce=[];let ue=0;const pe=oe.length;for(;uetypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(ne):ne.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(ne){return withNativeArrayBuffer&&(ne instanceof ArrayBuffer||isView(ne))||withNativeBlob&&ne instanceof Blob||withNativeFile&&ne instanceof File}function hasBinary(ne,oe){if(!ne||typeof ne!="object")return!1;if(Array.isArray(ne)){for(let ce=0,ue=ne.length;ce=0&&ne.num{delete this.acks[oe];for(let ge=0;ge{this.io.clearTimeoutFn(me),ce.apply(this,[null,...ge])}}emitWithAck(oe,...ce){const ue=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((pe,me)=>{ce.push((ge,ye)=>ue?ge?me(ge):pe(ye):pe(ge)),this.emit(oe,...ce)})}_addToQueue(oe){let ce;typeof oe[oe.length-1]=="function"&&(ce=oe.pop());const ue={id:this._queueSeq++,tryCount:0,pending:!1,args:oe,flags:Object.assign({fromQueue:!0},this.flags)};oe.push((pe,...me)=>ue!==this._queue[0]?void 0:(pe!==null?ue.tryCount>this._opts.retries&&(this._queue.shift(),ce&&ce(pe)):(this._queue.shift(),ce&&ce(null,...me)),ue.pending=!1,this._drainQueue())),this._queue.push(ue),this._drainQueue()}_drainQueue(oe=!1){if(!this.connected||this._queue.length===0)return;const ce=this._queue[0];ce.pending&&!oe||(ce.pending=!0,ce.tryCount++,this.flags=ce.flags,this.emit.apply(this,ce.args))}packet(oe){oe.nsp=this.nsp,this.io._packet(oe)}onopen(){typeof this.auth=="function"?this.auth(oe=>{this._sendConnectPacket(oe)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(oe){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},oe):oe})}onerror(oe){this.connected||this.emitReserved("connect_error",oe)}onclose(oe,ce){this.connected=!1,delete this.id,this.emitReserved("disconnect",oe,ce)}onpacket(oe){if(oe.nsp===this.nsp)switch(oe.type){case PacketType.CONNECT:oe.data&&oe.data.sid?this.onconnect(oe.data.sid,oe.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(oe);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(oe);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const ue=new Error(oe.data.message);ue.data=oe.data.data,this.emitReserved("connect_error",ue);break}}onevent(oe){const ce=oe.data||[];oe.id!=null&&ce.push(this.ack(oe.id)),this.connected?this.emitEvent(ce):this.receiveBuffer.push(Object.freeze(ce))}emitEvent(oe){if(this._anyListeners&&this._anyListeners.length){const ce=this._anyListeners.slice();for(const ue of ce)ue.apply(this,oe)}super.emit.apply(this,oe),this._pid&&oe.length&&typeof oe[oe.length-1]=="string"&&(this._lastOffset=oe[oe.length-1])}ack(oe){const ce=this;let ue=!1;return function(...pe){ue||(ue=!0,ce.packet({type:PacketType.ACK,id:oe,data:pe}))}}onack(oe){const ce=this.acks[oe.id];typeof ce=="function"&&(ce.apply(this,oe.data),delete this.acks[oe.id])}onconnect(oe,ce){this.id=oe,this.recovered=ce&&this._pid===ce,this._pid=ce,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(oe=>this.emitEvent(oe)),this.receiveBuffer=[],this.sendBuffer.forEach(oe=>{this.notifyOutgoingListeners(oe),this.packet(oe)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(oe=>oe()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(oe){return this.flags.compress=oe,this}get volatile(){return this.flags.volatile=!0,this}timeout(oe){return this.flags.timeout=oe,this}onAny(oe){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(oe),this}prependAny(oe){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(oe),this}offAny(oe){if(!this._anyListeners)return this;if(oe){const ce=this._anyListeners;for(let ue=0;ue0&&ne.jitter<=1?ne.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var ne=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var oe=Math.random(),ce=Math.floor(oe*this.jitter*ne);ne=Math.floor(oe*10)&1?ne+ce:ne-ce}return Math.min(ne,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(ne){this.ms=ne};Backoff.prototype.setMax=function(ne){this.max=ne};Backoff.prototype.setJitter=function(ne){this.jitter=ne};class Manager extends Emitter{constructor(oe,ce){var ue;super(),this.nsps={},this.subs=[],oe&&typeof oe=="object"&&(ce=oe,oe=void 0),ce=ce||{},ce.path=ce.path||"/socket.io",this.opts=ce,installTimerFunctions(this,ce),this.reconnection(ce.reconnection!==!1),this.reconnectionAttempts(ce.reconnectionAttempts||1/0),this.reconnectionDelay(ce.reconnectionDelay||1e3),this.reconnectionDelayMax(ce.reconnectionDelayMax||5e3),this.randomizationFactor((ue=ce.randomizationFactor)!==null&&ue!==void 0?ue:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(ce.timeout==null?2e4:ce.timeout),this._readyState="closed",this.uri=oe;const pe=ce.parser||parser;this.encoder=new pe.Encoder,this.decoder=new pe.Decoder,this._autoConnect=ce.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(oe){return arguments.length?(this._reconnection=!!oe,this):this._reconnection}reconnectionAttempts(oe){return oe===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=oe,this)}reconnectionDelay(oe){var ce;return oe===void 0?this._reconnectionDelay:(this._reconnectionDelay=oe,(ce=this.backoff)===null||ce===void 0||ce.setMin(oe),this)}randomizationFactor(oe){var ce;return oe===void 0?this._randomizationFactor:(this._randomizationFactor=oe,(ce=this.backoff)===null||ce===void 0||ce.setJitter(oe),this)}reconnectionDelayMax(oe){var ce;return oe===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=oe,(ce=this.backoff)===null||ce===void 0||ce.setMax(oe),this)}timeout(oe){return arguments.length?(this._timeout=oe,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(oe){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const ce=this.engine,ue=this;this._readyState="opening",this.skipReconnect=!1;const pe=on(ce,"open",function(){ue.onopen(),oe&&oe()}),me=ye=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",ye),oe?oe(ye):this.maybeReconnectOnOpen()},ge=on(ce,"error",me);if(this._timeout!==!1){const ye=this._timeout,ve=this.setTimeoutFn(()=>{pe(),me(new Error("timeout")),ce.close()},ye);this.opts.autoUnref&&ve.unref(),this.subs.push(()=>{this.clearTimeoutFn(ve)})}return this.subs.push(pe),this.subs.push(ge),this}connect(oe){return this.open(oe)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const oe=this.engine;this.subs.push(on(oe,"ping",this.onping.bind(this)),on(oe,"data",this.ondata.bind(this)),on(oe,"error",this.onerror.bind(this)),on(oe,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(oe){try{this.decoder.add(oe)}catch(ce){this.onclose("parse error",ce)}}ondecoded(oe){nextTick(()=>{this.emitReserved("packet",oe)},this.setTimeoutFn)}onerror(oe){this.emitReserved("error",oe)}socket(oe,ce){let ue=this.nsps[oe];return ue?this._autoConnect&&!ue.active&&ue.connect():(ue=new Socket(this,oe,ce),this.nsps[oe]=ue),ue}_destroy(oe){const ce=Object.keys(this.nsps);for(const ue of ce)if(this.nsps[ue].active)return;this._close()}_packet(oe){const ce=this.encoder.encode(oe);for(let ue=0;ueoe()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(oe,ce){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",oe,ce),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const oe=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const ce=this.backoff.duration();this._reconnecting=!0;const ue=this.setTimeoutFn(()=>{oe.skipReconnect||(this.emitReserved("reconnect_attempt",oe.backoff.attempts),!oe.skipReconnect&&oe.open(pe=>{pe?(oe._reconnecting=!1,oe.reconnect(),this.emitReserved("reconnect_error",pe)):oe.onreconnect()}))},ce);this.opts.autoUnref&&ue.unref(),this.subs.push(()=>{this.clearTimeoutFn(ue)})}}onreconnect(){const oe=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",oe)}}const cache={};function lookup(ne,oe){typeof ne=="object"&&(oe=ne,ne=void 0),oe=oe||{};const ce=url$1(ne,oe.path||"/socket.io"),ue=ce.source,pe=ce.id,me=ce.path,ge=cache[pe]&&me in cache[pe].nsps,ye=oe.forceNew||oe["force new connection"]||oe.multiplex===!1||ge;let ve;return ye?ve=new Manager(ue,oe):(cache[pe]||(cache[pe]=new Manager(ue,oe)),ve=cache[pe]),ce.query&&!oe.query&&(oe.query=ce.queryKey),ve.socket(ce.path,oe)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});class SocketIOTransport extends EventEmitter$2{constructor(ce){super();Gl(this,"client");Gl(this,"socket");this.options=ce,this.socket=lookup(ce.url),this.client=new dist$2.JSONRPCClient(async ue=>{const pe=me=>{me.id===ue.id&&(this.socket.off("response",pe),this.client.receive(me))};this.socket.emit("request",ue),this.socket.on("response",pe)}),this.socket.on("request",({method:ue,params:pe})=>{this.emit(ue,pe)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(ce,ue){return await this.client.request(ce,ue)}}const transports$1={native:{name:"Internal",constructor:NativeTransport},socketio:{name:"socket.io",constructor:SocketIOTransport},ipc:{name:"Web Worker",constructor:IPCTransport}};function getTransport(ne){return transports$1[ne].constructor}const defaultTransport=lodashExports$1.first(lodashExports$1.keys(transports$1));var lodash={exports:{}};/** +`}}]),ne}();_defineProperty(Document$1,"defaults",documentOptions);function createNode$1(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ce=arguments.length>2?arguments[2]:void 0;ce===void 0&&typeof oe=="string"&&(ce=oe,oe=!0);var ue=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),pe=new Schema(ue);return pe.createNode(ne,oe,ce)}var Document=function(ne){_inherits(ce,ne);var oe=_createSuper(ce);function ce(ue){return _classCallCheck(this,ce),oe.call(this,Object.assign({},defaultOptions,ue))}return ce}(Document$1);function parseAllDocuments(ne,oe){var ce=[],ue,pe=_createForOfIteratorHelper(parse$5(ne)),me;try{for(pe.s();!(me=pe.n()).done;){var ge=me.value,ye=new Document(oe);ye.parse(ge,ue),ce.push(ye),ue=ye}}catch(ve){pe.e(ve)}finally{pe.f()}return ce}function parseDocument(ne,oe){var ce=parse$5(ne),ue=new Document(oe).parse(ce[0]);if(ce.length>1){var pe="Source contains multiple documents; please use YAML.parseAllDocuments()";ue.errors.unshift(new YAMLSemanticError(ce[1],pe))}return ue}function parse$4(ne,oe){var ce=parseDocument(ne,oe);if(ce.warnings.forEach(function(ue){return warn(ue)}),ce.errors.length>0)throw ce.errors[0];return ce.toJSON()}function stringify$2(ne,oe){var ce=new Document(oe);return ce.contents=ne,String(ce)}var YAML={createNode:createNode$1,defaultOptions,Document,parse:parse$4,parseAllDocuments,parseCST:parse$5,parseDocument,scalarOptions,stringify:stringify$2};const dist$3=Object.freeze(Object.defineProperty({__proto__:null,YAML},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(dist$3);var browser=require$$0.YAML;function Button({children:ne,sx:oe,...ce}){const ue=usePaper();return jsxRuntimeExports.jsx(MuiButton,{disableElevation:!0,variant:"outlined",color:"primary",...ce,sx:{minWidth:0,borderColor:pe=>alpha$1(pe.palette.text.primary,pe.palette.action.activatedOpacity),...ce.variant==="text"?void 0:ue(1),...oe},children:jsxRuntimeExports.jsx(Box$1,{sx:{color:"text.primary",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:ne})})}function Image$1(ne){return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:({open:oe,isOpen:ce})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Fade$1,{in:ce,children:jsxRuntimeExports.jsx("img",{...ne,onLoad:oe})})})})}const paths$1=Object.assign({"/public/recipes/9-tiles.workspace":()=>__vitePreload(()=>import("./9-tiles-1f224294.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/a-star-grid-search-heat-map.workspace":()=>__vitePreload(()=>import("./a-star-grid-search-heat-map-0f76793f.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/a-star-grid-search.workspace":()=>__vitePreload(()=>import("./a-star-grid-search-ffae5751.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/dynamic-star-craft.workspace":()=>__vitePreload(()=>import("./dynamic-star-craft-6a733d35.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/network-bidirectional-a-star.workspace":()=>__vitePreload(()=>import("./network-bidirectional-a-star-4c1e2d86.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/palette-reference.workspace":()=>__vitePreload(()=>import("./palette-reference-9c0fac30.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/polyanya.workspace":()=>__vitePreload(()=>import("./polyanya-fc7ef19b.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/primitives-reference.workspace":()=>__vitePreload(()=>import("./primitives-reference-9d7af09e.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/rayscan.workspace":()=>__vitePreload(()=>import("./rayscan-202b7804.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/variables-reference.workspace":()=>__vitePreload(()=>import("./variables-reference-b00bbb42.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/weighted-a-star.workspace":()=>__vitePreload(()=>import("./weighted-a-star-756c8812.js"),[],import.meta.url).then(ne=>ne.default)}),metaPaths=Object.assign({"/public/recipes/9-tiles.workspace.meta":()=>__vitePreload(()=>import("./9-tiles.workspace-59d4551f.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/a-star-grid-search-heat-map.workspace.meta":()=>__vitePreload(()=>import("./a-star-grid-search-heat-map.workspace-3224cf75.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/a-star-grid-search.workspace.meta":()=>__vitePreload(()=>import("./a-star-grid-search.workspace-f767f34b.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/dynamic-star-craft.workspace.meta":()=>__vitePreload(()=>import("./dynamic-star-craft.workspace-5fa26288.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/network-bidirectional-a-star.workspace.meta":()=>__vitePreload(()=>import("./network-bidirectional-a-star.workspace-e2672c0c.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/palette-reference.workspace.meta":()=>__vitePreload(()=>import("./palette-reference.workspace-76a89235.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/polyanya.workspace.meta":()=>__vitePreload(()=>import("./polyanya.workspace-2b25151a.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/primitives-reference.workspace.meta":()=>__vitePreload(()=>import("./primitives-reference.workspace-cc4c7f83.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/rayscan.workspace.meta":()=>__vitePreload(()=>import("./rayscan.workspace-b6c007ed.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/variables-reference.workspace.meta":()=>__vitePreload(()=>import("./variables-reference.workspace-4bafa382.js"),[],import.meta.url).then(ne=>ne.default),"/public/recipes/weighted-a-star.workspace.meta":()=>__vitePreload(()=>import("./weighted-a-star.workspace-44781276.js"),[],import.meta.url).then(ne=>ne.default)});function stripExtension$1(ne){return ne.split(".")[0]}function basename$1(ne){return ne.split("/").pop()}async function getMeta(ne){const oe=metaPaths[ne.replace(/workspace$/,"workspace.meta")],ce=await(oe==null?void 0:oe());if(ce){const ue=await fetch(ce);return browser.parse(await ue.text())}}const getFileInfo$1=memoizee$1(async(ne,oe)=>({name:lodashExports$1.chain(ne).thru(basename$1).thru(stripExtension$1).startCase().value(),path:await oe(),...await getMeta(ne)}),{normalizer:([ne])=>ne}),makeAvatar=ne=>oe=>jsxRuntimeExports.jsx(Avatar$1,{sx:oe,children:ne});function getAuthor(ne){if(ne){try{const{protocol:oe,pathname:ce}=new URL(ne);switch(oe){case"github:":return{name:ce,avatar:ue=>jsxRuntimeExports.jsx("a",{href:`https://github.com/${ce}`,target:"_blank",rel:"noreferrer",children:jsxRuntimeExports.jsx(Avatar$1,{sx:ue,children:jsxRuntimeExports.jsx(Image$1,{width:"100%",height:"100%",src:`https://github.com/${ce}.png`})})})};default:break}}catch{}return{name:ne,avatar:makeAvatar(ne[0])}}return{name:"No author",avatar:makeAvatar()}}const ellipsisProps={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"};function FeatureCard2({entry:ne,onOpenClick:oe,search:ce}){const{result:ue,loading:pe}=useAsync(async()=>{if(ne)return await getFileInfo$1(...ne)},[ne]),{name:me,description:ge,screenshots:ye,author:ve,path:xe,size:_e}=ue??{};return lodashExports$1.upperCase(browser.stringify(ue)).includes(lodashExports$1.upperCase(ce))?jsxRuntimeExports.jsx(Box$1,{sx:{p:1},children:jsxRuntimeExports.jsx(FeatureCard,{loading:pe,name:me,description:ge??"No description",image:lodashExports$1.first(ye),author:ve,onOpenClick:()=>{oe==null||oe(xe)},size:_e})}):void 0}function FeatureCard({name:ne,description:oe,image:ce,author:ue,size:pe,onOpenClick:me,loading:ge,...ye}){const[{"appearance/acrylic":ve}]=useSettings(),xe=usePaper(),_e=useTheme$1(),{name:Se,avatar:$e}=reactExports.useMemo(()=>getAuthor(ue),[ue]);return jsxRuntimeExports.jsx(Card$1,{variant:"outlined",sx:{...xe(1),position:"relative",height:"100%"},...ye,children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ve&&jsxRuntimeExports.jsx(Fade$1,{in:!ge,timeout:_e.transitions.duration.complex,children:jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(Box$1,{sx:{zIndex:-1,filter:"blur(48px)",opacity:.1,position:"absolute",width:"100%",height:"100%",backgroundImage:`url("${ce}")`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"-52px -52px"}})})}),jsxRuntimeExports.jsx(CardHeader$1,{sx:{alignItems:"flex-start","> .MuiCardHeader-content":{overflow:"hidden"}},avatar:jsxRuntimeExports.jsx(Box$1,{sx:{...xe(1),border:"none",borderRadius:1,width:64,height:64,overflow:"hidden"},children:jsxRuntimeExports.jsx(Fade$1,{in:!!ce,children:jsxRuntimeExports.jsx(Box$1,{sx:{width:64,height:64,backgroundImage:`url("${ce}")`,backgroundSize:"100%",backgroundPosition:"center"}})})}),titleTypographyProps:ellipsisProps,title:ge?jsxRuntimeExports.jsx(Placeholder$3,{}):ne||"Untitled",subheaderTypographyProps:ellipsisProps,subheader:jsxRuntimeExports.jsxs(Stack$1,{gap:2,sx:{pt:1,alignItems:"flex-start"},children:[jsxRuntimeExports.jsx(Type$2,{component:"div",sx:{...ellipsisProps,maxWidth:"100%",width:"100%",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,whiteSpace:"break-spaces",height:60},children:ge?lodashExports$1.map([80,30],Re=>jsxRuntimeExports.jsx(Placeholder$3,{width:`${Re}%`},Re)):oe||"No description"}),jsxRuntimeExports.jsxs(Stack$1,{direction:"row",alignItems:"center",gap:1,children:[$e==null?void 0:$e({width:18,height:18,fontSize:"0.8rem"}),jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"caption",children:ge?jsxRuntimeExports.jsx(Placeholder$3,{width:120}):Se})]}),jsxRuntimeExports.jsx(Button,{disabled:ge,onClick:me,startIcon:jsxRuntimeExports.jsx(WorkspacesOutlined,{}),sx:xe(2),children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",gap:1,children:[jsxRuntimeExports.jsx(Type$2,{component:"div",children:"Open"}),!!pe&&jsxRuntimeExports.jsxs(Type$2,{component:"div",color:"text.secondary",children:[lodashExports$1.round(pe/1024/1024,2)," MB"]})]})})]})})]})})}const CONTENT_WIDTH=940,entries2=lodashExports$1.entries(paths$1);function ExplorePage({template:ne}){const oe=useTheme$1(),[{"behaviour/showOnStart":ce},ue]=useSettings(),pe=useSnackbar(),{controls:me,onChange:ge,state:ye,dragHandle:ve,isViewTree:xe}=useViewTreeContext(),{close:_e}=useFullscreenModalContext(),$e=useSmallDisplay()||xe,[Re,Ae]=reactExports.useState(""),[Ie,ke]=reactExports.useState("explore"),{load:Be}=useWorkspace(),Ne=useLoadingState(),Fe=ze=>Ne(async()=>{try{pe(`Loading ${basename$1(ze)}...`);const Ge=await fetch(ze);Ge.ok||pe(`Couldn't load ${basename$1(ze)}`,"Network error",{error:!0});const Ze=await Ge.blob(),Dt=new File([Ze],basename$1(ze),{type:Ze.type});Be(Dt)}catch(Ge){pe(`Couldn't load ${basename$1(ze)}`,`${Ge}`,{error:!0})}}),Ue=ce==="explore";function We(ze){ue(()=>({"behaviour/showOnStart":ze?"explore":void 0}))}function qe(){const ze=new Rt(oe.palette.primary.main).H,Ge=new Rt("rgba(0,50,255,.2)").H;return jsxRuntimeExports.jsx(Box$1,{sx:{position:"absolute",top:"-100%",left:"calc(50%)",width:"100%",zIndex:-1,transform:"translateX(-50%) rotate(180deg)",height:"150%",filter:`hue-rotate(${ze-Ge}deg)`,minWidth:640,opacity:.75,background:"radial-gradient(46.56% 45.08% at 56.04% 55.33%,rgba(0,50,255,.2) 0,transparent 100%),radial-gradient(46.69% 41.74% at 69.64% 60.81%,rgba(192,59,196,.2) 0,transparent 100%),radial-gradient(59.78% 45.73% at 30.42% 58.68%,rgba(0,120,212,.2) 0,transparent 100%),radial-gradient(32.53% 31.57% at 50% 66.82%,rgba(70,54,104,.2) 0,transparent 100%)"}})}return jsxRuntimeExports.jsx(TabContext,{value:Ie,children:jsxRuntimeExports.jsxs(ne,{onChange:ge,stack:ye,children:[jsxRuntimeExports.jsx(ne.Title,{children:"Explore"}),jsxRuntimeExports.jsx(ne.Key,{children:"explore"}),jsxRuntimeExports.jsx(ne.Handle,{children:ve}),jsxRuntimeExports.jsx(ne.Options,{children:jsxRuntimeExports.jsxs(TabList$1,{onChange:(ze,Ge)=>ke(Ge),sx:{mx:xe?0:-1},children:[jsxRuntimeExports.jsx(Tab$1,{label:"Examples",value:"explore"}),jsxRuntimeExports.jsx(Tab$1,{label:"Guides",value:"guides"})]})}),jsxRuntimeExports.jsx(ne.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(Box$1,{sx:$e?void 0:{p:4,maxWidth:CONTENT_WIDTH,mx:"auto"},children:jsxRuntimeExports.jsxs(Box$1,{pt:6,children:[jsxRuntimeExports.jsxs(TabPanel$1,{value:"explore",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:4,sx:{textAlign:"center"},children:[jsxRuntimeExports.jsx(Type$2,{component:"div",variant:$e?"h6":"h4",children:"Examples"}),jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"subtitle2",color:"text.secondary",children:"Browse a library of included and community-made examples"})]}),oe.palette.mode==="dark"&&qe(),jsxRuntimeExports.jsx(Box$1,{px:2,pb:4,sx:{textAlign:"center"},children:jsxRuntimeExports.jsx(TextField$1,{...textFieldProps,size:$e?"small":"medium",hiddenLabel:!0,fullWidth:!0,sx:{maxWidth:480},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment$1,{position:"start",children:jsxRuntimeExports.jsx(SearchOutlined,{})})},onChange:ze=>Ae(ze.target.value),placeholder:"Search examples"})}),jsxRuntimeExports.jsx(Box$1,{sx:{p:1,display:"grid",gridAutoFlow:"row",gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 320px), 1fr))"},children:lodashExports$1.map(entries2,ze=>jsxRuntimeExports.jsx(FeatureCard2,{search:Re,entry:ze,onOpenClick:Ge=>{Fe(Ge),_e==null||_e()}},ze[0]))})]}),jsxRuntimeExports.jsxs(TabPanel$1,{value:"guides",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:4,sx:{textAlign:"center"},children:[jsxRuntimeExports.jsx(Type$2,{component:"div",variant:$e?"h6":"h4",children:"Guides"}),jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"subtitle2",color:"text.secondary",children:`Learn how to use ${name} and explore ${name} features`})]}),jsxRuntimeExports.jsxs(Stack$1,{sx:{p:4,maxWidth:480,mx:"auto",textAlign:"center",alignItems:"center"},gap:2,children:[jsxRuntimeExports.jsx(Type$2,{component:"div",children:"We're still working on this feature. Check out our documentation instead."}),jsxRuntimeExports.jsx(Button,{onClick:()=>window.open(docs,"_blank"),sx:{maxWidth:"min-content"},startIcon:jsxRuntimeExports.jsx(LaunchOutlined,{}),children:"Open Documentation"})]})]})]})})})})}),jsxRuntimeExports.jsxs(ne.Extras,{children:[!$e&&jsxRuntimeExports.jsx(FormControlLabel$1,{label:"Show on start-up",labelPlacement:"start",sx:{ml:"auto",mr:-5,minWidth:"fit-content"},control:jsxRuntimeExports.jsx(Checkbox$1,{defaultChecked:Ue,onChange:(ze,Ge)=>We==null?void 0:We(Ge)})}),me]})]})})}function InfoPage({template:ne}){const{controls:oe,onChange:ce,state:ue,dragHandle:pe}=useViewTreeContext(),[me,ge]=useLog();return jsxRuntimeExports.jsxs(ne,{onChange:ce,stack:ue,children:[jsxRuntimeExports.jsx(ne.Key,{children:"info"}),jsxRuntimeExports.jsx(ne.Title,{children:"Logs"}),jsxRuntimeExports.jsx(ne.Handle,{children:pe}),jsxRuntimeExports.jsx(ne.Options,{children:jsxRuntimeExports.jsx(FeaturePickerButton,{disabled:!me.length,icon:jsxRuntimeExports.jsx(CloseOutlined,{}),onClick:()=>ge(()=>({action:"clear"})),children:"Clear"})}),jsxRuntimeExports.jsx(ne.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:me.length?jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(List$2,{sx:{pt:6},children:lodashExports$1.map(me,(ye,ve)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(ListItemText$1,{primary:ye.content,secondary:ye.timestamp})}),jsxRuntimeExports.jsx(Divider$1,{})]},ve))})}):jsxRuntimeExports.jsx(Placeholder$2,{pt:6,label:"Logs",icon:jsxRuntimeExports.jsx(ListOutlined,{})})})}),jsxRuntimeExports.jsx(ne.Extras,{children:oe})]})}const compositeOperations=["color","color-burn","color-dodge","copy","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","lighten","lighter","luminosity","multiply","overlay","saturation","screen","soft-light","source-atop","source-in","source-out","source-over","xor"];function useDraft(ne,oe,ce=300,ue=[]){const[pe,me]=reactExports.useState(ne);reactExports.useEffect(()=>{ne&&requestIdleCallback(()=>me(lodashExports$1.merge(pe,lodashExports$1.omit(ne,...ue))))},[me,ne]);const ge=reactExports.useMemo(()=>lodashExports$1.debounce(ye=>oe==null?void 0:oe(ye),ce),[oe,ce]);return[pe,ye=>{const ve=ye(pe);me(ve),ge(ve)}]}function LayerEditor({value:ne,onValueChange:oe}){var Se,$e,Re,Ae;const ce=usePaper(),[ue,pe]=useDraft(ne,oe,300,["name","source.type"]),me=Ie=>jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"overline",color:"text.secondary",sx:{pt:1},children:Ie}),ge=Ie=>jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"body1",children:Ie}),ye=(Ie,ke)=>jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[ge(Ie),jsxRuntimeExports.jsx(Space,{flex:1}),ke]}),ve=Ie=>Ie.map(ke=>({id:ke,name:lodashExports$1.startCase(ke)})),xe=ue.name||inferLayerName(ne),_e=($e=(Se=getController(ne))==null?void 0:Se.error)==null?void 0:$e.call(Se,ne);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ManagedModal,{popover:!0,slotProps:{popover:{anchorOrigin:{horizontal:-12,vertical:-12}}},appBar:{children:"Edit Layer"},trigger:Ie=>{var ke;return jsxRuntimeExports.jsx(ButtonBase$1,{onClick:Ie,className:ue.key,sx:{flex:1,display:"block",textAlign:"left",px:2},children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",direction:"row",gap:2,children:[jsxRuntimeExports.jsx(Stack$1,{sx:{...ce(.5),alignItems:"center",justifyContent:"center",width:36,height:36,color:"action.disabled"},children:getController(ne).icon}),jsxRuntimeExports.jsxs(Box$1,{sx:{py:1.5,flex:1,width:0,ml:0,overflow:"hidden","> *":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[jsxRuntimeExports.jsx(Type$2,{component:"div",children:xe}),jsxRuntimeExports.jsx(Type$2,{component:"div",variant:"body2",color:"text.secondary",children:lodashExports$1.startCase((ke=ne.source)==null?void 0:ke.type)})]}),!!_e&&jsxRuntimeExports.jsx(Tooltip$1,{title:_e,children:jsxRuntimeExports.jsx(Chip$1,{sx:{mr:-2,...lodashExports$1.omit(ce(1),"borderRadius"),color:Be=>Be.palette.error.main,flex:0},label:`${lodashExports$1.truncate(`${_e}`,{length:8})}`,size:"small"})})]})})},children:jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(TextField$1,{sx:{mb:2},autoComplete:"off",autoFocus:!0,placeholder:inferLayerName(ue),fullWidth:!0,variant:"filled",label:"Layer Name",defaultValue:ue.name??"",onChange:Ie=>pe==null?void 0:pe(ke=>lodashExports$1.set(ke,"name",Ie.target.value))}),jsxRuntimeExports.jsxs(Box$1,{sx:{mx:-2,pb:1},children:[jsxRuntimeExports.jsx(Tabs$1,{variant:"fullWidth",onChange:(Ie,ke)=>pe==null?void 0:pe(Be=>lodashExports$1.set(Be,"source",{type:ke})),value:((Re=ue.source)==null?void 0:Re.type)??lodashExports$1.first(lodashExports$1.keys(getControllers()))??"",children:lodashExports$1.keys(getControllers()).map(Ie=>jsxRuntimeExports.jsx(Tab$1,{label:lodashExports$1.startCase(Ie),value:Ie},Ie))}),jsxRuntimeExports.jsx(Divider$1,{sx:{width:"100%"}})]}),me("Source Options"),((Ae=ue.source)==null?void 0:Ae.type)&&reactExports.createElement(getController(ue).editor,{onChange:pe,value:ue}),me("Layer Options"),ye("Transparency",jsxRuntimeExports.jsx(FeaturePicker,{label:"Transparency",items:["0","25","50","75"].map(Ie=>({id:Ie,name:`${Ie}%`})),value:ue.transparency??"0",arrow:!0,onChange:Ie=>pe==null?void 0:pe(ke=>lodashExports$1.set(ke,"transparency",Ie))})),ye("Display Mode",jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,label:"Display Mode",value:ue.displayMode??"source-over",items:ve(compositeOperations),onChange:Ie=>pe==null?void 0:pe(ke=>lodashExports$1.set(ke,"displayMode",Ie))}))]})})})}function LayerListEditor(){const[{layers:ne=[]},oe]=useLayers();return jsxRuntimeExports.jsx(Box$1,{sx:{overflow:"auto hidden",width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{sx:{mb:2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,icon:null,value:ne,deletable:!0,orderable:!0,extras:ce=>jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:ue=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Menu$1,{...bindMenu(ue),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{p:0},children:[{name:"Fit Layer",key:"fit-layer",action:()=>oe(({layers:pe})=>({layers:lodashExports$1.map(pe,me=>({...me,viewKey:me.key===(ce==null?void 0:ce.key)?nanoid$1():void 0}))}))}].map(({name:pe,key:me,action:ge})=>jsxRuntimeExports.jsx(MenuItem$1,{onClick:()=>{ge==null||ge(),ue.close()},children:pe},me))})}),jsxRuntimeExports.jsx(IconButton$1,{...bindTrigger(ue),sx:{color:pe=>pe.palette.text.secondary},children:jsxRuntimeExports.jsx(MoreVertOutlined,{})})]})}),renderEditor:({extras:ce,handle:ue,value:pe,onValueChange:me})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ue,jsxRuntimeExports.jsx(LayerEditor,{value:pe,onValueChange:me}),ce]}),create:()=>({source:{type:"trace",trace:{}}}),onChange:ce=>requestIdleCallback(()=>oe(()=>({layers:ce})),{timeout:300}),addItemLabel:"Layer",placeholder:jsxRuntimeExports.jsx(Box$1,{pt:2,children:"Get started by adding a layer."}),onFocus:ce=>{const ue=lodashExports$1.head(document.getElementsByClassName(ce));ue&&"click"in ue&&typeof ue.click=="function"&&ue.click()}})})})}function LayersPage({template:ne}){const{controls:oe,onChange:ce,state:ue,dragHandle:pe}=useViewTreeContext();return jsxRuntimeExports.jsxs(ne,{onChange:ce,stack:ue,children:[jsxRuntimeExports.jsx(ne.Key,{children:"layers"}),jsxRuntimeExports.jsx(ne.Title,{children:"Layers"}),jsxRuntimeExports.jsx(ne.Handle,{children:pe}),jsxRuntimeExports.jsx(ne.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Scroll,{y:!0,style:{width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{pt:6,children:jsxRuntimeExports.jsx(LayerListEditor,{})})})})}),jsxRuntimeExports.jsx(ne.Extras,{children:oe})]})}var dist$2={},client$1={},models={};(function(ne){var oe=commonjsGlobal&&commonjsGlobal.__extends||function(){var Re=function(Ae,Ie){return Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,Be){ke.__proto__=Be}||function(ke,Be){for(var Ne in Be)Object.prototype.hasOwnProperty.call(Be,Ne)&&(ke[Ne]=Be[Ne])},Re(Ae,Ie)};return function(Ae,Ie){if(typeof Ie!="function"&&Ie!==null)throw new TypeError("Class extends value "+String(Ie)+" is not a constructor or null");Re(Ae,Ie);function ke(){this.constructor=Ae}Ae.prototype=Ie===null?Object.create(Ie):(ke.prototype=Ie.prototype,new ke)}}();Object.defineProperty(ne,"__esModule",{value:!0}),ne.createJSONRPCNotification=ne.createJSONRPCRequest=ne.createJSONRPCSuccessResponse=ne.createJSONRPCErrorResponse=ne.JSONRPCErrorCode=ne.JSONRPCErrorException=ne.isJSONRPCResponses=ne.isJSONRPCResponse=ne.isJSONRPCRequests=ne.isJSONRPCRequest=ne.isJSONRPCID=ne.JSONRPC=void 0,ne.JSONRPC="2.0";var ce=function(Re){return typeof Re=="string"||typeof Re=="number"||Re===null};ne.isJSONRPCID=ce;var ue=function(Re){return Re.jsonrpc===ne.JSONRPC&&Re.method!==void 0&&Re.result===void 0&&Re.error===void 0};ne.isJSONRPCRequest=ue;var pe=function(Re){return Array.isArray(Re)&&Re.every(ne.isJSONRPCRequest)};ne.isJSONRPCRequests=pe;var me=function(Re){return Re.jsonrpc===ne.JSONRPC&&Re.id!==void 0&&(Re.result!==void 0||Re.error!==void 0)};ne.isJSONRPCResponse=me;var ge=function(Re){return Array.isArray(Re)&&Re.every(ne.isJSONRPCResponse)};ne.isJSONRPCResponses=ge;var ye=function(Re,Ae,Ie){var ke={code:Re,message:Ae};return Ie!=null&&(ke.data=Ie),ke},ve=function(Re){oe(Ae,Re);function Ae(Ie,ke,Be){var Ne=Re.call(this,Ie)||this;return Object.setPrototypeOf(Ne,Ae.prototype),Ne.code=ke,Ne.data=Be,Ne}return Ae.prototype.toObject=function(){return ye(this.code,this.message,this.data)},Ae}(Error);ne.JSONRPCErrorException=ve,function(Re){Re[Re.ParseError=-32700]="ParseError",Re[Re.InvalidRequest=-32600]="InvalidRequest",Re[Re.MethodNotFound=-32601]="MethodNotFound",Re[Re.InvalidParams=-32602]="InvalidParams",Re[Re.InternalError=-32603]="InternalError"}(ne.JSONRPCErrorCode||(ne.JSONRPCErrorCode={}));var xe=function(Re,Ae,Ie,ke){return{jsonrpc:ne.JSONRPC,id:Re,error:ye(Ae,Ie,ke)}};ne.createJSONRPCErrorResponse=xe;var _e=function(Re,Ae){return{jsonrpc:ne.JSONRPC,id:Re,result:Ae??null}};ne.createJSONRPCSuccessResponse=_e;var Se=function(Re,Ae,Ie){return{jsonrpc:ne.JSONRPC,id:Re,method:Ae,params:Ie}};ne.createJSONRPCRequest=Se;var $e=function(Re,Ae){return{jsonrpc:ne.JSONRPC,method:Re,params:Ae}};ne.createJSONRPCNotification=$e})(models);var internal$1={};Object.defineProperty(internal$1,"__esModule",{value:!0});internal$1.DefaultErrorCode=void 0;internal$1.DefaultErrorCode=0;var __awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(ne,oe,ce,ue){function pe(me){return me instanceof ce?me:new ce(function(ge){ge(me)})}return new(ce||(ce=Promise))(function(me,ge){function ye(_e){try{xe(ue.next(_e))}catch(Se){ge(Se)}}function ve(_e){try{xe(ue.throw(_e))}catch(Se){ge(Se)}}function xe(_e){_e.done?me(_e.value):pe(_e.value).then(ye,ve)}xe((ue=ue.apply(ne,oe||[])).next())})},__generator$2=commonjsGlobal&&commonjsGlobal.__generator||function(ne,oe){var ce={label:0,sent:function(){if(me[0]&1)throw me[1];return me[1]},trys:[],ops:[]},ue,pe,me,ge;return ge={next:ye(0),throw:ye(1),return:ye(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function ye(xe){return function(_e){return ve([xe,_e])}}function ve(xe){if(ue)throw new TypeError("Generator is already executing.");for(;ge&&(ge=0,xe[0]&&(ce=0)),ce;)try{if(ue=1,pe&&(me=xe[0]&2?pe.return:xe[0]?pe.throw||((me=pe.return)&&me.call(pe),0):pe.next)&&!(me=me.call(pe,xe[1])).done)return me;switch(pe=0,me&&(xe=[xe[0]&2,me.value]),xe[0]){case 0:case 1:me=xe;break;case 4:return ce.label++,{value:xe[1],done:!1};case 5:ce.label++,pe=xe[1],xe=[0];continue;case 7:xe=ce.ops.pop(),ce.trys.pop();continue;default:if(me=ce.trys,!(me=me.length>0&&me[me.length-1])&&(xe[0]===6||xe[0]===2)){ce=0;continue}if(xe[0]===3&&(!me||xe[1]>me[0]&&xe[1]0&&me[me.length-1])&&(xe[0]===6||xe[0]===2)){ce=0;continue}if(xe[0]===3&&(!me||xe[1]>me[0]&&xe[1]0&&me[me.length-1])&&(xe[0]===6||xe[0]===2)){ce=0;continue}if(xe[0]===3&&(!me||xe[1]>me[0]&&xe[1]{const pe=({data:me})=>{me.id===ue.id&&(this.rpc.receive(me),this.worker.removeEventListener("message",pe))};this.worker.postMessage(ue),this.worker.addEventListener("message",pe)})}connect(){return this.worker.postMessage(this.options.url),new Promise(ce=>{const ue=()=>{ce(),this.worker.removeEventListener("message",ue)};this.worker.addEventListener("message",ue)})}async disconnect(){this.worker.terminate()}async call(ce,ue){return await this.rpc.request(ce,ue)}}var requiresPort=function(oe,ce){if(ce=ce.split(":")[0],oe=+oe,!oe)return!1;switch(ce){case"http":case"ws":return oe!==80;case"https":case"wss":return oe!==443;case"ftp":return oe!==21;case"gopher":return oe!==70;case"file":return!1}return oe!==0},querystringify$1={},has$4=Object.prototype.hasOwnProperty,undef;function decode$3(ne){try{return decodeURIComponent(ne.replace(/\+/g," "))}catch{return null}}function encode$3(ne){try{return encodeURIComponent(ne)}catch{return null}}function querystring$1(ne){for(var oe=/([^=?#&]+)=?([^&]*)/g,ce={},ue;ue=oe.exec(ne);){var pe=decode$3(ue[1]),me=decode$3(ue[2]);pe===null||me===null||pe in ce||(ce[pe]=me)}return ce}function querystringify(ne,oe){oe=oe||"";var ce=[],ue,pe;typeof oe!="string"&&(oe="?");for(pe in ne)if(has$4.call(ne,pe)){if(ue=ne[pe],!ue&&(ue===null||ue===undef||isNaN(ue))&&(ue=""),pe=encode$3(pe),ue=encode$3(ue),pe===null||ue===null)continue;ce.push(pe+"="+ue)}return ce.length?oe+ce.join("&"):""}querystringify$1.stringify=querystringify;querystringify$1.parse=querystring$1;var required=requiresPort,qs=querystringify$1,controlOrWhitespace=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,CRHTLF=/[\n\r\t]/g,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,port=/:\d+$/,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/;function trimLeft(ne){return(ne||"").toString().replace(controlOrWhitespace,"")}var rules=[["#","hash"],["?","query"],function(oe,ce){return isSpecial(ce.protocol)?oe.replace(/\\/g,"/"):oe},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(ne){var oe;typeof window<"u"?oe=window:typeof commonjsGlobal<"u"?oe=commonjsGlobal:typeof self<"u"?oe=self:oe={};var ce=oe.location||{};ne=ne||ce;var ue={},pe=typeof ne,me;if(ne.protocol==="blob:")ue=new Url$1(unescape(ne.pathname),{});else if(pe==="string"){ue=new Url$1(ne,{});for(me in ignore)delete ue[me]}else if(pe==="object"){for(me in ne)me in ignore||(ue[me]=ne[me]);ue.slashes===void 0&&(ue.slashes=slashes.test(ne.href))}return ue}function isSpecial(ne){return ne==="file:"||ne==="ftp:"||ne==="http:"||ne==="https:"||ne==="ws:"||ne==="wss:"}function extractProtocol(ne,oe){ne=trimLeft(ne),ne=ne.replace(CRHTLF,""),oe=oe||{};var ce=protocolre.exec(ne),ue=ce[1]?ce[1].toLowerCase():"",pe=!!ce[2],me=!!ce[3],ge=0,ye;return pe?me?(ye=ce[2]+ce[3]+ce[4],ge=ce[2].length+ce[3].length):(ye=ce[2]+ce[4],ge=ce[2].length):me?(ye=ce[3]+ce[4],ge=ce[3].length):ye=ce[4],ue==="file:"?ge>=2&&(ye=ye.slice(2)):isSpecial(ue)?ye=ce[4]:ue?pe&&(ye=ye.slice(2)):ge>=2&&isSpecial(oe.protocol)&&(ye=ce[4]),{protocol:ue,slashes:pe||isSpecial(ue),slashesCount:ge,rest:ye}}function resolve$1(ne,oe){if(ne==="")return oe;for(var ce=(oe||"/").split("/").slice(0,-1).concat(ne.split("/")),ue=ce.length,pe=ce[ue-1],me=!1,ge=0;ue--;)ce[ue]==="."?ce.splice(ue,1):ce[ue]===".."?(ce.splice(ue,1),ge++):ge&&(ue===0&&(me=!0),ce.splice(ue,1),ge--);return me&&ce.unshift(""),(pe==="."||pe==="..")&&ce.push(""),ce.join("/")}function Url$1(ne,oe,ce){if(ne=trimLeft(ne),ne=ne.replace(CRHTLF,""),!(this instanceof Url$1))return new Url$1(ne,oe,ce);var ue,pe,me,ge,ye,ve,xe=rules.slice(),_e=typeof oe,Se=this,$e=0;for(_e!=="object"&&_e!=="string"&&(ce=oe,oe=null),ce&&typeof ce!="function"&&(ce=qs.parse),oe=lolcation(oe),pe=extractProtocol(ne||"",oe),ue=!pe.protocol&&!pe.slashes,Se.slashes=pe.slashes||ue&&oe.slashes,Se.protocol=pe.protocol||oe.protocol||"",ne=pe.rest,(pe.protocol==="file:"&&(pe.slashesCount!==2||windowsDriveLetter.test(ne))||!pe.slashes&&(pe.protocol||pe.slashesCount<2||!isSpecial(Se.protocol)))&&(xe[3]=[/(.*)/,"pathname"]);$e__vitePreload(()=>import("./alien-81a163a8.js"),[],import.meta.url).then(ne=>ne.default),"/public/maps/maze-medium.grid":()=>__vitePreload(()=>import("./maze-medium-a955cbb9.js"),[],import.meta.url).then(ne=>ne.default),"/public/maps/maze-small.grid":()=>__vitePreload(()=>import("./maze-small-85d74cf5.js"),[],import.meta.url).then(ne=>ne.default),"/public/maps/random-32x32.grid":()=>__vitePreload(()=>import("./random-32x32-1b96f0c8.js"),[],import.meta.url).then(ne=>ne.default)});function ext(ne){return ne.split(".")[1]}function stripExtension(ne){return ne.split(".")[0]}function basename(ne){return ne.split("/").pop()}const getFileInfo=memoizee$1(async(ne,oe)=>({id:`basic-maps${ne}`,name:lodashExports$1.chain(ne).thru(basename).thru(stripExtension).startCase().value(),path:await oe(),format:ext(ne)}),{normalizer:([ne])=>ne}),getFiles=async()=>await Promise.all(lodashExports$1.map(lodashExports$1.entries(paths),ne=>getFileInfo(...ne))),internal={"basic-maps":async(ne,oe)=>{switch(ne){case"about":return{name:"Basic Maps",description:"A collection of basic grid maps",version:"1.2.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/maps":return await getFiles();case"features/map":{const ce=await getFiles(),ue=lodashExports$1.find(ce,{id:oe==null?void 0:oe.id});if(ue){const pe=await fetch(ue.path);return{...ue,content:await pe.text()}}}}}};class NativeTransport extends EventEmitter$2{constructor(ce){super();Gl(this,"handler");this.options=ce;const{hostname:ue}=url$2(ce.url);this.handler=internal[ue]}async connect(){}async disconnect(){}async call(ce,ue){return await this.handler(ce,ue)}}const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(ne=>{PACKET_TYPES_REVERSE[PACKET_TYPES[ne]]=ne});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=ne=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(ne):ne&&ne.buffer instanceof ArrayBuffer,encodePacket=({type:ne,data:oe},ce,ue)=>withNativeBlob$1&&oe instanceof Blob?ce?ue(oe):encodeBlobAsBase64(oe,ue):withNativeArrayBuffer$2&&(oe instanceof ArrayBuffer||isView$1(oe))?ce?ue(oe):encodeBlobAsBase64(new Blob([oe]),ue):ue(PACKET_TYPES[ne]+(oe||"")),encodeBlobAsBase64=(ne,oe)=>{const ce=new FileReader;return ce.onload=function(){const ue=ce.result.split(",")[1];oe("b"+(ue||""))},ce.readAsDataURL(ne)};function toArray(ne){return ne instanceof Uint8Array?ne:ne instanceof ArrayBuffer?new Uint8Array(ne):new Uint8Array(ne.buffer,ne.byteOffset,ne.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(ne,oe){if(withNativeBlob$1&&ne.data instanceof Blob)return ne.data.arrayBuffer().then(toArray).then(oe);if(withNativeArrayBuffer$2&&(ne.data instanceof ArrayBuffer||isView$1(ne.data)))return oe(toArray(ne.data));encodePacket(ne,!1,ce=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),oe(TEXT_ENCODER.encode(ce))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let ne=0;ne{let oe=ne.length*.75,ce=ne.length,ue,pe=0,me,ge,ye,ve;ne[ne.length-1]==="="&&(oe--,ne[ne.length-2]==="="&&oe--);const xe=new ArrayBuffer(oe),_e=new Uint8Array(xe);for(ue=0;ue>4,_e[pe++]=(ge&15)<<4|ye>>2,_e[pe++]=(ye&3)<<6|ve&63;return xe},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(ne,oe)=>{if(typeof ne!="string")return{type:"message",data:mapBinary(ne,oe)};const ce=ne.charAt(0);return ce==="b"?{type:"message",data:decodeBase64Packet(ne.substring(1),oe)}:PACKET_TYPES_REVERSE[ce]?ne.length>1?{type:PACKET_TYPES_REVERSE[ce],data:ne.substring(1)}:{type:PACKET_TYPES_REVERSE[ce]}:ERROR_PACKET},decodeBase64Packet=(ne,oe)=>{if(withNativeArrayBuffer$1){const ce=decode$2(ne);return mapBinary(ce,oe)}else return{base64:!0,data:ne}},mapBinary=(ne,oe)=>{switch(oe){case"blob":return ne instanceof Blob?ne:new Blob([ne]);case"arraybuffer":default:return ne instanceof ArrayBuffer?ne:ne.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(ne,oe)=>{const ce=ne.length,ue=new Array(ce);let pe=0;ne.forEach((me,ge)=>{encodePacket(me,!1,ye=>{ue[ge]=ye,++pe===ce&&oe(ue.join(SEPARATOR))})})},decodePayload=(ne,oe)=>{const ce=ne.split(SEPARATOR),ue=[];for(let pe=0;pe{const ue=ce.length;let pe;if(ue<126)pe=new Uint8Array(1),new DataView(pe.buffer).setUint8(0,ue);else if(ue<65536){pe=new Uint8Array(3);const me=new DataView(pe.buffer);me.setUint8(0,126),me.setUint16(1,ue)}else{pe=new Uint8Array(9);const me=new DataView(pe.buffer);me.setUint8(0,127),me.setBigUint64(1,BigInt(ue))}ne.data&&typeof ne.data!="string"&&(pe[0]|=128),oe.enqueue(pe),oe.enqueue(ce)})}})}let TEXT_DECODER;function totalLength(ne){return ne.reduce((oe,ce)=>oe+ce.length,0)}function concatChunks(ne,oe){if(ne[0].length===oe)return ne.shift();const ce=new Uint8Array(oe);let ue=0;for(let pe=0;peMath.pow(2,53-32)-1){ye.enqueue(ERROR_PACKET);break}pe=_e*Math.pow(2,32)+xe.getUint32(4),ue=3}else{if(totalLength(ce)ne){ye.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(ne){if(ne)return mixin(ne)}function mixin(ne){for(var oe in Emitter.prototype)ne[oe]=Emitter.prototype[oe];return ne}Emitter.prototype.on=Emitter.prototype.addEventListener=function(ne,oe){return this._callbacks=this._callbacks||{},(this._callbacks["$"+ne]=this._callbacks["$"+ne]||[]).push(oe),this};Emitter.prototype.once=function(ne,oe){function ce(){this.off(ne,ce),oe.apply(this,arguments)}return ce.fn=oe,this.on(ne,ce),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(ne,oe){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var ce=this._callbacks["$"+ne];if(!ce)return this;if(arguments.length==1)return delete this._callbacks["$"+ne],this;for(var ue,pe=0;petypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(ne,...oe){return oe.reduce((ce,ue)=>(ne.hasOwnProperty(ue)&&(ce[ue]=ne[ue]),ce),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(ne,oe){oe.useNativeTimers?(ne.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),ne.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(ne.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),ne.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(ne){return typeof ne=="string"?utf8Length(ne):Math.ceil((ne.byteLength||ne.size)*BASE64_OVERHEAD)}function utf8Length(ne){let oe=0,ce=0;for(let ue=0,pe=ne.length;ue=57344?ce+=3:(ue++,ce+=4);return ce}function encode$2(ne){let oe="";for(let ce in ne)ne.hasOwnProperty(ce)&&(oe.length&&(oe+="&"),oe+=encodeURIComponent(ce)+"="+encodeURIComponent(ne[ce]));return oe}function decode$1(ne){let oe={},ce=ne.split("&");for(let ue=0,pe=ce.length;ue0);return oe}function yeast(){const ne=encode$1(+new Date);return ne!==prev?(seed=0,prev=ne):ne+"."+encode$1(seed++)}for(;i$2{this.readyState="paused",oe()};if(this.polling||!this.writable){let ue=0;this.polling&&(ue++,this.once("pollComplete",function(){--ue||ce()})),this.writable||(ue++,this.once("drain",function(){--ue||ce()}))}else ce()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(oe){const ce=ue=>{if(this.readyState==="opening"&&ue.type==="open"&&this.onOpen(),ue.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(ue)};decodePayload(oe,this.socket.binaryType).forEach(ce),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const oe=()=>{this.write([{type:"close"}])};this.readyState==="open"?oe():this.once("open",oe)}write(oe){this.writable=!1,encodePayload(oe,ce=>{this.doWrite(ce,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const oe=this.opts.secure?"https":"http",ce=this.query||{};return this.opts.timestampRequests!==!1&&(ce[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!ce.sid&&(ce.b64=1),this.createUri(oe,ce)}request(oe={}){return Object.assign(oe,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),oe)}doWrite(oe,ce){const ue=this.request({method:"POST",data:oe});ue.on("success",ce),ue.on("error",(pe,me)=>{this.onError("xhr post error",pe,me)})}doPoll(){const oe=this.request();oe.on("data",this.onData.bind(this)),oe.on("error",(ce,ue)=>{this.onError("xhr poll error",ce,ue)}),this.pollXhr=oe}}class Request extends Emitter{constructor(oe,ce){super(),installTimerFunctions(this,ce),this.opts=ce,this.method=ce.method||"GET",this.uri=oe,this.data=ce.data!==void 0?ce.data:null,this.create()}create(){var oe;const ce=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");ce.xdomain=!!this.opts.xd;const ue=this.xhr=new XHR(ce);try{ue.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){ue.setDisableHeaderCheck&&ue.setDisableHeaderCheck(!0);for(let pe in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(pe)&&ue.setRequestHeader(pe,this.opts.extraHeaders[pe])}}catch{}if(this.method==="POST")try{ue.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{ue.setRequestHeader("Accept","*/*")}catch{}(oe=this.opts.cookieJar)===null||oe===void 0||oe.addCookies(ue),"withCredentials"in ue&&(ue.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(ue.timeout=this.opts.requestTimeout),ue.onreadystatechange=()=>{var pe;ue.readyState===3&&((pe=this.opts.cookieJar)===null||pe===void 0||pe.parseCookies(ue)),ue.readyState===4&&(ue.status===200||ue.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof ue.status=="number"?ue.status:0)},0))},ue.send(this.data)}catch(pe){this.setTimeoutFn(()=>{this.onError(pe)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(oe){this.emitReserved("error",oe,this.xhr),this.cleanup(!0)}cleanup(oe){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty$1,oe)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const oe=this.xhr.responseText;oe!==null&&(this.emitReserved("data",oe),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const ne="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(ne,unloadHandler,!1)}}function unloadHandler(){for(let ne in Request.requests)Request.requests.hasOwnProperty(ne)&&Request.requests[ne].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?oe=>Promise.resolve().then(oe):(oe,ce)=>ce(oe,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(oe){super(oe),this.supportsBinary=!oe.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const oe=this.uri(),ce=this.opts.protocols,ue=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(ue.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?ce?new WebSocket(oe,ce):new WebSocket(oe):new WebSocket(oe,ce,ue)}catch(pe){return this.emitReserved("error",pe)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=oe=>this.onClose({description:"websocket connection closed",context:oe}),this.ws.onmessage=oe=>this.onData(oe.data),this.ws.onerror=oe=>this.onError("websocket error",oe)}write(oe){this.writable=!1;for(let ce=0;ce{const ge={};try{usingBrowserWebSocket&&this.ws.send(me)}catch{}pe&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const oe=this.opts.secure?"wss":"ws",ce=this.query||{};return this.opts.timestampRequests&&(ce[this.opts.timestampParam]=yeast()),this.supportsBinary||(ce.b64=1),this.createUri(oe,ce)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(oe=>{this.onError("webtransport error",oe)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(oe=>{const ce=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),ue=oe.readable.pipeThrough(ce).getReader(),pe=createPacketEncoderStream();pe.readable.pipeTo(oe.writable),this.writer=pe.writable.getWriter();const me=()=>{ue.read().then(({done:ye,value:ve})=>{ye||(this.onPacket(ve),me())}).catch(ye=>{})};me();const ge={type:"open"};this.query.sid&&(ge.data=`{"sid":"${this.query.sid}"}`),this.writer.write(ge).then(()=>this.onOpen())})}))}write(oe){this.writable=!1;for(let ce=0;ce{pe&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var oe;(oe=this.transport)===null||oe===void 0||oe.close()}}const transports$2={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse$3(ne){if(ne.length>2e3)throw"URI too long";const oe=ne,ce=ne.indexOf("["),ue=ne.indexOf("]");ce!=-1&&ue!=-1&&(ne=ne.substring(0,ce)+ne.substring(ce,ue).replace(/:/g,";")+ne.substring(ue,ne.length));let pe=re.exec(ne||""),me={},ge=14;for(;ge--;)me[parts[ge]]=pe[ge]||"";return ce!=-1&&ue!=-1&&(me.source=oe,me.host=me.host.substring(1,me.host.length-1).replace(/;/g,":"),me.authority=me.authority.replace("[","").replace("]","").replace(/;/g,":"),me.ipv6uri=!0),me.pathNames=pathNames(me,me.path),me.queryKey=queryKey(me,me.query),me}function pathNames(ne,oe){const ce=/\/{2,9}/g,ue=oe.replace(ce,"/").split("/");return(oe.slice(0,1)=="/"||oe.length===0)&&ue.splice(0,1),oe.slice(-1)=="/"&&ue.splice(ue.length-1,1),ue}function queryKey(ne,oe){const ce={};return oe.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(ue,pe,me){pe&&(ce[pe]=me)}),ce}let Socket$1=class Ql extends Emitter{constructor(oe,ce={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],oe&&typeof oe=="object"&&(ce=oe,oe=null),oe?(oe=parse$3(oe),ce.hostname=oe.host,ce.secure=oe.protocol==="https"||oe.protocol==="wss",ce.port=oe.port,oe.query&&(ce.query=oe.query)):ce.host&&(ce.hostname=parse$3(ce.host).host),installTimerFunctions(this,ce),this.secure=ce.secure!=null?ce.secure:typeof location<"u"&&location.protocol==="https:",ce.hostname&&!ce.port&&(ce.port=this.secure?"443":"80"),this.hostname=ce.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=ce.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=ce.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},ce),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode$1(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(oe){const ce=Object.assign({},this.opts.query);ce.EIO=protocol$1,ce.transport=oe,this.id&&(ce.sid=this.id);const ue=Object.assign({},this.opts,{query:ce,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[oe]);return new transports$2[oe](ue)}open(){let oe;if(this.opts.rememberUpgrade&&Ql.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)oe="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else oe=this.transports[0];this.readyState="opening";try{oe=this.createTransport(oe)}catch{this.transports.shift(),this.open();return}oe.open(),this.setTransport(oe)}setTransport(oe){this.transport&&this.transport.removeAllListeners(),this.transport=oe,oe.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",ce=>this.onClose("transport close",ce))}probe(oe){let ce=this.createTransport(oe),ue=!1;Ql.priorWebsocketSuccess=!1;const pe=()=>{ue||(ce.send([{type:"ping",data:"probe"}]),ce.once("packet",Se=>{if(!ue)if(Se.type==="pong"&&Se.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",ce),!ce)return;Ql.priorWebsocketSuccess=ce.name==="websocket",this.transport.pause(()=>{ue||this.readyState!=="closed"&&(_e(),this.setTransport(ce),ce.send([{type:"upgrade"}]),this.emitReserved("upgrade",ce),ce=null,this.upgrading=!1,this.flush())})}else{const $e=new Error("probe error");$e.transport=ce.name,this.emitReserved("upgradeError",$e)}}))};function me(){ue||(ue=!0,_e(),ce.close(),ce=null)}const ge=Se=>{const $e=new Error("probe error: "+Se);$e.transport=ce.name,me(),this.emitReserved("upgradeError",$e)};function ye(){ge("transport closed")}function ve(){ge("socket closed")}function xe(Se){ce&&Se.name!==ce.name&&me()}const _e=()=>{ce.removeListener("open",pe),ce.removeListener("error",ge),ce.removeListener("close",ye),this.off("close",ve),this.off("upgrading",xe)};ce.once("open",pe),ce.once("error",ge),ce.once("close",ye),this.once("close",ve),this.once("upgrading",xe),this.upgrades.indexOf("webtransport")!==-1&&oe!=="webtransport"?this.setTimeoutFn(()=>{ue||ce.open()},200):ce.open()}onOpen(){if(this.readyState="open",Ql.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let oe=0;const ce=this.upgrades.length;for(;oe{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const oe=this.getWritablePackets();this.transport.send(oe),this.prevBufferLen=oe.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let ce=1;for(let ue=0;ue0&&ce>this.maxPayload)return this.writeBuffer.slice(0,ue);ce+=2}return this.writeBuffer}write(oe,ce,ue){return this.sendPacket("message",oe,ce,ue),this}send(oe,ce,ue){return this.sendPacket("message",oe,ce,ue),this}sendPacket(oe,ce,ue,pe){if(typeof ce=="function"&&(pe=ce,ce=void 0),typeof ue=="function"&&(pe=ue,ue=null),this.readyState==="closing"||this.readyState==="closed")return;ue=ue||{},ue.compress=ue.compress!==!1;const me={type:oe,data:ce,options:ue};this.emitReserved("packetCreate",me),this.writeBuffer.push(me),pe&&this.once("flush",pe),this.flush()}close(){const oe=()=>{this.onClose("forced close"),this.transport.close()},ce=()=>{this.off("upgrade",ce),this.off("upgradeError",ce),oe()},ue=()=>{this.once("upgrade",ce),this.once("upgradeError",ce)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?ue():oe()}):this.upgrading?ue():oe()),this}onError(oe){Ql.priorWebsocketSuccess=!1,this.emitReserved("error",oe),this.onClose("transport error",oe)}onClose(oe,ce){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",oe,ce),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(oe){const ce=[];let ue=0;const pe=oe.length;for(;uetypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(ne):ne.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(ne){return withNativeArrayBuffer&&(ne instanceof ArrayBuffer||isView(ne))||withNativeBlob&&ne instanceof Blob||withNativeFile&&ne instanceof File}function hasBinary(ne,oe){if(!ne||typeof ne!="object")return!1;if(Array.isArray(ne)){for(let ce=0,ue=ne.length;ce=0&&ne.num{delete this.acks[oe];for(let ge=0;ge{this.io.clearTimeoutFn(me),ce.apply(this,[null,...ge])}}emitWithAck(oe,...ce){const ue=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((pe,me)=>{ce.push((ge,ye)=>ue?ge?me(ge):pe(ye):pe(ge)),this.emit(oe,...ce)})}_addToQueue(oe){let ce;typeof oe[oe.length-1]=="function"&&(ce=oe.pop());const ue={id:this._queueSeq++,tryCount:0,pending:!1,args:oe,flags:Object.assign({fromQueue:!0},this.flags)};oe.push((pe,...me)=>ue!==this._queue[0]?void 0:(pe!==null?ue.tryCount>this._opts.retries&&(this._queue.shift(),ce&&ce(pe)):(this._queue.shift(),ce&&ce(null,...me)),ue.pending=!1,this._drainQueue())),this._queue.push(ue),this._drainQueue()}_drainQueue(oe=!1){if(!this.connected||this._queue.length===0)return;const ce=this._queue[0];ce.pending&&!oe||(ce.pending=!0,ce.tryCount++,this.flags=ce.flags,this.emit.apply(this,ce.args))}packet(oe){oe.nsp=this.nsp,this.io._packet(oe)}onopen(){typeof this.auth=="function"?this.auth(oe=>{this._sendConnectPacket(oe)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(oe){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},oe):oe})}onerror(oe){this.connected||this.emitReserved("connect_error",oe)}onclose(oe,ce){this.connected=!1,delete this.id,this.emitReserved("disconnect",oe,ce)}onpacket(oe){if(oe.nsp===this.nsp)switch(oe.type){case PacketType.CONNECT:oe.data&&oe.data.sid?this.onconnect(oe.data.sid,oe.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(oe);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(oe);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const ue=new Error(oe.data.message);ue.data=oe.data.data,this.emitReserved("connect_error",ue);break}}onevent(oe){const ce=oe.data||[];oe.id!=null&&ce.push(this.ack(oe.id)),this.connected?this.emitEvent(ce):this.receiveBuffer.push(Object.freeze(ce))}emitEvent(oe){if(this._anyListeners&&this._anyListeners.length){const ce=this._anyListeners.slice();for(const ue of ce)ue.apply(this,oe)}super.emit.apply(this,oe),this._pid&&oe.length&&typeof oe[oe.length-1]=="string"&&(this._lastOffset=oe[oe.length-1])}ack(oe){const ce=this;let ue=!1;return function(...pe){ue||(ue=!0,ce.packet({type:PacketType.ACK,id:oe,data:pe}))}}onack(oe){const ce=this.acks[oe.id];typeof ce=="function"&&(ce.apply(this,oe.data),delete this.acks[oe.id])}onconnect(oe,ce){this.id=oe,this.recovered=ce&&this._pid===ce,this._pid=ce,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(oe=>this.emitEvent(oe)),this.receiveBuffer=[],this.sendBuffer.forEach(oe=>{this.notifyOutgoingListeners(oe),this.packet(oe)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(oe=>oe()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(oe){return this.flags.compress=oe,this}get volatile(){return this.flags.volatile=!0,this}timeout(oe){return this.flags.timeout=oe,this}onAny(oe){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(oe),this}prependAny(oe){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(oe),this}offAny(oe){if(!this._anyListeners)return this;if(oe){const ce=this._anyListeners;for(let ue=0;ue0&&ne.jitter<=1?ne.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var ne=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var oe=Math.random(),ce=Math.floor(oe*this.jitter*ne);ne=Math.floor(oe*10)&1?ne+ce:ne-ce}return Math.min(ne,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(ne){this.ms=ne};Backoff.prototype.setMax=function(ne){this.max=ne};Backoff.prototype.setJitter=function(ne){this.jitter=ne};class Manager extends Emitter{constructor(oe,ce){var ue;super(),this.nsps={},this.subs=[],oe&&typeof oe=="object"&&(ce=oe,oe=void 0),ce=ce||{},ce.path=ce.path||"/socket.io",this.opts=ce,installTimerFunctions(this,ce),this.reconnection(ce.reconnection!==!1),this.reconnectionAttempts(ce.reconnectionAttempts||1/0),this.reconnectionDelay(ce.reconnectionDelay||1e3),this.reconnectionDelayMax(ce.reconnectionDelayMax||5e3),this.randomizationFactor((ue=ce.randomizationFactor)!==null&&ue!==void 0?ue:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(ce.timeout==null?2e4:ce.timeout),this._readyState="closed",this.uri=oe;const pe=ce.parser||parser;this.encoder=new pe.Encoder,this.decoder=new pe.Decoder,this._autoConnect=ce.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(oe){return arguments.length?(this._reconnection=!!oe,this):this._reconnection}reconnectionAttempts(oe){return oe===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=oe,this)}reconnectionDelay(oe){var ce;return oe===void 0?this._reconnectionDelay:(this._reconnectionDelay=oe,(ce=this.backoff)===null||ce===void 0||ce.setMin(oe),this)}randomizationFactor(oe){var ce;return oe===void 0?this._randomizationFactor:(this._randomizationFactor=oe,(ce=this.backoff)===null||ce===void 0||ce.setJitter(oe),this)}reconnectionDelayMax(oe){var ce;return oe===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=oe,(ce=this.backoff)===null||ce===void 0||ce.setMax(oe),this)}timeout(oe){return arguments.length?(this._timeout=oe,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(oe){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const ce=this.engine,ue=this;this._readyState="opening",this.skipReconnect=!1;const pe=on(ce,"open",function(){ue.onopen(),oe&&oe()}),me=ye=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",ye),oe?oe(ye):this.maybeReconnectOnOpen()},ge=on(ce,"error",me);if(this._timeout!==!1){const ye=this._timeout,ve=this.setTimeoutFn(()=>{pe(),me(new Error("timeout")),ce.close()},ye);this.opts.autoUnref&&ve.unref(),this.subs.push(()=>{this.clearTimeoutFn(ve)})}return this.subs.push(pe),this.subs.push(ge),this}connect(oe){return this.open(oe)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const oe=this.engine;this.subs.push(on(oe,"ping",this.onping.bind(this)),on(oe,"data",this.ondata.bind(this)),on(oe,"error",this.onerror.bind(this)),on(oe,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(oe){try{this.decoder.add(oe)}catch(ce){this.onclose("parse error",ce)}}ondecoded(oe){nextTick(()=>{this.emitReserved("packet",oe)},this.setTimeoutFn)}onerror(oe){this.emitReserved("error",oe)}socket(oe,ce){let ue=this.nsps[oe];return ue?this._autoConnect&&!ue.active&&ue.connect():(ue=new Socket(this,oe,ce),this.nsps[oe]=ue),ue}_destroy(oe){const ce=Object.keys(this.nsps);for(const ue of ce)if(this.nsps[ue].active)return;this._close()}_packet(oe){const ce=this.encoder.encode(oe);for(let ue=0;ueoe()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(oe,ce){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",oe,ce),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const oe=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const ce=this.backoff.duration();this._reconnecting=!0;const ue=this.setTimeoutFn(()=>{oe.skipReconnect||(this.emitReserved("reconnect_attempt",oe.backoff.attempts),!oe.skipReconnect&&oe.open(pe=>{pe?(oe._reconnecting=!1,oe.reconnect(),this.emitReserved("reconnect_error",pe)):oe.onreconnect()}))},ce);this.opts.autoUnref&&ue.unref(),this.subs.push(()=>{this.clearTimeoutFn(ue)})}}onreconnect(){const oe=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",oe)}}const cache={};function lookup(ne,oe){typeof ne=="object"&&(oe=ne,ne=void 0),oe=oe||{};const ce=url$1(ne,oe.path||"/socket.io"),ue=ce.source,pe=ce.id,me=ce.path,ge=cache[pe]&&me in cache[pe].nsps,ye=oe.forceNew||oe["force new connection"]||oe.multiplex===!1||ge;let ve;return ye?ve=new Manager(ue,oe):(cache[pe]||(cache[pe]=new Manager(ue,oe)),ve=cache[pe]),ce.query&&!oe.query&&(oe.query=ce.queryKey),ve.socket(ce.path,oe)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});class SocketIOTransport extends EventEmitter$2{constructor(ce){super();Gl(this,"client");Gl(this,"socket");this.options=ce,this.socket=lookup(ce.url),this.client=new dist$2.JSONRPCClient(async ue=>{const pe=me=>{me.id===ue.id&&(this.socket.off("response",pe),this.client.receive(me))};this.socket.emit("request",ue),this.socket.on("response",pe)}),this.socket.on("request",({method:ue,params:pe})=>{this.emit(ue,pe)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(ce,ue){return await this.client.request(ce,ue)}}const transports$1={native:{name:"Internal",constructor:NativeTransport},socketio:{name:"socket.io",constructor:SocketIOTransport},ipc:{name:"Web Worker",constructor:IPCTransport}};function getTransport(ne){return transports$1[ne].constructor}const defaultTransport=lodashExports$1.first(lodashExports$1.keys(transports$1));var lodash={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors diff --git a/assets/network-bidirectional-a-star-4c1e2d86.js b/assets/network-bidirectional-a-star-4c1e2d86.js new file mode 100644 index 0000000..e43c8ed --- /dev/null +++ b/assets/network-bidirectional-a-star-4c1e2d86.js @@ -0,0 +1 @@ +const r=""+new URL("network-bidirectional-a-star-c8556576.workspace",import.meta.url).href;export{r as default}; diff --git a/assets/network-bidirectional-a-star-c8556576.workspace b/assets/network-bidirectional-a-star-c8556576.workspace new file mode 100644 index 0000000..2860c75 Binary files /dev/null and b/assets/network-bidirectional-a-star-c8556576.workspace differ diff --git a/assets/network-bidirectional-a-star.workspace-88fa7969.meta b/assets/network-bidirectional-a-star.workspace-88fa7969.meta new file mode 100644 index 0000000..18ebe93 --- /dev/null +++ b/assets/network-bidirectional-a-star.workspace-88fa7969.meta @@ -0,0 +1 @@ +{"id":"1Op1LXMHI8Uo4KS7fhwsM","name":"Network Bidirectional A*","description":"By searching from both source and goal nodes, this A* variant converges to an optimal path noticeably faster. ","screenshots":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAEAAQAMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AP4pJLkgAQvhcoWURrGC8cbRl9qYRllDvuDhmwSjZXr6BzkEURl3YJB6YVHbGe7lRhY+xOWb/YIyaAJ5ljtnjiDifYqytJESgWWaOKTbGzKd3lbVVnKbWbfsG0JIQC9DMt0p80TNny7Y/vBGqs7u0MjSxoqoMGWJt8EqD90zA7QAAMe1R0iWIKsMlzFH5gYOSvluN8jgYJ3JcMCi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btDHIhllLFPK8xnHzsdq85zlQN2KALEEZdkeGeLzEieFo4/MXdsjC+ZvZEWRFG2SbMhK7P3f3okABFam7ilhuYjHcLBmMN5Ud35KOpTzPs80chVow5a3keHdHJGjx4McZqZRU1ZuSXNGXuzlB3hJTXvQcXytxSlG/LON4TUoSlF6Uqs6NSFWm0qlOSnByjCaUou6fLOMoOz1XNFq+pXO2IeUFjuJM/JiP/VknIyQA0snUGJi8K9D5hyqUZlhzM0pEbySSpGVQsUjUCRgjywv5pWQTPI4QLj/WLsJ2AUAQLdSEKs/mPGSrb0by5WCNhd0gH74IVOzzdxRg3lPGS5IBY3qgTzMB3jdvMuo5RMcb1jMZhDSKGZdjM8zHj5BEg+YArJCvmxuskMkYIlkAbaUVPnlTy5SJH2qrbdocuu3/AJaFkUAigz5hk5+RJZN/PyuI3MbFux8wLtz1bA5JxQBcinL/AL5BK1xBExO5BOCpSGANuLKVA6EMjbA5ZW3kFQB4QPtmjmYxeYYowxWKSFQFecpGoESSFGAiSLeZfnaNWkXagBXSS48trgKjMu5BMULSgbQJC20FGGxwDJcKx+b9224ZUAIXSRfKkc/vWSLy0RIwu6VCZQVUq2AoBXCs2TlwEXIArmW4jdvOPkI6FzKghjEreYfkVDIGkYGR2VPnbJIQhflAI2X7QMxb3eIHzMry6NKT5oCg4AeXayEkgFWUtlxGAWo7ciSN9y2/7nyjKwkhjM0izRK+6cR4UAIZmXJBLFI35AAIbkK8W+MMnlyujwsFUqFWJPM2xhYxukJ8z5FKtIke6QAMACmrlVdQVw4CsCoJIDBxtYglcMqk7WUngHK5FAH/2Q=="],"author":"github:ShortestPathLab","size":10234546,"lastModified":1716721306166} \ No newline at end of file diff --git a/assets/network-bidirectional-a-star.workspace-e2672c0c.js b/assets/network-bidirectional-a-star.workspace-e2672c0c.js new file mode 100644 index 0000000..24f986d --- /dev/null +++ b/assets/network-bidirectional-a-star.workspace-e2672c0c.js @@ -0,0 +1 @@ +const a=""+new URL("network-bidirectional-a-star.workspace-88fa7969.meta",import.meta.url).href;export{a as default}; diff --git a/assets/parseTrace.worker-46466b88.js b/assets/parseTrace.worker-46466b88.js new file mode 100644 index 0000000..cbc38e6 --- /dev/null +++ b/assets/parseTrace.worker-46466b88.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,T="4.17.21",C=200,R="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",O="Expected a function",k="Invalid `variable` option passed into `_.template`",Z="__lodash_hash_undefined__",N=500,j="__lodash_placeholder__",an=1,G=2,z=4,pn=1,ln=2,P=1,_n=2,W=4,A=8,D=16,Y=32,J=64,nn=128,sn=256,Br=512,Cs=30,Ls="...",Ps=800,Ws=16,Uu=1,Fs=2,Ms=3,de=1/0,oe=9007199254740991,Bs=17976931348623157e292,mt=0/0,Yn=4294967295,Us=Yn-1,Ds=Yn>>>1,qs=[["ary",nn],["bind",P],["bindKey",_n],["curry",A],["curryRight",D],["flip",Br],["partial",Y],["partialRight",J],["rearg",sn]],Ee="[object Arguments]",xt="[object Array]",$s="[object AsyncFunction]",Xe="[object Boolean]",Je="[object Date]",Ns="[object DOMException]",yt="[object Error]",At="[object Function]",Du="[object GeneratorFunction]",Nn="[object Map]",Qe="[object Number]",Gs="[object Null]",Vn="[object Object]",qu="[object Promise]",Hs="[object Proxy]",Ve="[object RegExp]",Gn="[object Set]",ke="[object String]",St="[object Symbol]",zs="[object Undefined]",je="[object WeakMap]",Ks="[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]",Zs=/\b__p \+= '';/g,Ys=/\b(__p \+=) '' \+/g,Xs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$u=/&(?:amp|lt|gt|quot|#39);/g,Nu=/[&<>"']/g,Js=RegExp($u.source),Qs=RegExp(Nu.source),Vs=/<%-([\s\S]+?)%>/g,ks=/<%([\s\S]+?)%>/g,Gu=/<%=([\s\S]+?)%>/g,js=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nl=/^\w*$/,el=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/[\\^$.*+?()[\]{}|]/g,tl=RegExp(Zr.source),Yr=/^\s+/,rl=/\s/,il=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ul=/\{\n\/\* \[wrapped with (.+)\] \*/,fl=/,? & /,ol=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,al=/[()=,{}\[\]\/\s]/,sl=/\\(\\)?/g,ll=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Hu=/\w*$/,cl=/^[-+]0x[0-9a-f]+$/i,hl=/^0b[01]+$/i,gl=/^\[object .+?Constructor\]$/,pl=/^0o[0-7]+$/i,_l=/^(?:0|[1-9]\d*)$/,vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,dl=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",wl="\\u0300-\\u036f",ml="\\ufe20-\\ufe2f",xl="\\u20d0-\\u20ff",zu=wl+ml+xl,Ku="\\u2700-\\u27bf",Zu="a-z\\xdf-\\xf6\\xf8-\\xff",yl="\\xac\\xb1\\xd7\\xf7",Al="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Sl="\\u2000-\\u206f",bl=" \\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",Yu="A-Z\\xc0-\\xd6\\xd8-\\xde",Xu="\\ufe0e\\ufe0f",Ju=yl+Al+Sl+bl,Xr="['’]",Il="["+It+"]",Qu="["+Ju+"]",Rt="["+zu+"]",Vu="\\d+",Rl="["+Ku+"]",ku="["+Zu+"]",ju="[^"+It+Ju+Vu+Ku+Zu+Yu+"]",Jr="\\ud83c[\\udffb-\\udfff]",Tl="(?:"+Rt+"|"+Jr+")",nf="[^"+It+"]",Qr="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Yu+"]",ef="\\u200d",tf="(?:"+ku+"|"+ju+")",Ol="(?:"+Le+"|"+ju+")",rf="(?:"+Xr+"(?:d|ll|m|re|s|t|ve))?",uf="(?:"+Xr+"(?:D|LL|M|RE|S|T|VE))?",ff=Tl+"?",of="["+Xu+"]?",El="(?:"+ef+"(?:"+[nf,Qr,Vr].join("|")+")"+of+ff+")*",Cl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ll="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",af=of+ff+El,Pl="(?:"+[Rl,Qr,Vr].join("|")+")"+af,Wl="(?:"+[nf+Rt+"?",Rt,Qr,Vr,Il].join("|")+")",Fl=RegExp(Xr,"g"),Ml=RegExp(Rt,"g"),kr=RegExp(Jr+"(?="+Jr+")|"+Wl+af,"g"),Bl=RegExp([Le+"?"+ku+"+"+rf+"(?="+[Qu,Le,"$"].join("|")+")",Ol+"+"+uf+"(?="+[Qu,Le+tf,"$"].join("|")+")",Le+"?"+tf+"+"+rf,Le+"+"+uf,Ll,Cl,Vu,Pl].join("|"),"g"),Ul=RegExp("["+ef+It+zu+Xu+"]"),Dl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ql=["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"],$l=-1,en={};en[Ur]=en[Dr]=en[qr]=en[$r]=en[Nr]=en[Gr]=en[Hr]=en[zr]=en[Kr]=!0,en[Ee]=en[xt]=en[nt]=en[Xe]=en[Ce]=en[Je]=en[yt]=en[At]=en[Nn]=en[Qe]=en[Vn]=en[Ve]=en[Gn]=en[ke]=en[je]=!1;var V={};V[Ee]=V[xt]=V[nt]=V[Ce]=V[Xe]=V[Je]=V[Ur]=V[Dr]=V[qr]=V[$r]=V[Nr]=V[Nn]=V[Qe]=V[Vn]=V[Ve]=V[Gn]=V[ke]=V[St]=V[Gr]=V[Hr]=V[zr]=V[Kr]=!0,V[yt]=V[At]=V[je]=!1;var Nl={À:"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",Ć: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sf=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Yl=typeof self=="object"&&self&&self.Object===Object&&self,vn=sf||Yl||Function("return this")(),jr=w&&!w.nodeType&&w,we=jr&&!0&&h&&!h.nodeType&&h,lf=we&&we.exports===jr,ni=lf&&sf.process,Wn=function(){try{var l=we&&we.require&&we.require("util").types;return l||ni&&ni.binding&&ni.binding("util")}catch{}}(),cf=Wn&&Wn.isArrayBuffer,hf=Wn&&Wn.isDate,gf=Wn&&Wn.isMap,pf=Wn&&Wn.isRegExp,_f=Wn&&Wn.isSet,vf=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 Xl(l,p,g,x){for(var E=-1,H=l==null?0:l.length;++E-1}function ei(l,p,g){for(var x=-1,E=l==null?0:l.length;++x-1;);return g}function bf(l,p){for(var g=l.length;g--&&Pe(p,l[g],0)>-1;);return g}function rc(l,p){for(var g=l.length,x=0;g--;)l[g]===p&&++x;return x}var ic=ui(Nl),uc=ui(Gl);function fc(l){return"\\"+zl[l]}function oc(l,p){return l==null?f:l[p]}function We(l){return Ul.test(l)}function ac(l){return Dl.test(l)}function sc(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,E){g[++p]=[E,x]}),g}function If(l,p){return function(g){return l(p(g))}}function le(l,p){for(var g=-1,x=l.length,E=0,H=[];++g-1}function Qc(n,e){var t=this.__data__,r=zt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}kn.prototype.clear=Zc,kn.prototype.delete=Yc,kn.prototype.get=Xc,kn.prototype.has=Jc,kn.prototype.set=Qc;function jn(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&an,c=e&G,_=e&z;if(t&&(a=i?t(n,r,i,o):t(n)),a!==f)return a;if(!rn(n))return n;var v=L(n);if(v){if(a=ng(n),!s)return Sn(n,a)}else{var d=mn(n),m=d==At||d==Du;if(ve(n))return oo(n,s);if(d==Vn||d==Ee||m&&!i){if(a=c||m?{}:To(n),!s)return c?Hh(n,hh(a,n)):Gh(n,Uf(a,n))}else{if(!V[d])return i?n:{};a=eg(n,d,s)}}o||(o=new zn);var y=o.get(n);if(y)return y;o.set(n,a),ta(n)?n.forEach(function(I){a.add(Un(I,e,t,I,n,o))}):na(n)&&n.forEach(function(I,U){a.set(U,Un(I,e,t,U,n,o))});var b=_?c?Mi:Fi:c?In:gn,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 gh(n){var e=gn(n);return function(t){return Df(t,n,e)}}function Df(n,e,t){var r=t.length;if(n==null)return!r;for(n=Q(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 qf(n,e,t){if(typeof n!="function")throw new Mn(O);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=tn(e,On(t))),r?(o=ei,a=!1):e.length>=C&&(o=et,a=!1,e=new ye(e));n:for(;++ii?0:i+t),r=r===f||r>i?i:F(r),r<0&&(r+=i),r=t>r?0:ia(r);t0&&t(s)?e>1?dn(s,e-1,t,r,i):se(i,s):r||(i[i.length]=s)}return i}var vi=go(),Gf=go(!0);function Xn(n,e){return n&&vi(n,e,gn)}function di(n,e){return n&&Gf(n,e,gn)}function Zt(n,e){return ae(e,function(t){return ie(n[t])})}function Se(n,e){e=pe(e,n);for(var t=0,r=e.length;n!=null&&te}function vh(n,e){return n!=null&&X.call(n,e)}function dh(n,e){return n!=null&&e in Q(n)}function wh(n,e,t){return n>=wn(e,t)&&n=120&&v.length>=120)?new ye(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 jf(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;re(i)?Ut.call(n,i,1):Ti(n,i)}}return n}function bi(n,e){return n+$t(Wf()*(e-n+1))}function Lh(n,e,t,r){for(var i=-1,o=hn(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>oe)return t;do e%2&&(t+=n),e=$t(e/2),e&&(n+=n);while(e);return t}function B(n,e){return Gi(Co(n,e,Rn),n+"")}function Ph(n){return Bf(ze(n))}function Wh(n,e){var t=ze(n);return rr(t,Ae(e,0,t.length))}function ct(n,e,t,r){if(!rn(n))return n;e=pe(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=C){var _=e?null:Yh(n);if(_)return Et(_);a=!1,i=et,c=new ye}else c=e?[]:s;n:for(;++r=r?n:Dn(n,e,t)}var fo=bc||function(n){return vn.clearTimeout(n)};function oo(n,e){if(e)return n.slice();var t=n.length,r=Of?Of(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 Dh(n,e){var t=e?Li(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function qh(n){var e=new n.constructor(n.source,Hu.exec(n));return e.lastIndex=n.lastIndex,e}function $h(n){return ft?Q(ft.call(n)):{}}function ao(n,e){var t=e?Li(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function so(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 lo(n,e,t,r){for(var i=-1,o=n.length,a=t.length,s=-1,c=e.length,_=hn(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=Q(e);++r-1?i[o?e[a]:a]:f}}function vo(n){return te(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(O);if(i&&!a&&er(o)=="wrapper")var a=new Bn([],!0)}for(r=a?r:t;++r1&&$.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&ln?new ye:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(il,`{ +/* [wrapped with `+e+`] */ +`)}function rg(n){return L(n)||Re(n)||!!(Lf&&n&&n[Lf])}function re(n,e){var t=typeof n;return e=e??oe,!!e&&(t=="number"||t!="symbol"&&_l.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Ps)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,Go(n,t)});function Ho(n){var e=u(n);return e.__chain__=!0,e}function pp(n,e){return e(n),n}function ir(n,e){return e(n)}var _p=te(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 q)||!re(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 vp(){return Ho(this)}function dp(){return new Bn(this.value(),this.__chain__)}function wp(){this.__values__===f&&(this.__values__=ra(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function mp(){return this}function xp(n){for(var e,t=this;t instanceof Ht;){var r=Bo(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 yp(){var n=this.__wrapped__;if(n instanceof q){var e=n;return this.__actions__.length&&(e=new q(this)),e=e.reverse(),e.__actions__.push({func:ir,args:[Hi],thisArg:f}),new Bn(e,this.__chain__)}return this.thru(Hi)}function Ap(){return io(this.__wrapped__,this.__actions__)}var Sp=Qt(function(n,e,t){X.call(n,t)?++n[t]:ne(n,t,1)});function bp(n,e,t){var r=L(n)?df:ph;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}function Ip(n,e){var t=L(n)?ae:Nf;return t(n,S(e,3))}var Rp=_o(Uo),Tp=_o(Do);function Op(n,e){return dn(ur(n,e),1)}function Ep(n,e){return dn(ur(n,e),de)}function Cp(n,e,t){return t=t===f?1:F(t),dn(ur(n,e),t)}function zo(n,e){var t=L(n)?Fn:he;return t(n,S(e,3))}function Ko(n,e){var t=L(n)?Jl:$f;return t(n,S(e,3))}var Lp=Qt(function(n,e,t){X.call(n,t)?n[t].push(e):ne(n,t,[e])});function Pp(n,e,t,r){n=bn(n)?n:ze(n),t=t&&!r?F(t):0;var i=n.length;return t<0&&(t=hn(i+t,0)),lr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Pe(n,e,t)>-1}var Wp=B(function(n,e,t){var r=-1,i=typeof e=="function",o=bn(n)?g(n.length):[];return he(n,function(a){o[++r]=i?Tn(e,a,t):st(a,e,t)}),o}),Fp=Qt(function(n,e,t){ne(n,t,e)});function ur(n,e){var t=L(n)?tn:Yf;return t(n,S(e,3))}function Mp(n,e,t,r){return n==null?[]:(L(e)||(e=e==null?[]:[e]),t=r?f:t,L(t)||(t=t==null?[]:[t]),Vf(n,e,t))}var Bp=Qt(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Up(n,e,t){var r=L(n)?ti:yf,i=arguments.length<3;return r(n,S(e,4),t,i,he)}function Dp(n,e,t){var r=L(n)?Ql:yf,i=arguments.length<3;return r(n,S(e,4),t,i,$f)}function qp(n,e){var t=L(n)?ae:Nf;return t(n,ar(S(e,3)))}function $p(n){var e=L(n)?Bf:Ph;return e(n)}function Np(n,e,t){(t?yn(n,e,t):e===f)?e=1:e=F(e);var r=L(n)?sh:Wh;return r(n,e)}function Gp(n){var e=L(n)?lh:Mh;return e(n)}function Hp(n){if(n==null)return 0;if(bn(n))return lr(n)?Fe(n):n.length;var e=mn(n);return e==Nn||e==Gn?n.size:yi(n).length}function zp(n,e,t){var r=L(n)?ri:Bh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}var Kp=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]]),Vf(n,dn(e,1),[])}),fr=Ic||function(){return vn.Date.now()};function Zp(n,e){if(typeof e!="function")throw new Mn(O);return n=F(n),function(){if(--n<1)return e.apply(this,arguments)}}function Zo(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,ee(n,nn,f,f,f,f,e)}function Yo(n,e){var t;if(typeof e!="function")throw new Mn(O);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=P;if(t.length){var i=le(t,Ge(Ki));r|=Y}return ee(n,r,e,t,i)}),Xo=B(function(n,e,t){var r=P|_n;if(t.length){var i=le(t,Ge(Xo));r|=Y}return ee(e,r,n,t,i)});function Jo(n,e,t){e=t?f:e;var r=ee(n,A,f,f,f,f,f,e);return r.placeholder=Jo.placeholder,r}function Qo(n,e,t){e=t?f:e;var r=ee(n,D,f,f,f,f,f,e);return r.placeholder=Qo.placeholder,r}function Vo(n,e,t){var r,i,o,a,s,c,_=0,v=!1,d=!1,m=!0;if(typeof n!="function")throw new Mn(O);e=$n(e)||0,rn(t)&&(v=!!t.leading,d="maxWait"in t,o=d?hn($n(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function y(on){var Zn=r,fe=i;return r=i=f,_=on,a=n.apply(fe,Zn),a}function b(on){return _=on,s=pt(U,e),v?y(on):a}function M(on){var Zn=on-c,fe=on-_,va=e-Zn;return d?wn(va,o-fe):va}function I(on){var Zn=on-c,fe=on-_;return c===f||Zn>=e||Zn<0||d&&fe>=o}function U(){var on=fr();if(I(on))return $(on);s=pt(U,M(on))}function $(on){return s=f,m&&r?y(on):(r=i=f,a)}function Ln(){s!==f&&fo(s),_=0,r=c=i=s=f}function An(){return s===f?a:$(fr())}function Pn(){var on=fr(),Zn=I(on);if(r=arguments,i=this,c=on,Zn){if(s===f)return b(c);if(d)return fo(s),s=pt(U,e),y(c)}return s===f&&(s=pt(U,e)),a}return Pn.cancel=Ln,Pn.flush=An,Pn}var Yp=B(function(n,e){return qf(n,1,e)}),Xp=B(function(n,e,t){return qf(n,$n(e)||0,t)});function Jp(n){return ee(n,Br)}function or(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Mn(O);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||jn),t}or.Cache=jn;function ar(n){if(typeof n!="function")throw new Mn(O);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 Qp(n){return Yo(2,n)}var Vp=Uh(function(n,e){e=e.length==1&&L(e[0])?tn(e[0],On(S())):tn(dn(e,1),On(S()));var t=e.length;return B(function(r){for(var i=-1,o=wn(r.length,t);++i=e}),Re=zf(function(){return arguments}())?zf:function(n){return un(n)&&X.call(n,"callee")&&!Cf.call(n,"callee")},L=g.isArray,h_=cf?On(cf):xh;function bn(n){return n!=null&&sr(n.length)&&!ie(n)}function fn(n){return un(n)&&bn(n)}function g_(n){return n===!0||n===!1||un(n)&&xn(n)==Xe}var ve=Tc||ru,p_=hf?On(hf):yh;function __(n){return un(n)&&n.nodeType===1&&!_t(n)}function v_(n){if(n==null)return!0;if(bn(n)&&(L(n)||typeof n=="string"||typeof n.splice=="function"||ve(n)||He(n)||Re(n)))return!n.length;var e=mn(n);if(e==Nn||e==Gn)return!n.size;if(gt(n))return!yi(n).length;for(var t in n)if(X.call(n,t))return!1;return!0}function d_(n,e){return lt(n,e)}function w_(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(!un(n))return!1;var e=xn(n);return e==yt||e==Ns||typeof n.message=="string"&&typeof n.name=="string"&&!_t(n)}function m_(n){return typeof n=="number"&&Pf(n)}function ie(n){if(!rn(n))return!1;var e=xn(n);return e==At||e==Du||e==$s||e==Hs}function jo(n){return typeof n=="number"&&n==F(n)}function sr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=oe}function rn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function un(n){return n!=null&&typeof n=="object"}var na=gf?On(gf):Sh;function x_(n,e){return n===e||xi(n,e,Ui(e))}function y_(n,e,t){return t=typeof t=="function"?t:f,xi(n,e,Ui(e),t)}function A_(n){return ea(n)&&n!=+n}function S_(n){if(fg(n))throw new E(R);return Kf(n)}function b_(n){return n===null}function I_(n){return n==null}function ea(n){return typeof n=="number"||un(n)&&xn(n)==Qe}function _t(n){if(!un(n)||xn(n)!=Vn)return!1;var e=Bt(n);if(e===null)return!0;var t=X.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Pt.call(t)==yc}var Xi=pf?On(pf):bh;function R_(n){return jo(n)&&n>=-oe&&n<=oe}var ta=_f?On(_f):Ih;function lr(n){return typeof n=="string"||!L(n)&&un(n)&&xn(n)==ke}function Cn(n){return typeof n=="symbol"||un(n)&&xn(n)==St}var He=vf?On(vf):Rh;function T_(n){return n===f}function O_(n){return un(n)&&mn(n)==je}function E_(n){return un(n)&&xn(n)==Ks}var C_=nr(Ai),L_=nr(function(n,e){return n<=e});function ra(n){if(!n)return[];if(bn(n))return lr(n)?Hn(n):Sn(n);if(tt&&n[tt])return sc(n[tt]());var e=mn(n),t=e==Nn?si:e==Gn?Et:ze;return t(n)}function ue(n){if(!n)return n===0?n:0;if(n=$n(n),n===de||n===-de){var e=n<0?-1:1;return e*Bs}return n===n?n:0}function F(n){var e=ue(n),t=e%1;return e===e?t?e-t:e:0}function ia(n){return n?Ae(F(n),0,Yn):0}function $n(n){if(typeof n=="number")return n;if(Cn(n))return mt;if(rn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=rn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Af(n);var t=hl.test(n);return t||pl.test(n)?Zl(n.slice(2),t?2:8):cl.test(n)?mt:+n}function ua(n){return Jn(n,In(n))}function P_(n){return n?Ae(F(n),-oe,oe):n===0?n:0}function K(n){return n==null?"":En(n)}var W_=$e(function(n,e){if(gt(e)||bn(e)){Jn(e,gn(e),n);return}for(var t in e)X.call(e,t)&&ot(n,t,e[t])}),fa=$e(function(n,e){Jn(e,In(e),n)}),cr=$e(function(n,e,t,r){Jn(e,In(e),n,r)}),F_=$e(function(n,e,t,r){Jn(e,gn(e),n,r)}),M_=te(_i);function B_(n,e){var t=qe(n);return e==null?t:Uf(t,e)}var U_=B(function(n,e){n=Q(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}),Jn(n,Mi(n),t),r&&(t=Un(t,an|G|z,Xh));for(var i=e.length;i--;)Ti(t,e[i]);return t});function ev(n,e){return aa(n,ar(S(e)))}var tv=te(function(n,e){return n==null?{}:Eh(n,e)});function aa(n,e){if(n==null)return{};var t=tn(Mi(n),function(r){return[r]});return e=S(e),kf(n,t,function(r,i){return e(r,i[0])})}function rv(n,e,t){e=pe(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=Wf();return wn(n+i*(e-n+Kl("1e-"+((i+"").length-1))),e)}return bi(n,e)}var pv=Ne(function(n,e,t){return e=e.toLowerCase(),n+(t?ca(e):e)});function ca(n){return Vi(K(n).toLowerCase())}function ha(n){return n=K(n),n&&n.replace(vl,ic).replace(Ml,"")}function _v(n,e,t){n=K(n),e=En(e);var r=n.length;t=t===f?r:Ae(F(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function vv(n){return n=K(n),n&&Qs.test(n)?n.replace(Nu,uc):n}function dv(n){return n=K(n),n&&tl.test(n)?n.replace(Zr,"\\$&"):n}var wv=Ne(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),mv=Ne(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),xv=po("toLowerCase");function yv(n,e,t){n=K(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 Av(n,e,t){n=K(n),e=F(e);var r=e?Fe(n):0;return e&&r>>0,t?(n=K(n),n&&(typeof e=="string"||e!=null&&!Xi(e))&&(e=En(e),!e&&We(n))?_e(Hn(n),0,t):n.split(e,t)):[]}var Ev=Ne(function(n,e,t){return n+(t?" ":"")+Vi(e)});function Cv(n,e,t){return n=K(n),t=t==null?0:Ae(F(t),0,n.length),e=En(e),n.slice(t,t+e.length)==e}function Lv(n,e,t){var r=u.templateSettings;t&&yn(n,e,t)&&(e=f),n=K(n),e=cr({},e,r,Ao);var i=cr({},e.imports,r.imports,Ao),o=gn(i),a=ai(i,o),s,c,_=0,v=e.interpolate||bt,d="__p += '",m=li((e.escape||bt).source+"|"+v.source+"|"+(v===Gu?ll:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),y="//# sourceURL="+(X.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$l+"]")+` +`;n.replace(m,function(I,U,$,Ln,An,Pn){return $||($=Ln),d+=n.slice(_,Pn).replace(dl,fc),U&&(s=!0,d+=`' + +__e(`+U+`) + +'`),An&&(c=!0,d+=`'; +`+An+`; +__p += '`),$&&(d+=`' + +((__t = (`+$+`)) == null ? '' : __t) + +'`),_=Pn+I.length,I}),d+=`'; +`;var b=X.call(e,"variable")&&e.variable;if(!b)d=`with (obj) { +`+d+` +} +`;else if(al.test(b))throw new E(k);d=(c?d.replace(Zs,""):d).replace(Ys,"$1").replace(Xs,"$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=pa(function(){return H(o,y+"return "+d).apply(f,a)});if(M.source=d,Yi(M))throw M;return M}function Pv(n){return K(n).toLowerCase()}function Wv(n){return K(n).toUpperCase()}function Fv(n,e,t){if(n=K(n),n&&(t||e===f))return Af(n);if(!n||!(e=En(e)))return n;var r=Hn(n),i=Hn(e),o=Sf(r,i),a=bf(r,i)+1;return _e(r,o,a).join("")}function Mv(n,e,t){if(n=K(n),n&&(t||e===f))return n.slice(0,Rf(n)+1);if(!n||!(e=En(e)))return n;var r=Hn(n),i=bf(r,Hn(e))+1;return _e(r,0,i).join("")}function Bv(n,e,t){if(n=K(n),n&&(t||e===f))return n.replace(Yr,"");if(!n||!(e=En(e)))return n;var r=Hn(n),i=Sf(r,Hn(e));return _e(r,i).join("")}function Uv(n,e){var t=Cs,r=Ls;if(rn(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=K(n);var o=n.length;if(We(n)){var a=Hn(n);o=a.length}if(t>=o)return n;var s=t-Fe(r);if(s<1)return r;var c=a?_e(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,K(Hu.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 Dv(n){return n=K(n),n&&Js.test(n)?n.replace($u,gc):n}var qv=Ne(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Vi=po("toUpperCase");function ga(n,e,t){return n=K(n),e=t?f:e,e===f?ac(n)?vc(n):jl(n):n.match(e)||[]}var pa=B(function(n,e){try{return Tn(n,f,e)}catch(t){return Yi(t)?t:new E(t)}}),$v=te(function(n,e){return Fn(e,function(t){t=Qn(t),ne(n,t,Ki(n[t],n))}),n});function Nv(n){var e=n==null?0:n.length,t=S();return n=e?tn(n,function(r){if(typeof r[1]!="function")throw new Mn(O);return[t(r[0]),r[1]]}):[],B(function(r){for(var i=-1;++ioe)return[];var t=Yn,r=wn(n,Yn);e=S(e),n-=Yn;for(var i=oi(r,e);++t0||e<0)?new q(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)},q.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},q.prototype.toArray=function(){return this.take(Yn)},Xn(q.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 q,_=s[0],v=c||L(a),d=function(U){var $=i.apply(u,se([U],s));return r&&m?$[0]:$};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 q(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(L(o)?o:[],i)}return this[t](function(a){return e.apply(L(a)?a:[],i)})}}),Xn(q.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";X.call(De,r)||(De[r]=[]),De[r].push({name:e,func:t})}}),De[Vt(f,_n).name]=[{name:"wrapper",func:f}],q.prototype.clone=Dc,q.prototype.reverse=qc,q.prototype.value=$c,u.prototype.at=_p,u.prototype.chain=vp,u.prototype.commit=dp,u.prototype.next=wp,u.prototype.plant=xp,u.prototype.reverse=yp,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Ap,u.prototype.first=u.prototype.head,tt&&(u.prototype[tt]=mp),u},Me=dc();we?((we.exports=Me)._=Me,jr._=Me):vn._=Me}).call(Ke)}(vt,vt.exports);var Te=vt.exports,da=function(){},wa=da(),Oe=function(h){return h!==wa&&h!==null},ma=Oe,xa=Array.prototype.forEach,ya=Object.create,Aa=function(h,w){var f;for(f in h)w[f]=h[f]},Sa=function(h){var w=ya(null);return xa.call(arguments,function(f){ma(f)&&Aa(Object(f),w)}),w},ba=function(){var h=Math.sign;return typeof h!="function"?!1:h(10)===1&&h(-20)===-1},hr,iu;function Ia(){return iu||(iu=1,hr=function(h){return h=Number(h),isNaN(h)||h===0?h:h>0?1:-1}),hr}var Ra=ba()?Math.sign:Ia(),Ta=Ra,Oa=Math.abs,Ea=Math.floor,Ca=function(h){return isNaN(h)?0:(h=Number(h),h===0||!isFinite(h)?h:Ta(h)*Ea(Oa(h)))},La=Ca,Pa=Math.max,Wa=function(h){return Pa(0,La(h))},uu=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h},Fa=Oe,fu=function(h){if(!Fa(h))throw new TypeError("Cannot use null or undefined");return h},Ma={exports:{}},Ba=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 Ua(){return ou||(ou=1,gr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),gr}var pr,au;function Da(){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 qa(){return su||(su=1,_r=Ua()()?Object.keys:Da()),_r}var vr,lu;function $a(){if(lu)return vr;lu=1;var h=qa(),w=fu,f=Math.max;return vr=function(T,C){var R,O,k=f(arguments.length,2),Z;for(T=Object(w(T)),Z=function(N){try{T[N]=C[N]}catch(j){R||(R=j)}},O=1;O-1},wr}var is=ts()?String.prototype.contains:rs(),dt=pu,vu=es,du=cu,wu=Sa,Ze=is,us=gu.exports=function(h,w){var f,T,C,R,O;return arguments.length<2||typeof h!="string"?(R=w,w=h,h=null):R=arguments[2],dt(h)?(f=Ze.call(h,"c"),T=Ze.call(h,"e"),C=Ze.call(h,"w")):(f=C=!0,T=!1),O={value:w,configurable:f,enumerable:T,writable:C},R?du(wu(R),O):O};us.gs=function(h,w,f){var T,C,R,O;return typeof h!="string"?(R=f,f=w,w=h,h=null):R=arguments[3],dt(w)?vu(w)?dt(f)?vu(f)||(R=f,f=void 0):f=void 0:(R=w,w=f=void 0):w=void 0,dt(h)?(T=Ze.call(h,"c"),C=Ze.call(h,"e")):(T=!0,C=!1),O={get:w,set:f,configurable:T,enumerable:C},R?du(wu(R),O):O};var Ye=gu.exports,mr={exports:{}};(function(h,w){var f=Ye,T=uu,C=Function.prototype.apply,R=Function.prototype.call,O=Object.create,k=Object.defineProperty,Z=Object.defineProperties,N=Object.prototype.hasOwnProperty,j={configurable:!0,enumerable:!1,writable:!0},an,G,z,pn,ln,P,_n;an=function(W,A){var D;return T(A),N.call(this,"__ee__")?D=this.__ee__:(D=j.value=O(null),k(this,"__ee__",j),j.value=null),D[W]?typeof D[W]=="object"?D[W].push(A):D[W]=[D[W],A]:D[W]=A,this},G=function(W,A){var D,Y;return T(A),Y=this,an.call(this,W,D=function(){z.call(Y,W,D),C.call(A,this,arguments)}),D.__eeOnceListener__=A,this},z=function(W,A){var D,Y,J,nn;if(T(A),!N.call(this,"__ee__"))return this;if(D=this.__ee__,!D[W])return this;if(Y=D[W],typeof Y=="object")for(nn=0;J=Y[nn];++nn)(J===A||J.__eeOnceListener__===A)&&(Y.length===2?D[W]=Y[nn?0:1]:Y.splice(nn,1));else(Y===A||Y.__eeOnceListener__===A)&&delete D[W];return this},pn=function(W){var A,D,Y,J,nn;if(N.call(this,"__ee__")&&(J=this.__ee__[W],!!J))if(typeof J=="object"){for(D=arguments.length,nn=new Array(D-1),A=1;A=55296&&D<=56319&&(sn+=G[++P])),sn=z?N.call(z,pn,sn,_n):sn,ln?(j.value=sn,an(W,_n,j)):W[_n]=sn,++_n;A=_n}}if(A===void 0)for(A=T(G.length),ln&&(W=new ln(A)),P=0;Pasync w=>{const f=new h,T=await w(f);if("error"in T)throw console.error(T.error),new Error(T.error);return f.terminate(),T.result},As=h=>w=>ys(h)(f=>(f.postMessage(w),new Promise((T,C)=>{f.onmessage=R=>{T(R.data)},f.onerror=R=>{console.error(R),C(R)}}))),Ss=h=>async w=>{try{const f=await h(w);postMessage({result:f})}catch(f){postMessage({error:f})}};var bs=""+new URL("parseTraceSlave.worker-4cd9f48c.js",self.location.href).href;const{min:Is}=Math,Rs=navigator.hardwareConcurrency??8;class Ts extends Worker{constructor(){super(bs,{type:"module"})}}const Os=As(Ts);async function Es({trace:h,context:w,view:f="main"}){var O,k;const T=Te.ceil((((O=h==null?void 0:h.events)==null?void 0:O.length)??0)/Rs),C=Te.range(0,(k=h==null?void 0:h.events)==null?void 0:k.length,T),R=Te.flatten(await Promise.all(Te.map(C,Z=>{var N;return Os({trace:h,context:w,view:f,from:Z,to:Is(Z+T,((N=h==null?void 0:h.events)==null?void 0:N.length)??0)})})));return{stepsPersistent:Te.flatMap(R,"stepsPersistent"),stepsTransient:Te.flatMap(R,"stepsTransient")}}onmessage=Ss(async({data:h})=>await Es(h))})(); diff --git a/assets/parseTrace.worker-d91f3db3.js b/assets/parseTrace.worker-d91f3db3.js deleted file mode 100644 index e74e6b3..0000000 --- a/assets/parseTrace.worker-d91f3db3.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,T="4.17.21",C=200,R="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",O="Expected a function",k="Invalid `variable` option passed into `_.template`",Z="__lodash_hash_undefined__",N=500,j="__lodash_placeholder__",an=1,G=2,z=4,pn=1,ln=2,P=1,_n=2,W=4,A=8,D=16,Y=32,J=64,nn=128,sn=256,Ur=512,Ws=30,Fs="...",Ms=800,Bs=16,qu=1,Us=2,Ds=3,de=1/0,oe=9007199254740991,qs=17976931348623157e292,mt=0/0,Yn=4294967295,$s=Yn-1,Ns=Yn>>>1,Gs=[["ary",nn],["bind",P],["bindKey",_n],["curry",A],["curryRight",D],["flip",Ur],["partial",Y],["partialRight",J],["rearg",sn]],Ee="[object Arguments]",xt="[object Array]",Hs="[object AsyncFunction]",Xe="[object Boolean]",Je="[object Date]",zs="[object DOMException]",yt="[object Error]",At="[object Function]",$u="[object GeneratorFunction]",Nn="[object Map]",Qe="[object Number]",Ks="[object Null]",Vn="[object Object]",Nu="[object Promise]",Zs="[object Proxy]",Ve="[object RegExp]",Gn="[object Set]",ke="[object String]",St="[object Symbol]",Ys="[object Undefined]",je="[object WeakMap]",Xs="[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]",Js=/\b__p \+= '';/g,Qs=/\b(__p \+=) '' \+/g,Vs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gu=/&(?:amp|lt|gt|quot|#39);/g,Hu=/[&<>"']/g,ks=RegExp(Gu.source),js=RegExp(Hu.source),nl=/<%-([\s\S]+?)%>/g,el=/<%([\s\S]+?)%>/g,zu=/<%=([\s\S]+?)%>/g,tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rl=/^\w*$/,il=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yr=/[\\^$.*+?()[\]{}|]/g,ul=RegExp(Yr.source),Xr=/^\s+/,fl=/\s/,ol=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,al=/\{\n\/\* \[wrapped with (.+)\] \*/,sl=/,? & /,ll=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cl=/[()=,{}\[\]\/\s]/,hl=/\\(\\)?/g,gl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ku=/\w*$/,pl=/^[-+]0x[0-9a-f]+$/i,_l=/^0b[01]+$/i,vl=/^\[object .+?Constructor\]$/,dl=/^0o[0-7]+$/i,wl=/^(?:0|[1-9]\d*)$/,ml=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,xl=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",yl="\\u0300-\\u036f",Al="\\ufe20-\\ufe2f",Sl="\\u20d0-\\u20ff",Zu=yl+Al+Sl,Yu="\\u2700-\\u27bf",Xu="a-z\\xdf-\\xf6\\xf8-\\xff",bl="\\xac\\xb1\\xd7\\xf7",Il="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rl="\\u2000-\\u206f",Tl=" \\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=bl+Il+Rl+Tl,Jr="['’]",Ol="["+It+"]",ku="["+Vu+"]",Rt="["+Zu+"]",ju="\\d+",El="["+Yu+"]",nf="["+Xu+"]",ef="[^"+It+Vu+ju+Yu+Xu+Ju+"]",Qr="\\ud83c[\\udffb-\\udfff]",Cl="(?:"+Rt+"|"+Qr+")",tf="[^"+It+"]",Vr="(?:\\ud83c[\\udde6-\\uddff]){2}",kr="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ju+"]",rf="\\u200d",uf="(?:"+nf+"|"+ef+")",Ll="(?:"+Le+"|"+ef+")",ff="(?:"+Jr+"(?:d|ll|m|re|s|t|ve))?",of="(?:"+Jr+"(?:D|LL|M|RE|S|T|VE))?",af=Cl+"?",sf="["+Qu+"]?",Pl="(?:"+rf+"(?:"+[tf,Vr,kr].join("|")+")"+sf+af+")*",Wl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lf=sf+af+Pl,Ml="(?:"+[El,Vr,kr].join("|")+")"+lf,Bl="(?:"+[tf+Rt+"?",Rt,Vr,kr,Ol].join("|")+")",Ul=RegExp(Jr,"g"),Dl=RegExp(Rt,"g"),jr=RegExp(Qr+"(?="+Qr+")|"+Bl+lf,"g"),ql=RegExp([Le+"?"+nf+"+"+ff+"(?="+[ku,Le,"$"].join("|")+")",Ll+"+"+of+"(?="+[ku,Le+uf,"$"].join("|")+")",Le+"?"+uf+"+"+ff,Le+"+"+of,Fl,Wl,ju,Ml].join("|"),"g"),$l=RegExp("["+rf+It+Zu+Qu+"]"),Nl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gl=["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"],Hl=-1,en={};en[Dr]=en[qr]=en[$r]=en[Nr]=en[Gr]=en[Hr]=en[zr]=en[Kr]=en[Zr]=!0,en[Ee]=en[xt]=en[nt]=en[Xe]=en[Ce]=en[Je]=en[yt]=en[At]=en[Nn]=en[Qe]=en[Vn]=en[Ve]=en[Gn]=en[ke]=en[je]=!1;var V={};V[Ee]=V[xt]=V[nt]=V[Ce]=V[Xe]=V[Je]=V[Dr]=V[qr]=V[$r]=V[Nr]=V[Gr]=V[Nn]=V[Qe]=V[Vn]=V[Ve]=V[Gn]=V[ke]=V[St]=V[Hr]=V[zr]=V[Kr]=V[Zr]=!0,V[yt]=V[At]=V[je]=!1;var zl={À:"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",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'"},Yl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xl=parseFloat,Jl=parseInt,cf=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Ql=typeof self=="object"&&self&&self.Object===Object&&self,vn=cf||Ql||Function("return this")(),ni=w&&!w.nodeType&&w,we=ni&&!0&&h&&!h.nodeType&&h,hf=we&&we.exports===ni,ei=hf&&cf.process,Wn=function(){try{var l=we&&we.require&&we.require("util").types;return l||ei&&ei.binding&&ei.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 Vl(l,p,g,x){for(var E=-1,H=l==null?0:l.length;++E-1}function ti(l,p,g){for(var x=-1,E=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 fc(l,p){for(var g=l.length,x=0;g--;)l[g]===p&&++x;return x}var oc=fi(zl),ac=fi(Kl);function sc(l){return"\\"+Yl[l]}function lc(l,p){return l==null?f:l[p]}function We(l){return $l.test(l)}function cc(l){return Nl.test(l)}function hc(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,E){g[++p]=[E,x]}),g}function Tf(l,p){return function(g){return l(p(g))}}function le(l,p){for(var g=-1,x=l.length,E=0,H=[];++g-1}function jc(n,e){var t=this.__data__,r=zt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}kn.prototype.clear=Jc,kn.prototype.delete=Qc,kn.prototype.get=Vc,kn.prototype.has=kc,kn.prototype.set=jc;function jn(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&an,c=e&G,_=e&z;if(t&&(a=i?t(n,r,i,o):t(n)),a!==f)return a;if(!rn(n))return n;var v=L(n);if(v){if(a=rg(n),!s)return Sn(n,a)}else{var d=mn(n),m=d==At||d==$u;if(ve(n))return so(n,s);if(d==Vn||d==Ee||m&&!i){if(a=c||m?{}:Eo(n),!s)return c?Zh(n,_h(a,n)):Kh(n,qf(a,n))}else{if(!V[d])return i?n:{};a=ig(n,d,s)}}o||(o=new zn);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?Bi:Mi:c?In:gn,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 vh(n){var e=gn(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=Q(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(O);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=tn(e,On(t))),r?(o=ti,a=!1):e.length>=C&&(o=et,a=!1,e=new ye(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):se(i,s):r||(i[i.length]=s)}return i}var di=_o(),zf=_o(!0);function Xn(n,e){return n&&di(n,e,gn)}function wi(n,e){return n&&zf(n,e,gn)}function Zt(n,e){return ae(e,function(t){return ie(n[t])})}function Se(n,e){e=pe(e,n);for(var t=0,r=e.length;n!=null&&te}function mh(n,e){return n!=null&&X.call(n,e)}function xh(n,e){return n!=null&&e in Q(n)}function yh(n,e,t){return n>=wn(e,t)&&n=120&&v.length>=120)?new ye(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;re(i)?Ut.call(n,i,1):Oi(n,i)}}return n}function Ii(n,e){return n+$t(Mf()*(e-n+1))}function Fh(n,e,t,r){for(var i=-1,o=hn(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>oe)return t;do e%2&&(t+=n),e=$t(e/2),e&&(n+=n);while(e);return t}function B(n,e){return Hi(Po(n,e,Rn),n+"")}function Mh(n){return Df(ze(n))}function Bh(n,e){var t=ze(n);return rr(t,Ae(e,0,t.length))}function ct(n,e,t,r){if(!rn(n))return n;e=pe(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=C){var _=e?null:Qh(n);if(_)return Et(_);a=!1,i=et,c=new ye}else c=e?[]:s;n:for(;++r=r?n:Dn(n,e,t)}var ao=Tc||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 Pi(n){var e=new n.constructor(n.byteLength);return new Mt(e).set(new Mt(n)),e}function Nh(n,e){var t=e?Pi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Gh(n){var e=new n.constructor(n.source,Ku.exec(n));return e.lastIndex=n.lastIndex,e}function Hh(n){return ft?Q(ft.call(n)):{}}function lo(n,e){var t=e?Pi(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,_=hn(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=Q(e);++r-1?i[o?e[a]:a]:f}}function mo(n){return te(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(O);if(i&&!a&&er(o)=="wrapper")var a=new Bn([],!0)}for(r=a?r:t;++r1&&$.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&ln?new ye:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(ol,`{ -/* [wrapped with `+e+`] */ -`)}function fg(n){return L(n)||Re(n)||!!(Wf&&n&&n[Wf])}function re(n,e){var t=typeof n;return e=e??oe,!!e&&(t=="number"||t!="symbol"&&wl.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Ms)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 dp(n,e){return e(n),n}function ir(n,e){return e(n)}var wp=te(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 q)||!re(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 mp(){return Ko(this)}function xp(){return new Bn(this.value(),this.__chain__)}function yp(){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 Ap(){return this}function Sp(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 bp(){var n=this.__wrapped__;if(n instanceof q){var e=n;return this.__actions__.length&&(e=new q(this)),e=e.reverse(),e.__actions__.push({func:ir,args:[zi],thisArg:f}),new Bn(e,this.__chain__)}return this.thru(zi)}function Ip(){return fo(this.__wrapped__,this.__actions__)}var Rp=Qt(function(n,e,t){X.call(n,t)?++n[t]:ne(n,t,1)});function Tp(n,e,t){var r=L(n)?mf:dh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}function Op(n,e){var t=L(n)?ae:Hf;return t(n,S(e,3))}var Ep=wo(qo),Cp=wo($o);function Lp(n,e){return dn(ur(n,e),1)}function Pp(n,e){return dn(ur(n,e),de)}function Wp(n,e,t){return t=t===f?1:F(t),dn(ur(n,e),t)}function Zo(n,e){var t=L(n)?Fn:he;return t(n,S(e,3))}function Yo(n,e){var t=L(n)?kl:Gf;return t(n,S(e,3))}var Fp=Qt(function(n,e,t){X.call(n,t)?n[t].push(e):ne(n,t,[e])});function Mp(n,e,t,r){n=bn(n)?n:ze(n),t=t&&!r?F(t):0;var i=n.length;return t<0&&(t=hn(i+t,0)),lr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Pe(n,e,t)>-1}var Bp=B(function(n,e,t){var r=-1,i=typeof e=="function",o=bn(n)?g(n.length):[];return he(n,function(a){o[++r]=i?Tn(e,a,t):st(a,e,t)}),o}),Up=Qt(function(n,e,t){ne(n,t,e)});function ur(n,e){var t=L(n)?tn:Jf;return t(n,S(e,3))}function Dp(n,e,t,r){return n==null?[]:(L(e)||(e=e==null?[]:[e]),t=r?f:t,L(t)||(t=t==null?[]:[t]),jf(n,e,t))}var qp=Qt(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function $p(n,e,t){var r=L(n)?ri:Sf,i=arguments.length<3;return r(n,S(e,4),t,i,he)}function Np(n,e,t){var r=L(n)?jl:Sf,i=arguments.length<3;return r(n,S(e,4),t,i,Gf)}function Gp(n,e){var t=L(n)?ae:Hf;return t(n,ar(S(e,3)))}function Hp(n){var e=L(n)?Df:Mh;return e(n)}function zp(n,e,t){(t?yn(n,e,t):e===f)?e=1:e=F(e);var r=L(n)?hh:Bh;return r(n,e)}function Kp(n){var e=L(n)?gh:Dh;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==Nn||e==Gn?n.size:Ai(n).length}function Yp(n,e,t){var r=L(n)?ii:qh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}var Xp=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=Oc||function(){return vn.Date.now()};function Jp(n,e){if(typeof e!="function")throw new Mn(O);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,ee(n,nn,f,f,f,f,e)}function Jo(n,e){var t;if(typeof e!="function")throw new Mn(O);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=P;if(t.length){var i=le(t,Ge(Zi));r|=Y}return ee(n,r,e,t,i)}),Qo=B(function(n,e,t){var r=P|_n;if(t.length){var i=le(t,Ge(Qo));r|=Y}return ee(e,r,n,t,i)});function Vo(n,e,t){e=t?f:e;var r=ee(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=ee(n,D,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(O);e=$n(e)||0,rn(t)&&(v=!!t.leading,d="maxWait"in t,o=d?hn($n(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function y(on){var Zn=r,fe=i;return r=i=f,_=on,a=n.apply(fe,Zn),a}function b(on){return _=on,s=pt(U,e),v?y(on):a}function M(on){var Zn=on-c,fe=on-_,wa=e-Zn;return d?wn(wa,o-fe):wa}function I(on){var Zn=on-c,fe=on-_;return c===f||Zn>=e||Zn<0||d&&fe>=o}function U(){var on=fr();if(I(on))return $(on);s=pt(U,M(on))}function $(on){return s=f,m&&r?y(on):(r=i=f,a)}function Ln(){s!==f&&ao(s),_=0,r=c=i=s=f}function An(){return s===f?a:$(fr())}function Pn(){var on=fr(),Zn=I(on);if(r=arguments,i=this,c=on,Zn){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 Qp=B(function(n,e){return Nf(n,1,e)}),Vp=B(function(n,e,t){return Nf(n,$n(e)||0,t)});function kp(n){return ee(n,Ur)}function or(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Mn(O);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||jn),t}or.Cache=jn;function ar(n){if(typeof n!="function")throw new Mn(O);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 jp(n){return Jo(2,n)}var n_=$h(function(n,e){e=e.length==1&&L(e[0])?tn(e[0],On(S())):tn(dn(e,1),On(S()));var t=e.length;return B(function(r){for(var i=-1,o=wn(r.length,t);++i=e}),Re=Zf(function(){return arguments}())?Zf:function(n){return un(n)&&X.call(n,"callee")&&!Pf.call(n,"callee")},L=g.isArray,__=gf?On(gf):Sh;function bn(n){return n!=null&&sr(n.length)&&!ie(n)}function fn(n){return un(n)&&bn(n)}function v_(n){return n===!0||n===!1||un(n)&&xn(n)==Xe}var ve=Cc||iu,d_=pf?On(pf):bh;function w_(n){return un(n)&&n.nodeType===1&&!_t(n)}function m_(n){if(n==null)return!0;if(bn(n)&&(L(n)||typeof n=="string"||typeof n.splice=="function"||ve(n)||He(n)||Re(n)))return!n.length;var e=mn(n);if(e==Nn||e==Gn)return!n.size;if(gt(n))return!Ai(n).length;for(var t in n)if(X.call(n,t))return!1;return!0}function x_(n,e){return lt(n,e)}function y_(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(!un(n))return!1;var e=xn(n);return e==yt||e==zs||typeof n.message=="string"&&typeof n.name=="string"&&!_t(n)}function A_(n){return typeof n=="number"&&Ff(n)}function ie(n){if(!rn(n))return!1;var e=xn(n);return e==At||e==$u||e==Hs||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<=oe}function rn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function un(n){return n!=null&&typeof n=="object"}var ta=_f?On(_f):Rh;function S_(n,e){return n===e||yi(n,e,Di(e))}function b_(n,e,t){return t=typeof t=="function"?t:f,yi(n,e,Di(e),t)}function I_(n){return ra(n)&&n!=+n}function R_(n){if(sg(n))throw new E(R);return Yf(n)}function T_(n){return n===null}function O_(n){return n==null}function ra(n){return typeof n=="number"||un(n)&&xn(n)==Qe}function _t(n){if(!un(n)||xn(n)!=Vn)return!1;var e=Bt(n);if(e===null)return!0;var t=X.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Pt.call(t)==bc}var Ji=vf?On(vf):Th;function E_(n){return ea(n)&&n>=-oe&&n<=oe}var ia=df?On(df):Oh;function lr(n){return typeof n=="string"||!L(n)&&un(n)&&xn(n)==ke}function Cn(n){return typeof n=="symbol"||un(n)&&xn(n)==St}var He=wf?On(wf):Eh;function C_(n){return n===f}function L_(n){return un(n)&&mn(n)==je}function P_(n){return un(n)&&xn(n)==Xs}var W_=nr(Si),F_=nr(function(n,e){return n<=e});function ua(n){if(!n)return[];if(bn(n))return lr(n)?Hn(n):Sn(n);if(tt&&n[tt])return hc(n[tt]());var e=mn(n),t=e==Nn?li:e==Gn?Et:ze;return t(n)}function ue(n){if(!n)return n===0?n:0;if(n=$n(n),n===de||n===-de){var e=n<0?-1:1;return e*qs}return n===n?n:0}function F(n){var e=ue(n),t=e%1;return e===e?t?e-t:e:0}function fa(n){return n?Ae(F(n),0,Yn):0}function $n(n){if(typeof n=="number")return n;if(Cn(n))return mt;if(rn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=rn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=bf(n);var t=_l.test(n);return t||dl.test(n)?Jl(n.slice(2),t?2:8):pl.test(n)?mt:+n}function oa(n){return Jn(n,In(n))}function M_(n){return n?Ae(F(n),-oe,oe):n===0?n:0}function K(n){return n==null?"":En(n)}var B_=$e(function(n,e){if(gt(e)||bn(e)){Jn(e,gn(e),n);return}for(var t in e)X.call(e,t)&&ot(n,t,e[t])}),aa=$e(function(n,e){Jn(e,In(e),n)}),cr=$e(function(n,e,t,r){Jn(e,In(e),n,r)}),U_=$e(function(n,e,t,r){Jn(e,gn(e),n,r)}),D_=te(vi);function q_(n,e){var t=qe(n);return e==null?t:qf(t,e)}var $_=B(function(n,e){n=Q(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}),Jn(n,Bi(n),t),r&&(t=Un(t,an|G|z,Vh));for(var i=e.length;i--;)Oi(t,e[i]);return t});function iv(n,e){return la(n,ar(S(e)))}var uv=te(function(n,e){return n==null?{}:Ph(n,e)});function la(n,e){if(n==null)return{};var t=tn(Bi(n),function(r){return[r]});return e=S(e),no(n,t,function(r,i){return e(r,i[0])})}function fv(n,e,t){e=pe(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+Xl("1e-"+((i+"").length-1))),e)}return Ii(n,e)}var dv=Ne(function(n,e,t){return e=e.toLowerCase(),n+(t?ga(e):e)});function ga(n){return ki(K(n).toLowerCase())}function pa(n){return n=K(n),n&&n.replace(ml,oc).replace(Dl,"")}function wv(n,e,t){n=K(n),e=En(e);var r=n.length;t=t===f?r:Ae(F(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function mv(n){return n=K(n),n&&js.test(n)?n.replace(Hu,ac):n}function xv(n){return n=K(n),n&&ul.test(n)?n.replace(Yr,"\\$&"):n}var yv=Ne(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Av=Ne(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Sv=vo("toLowerCase");function bv(n,e,t){n=K(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 Iv(n,e,t){n=K(n),e=F(e);var r=e?Fe(n):0;return e&&r>>0,t?(n=K(n),n&&(typeof e=="string"||e!=null&&!Ji(e))&&(e=En(e),!e&&We(n))?_e(Hn(n),0,t):n.split(e,t)):[]}var Pv=Ne(function(n,e,t){return n+(t?" ":"")+ki(e)});function Wv(n,e,t){return n=K(n),t=t==null?0:Ae(F(t),0,n.length),e=En(e),n.slice(t,t+e.length)==e}function Fv(n,e,t){var r=u.templateSettings;t&&yn(n,e,t)&&(e=f),n=K(n),e=cr({},e,r,bo);var i=cr({},e.imports,r.imports,bo),o=gn(i),a=si(i,o),s,c,_=0,v=e.interpolate||bt,d="__p += '",m=ci((e.escape||bt).source+"|"+v.source+"|"+(v===zu?gl:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),y="//# sourceURL="+(X.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hl+"]")+` -`;n.replace(m,function(I,U,$,Ln,An,Pn){return $||($=Ln),d+=n.slice(_,Pn).replace(xl,sc),U&&(s=!0,d+=`' + -__e(`+U+`) + -'`),An&&(c=!0,d+=`'; -`+An+`; -__p += '`),$&&(d+=`' + -((__t = (`+$+`)) == null ? '' : __t) + -'`),_=Pn+I.length,I}),d+=`'; -`;var b=X.call(e,"variable")&&e.variable;if(!b)d=`with (obj) { -`+d+` -} -`;else if(cl.test(b))throw new E(k);d=(c?d.replace(Js,""):d).replace(Qs,"$1").replace(Vs,"$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 H(o,y+"return "+d).apply(f,a)});if(M.source=d,Xi(M))throw M;return M}function Mv(n){return K(n).toLowerCase()}function Bv(n){return K(n).toUpperCase()}function Uv(n,e,t){if(n=K(n),n&&(t||e===f))return bf(n);if(!n||!(e=En(e)))return n;var r=Hn(n),i=Hn(e),o=If(r,i),a=Rf(r,i)+1;return _e(r,o,a).join("")}function Dv(n,e,t){if(n=K(n),n&&(t||e===f))return n.slice(0,Of(n)+1);if(!n||!(e=En(e)))return n;var r=Hn(n),i=Rf(r,Hn(e))+1;return _e(r,0,i).join("")}function qv(n,e,t){if(n=K(n),n&&(t||e===f))return n.replace(Xr,"");if(!n||!(e=En(e)))return n;var r=Hn(n),i=If(r,Hn(e));return _e(r,i).join("")}function $v(n,e){var t=Ws,r=Fs;if(rn(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=K(n);var o=n.length;if(We(n)){var a=Hn(n);o=a.length}if(t>=o)return n;var s=t-Fe(r);if(s<1)return r;var c=a?_e(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,K(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 Nv(n){return n=K(n),n&&ks.test(n)?n.replace(Gu,vc):n}var Gv=Ne(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),ki=vo("toUpperCase");function _a(n,e,t){return n=K(n),e=t?f:e,e===f?cc(n)?mc(n):tc(n):n.match(e)||[]}var va=B(function(n,e){try{return Tn(n,f,e)}catch(t){return Xi(t)?t:new E(t)}}),Hv=te(function(n,e){return Fn(e,function(t){t=Qn(t),ne(n,t,Zi(n[t],n))}),n});function zv(n){var e=n==null?0:n.length,t=S();return n=e?tn(n,function(r){if(typeof r[1]!="function")throw new Mn(O);return[t(r[0]),r[1]]}):[],B(function(r){for(var i=-1;++ioe)return[];var t=Yn,r=wn(n,Yn);e=S(e),n-=Yn;for(var i=ai(r,e);++t0||e<0)?new q(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)},q.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},q.prototype.toArray=function(){return this.take(Yn)},Xn(q.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 q,_=s[0],v=c||L(a),d=function(U){var $=i.apply(u,se([U],s));return r&&m?$[0]:$};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 q(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(L(o)?o:[],i)}return this[t](function(a){return e.apply(L(a)?a:[],i)})}}),Xn(q.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";X.call(De,r)||(De[r]=[]),De[r].push({name:e,func:t})}}),De[Vt(f,_n).name]=[{name:"wrapper",func:f}],q.prototype.clone=Nc,q.prototype.reverse=Gc,q.prototype.value=Hc,u.prototype.at=wp,u.prototype.chain=mp,u.prototype.commit=xp,u.prototype.next=yp,u.prototype.plant=Sp,u.prototype.reverse=bp,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Ip,u.prototype.first=u.prototype.head,tt&&(u.prototype[tt]=Ap),u},Me=xc();we?((we.exports=Me)._=Me,ni._=Me):vn._=Me}).call(Ke)}(vt,vt.exports);var Te=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,uu;function Ta(){return uu||(uu=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))},fu=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h},Ba=Oe,ou=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,au;function qa(){return au||(au=1,gr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),gr}var pr,su;function $a(){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 Na(){return lu||(lu=1,_r=qa()()?Object.keys:$a()),_r}var vr,cu;function Ga(){if(cu)return vr;cu=1;var h=Na(),w=ou,f=Math.max;return vr=function(T,C){var R,O,k=f(arguments.length,2),Z;for(T=Object(w(T)),Z=function(N){try{T[N]=C[N]}catch(j){R||(R=j)}},O=1;O-1},wr}var fs=is()?String.prototype.contains:us(),dt=_u,du=rs,wu=hu,mu=Ia,Ze=fs,os=pu.exports=function(h,w){var f,T,C,R,O;return arguments.length<2||typeof h!="string"?(R=w,w=h,h=null):R=arguments[2],dt(h)?(f=Ze.call(h,"c"),T=Ze.call(h,"e"),C=Ze.call(h,"w")):(f=C=!0,T=!1),O={value:w,configurable:f,enumerable:T,writable:C},R?wu(mu(R),O):O};os.gs=function(h,w,f){var T,C,R,O;return typeof h!="string"?(R=f,f=w,w=h,h=null):R=arguments[3],dt(w)?du(w)?dt(f)?du(f)||(R=f,f=void 0):f=void 0:(R=w,w=f=void 0):w=void 0,dt(h)?(T=Ze.call(h,"c"),C=Ze.call(h,"e")):(T=!0,C=!1),O={get:w,set:f,configurable:T,enumerable:C},R?wu(mu(R),O):O};var Ye=pu.exports,mr={exports:{}};(function(h,w){var f=Ye,T=fu,C=Function.prototype.apply,R=Function.prototype.call,O=Object.create,k=Object.defineProperty,Z=Object.defineProperties,N=Object.prototype.hasOwnProperty,j={configurable:!0,enumerable:!1,writable:!0},an,G,z,pn,ln,P,_n;an=function(W,A){var D;return T(A),N.call(this,"__ee__")?D=this.__ee__:(D=j.value=O(null),k(this,"__ee__",j),j.value=null),D[W]?typeof D[W]=="object"?D[W].push(A):D[W]=[D[W],A]:D[W]=A,this},G=function(W,A){var D,Y;return T(A),Y=this,an.call(this,W,D=function(){z.call(Y,W,D),C.call(A,this,arguments)}),D.__eeOnceListener__=A,this},z=function(W,A){var D,Y,J,nn;if(T(A),!N.call(this,"__ee__"))return this;if(D=this.__ee__,!D[W])return this;if(Y=D[W],typeof Y=="object")for(nn=0;J=Y[nn];++nn)(J===A||J.__eeOnceListener__===A)&&(Y.length===2?D[W]=Y[nn?0:1]:Y.splice(nn,1));else(Y===A||Y.__eeOnceListener__===A)&&delete D[W];return this},pn=function(W){var A,D,Y,J,nn;if(N.call(this,"__ee__")&&(J=this.__ee__[W],!!J))if(typeof J=="object"){for(D=arguments.length,nn=new Array(D-1),A=1;A=55296&&D<=56319&&(sn+=G[++P])),sn=z?N.call(z,pn,sn,_n):sn,ln?(j.value=sn,an(W,_n,j)):W[_n]=sn,++_n;A=_n}}if(A===void 0)for(A=T(G.length),ln&&(W=new ln(A)),P=0;Pasync w=>{const f=new h,T=await w(f);if("error"in T)throw console.error(T.error),new Error(T.error);return f.terminate(),T.result},Is=h=>w=>bs(h)(f=>(f.postMessage(w),new Promise((T,C)=>{f.onmessage=R=>{T(R.data)},f.onerror=R=>{console.error(R),C(R)}}))),Rs=h=>async w=>{try{const f=await h(w);postMessage({result:f})}catch(f){postMessage({error:f})}};var Ts=""+new URL("parseTraceSlave.worker-682281af.js",self.location.href).href;const{min:Os}=Math,Es=navigator.hardwareConcurrency??8;class Cs extends Worker{constructor(){super(Ts,{type:"module"})}}const Ls=Is(Cs);async function Ps({trace:h,context:w,view:f="main"}){var O,k;const T=Te.ceil((((O=h==null?void 0:h.events)==null?void 0:O.length)??0)/Es),C=Te.range(0,(k=h==null?void 0:h.events)==null?void 0:k.length,T),R=Te.flatten(await Promise.all(Te.map(C,Z=>{var N;return Ls({trace:h,context:w,view:f,from:Z,to:Os(Z+T,((N=h==null?void 0:h.events)==null?void 0:N.length)??0)})})));return{stepsPersistent:Te.flatMap(R,"stepsPersistent"),stepsTransient:Te.flatMap(R,"stepsTransient")}}onmessage=Rs(async({data:h})=>await Ps(h))})(); diff --git a/assets/parseTraceSlave.worker-4cd9f48c.js b/assets/parseTraceSlave.worker-4cd9f48c.js new file mode 100644 index 0000000..578752b --- /dev/null +++ b/assets/parseTraceSlave.worker-4cd9f48c.js @@ -0,0 +1,28 @@ +(function(){"use strict";var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ms(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var ys=function(){},ws=ys(),qe=function(f){return f!==ws&&f!==null},xs=qe,bs=Array.prototype.forEach,Ss=Object.create,As=function(f,l){var i;for(i in f)l[i]=f[i]},cf=function(f){var l=Ss(null);return bs.call(arguments,function(i){xs(i)&&As(Object(i),l)}),l},Os=function(){var f=Math.sign;return typeof f!="function"?!1:f(10)===1&&f(-20)===-1},Dr,hf;function Ts(){return hf||(hf=1,Dr=function(f){return f=Number(f),isNaN(f)||f===0?f:f>0?1:-1}),Dr}var Is=Os()?Math.sign:Ts(),Rs=Is,Es=Math.abs,Ps=Math.floor,Cs=function(f){return isNaN(f)?0:(f=Number(f),f===0||!isFinite(f)?f:Rs(f)*Ps(Es(f)))},Ls=Cs,Ms=Math.max,Fe=function(f){return Ms(0,Ls(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},Fs=qe,Qe=function(f){if(!Fs(f))throw new TypeError("Cannot use null or undefined");return f},Ns=we,$s=Qe,Ds=Function.prototype.bind,gf=Function.prototype.call,Ws=Object.keys,Bs=Object.prototype.propertyIsEnumerable,Us=function(f,l){return function(i,h){var m,d=arguments[2],g=arguments[3];return i=Object($s(i)),Ns(h),m=Ws(i),g&&m.sort(typeof g=="function"?Ds.call(g,i):void 0),typeof f!="function"&&(f=m[f]),gf.call(f,m,function(y,w){return Bs.call(i,y)?gf.call(h,d,i[y],y,i,w):l})}},Ft=Us("forEach"),Ne={},vf={exports:{}},Gs=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")},Wr,df;function zs(){return df||(df=1,Wr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Wr}var Br,_f;function Hs(){if(_f)return Br;_f=1;var f=qe,l=Object.keys;return Br=function(i){return l(f(i)?Object(i):i)},Br}var Ur,mf;function Ks(){return mf||(mf=1,Ur=zs()()?Object.keys:Hs()),Ur}var Gr,yf;function Zs(){if(yf)return Gr;yf=1;var f=Ks(),l=Qe,i=Math.max;return Gr=function(h,m){var d,g,y=i(arguments.length,2),w;for(h=Object(l(h)),w=function(_){try{h[_]=m[_]}catch(b){d||(d=b)}},g=1;g-1},Vr}var cc=lc()?String.prototype.contains:sc(),Nt=Pf,Lf=ac,Mf=wf,qf=cf,ht=cc,hc=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],Nt(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(qf(d),g):g};hc.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],Nt(l)?Lf(l)?Nt(i)?Lf(i)||(d=i,i=void 0):i=void 0:(d=l,l=i=void 0):l=void 0,Nt(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(qf(d),g):g};var $e=Ef.exports,Yr={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,b={configurable:!0,enumerable:!1,writable:!0},M,F,C,D,q,I,P;M=function(L,A){var E;return h(A),_.call(this,"__ee__")?E=this.__ee__:(E=b.value=g(null),y(this,"__ee__",b),b.value=null),E[L]?typeof E[L]=="object"?E[L].push(A):E[L]=[E[L],A]:E[L]=A,this},F=function(L,A){var E,W;return h(A),W=this,M.call(this,L,E=function(){C.call(W,L,E),m.call(A,this,arguments)}),E.__eeOnceListener__=A,this},C=function(L,A){var E,W,U,J;if(h(A),!_.call(this,"__ee__"))return this;if(E=this.__ee__,!E[L])return this;if(W=E[L],typeof W=="object")for(J=0;U=W[J];++J)(U===A||U.__eeOnceListener__===A)&&(W.length===2?E[L]=W[J?0:1]:W.splice(J,1));else(W===A||W.__eeOnceListener__===A)&&delete E[L];return this},D=function(L){var A,E,W,U,J;if(_.call(this,"__ee__")&&(U=this.__ee__[L],!!U))if(typeof U=="object"){for(E=arguments.length,J=new Array(E-1),A=1;A=55296&&E<=56319&&(rn+=F[++I])),rn=C?_.call(C,D,rn,P):rn,q?(b.value=rn,M(L,P,b)):L[P]=rn,++P;A=P}}if(A===void 0)for(A=h(F.length),q&&(L=new q(A)),I=0;I=0?b=g(b):b=l(this.length)-g(d(b)),w=b;w<_;++w)if(m.call(this,w)&&(M=this[w],f(M)))return w;return-1},yi}var xi,ao;function kc(){if(ao)return xi;ao=1;var f=wi(),l=Object.create;return xi=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],b=_.length,M=[];if(b===0)delete y[b];else if(y=y[b]){for(;g"}},Ci}var Li,Ao;function oh(){if(Ao)return Li;Ao=1;var f=fh(),l=/[\n\r\u2028\u2029]/g;return Li=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},Li}var Ut={exports:{}},Oo;function To(){if(Oo)return Ut.exports;Oo=1,Ut.exports=f,Ut.exports.default=f;function f(l){return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"}return Ut.exports}var Io;function ah(){if(Io)return _o;Io=1;var f=po(),l=rh(),i=uh(),h=oh(),m=To(),d=Ti(),g=Object.create,y=l("then","then:finally","done","done:finally");return Ne.promise=function(w,_){var b=g(null),M=g(null),F=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,D,q){var I=!1;if(!m(q)){M[C]=q,_.emit("setasync",C,1);return}b[C]=1,F[C]=q;var P=function(W){var U=b[C];if(I)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 b[C],M[C]=W,_.emit("setasync",C,U))},L=function(){I=!0,b[C]&&(delete b[C],delete F[C],_.delete(C))},A=w;if(A||(A="then"),A==="then"){var E=function(){d(L)};q=q.then(function(W){d(P.bind(this,W))},E),typeof q.finally=="function"&&q.finally(E)}else if(A==="done"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");q.done(P,L)}else if(A==="done:finally"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof q.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");q.done(P),q.finally(L)}}),_.on("get",function(C,D,q){var I;if(b[C]){++b[C];return}I=F[C];var P=function(){_.emit("getasync",C,D,q)};m(I)?typeof I.done=="function"?I.done(P):I.then(function(){d(P)}):P()}),_.on("delete",function(C){if(delete F[C],b[C]){delete b[C];return}if(hasOwnProperty.call(M,C)){var D=M[C];delete M[C],_.emit("deleteasync",C,[D])}}),_.on("clear",function(){var C=M;M=g(null),b=g(null),F=g(null),_.emit("clearasync",f(C,function(D){return[D]}))})},_o}var Ro={},Eo;function lh(){if(Eo)return Ro;Eo=1;var f=we,l=Ft,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(_,b){y(b,_)})});return}d.on("delete",y=function(w,_){m(_)}),d.on("clear",function(w){l(w,function(_,b){y(b,_)})})},Ro}var Po={},Mi,Co;function sh(){return Co||(Co=1,Mi=2147483647),Mi}var qi,Lo;function ch(){if(Lo)return qi;Lo=1;var f=Fe,l=sh();return qi=function(i){if(i=f(i),i>l)throw new TypeError(i+" exceeds maximum possible timeout");return i},qi}var Mo;function hh(){if(Mo)return Po;Mo=1;var f=ci,l=Ft,i=Ti(),h=To(),m=ch(),d=Ne,g=Function.prototype,y=Math.max,w=Math.min,_=Object.create;return d.maxAge=function(b,M,F){var C,D,q,I;b=m(b),b&&(C=_(null),D=F.async&&d.async||F.promise&&d.promise?"async":"",M.on("set"+D,function(P){C[P]=setTimeout(function(){M.delete(P)},b),typeof C[P].unref=="function"&&C[P].unref(),I&&(I[P]&&I[P]!=="nextTick"&&clearTimeout(I[P]),I[P]=setTimeout(function(){delete I[P]},q),typeof I[P].unref=="function"&&I[P].unref())}),M.on("delete"+D,function(P){clearTimeout(C[P]),delete C[P],I&&(I[P]!=="nextTick"&&clearTimeout(I[P]),delete I[P])}),F.preFetch&&(F.preFetch===!0||isNaN(F.preFetch)?q=.333:q=y(w(Number(F.preFetch),1),0),q&&(I={},q=(1-q)*b,M.on("get"+D,function(P,L,A){I[P]||(I[P]="nextTick",i(function(){var E;I[P]==="nextTick"&&(delete I[P],M.delete(P),F.async&&(L=f(L),L.push(g)),E=M.memoized.apply(A,L),F.promise&&h(E)&&(typeof E.done=="function"?E.done(g,g):E.then(g,g)))}))}))),M.on("clear"+D,function(){l(C,function(P){clearTimeout(P)}),C={},I&&(l(I,function(P){P!=="nextTick"&&clearTimeout(P)}),I={})}))},Po}var qo={},Fi,Fo;function ph(){if(Fo)return Fi;Fo=1;var f=Fe,l=Object.create,i=Object.prototype.hasOwnProperty;return Fi=function(h){var m=0,d=1,g=l(null),y=l(null),w=0,_;return h=f(h),{hit:function(b){var M=y[b],F=++w;if(g[F]=b,y[b]=F,!M)return++m,m<=h?void 0:(b=g[d],_(b),b);if(delete g[M],d===M)for(;!i.call(g,++d););},delete:_=function(b){var M=y[b];if(M&&(delete g[M],delete y[b],--m,d===M)){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}}},Fi}var No;function gh(){if(No)return qo;No=1;var f=Fe,l=ph(),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))},qo}var $o={},Do;function vh(){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(_,b){y[_]=b||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 dh=cf,_h=pf,mh=Vc,yh=function(f){var l=dh(arguments[1]),i;return l.normalizer||(i=l.length=_h(l.length,f.length,l.async),i!==0&&(l.primitive?i===!1?l.normalizer=Yc():i>1&&(l.normalizer=Qc()(i)):i===!1?l.normalizer=kc()():i===1?l.normalizer=nh()():l.normalizer=eh()(i))),l.async&&th(),l.promise&&ah(),l.dispose&&lh(),l.maxAge&&hh(),l.max&&gh(),l.refCounter&&vh(),mh(f,l)},wh=ms(yh);const xh=f=>async l=>{try{const i=await f(l);postMessage({result:i})}catch(i){postMessage({error:i})}};var Gt={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 + */Gt.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,b="__lodash_placeholder__",M=1,F=2,C=4,D=1,q=2,I=1,P=2,L=4,A=8,E=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,De=17976931348623157e292,ae=0/0,$n=4294967295,Gi=$n-1,Zt=$n>>>1,Vt=[["ary",J],["bind",I],["bindKey",P],["curry",A],["curryRight",E],["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]",Yt="[object Proxy]",an="[object RegExp]",_n="[object Set]",kn="[object String]",Qt="[object Symbol]",Ch="[object Undefined]",mt="[object WeakMap]",Lh="[object WeakSet]",yt="[object ArrayBuffer]",Je="[object DataView]",zi="[object Float32Array]",Hi="[object Float64Array]",Ki="[object Int8Array]",Zi="[object Int16Array]",Vi="[object Int32Array]",Yi="[object Uint8Array]",Qi="[object Uint8ClampedArray]",Xi="[object Uint16Array]",Ji="[object Uint32Array]",Mh=/\b__p \+= '';/g,qh=/\b(__p \+=) '' \+/g,Fh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zo=/&(?:amp|lt|gt|quot|#39);/g,Ho=/[&<>"']/g,Nh=RegExp(zo.source),$h=RegExp(Ho.source),Dh=/<%-([\s\S]+?)%>/g,Wh=/<%([\s\S]+?)%>/g,Ko=/<%=([\s\S]+?)%>/g,Bh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uh=/^\w*$/,Gh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ji=/[\\^$.*+?()[\]{}|]/g,zh=RegExp(ji.source),ki=/^\s+/,Hh=/\s/,Kh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zh=/\{\n\/\* \[wrapped with (.+)\] \*/,Vh=/,? & /,Yh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qh=/[()=,{}\[\]\/\s]/,Xh=/\\(\\)?/g,Jh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zo=/\w*$/,jh=/^[-+]0x[0-9a-f]+$/i,kh=/^0b[01]+$/i,np=/^\[object .+?Constructor\]$/,ep=/^0o[0-7]+$/i,tp=/^(?:0|[1-9]\d*)$/,rp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,ip=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",up="\\u0300-\\u036f",fp="\\ufe20-\\ufe2f",op="\\u20d0-\\u20ff",Vo=up+fp+op,Yo="\\u2700-\\u27bf",Qo="a-z\\xdf-\\xf6\\xf8-\\xff",ap="\\xac\\xb1\\xd7\\xf7",lp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sp="\\u2000-\\u206f",cp=" \\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",Xo="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\ufe0e\\ufe0f",jo=ap+lp+sp+cp,nu="['’]",hp="["+Jt+"]",ko="["+jo+"]",jt="["+Vo+"]",na="\\d+",pp="["+Yo+"]",ea="["+Qo+"]",ta="[^"+Jt+jo+na+Yo+Qo+Xo+"]",eu="\\ud83c[\\udffb-\\udfff]",gp="(?:"+jt+"|"+eu+")",ra="[^"+Jt+"]",tu="(?:\\ud83c[\\udde6-\\uddff]){2}",ru="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Xo+"]",ia="\\u200d",ua="(?:"+ea+"|"+ta+")",vp="(?:"+je+"|"+ta+")",fa="(?:"+nu+"(?:d|ll|m|re|s|t|ve))?",oa="(?:"+nu+"(?:D|LL|M|RE|S|T|VE))?",aa=gp+"?",la="["+Jo+"]?",dp="(?:"+ia+"(?:"+[ra,tu,ru].join("|")+")"+la+aa+")*",_p="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sa=la+aa+dp,yp="(?:"+[pp,tu,ru].join("|")+")"+sa,wp="(?:"+[ra+jt+"?",jt,tu,ru,hp].join("|")+")",xp=RegExp(nu,"g"),bp=RegExp(jt,"g"),iu=RegExp(eu+"(?="+eu+")|"+wp+sa,"g"),Sp=RegExp([je+"?"+ea+"+"+fa+"(?="+[ko,je,"$"].join("|")+")",vp+"+"+oa+"(?="+[ko,je+ua,"$"].join("|")+")",je+"?"+ua+"+"+fa,je+"+"+oa,mp,_p,na,yp].join("|"),"g"),Ap=RegExp("["+ia+Jt+Vo+Jo+"]"),Op=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tp=["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"],Ip=-1,ln={};ln[zi]=ln[Hi]=ln[Ki]=ln[Zi]=ln[Vi]=ln[Yi]=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[Vi]=on[dn]=on[Cn]=on[Hn]=on[an]=on[_n]=on[kn]=on[Qt]=on[Yi]=on[Qi]=on[Xi]=on[Ji]=!0,on[ie]=on[xn]=on[mt]=!1;var Rp={À:"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",ô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"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ep={"&":"&","<":"<",">":">",'"':""","'":"'"},Pp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Cp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lp=parseFloat,Mp=parseInt,ca=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,qp=typeof self=="object"&&self&&self.Object===Object&&self,Sn=ca||qp||Function("return this")(),uu=l&&!l.nodeType&&l,We=uu&&!0&&f&&!f.nodeType&&f,ha=We&&We.exports===uu,fu=ha&&ca.process,Kn=function(){try{var p=We&&We.require&&We.require("util").types;return p||fu&&fu.binding&&fu.binding("util")}catch{}}(),pa=Kn&&Kn.isArrayBuffer,ga=Kn&&Kn.isDate,va=Kn&&Kn.isMap,da=Kn&&Kn.isRegExp,_a=Kn&&Kn.isSet,ma=Kn&&Kn.isTypedArray;function Dn(p,S,x){switch(x.length){case 0:return p.call(S);case 1:return p.call(S,x[0]);case 2:return p.call(S,x[0],x[1]);case 3:return p.call(S,x[0],x[1],x[2])}return p.apply(S,x)}function Fp(p,S,x,$){for(var K=-1,nn=p==null?0:p.length;++K-1}function ou(p,S,x){for(var $=-1,K=p==null?0:p.length;++$-1;);return x}function Ta(p,S){for(var x=p.length;x--&&ke(S,p[x],0)>-1;);return x}function Hp(p,S){for(var x=p.length,$=0;x--;)p[x]===S&&++$;return $}var Kp=cu(Rp),Zp=cu(Ep);function Vp(p){return"\\"+Cp[p]}function Yp(p,S){return p==null?i:p[S]}function nt(p){return Ap.test(p)}function Qp(p){return Op.test(p)}function Xp(p){for(var S,x=[];!(S=p.next()).done;)x.push(S.value);return x}function vu(p){var S=-1,x=Array(p.size);return p.forEach(function($,K){x[++S]=[K,$]}),x}function Ia(p,S){return function(x){return p(S(x))}}function Ie(p,S){for(var x=-1,$=p.length,K=0,nn=[];++x<$;){var mn=p[x];(mn===S||mn===b)&&(p[x]=b,nn[K++]=x)}return nn}function er(p){var S=-1,x=Array(p.size);return p.forEach(function($){x[++S]=$}),x}function Jp(p){var S=-1,x=Array(p.size);return p.forEach(function($){x[++S]=[$,$]}),x}function jp(p,S,x){for(var $=x-1,K=p.length;++$-1}function $g(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=qg,ce.prototype.get=Fg,ce.prototype.has=Ng,ce.prototype.set=$g;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&M,v=e&F,O=e&C;if(t&&(s=u?t(n,r,u,a):t(n)),s!==i)return s;if(!hn(n))return n;var T=Z(n);if(T){if(s=Uv(n),!c)return Ln(n,s)}else{var R=Tn(n),N=R==xn||R==Se;if(Me(n))return ll(n,c);if(R==Hn||R==le||N&&!u){if(s=v||N?{}:Rl(n),!c)return v?Pv(n,kg(s,n)):Ev(n,Wa(s,n))}else{if(!on[R])return u?n:{};s=Gv(n,R,c)}}a||(a=new ee);var B=a.get(n);if(B)return B;a.set(n,s),rs(n)?n.forEach(function(H){s.add(Qn(H,e,t,H,n,a))}):es(n)&&n.forEach(function(H,X){s.set(X,Qn(H,e,t,X,n,a))});var z=O?v?Uu:Bu:v?qn:bn,Y=T?i:z(n);return Zn(Y||n,function(H,X){Y&&(X=H,H=n[X]),Tt(s,X,Qn(H,e,t,X,n,a))}),s}function nv(n){var e=bn(n);return function(t){return Ba(t,n,e)}}function Ba(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 Ua(n,e,t){if(typeof n!="function")throw new Vn(g);return Mt(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 Ge(e));n:for(;++uu?0:u+t),r=r===i||r>u?u:V(r),r<0&&(r+=u),r=t>r?0:us(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=vl(),Ha=vl(!0);function ue(n,e){return n&&bu(n,e,bn)}function Su(n,e){return n&&Ha(n,e,bn)}function mr(n,e){return Oe(e,function(t){return _e(n[t])})}function He(n,e){e=Ce(e,n);for(var t=0,r=e.length;n!=null&&te}function rv(n,e){return n!=null&&tn.call(n,e)}function iv(n,e){return n!=null&&e in fn(n)}function uv(n,e,t){return n>=On(e,t)&&n=120&&T.length>=120)?new Ge(s&&T):i}T=n[0];var R=-1,N=c[0];n:for(;++R-1;)c!==n&&lr.call(c,v,1),lr.call(n,v,1);return n}function el(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 Pu(n,e){return n+hr(Fa()*(e-n+1))}function mv(n,e,t,r){for(var u=-1,a=yn(cr((e-n)/(t||1)),0),s=x(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 Yu(Cl(n,e,Fn),n+"")}function yv(n){return Da(ct(n))}function wv(n,e){var t=ct(n);return Er(t,ze(e,0,t.length))}function Pt(n,e,t,r){if(!hn(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=x(u);++r>>1,s=n[a];s!==null&&!Un(s)&&(t?s<=e:s=m){var O=e?null:qv(n);if(O)return er(O);s=!1,u=wt,v=new Ge}else v=e?[]:c;n:for(;++r=r?n:Xn(n,e,t)}var al=cg||function(n){return Sn.clearTimeout(n)};function ll(n,e){if(e)return n.slice();var t=n.length,r=Pa?Pa(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 Ov(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Tv(n){var e=new n.constructor(n.source,Zo.exec(n));return e.lastIndex=n.lastIndex,e}function Iv(n){return Ot?fn(Ot.call(n)):{}}function sl(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function cl(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 hl(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=x(v+O),R=!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 ml(n){return ve(function(e){var t=e.length,r=t,u=Yn.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Vn(g);if(u&&!s&&Ir(a)=="wrapper")var s=new Yn([],!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 R=-1,N=!0,B=t&q?new Ge:i;for(a.set(n,e),a.set(e,n);++R1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Kh,`{ +/* [wrapped with `+e+`] */ +`)}function Hv(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"&&tp.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,zl(n,t)});function Hl(n){var e=o(n);return e.__chain__=!0,e}function e_(n,e){return e(n),n}function Pr(n,e){return e(n)}var t_=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 Yn(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(i),a}))});function r_(){return Hl(this)}function i_(){return new Yn(this.value(),this.__chain__)}function u_(){this.__values__===i&&(this.__values__=is(this.value()));var n=this.__index__>=this.__values__.length,e=n?i:this.__values__[this.__index__++];return{done:n,value:e}}function f_(){return this}function o_(n){for(var e,t=this;t instanceof vr;){var r=$l(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 a_(){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 Yn(e,this.__chain__)}return this.thru(Qu)}function l_(){return fl(this.__wrapped__,this.__actions__)}var s_=br(function(n,e,t){tn.call(n,t)?++n[t]:pe(n,t,1)});function c_(n,e,t){var r=Z(n)?ya:ev;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}function h_(n,e){var t=Z(n)?Oe:za;return t(n,G(e,3))}var p_=_l(Dl),g_=_l(Wl);function v_(n,e){return An(Cr(n,e),1)}function d_(n,e){return An(Cr(n,e),Nn)}function __(n,e,t){return t=t===i?1:V(t),An(Cr(n,e),t)}function Kl(n,e){var t=Z(n)?Zn:Ee;return t(n,G(e,3))}function Zl(n,e){var t=Z(n)?Np:Ga;return t(n,G(e,3))}var m_=br(function(n,e,t){tn.call(n,t)?n[t].push(e):pe(n,t,[e])});function y_(n,e,t,r){n=Mn(n)?n:ct(n),t=t&&!r?V(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 w_=Q(function(n,e,t){var r=-1,u=typeof e=="function",a=Mn(n)?x(n.length):[];return Ee(n,function(s){a[++r]=u?Dn(e,s,t):Rt(s,e,t)}),a}),x_=br(function(n,e,t){pe(n,t,e)});function Cr(n,e){var t=Z(n)?sn:Qa;return t(n,G(e,3))}function b_(n,e,t,r){return n==null?[]:(Z(e)||(e=e==null?[]:[e]),t=r?i:t,Z(t)||(t=t==null?[]:[t]),ka(n,e,t))}var S_=br(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function A_(n,e,t){var r=Z(n)?au:Sa,u=arguments.length<3;return r(n,G(e,4),t,u,Ee)}function O_(n,e,t){var r=Z(n)?$p:Sa,u=arguments.length<3;return r(n,G(e,4),t,u,Ga)}function T_(n,e){var t=Z(n)?Oe:za;return t(n,qr(G(e,3)))}function I_(n){var e=Z(n)?Da:yv;return e(n)}function R_(n,e,t){(t?Rn(n,e,t):e===i)?e=1:e=V(e);var r=Z(n)?Xg:wv;return r(n,e)}function E_(n){var e=Z(n)?Jg:bv;return e(n)}function P_(n){if(n==null)return 0;if(Mn(n))return Nr(n)?et(n):n.length;var e=Tn(n);return e==dn||e==_n?n.size:Iu(n).length}function C_(n,e,t){var r=Z(n)?lu:Sv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}var L_=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]]),ka(n,An(e,1),[])}),Lr=hg||function(){return Sn.Date.now()};function M_(n,e){if(typeof e!="function")throw new Vn(g);return n=V(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 Yl(n,e){var t;if(typeof e!="function")throw new Vn(g);return n=V(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=i),t}}var Ju=Q(function(n,e,t){var r=I;if(t.length){var u=Ie(t,lt(Ju));r|=W}return ge(n,r,e,t,u)}),Ql=Q(function(n,e,t){var r=I|P;if(t.length){var u=Ie(t,lt(Ql));r|=W}return ge(e,r,n,t,u)});function Xl(n,e,t){e=t?i:e;var r=ge(n,A,i,i,i,i,i,e);return r.placeholder=Xl.placeholder,r}function Jl(n,e,t){e=t?i:e;var r=ge(n,E,i,i,i,i,i,e);return r.placeholder=Jl.placeholder,r}function jl(n,e,t){var r,u,a,s,c,v,O=0,T=!1,R=!1,N=!0;if(typeof n!="function")throw new Vn(g);e=jn(e)||0,hn(t)&&(T=!!t.leading,R="maxWait"in t,a=R?yn(jn(t.maxWait)||0,e):a,N="trailing"in t?!!t.trailing:N);function B(vn){var re=r,ye=u;return r=u=i,O=vn,s=n.apply(ye,re),s}function z(vn){return O=vn,c=Mt(X,e),T?B(vn):s}function Y(vn){var re=vn-v,ye=vn-O,_s=e-re;return R?On(_s,a-ye):_s}function H(vn){var re=vn-v,ye=vn-O;return v===i||re>=e||re<0||R&&ye>=a}function X(){var vn=Lr();if(H(vn))return k(vn);c=Mt(X,Y(vn))}function k(vn){return c=i,N&&r?B(vn):(r=u=i,s)}function Gn(){c!==i&&al(c),O=0,r=v=u=c=i}function En(){return c===i?s:k(Lr())}function zn(){var vn=Lr(),re=H(vn);if(r=arguments,u=this,v=vn,re){if(c===i)return z(v);if(R)return al(c),c=Mt(X,e),B(v)}return c===i&&(c=Mt(X,e)),s}return zn.cancel=Gn,zn.flush=En,zn}var q_=Q(function(n,e){return Ua(n,1,e)}),F_=Q(function(n,e,t){return Ua(n,jn(e)||0,t)});function N_(n){return ge(n,Pn)}function Mr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Vn(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(Mr.Cache||he),t}Mr.Cache=he;function qr(n){if(typeof n!="function")throw new Vn(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 $_(n){return Yl(2,n)}var D_=Av(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=Za(function(){return arguments}())?Za:function(n){return pn(n)&&tn.call(n,"callee")&&!La.call(n,"callee")},Z=x.isArray,k_=pa?Wn(pa):ov;function Mn(n){return n!=null&&Fr(n.length)&&!_e(n)}function gn(n){return pn(n)&&Mn(n)}function n0(n){return n===!0||n===!1||pn(n)&&In(n)==se}var Me=gg||sf,e0=ga?Wn(ga):av;function t0(n){return pn(n)&&n.nodeType===1&&!qt(n)}function r0(n){if(n==null)return!0;if(Mn(n)&&(Z(n)||typeof n=="string"||typeof n.splice=="function"||Me(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 i0(n,e){return Et(n,e)}function u0(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(!pn(n))return!1;var e=In(n);return e==ie||e==un||typeof n.message=="string"&&typeof n.name=="string"&&!qt(n)}function f0(n){return typeof n=="number"&&qa(n)}function _e(n){if(!hn(n))return!1;var e=In(n);return e==xn||e==Se||e==dt||e==Yt}function ns(n){return typeof n=="number"&&n==V(n)}function Fr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=wn}function hn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function pn(n){return n!=null&&typeof n=="object"}var es=va?Wn(va):sv;function o0(n,e){return n===e||Tu(n,e,zu(e))}function a0(n,e,t){return t=typeof t=="function"?t:i,Tu(n,e,zu(e),t)}function l0(n){return ts(n)&&n!=+n}function s0(n){if(Vv(n))throw new K(d);return Va(n)}function c0(n){return n===null}function h0(n){return n==null}function ts(n){return typeof n=="number"||pn(n)&&In(n)==Cn}function qt(n){if(!pn(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)==ag}var nf=da?Wn(da):cv;function p0(n){return ns(n)&&n>=-wn&&n<=wn}var rs=_a?Wn(_a):hv;function Nr(n){return typeof n=="string"||!Z(n)&&pn(n)&&In(n)==kn}function Un(n){return typeof n=="symbol"||pn(n)&&In(n)==Qt}var st=ma?Wn(ma):pv;function g0(n){return n===i}function v0(n){return pn(n)&&Tn(n)==mt}function d0(n){return pn(n)&&In(n)==Lh}var _0=Tr(Ru),m0=Tr(function(n,e){return n<=e});function is(n){if(!n)return[];if(Mn(n))return Nr(n)?ne(n):Ln(n);if(xt&&n[xt])return Xp(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*De}return n===n?n:0}function V(n){var e=me(n),t=e%1;return e===e?t?e-t:e:0}function us(n){return n?ze(V(n),0,$n):0}function jn(n){if(typeof n=="number")return n;if(Un(n))return ae;if(hn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=hn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Aa(n);var t=kh.test(n);return t||ep.test(n)?Mp(n.slice(2),t?2:8):jh.test(n)?ae:+n}function fs(n){return fe(n,qn(n))}function y0(n){return n?ze(V(n),-wn,wn):n===0?n:0}function en(n){return n==null?"":Bn(n)}var w0=ot(function(n,e){if(Lt(e)||Mn(e)){fe(e,bn(e),n);return}for(var t in e)tn.call(e,t)&&Tt(n,t,e[t])}),os=ot(function(n,e){fe(e,qn(e),n)}),$r=ot(function(n,e,t,r){fe(e,qn(e),n,r)}),x0=ot(function(n,e,t,r){fe(e,bn(e),n,r)}),b0=ve(xu);function S0(n,e){var t=ft(n);return e==null?t:Wa(t,e)}var A0=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,M|F|C,Fv));for(var u=e.length;u--;)Mu(t,e[u]);return t});function G0(n,e){return ls(n,qr(G(e)))}var z0=ve(function(n,e){return n==null?{}:dv(n,e)});function ls(n,e){if(n==null)return{};var t=sn(Uu(n),function(r){return[r]});return e=G(e),nl(n,t,function(r,u){return e(r,u[0])})}function H0(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=Fa();return On(n+u*(e-n+Lp("1e-"+((u+"").length-1))),e)}return Pu(n,e)}var e1=at(function(n,e,t){return e=e.toLowerCase(),n+(t?hs(e):e)});function hs(n){return rf(en(n).toLowerCase())}function ps(n){return n=en(n),n&&n.replace(rp,Kp).replace(bp,"")}function t1(n,e,t){n=en(n),e=Bn(e);var r=n.length;t=t===i?r:ze(V(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function r1(n){return n=en(n),n&&$h.test(n)?n.replace(Ho,Zp):n}function i1(n){return n=en(n),n&&zh.test(n)?n.replace(ji,"\\$&"):n}var u1=at(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),f1=at(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),o1=dl("toLowerCase");function a1(n,e,t){n=en(n),e=V(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 l1(n,e,t){n=en(n),e=V(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 d1=at(function(n,e,t){return n+(t?" ":"")+rf(e)});function _1(n,e,t){return n=en(n),t=t==null?0:ze(V(t),0,n.length),e=Bn(e),n.slice(t,t+e.length)==e}function m1(n,e,t){var r=o.templateSettings;t&&Rn(n,e,t)&&(e=i),n=en(n),e=$r({},e,r,Sl);var u=$r({},e.imports,r.imports,Sl),a=bn(u),s=gu(u,a),c,v,O=0,T=e.interpolate||Xt,R="__p += '",N=du((e.escape||Xt).source+"|"+T.source+"|"+(T===Ko?Jh:Xt).source+"|"+(e.evaluate||Xt).source+"|$","g"),B="//# sourceURL="+(tn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ip+"]")+` +`;n.replace(N,function(H,X,k,Gn,En,zn){return k||(k=Gn),R+=n.slice(O,zn).replace(ip,Vp),X&&(c=!0,R+=`' + +__e(`+X+`) + +'`),En&&(v=!0,R+=`'; +`+En+`; +__p += '`),k&&(R+=`' + +((__t = (`+k+`)) == null ? '' : __t) + +'`),O=zn+H.length,H}),R+=`'; +`;var z=tn.call(e,"variable")&&e.variable;if(!z)R=`with (obj) { +`+R+` +} +`;else if(Qh.test(z))throw new K(y);R=(v?R.replace(Mh,""):R).replace(qh,"$1").replace(Fh,"$1;"),R="function("+(z||"obj")+`) { +`+(z?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+R+`return __p +}`;var Y=vs(function(){return nn(a,B+"return "+R).apply(i,s)});if(Y.source=R,ku(Y))throw Y;return Y}function y1(n){return en(n).toLowerCase()}function w1(n){return en(n).toUpperCase()}function x1(n,e,t){if(n=en(n),n&&(t||e===i))return Aa(n);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=ne(e),a=Oa(r,u),s=Ta(r,u)+1;return Le(r,a,s).join("")}function b1(n,e,t){if(n=en(n),n&&(t||e===i))return n.slice(0,Ra(n)+1);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ta(r,ne(e))+1;return Le(r,0,u).join("")}function S1(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=Oa(r,ne(e));return Le(r,u).join("")}function A1(n,e){var t=gt,r=Ht;if(hn(e)){var u="separator"in e?e.separator:u;t="length"in e?V(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(Zo.exec(u))+"g")),u.lastIndex=0;O=u.exec(T);)var R=O.index;v=v.slice(0,R===i?c:R)}}else if(n.indexOf(Bn(u),c)!=c){var N=v.lastIndexOf(u);N>-1&&(v=v.slice(0,N))}return v+r}function O1(n){return n=en(n),n&&Nh.test(n)?n.replace(zo,ng):n}var T1=at(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),rf=dl("toUpperCase");function gs(n,e,t){return n=en(n),e=t?i:e,e===i?Qp(n)?rg(n):Bp(n):n.match(e)||[]}var vs=Q(function(n,e){try{return Dn(n,i,e)}catch(t){return ku(t)?t:new K(t)}}),I1=ve(function(n,e){return Zn(e,function(t){t=oe(t),pe(n,t,Ju(n[t],n))}),n});function R1(n){var e=n==null?0:n.length,t=G();return n=e?sn(n,function(r){if(typeof r[1]!="function")throw new Vn(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=V(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),R=function(X){var k=u.apply(o,Te([X],c));return r&&N?k[0]:k};T&&t&&typeof O=="function"&&O.length!=1&&(v=T=!1);var N=this.__chain__,B=!!this.__actions__.length,z=a&&!N,Y=v&&!B;if(!a&&T){s=Y?s:new j(this);var H=n.apply(s,c);return H.__actions__.push({func:Pr,args:[R],thisArg:i}),new Yn(H,N)}return z&&Y?n.apply(this,c):(H=this.thru(R),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=Og,j.prototype.reverse=Tg,j.prototype.value=Ig,o.prototype.at=t_,o.prototype.chain=r_,o.prototype.commit=i_,o.prototype.next=u_,o.prototype.plant=o_,o.prototype.reverse=a_,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=l_,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=f_),o},tt=ig();We?((We.exports=tt)._=tt,uu._=tt):Sn._=tt}).call(Ye)}(Gt,Gt.exports);var cn=Gt.exports;function Ni(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 Wo={exports:{}};(function(f,l){(function(i,h){f.exports=h()})(Ye,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,b=_===void 0?/^\\/:_,M=w.VARIABLE_START,F=M===void 0?/^\${\s*/:M,C=w.VARIABLE_END,D=C===void 0?/^\s*}/:C,q=w.PIPE_START,I=q===void 0?/^\s*\|\s*/:q,P=w.PIPE_PARAMETER_START,L=P===void 0?/^\s*:\s*/:P,A=w.QUOTED_STRING,E=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 E.test(Nn)},vt=rn||g(E),Bi=gt||function(Nn){return E.test(Nn)},Ui=Wi||g(E);return function(Nn){function wn(an){an===void 0&&(an=1),un=un.substr(an)}function De(an){an===void 0&&(an=/^/),wn(un.match(an)[0].length)}function ae(){var an;return De(b),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 Vt(){dn.pipes.push(Cn),Zt({isNull:!0})}function le(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Ae="",Yt=!kn}function xe(){Cn.parameters.push(Ae),le({isNull:!0})}function dt(){return!!D.test(un)&&(De(D),xn>=3&&xe(),xn>=2&&Vt(),xn>=1&&Gi(),xn=0,!0)}function se(){return!!I.test(un)&&(De(I),xn>=3&&xe(),xn>=2&&Vt(),xn>=1&&Zt(),xn=2,!0)}function be(){return!!L.test(un)&&(De(L),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,Yt=!1;un&&un.length>0;)switch(xn){case 0:if(b.test(un)){Se+=ae();continue}if(F.test(un)){xn=1,$n(),ie.literals.push(Se),Se="",De(F);continue}Se+=un[0],wn();break;case 1:if(b.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(b.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(b.test(un)){Ae+=ae();continue}if(dt()||be()||se())continue;if(Bi(un)){Ae+=Ui(un,wn);continue}Ae+=un[0],wn()}return Yt&&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 b=w.match(y);return _(b[0].length),b.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(b){return function(M){return b.hasOwnProperty(M)?b[M]:M.split(".").reduce(function(F,C){return F.hasOwnProperty(C)?F[C]:""},b)}}function g(b,M,F,C){C===void 0&&(C=d(M));var D=C(b.name);return b.pipes.reduce(function(q,I){return F.hasOwnProperty(I.name)?F[I.name](q,I.parameters):q},D??"")}function y(b,M,F,C){return C===void 0&&(C=d(M)),b.literals.length===0?"":b.literals.slice(1).reduce(function(D,q,I){return""+D+g(b.variables[I],M,F,C)+q},b.literals[0])}function w(b,M,F){return y(_.parseStringTemplate(b),M,F)}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("$",`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*\}\}/,$i=/\b\B/,Ah=Bo.parseStringTemplateGenerator({VARIABLE_START:bh,VARIABLE_END:Sh,PIPE_START:$i,PIPE_PARAMETER_START:$i,QUOTED_STRING:$i}),Oh=wh(f=>{const l=Ah(f);return cn.join(l.literals,"")?i=>Bo.evaluateParsedString(l,{},{},h=>Uo(h)(i)):Uo(l.variables[0].name)},{primitive:!0});function Xe(f){switch(f==null?void 0:f.constructor){case Array:{const l=cn.map(f,Xe);return i=>cn.map(l,h=>h(i))}case Object:{const l=cn.mapValues(f,Xe);return i=>cn.mapValues(l,h=>h(i))}case String:return Oh(f);default:return()=>f}}function zt(f={}){return Ni(f,l=>cn.isFunction(l)?l:Xe(l))}function Th(f={}){return new Proxy(f,{get:(l,i)=>typeof l[i]=="function"?l[i]:()=>l[i]})}function Di(f,l){return Object.setPrototypeOf(Ni(l,i=>h=>i(f)),f)}function Ih(f){const{$for:l,...i}=f;if(l){const{$let:h="i",$from:m=0,$to:d=1,$step:g=1}=l,y=Xe(m),w=Xe(d),_=Xe(g);return(b={})=>cn.range(y(b),w(b),_(b)).map(M=>{const F=Di(b,zt({[h]:M}));return Di(F,zt(i))})}else return(h={})=>[Di(h,zt(i))]}function Rh(f,l){const i=d=>{const{$:g}=d,y=Ih(d);return g in l?w=>cn.flatMap(y(w),_=>cn.flatMap(h[g],b=>b(_))):w=>cn.map(y(w),_=>Object.setPrototypeOf(Ni(_,b=>b(_)),null))},h=cn.mapValues(l,d=>cn.map(d,i)),m=cn.flatMap(f,i);return d=>cn.flatMap(m,g=>g(d))}const Eh=f=>f==null,Go=f=>f.display!=="transient";function Ph({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 M,F,C,D;const g=Rh(((C=(F=(M=f==null?void 0:f.render)==null?void 0:M.views)==null?void 0:F[i])==null?void 0:C.components)??[],((D=f==null?void 0:f.render)==null?void 0:D.components)??{}),y=q=>q&&Object.hasOwn(q,"alpha")?q.alpha>0:!0,w=q=>I=>({component:I,meta:{source:"trace",step:h+q,info:I.$info}}),_=cn.chain(f==null?void 0:f.events).map((q,I)=>({step:I,id:q.id,data:q,pId:q.pId})).groupBy("id").value(),b=cn.chain(cn.range(h,m)).map(q=>{var W;const I=f.events[q],P=f.events,L=g(Th({alpha:1,...l,step:q,parent:Eh(I.pId)?void 0:P[((W=cn.findLast(_[I.pId],U=>U.step<=q))==null?void 0:W.step)??0],event:I,events:P})),A=L.filter(Go),E=L.filter(cn.negate(Go));return{persistent:A,transient:E}}).map(q=>cn.mapValues(q,I=>I.filter(y))).map((q,I)=>cn.mapValues(q,P=>P.map(w(I)))).value();return{stepsPersistent:cn.map(b,q=>q.persistent),stepsTransient:cn.map(b,q=>q.transient)}}onmessage=xh(async({data:f})=>Ph(f))})(); diff --git a/assets/parseTraceSlave.worker-682281af.js b/assets/parseTraceSlave.worker-682281af.js deleted file mode 100644 index 6ed2d1d..0000000 --- a/assets/parseTraceSlave.worker-682281af.js +++ /dev/null @@ -1,28 +0,0 @@ -(function(){"use strict";var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ws(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var xs=function(){},bs=xs(),Me=function(f){return f!==bs&&f!==null},Ss=Me,As=Array.prototype.forEach,Os=Object.create,Ts=function(f,l){var i;for(i in f)l[i]=f[i]},hf=function(f){var l=Os(null);return As.call(arguments,function(i){Ss(i)&&Ts(Object(i),l)}),l},Is=function(){var f=Math.sign;return typeof f!="function"?!1:f(10)===1&&f(-20)===-1},Dr,pf;function Rs(){return pf||(pf=1,Dr=function(f){return f=Number(f),isNaN(f)||f===0?f:f>0?1:-1}),Dr}var Es=Is()?Math.sign:Rs(),Ps=Es,Cs=Math.abs,Ls=Math.floor,qs=function(f){return isNaN(f)?0:(f=Number(f),f===0||!isFinite(f)?f:Ps(f)*Ls(Cs(f)))},Ms=qs,Fs=Math.max,Fe=function(f){return Fs(0,Ms(f))},Ns=Fe,gf=function(f,l,i){var h;return isNaN(f)?(h=l,h>=0?i&&h?h-1:h:1):f===!1?!1:Ns(f)},we=function(f){if(typeof f!="function")throw new TypeError(f+" is not a function");return f},$s=Me,Qe=function(f){if(!$s(f))throw new TypeError("Cannot use null or undefined");return f},Ds=we,Ws=Qe,Bs=Function.prototype.bind,vf=Function.prototype.call,Us=Object.keys,Gs=Object.prototype.propertyIsEnumerable,zs=function(f,l){return function(i,h){var m,d=arguments[2],g=arguments[3];return i=Object(Ws(i)),Ds(h),m=Us(i),g&&m.sort(typeof g=="function"?Bs.call(g,i):void 0),typeof f!="function"&&(f=m[f]),vf.call(f,m,function(y,w){return Gs.call(i,y)?vf.call(h,d,i[y],y,i,w):l})}},Ft=zs("forEach"),Ne={},df={exports:{}},Hs=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")},Wr,_f;function Ks(){return _f||(_f=1,Wr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Wr}var Br,mf;function Zs(){if(mf)return Br;mf=1;var f=Me,l=Object.keys;return Br=function(i){return l(f(i)?Object(i):i)},Br}var Ur,yf;function Vs(){return yf||(yf=1,Ur=Ks()()?Object.keys:Zs()),Ur}var Gr,wf;function Ys(){if(wf)return Gr;wf=1;var f=Vs(),l=Qe,i=Math.max;return Gr=function(h,m){var d,g,y=i(arguments.length,2),w;for(h=Object(l(h)),w=function(_){try{h[_]=m[_]}catch(b){d||(d=b)}},g=1;g-1},Vr}var pc=cc()?String.prototype.contains:hc(),Nt=Cf,qf=sc,Mf=xf,Ff=hf,ht=pc,gc=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],Nt(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};gc.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],Nt(l)?qf(l)?Nt(i)?qf(i)||(d=i,i=void 0):i=void 0:(d=l,l=i=void 0):l=void 0,Nt(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,Yr={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,b={configurable:!0,enumerable:!1,writable:!0},q,F,C,D,M,I,P;q=function(L,A){var E;return h(A),_.call(this,"__ee__")?E=this.__ee__:(E=b.value=g(null),y(this,"__ee__",b),b.value=null),E[L]?typeof E[L]=="object"?E[L].push(A):E[L]=[E[L],A]:E[L]=A,this},F=function(L,A){var E,W;return h(A),W=this,q.call(this,L,E=function(){C.call(W,L,E),m.call(A,this,arguments)}),E.__eeOnceListener__=A,this},C=function(L,A){var E,W,U,J;if(h(A),!_.call(this,"__ee__"))return this;if(E=this.__ee__,!E[L])return this;if(W=E[L],typeof W=="object")for(J=0;U=W[J];++J)(U===A||U.__eeOnceListener__===A)&&(W.length===2?E[L]=W[J?0:1]:W.splice(J,1));else(W===A||W.__eeOnceListener__===A)&&delete E[L];return this},D=function(L){var A,E,W,U,J;if(_.call(this,"__ee__")&&(U=this.__ee__[L],!!U))if(typeof U=="object"){for(E=arguments.length,J=new Array(E-1),A=1;A=55296&&E<=56319&&(rn+=F[++I])),rn=C?_.call(C,D,rn,P):rn,M?(b.value=rn,q(L,P,b)):L[P]=rn,++P;A=P}}if(A===void 0)for(A=h(F.length),M&&(L=new M(A)),I=0;I=0?b=g(b):b=l(this.length)-g(d(b)),w=b;w<_;++w)if(m.call(this,w)&&(q=this[w],f(q)))return w;return-1},wi}var bi,so;function eh(){if(so)return bi;so=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],b=_.length,q=[];if(b===0)delete y[b];else if(y=y[b]){for(;g"}},Li}var qi,To;function lh(){if(To)return qi;To=1;var f=ah(),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 Ut={exports:{}},Io;function Ro(){if(Io)return Ut.exports;Io=1,Ut.exports=f,Ut.exports.default=f;function f(l){return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"}return Ut.exports}var Eo;function sh(){if(Eo)return yo;Eo=1;var f=vo(),l=uh(),i=oh(),h=lh(),m=Ro(),d=Ii(),g=Object.create,y=l("then","then:finally","done","done:finally");return Ne.promise=function(w,_){var b=g(null),q=g(null),F=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,D,M){var I=!1;if(!m(M)){q[C]=M,_.emit("setasync",C,1);return}b[C]=1,F[C]=M;var P=function(W){var U=b[C];if(I)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 b[C],q[C]=W,_.emit("setasync",C,U))},L=function(){I=!0,b[C]&&(delete b[C],delete F[C],_.delete(C))},A=w;if(A||(A="then"),A==="then"){var E=function(){d(L)};M=M.then(function(W){d(P.bind(this,W))},E),typeof M.finally=="function"&&M.finally(E)}else if(A==="done"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");M.done(P,L)}else if(A==="done:finally"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof M.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");M.done(P),M.finally(L)}}),_.on("get",function(C,D,M){var I;if(b[C]){++b[C];return}I=F[C];var P=function(){_.emit("getasync",C,D,M)};m(I)?typeof I.done=="function"?I.done(P):I.then(function(){d(P)}):P()}),_.on("delete",function(C){if(delete F[C],b[C]){delete b[C];return}if(hasOwnProperty.call(q,C)){var D=q[C];delete q[C],_.emit("deleteasync",C,[D])}}),_.on("clear",function(){var C=q;q=g(null),b=g(null),F=g(null),_.emit("clearasync",f(C,function(D){return[D]}))})},yo}var Po={},Co;function ch(){if(Co)return Po;Co=1;var f=we,l=Ft,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(_,b){y(b,_)})});return}d.on("delete",y=function(w,_){m(_)}),d.on("clear",function(w){l(w,function(_,b){y(b,_)})})},Po}var Lo={},Mi,qo;function hh(){return qo||(qo=1,Mi=2147483647),Mi}var Fi,Mo;function ph(){if(Mo)return Fi;Mo=1;var f=Fe,l=hh();return Fi=function(i){if(i=f(i),i>l)throw new TypeError(i+" exceeds maximum possible timeout");return i},Fi}var Fo;function gh(){if(Fo)return Lo;Fo=1;var f=hi(),l=Ft,i=Ii(),h=Ro(),m=ph(),d=Ne,g=Function.prototype,y=Math.max,w=Math.min,_=Object.create;return d.maxAge=function(b,q,F){var C,D,M,I;b=m(b),b&&(C=_(null),D=F.async&&d.async||F.promise&&d.promise?"async":"",q.on("set"+D,function(P){C[P]=setTimeout(function(){q.delete(P)},b),typeof C[P].unref=="function"&&C[P].unref(),I&&(I[P]&&I[P]!=="nextTick"&&clearTimeout(I[P]),I[P]=setTimeout(function(){delete I[P]},M),typeof I[P].unref=="function"&&I[P].unref())}),q.on("delete"+D,function(P){clearTimeout(C[P]),delete C[P],I&&(I[P]!=="nextTick"&&clearTimeout(I[P]),delete I[P])}),F.preFetch&&(F.preFetch===!0||isNaN(F.preFetch)?M=.333:M=y(w(Number(F.preFetch),1),0),M&&(I={},M=(1-M)*b,q.on("get"+D,function(P,L,A){I[P]||(I[P]="nextTick",i(function(){var E;I[P]==="nextTick"&&(delete I[P],q.delete(P),F.async&&(L=f(L),L.push(g)),E=q.memoized.apply(A,L),F.promise&&h(E)&&(typeof E.done=="function"?E.done(g,g):E.then(g,g)))}))}))),q.on("clear"+D,function(){l(C,function(P){clearTimeout(P)}),C={},I&&(l(I,function(P){P!=="nextTick"&&clearTimeout(P)}),I={})}))},Lo}var No={},Ni,$o;function vh(){if($o)return Ni;$o=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(b){var q=y[b],F=++w;if(g[F]=b,y[b]=F,!q)return++m,m<=h?void 0:(b=g[d],_(b),b);if(delete g[q],d===q)for(;!i.call(g,++d););},delete:_=function(b){var q=y[b];if(q&&(delete g[q],delete y[b],--m,d===q)){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 Do;function dh(){if(Do)return No;Do=1;var f=Fe,l=vh(),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 _h(){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(_,b){y[_]=b||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 mh=hf,yh=gf,wh=Qc,xh=function(f){var l=mh(arguments[1]),i;return l.normalizer||(i=l.length=yh(l.length,f.length,l.async),i!==0&&(l.primitive?i===!1?l.normalizer=Xc():i>1&&(l.normalizer=Jc()(i)):i===!1?l.normalizer=eh()():i===1?l.normalizer=th()():l.normalizer=rh()(i))),l.async&&ih(),l.promise&&sh(),l.dispose&&ch(),l.maxAge&&gh(),l.max&&dh(),l.refCounter&&_h(),wh(f,l)},bh=ws(xh);const Sh=f=>async l=>{try{const i=await f(l);postMessage({result:i})}catch(i){postMessage({error:i})}};var Gt={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 - */Gt.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,b="__lodash_placeholder__",q=1,F=2,C=4,D=1,M=2,I=1,P=2,L=4,A=8,E=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,De=17976931348623157e292,ae=0/0,$n=4294967295,zi=$n-1,Zt=$n>>>1,Vt=[["ary",J],["bind",I],["bindKey",P],["curry",A],["curryRight",E],["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]",Yt="[object Proxy]",an="[object RegExp]",_n="[object Set]",kn="[object String]",Qt="[object Symbol]",qh="[object Undefined]",mt="[object WeakMap]",Mh="[object WeakSet]",yt="[object ArrayBuffer]",Je="[object DataView]",Hi="[object Float32Array]",Ki="[object Float64Array]",Zi="[object Int8Array]",Vi="[object Int16Array]",Yi="[object Int32Array]",Qi="[object Uint8Array]",Xi="[object Uint8ClampedArray]",Ji="[object Uint16Array]",ji="[object Uint32Array]",Fh=/\b__p \+= '';/g,Nh=/\b(__p \+=) '' \+/g,$h=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ko=/&(?:amp|lt|gt|quot|#39);/g,Zo=/[&<>"']/g,Dh=RegExp(Ko.source),Wh=RegExp(Zo.source),Bh=/<%-([\s\S]+?)%>/g,Uh=/<%([\s\S]+?)%>/g,Vo=/<%=([\s\S]+?)%>/g,Gh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zh=/^\w*$/,Hh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ki=/[\\^$.*+?()[\]{}|]/g,Kh=RegExp(ki.source),nu=/^\s+/,Zh=/\s/,Vh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yh=/\{\n\/\* \[wrapped with (.+)\] \*/,Qh=/,? & /,Xh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jh=/[()=,{}\[\]\/\s]/,jh=/\\(\\)?/g,kh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yo=/\w*$/,np=/^[-+]0x[0-9a-f]+$/i,ep=/^0b[01]+$/i,tp=/^\[object .+?Constructor\]$/,rp=/^0o[0-7]+$/i,ip=/^(?:0|[1-9]\d*)$/,up=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,fp=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",op="\\u0300-\\u036f",ap="\\ufe20-\\ufe2f",lp="\\u20d0-\\u20ff",Qo=op+ap+lp,Xo="\\u2700-\\u27bf",Jo="a-z\\xdf-\\xf6\\xf8-\\xff",sp="\\xac\\xb1\\xd7\\xf7",cp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hp="\\u2000-\\u206f",pp=" \\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",ko="\\ufe0e\\ufe0f",na=sp+cp+hp+pp,eu="['’]",gp="["+Jt+"]",ea="["+na+"]",jt="["+Qo+"]",ta="\\d+",vp="["+Xo+"]",ra="["+Jo+"]",ia="[^"+Jt+na+ta+Xo+Jo+jo+"]",tu="\\ud83c[\\udffb-\\udfff]",dp="(?:"+jt+"|"+tu+")",ua="[^"+Jt+"]",ru="(?:\\ud83c[\\udde6-\\uddff]){2}",iu="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+jo+"]",fa="\\u200d",oa="(?:"+ra+"|"+ia+")",_p="(?:"+je+"|"+ia+")",aa="(?:"+eu+"(?:d|ll|m|re|s|t|ve))?",la="(?:"+eu+"(?:D|LL|M|RE|S|T|VE))?",sa=dp+"?",ca="["+ko+"]?",mp="(?:"+fa+"(?:"+[ua,ru,iu].join("|")+")"+ca+sa+")*",yp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ha=ca+sa+mp,xp="(?:"+[vp,ru,iu].join("|")+")"+ha,bp="(?:"+[ua+jt+"?",jt,ru,iu,gp].join("|")+")",Sp=RegExp(eu,"g"),Ap=RegExp(jt,"g"),uu=RegExp(tu+"(?="+tu+")|"+bp+ha,"g"),Op=RegExp([je+"?"+ra+"+"+aa+"(?="+[ea,je,"$"].join("|")+")",_p+"+"+la+"(?="+[ea,je+oa,"$"].join("|")+")",je+"?"+oa+"+"+aa,je+"+"+la,wp,yp,ta,xp].join("|"),"g"),Tp=RegExp("["+fa+Jt+Qo+ko+"]"),Ip=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rp=["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"],Ep=-1,ln={};ln[Hi]=ln[Ki]=ln[Zi]=ln[Vi]=ln[Yi]=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[Vi]=on[Yi]=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 Pp={À:"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",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&Ye&&Ye.Object===Object&&Ye,Np=typeof self=="object"&&self&&self.Object===Object&&self,Sn=pa||Np||Function("return this")(),fu=l&&!l.nodeType&&l,We=fu&&!0&&f&&!f.nodeType&&f,ga=We&&We.exports===fu,ou=ga&&pa.process,Kn=function(){try{var p=We&&We.require&&We.require("util").types;return p||ou&&ou.binding&&ou.binding("util")}catch{}}(),va=Kn&&Kn.isArrayBuffer,da=Kn&&Kn.isDate,_a=Kn&&Kn.isMap,ma=Kn&&Kn.isRegExp,ya=Kn&&Kn.isSet,wa=Kn&&Kn.isTypedArray;function Dn(p,S,x){switch(x.length){case 0:return p.call(S);case 1:return p.call(S,x[0]);case 2:return p.call(S,x[0],x[1]);case 3:return p.call(S,x[0],x[1],x[2])}return p.apply(S,x)}function $p(p,S,x,$){for(var K=-1,nn=p==null?0:p.length;++K-1}function au(p,S,x){for(var $=-1,K=p==null?0:p.length;++$-1;);return x}function Ra(p,S){for(var x=p.length;x--&&ke(S,p[x],0)>-1;);return x}function Zp(p,S){for(var x=p.length,$=0;x--;)p[x]===S&&++$;return $}var Vp=hu(Pp),Yp=hu(Cp);function Qp(p){return"\\"+qp[p]}function Xp(p,S){return p==null?i:p[S]}function nt(p){return Tp.test(p)}function Jp(p){return Ip.test(p)}function jp(p){for(var S,x=[];!(S=p.next()).done;)x.push(S.value);return x}function du(p){var S=-1,x=Array(p.size);return p.forEach(function($,K){x[++S]=[K,$]}),x}function Ea(p,S){return function(x){return p(S(x))}}function Ie(p,S){for(var x=-1,$=p.length,K=0,nn=[];++x<$;){var mn=p[x];(mn===S||mn===b)&&(p[x]=b,nn[K++]=x)}return nn}function er(p){var S=-1,x=Array(p.size);return p.forEach(function($){x[++S]=$}),x}function kp(p){var S=-1,x=Array(p.size);return p.forEach(function($){x[++S]=[$,$]}),x}function ng(p,S,x){for(var $=x-1,K=p.length;++$-1}function Wg(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=Fg,ce.prototype.delete=Ng,ce.prototype.get=$g,ce.prototype.has=Dg,ce.prototype.set=Wg;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&q,v=e&F,O=e&C;if(t&&(s=u?t(n,r,u,a):t(n)),s!==i)return s;if(!hn(n))return n;var T=Z(n);if(T){if(s=zv(n),!c)return Ln(n,s)}else{var R=Tn(n),N=R==xn||R==Se;if(qe(n))return cl(n,c);if(R==Hn||R==le||N&&!u){if(s=v||N?{}:Pl(n),!c)return v?Lv(n,ev(s,n)):Cv(n,Ua(s,n))}else{if(!on[R])return u?n:{};s=Hv(n,R,c)}}a||(a=new ee);var B=a.get(n);if(B)return B;a.set(n,s),us(n)?n.forEach(function(H){s.add(Qn(H,e,t,H,n,a))}):rs(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,Y=T?i:z(n);return Zn(Y||n,function(H,X){Y&&(X=H,H=n[X]),Tt(s,X,Qn(H,e,t,X,n,a))}),s}function tv(n){var e=bn(n);return function(t){return Ga(t,n,e)}}function Ga(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 za(n,e,t){if(typeof n!="function")throw new Vn(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 Ge(e));n:for(;++uu?0:u+t),r=r===i||r>u?u:V(r),r<0&&(r+=u),r=t>r?0:os(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=_l(),Za=_l(!0);function ue(n,e){return n&&Su(n,e,bn)}function Au(n,e){return n&&Za(n,e,bn)}function mr(n,e){return Oe(e,function(t){return _e(n[t])})}function He(n,e){e=Ce(e,n);for(var t=0,r=e.length;n!=null&&te}function uv(n,e){return n!=null&&tn.call(n,e)}function fv(n,e){return n!=null&&e in fn(n)}function ov(n,e,t){return n>=On(e,t)&&n=120&&T.length>=120)?new Ge(s&&T):i}T=n[0];var R=-1,N=c[0];n:for(;++R-1;)c!==n&&lr.call(c,v,1),lr.call(n,v,1);return n}function rl(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($a()*(e-n+1))}function wv(n,e,t,r){for(var u=-1,a=yn(cr((e-n)/(t||1)),0),s=x(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(ql(n,e,Fn),n+"")}function xv(n){return Ba(ct(n))}function bv(n,e){var t=ct(n);return Er(t,ze(e,0,t.length))}function Pt(n,e,t,r){if(!hn(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=x(u);++r>>1,s=n[a];s!==null&&!Un(s)&&(t?s<=e:s=m){var O=e?null:Nv(n);if(O)return er(O);s=!1,u=wt,v=new Ge}else v=e?[]:c;n:for(;++r=r?n:Xn(n,e,t)}var sl=pg||function(n){return Sn.clearTimeout(n)};function cl(n,e){if(e)return n.slice();var t=n.length,r=La?La(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 Iv(n,e){var t=e?Du(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Rv(n){var e=new n.constructor(n.source,Yo.exec(n));return e.lastIndex=n.lastIndex,e}function Ev(n){return Ot?fn(Ot.call(n)):{}}function hl(n,e){var t=e?Du(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function pl(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 gl(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=x(v+O),R=!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 wl(n){return ve(function(e){var t=e.length,r=t,u=Yn.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Vn(g);if(u&&!s&&Ir(a)=="wrapper")var s=new Yn([],!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 R=-1,N=!0,B=t&M?new Ge:i;for(a.set(n,e),a.set(e,n);++R1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Vh,`{ -/* [wrapped with `+e+`] */ -`)}function Zv(n){return Z(n)||Ve(n)||!!(Fa&&n&&n[Fa])}function de(n,e){var t=typeof n;return e=e??wn,!!e&&(t=="number"||t!="symbol"&&ip.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,Kl(n,t)});function Zl(n){var e=o(n);return e.__chain__=!0,e}function r_(n,e){return e(n),n}function Pr(n,e){return e(n)}var i_=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 Yn(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(i),a}))});function u_(){return Zl(this)}function f_(){return new Yn(this.value(),this.__chain__)}function o_(){this.__values__===i&&(this.__values__=fs(this.value()));var n=this.__index__>=this.__values__.length,e=n?i:this.__values__[this.__index__++];return{done:n,value:e}}function a_(){return this}function l_(n){for(var e,t=this;t instanceof vr;){var r=Wl(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 s_(){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 Yn(e,this.__chain__)}return this.thru(Xu)}function c_(){return al(this.__wrapped__,this.__actions__)}var h_=br(function(n,e,t){tn.call(n,t)?++n[t]:pe(n,t,1)});function p_(n,e,t){var r=Z(n)?xa:rv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}function g_(n,e){var t=Z(n)?Oe:Ka;return t(n,G(e,3))}var v_=yl(Bl),d_=yl(Ul);function __(n,e){return An(Cr(n,e),1)}function m_(n,e){return An(Cr(n,e),Nn)}function y_(n,e,t){return t=t===i?1:V(t),An(Cr(n,e),t)}function Vl(n,e){var t=Z(n)?Zn:Ee;return t(n,G(e,3))}function Yl(n,e){var t=Z(n)?Dp:Ha;return t(n,G(e,3))}var w_=br(function(n,e,t){tn.call(n,t)?n[t].push(e):pe(n,t,[e])});function x_(n,e,t,r){n=qn(n)?n:ct(n),t=t&&!r?V(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 b_=Q(function(n,e,t){var r=-1,u=typeof e=="function",a=qn(n)?x(n.length):[];return Ee(n,function(s){a[++r]=u?Dn(e,s,t):Rt(s,e,t)}),a}),S_=br(function(n,e,t){pe(n,t,e)});function Cr(n,e){var t=Z(n)?sn:Ja;return t(n,G(e,3))}function A_(n,e,t,r){return n==null?[]:(Z(e)||(e=e==null?[]:[e]),t=r?i:t,Z(t)||(t=t==null?[]:[t]),el(n,e,t))}var O_=br(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function T_(n,e,t){var r=Z(n)?lu:Oa,u=arguments.length<3;return r(n,G(e,4),t,u,Ee)}function I_(n,e,t){var r=Z(n)?Wp:Oa,u=arguments.length<3;return r(n,G(e,4),t,u,Ha)}function R_(n,e){var t=Z(n)?Oe:Ka;return t(n,Mr(G(e,3)))}function E_(n){var e=Z(n)?Ba:xv;return e(n)}function P_(n,e,t){(t?Rn(n,e,t):e===i)?e=1:e=V(e);var r=Z(n)?jg:bv;return r(n,e)}function C_(n){var e=Z(n)?kg:Av;return e(n)}function L_(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 q_(n,e,t){var r=Z(n)?su:Ov;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}var M_=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]]),el(n,An(e,1),[])}),Lr=gg||function(){return Sn.Date.now()};function F_(n,e){if(typeof e!="function")throw new Vn(g);return n=V(n),function(){if(--n<1)return e.apply(this,arguments)}}function Ql(n,e,t){return e=t?i:e,e=n&&e==null?n.length:e,ge(n,J,i,i,i,i,e)}function Xl(n,e){var t;if(typeof e!="function")throw new Vn(g);return n=V(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=i),t}}var ju=Q(function(n,e,t){var r=I;if(t.length){var u=Ie(t,lt(ju));r|=W}return ge(n,r,e,t,u)}),Jl=Q(function(n,e,t){var r=I|P;if(t.length){var u=Ie(t,lt(Jl));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 kl(n,e,t){e=t?i:e;var r=ge(n,E,i,i,i,i,i,e);return r.placeholder=kl.placeholder,r}function ns(n,e,t){var r,u,a,s,c,v,O=0,T=!1,R=!1,N=!0;if(typeof n!="function")throw new Vn(g);e=jn(e)||0,hn(t)&&(T=!!t.leading,R="maxWait"in t,a=R?yn(jn(t.maxWait)||0,e):a,N="trailing"in t?!!t.trailing:N);function B(vn){var re=r,ye=u;return r=u=i,O=vn,s=n.apply(ye,re),s}function z(vn){return O=vn,c=qt(X,e),T?B(vn):s}function Y(vn){var re=vn-v,ye=vn-O,ys=e-re;return R?On(ys,a-ye):ys}function H(vn){var re=vn-v,ye=vn-O;return v===i||re>=e||re<0||R&&ye>=a}function X(){var vn=Lr();if(H(vn))return k(vn);c=qt(X,Y(vn))}function k(vn){return c=i,N&&r?B(vn):(r=u=i,s)}function Gn(){c!==i&&sl(c),O=0,r=v=u=c=i}function En(){return c===i?s:k(Lr())}function zn(){var vn=Lr(),re=H(vn);if(r=arguments,u=this,v=vn,re){if(c===i)return z(v);if(R)return sl(c),c=qt(X,e),B(v)}return c===i&&(c=qt(X,e)),s}return zn.cancel=Gn,zn.flush=En,zn}var N_=Q(function(n,e){return za(n,1,e)}),$_=Q(function(n,e,t){return za(n,jn(e)||0,t)});function D_(n){return ge(n,Pn)}function qr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Vn(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 Vn(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 W_(n){return Xl(2,n)}var B_=Tv(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 pn(n)&&tn.call(n,"callee")&&!Ma.call(n,"callee")},Z=x.isArray,e0=va?Wn(va):lv;function qn(n){return n!=null&&Fr(n.length)&&!_e(n)}function gn(n){return pn(n)&&qn(n)}function t0(n){return n===!0||n===!1||pn(n)&&In(n)==se}var qe=dg||cf,r0=da?Wn(da):sv;function i0(n){return pn(n)&&n.nodeType===1&&!Mt(n)}function u0(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 f0(n,e){return Et(n,e)}function o0(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(!pn(n))return!1;var e=In(n);return e==ie||e==un||typeof n.message=="string"&&typeof n.name=="string"&&!Mt(n)}function a0(n){return typeof n=="number"&&Na(n)}function _e(n){if(!hn(n))return!1;var e=In(n);return e==xn||e==Se||e==dt||e==Yt}function ts(n){return typeof n=="number"&&n==V(n)}function Fr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=wn}function hn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function pn(n){return n!=null&&typeof n=="object"}var rs=_a?Wn(_a):hv;function l0(n,e){return n===e||Iu(n,e,Hu(e))}function s0(n,e,t){return t=typeof t=="function"?t:i,Iu(n,e,Hu(e),t)}function c0(n){return is(n)&&n!=+n}function h0(n){if(Qv(n))throw new K(d);return Qa(n)}function p0(n){return n===null}function g0(n){return n==null}function is(n){return typeof n=="number"||pn(n)&&In(n)==Cn}function Mt(n){if(!pn(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)==sg}var ef=ma?Wn(ma):pv;function v0(n){return ts(n)&&n>=-wn&&n<=wn}var us=ya?Wn(ya):gv;function Nr(n){return typeof n=="string"||!Z(n)&&pn(n)&&In(n)==kn}function Un(n){return typeof n=="symbol"||pn(n)&&In(n)==Qt}var st=wa?Wn(wa):vv;function d0(n){return n===i}function _0(n){return pn(n)&&Tn(n)==mt}function m0(n){return pn(n)&&In(n)==Mh}var y0=Tr(Eu),w0=Tr(function(n,e){return n<=e});function fs(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?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*De}return n===n?n:0}function V(n){var e=me(n),t=e%1;return e===e?t?e-t:e:0}function os(n){return n?ze(V(n),0,$n):0}function jn(n){if(typeof n=="number")return n;if(Un(n))return ae;if(hn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=hn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Ta(n);var t=ep.test(n);return t||rp.test(n)?Fp(n.slice(2),t?2:8):np.test(n)?ae:+n}function as(n){return fe(n,Mn(n))}function x0(n){return n?ze(V(n),-wn,wn):n===0?n:0}function en(n){return n==null?"":Bn(n)}var b0=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])}),ls=ot(function(n,e){fe(e,Mn(e),n)}),$r=ot(function(n,e,t,r){fe(e,Mn(e),n,r)}),S0=ot(function(n,e,t,r){fe(e,bn(e),n,r)}),A0=ve(bu);function O0(n,e){var t=ft(n);return e==null?t:Ua(t,e)}var T0=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,q|F|C,$v));for(var u=e.length;u--;)Mu(t,e[u]);return t});function H0(n,e){return cs(n,Mr(G(e)))}var K0=ve(function(n,e){return n==null?{}:mv(n,e)});function cs(n,e){if(n==null)return{};var t=sn(Gu(n),function(r){return[r]});return e=G(e),tl(n,t,function(r,u){return e(r,u[0])})}function Z0(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=$a();return On(n+u*(e-n+Mp("1e-"+((u+"").length-1))),e)}return Cu(n,e)}var r1=at(function(n,e,t){return e=e.toLowerCase(),n+(t?gs(e):e)});function gs(n){return uf(en(n).toLowerCase())}function vs(n){return n=en(n),n&&n.replace(up,Vp).replace(Ap,"")}function i1(n,e,t){n=en(n),e=Bn(e);var r=n.length;t=t===i?r:ze(V(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function u1(n){return n=en(n),n&&Wh.test(n)?n.replace(Zo,Yp):n}function f1(n){return n=en(n),n&&Kh.test(n)?n.replace(ki,"\\$&"):n}var o1=at(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),a1=at(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),l1=ml("toLowerCase");function s1(n,e,t){n=en(n),e=V(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 c1(n,e,t){n=en(n),e=V(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 m1=at(function(n,e,t){return n+(t?" ":"")+uf(e)});function y1(n,e,t){return n=en(n),t=t==null?0:ze(V(t),0,n.length),e=Bn(e),n.slice(t,t+e.length)==e}function w1(n,e,t){var r=o.templateSettings;t&&Rn(n,e,t)&&(e=i),n=en(n),e=$r({},e,r,Ol);var u=$r({},e.imports,r.imports,Ol),a=bn(u),s=vu(u,a),c,v,O=0,T=e.interpolate||Xt,R="__p += '",N=_u((e.escape||Xt).source+"|"+T.source+"|"+(T===Vo?kh:Xt).source+"|"+(e.evaluate||Xt).source+"|$","g"),B="//# sourceURL="+(tn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ep+"]")+` -`;n.replace(N,function(H,X,k,Gn,En,zn){return k||(k=Gn),R+=n.slice(O,zn).replace(fp,Qp),X&&(c=!0,R+=`' + -__e(`+X+`) + -'`),En&&(v=!0,R+=`'; -`+En+`; -__p += '`),k&&(R+=`' + -((__t = (`+k+`)) == null ? '' : __t) + -'`),O=zn+H.length,H}),R+=`'; -`;var z=tn.call(e,"variable")&&e.variable;if(!z)R=`with (obj) { -`+R+` -} -`;else if(Jh.test(z))throw new K(y);R=(v?R.replace(Fh,""):R).replace(Nh,"$1").replace($h,"$1;"),R="function("+(z||"obj")+`) { -`+(z?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+R+`return __p -}`;var Y=_s(function(){return nn(a,B+"return "+R).apply(i,s)});if(Y.source=R,nf(Y))throw Y;return Y}function x1(n){return en(n).toLowerCase()}function b1(n){return en(n).toUpperCase()}function S1(n,e,t){if(n=en(n),n&&(t||e===i))return Ta(n);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=ne(e),a=Ia(r,u),s=Ra(r,u)+1;return Le(r,a,s).join("")}function A1(n,e,t){if(n=en(n),n&&(t||e===i))return n.slice(0,Pa(n)+1);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ra(r,ne(e))+1;return Le(r,0,u).join("")}function O1(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=Ia(r,ne(e));return Le(r,u).join("")}function T1(n,e){var t=gt,r=Ht;if(hn(e)){var u="separator"in e?e.separator:u;t="length"in e?V(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 R=O.index;v=v.slice(0,R===i?c:R)}}else if(n.indexOf(Bn(u),c)!=c){var N=v.lastIndexOf(u);N>-1&&(v=v.slice(0,N))}return v+r}function I1(n){return n=en(n),n&&Dh.test(n)?n.replace(Ko,tg):n}var R1=at(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),uf=ml("toUpperCase");function ds(n,e,t){return n=en(n),e=t?i:e,e===i?Jp(n)?ug(n):Gp(n):n.match(e)||[]}var _s=Q(function(n,e){try{return Dn(n,i,e)}catch(t){return nf(t)?t:new K(t)}}),E1=ve(function(n,e){return Zn(e,function(t){t=oe(t),pe(n,t,ju(n[t],n))}),n});function P1(n){var e=n==null?0:n.length,t=G();return n=e?sn(n,function(r){if(typeof r[1]!="function")throw new Vn(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=V(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),R=function(X){var k=u.apply(o,Te([X],c));return r&&N?k[0]:k};T&&t&&typeof O=="function"&&O.length!=1&&(v=T=!1);var N=this.__chain__,B=!!this.__actions__.length,z=a&&!N,Y=v&&!B;if(!a&&T){s=Y?s:new j(this);var H=n.apply(s,c);return H.__actions__.push({func:Pr,args:[R],thisArg:i}),new Yn(H,N)}return z&&Y?n.apply(this,c):(H=this.thru(R),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=Ig,j.prototype.reverse=Rg,j.prototype.value=Eg,o.prototype.at=i_,o.prototype.chain=u_,o.prototype.commit=f_,o.prototype.next=o_,o.prototype.plant=l_,o.prototype.reverse=s_,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=c_,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=a_),o},tt=fg();We?((We.exports=tt)._=tt,fu._=tt):Sn._=tt}).call(Ye)}(Gt,Gt.exports);var cn=Gt.exports;function $i(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 Uo={exports:{}};(function(f,l){(function(i,h){f.exports=h()})(Ye,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,b=_===void 0?/^\\/:_,q=w.VARIABLE_START,F=q===void 0?/^\${\s*/:q,C=w.VARIABLE_END,D=C===void 0?/^\s*}/:C,M=w.PIPE_START,I=M===void 0?/^\s*\|\s*/:M,P=w.PIPE_PARAMETER_START,L=P===void 0?/^\s*:\s*/:P,A=w.QUOTED_STRING,E=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 E.test(Nn)},vt=rn||g(E),Ui=gt||function(Nn){return E.test(Nn)},Gi=Bi||g(E);return function(Nn){function wn(an){an===void 0&&(an=1),un=un.substr(an)}function De(an){an===void 0&&(an=/^/),wn(un.match(an)[0].length)}function ae(){var an;return De(b),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 Vt(){dn.pipes.push(Cn),Zt({isNull:!0})}function le(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Ae="",Yt=!kn}function xe(){Cn.parameters.push(Ae),le({isNull:!0})}function dt(){return!!D.test(un)&&(De(D),xn>=3&&xe(),xn>=2&&Vt(),xn>=1&&zi(),xn=0,!0)}function se(){return!!I.test(un)&&(De(I),xn>=3&&xe(),xn>=2&&Vt(),xn>=1&&Zt(),xn=2,!0)}function be(){return!!L.test(un)&&(De(L),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,Yt=!1;un&&un.length>0;)switch(xn){case 0:if(b.test(un)){Se+=ae();continue}if(F.test(un)){xn=1,$n(),ie.literals.push(Se),Se="",De(F);continue}Se+=un[0],wn();break;case 1:if(b.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(b.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(b.test(un)){Ae+=ae();continue}if(dt()||be()||se())continue;if(Ui(un)){Ae+=Gi(un,wn);continue}Ae+=un[0],wn()}return Yt&&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 b=w.match(y);return _(b[0].length),b.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(b){return function(q){return b.hasOwnProperty(q)?b[q]:q.split(".").reduce(function(F,C){return F.hasOwnProperty(C)?F[C]:""},b)}}function g(b,q,F,C){C===void 0&&(C=d(q));var D=C(b.name);return b.pipes.reduce(function(M,I){return F.hasOwnProperty(I.name)?F[I.name](M,I.parameters):M},D??"")}function y(b,q,F,C){return C===void 0&&(C=d(q)),b.literals.length===0?"":b.literals.slice(1).reduce(function(D,M,I){return""+D+g(b.variables[I],q,F,C)+M},b.literals[0])}function w(b,q,F){return y(_.parseStringTemplate(b),q,F)}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("$",`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]}}))},Ah=/^\{\{\s*/,Oh=/^\s*\}\}/,Di=/\b\B/,Th=Go.parseStringTemplateGenerator({VARIABLE_START:Ah,VARIABLE_END:Oh,PIPE_START:Di,PIPE_PARAMETER_START:Di,QUOTED_STRING:Di}),Ih=bh(f=>{const l=Th(f);return cn.join(l.literals,"")?i=>Go.evaluateParsedString(l,{},{},h=>zo(h)(i)):zo(l.variables[0].name)},{primitive:!0});function Xe(f){switch(f==null?void 0:f.constructor){case Array:{const l=cn.map(f,Xe);return i=>cn.map(l,h=>h(i))}case Object:{const l=cn.mapValues(f,Xe);return i=>cn.mapValues(l,h=>h(i))}case String:return Ih(f);default:return()=>f}}function zt(f={}){return $i(f,l=>cn.isFunction(l)?l:Xe(l))}function Rh(f={}){return new Proxy(f,{get:(l,i)=>typeof l[i]=="function"?l[i]:()=>l[i]})}function Wi(f,l){return Object.setPrototypeOf($i(l,i=>h=>i(f)),f)}function Eh(f){const{$for:l,...i}=f;if(l){const{$let:h="i",$from:m=0,$to:d=1,$step:g=1}=l,y=Xe(m),w=Xe(d),_=Xe(g);return(b={})=>cn.range(y(b),w(b),_(b)).map(q=>{const F=Wi(b,zt({[h]:q}));return Wi(F,zt(i))})}else return(h={})=>[Wi(h,zt(i))]}function Ph(f,l){const i=d=>{const{$:g}=d,y=Eh(d);return g in l?w=>cn.flatMap(y(w),_=>cn.flatMap(h[g],b=>b(_))):w=>cn.map(y(w),_=>Object.setPrototypeOf($i(_,b=>b(_)),null))},h=cn.mapValues(l,d=>cn.map(d,i)),m=cn.flatMap(f,i);return d=>cn.flatMap(m,g=>g(d))}const Ch=f=>f==null,Ho=f=>f.display!=="transient";function Lh({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 q,F,C,D;const g=Ph(((C=(F=(q=f==null?void 0:f.render)==null?void 0:q.views)==null?void 0:F[i])==null?void 0:C.components)??[],((D=f==null?void 0:f.render)==null?void 0:D.components)??{}),y=M=>M&&Object.hasOwn(M,"alpha")?M.alpha>0:!0,w=M=>I=>({component:I,meta:{source:"trace",step:h+M,info:I.$info}}),_=cn.chain(f==null?void 0:f.events).map((M,I)=>({step:I,id:M.id,data:M,pId:M.pId})).groupBy("id").value(),b=cn.chain(cn.range(h,m)).map(M=>{var W;const I=f.events[M],P=f.events,L=g(Rh({alpha:1,...l,step:M,parent:Ch(I.pId)?void 0:P[((W=cn.findLast(_[I.pId],U=>U.step<=M))==null?void 0:W.step)??0],event:I,events:P})),A=L.filter(Ho),E=L.filter(cn.negate(Ho));return{persistent:A,transient:E}}).map(M=>cn.mapValues(M,I=>I.filter(y))).map((M,I)=>cn.mapValues(M,P=>P.map(w(I)))).value();return{stepsPersistent:cn.map(b,M=>M.persistent),stepsTransient:cn.map(b,M=>M.transient)}}onmessage=Sh(async({data:f})=>Lh(f))})(); diff --git a/assets/polyanya-ccf05178.workspace b/assets/polyanya-ccf05178.workspace new file mode 100644 index 0000000..13554c7 Binary files /dev/null and b/assets/polyanya-ccf05178.workspace differ diff --git a/assets/polyanya-fc7ef19b.js b/assets/polyanya-fc7ef19b.js new file mode 100644 index 0000000..9b84f33 --- /dev/null +++ b/assets/polyanya-fc7ef19b.js @@ -0,0 +1 @@ +const a=""+new URL("polyanya-ccf05178.workspace",import.meta.url).href;export{a as default}; diff --git a/assets/polyanya.workspace-2b25151a.js b/assets/polyanya.workspace-2b25151a.js new file mode 100644 index 0000000..d9fcad7 --- /dev/null +++ b/assets/polyanya.workspace-2b25151a.js @@ -0,0 +1 @@ +const a=""+new URL("polyanya.workspace-2ef3af95.meta",import.meta.url).href;export{a as default}; diff --git a/assets/polyanya.workspace-2ef3af95.meta b/assets/polyanya.workspace-2ef3af95.meta new file mode 100644 index 0000000..f8fc535 --- /dev/null +++ b/assets/polyanya.workspace-2ef3af95.meta @@ -0,0 +1 @@ +{"id":"_Vjz-JtbzqzXCgS9yJWU3","name":"Polyanya","description":"See this Euclidean path planning algorithm in action on a navigation mesh.","screenshots":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAEAAQAMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R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fE+3Tt6367dtDNz1Vtl07n9Dv7H//AAXi/wCCeX7Unwj8BeOfE3x3+GH7PvxJ8W3MGiat8D/ib8RNDtfGWheK5Jba1bStOkuotGn8SaXdXt1HbaJr0WjaYmskM8VhBjZWUqcouyTku6T/AKuWpJ+Xqz9n6zKPzv8A2+v+CbfwB/bw+E3xq8L+MPCXhPTvi58T/hNpXwy8OfGfWNE1DxFq3gSTwZf+N9f+GesWmlW2vaELyLwP4s+IfivxDBp1vf6aNWn1Wa21S6uLeKzS2qM3Fq2yd7d72v8Aelby6EuKfrbc/wD/2Q=="],"author":"github:ShortestPathLab","size":308846,"lastModified":1716724367219} \ No newline at end of file diff --git a/index.html b/index.html index 991db06..5651449 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ Posthoc - + diff --git a/recipes/network-bidirectional-a-star.workspace b/recipes/network-bidirectional-a-star.workspace new file mode 100644 index 0000000..2860c75 Binary files /dev/null and b/recipes/network-bidirectional-a-star.workspace differ diff --git a/recipes/network-bidirectional-a-star.workspace.meta b/recipes/network-bidirectional-a-star.workspace.meta new file mode 100644 index 0000000..18ebe93 --- /dev/null +++ b/recipes/network-bidirectional-a-star.workspace.meta @@ -0,0 +1 @@ +{"id":"1Op1LXMHI8Uo4KS7fhwsM","name":"Network Bidirectional A*","description":"By searching from both source and goal nodes, this A* variant converges to an optimal path noticeably faster. ","screenshots":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAEAAQAMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQU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djM8zHj5BEg+YArJCvmxuskMkYIlkAbaUVPnlTy5SJH2qrbdocuu3/AJaFkUAigz5hk5+RJZN/PyuI3MbFux8wLtz1bA5JxQBcinL/AL5BK1xBExO5BOCpSGANuLKVA6EMjbA5ZW3kFQB4QPtmjmYxeYYowxWKSFQFecpGoESSFGAiSLeZfnaNWkXagBXSS48trgKjMu5BMULSgbQJC20FGGxwDJcKx+b9224ZUAIXSRfKkc/vWSLy0RIwu6VCZQVUq2AoBXCs2TlwEXIArmW4jdvOPkI6FzKghjEreYfkVDIGkYGR2VPnbJIQhflAI2X7QMxb3eIHzMry6NKT5oCg4AeXayEkgFWUtlxGAWo7ciSN9y2/7nyjKwkhjM0izRK+6cR4UAIZmXJBLFI35AAIbkK8W+MMnlyujwsFUqFWJPM2xhYxukJ8z5FKtIke6QAMACmrlVdQVw4CsCoJIDBxtYglcMqk7WUngHK5FAH/2Q=="],"author":"github:ShortestPathLab","size":10234546,"lastModified":1716721306166} \ No newline at end of file diff --git a/recipes/polyanya.workspace b/recipes/polyanya.workspace new file mode 100644 index 0000000..13554c7 Binary files /dev/null and b/recipes/polyanya.workspace differ diff --git a/recipes/polyanya.workspace.meta b/recipes/polyanya.workspace.meta new file mode 100644 index 0000000..f8fc535 --- /dev/null +++ b/recipes/polyanya.workspace.meta @@ -0,0 +1 @@ +{"id":"_Vjz-JtbzqzXCgS9yJWU3","name":"Polyanya","description":"See this Euclidean path planning algorithm in action on a navigation mesh.","screenshots":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAEAAQAMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAA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Jo3iSw0vWDZW1pqosjpmqabd3TUubZ3s7b37Mi1ulr+VjwSgAoA/W7/gkL+y5+w7+0b8bPGF3/wUE/aO8J/AH4FeBfClte6cl58WfBnw18YeNPiHe67pc2haTYWfjHw14lh17wSmgaZ4ri8ZPpkOn6hp93eeGo4dStvt53ROUopcqu2+zeny+X4lRSe7svVI/wBEn4b/APBTz/gj18HPAfg74W/DL9s/9kfwX4A8DaBpfhTwh4X0L4o+GotL0TQtDsIrHTrKMm+llbybS2jSS9v55ry9n3T3d1c3k7yScrjN3bjJvrozW8VomvvR/M5+19/wdYeOdA/bk8HXH7Lng/QPFn7Hnwivb3QfGek6zLf2viL9oaTULkweJPEWna7FMtl4P07SrCC1s/hp/wASXXktdWh1fxVrc3ifSNe0zw7oe0aK5XzfE+3Tt6367dtDNz1Vtl07n9Dv7H//AAXi/wCCeX7Unwj8BeOfE3x3+GH7PvxJ8W3MGiat8D/ib8RNDtfGWheK5Jba1bStOkuotGn8SaXdXt1HbaJr0WjaYmskM8VhBjZWUqcouyTku6T/AKuWpJ+Xqz9n6zKPzv8A2+v+CbfwB/bw+E3xq8L+MPCXhPTvi58T/hNpXwy8OfGfWNE1DxFq3gSTwZf+N9f+GesWmlW2vaELyLwP4s+IfivxDBp1vf6aNWn1Wa21S6uLeKzS2qM3Fq2yd7d72v8Aelby6EuKfrbc/wD/2Q=="],"author":"github:ShortestPathLab","size":308846,"lastModified":1716724367219} \ No newline at end of file