Liferay.Loader.define("liferay!analytics-settings-web$color-convert@1.9.3/route",["module","exports","require","./conversions"],(function(n,r,e){window;{var t=e("./conversions");function deriveBFS(n){var r=function buildGraph(){for(var n={},r=Object.keys(t),e=r.length,o=0;o<e;o++)n[r[o]]={distance:-1,parent:null};return n}(),e=[n];for(r[n].distance=0;e.length;)for(var o=e.pop(),a=Object.keys(t[o]),i=a.length,s=0;s<i;s++){var c=a[s],u=r[c];-1===u.distance&&(u.distance=r[o].distance+1,u.parent=o,e.unshift(c))}return r}function link(n,r){return function(e){return r(n(e))}}function wrapConversion(n,r){for(var e=[r[n].parent,n],o=t[r[n].parent][n],a=r[n].parent;r[a].parent;)e.unshift(r[a].parent),o=link(t[r[a].parent][a],o),a=r[a].parent;return o.conversion=e,o}n.exports=function(n){for(var r=deriveBFS(n),e={},t=Object.keys(r),o=t.length,a=0;a<o;a++){var i=t[a];null!==r[i].parent&&(e[i]=wrapConversion(i,r))}return e}}}));
//# sourceMappingURL=route.js.map