"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const j=require("./conversions.js");var l,f;function b(){if(f)return l;f=1;const i=j.__require();function d(){const e={},n=Object.keys(i);for(let r=n.length,t=0;t<r;t++)e[n[t]]={distance:-1,parent:null};return e}function p(e){const n=d(),r=[e];for(n[e].distance=0;r.length;){const t=r.pop(),o=Object.keys(i[t]);for(let c=o.length,s=0;s<c;s++){const u=o[s],a=n[u];a.distance===-1&&(a.distance=n[t].distance+1,a.parent=t,r.unshift(u))}}return n}function v(e,n){return function(r){return n(e(r))}}function h(e,n){const r=[n[e].parent,e];let t=i[n[e].parent][e],o=n[e].parent;for(;n[o].parent;)r.unshift(n[o].parent),t=v(i[n[o].parent][o],t),o=n[o].parent;return t.conversion=r,t}return l=function(e){const n=p(e),r={},t=Object.keys(n);for(let o=t.length,c=0;c<o;c++){const s=t[c];n[s].parent!==null&&(r[s]=h(s,n))}return r},l}exports.__require=b;
//# sourceMappingURL=route.js.map
