!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.d3=t.d3||{})}(this,function(t){"use strict";var e=function(t){function e(){if(!o)return r;var t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("d",o);var e=t.getTotalLength(),u=n.length;return n.forEach(function(n,o){var r=e/u*o,i=t.getPointAtLength(r);n.x=i.x,n.y=i.y}),r}t=t||{};var n=t.nodes||[],o=t.path||void 0,r={nodes:function(t){return arguments.length?(n=t,e()):n},path:function(t){return arguments.length?(o=t,e()):o}};return e()};t.pathLayout=e,Object.defineProperty(t,"__esModule",{value:!0})});