Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d3plus-text

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3plus-text - npm Package Compare versions

Comparing version 0.9.48 to 0.9.49

4

build/d3plus-text.min.js
/*
d3plus-text v0.9.48
d3plus-text v0.9.49
A smart SVG text box with line wrapping and automatic font size scaling.

@@ -7,2 +7,2 @@ Copyright (c) 2019 D3plus - https://d3plus.org

*/
(function(u,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("d3-selection"),require("d3-transition"),require("d3-array"),require("d3plus-common")):typeof define==="function"&&define.amd?define("d3plus-text",["exports","d3-selection","d3-transition","d3-array","d3plus-common"],t):(u=u||self,t(u.d3plus={},u.d3Selection,u.d3Transition,u.d3Array,u.d3plusCommon))})(this,function(u,s,l,H,P){"use strict";function r(u){if(u===" ")return u;var t=(new DOMParser).parseFromString(u.replace(/<[^>]+>/g,""),"text/html");return t.documentElement.textContent}function T(u,t){t=Object.assign({"font-size":10,"font-family":"sans-serif","font-style":"normal","font-weight":400,"font-variant":"normal"},t);var n=document.createElement("canvas").getContext("2d");var e=[];e.push(t["font-style"]);e.push(t["font-variant"]);e.push(t["font-weight"]);e.push(typeof t["font-size"]==="string"?t["font-size"]:"".concat(t["font-size"],"px"));e.push(t["font-family"]);n.font=e.join(" ");if(u instanceof Array)return u.map(function(u){return n.measureText(r(u)).width});return n.measureText(r(u)).width}function L(u){return u.toString().replace(/^\s+|\s+$/g,"")}function t(u){return u.toString().replace(/^\s+/,"")}function g(u){return u.toString().replace(/\s+$/,"")}var i="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",a={},o=32;var f,c,A,h;var W=function u(t){if(!f){f=T(i,{"font-family":"DejaVuSans","font-size":o});c=T(i,{"font-family":"-apple-system","font-size":o});A=T(i,{"font-family":"monospace","font-size":o});h=T(i,{"font-family":"sans-serif","font-size":o})}if(!(t instanceof Array))t=t.split(",");t=t.map(function(u){return L(u)});for(var n=0;n<t.length;n++){var e=t[n];if(a[e]||["-apple-system","monospace","sans-serif","DejaVuSans"].includes(e))return e;else if(a[e]===false)continue;var r=T(i,{"font-family":e,"font-size":o});a[e]=r!==A;if(a[e])a[e]=r!==h;if(c&&a[e])a[e]=r!==c;if(f&&a[e])a[e]=r!==f;if(a[e])return e}return false};var v=function(){return s.select("html").attr("dir")==="rtl"||s.select("body").attr("dir")==="rtl"||s.select("html").style("direction")==="rtl"||s.select("body").style("direction")==="rtl"};function y(u){if(u===void 0)u="undefined";else if(!(typeof u==="string"||u instanceof String))u=JSON.stringify(u);return u}var e=[[/[\300-\305]/g,"A"],[/[\340-\345]/g,"a"],[/[\306]/g,"AE"],[/[\346]/g,"ae"],[/[\337]/g,"B"],[/[\307]/g,"C"],[/[\347]/g,"c"],[/[\320\336\376]/g,"D"],[/[\360]/g,"d"],[/[\310-\313]/g,"E"],[/[\350-\353]/g,"e"],[/[\314-\317]/g,"I"],[/[\354-\357]/g,"i"],[/[\321]/g,"N"],[/[\361]/g,"n"],[/[\322-\326\330]/g,"O"],[/[\362-\366\370]/g,"o"],[/[\331-\334]/g,"U"],[/[\371-\374]/g,"u"],[/[\327]/g,"x"],[/[\335]/g,"Y"],[/[\375\377]/g,"y"]];function C(u){return"".concat(u).replace(/[^A-Za-z0-9\-_]/g,function(u){if(u===" ")return"-";var t=false;for(var n=0;n<e.length;n++){if(new RegExp(e[n][0]).test(u)){t=e[n][1];break}}return t||""})}function E(u,t){if(!(u instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(u,t){for(var n=0;n<t.length;n++){var e=t[n];e.enumerable=e.enumerable||false;e.configurable=true;if("value"in e)e.writable=true;Object.defineProperty(u,e.key,e)}}function n(u,t,n){if(t)p(u.prototype,t);if(n)p(u,n);return u}function B(u,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,writable:true,configurable:true}});if(t)d(u,t)}function D(u){D=Object.setPrototypeOf?Object.getPrototypeOf:function u(t){return t.__proto__||Object.getPrototypeOf(t)};return D(u)}function d(u,t){d=Object.setPrototypeOf||function u(t,n){t.__proto__=n;return t};return d(u,t)}function F(u){if(u===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return u}function m(u,t){if(t&&(typeof t==="object"||typeof t==="function")){return t}return F(u)}var _=["u0903","u093B","u093E","u093F","u0940","u0949","u094A","u094B","u094C","u094E","u094F","u0982","u0983","u09BE","u09BF","u09C0","u09C7","u09C8","u09CB","u09CC","u09D7","u0A03","u0A3E","u0A3F","u0A40","u0A83","u0ABE","u0ABF","u0AC0","u0AC9","u0ACB","u0ACC","u0B02","u0B03","u0B3E","u0B40","u0B47","u0B48","u0B4B","u0B4C","u0B57","u0BBE","u0BBF","u0BC1","u0BC2","u0BC6","u0BC7","u0BC8","u0BCA","u0BCB","u0BCC","u0BD7","u0C01","u0C02","u0C03","u0C41","u0C42","u0C43","u0C44","u0C82","u0C83","u0CBE","u0CC0","u0CC1","u0CC2","u0CC3","u0CC4","u0CC7","u0CC8","u0CCA","u0CCB","u0CD5","u0CD6","u0D02","u0D03","u0D3E","u0D3F","u0D40","u0D46","u0D47","u0D48","u0D4A","u0D4B","u0D4C","u0D57","u0D82","u0D83","u0DCF","u0DD0","u0DD1","u0DD8","u0DD9","u0DDA","u0DDB","u0DDC","u0DDD","u0DDE","u0DDF","u0DF2","u0DF3","u0F3E","u0F3F","u0F7F","u102B","u102C","u1031","u1038","u103B","u103C","u1056","u1057","u1062","u1063","u1064","u1067","u1068","u1069","u106A","u106B","u106C","u106D","u1083","u1084","u1087","u1088","u1089","u108A","u108B","u108C","u108F","u109A","u109B","u109C","u17B6","u17BE","u17BF","u17C0","u17C1","u17C2","u17C3","u17C4","u17C5","u17C7","u17C8","u1923","u1924","u1925","u1926","u1929","u192A","u192B","u1930","u1931","u1933","u1934","u1935","u1936","u1937","u1938","u1A19","u1A1A","u1A55","u1A57","u1A61","u1A63","u1A64","u1A6D","u1A6E","u1A6F","u1A70","u1A71","u1A72","u1B04","u1B35","u1B3B","u1B3D","u1B3E","u1B3F","u1B40","u1B41","u1B43","u1B44","u1B82","u1BA1","u1BA6","u1BA7","u1BAA","u1BE7","u1BEA","u1BEB","u1BEC","u1BEE","u1BF2","u1BF3","u1C24","u1C25","u1C26","u1C27","u1C28","u1C29","u1C2A","u1C2B","u1C34","u1C35","u1CE1","u1CF2","u1CF3","u302E","u302F","uA823","uA824","uA827","uA880","uA881","uA8B4","uA8B5","uA8B6","uA8B7","uA8B8","uA8B9","uA8BA","uA8BB","uA8BC","uA8BD","uA8BE","uA8BF","uA8C0","uA8C1","uA8C2","uA8C3","uA952","uA953","uA983","uA9B4","uA9B5","uA9BA","uA9BB","uA9BD","uA9BE","uA9BF","uA9C0","uAA2F","uAA30","uAA33","uAA34","uAA4D","uAA7B","uAA7D","uAAEB","uAAEE","uAAEF","uAAF5","uABE3","uABE4","uABE6","uABE7","uABE9","uABEA","uABEC"];var w=["u0300","u0301","u0302","u0303","u0304","u0305","u0306","u0307","u0308","u0309","u030A","u030B","u030C","u030D","u030E","u030F","u0310","u0311","u0312","u0313","u0314","u0315","u0316","u0317","u0318","u0319","u031A","u031B","u031C","u031D","u031E","u031F","u0320","u0321","u0322","u0323","u0324","u0325","u0326","u0327","u0328","u0329","u032A","u032B","u032C","u032D","u032E","u032F","u0330","u0331","u0332","u0333","u0334","u0335","u0336","u0337","u0338","u0339","u033A","u033B","u033C","u033D","u033E","u033F","u0340","u0341","u0342","u0343","u0344","u0345","u0346","u0347","u0348","u0349","u034A","u034B","u034C","u034D","u034E","u034F","u0350","u0351","u0352","u0353","u0354","u0355","u0356","u0357","u0358","u0359","u035A","u035B","u035C","u035D","u035E","u035F","u0360","u0361","u0362","u0363","u0364","u0365","u0366","u0367","u0368","u0369","u036A","u036B","u036C","u036D","u036E","u036F","u0483","u0484","u0485","u0486","u0487","u0591","u0592","u0593","u0594","u0595","u0596","u0597","u0598","u0599","u059A","u059B","u059C","u059D","u059E","u059F","u05A0","u05A1","u05A2","u05A3","u05A4","u05A5","u05A6","u05A7","u05A8","u05A9","u05AA","u05AB","u05AC","u05AD","u05AE","u05AF","u05B0","u05B1","u05B2","u05B3","u05B4","u05B5","u05B6","u05B7","u05B8","u05B9","u05BA","u05BB","u05BC","u05BD","u05BF","u05C1","u05C2","u05C4","u05C5","u05C7","u0610","u0611","u0612","u0613","u0614","u0615","u0616","u0617","u0618","u0619","u061A","u064B","u064C","u064D","u064E","u064F","u0650","u0651","u0652","u0653","u0654","u0655","u0656","u0657","u0658","u0659","u065A","u065B","u065C","u065D","u065E","u065F","u0670","u06D6","u06D7","u06D8","u06D9","u06DA","u06DB","u06DC","u06DF","u06E0","u06E1","u06E2","u06E3","u06E4","u06E7","u06E8","u06EA","u06EB","u06EC","u06ED","u0711","u0730","u0731","u0732","u0733","u0734","u0735","u0736","u0737","u0738","u0739","u073A","u073B","u073C","u073D","u073E","u073F","u0740","u0741","u0742","u0743","u0744","u0745","u0746","u0747","u0748","u0749","u074A","u07A6","u07A7","u07A8","u07A9","u07AA","u07AB","u07AC","u07AD","u07AE","u07AF","u07B0","u07EB","u07EC","u07ED","u07EE","u07EF","u07F0","u07F1","u07F2","u07F3","u0816","u0817","u0818","u0819","u081B","u081C","u081D","u081E","u081F","u0820","u0821","u0822","u0823","u0825","u0826","u0827","u0829","u082A","u082B","u082C","u082D","u0859","u085A","u085B","u08E3","u08E4","u08E5","u08E6","u08E7","u08E8","u08E9","u08EA","u08EB","u08EC","u08ED","u08EE","u08EF","u08F0","u08F1","u08F2","u08F3","u08F4","u08F5","u08F6","u08F7","u08F8","u08F9","u08FA","u08FB","u08FC","u08FD","u08FE","u08FF","u0900","u0901","u0902","u093A","u093C","u0941","u0942","u0943","u0944","u0945","u0946","u0947","u0948","u094D","u0951","u0952","u0953","u0954","u0955","u0956","u0957","u0962","u0963","u0981","u09BC","u09C1","u09C2","u09C3","u09C4","u09CD","u09E2","u09E3","u0A01","u0A02","u0A3C","u0A41","u0A42","u0A47","u0A48","u0A4B","u0A4C","u0A4D","u0A51","u0A70","u0A71","u0A75","u0A81","u0A82","u0ABC","u0AC1","u0AC2","u0AC3","u0AC4","u0AC5","u0AC7","u0AC8","u0ACD","u0AE2","u0AE3","u0B01","u0B3C","u0B3F","u0B41","u0B42","u0B43","u0B44","u0B4D","u0B56","u0B62","u0B63","u0B82","u0BC0","u0BCD","u0C00","u0C3E","u0C3F","u0C40","u0C46","u0C47","u0C48","u0C4A","u0C4B","u0C4C","u0C4D","u0C55","u0C56","u0C62","u0C63","u0C81","u0CBC","u0CBF","u0CC6","u0CCC","u0CCD","u0CE2","u0CE3","u0D01","u0D41","u0D42","u0D43","u0D44","u0D4D","u0D62","u0D63","u0DCA","u0DD2","u0DD3","u0DD4","u0DD6","u0E31","u0E34","u0E35","u0E36","u0E37","u0E38","u0E39","u0E3A","u0E47","u0E48","u0E49","u0E4A","u0E4B","u0E4C","u0E4D","u0E4E","u0EB1","u0EB4","u0EB5","u0EB6","u0EB7","u0EB8","u0EB9","u0EBB","u0EBC","u0EC8","u0EC9","u0ECA","u0ECB","u0ECC","u0ECD","u0F18","u0F19","u0F35","u0F37","u0F39","u0F71","u0F72","u0F73","u0F74","u0F75","u0F76","u0F77","u0F78","u0F79","u0F7A","u0F7B","u0F7C","u0F7D","u0F7E","u0F80","u0F81","u0F82","u0F83","u0F84","u0F86","u0F87","u0F8D","u0F8E","u0F8F","u0F90","u0F91","u0F92","u0F93","u0F94","u0F95","u0F96","u0F97","u0F99","u0F9A","u0F9B","u0F9C","u0F9D","u0F9E","u0F9F","u0FA0","u0FA1","u0FA2","u0FA3","u0FA4","u0FA5","u0FA6","u0FA7","u0FA8","u0FA9","u0FAA","u0FAB","u0FAC","u0FAD","u0FAE","u0FAF","u0FB0","u0FB1","u0FB2","u0FB3","u0FB4","u0FB5","u0FB6","u0FB7","u0FB8","u0FB9","u0FBA","u0FBB","u0FBC","u0FC6","u102D","u102E","u102F","u1030","u1032","u1033","u1034","u1035","u1036","u1037","u1039","u103A","u103D","u103E","u1058","u1059","u105E","u105F","u1060","u1071","u1072","u1073","u1074","u1082","u1085","u1086","u108D","u109D","u135D","u135E","u135F","u1712","u1713","u1714","u1732","u1733","u1734","u1752","u1753","u1772","u1773","u17B4","u17B5","u17B7","u17B8","u17B9","u17BA","u17BB","u17BC","u17BD","u17C6","u17C9","u17CA","u17CB","u17CC","u17CD","u17CE","u17CF","u17D0","u17D1","u17D2","u17D3","u17DD","u180B","u180C","u180D","u18A9","u1920","u1921","u1922","u1927","u1928","u1932","u1939","u193A","u193B","u1A17","u1A18","u1A1B","u1A56","u1A58","u1A59","u1A5A","u1A5B","u1A5C","u1A5D","u1A5E","u1A60","u1A62","u1A65","u1A66","u1A67","u1A68","u1A69","u1A6A","u1A6B","u1A6C","u1A73","u1A74","u1A75","u1A76","u1A77","u1A78","u1A79","u1A7A","u1A7B","u1A7C","u1A7F","u1AB0","u1AB1","u1AB2","u1AB3","u1AB4","u1AB5","u1AB6","u1AB7","u1AB8","u1AB9","u1ABA","u1ABB","u1ABC","u1ABD","u1B00","u1B01","u1B02","u1B03","u1B34","u1B36","u1B37","u1B38","u1B39","u1B3A","u1B3C","u1B42","u1B6B","u1B6C","u1B6D","u1B6E","u1B6F","u1B70","u1B71","u1B72","u1B73","u1B80","u1B81","u1BA2","u1BA3","u1BA4","u1BA5","u1BA8","u1BA9","u1BAB","u1BAC","u1BAD","u1BE6","u1BE8","u1BE9","u1BED","u1BEF","u1BF0","u1BF1","u1C2C","u1C2D","u1C2E","u1C2F","u1C30","u1C31","u1C32","u1C33","u1C36","u1C37","u1CD0","u1CD1","u1CD2","u1CD4","u1CD5","u1CD6","u1CD7","u1CD8","u1CD9","u1CDA","u1CDB","u1CDC","u1CDD","u1CDE","u1CDF","u1CE0","u1CE2","u1CE3","u1CE4","u1CE5","u1CE6","u1CE7","u1CE8","u1CED","u1CF4","u1CF8","u1CF9","u1DC0","u1DC1","u1DC2","u1DC3","u1DC4","u1DC5","u1DC6","u1DC7","u1DC8","u1DC9","u1DCA","u1DCB","u1DCC","u1DCD","u1DCE","u1DCF","u1DD0","u1DD1","u1DD2","u1DD3","u1DD4","u1DD5","u1DD6","u1DD7","u1DD8","u1DD9","u1DDA","u1DDB","u1DDC","u1DDD","u1DDE","u1DDF","u1DE0","u1DE1","u1DE2","u1DE3","u1DE4","u1DE5","u1DE6","u1DE7","u1DE8","u1DE9","u1DEA","u1DEB","u1DEC","u1DED","u1DEE","u1DEF","u1DF0","u1DF1","u1DF2","u1DF3","u1DF4","u1DF5","u1DFC","u1DFD","u1DFE","u1DFF","u20D0","u20D1","u20D2","u20D3","u20D4","u20D5","u20D6","u20D7","u20D8","u20D9","u20DA","u20DB","u20DC","u20E1","u20E5","u20E6","u20E7","u20E8","u20E9","u20EA","u20EB","u20EC","u20ED","u20EE","u20EF","u20F0","u2CEF","u2CF0","u2CF1","u2D7F","u2DE0","u2DE1","u2DE2","u2DE3","u2DE4","u2DE5","u2DE6","u2DE7","u2DE8","u2DE9","u2DEA","u2DEB","u2DEC","u2DED","u2DEE","u2DEF","u2DF0","u2DF1","u2DF2","u2DF3","u2DF4","u2DF5","u2DF6","u2DF7","u2DF8","u2DF9","u2DFA","u2DFB","u2DFC","u2DFD","u2DFE","u2DFF","u302A","u302B","u302C","u302D","u3099","u309A","uA66F","uA674","uA675","uA676","uA677","uA678","uA679","uA67A","uA67B","uA67C","uA67D","uA69E","uA69F","uA6F0","uA6F1","uA802","uA806","uA80B","uA825","uA826","uA8C4","uA8E0","uA8E1","uA8E2","uA8E3","uA8E4","uA8E5","uA8E6","uA8E7","uA8E8","uA8E9","uA8EA","uA8EB","uA8EC","uA8ED","uA8EE","uA8EF","uA8F0","uA8F1","uA926","uA927","uA928","uA929","uA92A","uA92B","uA92C","uA92D","uA947","uA948","uA949","uA94A","uA94B","uA94C","uA94D","uA94E","uA94F","uA950","uA951","uA980","uA981","uA982","uA9B3","uA9B6","uA9B7","uA9B8","uA9B9","uA9BC","uA9E5","uAA29","uAA2A","uAA2B","uAA2C","uAA2D","uAA2E","uAA31","uAA32","uAA35","uAA36","uAA43","uAA4C","uAA7C","uAAB0","uAAB2","uAAB3","uAAB4","uAAB7","uAAB8","uAABE","uAABF","uAAC1","uAAEC","uAAED","uAAF6","uABE5","uABE8","uABED","uFB1E","uFE00","uFE01","uFE02","uFE03","uFE04","uFE05","uFE06","uFE07","uFE08","uFE09","uFE0A","uFE0B","uFE0C","uFE0D","uFE0E","uFE0F","uFE20","uFE21","uFE22","uFE23","uFE24","uFE25","uFE26","uFE27","uFE28","uFE29","uFE2A","uFE2B","uFE2C","uFE2D","uFE2E","uFE2F"];var x=_.concat(w);var b=["-",";",":","&","|","u0E2F","u0EAF","u0EC6","u0ECC","u104A","u104B","u104C","u104D","u104E","u104F","u2013","u2014","u2027","u3000","u3001","u3002","uFF0C","uFF5E"];var O=["'","<","(","{","[","u00AB","u300A","u3008"];var S=["'",">",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(b);var j="က-ဪဿ-၉ၐ-ၕ";var k="぀-ゟ゠-ヿ＀-+--}⦅-゚㐀-䶿";var z="㐀-龿";var M="ກ-ຮະ-ໄ່-໋ໍ-ໝ";var R=j+z+k+M;var I=new RegExp("(\\".concat(b.join("|\\"),")*[^\\s|\\").concat(b.join("|\\"),"]*(\\").concat(b.join("|\\"),")*"),"g");var N=new RegExp("[".concat(R,"]"));var V=new RegExp("(\\".concat(O.join("|\\"),")*[").concat(R,"](\\").concat(S.join("|\\"),"|\\").concat(x.join("|\\"),")*|[a-z0-9]+"),"gi");function q(u){if(!N.test(u))return y(u).match(I).filter(function(u){return u.length});return H.merge(y(u).match(I).map(function(u){if(N.test(u))return u.match(V);return[u]}))}function G(){var h="sans-serif",v=10,C=400,E=200,p,B=null,D=false,d=q,F=200;function t(u){u=y(u);if(p===void 0)p=Math.ceil(v*1.4);var t=d(u);var n={"font-family":h,"font-size":v,"font-weight":C,"line-height":p};var e=1,r="",i=false,a=0;var o=[],f=T(t,n),c=T(" ",n);for(var s=0;s<t.length;s++){var l=t[s];var A=f[t.indexOf(l)];l+=u.slice(r.length+l.length).match("^( |\n)*","g")[0];if(r.slice(-1)==="\n"||a+A>F){if(!s&&!D){i=true;break}if(o.length>=e)o[e-1]=g(o[e-1]);e++;if(p*e>E||A>F&&!D||B&&e>B){i=true;break}a=0;o.push(l)}else if(!s)o[0]=l;else o[e-1]+=l;r+=l;a+=A;a+=l.match(/[\s]*$/g)[0].length*c}return{lines:o,sentence:u,truncated:i,widths:T(o,n),words:t}}t.fontFamily=function(u){return arguments.length?(h=u,t):h};t.fontSize=function(u){return arguments.length?(v=u,t):v};t.fontWeight=function(u){return arguments.length?(C=u,t):C};t.height=function(u){return arguments.length?(E=u,t):E};t.lineHeight=function(u){return arguments.length?(p=u,t):p};t.maxLines=function(u){return arguments.length?(B=u,t):B};t.overflow=function(u){return arguments.length?(D=u,t):D};t.split=function(u){return arguments.length?(d=u,t):d};t.width=function(u){return arguments.length?(F=u,t):F};return t}var $={i:"font-style: italic;",em:"font-style: italic;",b:"font-weight: bold;",strong:"font-weight: bold;"};var U=function(u){B(t,u);function t(){var n;E(this,t);n=m(this,D(t).call(this));n._ariaHidden=P.constant("false");n._delay=0;n._duration=0;n._ellipsis=function(u,t){return t?"".concat(u.replace(/\.|,$/g,""),"..."):""};n._fontColor=P.constant("black");n._fontFamily=P.constant(["Roboto","Helvetica Neue","HelveticaNeue","Helvetica","Arial","sans-serif"]);n._fontMax=P.constant(50);n._fontMin=P.constant(8);n._fontOpacity=P.constant(1);n._fontResize=P.constant(false);n._fontSize=P.constant(10);n._fontWeight=P.constant(400);n._height=P.accessor("height",200);n._html=true;n._id=function(u,t){return u.id||"".concat(t)};n._lineHeight=function(u,t){return n._fontSize(u,t)*1.2};n._maxLines=P.constant(null);n._on={};n._overflow=P.constant(false);n._padding=P.constant(0);n._pointerEvents=P.constant("auto");n._rotate=P.constant(0);n._rotateAnchor=function(u){return[u.w/2,u.h/2]};n._split=q;n._text=P.accessor("text");n._textAnchor=P.constant("start");n._verticalAlign=P.constant("top");n._width=P.accessor("width",200);n._x=P.accessor("x",0);n._y=P.accessor("y",0);return n}n(t,[{key:"render",value:function u(t){var z=this;if(this._select===void 0)this.select(s.select("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).node());var M=this;var n=this._select.selectAll(".d3plus-textBox").data(this._data.reduce(function(u,t,n){var e=z._text(t,n);if(e===void 0)return u;e=L(e);var r=z._fontResize(t,n);var i=z._lineHeight(t,n)/z._fontSize(t,n);var a=r?z._fontMax(t,n):z._fontSize(t,n),o=r?a*i:z._lineHeight(t,n),f=1,c=[],s,l;var A={"font-family":W(z._fontFamily(t,n)),"font-size":a,"font-weight":z._fontWeight(t,n),"line-height":o};var h=P.parseSides(z._padding(t,n));var v=z._height(t,n)-(h.top+h.bottom),C=z._width(t,n)-(h.left+h.right);var E=G().fontFamily(A["font-family"]).fontSize(a).fontWeight(A["font-weight"]).lineHeight(o).maxLines(z._maxLines(t,n)).height(v).overflow(z._overflow(t,n)).width(C).split(z._split);var p=z._fontMax(t,n),B=z._fontMin(t,n),D=z._verticalAlign(t,n),d=z._split(e,n);function F(){var u=function u(){if(f<1)c=[M._ellipsis("",f)];else c[f-1]=M._ellipsis(c[f-1],f)};a=H.max([a,B]);a=H.min([a,p]);if(r){o=a*i;E.fontSize(a).lineHeight(o);A["font-size"]=a;A["line-height"]=o}l=E(e);c=l.lines.filter(function(u){return u!==""});f=c.length;if(l.truncated){if(r){a--;if(a<B){a=B;u();return}else F()}else u()}}if(C>B&&(v>o||r&&v>B*i)){if(r){s=T(d,A);var g=1.165+C/v*.1,y=C*v,m=H.max(s),_=H.sum(s,function(u){return u*o})*g;if(m>C||_>y){var w=Math.sqrt(y/_),x=C/m;var b=H.min([w,x]);a=Math.floor(a*b)}var O=Math.floor(v*.8);if(a>O)a=O}F()}if(c.length){var S=f*o;var j=z._rotate(t,n);var k=j===0?D==="top"?0:D==="middle"?v/2-S/2:v-S:0;k-=o*.1;u.push({aH:z._ariaHidden(t,n),data:t,i:n,lines:c,fC:z._fontColor(t,n),fF:A["font-family"],fO:z._fontOpacity(t,n),fW:A["font-weight"],id:z._id(t,n),tA:z._textAnchor(t,n),vA:z._verticalAlign(t,n),widths:l.widths,fS:a,lH:o,w:C,h:v,r:j,x:z._x(t,n)+h.left,y:z._y(t,n)+k+h.top})}return u},[]),function(u){return z._id(u.data,u.i)});var r=l.transition().duration(this._duration);if(this._duration===0){n.exit().remove()}else{n.exit().transition().delay(this._duration).remove();n.exit().selectAll("text").transition(r).attr("opacity",0).style("opacity",0)}function e(u){u.attr("transform",function(u,t){var n=M._rotateAnchor(u,t);return"translate(".concat(u.x,", ").concat(u.y,") rotate(").concat(u.r,", ").concat(n[0],", ").concat(n[1],")")})}var i=n.enter().append("g").attr("class","d3plus-textBox").attr("id",function(u){return"d3plus-textBox-".concat(C(u.id))}).call(e).merge(n);var a=v();i.style("pointer-events",function(u){return z._pointerEvents(u.data,u.i)}).each(function(n){function u(u){u[M._html?"html":"text"](function(u){return g(u).replace(/&([^\;&]*)/g,function(u,t){return t==="amp"?u:"&amp;".concat(t)}).replace(/<([^A-z^/]+)/g,function(u,t){return"&lt;".concat(t)}).replace(/<$/g,"&lt;").replace(/(<[^>^\/]+>)([^<^>]+)$/g,function(u,t,n){return"".concat(t).concat(n).concat(t.replace("<","</"))}).replace(/^([^<^>]+)(<\/[^>]+>)/g,function(u,t,n){return"".concat(n.replace("</","<")).concat(t).concat(n)}).replace(/<([A-z]+)[^>]*>([^<^>]+)<\/[^>]+>/g,function(u,t,n){var e=$[t]?'<tspan style="'.concat($[t],'">'):"";return"".concat(e.length?e:"").concat(n).concat(e.length?"</tspan>":"")})})}function t(u){u.attr("aria-hidden",n.aH).attr("dir",a?"rtl":"ltr").attr("fill",n.fC).attr("text-anchor",n.tA).attr("font-family",n.fF).style("font-family",n.fF).attr("font-size","".concat(n.fS,"px")).style("font-size","".concat(n.fS,"px")).attr("font-weight",n.fW).style("font-weight",n.fW).attr("x","".concat(n.tA==="middle"?n.w/2:a?n.tA==="start"?n.w:0:n.tA==="end"?n.w:2*Math.sin(Math.PI*n.r/180),"px")).attr("y",function(u,t){return n.r===0||n.vA==="top"?"".concat((t+1)*n.lH-(n.lH-n.fS),"px"):n.vA==="middle"?"".concat((n.h+n.fS)/2-(n.lH-n.fS)+(t-n.lines.length/2+.5)*n.lH,"px"):"".concat(n.h-2*(n.lH-n.fS)-(n.lines.length-(t+1))*n.lH+2*Math.cos(Math.PI*n.r/180),"px")})}var e=s.select(this).selectAll("text").data(n.lines);if(M._duration===0){e.call(u).call(t);e.exit().remove();e.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("unicode-bidi","bidi-override").call(u).call(t).attr("opacity",n.fO).style("opacity",n.fO)}else{e.call(u).transition(r).call(t);e.exit().transition(r).attr("opacity",0).remove();e.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("opacity",0).style("opacity",0).call(u).call(t).merge(e).transition(r).delay(M._delay).call(t).attr("opacity",n.fO).style("opacity",n.fO)}}).transition(r).call(e);var o=Object.keys(this._on),f=o.reduce(function(u,n){u[n]=function(u,t){return z._on[n](u.data,t)};return u},{});for(var c=0;c<o.length;c++){i.on(o[c],f[o[c]])}if(t)setTimeout(t,this._duration+100);return this}},{key:"ariaHidden",value:function u(t){return t!==undefined?(this._ariaHidden=typeof t==="function"?t:P.constant(t),this):this._ariaHidden}},{key:"data",value:function u(t){return arguments.length?(this._data=t,this):this._data}},{key:"delay",value:function u(t){return arguments.length?(this._delay=t,this):this._delay}},{key:"duration",value:function u(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"ellipsis",value:function u(t){return arguments.length?(this._ellipsis=typeof t==="function"?t:P.constant(t),this):this._ellipsis}},{key:"fontColor",value:function u(t){return arguments.length?(this._fontColor=typeof t==="function"?t:P.constant(t),this):this._fontColor}},{key:"fontFamily",value:function u(t){return arguments.length?(this._fontFamily=typeof t==="function"?t:P.constant(t),this):this._fontFamily}},{key:"fontMax",value:function u(t){return arguments.length?(this._fontMax=typeof t==="function"?t:P.constant(t),this):this._fontMax}},{key:"fontMin",value:function u(t){return arguments.length?(this._fontMin=typeof t==="function"?t:P.constant(t),this):this._fontMin}},{key:"fontOpacity",value:function u(t){return arguments.length?(this._fontOpacity=typeof t==="function"?t:P.constant(t),this):this._fontOpacity}},{key:"fontResize",value:function u(t){return arguments.length?(this._fontResize=typeof t==="function"?t:P.constant(t),this):this._fontResize}},{key:"fontSize",value:function u(t){return arguments.length?(this._fontSize=typeof t==="function"?t:P.constant(t),this):this._fontSize}},{key:"fontWeight",value:function u(t){return arguments.length?(this._fontWeight=typeof t==="function"?t:P.constant(t),this):this._fontWeight}},{key:"height",value:function u(t){return arguments.length?(this._height=typeof t==="function"?t:P.constant(t),this):this._height}},{key:"html",value:function u(t){return arguments.length?(this._html=t,this):this._html}},{key:"id",value:function u(t){return arguments.length?(this._id=typeof t==="function"?t:P.constant(t),this):this._id}},{key:"lineHeight",value:function u(t){return arguments.length?(this._lineHeight=typeof t==="function"?t:P.constant(t),this):this._lineHeight}},{key:"maxLines",value:function u(t){return arguments.length?(this._maxLines=typeof t==="function"?t:P.constant(t),this):this._maxLines}},{key:"overflow",value:function u(t){return arguments.length?(this._overflow=typeof t==="function"?t:P.constant(t),this):this._overflow}},{key:"padding",value:function u(t){return arguments.length?(this._padding=typeof t==="function"?t:P.constant(t),this):this._padding}},{key:"pointerEvents",value:function u(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:P.constant(t),this):this._pointerEvents}},{key:"rotate",value:function u(t){return arguments.length?(this._rotate=typeof t==="function"?t:P.constant(t),this):this._rotate}},{key:"rotateAnchor",value:function u(t){return arguments.length?(this._rotateAnchor=typeof t==="function"?t:P.constant(t),this):this._rotateAnchor}},{key:"select",value:function u(t){return arguments.length?(this._select=s.select(t),this):this._select}},{key:"split",value:function u(t){return arguments.length?(this._split=t,this):this._split}},{key:"text",value:function u(t){return arguments.length?(this._text=typeof t==="function"?t:P.constant(t),this):this._text}},{key:"textAnchor",value:function u(t){return arguments.length?(this._textAnchor=typeof t==="function"?t:P.constant(t),this):this._textAnchor}},{key:"verticalAlign",value:function u(t){return arguments.length?(this._verticalAlign=typeof t==="function"?t:P.constant(t),this):this._verticalAlign}},{key:"width",value:function u(t){return arguments.length?(this._width=typeof t==="function"?t:P.constant(t),this):this._width}},{key:"x",value:function u(t){return arguments.length?(this._x=typeof t==="function"?t:P.constant(t),this):this._x}},{key:"y",value:function u(t){return arguments.length?(this._y=typeof t==="function"?t:P.constant(t),this):this._y}}]);return t}(P.BaseClass);var Y=["a","an","and","as","at","but","by","for","from","if","in","into","near","nor","of","on","onto","or","per","that","the","to","with","via","vs","vs."];var J=["CEO","CFO","CNC","COO","CPU","GDP","HVAC","ID","IT","R&D","TV","UI"];function K(e){if(e===void 0)return"";var i=Y.map(function(u){return u.toLowerCase()});var a=J.slice();a=a.concat(a.map(function(u){return"".concat(u,"s")}));var o=a.map(function(u){return u.toLowerCase()});var f=q(e);return f.map(function(u,t){if(u){var n=u.toLowerCase();var e=S.includes(n.charAt(n.length-1))?n.slice(0,-1):n;var r=o.indexOf(e);if(r>=0)return a[r];else if(i.includes(e)&&t!==0&&t!==f.length-1)return n;else return u.charAt(0).toUpperCase()+u.substr(1).toLowerCase()}else return""}).reduce(function(u,t,n){if(n&&e.charAt(u.length)===" ")u+=" ";u+=t;return u},"")}u.TextBox=U;u.fontExists=W;u.rtl=v;u.stringify=y;u.strip=C;u.textSplit=q;u.textWidth=T;u.textWrap=G;u.titleCase=K;u.trim=L;u.trimLeft=t;u.trimRight=g;Object.defineProperty(u,"__esModule",{value:true})});(function(u){typeof define==="function"&&define.amd?define(u):u()})(function(){"use strict";var u=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function t(u,t){return t={exports:{}},u(t,t.exports),t.exports}var n="object";var e=function(u){return u&&u.Math==Math&&u};var l=e(typeof globalThis==n&&globalThis)||e(typeof window==n&&window)||e(typeof self==n&&self)||e(typeof u==n&&u)||Function("return this")();var r=function(u){try{return!!u()}catch(u){return true}};var h=!r(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7});var i={}.propertyIsEnumerable;var a=Object.getOwnPropertyDescriptor;var o=a&&!i.call({1:2},1);var f=o?function u(t){var n=a(this,t);return!!n&&n.enumerable}:i;var v={f:f};var c=function(u,t){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:t}};var s={}.toString;var A=function(u){return s.call(u).slice(8,-1)};var C="".split;var d=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return A(u)=="String"?C.call(u,""):Object(u)}:Object;var E=function(u){if(u==undefined)throw TypeError("Can't call method on "+u);return u};var p=function(u){return d(E(u))};var B=function(u){return typeof u==="object"?u!==null:typeof u==="function"};var D=function(u,t){if(!B(u))return u;var n,e;if(t&&typeof(n=u.toString)=="function"&&!B(e=n.call(u)))return e;if(typeof(n=u.valueOf)=="function"&&!B(e=n.call(u)))return e;if(!t&&typeof(n=u.toString)=="function"&&!B(e=n.call(u)))return e;throw TypeError("Can't convert object to primitive value")};var F={}.hasOwnProperty;var g=function(u,t){return F.call(u,t)};var y=l.document;var m=B(y)&&B(y.createElement);var _=function(u){return m?y.createElement(u):{}};var w=!h&&!r(function(){return Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a!=7});var x=Object.getOwnPropertyDescriptor;var b=h?x:function u(t,n){t=p(t);n=D(n,true);if(w)try{return x(t,n)}catch(u){}if(g(t,n))return c(!v.f.call(t,n),t[n])};var O={f:b};var S=function(u){if(!B(u)){throw TypeError(String(u)+" is not an object")}return u};var j=Object.defineProperty;var k=h?j:function u(t,n,e){S(t);n=D(n,true);S(e);if(w)try{return j(t,n,e)}catch(u){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");if("value"in e)t[n]=e.value;return t};var z={f:k};var M=h?function(u,t,n){return z.f(u,t,c(1,n))}:function(u,t,n){u[t]=n;return u};var H=function(t,n){try{M(l,t,n)}catch(u){l[t]=n}return n};var P=t(function(u){var t="__core-js_shared__";var n=l[t]||H(t,{});(u.exports=function(u,t){return n[u]||(n[u]=t!==undefined?t:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})});var T=P("native-function-to-string",Function.toString);var L=l.WeakMap;var W=typeof L==="function"&&/native code/.test(T.call(L));var R=0;var I=Math.random();var N=function(u){return"Symbol("+String(u===undefined?"":u)+")_"+(++R+I).toString(36)};var V=P("keys");var q=function(u){return V[u]||(V[u]=N(u))};var G={};var $=l.WeakMap;var U,Y,J;var K=function(u){return J(u)?Y(u):U(u,{})};var Z=function(n){return function(u){var t;if(!B(u)||(t=Y(u)).type!==n){throw TypeError("Incompatible receiver, "+n+" required")}return t}};if(W){var Q=new $;var X=Q.get;var uu=Q.has;var tu=Q.set;U=function(u,t){tu.call(Q,u,t);return t};Y=function(u){return X.call(Q,u)||{}};J=function(u){return uu.call(Q,u)}}else{var nu=q("state");G[nu]=true;U=function(u,t){M(u,nu,t);return t};Y=function(u){return g(u,nu)?u[nu]:{}};J=function(u){return g(u,nu)}}var eu={set:U,get:Y,has:J,enforce:K,getterFor:Z};var ru=t(function(u){var t=eu.get;var o=eu.enforce;var f=String(T).split("toString");P("inspectSource",function(u){return T.call(u)});(u.exports=function(u,t,n,e){var r=e?!!e.unsafe:false;var i=e?!!e.enumerable:false;var a=e?!!e.noTargetGet:false;if(typeof n=="function"){if(typeof t=="string"&&!g(n,"name"))M(n,"name",t);o(n).source=f.join(typeof t=="string"?t:"")}if(u===l){if(i)u[t]=n;else H(t,n);return}else if(!r){delete u[t]}else if(!a&&u[t]){i=true}if(i)u[t]=n;else M(u,t,n)})(Function.prototype,"toString",function u(){return typeof this=="function"&&t(this).source||T.call(this)})});var iu=l;var au=function(u){return typeof u=="function"?u:undefined};var ou=function(u,t){return arguments.length<2?au(iu[u])||au(l[u]):iu[u]&&iu[u][t]||l[u]&&l[u][t]};var fu=Math.ceil;var cu=Math.floor;var su=function(u){return isNaN(u=+u)?0:(u>0?cu:fu)(u)};var lu=Math.min;var Au=function(u){return u>0?lu(su(u),9007199254740991):0};var hu=Math.max;var vu=Math.min;var Cu=function(u,t){var n=su(u);return n<0?hu(n+t,0):vu(n,t)};var Eu=function(o){return function(u,t,n){var e=p(u);var r=Au(e.length);var i=Cu(n,r);var a;if(o&&t!=t)while(r>i){a=e[i++];if(a!=a)return true}else for(;r>i;i++){if((o||i in e)&&e[i]===t)return o||i||0}return!o&&-1}};var pu={includes:Eu(true),indexOf:Eu(false)};var Bu=pu.indexOf;var Du=function(u,t){var n=p(u);var e=0;var r=[];var i;for(i in n)!g(G,i)&&g(n,i)&&r.push(i);while(t.length>e)if(g(n,i=t[e++])){~Bu(r,i)||r.push(i)}return r};var du=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var Fu=du.concat("length","prototype");var gu=Object.getOwnPropertyNames||function u(t){return Du(t,Fu)};var yu={f:gu};var mu=Object.getOwnPropertySymbols;var _u={f:mu};var wu=ou("Reflect","ownKeys")||function u(t){var n=yu.f(S(t));var e=_u.f;return e?n.concat(e(t)):n};var xu=function(u,t){var n=wu(t);var e=z.f;var r=O.f;for(var i=0;i<n.length;i++){var a=n[i];if(!g(u,a))e(u,a,r(t,a))}};var bu=/#|\.prototype\./;var Ou=function(u,t){var n=ju[Su(u)];return n==zu?true:n==ku?false:typeof t=="function"?r(t):!!t};var Su=Ou.normalize=function(u){return String(u).replace(bu,".").toLowerCase()};var ju=Ou.data={};var ku=Ou.NATIVE="N";var zu=Ou.POLYFILL="P";var Mu=Ou;var Hu=O.f;var Pu=function(u,t){var n=u.target;var e=u.global;var r=u.stat;var i,a,o,f,c,s;if(e){a=l}else if(r){a=l[n]||H(n,{})}else{a=(l[n]||{}).prototype}if(a)for(o in t){c=t[o];if(u.noTargetGet){s=Hu(a,o);f=s&&s.value}else f=a[o];i=Mu(e?o:n+(r?".":"#")+o,u.forced);if(!i&&f!==undefined){if(typeof c===typeof f)continue;xu(c,f)}if(u.sham||f&&f.sham){M(c,"sham",true)}ru(a,o,c,u)}};var Tu=function(u){if(typeof u!="function"){throw TypeError(String(u)+" is not a function")}return u};var Lu=function(e,r,u){Tu(e);if(r===undefined)return e;switch(u){case 0:return function(){return e.call(r)};case 1:return function(u){return e.call(r,u)};case 2:return function(u,t){return e.call(r,u,t)};case 3:return function(u,t,n){return e.call(r,u,t,n)}}return function(){return e.apply(r,arguments)}};var Wu=function(u){return Object(E(u))};var Ru=Array.isArray||function u(t){return A(t)=="Array"};var Iu=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())});var Nu=l.Symbol;var Vu=P("wks");var qu=function(u){return Vu[u]||(Vu[u]=Iu&&Nu[u]||(Iu?Nu:N)("Symbol."+u))};var Gu=qu("species");var $u=function(u,t){var n;if(Ru(u)){n=u.constructor;if(typeof n=="function"&&(n===Array||Ru(n.prototype)))n=undefined;else if(B(n)){n=n[Gu];if(n===null)n=undefined}}return new(n===undefined?Array:n)(t===0?0:t)};var Uu=[].push;var Yu=function(h){var v=h==1;var C=h==2;var E=h==3;var p=h==4;var B=h==6;var D=h==5||B;return function(u,t,n,e){var r=Wu(u);var i=d(r);var a=Lu(t,n,3);var o=Au(i.length);var f=0;var c=e||$u;var s=v?c(u,o):C?c(u,0):undefined;var l,A;for(;o>f;f++)if(D||f in i){l=i[f];A=a(l,f,r);if(h){if(v)s[f]=A;else if(A)switch(h){case 3:return true;case 5:return l;case 6:return f;case 2:Uu.call(s,l)}else if(p)return false}}return B?-1:E||p?p:s}};var Ju={forEach:Yu(0),map:Yu(1),filter:Yu(2),some:Yu(3),every:Yu(4),find:Yu(5),findIndex:Yu(6)};var Ku=Object.keys||function u(t){return Du(t,du)};var Zu=h?Object.defineProperties:function u(t,n){S(t);var e=Ku(n);var r=e.length;var i=0;var a;while(r>i)z.f(t,a=e[i++],n[a]);return t};var Qu=ou("document","documentElement");var Xu=q("IE_PROTO");var ut="prototype";var tt=function(){};var nt=function(){var u=_("iframe");var t=du.length;var n="<";var e="script";var r=">";var i="java"+e+":";var a;u.style.display="none";Qu.appendChild(u);u.src=String(i);a=u.contentWindow.document;a.open();a.write(n+e+r+"document.F=Object"+n+"/"+e+r);a.close();nt=a.F;while(t--)delete nt[ut][du[t]];return nt()};var et=Object.create||function u(t,n){var e;if(t!==null){tt[ut]=S(t);e=new tt;tt[ut]=null;e[Xu]=t}else e=nt();return n===undefined?e:Zu(e,n)};G[Xu]=true;var rt=qu("unscopables");var it=Array.prototype;if(it[rt]==undefined){M(it,rt,et(null))}var at=function(u){it[rt][u]=true};var ot=Ju.find;var ft="find";var ct=true;if(ft in[])Array(1)[ft](function(){ct=false});Pu({target:"Array",proto:true,forced:ct},{find:function u(t){return ot(this,t,arguments.length>1?arguments[1]:undefined)}});at(ft);var st=pu.includes;Pu({target:"Array",proto:true},{includes:function u(t){return st(this,t,arguments.length>1?arguments[1]:undefined)}});at("includes");var lt=Object.assign;var At=!lt||r(function(){var u={};var t={};var n=Symbol();var e="abcdefghijklmnopqrst";u[n]=7;e.split("").forEach(function(u){t[u]=u});return lt({},u)[n]!=7||Ku(lt({},t)).join("")!=e})?function u(t,n){var e=Wu(t);var r=arguments.length;var i=1;var a=_u.f;var o=v.f;while(r>i){var f=d(arguments[i++]);var c=a?Ku(f).concat(a(f)):Ku(f);var s=c.length;var l=0;var A;while(s>l){A=c[l++];if(!h||o.call(f,A))e[A]=f[A]}}return e}:lt;Pu({target:"Object",stat:true,forced:Object.assign!==At},{assign:At});var ht=qu("match");var vt=function(u){var t;return B(u)&&((t=u[ht])!==undefined?!!t:A(u)=="RegExp")};var Ct=function(u){if(vt(u)){throw TypeError("The method doesn't accept regular expressions")}return u};var Et=qu("match");var pt=function(t){var n=/./;try{"/./"[t](n)}catch(u){try{n[Et]=false;return"/./"[t](n)}catch(u){}}return false};var Bt="".startsWith;var Dt=Math.min;Pu({target:"String",proto:true,forced:!pt("startsWith")},{startsWith:function u(t){var n=String(E(this));Ct(t);var e=Au(Dt(arguments.length>1?arguments[1]:undefined,n.length));var r=String(t);return Bt?Bt.call(n,r,e):n.slice(e,e+r.length)===r}});if(typeof window!=="undefined"){(function(){var e=function(u,t){var n=u.nodeType;if(n===3){t.push(u.textContent.replace(/&/,"&amp;").replace(/</,"&lt;").replace(">","&gt;"))}else if(n===1){t.push("<",u.tagName);if(u.hasAttributes()){[].forEach.call(u.attributes,function(u){t.push(" ",u.item.name,"='",u.item.value,"'")})}if(u.hasChildNodes()){t.push(">");[].forEach.call(u.childNodes,function(u){e(u,t)});t.push("</",u.tagName,">")}else{t.push("/>")}}else if(n==8){t.push("\x3c!--",u.nodeValue,"--\x3e")}};Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){var u=[];var t=this.firstChild;while(t){e(t,u);t=t.nextSibling}return u.join("")},set:function(u){while(this.firstChild){this.removeChild(this.firstChild)}try{var t=new DOMParser;t.async=false;var n="<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>"+u+"</svg>";var e=t.parseFromString(n,"text/xml").documentElement;var r=e.firstChild;while(r){this.appendChild(this.ownerDocument.importNode(r,true));r=r.nextSibling}}catch(u){}}});Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function(){return this.innerHTML},set:function(u){this.innerHTML=u}})})()}});
(function(u){typeof define==="function"&&define.amd?define(u):u()})(function(){"use strict";var u=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function t(u,t){return t={exports:{}},u(t,t.exports),t.exports}var n="object";var e=function(u){return u&&u.Math==Math&&u};var l=e(typeof globalThis==n&&globalThis)||e(typeof window==n&&window)||e(typeof self==n&&self)||e(typeof u==n&&u)||Function("return this")();var r=function(u){try{return!!u()}catch(u){return true}};var h=!r(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7});var i={}.propertyIsEnumerable;var a=Object.getOwnPropertyDescriptor;var o=a&&!i.call({1:2},1);var f=o?function u(t){var n=a(this,t);return!!n&&n.enumerable}:i;var v={f:f};var c=function(u,t){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:t}};var s={}.toString;var A=function(u){return s.call(u).slice(8,-1)};var C="".split;var d=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return A(u)=="String"?C.call(u,""):Object(u)}:Object;var E=function(u){if(u==undefined)throw TypeError("Can't call method on "+u);return u};var p=function(u){return d(E(u))};var B=function(u){return typeof u==="object"?u!==null:typeof u==="function"};var D=function(u,t){if(!B(u))return u;var n,e;if(t&&typeof(n=u.toString)=="function"&&!B(e=n.call(u)))return e;if(typeof(n=u.valueOf)=="function"&&!B(e=n.call(u)))return e;if(!t&&typeof(n=u.toString)=="function"&&!B(e=n.call(u)))return e;throw TypeError("Can't convert object to primitive value")};var F={}.hasOwnProperty;var g=function(u,t){return F.call(u,t)};var y=l.document;var m=B(y)&&B(y.createElement);var _=function(u){return m?y.createElement(u):{}};var w=!h&&!r(function(){return Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a!=7});var x=Object.getOwnPropertyDescriptor;var b=h?x:function u(t,n){t=p(t);n=D(n,true);if(w)try{return x(t,n)}catch(u){}if(g(t,n))return c(!v.f.call(t,n),t[n])};var O={f:b};var S=function(u){if(!B(u)){throw TypeError(String(u)+" is not an object")}return u};var j=Object.defineProperty;var k=h?j:function u(t,n,e){S(t);n=D(n,true);S(e);if(w)try{return j(t,n,e)}catch(u){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");if("value"in e)t[n]=e.value;return t};var z={f:k};var M=h?function(u,t,n){return z.f(u,t,c(1,n))}:function(u,t,n){u[t]=n;return u};var H=function(t,n){try{M(l,t,n)}catch(u){l[t]=n}return n};var P=t(function(u){var t="__core-js_shared__";var n=l[t]||H(t,{});(u.exports=function(u,t){return n[u]||(n[u]=t!==undefined?t:{})})("versions",[]).push({version:"3.2.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})});var T=P("native-function-to-string",Function.toString);var L=l.WeakMap;var W=typeof L==="function"&&/native code/.test(T.call(L));var R=0;var I=Math.random();var N=function(u){return"Symbol("+String(u===undefined?"":u)+")_"+(++R+I).toString(36)};var V=P("keys");var q=function(u){return V[u]||(V[u]=N(u))};var G={};var $=l.WeakMap;var U,Y,J;var K=function(u){return J(u)?Y(u):U(u,{})};var Z=function(n){return function(u){var t;if(!B(u)||(t=Y(u)).type!==n){throw TypeError("Incompatible receiver, "+n+" required")}return t}};if(W){var Q=new $;var X=Q.get;var uu=Q.has;var tu=Q.set;U=function(u,t){tu.call(Q,u,t);return t};Y=function(u){return X.call(Q,u)||{}};J=function(u){return uu.call(Q,u)}}else{var nu=q("state");G[nu]=true;U=function(u,t){M(u,nu,t);return t};Y=function(u){return g(u,nu)?u[nu]:{}};J=function(u){return g(u,nu)}}var eu={set:U,get:Y,has:J,enforce:K,getterFor:Z};var ru=t(function(u){var t=eu.get;var o=eu.enforce;var f=String(T).split("toString");P("inspectSource",function(u){return T.call(u)});(u.exports=function(u,t,n,e){var r=e?!!e.unsafe:false;var i=e?!!e.enumerable:false;var a=e?!!e.noTargetGet:false;if(typeof n=="function"){if(typeof t=="string"&&!g(n,"name"))M(n,"name",t);o(n).source=f.join(typeof t=="string"?t:"")}if(u===l){if(i)u[t]=n;else H(t,n);return}else if(!r){delete u[t]}else if(!a&&u[t]){i=true}if(i)u[t]=n;else M(u,t,n)})(Function.prototype,"toString",function u(){return typeof this=="function"&&t(this).source||T.call(this)})});var iu=l;var au=function(u){return typeof u=="function"?u:undefined};var ou=function(u,t){return arguments.length<2?au(iu[u])||au(l[u]):iu[u]&&iu[u][t]||l[u]&&l[u][t]};var fu=Math.ceil;var cu=Math.floor;var su=function(u){return isNaN(u=+u)?0:(u>0?cu:fu)(u)};var lu=Math.min;var Au=function(u){return u>0?lu(su(u),9007199254740991):0};var hu=Math.max;var vu=Math.min;var Cu=function(u,t){var n=su(u);return n<0?hu(n+t,0):vu(n,t)};var Eu=function(o){return function(u,t,n){var e=p(u);var r=Au(e.length);var i=Cu(n,r);var a;if(o&&t!=t)while(r>i){a=e[i++];if(a!=a)return true}else for(;r>i;i++){if((o||i in e)&&e[i]===t)return o||i||0}return!o&&-1}};var pu={includes:Eu(true),indexOf:Eu(false)};var Bu=pu.indexOf;var Du=function(u,t){var n=p(u);var e=0;var r=[];var i;for(i in n)!g(G,i)&&g(n,i)&&r.push(i);while(t.length>e)if(g(n,i=t[e++])){~Bu(r,i)||r.push(i)}return r};var du=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var Fu=du.concat("length","prototype");var gu=Object.getOwnPropertyNames||function u(t){return Du(t,Fu)};var yu={f:gu};var mu=Object.getOwnPropertySymbols;var _u={f:mu};var wu=ou("Reflect","ownKeys")||function u(t){var n=yu.f(S(t));var e=_u.f;return e?n.concat(e(t)):n};var xu=function(u,t){var n=wu(t);var e=z.f;var r=O.f;for(var i=0;i<n.length;i++){var a=n[i];if(!g(u,a))e(u,a,r(t,a))}};var bu=/#|\.prototype\./;var Ou=function(u,t){var n=ju[Su(u)];return n==zu?true:n==ku?false:typeof t=="function"?r(t):!!t};var Su=Ou.normalize=function(u){return String(u).replace(bu,".").toLowerCase()};var ju=Ou.data={};var ku=Ou.NATIVE="N";var zu=Ou.POLYFILL="P";var Mu=Ou;var Hu=O.f;var Pu=function(u,t){var n=u.target;var e=u.global;var r=u.stat;var i,a,o,f,c,s;if(e){a=l}else if(r){a=l[n]||H(n,{})}else{a=(l[n]||{}).prototype}if(a)for(o in t){c=t[o];if(u.noTargetGet){s=Hu(a,o);f=s&&s.value}else f=a[o];i=Mu(e?o:n+(r?".":"#")+o,u.forced);if(!i&&f!==undefined){if(typeof c===typeof f)continue;xu(c,f)}if(u.sham||f&&f.sham){M(c,"sham",true)}ru(a,o,c,u)}};var Tu=function(u){if(typeof u!="function"){throw TypeError(String(u)+" is not a function")}return u};var Lu=function(e,r,u){Tu(e);if(r===undefined)return e;switch(u){case 0:return function(){return e.call(r)};case 1:return function(u){return e.call(r,u)};case 2:return function(u,t){return e.call(r,u,t)};case 3:return function(u,t,n){return e.call(r,u,t,n)}}return function(){return e.apply(r,arguments)}};var Wu=function(u){return Object(E(u))};var Ru=Array.isArray||function u(t){return A(t)=="Array"};var Iu=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())});var Nu=l.Symbol;var Vu=P("wks");var qu=function(u){return Vu[u]||(Vu[u]=Iu&&Nu[u]||(Iu?Nu:N)("Symbol."+u))};var Gu=qu("species");var $u=function(u,t){var n;if(Ru(u)){n=u.constructor;if(typeof n=="function"&&(n===Array||Ru(n.prototype)))n=undefined;else if(B(n)){n=n[Gu];if(n===null)n=undefined}}return new(n===undefined?Array:n)(t===0?0:t)};var Uu=[].push;var Yu=function(h){var v=h==1;var C=h==2;var E=h==3;var p=h==4;var B=h==6;var D=h==5||B;return function(u,t,n,e){var r=Wu(u);var i=d(r);var a=Lu(t,n,3);var o=Au(i.length);var f=0;var c=e||$u;var s=v?c(u,o):C?c(u,0):undefined;var l,A;for(;o>f;f++)if(D||f in i){l=i[f];A=a(l,f,r);if(h){if(v)s[f]=A;else if(A)switch(h){case 3:return true;case 5:return l;case 6:return f;case 2:Uu.call(s,l)}else if(p)return false}}return B?-1:E||p?p:s}};var Ju={forEach:Yu(0),map:Yu(1),filter:Yu(2),some:Yu(3),every:Yu(4),find:Yu(5),findIndex:Yu(6)};var Ku=Object.keys||function u(t){return Du(t,du)};var Zu=h?Object.defineProperties:function u(t,n){S(t);var e=Ku(n);var r=e.length;var i=0;var a;while(r>i)z.f(t,a=e[i++],n[a]);return t};var Qu=ou("document","documentElement");var Xu=q("IE_PROTO");var ut="prototype";var tt=function(){};var nt=function(){var u=_("iframe");var t=du.length;var n="<";var e="script";var r=">";var i="java"+e+":";var a;u.style.display="none";Qu.appendChild(u);u.src=String(i);a=u.contentWindow.document;a.open();a.write(n+e+r+"document.F=Object"+n+"/"+e+r);a.close();nt=a.F;while(t--)delete nt[ut][du[t]];return nt()};var et=Object.create||function u(t,n){var e;if(t!==null){tt[ut]=S(t);e=new tt;tt[ut]=null;e[Xu]=t}else e=nt();return n===undefined?e:Zu(e,n)};G[Xu]=true;var rt=qu("unscopables");var it=Array.prototype;if(it[rt]==undefined){M(it,rt,et(null))}var at=function(u){it[rt][u]=true};var ot=Ju.find;var ft="find";var ct=true;if(ft in[])Array(1)[ft](function(){ct=false});Pu({target:"Array",proto:true,forced:ct},{find:function u(t){return ot(this,t,arguments.length>1?arguments[1]:undefined)}});at(ft);var st=pu.includes;Pu({target:"Array",proto:true},{includes:function u(t){return st(this,t,arguments.length>1?arguments[1]:undefined)}});at("includes");var lt=Object.assign;var At=!lt||r(function(){var u={};var t={};var n=Symbol();var e="abcdefghijklmnopqrst";u[n]=7;e.split("").forEach(function(u){t[u]=u});return lt({},u)[n]!=7||Ku(lt({},t)).join("")!=e})?function u(t,n){var e=Wu(t);var r=arguments.length;var i=1;var a=_u.f;var o=v.f;while(r>i){var f=d(arguments[i++]);var c=a?Ku(f).concat(a(f)):Ku(f);var s=c.length;var l=0;var A;while(s>l){A=c[l++];if(!h||o.call(f,A))e[A]=f[A]}}return e}:lt;Pu({target:"Object",stat:true,forced:Object.assign!==At},{assign:At});var ht=qu("match");var vt=function(u){var t;return B(u)&&((t=u[ht])!==undefined?!!t:A(u)=="RegExp")};var Ct=function(u){if(vt(u)){throw TypeError("The method doesn't accept regular expressions")}return u};var Et=qu("match");var pt=function(t){var n=/./;try{"/./"[t](n)}catch(u){try{n[Et]=false;return"/./"[t](n)}catch(u){}}return false};Pu({target:"String",proto:true,forced:!pt("includes")},{includes:function u(t){return!!~String(E(this)).indexOf(Ct(t),arguments.length>1?arguments[1]:undefined)}});var Bt="".startsWith;var Dt=Math.min;Pu({target:"String",proto:true,forced:!pt("startsWith")},{startsWith:function u(t){var n=String(E(this));Ct(t);var e=Au(Dt(arguments.length>1?arguments[1]:undefined,n.length));var r=String(t);return Bt?Bt.call(n,r,e):n.slice(e,e+r.length)===r}});if(typeof window!=="undefined"){(function(){var e=function(u,t){var n=u.nodeType;if(n===3){t.push(u.textContent.replace(/&/,"&amp;").replace(/</,"&lt;").replace(">","&gt;"))}else if(n===1){t.push("<",u.tagName);if(u.hasAttributes()){[].forEach.call(u.attributes,function(u){t.push(" ",u.item.name,"='",u.item.value,"'")})}if(u.hasChildNodes()){t.push(">");[].forEach.call(u.childNodes,function(u){e(u,t)});t.push("</",u.tagName,">")}else{t.push("/>")}}else if(n==8){t.push("\x3c!--",u.nodeValue,"--\x3e")}};Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){var u=[];var t=this.firstChild;while(t){e(t,u);t=t.nextSibling}return u.join("")},set:function(u){while(this.firstChild){this.removeChild(this.firstChild)}try{var t=new DOMParser;t.async=false;var n="<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>"+u+"</svg>";var e=t.parseFromString(n,"text/xml").documentElement;var r=e.firstChild;while(r){this.appendChild(this.ownerDocument.importNode(r,true));r=r.nextSibling}}catch(u){}}});Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function(){return this.innerHTML},set:function(u){this.innerHTML=u}})})()}});(function(u,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports,require("d3-selection"),require("d3-transition"),require("d3-array"),require("d3plus-common")):typeof define==="function"&&define.amd?define("d3plus-text",["exports","d3-selection","d3-transition","d3-array","d3plus-common"],t):(u=u||self,t(u.d3plus={},u.d3Selection,u.d3Transition,u.d3Array,u.d3plusCommon))})(this,function(u,s,l,H,P){"use strict";function r(u){if(u.replace(/\s+/g,"")==="")return u;var t=(new DOMParser).parseFromString(u.replace(/<[^>]+>/g,""),"text/html");return t.documentElement?t.documentElement.textContent:u}function T(u,t){t=Object.assign({"font-size":10,"font-family":"sans-serif","font-style":"normal","font-weight":400,"font-variant":"normal"},t);var n=document.createElement("canvas").getContext("2d");var e=[];e.push(t["font-style"]);e.push(t["font-variant"]);e.push(t["font-weight"]);e.push(typeof t["font-size"]==="string"?t["font-size"]:"".concat(t["font-size"],"px"));e.push(t["font-family"]);n.font=e.join(" ");if(u instanceof Array)return u.map(function(u){return n.measureText(r(u)).width});return n.measureText(r(u)).width}function L(u){return u.toString().replace(/^\s+|\s+$/g,"")}function t(u){return u.toString().replace(/^\s+/,"")}function g(u){return u.toString().replace(/\s+$/,"")}var i="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",a={},o=32;var f,c,A,h;var W=function u(t){if(!f){f=T(i,{"font-family":"DejaVuSans","font-size":o});c=T(i,{"font-family":"-apple-system","font-size":o});A=T(i,{"font-family":"monospace","font-size":o});h=T(i,{"font-family":"sans-serif","font-size":o})}if(!(t instanceof Array))t=t.split(",");t=t.map(function(u){return L(u)});for(var n=0;n<t.length;n++){var e=t[n];if(a[e]||["-apple-system","monospace","sans-serif","DejaVuSans"].includes(e))return e;else if(a[e]===false)continue;var r=T(i,{"font-family":e,"font-size":o});a[e]=r!==A;if(a[e])a[e]=r!==h;if(c&&a[e])a[e]=r!==c;if(f&&a[e])a[e]=r!==f;if(a[e])return e}return false};var v=function(){return s.select("html").attr("dir")==="rtl"||s.select("body").attr("dir")==="rtl"||s.select("html").style("direction")==="rtl"||s.select("body").style("direction")==="rtl"};function y(u){if(u===void 0)u="undefined";else if(!(typeof u==="string"||u instanceof String))u=JSON.stringify(u);return u}var e=[[/[\300-\305]/g,"A"],[/[\340-\345]/g,"a"],[/[\306]/g,"AE"],[/[\346]/g,"ae"],[/[\337]/g,"B"],[/[\307]/g,"C"],[/[\347]/g,"c"],[/[\320\336\376]/g,"D"],[/[\360]/g,"d"],[/[\310-\313]/g,"E"],[/[\350-\353]/g,"e"],[/[\314-\317]/g,"I"],[/[\354-\357]/g,"i"],[/[\321]/g,"N"],[/[\361]/g,"n"],[/[\322-\326\330]/g,"O"],[/[\362-\366\370]/g,"o"],[/[\331-\334]/g,"U"],[/[\371-\374]/g,"u"],[/[\327]/g,"x"],[/[\335]/g,"Y"],[/[\375\377]/g,"y"]];function C(u){return"".concat(u).replace(/[^A-Za-z0-9\-_]/g,function(u){if(u===" ")return"-";var t=false;for(var n=0;n<e.length;n++){if(new RegExp(e[n][0]).test(u)){t=e[n][1];break}}return t||""})}function E(u,t){if(!(u instanceof t)){throw new TypeError("Cannot call a class as a function")}}function p(u,t){for(var n=0;n<t.length;n++){var e=t[n];e.enumerable=e.enumerable||false;e.configurable=true;if("value"in e)e.writable=true;Object.defineProperty(u,e.key,e)}}function n(u,t,n){if(t)p(u.prototype,t);if(n)p(u,n);return u}function B(u,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,writable:true,configurable:true}});if(t)d(u,t)}function D(u){D=Object.setPrototypeOf?Object.getPrototypeOf:function u(t){return t.__proto__||Object.getPrototypeOf(t)};return D(u)}function d(u,t){d=Object.setPrototypeOf||function u(t,n){t.__proto__=n;return t};return d(u,t)}function F(u){if(u===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return u}function m(u,t){if(t&&(typeof t==="object"||typeof t==="function")){return t}return F(u)}var _=["u0903","u093B","u093E","u093F","u0940","u0949","u094A","u094B","u094C","u094E","u094F","u0982","u0983","u09BE","u09BF","u09C0","u09C7","u09C8","u09CB","u09CC","u09D7","u0A03","u0A3E","u0A3F","u0A40","u0A83","u0ABE","u0ABF","u0AC0","u0AC9","u0ACB","u0ACC","u0B02","u0B03","u0B3E","u0B40","u0B47","u0B48","u0B4B","u0B4C","u0B57","u0BBE","u0BBF","u0BC1","u0BC2","u0BC6","u0BC7","u0BC8","u0BCA","u0BCB","u0BCC","u0BD7","u0C01","u0C02","u0C03","u0C41","u0C42","u0C43","u0C44","u0C82","u0C83","u0CBE","u0CC0","u0CC1","u0CC2","u0CC3","u0CC4","u0CC7","u0CC8","u0CCA","u0CCB","u0CD5","u0CD6","u0D02","u0D03","u0D3E","u0D3F","u0D40","u0D46","u0D47","u0D48","u0D4A","u0D4B","u0D4C","u0D57","u0D82","u0D83","u0DCF","u0DD0","u0DD1","u0DD8","u0DD9","u0DDA","u0DDB","u0DDC","u0DDD","u0DDE","u0DDF","u0DF2","u0DF3","u0F3E","u0F3F","u0F7F","u102B","u102C","u1031","u1038","u103B","u103C","u1056","u1057","u1062","u1063","u1064","u1067","u1068","u1069","u106A","u106B","u106C","u106D","u1083","u1084","u1087","u1088","u1089","u108A","u108B","u108C","u108F","u109A","u109B","u109C","u17B6","u17BE","u17BF","u17C0","u17C1","u17C2","u17C3","u17C4","u17C5","u17C7","u17C8","u1923","u1924","u1925","u1926","u1929","u192A","u192B","u1930","u1931","u1933","u1934","u1935","u1936","u1937","u1938","u1A19","u1A1A","u1A55","u1A57","u1A61","u1A63","u1A64","u1A6D","u1A6E","u1A6F","u1A70","u1A71","u1A72","u1B04","u1B35","u1B3B","u1B3D","u1B3E","u1B3F","u1B40","u1B41","u1B43","u1B44","u1B82","u1BA1","u1BA6","u1BA7","u1BAA","u1BE7","u1BEA","u1BEB","u1BEC","u1BEE","u1BF2","u1BF3","u1C24","u1C25","u1C26","u1C27","u1C28","u1C29","u1C2A","u1C2B","u1C34","u1C35","u1CE1","u1CF2","u1CF3","u302E","u302F","uA823","uA824","uA827","uA880","uA881","uA8B4","uA8B5","uA8B6","uA8B7","uA8B8","uA8B9","uA8BA","uA8BB","uA8BC","uA8BD","uA8BE","uA8BF","uA8C0","uA8C1","uA8C2","uA8C3","uA952","uA953","uA983","uA9B4","uA9B5","uA9BA","uA9BB","uA9BD","uA9BE","uA9BF","uA9C0","uAA2F","uAA30","uAA33","uAA34","uAA4D","uAA7B","uAA7D","uAAEB","uAAEE","uAAEF","uAAF5","uABE3","uABE4","uABE6","uABE7","uABE9","uABEA","uABEC"];var w=["u0300","u0301","u0302","u0303","u0304","u0305","u0306","u0307","u0308","u0309","u030A","u030B","u030C","u030D","u030E","u030F","u0310","u0311","u0312","u0313","u0314","u0315","u0316","u0317","u0318","u0319","u031A","u031B","u031C","u031D","u031E","u031F","u0320","u0321","u0322","u0323","u0324","u0325","u0326","u0327","u0328","u0329","u032A","u032B","u032C","u032D","u032E","u032F","u0330","u0331","u0332","u0333","u0334","u0335","u0336","u0337","u0338","u0339","u033A","u033B","u033C","u033D","u033E","u033F","u0340","u0341","u0342","u0343","u0344","u0345","u0346","u0347","u0348","u0349","u034A","u034B","u034C","u034D","u034E","u034F","u0350","u0351","u0352","u0353","u0354","u0355","u0356","u0357","u0358","u0359","u035A","u035B","u035C","u035D","u035E","u035F","u0360","u0361","u0362","u0363","u0364","u0365","u0366","u0367","u0368","u0369","u036A","u036B","u036C","u036D","u036E","u036F","u0483","u0484","u0485","u0486","u0487","u0591","u0592","u0593","u0594","u0595","u0596","u0597","u0598","u0599","u059A","u059B","u059C","u059D","u059E","u059F","u05A0","u05A1","u05A2","u05A3","u05A4","u05A5","u05A6","u05A7","u05A8","u05A9","u05AA","u05AB","u05AC","u05AD","u05AE","u05AF","u05B0","u05B1","u05B2","u05B3","u05B4","u05B5","u05B6","u05B7","u05B8","u05B9","u05BA","u05BB","u05BC","u05BD","u05BF","u05C1","u05C2","u05C4","u05C5","u05C7","u0610","u0611","u0612","u0613","u0614","u0615","u0616","u0617","u0618","u0619","u061A","u064B","u064C","u064D","u064E","u064F","u0650","u0651","u0652","u0653","u0654","u0655","u0656","u0657","u0658","u0659","u065A","u065B","u065C","u065D","u065E","u065F","u0670","u06D6","u06D7","u06D8","u06D9","u06DA","u06DB","u06DC","u06DF","u06E0","u06E1","u06E2","u06E3","u06E4","u06E7","u06E8","u06EA","u06EB","u06EC","u06ED","u0711","u0730","u0731","u0732","u0733","u0734","u0735","u0736","u0737","u0738","u0739","u073A","u073B","u073C","u073D","u073E","u073F","u0740","u0741","u0742","u0743","u0744","u0745","u0746","u0747","u0748","u0749","u074A","u07A6","u07A7","u07A8","u07A9","u07AA","u07AB","u07AC","u07AD","u07AE","u07AF","u07B0","u07EB","u07EC","u07ED","u07EE","u07EF","u07F0","u07F1","u07F2","u07F3","u0816","u0817","u0818","u0819","u081B","u081C","u081D","u081E","u081F","u0820","u0821","u0822","u0823","u0825","u0826","u0827","u0829","u082A","u082B","u082C","u082D","u0859","u085A","u085B","u08E3","u08E4","u08E5","u08E6","u08E7","u08E8","u08E9","u08EA","u08EB","u08EC","u08ED","u08EE","u08EF","u08F0","u08F1","u08F2","u08F3","u08F4","u08F5","u08F6","u08F7","u08F8","u08F9","u08FA","u08FB","u08FC","u08FD","u08FE","u08FF","u0900","u0901","u0902","u093A","u093C","u0941","u0942","u0943","u0944","u0945","u0946","u0947","u0948","u094D","u0951","u0952","u0953","u0954","u0955","u0956","u0957","u0962","u0963","u0981","u09BC","u09C1","u09C2","u09C3","u09C4","u09CD","u09E2","u09E3","u0A01","u0A02","u0A3C","u0A41","u0A42","u0A47","u0A48","u0A4B","u0A4C","u0A4D","u0A51","u0A70","u0A71","u0A75","u0A81","u0A82","u0ABC","u0AC1","u0AC2","u0AC3","u0AC4","u0AC5","u0AC7","u0AC8","u0ACD","u0AE2","u0AE3","u0B01","u0B3C","u0B3F","u0B41","u0B42","u0B43","u0B44","u0B4D","u0B56","u0B62","u0B63","u0B82","u0BC0","u0BCD","u0C00","u0C3E","u0C3F","u0C40","u0C46","u0C47","u0C48","u0C4A","u0C4B","u0C4C","u0C4D","u0C55","u0C56","u0C62","u0C63","u0C81","u0CBC","u0CBF","u0CC6","u0CCC","u0CCD","u0CE2","u0CE3","u0D01","u0D41","u0D42","u0D43","u0D44","u0D4D","u0D62","u0D63","u0DCA","u0DD2","u0DD3","u0DD4","u0DD6","u0E31","u0E34","u0E35","u0E36","u0E37","u0E38","u0E39","u0E3A","u0E47","u0E48","u0E49","u0E4A","u0E4B","u0E4C","u0E4D","u0E4E","u0EB1","u0EB4","u0EB5","u0EB6","u0EB7","u0EB8","u0EB9","u0EBB","u0EBC","u0EC8","u0EC9","u0ECA","u0ECB","u0ECC","u0ECD","u0F18","u0F19","u0F35","u0F37","u0F39","u0F71","u0F72","u0F73","u0F74","u0F75","u0F76","u0F77","u0F78","u0F79","u0F7A","u0F7B","u0F7C","u0F7D","u0F7E","u0F80","u0F81","u0F82","u0F83","u0F84","u0F86","u0F87","u0F8D","u0F8E","u0F8F","u0F90","u0F91","u0F92","u0F93","u0F94","u0F95","u0F96","u0F97","u0F99","u0F9A","u0F9B","u0F9C","u0F9D","u0F9E","u0F9F","u0FA0","u0FA1","u0FA2","u0FA3","u0FA4","u0FA5","u0FA6","u0FA7","u0FA8","u0FA9","u0FAA","u0FAB","u0FAC","u0FAD","u0FAE","u0FAF","u0FB0","u0FB1","u0FB2","u0FB3","u0FB4","u0FB5","u0FB6","u0FB7","u0FB8","u0FB9","u0FBA","u0FBB","u0FBC","u0FC6","u102D","u102E","u102F","u1030","u1032","u1033","u1034","u1035","u1036","u1037","u1039","u103A","u103D","u103E","u1058","u1059","u105E","u105F","u1060","u1071","u1072","u1073","u1074","u1082","u1085","u1086","u108D","u109D","u135D","u135E","u135F","u1712","u1713","u1714","u1732","u1733","u1734","u1752","u1753","u1772","u1773","u17B4","u17B5","u17B7","u17B8","u17B9","u17BA","u17BB","u17BC","u17BD","u17C6","u17C9","u17CA","u17CB","u17CC","u17CD","u17CE","u17CF","u17D0","u17D1","u17D2","u17D3","u17DD","u180B","u180C","u180D","u18A9","u1920","u1921","u1922","u1927","u1928","u1932","u1939","u193A","u193B","u1A17","u1A18","u1A1B","u1A56","u1A58","u1A59","u1A5A","u1A5B","u1A5C","u1A5D","u1A5E","u1A60","u1A62","u1A65","u1A66","u1A67","u1A68","u1A69","u1A6A","u1A6B","u1A6C","u1A73","u1A74","u1A75","u1A76","u1A77","u1A78","u1A79","u1A7A","u1A7B","u1A7C","u1A7F","u1AB0","u1AB1","u1AB2","u1AB3","u1AB4","u1AB5","u1AB6","u1AB7","u1AB8","u1AB9","u1ABA","u1ABB","u1ABC","u1ABD","u1B00","u1B01","u1B02","u1B03","u1B34","u1B36","u1B37","u1B38","u1B39","u1B3A","u1B3C","u1B42","u1B6B","u1B6C","u1B6D","u1B6E","u1B6F","u1B70","u1B71","u1B72","u1B73","u1B80","u1B81","u1BA2","u1BA3","u1BA4","u1BA5","u1BA8","u1BA9","u1BAB","u1BAC","u1BAD","u1BE6","u1BE8","u1BE9","u1BED","u1BEF","u1BF0","u1BF1","u1C2C","u1C2D","u1C2E","u1C2F","u1C30","u1C31","u1C32","u1C33","u1C36","u1C37","u1CD0","u1CD1","u1CD2","u1CD4","u1CD5","u1CD6","u1CD7","u1CD8","u1CD9","u1CDA","u1CDB","u1CDC","u1CDD","u1CDE","u1CDF","u1CE0","u1CE2","u1CE3","u1CE4","u1CE5","u1CE6","u1CE7","u1CE8","u1CED","u1CF4","u1CF8","u1CF9","u1DC0","u1DC1","u1DC2","u1DC3","u1DC4","u1DC5","u1DC6","u1DC7","u1DC8","u1DC9","u1DCA","u1DCB","u1DCC","u1DCD","u1DCE","u1DCF","u1DD0","u1DD1","u1DD2","u1DD3","u1DD4","u1DD5","u1DD6","u1DD7","u1DD8","u1DD9","u1DDA","u1DDB","u1DDC","u1DDD","u1DDE","u1DDF","u1DE0","u1DE1","u1DE2","u1DE3","u1DE4","u1DE5","u1DE6","u1DE7","u1DE8","u1DE9","u1DEA","u1DEB","u1DEC","u1DED","u1DEE","u1DEF","u1DF0","u1DF1","u1DF2","u1DF3","u1DF4","u1DF5","u1DFC","u1DFD","u1DFE","u1DFF","u20D0","u20D1","u20D2","u20D3","u20D4","u20D5","u20D6","u20D7","u20D8","u20D9","u20DA","u20DB","u20DC","u20E1","u20E5","u20E6","u20E7","u20E8","u20E9","u20EA","u20EB","u20EC","u20ED","u20EE","u20EF","u20F0","u2CEF","u2CF0","u2CF1","u2D7F","u2DE0","u2DE1","u2DE2","u2DE3","u2DE4","u2DE5","u2DE6","u2DE7","u2DE8","u2DE9","u2DEA","u2DEB","u2DEC","u2DED","u2DEE","u2DEF","u2DF0","u2DF1","u2DF2","u2DF3","u2DF4","u2DF5","u2DF6","u2DF7","u2DF8","u2DF9","u2DFA","u2DFB","u2DFC","u2DFD","u2DFE","u2DFF","u302A","u302B","u302C","u302D","u3099","u309A","uA66F","uA674","uA675","uA676","uA677","uA678","uA679","uA67A","uA67B","uA67C","uA67D","uA69E","uA69F","uA6F0","uA6F1","uA802","uA806","uA80B","uA825","uA826","uA8C4","uA8E0","uA8E1","uA8E2","uA8E3","uA8E4","uA8E5","uA8E6","uA8E7","uA8E8","uA8E9","uA8EA","uA8EB","uA8EC","uA8ED","uA8EE","uA8EF","uA8F0","uA8F1","uA926","uA927","uA928","uA929","uA92A","uA92B","uA92C","uA92D","uA947","uA948","uA949","uA94A","uA94B","uA94C","uA94D","uA94E","uA94F","uA950","uA951","uA980","uA981","uA982","uA9B3","uA9B6","uA9B7","uA9B8","uA9B9","uA9BC","uA9E5","uAA29","uAA2A","uAA2B","uAA2C","uAA2D","uAA2E","uAA31","uAA32","uAA35","uAA36","uAA43","uAA4C","uAA7C","uAAB0","uAAB2","uAAB3","uAAB4","uAAB7","uAAB8","uAABE","uAABF","uAAC1","uAAEC","uAAED","uAAF6","uABE5","uABE8","uABED","uFB1E","uFE00","uFE01","uFE02","uFE03","uFE04","uFE05","uFE06","uFE07","uFE08","uFE09","uFE0A","uFE0B","uFE0C","uFE0D","uFE0E","uFE0F","uFE20","uFE21","uFE22","uFE23","uFE24","uFE25","uFE26","uFE27","uFE28","uFE29","uFE2A","uFE2B","uFE2C","uFE2D","uFE2E","uFE2F"];var x=_.concat(w);var b=["-",";",":","&","|","u0E2F","u0EAF","u0EC6","u0ECC","u104A","u104B","u104C","u104D","u104E","u104F","u2013","u2014","u2027","u3000","u3001","u3002","uFF0C","uFF5E"];var O=["'","<","(","{","[","u00AB","u300A","u3008"];var S=["'",">",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(b);var j="က-ဪဿ-၉ၐ-ၕ";var k="぀-ゟ゠-ヿ＀-+--}⦅-゚㐀-䶿";var z="㐀-龿";var M="ກ-ຮະ-ໄ່-໋ໍ-ໝ";var R=j+z+k+M;var I=new RegExp("(\\".concat(b.join("|\\"),")*[^\\s|\\").concat(b.join("|\\"),"]*(\\").concat(b.join("|\\"),")*"),"g");var N=new RegExp("[".concat(R,"]"));var V=new RegExp("(\\".concat(O.join("|\\"),")*[").concat(R,"](\\").concat(S.join("|\\"),"|\\").concat(x.join("|\\"),")*|[a-z0-9]+"),"gi");function q(u){if(!N.test(u))return y(u).match(I).filter(function(u){return u.length});return H.merge(y(u).match(I).map(function(u){if(N.test(u))return u.match(V);return[u]}))}function G(){var h="sans-serif",v=10,C=400,E=200,p,B=null,D=false,d=q,F=200;function t(u){u=y(u);if(p===void 0)p=Math.ceil(v*1.4);var t=d(u);var n={"font-family":h,"font-size":v,"font-weight":C,"line-height":p};var e=1,r="",i=false,a=0;var o=[],f=T(t,n),c=T(" ",n);for(var s=0;s<t.length;s++){var l=t[s];var A=f[t.indexOf(l)];l+=u.slice(r.length+l.length).match("^( |\n)*","g")[0];if(r.slice(-1)==="\n"||a+A>F){if(!s&&!D){i=true;break}if(o.length>=e)o[e-1]=g(o[e-1]);e++;if(p*e>E||A>F&&!D||B&&e>B){i=true;break}a=0;o.push(l)}else if(!s)o[0]=l;else o[e-1]+=l;r+=l;a+=A;a+=l.match(/[\s]*$/g)[0].length*c}return{lines:o,sentence:u,truncated:i,widths:T(o,n),words:t}}t.fontFamily=function(u){return arguments.length?(h=u,t):h};t.fontSize=function(u){return arguments.length?(v=u,t):v};t.fontWeight=function(u){return arguments.length?(C=u,t):C};t.height=function(u){return arguments.length?(E=u,t):E};t.lineHeight=function(u){return arguments.length?(p=u,t):p};t.maxLines=function(u){return arguments.length?(B=u,t):B};t.overflow=function(u){return arguments.length?(D=u,t):D};t.split=function(u){return arguments.length?(d=u,t):d};t.width=function(u){return arguments.length?(F=u,t):F};return t}var $={i:"font-style: italic;",em:"font-style: italic;",b:"font-weight: bold;",strong:"font-weight: bold;"};var U=function(u){B(t,u);function t(){var n;E(this,t);n=m(this,D(t).call(this));n._ariaHidden=P.constant("false");n._delay=0;n._duration=0;n._ellipsis=function(u,t){return t?"".concat(u.replace(/\.|,$/g,""),"..."):""};n._fontColor=P.constant("black");n._fontFamily=P.constant(["Roboto","Helvetica Neue","HelveticaNeue","Helvetica","Arial","sans-serif"]);n._fontMax=P.constant(50);n._fontMin=P.constant(8);n._fontOpacity=P.constant(1);n._fontResize=P.constant(false);n._fontSize=P.constant(10);n._fontWeight=P.constant(400);n._height=P.accessor("height",200);n._html=true;n._id=function(u,t){return u.id||"".concat(t)};n._lineHeight=function(u,t){return n._fontSize(u,t)*1.2};n._maxLines=P.constant(null);n._on={};n._overflow=P.constant(false);n._padding=P.constant(0);n._pointerEvents=P.constant("auto");n._rotate=P.constant(0);n._rotateAnchor=function(u){return[u.w/2,u.h/2]};n._split=q;n._text=P.accessor("text");n._textAnchor=P.constant("start");n._verticalAlign=P.constant("top");n._width=P.accessor("width",200);n._x=P.accessor("x",0);n._y=P.accessor("y",0);return n}n(t,[{key:"render",value:function u(t){var z=this;if(this._select===void 0)this.select(s.select("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).node());var M=this;var n=this._select.selectAll(".d3plus-textBox").data(this._data.reduce(function(u,t,n){var e=z._text(t,n);if(e===void 0)return u;e=L(e);var r=z._fontResize(t,n);var i=z._lineHeight(t,n)/z._fontSize(t,n);var a=r?z._fontMax(t,n):z._fontSize(t,n),o=r?a*i:z._lineHeight(t,n),f=1,c=[],s,l;var A={"font-family":W(z._fontFamily(t,n)),"font-size":a,"font-weight":z._fontWeight(t,n),"line-height":o};var h=P.parseSides(z._padding(t,n));var v=z._height(t,n)-(h.top+h.bottom),C=z._width(t,n)-(h.left+h.right);var E=G().fontFamily(A["font-family"]).fontSize(a).fontWeight(A["font-weight"]).lineHeight(o).maxLines(z._maxLines(t,n)).height(v).overflow(z._overflow(t,n)).width(C).split(z._split);var p=z._fontMax(t,n),B=z._fontMin(t,n),D=z._verticalAlign(t,n),d=z._split(e,n);function F(){var u=function u(){if(f<1)c=[M._ellipsis("",f)];else c[f-1]=M._ellipsis(c[f-1],f)};a=H.max([a,B]);a=H.min([a,p]);if(r){o=a*i;E.fontSize(a).lineHeight(o);A["font-size"]=a;A["line-height"]=o}l=E(e);c=l.lines.filter(function(u){return u!==""});f=c.length;if(l.truncated){if(r){a--;if(a<B){a=B;u();return}else F()}else u()}}if(C>B&&(v>o||r&&v>B*i)){if(r){s=T(d,A);var g=1.165+C/v*.1,y=C*v,m=H.max(s),_=H.sum(s,function(u){return u*o})*g;if(m>C||_>y){var w=Math.sqrt(y/_),x=C/m;var b=H.min([w,x]);a=Math.floor(a*b)}var O=Math.floor(v*.8);if(a>O)a=O}F()}if(c.length){var S=f*o;var j=z._rotate(t,n);var k=j===0?D==="top"?0:D==="middle"?v/2-S/2:v-S:0;k-=o*.1;u.push({aH:z._ariaHidden(t,n),data:t,i:n,lines:c,fC:z._fontColor(t,n),fF:A["font-family"],fO:z._fontOpacity(t,n),fW:A["font-weight"],id:z._id(t,n),tA:z._textAnchor(t,n),vA:z._verticalAlign(t,n),widths:l.widths,fS:a,lH:o,w:C,h:v,r:j,x:z._x(t,n)+h.left,y:z._y(t,n)+k+h.top})}return u},[]),function(u){return z._id(u.data,u.i)});var r=l.transition().duration(this._duration);if(this._duration===0){n.exit().remove()}else{n.exit().transition().delay(this._duration).remove();n.exit().selectAll("text").transition(r).attr("opacity",0).style("opacity",0)}function e(u){u.attr("transform",function(u,t){var n=M._rotateAnchor(u,t);return"translate(".concat(u.x,", ").concat(u.y,") rotate(").concat(u.r,", ").concat(n[0],", ").concat(n[1],")")})}var i=n.enter().append("g").attr("class","d3plus-textBox").attr("id",function(u){return"d3plus-textBox-".concat(C(u.id))}).call(e).merge(n);var a=v();i.style("pointer-events",function(u){return z._pointerEvents(u.data,u.i)}).each(function(n){function u(u){u[M._html?"html":"text"](function(u){return g(u).replace(/&([^\;&]*)/g,function(u,t){return t==="amp"?u:"&amp;".concat(t)}).replace(/<([^A-z^/]+)/g,function(u,t){return"&lt;".concat(t)}).replace(/<$/g,"&lt;").replace(/(<[^>^\/]+>)([^<^>]+)$/g,function(u,t,n){return"".concat(t).concat(n).concat(t.replace("<","</"))}).replace(/^([^<^>]+)(<\/[^>]+>)/g,function(u,t,n){return"".concat(n.replace("</","<")).concat(t).concat(n)}).replace(/<([A-z]+)[^>]*>([^<^>]+)<\/[^>]+>/g,function(u,t,n){var e=$[t]?'<tspan style="'.concat($[t],'">'):"";return"".concat(e.length?e:"").concat(n).concat(e.length?"</tspan>":"")})})}function t(u){u.attr("aria-hidden",n.aH).attr("dir",a?"rtl":"ltr").attr("fill",n.fC).attr("text-anchor",n.tA).attr("font-family",n.fF).style("font-family",n.fF).attr("font-size","".concat(n.fS,"px")).style("font-size","".concat(n.fS,"px")).attr("font-weight",n.fW).style("font-weight",n.fW).attr("x","".concat(n.tA==="middle"?n.w/2:a?n.tA==="start"?n.w:0:n.tA==="end"?n.w:2*Math.sin(Math.PI*n.r/180),"px")).attr("y",function(u,t){return n.r===0||n.vA==="top"?"".concat((t+1)*n.lH-(n.lH-n.fS),"px"):n.vA==="middle"?"".concat((n.h+n.fS)/2-(n.lH-n.fS)+(t-n.lines.length/2+.5)*n.lH,"px"):"".concat(n.h-2*(n.lH-n.fS)-(n.lines.length-(t+1))*n.lH+2*Math.cos(Math.PI*n.r/180),"px")})}var e=s.select(this).selectAll("text").data(n.lines);if(M._duration===0){e.call(u).call(t);e.exit().remove();e.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("unicode-bidi","bidi-override").call(u).call(t).attr("opacity",n.fO).style("opacity",n.fO)}else{e.call(u).transition(r).call(t);e.exit().transition(r).attr("opacity",0).remove();e.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("opacity",0).style("opacity",0).call(u).call(t).merge(e).transition(r).delay(M._delay).call(t).attr("opacity",n.fO).style("opacity",n.fO)}}).transition(r).call(e);var o=Object.keys(this._on),f=o.reduce(function(u,n){u[n]=function(u,t){return z._on[n](u.data,t)};return u},{});for(var c=0;c<o.length;c++){i.on(o[c],f[o[c]])}if(t)setTimeout(t,this._duration+100);return this}},{key:"ariaHidden",value:function u(t){return t!==undefined?(this._ariaHidden=typeof t==="function"?t:P.constant(t),this):this._ariaHidden}},{key:"data",value:function u(t){return arguments.length?(this._data=t,this):this._data}},{key:"delay",value:function u(t){return arguments.length?(this._delay=t,this):this._delay}},{key:"duration",value:function u(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"ellipsis",value:function u(t){return arguments.length?(this._ellipsis=typeof t==="function"?t:P.constant(t),this):this._ellipsis}},{key:"fontColor",value:function u(t){return arguments.length?(this._fontColor=typeof t==="function"?t:P.constant(t),this):this._fontColor}},{key:"fontFamily",value:function u(t){return arguments.length?(this._fontFamily=typeof t==="function"?t:P.constant(t),this):this._fontFamily}},{key:"fontMax",value:function u(t){return arguments.length?(this._fontMax=typeof t==="function"?t:P.constant(t),this):this._fontMax}},{key:"fontMin",value:function u(t){return arguments.length?(this._fontMin=typeof t==="function"?t:P.constant(t),this):this._fontMin}},{key:"fontOpacity",value:function u(t){return arguments.length?(this._fontOpacity=typeof t==="function"?t:P.constant(t),this):this._fontOpacity}},{key:"fontResize",value:function u(t){return arguments.length?(this._fontResize=typeof t==="function"?t:P.constant(t),this):this._fontResize}},{key:"fontSize",value:function u(t){return arguments.length?(this._fontSize=typeof t==="function"?t:P.constant(t),this):this._fontSize}},{key:"fontWeight",value:function u(t){return arguments.length?(this._fontWeight=typeof t==="function"?t:P.constant(t),this):this._fontWeight}},{key:"height",value:function u(t){return arguments.length?(this._height=typeof t==="function"?t:P.constant(t),this):this._height}},{key:"html",value:function u(t){return arguments.length?(this._html=t,this):this._html}},{key:"id",value:function u(t){return arguments.length?(this._id=typeof t==="function"?t:P.constant(t),this):this._id}},{key:"lineHeight",value:function u(t){return arguments.length?(this._lineHeight=typeof t==="function"?t:P.constant(t),this):this._lineHeight}},{key:"maxLines",value:function u(t){return arguments.length?(this._maxLines=typeof t==="function"?t:P.constant(t),this):this._maxLines}},{key:"overflow",value:function u(t){return arguments.length?(this._overflow=typeof t==="function"?t:P.constant(t),this):this._overflow}},{key:"padding",value:function u(t){return arguments.length?(this._padding=typeof t==="function"?t:P.constant(t),this):this._padding}},{key:"pointerEvents",value:function u(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:P.constant(t),this):this._pointerEvents}},{key:"rotate",value:function u(t){return arguments.length?(this._rotate=typeof t==="function"?t:P.constant(t),this):this._rotate}},{key:"rotateAnchor",value:function u(t){return arguments.length?(this._rotateAnchor=typeof t==="function"?t:P.constant(t),this):this._rotateAnchor}},{key:"select",value:function u(t){return arguments.length?(this._select=s.select(t),this):this._select}},{key:"split",value:function u(t){return arguments.length?(this._split=t,this):this._split}},{key:"text",value:function u(t){return arguments.length?(this._text=typeof t==="function"?t:P.constant(t),this):this._text}},{key:"textAnchor",value:function u(t){return arguments.length?(this._textAnchor=typeof t==="function"?t:P.constant(t),this):this._textAnchor}},{key:"verticalAlign",value:function u(t){return arguments.length?(this._verticalAlign=typeof t==="function"?t:P.constant(t),this):this._verticalAlign}},{key:"width",value:function u(t){return arguments.length?(this._width=typeof t==="function"?t:P.constant(t),this):this._width}},{key:"x",value:function u(t){return arguments.length?(this._x=typeof t==="function"?t:P.constant(t),this):this._x}},{key:"y",value:function u(t){return arguments.length?(this._y=typeof t==="function"?t:P.constant(t),this):this._y}}]);return t}(P.BaseClass);var Y=["a","an","and","as","at","but","by","for","from","if","in","into","near","nor","of","on","onto","or","per","that","the","to","with","via","vs","vs."];var J=["CEO","CFO","CNC","COO","CPU","GDP","HVAC","ID","IT","R&D","TV","UI"];function K(e){if(e===void 0)return"";var i=Y.map(function(u){return u.toLowerCase()});var a=J.slice();a=a.concat(a.map(function(u){return"".concat(u,"s")}));var o=a.map(function(u){return u.toLowerCase()});var f=q(e);return f.map(function(u,t){if(u){var n=u.toLowerCase();var e=S.includes(n.charAt(n.length-1))?n.slice(0,-1):n;var r=o.indexOf(e);if(r>=0)return a[r];else if(i.includes(e)&&t!==0&&t!==f.length-1)return n;else return u.charAt(0).toUpperCase()+u.substr(1).toLowerCase()}else return""}).reduce(function(u,t,n){if(n&&e.charAt(u.length)===" ")u+=" ";u+=t;return u},"")}u.TextBox=U;u.fontExists=W;u.rtl=v;u.stringify=y;u.strip=C;u.textSplit=q;u.textWidth=T;u.textWrap=G;u.titleCase=K;u.trim=L;u.trimLeft=t;u.trimRight=g;Object.defineProperty(u,"__esModule",{value:true})});

@@ -6,5 +6,5 @@ /**

function htmlDecode(input) {
if (input === " ") return input;
if (input.replace(/\s+/g, "") === "") return input;
var doc = new DOMParser().parseFromString(input.replace(/<[^>]+>/g, ""), "text/html");
return doc.documentElement.textContent;
return doc.documentElement ? doc.documentElement.textContent : input;
}

@@ -11,0 +11,0 @@ /**

{
"name": "d3plus-text",
"version": "0.9.48",
"version": "0.9.49",
"description": "A smart SVG text box with line wrapping and automatic font size scaling.",

@@ -29,3 +29,3 @@ "main": "build/d3plus-text.js",

"d3-transition": "^1.2.0",
"d3plus-common": "^0.6.51"
"d3plus-common": "^0.6.55"
},

@@ -42,3 +42,3 @@ "scripts": {

"devDependencies": {
"d3plus-dev": "^0.7.2"
"d3plus-dev": "^0.7.4"
},

@@ -45,0 +45,0 @@ "module": "es/index",

@@ -643,2 +643,2 @@ # d3plus-text

###### <sub>Documentation generated on Tue, 30 Jul 2019 14:55:13 GMT</sub>
###### <sub>Documentation generated on Tue, 20 Aug 2019 19:56:09 GMT</sub>

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc