presenter 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,313 @@
1
+ /*! https://mths.be/cssesc v3.0.0 by @mathias */
2
+
3
+ /**
4
+ * @license
5
+ Copyright (c) 2008, Adobe Systems Incorporated
6
+ All rights reserved.
7
+
8
+ Redistribution and use in source and binary forms, with or without
9
+ modification, are permitted provided that the following conditions are
10
+ met:
11
+
12
+ * Redistributions of source code must retain the above copyright notice,
13
+ this list of conditions and the following disclaimer.
14
+
15
+ * Redistributions in binary form must reproduce the above copyright
16
+ notice, this list of conditions and the following disclaimer in the
17
+ documentation and/or other materials provided with the distribution.
18
+
19
+ * Neither the name of Adobe Systems Incorporated nor the names of its
20
+ contributors may be used to endorse or promote products derived from
21
+ this software without specific prior written permission.
22
+
23
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
24
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
25
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
26
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
27
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
31
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+ */
35
+
36
+ /**
37
+ * @license
38
+ *
39
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
40
+ *
41
+ * Permission is hereby granted, free of charge, to any person obtaining
42
+ * a copy of this software and associated documentation files (the
43
+ * "Software"), to deal in the Software without restriction, including
44
+ * without limitation the rights to use, copy, modify, merge, publish,
45
+ * distribute, sublicense, and/or sell copies of the Software, and to
46
+ * permit persons to whom the Software is furnished to do so, subject to
47
+ * the following conditions:
48
+ *
49
+ * The above copyright notice and this permission notice shall be
50
+ * included in all copies or substantial portions of the Software.
51
+ *
52
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
53
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
54
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
55
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
56
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
57
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
58
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
59
+ * ====================================================================
60
+ */
61
+
62
+ /**
63
+ * @license
64
+ *
65
+ * Licensed under the MIT License.
66
+ * http://opensource.org/licenses/mit-license
67
+ */
68
+
69
+ /**
70
+ * @license
71
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
72
+ *
73
+ * https://github.com/deanm/omggif
74
+ *
75
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
76
+ * of this software and associated documentation files (the "Software"), to
77
+ * deal in the Software without restriction, including without limitation the
78
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
79
+ * sell copies of the Software, and to permit persons to whom the Software is
80
+ * furnished to do so, subject to the following conditions:
81
+ *
82
+ * The above copyright notice and this permission notice shall be included in
83
+ * all copies or substantial portions of the Software.
84
+ *
85
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
86
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
87
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
88
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
89
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
90
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
91
+ * IN THE SOFTWARE.
92
+ *
93
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
94
+ * including animation and compression. It does not rely on any specific
95
+ * underlying system, so should run in the browser, Node, or Plask.
96
+ */
97
+
98
+ /**
99
+ * @license
100
+ * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
101
+ *
102
+ * Licensed under the MIT License.
103
+ * http://opensource.org/licenses/mit-license
104
+ */
105
+
106
+ /**
107
+ * @license
108
+ * Copyright (c) 2017 Aras Abbasi
109
+ *
110
+ * Licensed under the MIT License.
111
+ * http://opensource.org/licenses/mit-license
112
+ */
113
+
114
+ /**
115
+ * @license
116
+ * Copyright (c) 2018 Aras Abbasi
117
+ *
118
+ * Licensed under the MIT License.
119
+ * http://opensource.org/licenses/mit-license
120
+ */
121
+
122
+ /**
123
+ * @license
124
+ * Copyright (c) 2019 Aras Abbasi
125
+ *
126
+ * Licensed under the MIT License.
127
+ * http://opensource.org/licenses/mit-license
128
+ */
129
+
130
+ /**
131
+ * @license
132
+ * FPDF is released under a permissive license: there is no usage restriction.
133
+ * You may embed it freely in your application (commercial or not), with or
134
+ * without modifications.
135
+ *
136
+ * Reference: http://www.fpdf.org/en/script/script37.php
137
+ */
138
+
139
+ /**
140
+ * @license
141
+ * Joseph Myers does not specify a particular license for his work.
142
+ *
143
+ * Author: Joseph Myers
144
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
145
+ *
146
+ * Modified by: Owen Leong
147
+ */
148
+
149
+ /**
150
+ * @license
151
+ * Licensed under the MIT License.
152
+ * http://opensource.org/licenses/mit-license
153
+ * Author: Owen Leong (@owenl131)
154
+ * Date: 15 Oct 2020
155
+ * References:
156
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
157
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
158
+ * http://www.fpdf.org/en/script/script37.php
159
+ */
160
+
161
+ /**
162
+ * @license
163
+ * Licensed under the MIT License.
164
+ * http://opensource.org/licenses/mit-license
165
+ */
166
+
167
+ /**
168
+ * @license
169
+ * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
170
+ * MIT License
171
+ */
172
+
173
+ /**
174
+ * @license
175
+ * jsPDF fileloading PlugIn
176
+ * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
177
+ *
178
+ * Licensed under the MIT License.
179
+ * http://opensource.org/licenses/mit-license
180
+ */
181
+
182
+ /**
183
+ * @license
184
+ * jsPDF filters PlugIn
185
+ * Copyright (c) 2014 Aras Abbasi
186
+ *
187
+ * Licensed under the MIT License.
188
+ * http://opensource.org/licenses/mit-license
189
+ */
190
+
191
+ /**
192
+ * @license
193
+ * jsPDF virtual FileSystem functionality
194
+ *
195
+ * Licensed under the MIT License.
196
+ * http://opensource.org/licenses/mit-license
197
+ */
198
+
199
+ /**
200
+ * A class to parse color values
201
+ * @author Stoyan Stefanov <sstoo@gmail.com>
202
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
203
+ * @license Use it if you like it
204
+ */
205
+
206
+ /** ====================================================================
207
+ * @license
208
+ * jsPDF XMP metadata plugin
209
+ * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
210
+ *
211
+ * Permission is hereby granted, free of charge, to any person obtaining
212
+ * a copy of this software and associated documentation files (the
213
+ * "Software"), to deal in the Software without restriction, including
214
+ * without limitation the rights to use, copy, modify, merge, publish,
215
+ * distribute, sublicense, and/or sell copies of the Software, and to
216
+ * permit persons to whom the Software is furnished to do so, subject to
217
+ * the following conditions:
218
+ *
219
+ * The above copyright notice and this permission notice shall be
220
+ * included in all copies or substantial portions of the Software.
221
+ *
222
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
223
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
224
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
225
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
226
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
227
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
228
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
229
+ * ====================================================================
230
+ */
231
+
232
+ /** @license
233
+ * Copyright (c) 2017 Dominik Homberger
234
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
235
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
236
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
237
+ https://webpjs.appspot.com
238
+ WebPRiffParser dominikhlbg@gmail.com
239
+ */
240
+
241
+ /** @license
242
+ *
243
+ * jsPDF - PDF Document creation from JavaScript
244
+ * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
245
+ * CommitID 00000000
246
+ *
247
+ * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
248
+ * 2015-2021 yWorks GmbH, http://www.yworks.com
249
+ * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
250
+ * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
251
+ * 2010 Aaron Spike, https://github.com/acspike
252
+ * 2012 Willow Systems Corporation, https://github.com/willowsystems
253
+ * 2012 Pablo Hess, https://github.com/pablohess
254
+ * 2012 Florian Jenett, https://github.com/fjenett
255
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
256
+ * 2013 Youssef Beddad, https://github.com/lifof
257
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
258
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
259
+ * 2013 Jeremy Morel, https://github.com/jmorel
260
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
261
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
262
+ * 2014 James Makes, https://github.com/dollaruw
263
+ * 2014 Diego Casorran, https://github.com/diegocr
264
+ * 2014 Steven Spungin, https://github.com/Flamenco
265
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
266
+ *
267
+ * Permission is hereby granted, free of charge, to any person obtaining
268
+ * a copy of this software and associated documentation files (the
269
+ * "Software"), to deal in the Software without restriction, including
270
+ * without limitation the rights to use, copy, modify, merge, publish,
271
+ * distribute, sublicense, and/or sell copies of the Software, and to
272
+ * permit persons to whom the Software is furnished to do so, subject to
273
+ * the following conditions:
274
+ *
275
+ * The above copyright notice and this permission notice shall be
276
+ * included in all copies or substantial portions of the Software.
277
+ *
278
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
279
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
280
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
281
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
282
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
283
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
284
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
285
+ *
286
+ * Contributor(s):
287
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
288
+ * kim3er, mfo, alnorth, Flamenco
289
+ */
290
+
291
+ /** @license
292
+ * Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
293
+ *
294
+ * Permission is hereby granted, free of charge, to any person obtaining
295
+ * a copy of this software and associated documentation files (the
296
+ * "Software"), to deal in the Software without restriction, including
297
+ * without limitation the rights to use, copy, modify, merge, publish,
298
+ * distribute, sublicense, and/or sell copies of the Software, and to
299
+ * permit persons to whom the Software is furnished to do so, subject to
300
+ * the following conditions:
301
+ *
302
+ * The above copyright notice and this permission notice shall be
303
+ * included in all copies or substantial portions of the Software.
304
+ *
305
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
306
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
307
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
308
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
309
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
310
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
311
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
312
+ * ====================================================================
313
+ */
@@ -1 +1 @@
1
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.PresenterMorph=n():t.PresenterMorph=n()}(this,(()=>(()=>{var t={814:function(t,n){!function(t){"use strict";function n(t){return 10===t||13===t||8232===t||8233===t||32===t||9===t||11===t||12===t||160===t||t>=5760&&At.indexOf(t)>=0}function e(t){return t>=48&&t<=57}function r(t){return t>=48&&t<=57||43===t||45===t||46===t}function i(t){this.index=0,this.path=t,this.max=t.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function a(t){for(;t.index<t.max&&n(t.path.charCodeAt(t.index));)t.index++}function o(t){var n,r=t.index,i=r,a=t.max,o=!1,s=!1,u=!1,h=!1;if(i>=a)t.err="SvgPath: missed param (at pos "+i+")";else if(43!==(n=t.path.charCodeAt(i))&&45!==n||(n=++i<a?t.path.charCodeAt(i):0),e(n)||46===n){if(46!==n){if(o=48===n,n=++i<a?t.path.charCodeAt(i):0,o&&i<a&&n&&e(n))return void(t.err="SvgPath: numbers started with `0` such as `09` are ilegal (at pos "+r+")");for(;i<a&&e(t.path.charCodeAt(i));)i++,s=!0;n=i<a?t.path.charCodeAt(i):0}if(46===n){for(h=!0,i++;e(t.path.charCodeAt(i));)i++,u=!0;n=i<a?t.path.charCodeAt(i):0}if(101===n||69===n){if(h&&!s&&!u)return void(t.err="SvgPath: invalid float exponent (at pos "+i+")");if(43!==(n=++i<a?t.path.charCodeAt(i):0)&&45!==n||i++,!(i<a&&e(t.path.charCodeAt(i))))return void(t.err="SvgPath: invalid float exponent (at pos "+i+")");for(;i<a&&e(t.path.charCodeAt(i));)i++}t.index=i,t.param=parseFloat(t.path.slice(r,i))+0}else t.err="SvgPath: param should start with 0..9 or `.` (at pos "+i+")"}function s(t){var n,e;e=(n=t.path[t.segmentStart]).toLowerCase();var r=t.data;if("m"===e&&r.length>2&&(t.result.push([n,r[0],r[1]]),r=r.slice(2),e="l",n="m"===n?"l":"L"),"r"===e)t.result.push([n].concat(r));else for(;r.length>=Lt[e]&&(t.result.push([n].concat(r.splice(0,Lt[e]))),Lt[e]););}function u(t){var n,e,i,u=t.max;if(t.segmentStart=t.index,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}(t.path.charCodeAt(t.index)))if(e=Lt[t.path[t.index].toLowerCase()],t.index++,a(t),t.data=[],e){for(n=!1;;){for(i=e;i>0;i--){if(o(t),t.err.length)return;t.data.push(t.param),a(t),n=!1,t.index<u&&44===t.path.charCodeAt(t.index)&&(t.index++,a(t),n=!0)}if(!n){if(t.index>=t.max)break;if(!r(t.path.charCodeAt(t.index)))break}}s(t)}else s(t);else t.err="SvgPath: bad command "+t.path[t.index]+" (at pos "+t.index+")"}function h(t,n){return[t[0]*n[0]+t[2]*n[1],t[1]*n[0]+t[3]*n[1],t[0]*n[2]+t[2]*n[3],t[1]*n[2]+t[3]*n[3],t[0]*n[4]+t[2]*n[5]+t[4],t[1]*n[4]+t[3]*n[5]+t[5]]}function c(){if(!(this instanceof c))return new c;this.queue=[],this.cache=null}function f(t,n,e,r){var i=t*r-n*e<0?-1:1,a=(t*e+n*r)/(Math.sqrt(t*t+n*n)*Math.sqrt(t*t+n*n));return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)}function l(t,n,e,r,i,a,o,s,u,h){var c=h*(t-e)/2+u*(n-r)/2,l=-u*(t-e)/2+h*(n-r)/2,p=o*o,g=s*s,v=c*c,x=l*l,y=p*g-p*x-g*v;y<0&&(y=0),y/=p*x+g*v;var d=(y=Math.sqrt(y)*(i===a?-1:1))*o/s*l,m=y*-s/o*c,M=h*d-u*m+(t+e)/2,w=u*d+h*m+(n+r)/2,b=(c-d)/o,L=(l-m)/s,A=(-c-d)/o,P=(-l-m)/s,q=f(1,0,b,L),k=f(b,L,A,P);return 0===a&&k>0&&(k-=Ct),1===a&&k<0&&(k+=Ct),[M,w,q,k]}function p(t,n){var e=4/3*Math.tan(n/4),r=Math.cos(t),i=Math.sin(t),a=Math.cos(t+n),o=Math.sin(t+n);return[r,i,r-i*e,i+r*e,a+o*e,o-a*e,a,o]}function g(t,n,e){if(!(this instanceof g))return new g(t,n,e);this.rx=t,this.ry=n,this.ax=e}function v(t){if(!(this instanceof v))return new v(t);var n=Pt(t);this.segments=n.segments,this.err=n.err,this.__stack=[]}function x(t,n,e,r,i,a,o,s){this.a={x:t,y:n},this.b={x:e,y:r},this.c={x:i,y:a},this.d={x:o,y:s},null!=o&&null!=s?(this.getArcLength=q,this.getPoint=w,this.getDerivative=d):(this.getArcLength=b,this.getPoint=M,this.getDerivative=y),this.init()}function y(t,n,e){return{x:2*(1-e)*(t[1]-t[0])+2*e*(t[2]-t[1]),y:2*(1-e)*(n[1]-n[0])+2*e*(n[2]-n[1])}}function d(t,n,e){return M([3*(t[1]-t[0]),3*(t[2]-t[1]),3*(t[3]-t[2])],[3*(n[1]-n[0]),3*(n[2]-n[1]),3*(n[3]-n[2])],e)}function m(t,n,e,r,i){for(var a=1,o=t/n,s=(t-e(r,i,o))/n;a>.001;){var u=e(r,i,o+s),h=e(r,i,o-s),c=Math.abs(t-u)/n,f=Math.abs(t-h)/n;c<a?(a=c,o+=s):f<a?(a=f,o-=s):s/=2}return o}function M(t,n,e){return{x:(1-e)*(1-e)*t[0]+2*(1-e)*e*t[1]+e*e*t[2],y:(1-e)*(1-e)*n[0]+2*(1-e)*e*n[1]+e*e*n[2]}}function w(t,n,e){return{x:(1-e)*(1-e)*(1-e)*t[0]+3*(1-e)*(1-e)*e*t[1]+3*(1-e)*e*e*t[2]+e*e*e*t[3],y:(1-e)*(1-e)*(1-e)*n[0]+3*(1-e)*(1-e)*e*n[1]+3*(1-e)*e*e*n[2]+e*e*e*n[3]}}function b(t,n,e){void 0===e&&(e=1);var r=t[0]-2*t[1]+t[2],i=n[0]-2*n[1]+n[2],a=2*t[1]-2*t[0],o=2*n[1]-2*n[0],s=4*(r*r+i*i),u=4*(r*a+i*o),h=a*a+o*o;if(0===s)return e*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(n[2]-n[0],2));var c=u/(2*s),f=e+c,l=h/s-c*c;return Math.sqrt(s)/2*(f*Math.sqrt(f*f+l)-c*Math.sqrt(c*c+l)+l*Math.log(Math.abs((f+Math.sqrt(f*f+l))/(c+Math.sqrt(c*c+l)))))}function L(t,n){return Yt[t][n]}function A(t,n,e){var r,i,a,o=e.length-1;if(0===o)return 0;if(0===t){for(i=0,a=0;a<=o;a++)i+=L(o,a)*Math.pow(1-n,o-a)*Math.pow(n,a)*e[a];return i}for(r=new Array(o),a=0;a<o;a++)r[a]=o*(e[a+1]-e[a]);return A(t-1,n,r)}function P(t,n,e){var r=A(1,e,t),i=A(1,e,n),a=r*r+i*i;return Math.sqrt(a)}function q(t,n,e){var r,i,a,o;for(void 0===e&&(e=1),r=e/2,i=0,a=0;a<20;a++)o=r*Vt[20][a]+r,i+=Xt[20][a]*P(t,n,o);return r*i}function k(t,n,e,r){var i=t*e+n*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-n*e<0?-1:1)*Math.acos(i)}function _(t,n){var e=4/3*Math.tan(n/4),r=Math.cos(t),i=Math.sin(t),a=Math.cos(t+n),o=Math.sin(t+n);return[r,i,r-i*e,i+r*e,a+o*e,o-a*e,a,o]}function S(t,n,e,r,i,a,o,s,u){var h=0,c=[],f=[];Dt(t,n,e,r,i,a,o,s,u).forEach((function(t){var n=new It(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),e=n.getTotalLength();h+=e,c.push(e),f.push(n)})),this.length=h,this.partialLengths=c,this.curves=f}function C(t,n,e,r){this.x0=t,this.x1=n,this.y0=e,this.y1=r}function E(t,n){return Math.sqrt((t[0]-n[0])*(t[0]-n[0])+(t[1]-n[1])*(t[1]-n[1]))}function T(t,n,e){return[t[0]+(n[0]-t[0])*e,t[1]+(n[1]-t[1])*e]}function Z(t,n,e){var r=t.map((function(t,e){return function(t,n){return function(e){return t.map((function(t,r){return t+e*(n[r]-t)}))}}(t,n[e])}));return function(t){var n=r.map((function(n){return n(t)}));return e?I(n):n}}function F(t){return"number"==typeof t&&isFinite(t)}function j(t){return function(t){for(var n=0;n<t.length-2;n++){var e=t[n],r=t[n+1],i=t[n+2];if(e[0]*(r[1]-i[1])+r[0]*(i[1]-e[1])+i[0]*(e[1]-r[1]))return!0}return!1}(t)?wt(t):[(t[0][0]+t[t.length-1][0])/2,(t[0][1]+t[t.length-1][1])/2]}function z(t){return new Zt(t).abs()}function O(t){return t.toString().split("M").map((function(t,n){return t=t.trim(),n&&t?"M"+t:t})).filter((function(t){return t}))}function I(t){return"M"+t.join("L")+"Z"}function V(t,n){var e=z(t);return function(t){var n=t.segments||[],e=[];if(!n.length||"M"!==n[0][0])return!1;for(var r=0;r<n.length;r++){var i=n[r],a=i[0],o=i[1],s=i[2];if("M"===a&&r||"Z"===a)break;if("M"===a||"L"===a)e.push([o,s]);else if("H"===a)e.push([o,e[e.length-1][1]]);else{if("V"!==a)return!1;e.push([e[e.length-1][0],o])}}return!!e.length&&{ring:e}}(e)||function(t,n){var e,r,i=O(t)[0],a=[],o=3;if(!i)throw new TypeError(Ut);e=(r=function(t){if("undefined"!=typeof window&&window&&window.document)try{var n=window.document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d",t),n}catch(t){}return Qt(t)}(i)).getTotalLength(),n&&F(n)&&n>0&&(o=Math.max(o,Math.ceil(e/n)));for(var s=0;s<o;s++){var u=r.getPointAtLength(e*s/o);a.push([u.x,u.y])}return{ring:a,skipBisect:!0}}(e,n)}function X(t,n){for(var e=t.length+n,r=bt(t)/n,i=0,a=0,o=r/2;t.length<e;){var s=t[i],u=t[(i+1)%t.length],h=E(s,u);o<=a+h?(t.splice(i+1,0,h?T(s,u,(o-a)/h):s.slice(0)),o+=r):(a+=h,i++)}}function Y(t,n){var e,r;if("string"==typeof t){var i=V(t,n);t=i.ring,r=i.skipBisect}else if(!Array.isArray(t))throw new TypeError(Ut);if(!function(t){return t.every((function(t){return Array.isArray(t)&&t.length>=2&&F(t[0])&&F(t[1])}))}(e=t.slice(0)))throw new TypeError(Ut);return e.length>1&&function(t,n){return E(t,n)<1e-9}(e[0],e[e.length-1])&&e.pop(),Mt(e)>0&&e.reverse(),!r&&n&&F(n)&&n>0&&function(t,n){void 0===n&&(n=1/0);for(var e=0;e<t.length;e++)for(var r=t[e],i=e===t.length-1?t[0]:t[e+1];E(r,i)>n;)i=T(r,i,.5),t.splice(e+1,0,i)}(e,n),e}function G(t,n,e){var r;return X(t,(r=t.length-n.length)<0?-1*r:0),X(n,r>0?r:0),Bt(t,n),Z(t,n,e)}function D(t,n,e){e=e||2;var r,i,a,o,s,u,h,c=n&&n.length,f=c?n[0]*e:t.length,l=H(t,0,f,e,!0),p=[];if(!l)return p;if(c&&(l=function(t,n,e,r){var i,a,o,s=[];for(i=0,a=n.length;i<a;i++)(o=H(t,n[i]*r,i<a-1?n[i+1]*r:t.length,r,!1))===o.next&&(o.steiner=!0),s.push(tt(o));for(s.sort($),i=0;i<s.length;i++)J(s[i],e),e=N(e,e.next);return e}(t,n,l,e)),t.length>80*e){r=a=t[0],i=o=t[1];for(var g=e;g<f;g+=e)(s=t[g])<r&&(r=s),(u=t[g+1])<i&&(i=u),s>a&&(a=s),u>o&&(o=u);h=Math.max(a-r,o-i)}return Q(l,p,e,r,i,h),p}function H(t,n,e,r,i){var a,o;if(i===ft(t,n,e,r)>0)for(a=n;a<e;a+=r)o=ut(a,t[a],t[a+1],o);else for(a=e-r;a>=n;a-=r)o=ut(a,t[a],t[a+1],o);return o&&it(o,o.next)&&(ht(o),o=o.next),o}function N(t,n){if(!t)return t;n||(n=t);var e,r=t;do{if(e=!1,r.steiner||!it(r,r.next)&&0!==rt(r.prev,r,r.next))r=r.next;else{if(ht(r),(r=n=r.prev)===r.next)return null;e=!0}}while(e||r!==n);return n}function Q(t,n,e,r,i,a,o){if(t){!o&&a&&function(t,n,e,r){var i=t;do{null===i.z&&(i.z=K(i.x,i.y,n,e,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var n,e,r,i,a,o,s,u,h=1;do{for(e=t,t=null,a=null,o=0;e;){for(o++,r=e,s=0,n=0;n<h&&(s++,r=r.nextZ);n++);for(u=h;s>0||u>0&&r;)0===s?(i=r,r=r.nextZ,u--):0!==u&&r?e.z<=r.z?(i=e,e=e.nextZ,s--):(i=r,r=r.nextZ,u--):(i=e,e=e.nextZ,s--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;e=r}a.nextZ=null,h*=2}while(o>1)}(i)}(t,r,i,a);for(var s,u,h=t;t.prev!==t.next;)if(s=t.prev,u=t.next,a?R(t,r,i,a):U(t))n.push(s.i/e),n.push(t.i/e),n.push(u.i/e),ht(t),t=u.next,h=u.next;else if((t=u)===h){o?1===o?Q(t=B(t,n,e),n,e,r,i,a,2):2===o&&W(t,n,e,r,i,a):Q(N(t),n,e,r,i,a,1);break}}}function U(t){var n=t.prev,e=t,r=t.next;if(rt(n,e,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(nt(n.x,n.y,e.x,e.y,r.x,r.y,i.x,i.y)&&rt(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function R(t,n,e,r){var i=t.prev,a=t,o=t.next;if(rt(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,u=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,h=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=K(s,u,n,e,r),l=K(h,c,n,e,r),p=t.nextZ;p&&p.z<=l;){if(p!==t.prev&&p!==t.next&&nt(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&rt(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=f;){if(p!==t.prev&&p!==t.next&&nt(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&rt(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function B(t,n,e){var r=t;do{var i=r.prev,a=r.next.next;!it(i,a)&&at(i,r,r.next,a)&&ot(i,a)&&ot(a,i)&&(n.push(i.i/e),n.push(r.i/e),n.push(a.i/e),ht(r),ht(r.next),r=t=a),r=r.next}while(r!==t);return r}function W(t,n,e,r,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&et(o,s)){var u=st(o,s);return o=N(o,o.next),u=N(u,u.next),Q(o,n,e,r,i,a),void Q(u,n,e,r,i,a)}s=s.next}o=o.next}while(o!==t)}function $(t,n){return t.x-n.x}function J(t,n){if(n=function(t,n){var e,r=n,i=t.x,a=t.y,o=-1/0;do{if(a<=r.y&&a>=r.next.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>o){if(o=s,s===i){if(a===r.y)return r;if(a===r.next.y)return r.next}e=r.x<r.next.x?r:r.next}}r=r.next}while(r!==n);if(!e)return null;if(i===o)return e.prev;var u,h=e,c=e.x,f=e.y,l=1/0;for(r=e.next;r!==h;)i>=r.x&&r.x>=c&&nt(a<f?i:o,a,c,f,a<f?o:i,a,r.x,r.y)&&((u=Math.abs(a-r.y)/(i-r.x))<l||u===l&&r.x>e.x)&&ot(r,t)&&(e=r,l=u),r=r.next;return e}(t,n)){var e=st(n,t);N(e,e.next)}}function K(t,n,e,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-e)/i)|t<<8))|t<<4))|t<<2))|t<<1))|(n=1431655765&((n=858993459&((n=252645135&((n=16711935&((n=32767*(n-r)/i)|n<<8))|n<<4))|n<<2))|n<<1))<<1}function tt(t){var n=t,e=t;do{n.x<e.x&&(e=n),n=n.next}while(n!==t);return e}function nt(t,n,e,r,i,a,o,s){return(i-o)*(n-s)-(t-o)*(a-s)>=0&&(t-o)*(r-s)-(e-o)*(n-s)>=0&&(e-o)*(a-s)-(i-o)*(r-s)>=0}function et(t,n){return t.next.i!==n.i&&t.prev.i!==n.i&&!function(t,n){var e=t;do{if(e.i!==t.i&&e.next.i!==t.i&&e.i!==n.i&&e.next.i!==n.i&&at(e,e.next,t,n))return!0;e=e.next}while(e!==t);return!1}(t,n)&&ot(t,n)&&ot(n,t)&&function(t,n){var e=t,r=!1,i=(t.x+n.x)/2,a=(t.y+n.y)/2;do{e.y>a!=e.next.y>a&&i<(e.next.x-e.x)*(a-e.y)/(e.next.y-e.y)+e.x&&(r=!r),e=e.next}while(e!==t);return r}(t,n)}function rt(t,n,e){return(n.y-t.y)*(e.x-n.x)-(n.x-t.x)*(e.y-n.y)}function it(t,n){return t.x===n.x&&t.y===n.y}function at(t,n,e,r){return!!(it(t,n)&&it(e,r)||it(t,r)&&it(e,n))||rt(t,n,e)>0!=rt(t,n,r)>0&&rt(e,r,t)>0!=rt(e,r,n)>0}function ot(t,n){return rt(t.prev,t,t.next)<0?rt(t,n,t.next)>=0&&rt(t,t.prev,n)>=0:rt(t,n,t.prev)<0||rt(t,t.next,n)<0}function st(t,n){var e=new ct(t.i,t.x,t.y),r=new ct(n.i,n.x,n.y),i=t.next,a=n.prev;return t.next=n,n.prev=t,e.next=i,i.prev=e,r.next=e,e.prev=r,a.next=r,r.prev=a,r}function ut(t,n,e,r){var i=new ct(t,n,e);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function ht(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function ct(t,n,e){this.i=t,this.x=n,this.y=e,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ft(t,n,e,r){for(var i=0,a=n,o=e-r;a<e;a+=r)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function lt(t,n){var e=n.id,r=n.bbox,i=null==n.properties?{}:n.properties,a=pt(t,n);return null==e&&null==r?{type:"Feature",properties:i,geometry:a}:null==r?{type:"Feature",id:e,properties:i,geometry:a}:{type:"Feature",id:e,bbox:r,properties:i,geometry:a}}function pt(t,n){function e(t,n){n.length&&n.pop();for(var e=u[t<0?~t:t],r=0,i=e.length;r<i;++r)n.push(s(e[r],r));t<0&&Kt(n,i)}function r(t){return s(t)}function i(t){for(var n=[],r=0,i=t.length;r<i;++r)e(t[r],n);return n.length<2&&n.push(n[0]),n}function a(t){for(var n=i(t);n.length<4;)n.push(n[0]);return n}function o(t){return t.map(a)}var s=Jt(t.transform),u=t.arcs;return function t(n){var e,a=n.type;switch(a){case"GeometryCollection":return{type:a,geometries:n.geometries.map(t)};case"Point":e=r(n.coordinates);break;case"MultiPoint":e=n.coordinates.map(r);break;case"LineString":e=i(n.arcs);break;case"MultiLineString":e=n.arcs.map(i);break;case"Polygon":e=o(n.arcs);break;case"MultiPolygon":e=n.arcs.map(o);break;default:return null}return{type:a,coordinates:e}}(n)}function gt(t,n){function e(t){t.forEach((function(n){n.forEach((function(n){(i[n=n<0?~n:n]||(i[n]=[])).push(t)}))})),a.push(t)}function r(n){return function(t){for(var n,e=-1,r=t.length,i=t[r-1],a=0;++e<r;)n=i,i=t[e],a+=n[0]*i[1]-n[1]*i[0];return Math.abs(a)}(pt(t,{type:"Polygon",arcs:[n]}).coordinates[0])}var i={},a=[],o=[];return n.forEach((function t(n){switch(n.type){case"GeometryCollection":n.geometries.forEach(t);break;case"Polygon":e(n.arcs);break;case"MultiPolygon":n.arcs.forEach(e)}})),a.forEach((function(t){if(!t._){var n=[],e=[t];for(t._=1,o.push(n);t=e.pop();)n.push(t),t.forEach((function(t){t.forEach((function(t){i[t<0?~t:t].forEach((function(t){t._||(t._=1,e.push(t))}))}))}))}})),a.forEach((function(t){delete t._})),{type:"MultiPolygon",arcs:o.map((function(n){var e,a=[];if(n.forEach((function(t){t.forEach((function(t){t.forEach((function(t){i[t<0?~t:t].length<2&&a.push(t)}))}))})),(e=(a=nn(t,a)).length)>1)for(var o,s,u=1,h=r(a[0]);u<e;++u)(o=r(a[u]))>h&&(s=a[0],a[0]=a[u],a[u]=s,h=o);return a}))}}function vt(t,n,e){void 0===e&&(e={});var r=e.maxSegmentLength;void 0===r&&(r=10);var i=e.string;void 0===i&&(i=!0);var a=e.single;void 0===a&&(a=!1);var o=Y(t,r);o.length<n.length+2&&X(o,n.length+2-o.length);var s,u=sn(o,n.length),h=n.map((function(t){return Y(t,r)})),c="string"==typeof t&&t;return a&&!n.every((function(t){return"string"==typeof t}))||(s=n.slice(0)),xt(u,h,{match:!0,string:i,single:a,t0:c,t1:s})}function xt(t,n,e){void 0===e&&(e={});var r=e.string,i=e.single,a=e.t0,o=e.t1,s=e.match,u=s?un(t,n):t.map((function(t,n){return n})),h=u.map((function(e,i){return G(t[e],n[i],r)}));if(s&&Array.isArray(a)&&(a=u.map((function(t){return a[t]}))),i&&r&&(Array.isArray(a)&&(a=a.join(" ")),Array.isArray(o)&&(o=o.join(" "))),i){var c=r?function(t){return h.map((function(n){return n(t)})).join(" ")}:function(t){return h.map((function(n){return n(t)}))};return r&&(a||o)?function(t){return t<1e-4&&a||1-t<1e-4&&o||c(t)}:c}return r?(a=Array.isArray(a)?a.map((function(t){return"string"==typeof t&&t})):[],o=Array.isArray(o)?o.map((function(t){return"string"==typeof t&&t})):[],h.map((function(t,n){return a[n]||o[n]?function(e){return e<1e-4&&a[n]||1-e<1e-4&&o[n]||t(e)}:t}))):h}function yt(t,n,e,r,i){return mt(function(t,n,e){return function(r){var i=j(r),a=bt(r.concat([r[0]])),o=Math.atan2(r[0][1]-i[1],r[0][0]-i[0]),s=0;return r.map((function(i,u){var h;return u&&(s+=E(i,r[u-1])),h=o+2*Math.PI*(a?s/a:u/r.length),[Math.cos(h)*e+t,Math.sin(h)*e+n]}))}}(t,n,e),r,function(t,n,e){var r=t-e+","+n,i="A"+e+","+e+",0,1,1,";return"M"+r+i+(t+e)+","+n+i+r+"Z"}(t,n,e),2*Math.PI*e,i)}function dt(t,n,e,r,i,a){return mt(function(t,n,e,r){return function(i){var a=j(i),o=bt(i.concat([i[0]])),s=Math.atan2(i[0][1]-a[1],i[0][0]-a[0]),u=0;s<0&&(s=2*Math.PI+s);var h=s/(2*Math.PI);return i.map((function(a,s){s&&(u+=E(a,i[s-1]));var c=function(t){return t<=1/8?[1,.5+4*t]:t<=3/8?[1.5-4*t,1]:t<=5/8?[0,2.5-4*t]:t<=7/8?[4*t-2.5,0]:[1,4*t-3.5]}((h+(o?u/o:s/i.length))%1);return[t+c[0]*e,n+c[1]*r]}))}}(t,n,e,r),i,function(t,n,e,r){var i=t+e,a=n+r;return"M"+t+","+n+"L"+i+","+n+"L"+i+","+a+"L"+t+","+a+"Z"}(t,n,e,r),2*e+2*r,a)}function mt(t,n,e,r,i){void 0===i&&(i={});var a=i.maxSegmentLength;void 0===a&&(a=10);var o=i.string;void 0===o&&(o=!0);var s,u,h=Y(n,a);return F(r)&&h.length<r/a&&X(h,Math.ceil(r/a-h.length)),s=t(h),u=Z(s,h,o),o?function(t){return t<1e-4?e:u(t)}:u}var Mt=function(t){for(var n,e=-1,r=t.length,i=t[r-1],a=0;++e<r;)n=i,i=t[e],a+=n[1]*i[0]-n[0]*i[1];return a/2},wt=function(t){for(var n,e,r=-1,i=t.length,a=0,o=0,s=t[i-1],u=0;++r<i;)n=s,s=t[r],u+=e=n[0]*s[1]-s[0]*n[1],a+=(n[0]+s[0])*e,o+=(n[1]+s[1])*e;return[a/(u*=3),o/u]},bt=function(t){for(var n,e,r=-1,i=t.length,a=t[i-1],o=a[0],s=a[1],u=0;++r<i;)n=o,e=s,n-=o=(a=t[r])[0],e-=s=a[1],u+=Math.sqrt(n*n+e*e);return u},Lt={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},At=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Pt=function(t){var n=new i(t),e=n.max;for(a(n);n.index<e&&!n.err.length;)u(n);return n.err.length?n.result=[]:n.result.length&&("mM".indexOf(n.result[0][0])<0?(n.err="SvgPath: string should start with `M` or `m`",n.result=[]):n.result[0][0]="M"),{err:n.err,segments:n.result}};c.prototype.matrix=function(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]||(this.cache=null,this.queue.push(t)),this},c.prototype.translate=function(t,n){return 0===t&&0===n||(this.cache=null,this.queue.push([1,0,0,1,t,n])),this},c.prototype.scale=function(t,n){return 1===t&&1===n||(this.cache=null,this.queue.push([t,0,0,n,0,0])),this},c.prototype.rotate=function(t,n,e){var r,i,a;return 0!==t&&(this.translate(n,e),r=t*Math.PI/180,i=Math.cos(r),a=Math.sin(r),this.queue.push([i,a,-a,i,0,0]),this.cache=null,this.translate(-n,-e)),this},c.prototype.skewX=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,0,Math.tan(t*Math.PI/180),1,0,0])),this},c.prototype.skewY=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,Math.tan(t*Math.PI/180),0,1,0,0])),this},c.prototype.toArray=function(){var t=this;if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],1===this.queue.length)return this.cache;for(var n=1;n<this.queue.length;n++)t.cache=h(t.cache,t.queue[n]);return this.cache},c.prototype.calc=function(t,n,e){var r;return this.queue.length?(this.cache||(this.cache=this.toArray()),[t*(r=this.cache)[0]+n*r[2]+(e?0:r[4]),t*r[1]+n*r[3]+(e?0:r[5])]):[t,n]};var qt=c,kt={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},_t=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,St=/[\s,]+/,Ct=2*Math.PI,Et=Math.PI/180;g.prototype.transform=function(t){var n=Math.cos(this.ax*Et),e=Math.sin(this.ax*Et),r=[this.rx*(t[0]*n+t[2]*e),this.rx*(t[1]*n+t[3]*e),this.ry*(-t[0]*e+t[2]*n),this.ry*(-t[1]*e+t[3]*n)],i=r[0]*r[0]+r[2]*r[2],a=r[1]*r[1]+r[3]*r[3],o=((r[0]-r[3])*(r[0]-r[3])+(r[2]+r[1])*(r[2]+r[1]))*((r[0]+r[3])*(r[0]+r[3])+(r[2]-r[1])*(r[2]-r[1])),s=(i+a)/2;if(o<1e-10*s)return this.rx=this.ry=Math.sqrt(s),this.ax=0,this;var u=r[0]*r[1]+r[2]*r[3],h=s+(o=Math.sqrt(o))/2,c=s-o/2;return this.ax=Math.abs(u)<1e-10&&Math.abs(h-a)<1e-10?90:180*Math.atan(Math.abs(u)>Math.abs(h-a)?(h-i)/u:u/(h-a))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(h),this.ry=Math.sqrt(c)):(this.ax+=90,this.rx=Math.sqrt(c),this.ry=Math.sqrt(h)),this},g.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx};var Tt=g;v.prototype.__matrix=function(t){var n,e=this;t.queue.length&&this.iterate((function(r,i,a,o){var s,u,h,c;switch(r[0]){case"v":u=0===(s=t.calc(0,r[1],!0))[0]?["v",s[1]]:["l",s[0],s[1]];break;case"V":u=(s=t.calc(a,r[1],!1))[0]===t.calc(a,o,!1)[0]?["V",s[1]]:["L",s[0],s[1]];break;case"h":u=0===(s=t.calc(r[1],0,!0))[1]?["h",s[0]]:["l",s[0],s[1]];break;case"H":u=(s=t.calc(r[1],o,!1))[1]===t.calc(a,o,!1)[1]?["H",s[0]]:["L",s[0],s[1]];break;case"a":case"A":var f=t.toArray(),l=Tt(r[1],r[2],r[3]).transform(f);if(f[0]*f[3]-f[1]*f[2]<0&&(r[5]=r[5]?"0":"1"),s=t.calc(r[6],r[7],"a"===r[0]),"A"===r[0]&&r[6]===a&&r[7]===o||"a"===r[0]&&0===r[6]&&0===r[7]){u=["a"===r[0]?"l":"L",s[0],s[1]];break}u=l.isDegenerate()?["a"===r[0]?"l":"L",s[0],s[1]]:[r[0],l.rx,l.ry,l.ax,r[4],r[5],s[0],s[1]];break;case"m":c=i>0,u=["m",(s=t.calc(r[1],r[2],c))[0],s[1]];break;default:for(u=[h=r[0]],c=h.toLowerCase()===h,n=1;n<r.length;n+=2)s=t.calc(r[n],r[n+1],c),u.push(s[0],s[1])}e.segments[i]=u}),!0)},v.prototype.__evaluateStack=function(){var t,n;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(t=qt(),n=this.__stack.length;--n>=0;)t.matrix(this.__stack[n].toArray());this.__matrix(t),this.__stack=[]}},v.prototype.toString=function(){var t,n,e=this,r=[];this.__evaluateStack();for(var i=0;i<this.segments.length;i++)n=e.segments[i][0],t=i>0&&"m"!==n&&"M"!==n&&n===e.segments[i-1][0],r=r.concat(t?e.segments[i].slice(1):e.segments[i]);return r.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},v.prototype.translate=function(t,n){return this.__stack.push(qt().translate(t,n||0)),this},v.prototype.scale=function(t,n){return this.__stack.push(qt().scale(t,n||0===n?n:t)),this},v.prototype.rotate=function(t,n,e){return this.__stack.push(qt().rotate(t,n||0,e||0)),this},v.prototype.skewX=function(t){return this.__stack.push(qt().skewX(t)),this},v.prototype.skewY=function(t){return this.__stack.push(qt().skewY(t)),this},v.prototype.matrix=function(t){return this.__stack.push(qt().matrix(t)),this},v.prototype.transform=function(t){return t.trim()?(this.__stack.push(function(t){var n,e,r=new qt;return t.split(_t).forEach((function(t){if(t.length){if(void 0!==kt[t])return void(n=t);switch(e=t.split(St).map((function(t){return+t||0})),n){case"matrix":return void(6===e.length&&r.matrix(e));case"scale":return void(1===e.length?r.scale(e[0],e[0]):2===e.length&&r.scale(e[0],e[1]));case"rotate":return void(1===e.length?r.rotate(e[0],0,0):3===e.length&&r.rotate(e[0],e[1],e[2]));case"translate":return void(1===e.length?r.translate(e[0],0):2===e.length&&r.translate(e[0],e[1]));case"skewX":return void(1===e.length&&r.skewX(e[0]));case"skewY":return void(1===e.length&&r.skewY(e[0]))}}})),r}(t)),this):this},v.prototype.round=function(t){var n,e=0,r=0,i=0,a=0;return t=t||0,this.__evaluateStack(),this.segments.forEach((function(o){var s=o[0].toLowerCase()===o[0];switch(o[0]){case"H":case"h":return s&&(o[1]+=i),i=o[1]-o[1].toFixed(t),void(o[1]=+o[1].toFixed(t));case"V":case"v":return s&&(o[1]+=a),a=o[1]-o[1].toFixed(t),void(o[1]=+o[1].toFixed(t));case"Z":case"z":return i=e,void(a=r);case"M":case"m":return s&&(o[1]+=i,o[2]+=a),i=o[1]-o[1].toFixed(t),a=o[2]-o[2].toFixed(t),e=i,r=a,o[1]=+o[1].toFixed(t),void(o[2]=+o[2].toFixed(t));case"A":case"a":return s&&(o[6]+=i,o[7]+=a),i=o[6]-o[6].toFixed(t),a=o[7]-o[7].toFixed(t),o[1]=+o[1].toFixed(t),o[2]=+o[2].toFixed(t),o[3]=+o[3].toFixed(t+2),o[6]=+o[6].toFixed(t),void(o[7]=+o[7].toFixed(t));default:return n=o.length,s&&(o[n-2]+=i,o[n-1]+=a),i=o[n-2]-o[n-2].toFixed(t),a=o[n-1]-o[n-1].toFixed(t),void o.forEach((function(n,e){e&&(o[e]=+o[e].toFixed(t))}))}})),this},v.prototype.iterate=function(t,n){var e,r,i,a=this.segments,o={},s=!1,u=0,h=0,c=0,f=0;if(n||this.__evaluateStack(),a.forEach((function(n,e){var r=t(n,e,u,h);Array.isArray(r)&&(o[e]=r,s=!0);var i=n[0]===n[0].toLowerCase();switch(n[0]){case"m":case"M":return u=n[1]+(i?u:0),h=n[2]+(i?h:0),c=u,void(f=h);case"h":case"H":return void(u=n[1]+(i?u:0));case"v":case"V":return void(h=n[1]+(i?h:0));case"z":case"Z":return u=c,void(h=f);default:u=n[n.length-2]+(i?u:0),h=n[n.length-1]+(i?h:0)}})),!s)return this;for(i=[],e=0;e<a.length;e++)if(void 0!==o[e])for(r=0;r<o[e].length;r++)i.push(o[e][r]);else i.push(a[e]);return this.segments=i,this},v.prototype.abs=function(){return this.iterate((function(t,n,e,r){var i,a=t[0],o=a.toUpperCase();if(a!==o)switch(t[0]=o,a){case"v":return void(t[1]+=r);case"a":return t[6]+=e,void(t[7]+=r);default:for(i=1;i<t.length;i++)t[i]+=i%2?e:r}}),!0),this},v.prototype.rel=function(){return this.iterate((function(t,n,e,r){var i,a=t[0],o=a.toLowerCase();if(a!==o&&(0!==n||"M"!==a))switch(t[0]=o,a){case"V":return void(t[1]-=r);case"A":return t[6]-=e,void(t[7]-=r);default:for(i=1;i<t.length;i++)t[i]-=i%2?e:r}}),!0),this},v.prototype.unarc=function(){return this.iterate((function(t,n,e,r){var i,a,o,s=[],u=t[0];return"A"!==u&&"a"!==u?null:("a"===u?(a=e+t[6],o=r+t[7]):(a=t[6],o=t[7]),0===(i=function(t,n,e,r,i,a,o,s,u){var h=Math.sin(u*Ct/360),c=Math.cos(u*Ct/360),f=c*(t-e)/2+h*(n-r)/2,g=-h*(t-e)/2+c*(n-r)/2;if(0===f&&0===g)return[];if(0===o||0===s)return[];o=Math.abs(o),s=Math.abs(s);var v=f*f/(o*o)+g*g/(s*s);v>1&&(o*=Math.sqrt(v),s*=Math.sqrt(v));var x=l(t,n,e,r,i,a,o,s,h,c),y=[],d=x[2],m=x[3],M=Math.max(Math.ceil(Math.abs(m)/(Ct/4)),1);m/=M;for(var w=0;w<M;w++)y.push(p(d,m)),d+=m;return y.map((function(t){for(var n=0;n<t.length;n+=2){var e=t[n+0],r=t[n+1],i=c*(e*=o)-h*(r*=s),a=h*e+c*r;t[n+0]=i+x[0],t[n+1]=a+x[1]}return t}))}(e,r,a,o,t[4],t[5],t[1],t[2],t[3])).length?[["a"===t[0]?"l":"L",t[6],t[7]]]:(i.forEach((function(t){s.push(["C",t[2],t[3],t[4],t[5],t[6],t[7]])})),s))})),this},v.prototype.unshort=function(){var t,n,e,r,i,a=this.segments;return this.iterate((function(o,s,u,h){var c,f=o[0],l=f.toUpperCase();s&&("T"===l?(c="t"===f,"Q"===(e=a[s-1])[0]?(t=e[1]-u,n=e[2]-h):"q"===e[0]?(t=e[1]-e[3],n=e[2]-e[4]):(t=0,n=0),r=-t,i=-n,c||(r+=u,i+=h),a[s]=[c?"q":"Q",r,i,o[1],o[2]]):"S"===l&&(c="s"===f,"C"===(e=a[s-1])[0]?(t=e[3]-u,n=e[4]-h):"c"===e[0]?(t=e[3]-e[5],n=e[4]-e[6]):(t=0,n=0),r=-t,i=-n,c||(r+=u,i+=h),a[s]=[c?"c":"C",r,i,o[1],o[2],o[3],o[4]]))})),this};var Zt=v,Ft={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},jt=/([astvzqmhlc])([^astvzqmhlc]*)/gi,zt=function(t){var n=[];return t.replace(jt,(function(t,e,r){var i=e.toLowerCase();for(r=function(t){var n=t.match(Ot);return n?n.map(Number):[]}(r),"m"===i&&r.length>2&&(n.push([e].concat(r.splice(0,2))),i="l",e="m"===e?"l":"L");r.length>=0;){if(r.length===Ft[i])return r.unshift(e),n.push(r);if(r.length<Ft[i])throw new Error("malformed path data");n.push([e].concat(r.splice(0,Ft[i])))}})),n},Ot=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,It=function(t,n,e,r,i,a,o,s){return new x(t,n,e,r,i,a,o,s)};x.prototype={constructor:x,init:function(){this.length=this.getArcLength([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y])},getTotalLength:function(){return this.length},getPointAtLength:function(t){var n=m(t,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]);return this.getPoint([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],n)},getTangentAtLength:function(t){var n=m(t,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]),e=this.getDerivative([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],n),r=Math.sqrt(e.x*e.x+e.y*e.y);return r>0?{x:e.x/r,y:e.y/r}:{x:0,y:0}},getPropertiesAtLength:function(t){var n,e=m(t,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]),r=this.getDerivative([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],e),i=Math.sqrt(r.x*r.x+r.y*r.y);n=i>0?{x:r.x/i,y:r.y/i}:{x:0,y:0};var a=this.getPoint([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],e);return{x:a.x,y:a.y,tangentX:n.x,tangentY:n.y}}};var Vt=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],Xt=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],Yt=[[1],[1,1],[1,2,1],[1,3,3,1]],Gt=2*Math.PI,Dt=function(t,n,e,r,i,a,o,s,u){var h=Math.sin(i*Gt/360),c=Math.cos(i*Gt/360),f=c*(t-s)/2+h*(n-u)/2,l=-h*(t-s)/2+c*(n-u)/2;if(0===f&&0===l)return[];if(0===e||0===r)return[];e=Math.abs(e),r=Math.abs(r);var p=f*f/(e*e)+l*l/(r*r);p>1&&(e*=Math.sqrt(p),r*=Math.sqrt(p));var g=function(t,n,e,r,i,a,o,s,u,h){var c=h*(t-e)/2+u*(n-r)/2,f=-u*(t-e)/2+h*(n-r)/2,l=o*o,p=s*s,g=c*c,v=f*f,x=l*p-l*v-p*g;x<0&&(x=0),x/=l*v+p*g;var y=(x=Math.sqrt(x)*(i===a?-1:1))*o/s*f,d=x*-s/o*c,m=h*y-u*d+(t+e)/2,M=u*y+h*d+(n+r)/2,w=(c-y)/o,b=(f-d)/s,L=(-c-y)/o,A=(-f-d)/s,P=k(1,0,w,b),q=k(w,b,L,A);return 0===a&&q>0&&(q-=Gt),1===a&&q<0&&(q+=Gt),[m,M,P,q]}(t,n,s,u,a,o,e,r,h,c),v=[],x=g[2],y=g[3],d=Math.max(Math.ceil(Math.abs(y)/(Gt/4)),1);y/=d;for(var m=0;m<d;m++)v.push(_(x,y)),x+=y;return v.map((function(t){for(var n=0;n<t.length;n+=2){var i=t[n+0],a=t[n+1],o=c*(i*=e)-h*(a*=r),s=h*i+c*a;t[n+0]=o+g[0],t[n+1]=s+g[1]}return t}))},Ht=function(t,n,e,r,i,a,o,s,u){return new S(t,n,e,r,i,a,o,s,u)};S.prototype={constructor:S,init:function(){},getTotalLength:function(){return this.length},getPointAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var n=this.partialLengths.length-1;this.partialLengths[n]>=t&&this.partialLengths[n]>0;)n--;n<this.partialLengths.length-1&&n++;for(var e=0,r=0;r<n;r++)e+=this.partialLengths[r];return this.curves[n].getPointAtLength(t-e)},getTangentAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var n=this.partialLengths.length-1;this.partialLengths[n]>=t&&this.partialLengths[n]>0;)n--;n<this.partialLengths.length-1&&n++;for(var e=0,r=0;r<n;r++)e+=this.partialLengths[r];return this.curves[n].getTangentAtLength(t-e)},getPropertiesAtLength:function(t){var n=this.getTangentAtLength(t),e=this.getPointAtLength(t);return{x:e.x,y:e.y,tangentX:n.x,tangentY:n.y}}};var Nt=function(t,n,e,r){return new C(t,n,e,r)};C.prototype.getTotalLength=function(){return Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2))},C.prototype.getPointAtLength=function(t){var n=t/Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2)),e=(this.x1-this.x0)*n,r=(this.y1-this.y0)*n;return{x:this.x0+e,y:this.y0+r}},C.prototype.getTangentAtLength=function(){var t=Math.sqrt((this.x1-this.x0)*(this.x1-this.x0)+(this.y1-this.y0)*(this.y1-this.y0));return{x:(this.x1-this.x0)/t,y:(this.y1-this.y0)/t}},C.prototype.getPropertiesAtLength=function(t){var n=this.getPointAtLength(t),e=this.getTangentAtLength();return{x:n.x,y:n.y,tangentX:e.x,tangentY:e.y}};var Qt=function(t){function n(t){if(!t)return null;for(var a,o=zt(t),s=[0,0],u=[0,0],h=0;h<o.length;h++)"M"===o[h][0]?(s=[o[h][1],o[h][2]],i.push(null)):"m"===o[h][0]?(s=[o[h][1]+s[0],o[h][2]+s[1]],i.push(null)):"L"===o[h][0]?(e+=Math.sqrt(Math.pow(s[0]-o[h][1],2)+Math.pow(s[1]-o[h][2],2)),i.push(new Nt(s[0],o[h][1],s[1],o[h][2])),s=[o[h][1],o[h][2]]):"l"===o[h][0]?(e+=Math.sqrt(Math.pow(o[h][1],2)+Math.pow(o[h][2],2)),i.push(new Nt(s[0],o[h][1]+s[0],s[1],o[h][2]+s[1])),s=[o[h][1]+s[0],o[h][2]+s[1]]):"H"===o[h][0]?(e+=Math.abs(s[0]-o[h][1]),i.push(new Nt(s[0],o[h][1],s[1],s[1])),s[0]=o[h][1]):"h"===o[h][0]?(e+=Math.abs(o[h][1]),i.push(new Nt(s[0],s[0]+o[h][1],s[1],s[1])),s[0]=o[h][1]+s[0]):"V"===o[h][0]?(e+=Math.abs(s[1]-o[h][1]),i.push(new Nt(s[0],s[0],s[1],o[h][1])),s[1]=o[h][1]):"v"===o[h][0]?(e+=Math.abs(o[h][1]),i.push(new Nt(s[0],s[0],s[1],s[1]+o[h][1])),s[1]=o[h][1]+s[1]):"z"===o[h][0]||"Z"===o[h][0]?(e+=Math.sqrt(Math.pow(o[0][1]-s[0],2)+Math.pow(o[0][2]-s[1],2)),i.push(new Nt(s[0],o[0][1],s[1],o[0][2])),s=[o[0][1],o[0][2]]):"C"===o[h][0]?(a=new It(s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4],o[h][5],o[h][6]),e+=a.getTotalLength(),s=[o[h][5],o[h][6]],i.push(a)):"c"===o[h][0]?(a=new It(s[0],s[1],s[0]+o[h][1],s[1]+o[h][2],s[0]+o[h][3],s[1]+o[h][4],s[0]+o[h][5],s[1]+o[h][6]),e+=a.getTotalLength(),s=[o[h][5]+s[0],o[h][6]+s[1]],i.push(a)):"S"===o[h][0]?(a=h>0&&["C","c","S","s"].indexOf(o[h-1][0])>-1?new It(s[0],s[1],2*s[0]-o[h-1][o[h-1].length-4],2*s[1]-o[h-1][o[h-1].length-3],o[h][1],o[h][2],o[h][3],o[h][4]):new It(s[0],s[1],s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4]),e+=a.getTotalLength(),s=[o[h][3],o[h][4]],i.push(a)):"s"===o[h][0]?(a=h>0&&["C","c","S","s"].indexOf(o[h-1][0])>-1?new It(s[0],s[1],s[0]+a.d.x-a.c.x,s[1]+a.d.y-a.c.y,s[0]+o[h][1],s[1]+o[h][2],s[0]+o[h][3],s[1]+o[h][4]):new It(s[0],s[1],s[0],s[1],s[0]+o[h][1],s[1]+o[h][2],s[0]+o[h][3],s[1]+o[h][4]),e+=a.getTotalLength(),s=[o[h][3]+s[0],o[h][4]+s[1]],i.push(a)):"Q"===o[h][0]?(a=new It(s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4]),e+=a.getTotalLength(),i.push(a),s=[o[h][3],o[h][4]],u=[o[h][1],o[h][2]]):"q"===o[h][0]?(a=new It(s[0],s[1],s[0]+o[h][1],s[1]+o[h][2],s[0]+o[h][3],s[1]+o[h][4]),e+=a.getTotalLength(),u=[s[0]+o[h][1],s[1]+o[h][2]],s=[o[h][3]+s[0],o[h][4]+s[1]],i.push(a)):"T"===o[h][0]?(a=h>0&&["Q","q","T","t"].indexOf(o[h-1][0])>-1?new It(s[0],s[1],2*s[0]-u[0],2*s[1]-u[1],o[h][1],o[h][2]):new Nt(s[0],o[h][1],s[1],o[h][2]),i.push(a),e+=a.getTotalLength(),u=[2*s[0]-u[0],2*s[1]-u[1]],s=[o[h][1],o[h][2]]):"t"===o[h][0]?(a=h>0&&["Q","q","T","t"].indexOf(o[h-1][0])>-1?new It(s[0],s[1],2*s[0]-u[0],2*s[1]-u[1],s[0]+o[h][1],s[1]+o[h][2]):new Nt(s[0],s[0]+o[h][1],s[1],s[1]+o[h][2]),e+=a.getTotalLength(),u=[2*s[0]-u[0],2*s[1]-u[1]],s=[o[h][1]+s[0],o[h][2]+s[0]],i.push(a)):"A"===o[h][0]?(a=new Ht(s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4],o[h][5],o[h][6],o[h][7]),e+=a.getTotalLength(),s=[o[h][6],o[h][7]],i.push(a)):"a"===o[h][0]&&(a=new Ht(s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4],o[h][5],s[0]+o[h][6],s[1]+o[h][7]),e+=a.getTotalLength(),s=[s[0]+o[h][6],s[1]+o[h][7]],i.push(a)),r.push(e);return n}var e=0,r=[],i=[];n.getTotalLength=function(){return e},n.getPointAtLength=function(t){var n=a(t);return i[n.i].getPointAtLength(n.fraction)},n.getTangentAtLength=function(t){var n=a(t);return i[n.i].getTangentAtLength(n.fraction)},n.getPropertiesAtLength=function(t){var n=a(t);return i[n.i].getPropertiesAtLength(n.fraction)};var a=function(t){t<0?t=0:t>e&&(t=e);for(var n=r.length-1;r[n]>=t&&r[n]>0;)n--;return n++,{fraction:t-r[n-1],i:n}};return n(t)},Ut='All shapes must be supplied as arrays of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).\nExample valid ways of supplying a shape would be:\n[[0, 0], [10, 0], [10, 10]]\n"M0,0 L10,0 L10,10Z"\n',Rt="flubber.all() expects two arrays of equal length as arguments. Each element in both arrays should be an array of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).",Bt=function(t,n){for(var e,r,i,a=t.length,o=1/0,s=0;s<a;s++)!function(i){r=0,n.forEach((function(n,e){var o=E(t[(i+e)%a],n);r+=o*o})),r<o&&(o=r,e=i)}(s);e&&(i=t.splice(0,e),t.splice.apply(t,[t.length,0].concat(i)))},Wt=D;D.deviation=function(t,n,e,r){var i=n&&n.length,a=i?n[0]*e:t.length,o=Math.abs(ft(t,0,a,e));if(i)for(var s=0,u=n.length;s<u;s++){var h=n[s]*e,c=s<u-1?n[s+1]*e:t.length;o-=Math.abs(ft(t,h,c,e))}var f=0;for(s=0;s<r.length;s+=3){var l=r[s]*e,p=r[s+1]*e,g=r[s+2]*e;f+=Math.abs((t[l]-t[g])*(t[p+1]-t[l+1])-(t[l]-t[p])*(t[g+1]-t[l+1]))}return 0===o&&0===f?0:Math.abs((f-o)/o)},D.flatten=function(t){for(var n=t[0][0].length,e={vertices:[],holes:[],dimensions:n},r=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<n;o++)e.vertices.push(t[i][a][o]);i>0&&(r+=t[i-1].length,e.holes.push(r))}return e};var $t=function(t){return t},Jt=function(t){if(null==t)return $t;var n,e,r=t.scale[0],i=t.scale[1],a=t.translate[0],o=t.translate[1];return function(t,s){s||(n=e=0);var u=2,h=t.length,c=new Array(h);for(c[0]=(n+=t[0])*r+a,c[1]=(e+=t[1])*i+o;u<h;)c[u]=t[u],++u;return c}},Kt=function(t,n){for(var e,r=t.length,i=r-n;i<--r;)e=t[i],t[i++]=t[r],t[r]=e},tn=function(t,n){return"GeometryCollection"===n.type?{type:"FeatureCollection",features:n.geometries.map((function(n){return lt(t,n)}))}:lt(t,n)},nn=function(t,n){function e(n){var e,r=t.arcs[n<0?~n:n],i=r[0];return t.transform?(e=[0,0],r.forEach((function(t){e[0]+=t[0],e[1]+=t[1]}))):e=r[r.length-1],n<0?[e,i]:[i,e]}function r(t,n){for(var e in t){var r=t[e];delete n[r.start],delete r.start,delete r.end,r.forEach((function(t){i[t<0?~t:t]=1})),s.push(r)}}var i={},a={},o={},s=[],u=-1;return n.forEach((function(e,r){var i,a=t.arcs[e<0?~e:e];a.length<3&&!a[1][0]&&!a[1][1]&&(i=n[++u],n[u]=e,n[r]=i)})),n.forEach((function(t){var n,r,i=e(t),s=i[0],u=i[1];if(n=o[s])if(delete o[n.end],n.push(t),n.end=u,r=a[u]){delete a[r.start];var h=r===n?n:n.concat(r);a[h.start=n.start]=o[h.end=r.end]=h}else a[n.start]=o[n.end]=n;else if(n=a[u])if(delete a[n.start],n.unshift(t),n.start=s,r=o[s]){delete o[r.end];var c=r===n?n:r.concat(n);a[c.start=r.start]=o[c.end=n.end]=c}else a[n.start]=o[n.end]=n;else a[(n=[t]).start=s]=o[n.end=u]=n})),r(o,a),r(a,o),n.forEach((function(t){i[t<0?~t:t]||s.push([t])})),s},en=function(t,n){for(var e=0,r=t.length;e<r;){var i=e+r>>>1;t[i]<n?e=i+1:r=i}return e},rn=function(t){function n(t,n){t.forEach((function(t){t<0&&(t=~t);var e=r[t];e?e.push(n):r[t]=[n]}))}function e(t,e){t.forEach((function(t){n(t,e)}))}var r={},i=t.map((function(){return[]})),a={LineString:n,MultiLineString:e,Polygon:e,MultiPolygon:function(t,n){t.forEach((function(t){e(t,n)}))}};for(var o in t.forEach((function t(n,e){"GeometryCollection"===n.type?n.geometries.forEach((function(n){t(n,e)})):n.type in a&&a[n.type](n.arcs,e)})),r)for(var s=r[o],u=s.length,h=0;h<u;++h)for(var c=h+1;c<u;++c){var f,l=s[h],p=s[c];(f=i[l])[o=en(f,p)]!==p&&f.splice(o,0,p),(f=i[p])[o=en(f,l)]!==l&&f.splice(o,0,l)}return i},an=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},on=function(t){return 1===t.length&&(t=function(t){return function(n,e){return an(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}},sn=(on(an).right,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),function(t,n){return function(t,n){for(var e=t.objects.triangles.geometries,r=on((function(t){return t.area})).left;e.length>n;)!function(){var n=e[0],i=rn(e)[0][0],a=e[i],o=gt(t,[n,a]);o.area=n.area+a.area,o.type="Polygon",o.arcs=o.arcs[0],e.splice(i,1),e.shift(),e.splice(r(e,o.area),0,o)}();if(n>e.length)throw new RangeError("Can't collapse topology into "+n+" pieces.");return tn(t,t.objects.triangles).features.map((function(t){return t.geometry.coordinates[0].pop(),t.geometry.coordinates[0]}))}(function(t,n){var e={},r={type:"Topology",objects:{triangles:{type:"GeometryCollection",geometries:[]}},arcs:[]};return t.forEach((function(t){var i=[];t.forEach((function(t,a){var o=t[0]<t[1]?t.join(","):t[1]+","+t[0],s=t.map((function(t){return n[t]}));o in e?i.push(~e[o]):(i.push(e[o]=r.arcs.length),r.arcs.push(s))})),r.objects.triangles.geometries.push({type:"Polygon",area:Math.abs(Mt(t.map((function(t){return n[t[0]]})))),arcs:[i]})})),r.objects.triangles.geometries.sort((function(t,n){return t.area-n.area})),r}(function(t){for(var n=Wt(t.reduce((function(t,n){return t.concat([n[0]],[n[1]])}),[])),e=[],r=0,i=n.length;r<i;r+=3)e.push([[n[r],n[r+1]],[n[r+1],n[r+2]],[n[r+2],n[r]]]);return e}(t),t),n)}),un=function(t,n){if(t.length>8)return t.map((function(t,n){return n}));var e=t.map((function(t){return n.map((function(n){return function(t,n){var e=E(j(t),j(n));return e*e}(t,n)}))}));return function(t,n,e){var r=1/0,i=t.map((function(t,n){return n}));return function t(n,a,o){void 0===a&&(a=[]),void 0===o&&(o=0);for(var s=0;s<n.length;s++){var u=n.splice(s,1),h=e[u[0]][a.length];o+h<r&&(n.length?t(n.slice(),a.concat(u),o+h):(r=o+h,i=a.concat(u))),n.length&&n.splice(s,0,u[0])}}(i),i}(t,0,e)};t.interpolate=function(t,n,e){void 0===e&&(e={});var r=e.maxSegmentLength;void 0===r&&(r=10);var i=e.string;void 0===i&&(i=!0);var a=G(Y(t,r),Y(n,r),i);return!i||"string"!=typeof t&&"string"!=typeof n?a:function(e){return e<1e-4&&"string"==typeof t?t:1-e<1e-4&&"string"==typeof n?n:a(e)}},t.separate=vt,t.combine=function(t,n,e){void 0===e&&(e={});var r=e.maxSegmentLength;void 0===r&&(r=10);var i=e.string;void 0===i&&(i=!0);var a=e.single;void 0===a&&(a=!1);var o=vt(n,t,{maxSegmentLength:r,string:i,single:a});return a?function(t){return o(1-t)}:o.map((function(t){return function(n){return t(1-n)}}))},t.interpolateAll=function(t,n,e){void 0===e&&(e={});var r=e.maxSegmentLength;void 0===r&&(r=10);var i=e.string;void 0===i&&(i=!0);var a=e.single;if(void 0===a&&(a=!1),!Array.isArray(t)||!Array.isArray(n)||t.length!==n.length||!t.length)throw new TypeError(Rt);var o,s,u=function(t){return Y(t,r)},h=t.map(u),c=n.map(u);return a?(t.every((function(t){return"string"==typeof t}))&&(o=t.slice(0)),n.every((function(t){return"string"==typeof t}))&&(s=n.slice(0))):(o=t.slice(0),s=n.slice(0)),xt(h,c,{string:i,single:a,t0:o,t1:s,match:!1})},t.splitPathString=function(t){return O(z(t))},t.toPathString=I,t.fromCircle=yt,t.toCircle=function(t,n,e,r,i){var a=yt(n,e,r,t,i);return function(t){return a(1-t)}},t.fromRect=dt,t.toRect=function(t,n,e,r,i,a){var o=dt(n,e,r,i,t,a);return function(t){return o(1-t)}},Object.defineProperty(t,"__esModule",{value:!0})}(n)}},n={};function e(r){var i=n[r];if(void 0!==i)return i.exports;var a=n[r]={exports:{}};return t[r].call(a.exports,a,a.exports,e),a.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";e.r(r),e.d(r,{morphPath:()=>a,morphPathSimple:()=>s,morphPathSmooth:()=>o});var t=e(814);function n(t){var n=function(t,n,e){return Math.min(Math.max(t,n),e)}(t,0,1);return Math.pow(n,2)*(3-2*n)}var i=function(){return i=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t},i.apply(this,arguments)};function a(t,e,r,i){var a=null,o=null,s=null,u="duration"in i?i.duration:500,h="easing"in i&&"function"==typeof i.easing?i.easing:n;function c(n){null===a&&(a=n),null===o&&(o="function"==typeof t?t():t),null===s&&(s=r(o.getAttribute("d"),e));var i=n-a,f=Math.min(i/u,1),l=h(f),p=s(l);o.setAttribute("d",p),f<1&&requestAnimationFrame(c)}return function(n){return n({animate:!0,animateCallback:function(){a=null,o=null,s=null,requestAnimationFrame(c)},updateCallback:function(){("function"==typeof t?t():t).setAttribute("d",e)}})}}function o(n,e,r){return void 0===r&&(r={}),a(n,e,(function(n,e){var i;return(0,t.interpolate)(n,e,{maxSegmentLength:null!==(i=r.maxSegmentLength)&&void 0!==i?i:10})}),r)}function s(t,n,e){void 0===e&&(e={});var r="duration"in e?e.duration:500,a="easing"in e&&"string"==typeof e.easing?e.easing:null;return function(e){var o="function"==typeof t?t():t;e({animate:!0,element:o,animationParams:i({d:n,duration:r},null!==a?{easing:a}:{}),updateCallback:function(){o.setAttribute("d",n)}})}}})(),r})()));
1
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.PresenterMorph=n():t.PresenterMorph=n()}(this,(()=>(()=>{var t={5814:function(t,n){!function(t){"use strict";function n(t){return 10===t||13===t||8232===t||8233===t||32===t||9===t||11===t||12===t||160===t||t>=5760&&At.indexOf(t)>=0}function e(t){return t>=48&&t<=57}function r(t){return t>=48&&t<=57||43===t||45===t||46===t}function i(t){this.index=0,this.path=t,this.max=t.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function a(t){for(;t.index<t.max&&n(t.path.charCodeAt(t.index));)t.index++}function o(t){var n,r=t.index,i=r,a=t.max,o=!1,s=!1,u=!1,h=!1;if(i>=a)t.err="SvgPath: missed param (at pos "+i+")";else if(43!==(n=t.path.charCodeAt(i))&&45!==n||(n=++i<a?t.path.charCodeAt(i):0),e(n)||46===n){if(46!==n){if(o=48===n,n=++i<a?t.path.charCodeAt(i):0,o&&i<a&&n&&e(n))return void(t.err="SvgPath: numbers started with `0` such as `09` are ilegal (at pos "+r+")");for(;i<a&&e(t.path.charCodeAt(i));)i++,s=!0;n=i<a?t.path.charCodeAt(i):0}if(46===n){for(h=!0,i++;e(t.path.charCodeAt(i));)i++,u=!0;n=i<a?t.path.charCodeAt(i):0}if(101===n||69===n){if(h&&!s&&!u)return void(t.err="SvgPath: invalid float exponent (at pos "+i+")");if(43!==(n=++i<a?t.path.charCodeAt(i):0)&&45!==n||i++,!(i<a&&e(t.path.charCodeAt(i))))return void(t.err="SvgPath: invalid float exponent (at pos "+i+")");for(;i<a&&e(t.path.charCodeAt(i));)i++}t.index=i,t.param=parseFloat(t.path.slice(r,i))+0}else t.err="SvgPath: param should start with 0..9 or `.` (at pos "+i+")"}function s(t){var n,e;e=(n=t.path[t.segmentStart]).toLowerCase();var r=t.data;if("m"===e&&r.length>2&&(t.result.push([n,r[0],r[1]]),r=r.slice(2),e="l",n="m"===n?"l":"L"),"r"===e)t.result.push([n].concat(r));else for(;r.length>=Lt[e]&&(t.result.push([n].concat(r.splice(0,Lt[e]))),Lt[e]););}function u(t){var n,e,i,u=t.max;if(t.segmentStart=t.index,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}(t.path.charCodeAt(t.index)))if(e=Lt[t.path[t.index].toLowerCase()],t.index++,a(t),t.data=[],e){for(n=!1;;){for(i=e;i>0;i--){if(o(t),t.err.length)return;t.data.push(t.param),a(t),n=!1,t.index<u&&44===t.path.charCodeAt(t.index)&&(t.index++,a(t),n=!0)}if(!n){if(t.index>=t.max)break;if(!r(t.path.charCodeAt(t.index)))break}}s(t)}else s(t);else t.err="SvgPath: bad command "+t.path[t.index]+" (at pos "+t.index+")"}function h(t,n){return[t[0]*n[0]+t[2]*n[1],t[1]*n[0]+t[3]*n[1],t[0]*n[2]+t[2]*n[3],t[1]*n[2]+t[3]*n[3],t[0]*n[4]+t[2]*n[5]+t[4],t[1]*n[4]+t[3]*n[5]+t[5]]}function c(){if(!(this instanceof c))return new c;this.queue=[],this.cache=null}function f(t,n,e,r){var i=t*r-n*e<0?-1:1,a=(t*e+n*r)/(Math.sqrt(t*t+n*n)*Math.sqrt(t*t+n*n));return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)}function l(t,n,e,r,i,a,o,s,u,h){var c=h*(t-e)/2+u*(n-r)/2,l=-u*(t-e)/2+h*(n-r)/2,p=o*o,g=s*s,v=c*c,x=l*l,y=p*g-p*x-g*v;y<0&&(y=0),y/=p*x+g*v;var d=(y=Math.sqrt(y)*(i===a?-1:1))*o/s*l,m=y*-s/o*c,M=h*d-u*m+(t+e)/2,w=u*d+h*m+(n+r)/2,b=(c-d)/o,L=(l-m)/s,A=(-c-d)/o,P=(-l-m)/s,q=f(1,0,b,L),k=f(b,L,A,P);return 0===a&&k>0&&(k-=Ct),1===a&&k<0&&(k+=Ct),[M,w,q,k]}function p(t,n){var e=4/3*Math.tan(n/4),r=Math.cos(t),i=Math.sin(t),a=Math.cos(t+n),o=Math.sin(t+n);return[r,i,r-i*e,i+r*e,a+o*e,o-a*e,a,o]}function g(t,n,e){if(!(this instanceof g))return new g(t,n,e);this.rx=t,this.ry=n,this.ax=e}function v(t){if(!(this instanceof v))return new v(t);var n=Pt(t);this.segments=n.segments,this.err=n.err,this.__stack=[]}function x(t,n,e,r,i,a,o,s){this.a={x:t,y:n},this.b={x:e,y:r},this.c={x:i,y:a},this.d={x:o,y:s},null!=o&&null!=s?(this.getArcLength=q,this.getPoint=w,this.getDerivative=d):(this.getArcLength=b,this.getPoint=M,this.getDerivative=y),this.init()}function y(t,n,e){return{x:2*(1-e)*(t[1]-t[0])+2*e*(t[2]-t[1]),y:2*(1-e)*(n[1]-n[0])+2*e*(n[2]-n[1])}}function d(t,n,e){return M([3*(t[1]-t[0]),3*(t[2]-t[1]),3*(t[3]-t[2])],[3*(n[1]-n[0]),3*(n[2]-n[1]),3*(n[3]-n[2])],e)}function m(t,n,e,r,i){for(var a=1,o=t/n,s=(t-e(r,i,o))/n;a>.001;){var u=e(r,i,o+s),h=e(r,i,o-s),c=Math.abs(t-u)/n,f=Math.abs(t-h)/n;c<a?(a=c,o+=s):f<a?(a=f,o-=s):s/=2}return o}function M(t,n,e){return{x:(1-e)*(1-e)*t[0]+2*(1-e)*e*t[1]+e*e*t[2],y:(1-e)*(1-e)*n[0]+2*(1-e)*e*n[1]+e*e*n[2]}}function w(t,n,e){return{x:(1-e)*(1-e)*(1-e)*t[0]+3*(1-e)*(1-e)*e*t[1]+3*(1-e)*e*e*t[2]+e*e*e*t[3],y:(1-e)*(1-e)*(1-e)*n[0]+3*(1-e)*(1-e)*e*n[1]+3*(1-e)*e*e*n[2]+e*e*e*n[3]}}function b(t,n,e){void 0===e&&(e=1);var r=t[0]-2*t[1]+t[2],i=n[0]-2*n[1]+n[2],a=2*t[1]-2*t[0],o=2*n[1]-2*n[0],s=4*(r*r+i*i),u=4*(r*a+i*o),h=a*a+o*o;if(0===s)return e*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(n[2]-n[0],2));var c=u/(2*s),f=e+c,l=h/s-c*c;return Math.sqrt(s)/2*(f*Math.sqrt(f*f+l)-c*Math.sqrt(c*c+l)+l*Math.log(Math.abs((f+Math.sqrt(f*f+l))/(c+Math.sqrt(c*c+l)))))}function L(t,n){return Yt[t][n]}function A(t,n,e){var r,i,a,o=e.length-1;if(0===o)return 0;if(0===t){for(i=0,a=0;a<=o;a++)i+=L(o,a)*Math.pow(1-n,o-a)*Math.pow(n,a)*e[a];return i}for(r=new Array(o),a=0;a<o;a++)r[a]=o*(e[a+1]-e[a]);return A(t-1,n,r)}function P(t,n,e){var r=A(1,e,t),i=A(1,e,n),a=r*r+i*i;return Math.sqrt(a)}function q(t,n,e){var r,i,a,o;for(void 0===e&&(e=1),r=e/2,i=0,a=0;a<20;a++)o=r*Vt[20][a]+r,i+=Xt[20][a]*P(t,n,o);return r*i}function k(t,n,e,r){var i=t*e+n*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-n*e<0?-1:1)*Math.acos(i)}function _(t,n){var e=4/3*Math.tan(n/4),r=Math.cos(t),i=Math.sin(t),a=Math.cos(t+n),o=Math.sin(t+n);return[r,i,r-i*e,i+r*e,a+o*e,o-a*e,a,o]}function S(t,n,e,r,i,a,o,s,u){var h=0,c=[],f=[];Dt(t,n,e,r,i,a,o,s,u).forEach((function(t){var n=new It(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),e=n.getTotalLength();h+=e,c.push(e),f.push(n)})),this.length=h,this.partialLengths=c,this.curves=f}function C(t,n,e,r){this.x0=t,this.x1=n,this.y0=e,this.y1=r}function E(t,n){return Math.sqrt((t[0]-n[0])*(t[0]-n[0])+(t[1]-n[1])*(t[1]-n[1]))}function T(t,n,e){return[t[0]+(n[0]-t[0])*e,t[1]+(n[1]-t[1])*e]}function Z(t,n,e){var r=t.map((function(t,e){return function(t,n){return function(e){return t.map((function(t,r){return t+e*(n[r]-t)}))}}(t,n[e])}));return function(t){var n=r.map((function(n){return n(t)}));return e?I(n):n}}function F(t){return"number"==typeof t&&isFinite(t)}function j(t){return function(t){for(var n=0;n<t.length-2;n++){var e=t[n],r=t[n+1],i=t[n+2];if(e[0]*(r[1]-i[1])+r[0]*(i[1]-e[1])+i[0]*(e[1]-r[1]))return!0}return!1}(t)?wt(t):[(t[0][0]+t[t.length-1][0])/2,(t[0][1]+t[t.length-1][1])/2]}function z(t){return new Zt(t).abs()}function O(t){return t.toString().split("M").map((function(t,n){return t=t.trim(),n&&t?"M"+t:t})).filter((function(t){return t}))}function I(t){return"M"+t.join("L")+"Z"}function V(t,n){var e=z(t);return function(t){var n=t.segments||[],e=[];if(!n.length||"M"!==n[0][0])return!1;for(var r=0;r<n.length;r++){var i=n[r],a=i[0],o=i[1],s=i[2];if("M"===a&&r||"Z"===a)break;if("M"===a||"L"===a)e.push([o,s]);else if("H"===a)e.push([o,e[e.length-1][1]]);else{if("V"!==a)return!1;e.push([e[e.length-1][0],o])}}return!!e.length&&{ring:e}}(e)||function(t,n){var e,r,i=O(t)[0],a=[],o=3;if(!i)throw new TypeError(Ut);e=(r=function(t){if("undefined"!=typeof window&&window&&window.document)try{var n=window.document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d",t),n}catch(t){}return Qt(t)}(i)).getTotalLength(),n&&F(n)&&n>0&&(o=Math.max(o,Math.ceil(e/n)));for(var s=0;s<o;s++){var u=r.getPointAtLength(e*s/o);a.push([u.x,u.y])}return{ring:a,skipBisect:!0}}(e,n)}function X(t,n){for(var e=t.length+n,r=bt(t)/n,i=0,a=0,o=r/2;t.length<e;){var s=t[i],u=t[(i+1)%t.length],h=E(s,u);o<=a+h?(t.splice(i+1,0,h?T(s,u,(o-a)/h):s.slice(0)),o+=r):(a+=h,i++)}}function Y(t,n){var e,r;if("string"==typeof t){var i=V(t,n);t=i.ring,r=i.skipBisect}else if(!Array.isArray(t))throw new TypeError(Ut);if(!function(t){return t.every((function(t){return Array.isArray(t)&&t.length>=2&&F(t[0])&&F(t[1])}))}(e=t.slice(0)))throw new TypeError(Ut);return e.length>1&&function(t,n){return E(t,n)<1e-9}(e[0],e[e.length-1])&&e.pop(),Mt(e)>0&&e.reverse(),!r&&n&&F(n)&&n>0&&function(t,n){void 0===n&&(n=1/0);for(var e=0;e<t.length;e++)for(var r=t[e],i=e===t.length-1?t[0]:t[e+1];E(r,i)>n;)i=T(r,i,.5),t.splice(e+1,0,i)}(e,n),e}function G(t,n,e){var r;return X(t,(r=t.length-n.length)<0?-1*r:0),X(n,r>0?r:0),Bt(t,n),Z(t,n,e)}function D(t,n,e){e=e||2;var r,i,a,o,s,u,h,c=n&&n.length,f=c?n[0]*e:t.length,l=H(t,0,f,e,!0),p=[];if(!l)return p;if(c&&(l=function(t,n,e,r){var i,a,o,s=[];for(i=0,a=n.length;i<a;i++)(o=H(t,n[i]*r,i<a-1?n[i+1]*r:t.length,r,!1))===o.next&&(o.steiner=!0),s.push(tt(o));for(s.sort($),i=0;i<s.length;i++)J(s[i],e),e=N(e,e.next);return e}(t,n,l,e)),t.length>80*e){r=a=t[0],i=o=t[1];for(var g=e;g<f;g+=e)(s=t[g])<r&&(r=s),(u=t[g+1])<i&&(i=u),s>a&&(a=s),u>o&&(o=u);h=Math.max(a-r,o-i)}return Q(l,p,e,r,i,h),p}function H(t,n,e,r,i){var a,o;if(i===ft(t,n,e,r)>0)for(a=n;a<e;a+=r)o=ut(a,t[a],t[a+1],o);else for(a=e-r;a>=n;a-=r)o=ut(a,t[a],t[a+1],o);return o&&it(o,o.next)&&(ht(o),o=o.next),o}function N(t,n){if(!t)return t;n||(n=t);var e,r=t;do{if(e=!1,r.steiner||!it(r,r.next)&&0!==rt(r.prev,r,r.next))r=r.next;else{if(ht(r),(r=n=r.prev)===r.next)return null;e=!0}}while(e||r!==n);return n}function Q(t,n,e,r,i,a,o){if(t){!o&&a&&function(t,n,e,r){var i=t;do{null===i.z&&(i.z=K(i.x,i.y,n,e,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var n,e,r,i,a,o,s,u,h=1;do{for(e=t,t=null,a=null,o=0;e;){for(o++,r=e,s=0,n=0;n<h&&(s++,r=r.nextZ);n++);for(u=h;s>0||u>0&&r;)0===s?(i=r,r=r.nextZ,u--):0!==u&&r?e.z<=r.z?(i=e,e=e.nextZ,s--):(i=r,r=r.nextZ,u--):(i=e,e=e.nextZ,s--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;e=r}a.nextZ=null,h*=2}while(o>1)}(i)}(t,r,i,a);for(var s,u,h=t;t.prev!==t.next;)if(s=t.prev,u=t.next,a?R(t,r,i,a):U(t))n.push(s.i/e),n.push(t.i/e),n.push(u.i/e),ht(t),t=u.next,h=u.next;else if((t=u)===h){o?1===o?Q(t=B(t,n,e),n,e,r,i,a,2):2===o&&W(t,n,e,r,i,a):Q(N(t),n,e,r,i,a,1);break}}}function U(t){var n=t.prev,e=t,r=t.next;if(rt(n,e,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(nt(n.x,n.y,e.x,e.y,r.x,r.y,i.x,i.y)&&rt(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function R(t,n,e,r){var i=t.prev,a=t,o=t.next;if(rt(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,u=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,h=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=K(s,u,n,e,r),l=K(h,c,n,e,r),p=t.nextZ;p&&p.z<=l;){if(p!==t.prev&&p!==t.next&&nt(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&rt(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=f;){if(p!==t.prev&&p!==t.next&&nt(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&rt(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function B(t,n,e){var r=t;do{var i=r.prev,a=r.next.next;!it(i,a)&&at(i,r,r.next,a)&&ot(i,a)&&ot(a,i)&&(n.push(i.i/e),n.push(r.i/e),n.push(a.i/e),ht(r),ht(r.next),r=t=a),r=r.next}while(r!==t);return r}function W(t,n,e,r,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&et(o,s)){var u=st(o,s);return o=N(o,o.next),u=N(u,u.next),Q(o,n,e,r,i,a),void Q(u,n,e,r,i,a)}s=s.next}o=o.next}while(o!==t)}function $(t,n){return t.x-n.x}function J(t,n){if(n=function(t,n){var e,r=n,i=t.x,a=t.y,o=-1/0;do{if(a<=r.y&&a>=r.next.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>o){if(o=s,s===i){if(a===r.y)return r;if(a===r.next.y)return r.next}e=r.x<r.next.x?r:r.next}}r=r.next}while(r!==n);if(!e)return null;if(i===o)return e.prev;var u,h=e,c=e.x,f=e.y,l=1/0;for(r=e.next;r!==h;)i>=r.x&&r.x>=c&&nt(a<f?i:o,a,c,f,a<f?o:i,a,r.x,r.y)&&((u=Math.abs(a-r.y)/(i-r.x))<l||u===l&&r.x>e.x)&&ot(r,t)&&(e=r,l=u),r=r.next;return e}(t,n)){var e=st(n,t);N(e,e.next)}}function K(t,n,e,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-e)/i)|t<<8))|t<<4))|t<<2))|t<<1))|(n=1431655765&((n=858993459&((n=252645135&((n=16711935&((n=32767*(n-r)/i)|n<<8))|n<<4))|n<<2))|n<<1))<<1}function tt(t){var n=t,e=t;do{n.x<e.x&&(e=n),n=n.next}while(n!==t);return e}function nt(t,n,e,r,i,a,o,s){return(i-o)*(n-s)-(t-o)*(a-s)>=0&&(t-o)*(r-s)-(e-o)*(n-s)>=0&&(e-o)*(a-s)-(i-o)*(r-s)>=0}function et(t,n){return t.next.i!==n.i&&t.prev.i!==n.i&&!function(t,n){var e=t;do{if(e.i!==t.i&&e.next.i!==t.i&&e.i!==n.i&&e.next.i!==n.i&&at(e,e.next,t,n))return!0;e=e.next}while(e!==t);return!1}(t,n)&&ot(t,n)&&ot(n,t)&&function(t,n){var e=t,r=!1,i=(t.x+n.x)/2,a=(t.y+n.y)/2;do{e.y>a!=e.next.y>a&&i<(e.next.x-e.x)*(a-e.y)/(e.next.y-e.y)+e.x&&(r=!r),e=e.next}while(e!==t);return r}(t,n)}function rt(t,n,e){return(n.y-t.y)*(e.x-n.x)-(n.x-t.x)*(e.y-n.y)}function it(t,n){return t.x===n.x&&t.y===n.y}function at(t,n,e,r){return!!(it(t,n)&&it(e,r)||it(t,r)&&it(e,n))||rt(t,n,e)>0!=rt(t,n,r)>0&&rt(e,r,t)>0!=rt(e,r,n)>0}function ot(t,n){return rt(t.prev,t,t.next)<0?rt(t,n,t.next)>=0&&rt(t,t.prev,n)>=0:rt(t,n,t.prev)<0||rt(t,t.next,n)<0}function st(t,n){var e=new ct(t.i,t.x,t.y),r=new ct(n.i,n.x,n.y),i=t.next,a=n.prev;return t.next=n,n.prev=t,e.next=i,i.prev=e,r.next=e,e.prev=r,a.next=r,r.prev=a,r}function ut(t,n,e,r){var i=new ct(t,n,e);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function ht(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function ct(t,n,e){this.i=t,this.x=n,this.y=e,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ft(t,n,e,r){for(var i=0,a=n,o=e-r;a<e;a+=r)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function lt(t,n){var e=n.id,r=n.bbox,i=null==n.properties?{}:n.properties,a=pt(t,n);return null==e&&null==r?{type:"Feature",properties:i,geometry:a}:null==r?{type:"Feature",id:e,properties:i,geometry:a}:{type:"Feature",id:e,bbox:r,properties:i,geometry:a}}function pt(t,n){function e(t,n){n.length&&n.pop();for(var e=u[t<0?~t:t],r=0,i=e.length;r<i;++r)n.push(s(e[r],r));t<0&&Kt(n,i)}function r(t){return s(t)}function i(t){for(var n=[],r=0,i=t.length;r<i;++r)e(t[r],n);return n.length<2&&n.push(n[0]),n}function a(t){for(var n=i(t);n.length<4;)n.push(n[0]);return n}function o(t){return t.map(a)}var s=Jt(t.transform),u=t.arcs;return function t(n){var e,a=n.type;switch(a){case"GeometryCollection":return{type:a,geometries:n.geometries.map(t)};case"Point":e=r(n.coordinates);break;case"MultiPoint":e=n.coordinates.map(r);break;case"LineString":e=i(n.arcs);break;case"MultiLineString":e=n.arcs.map(i);break;case"Polygon":e=o(n.arcs);break;case"MultiPolygon":e=n.arcs.map(o);break;default:return null}return{type:a,coordinates:e}}(n)}function gt(t,n){function e(t){t.forEach((function(n){n.forEach((function(n){(i[n=n<0?~n:n]||(i[n]=[])).push(t)}))})),a.push(t)}function r(n){return function(t){for(var n,e=-1,r=t.length,i=t[r-1],a=0;++e<r;)n=i,i=t[e],a+=n[0]*i[1]-n[1]*i[0];return Math.abs(a)}(pt(t,{type:"Polygon",arcs:[n]}).coordinates[0])}var i={},a=[],o=[];return n.forEach((function t(n){switch(n.type){case"GeometryCollection":n.geometries.forEach(t);break;case"Polygon":e(n.arcs);break;case"MultiPolygon":n.arcs.forEach(e)}})),a.forEach((function(t){if(!t._){var n=[],e=[t];for(t._=1,o.push(n);t=e.pop();)n.push(t),t.forEach((function(t){t.forEach((function(t){i[t<0?~t:t].forEach((function(t){t._||(t._=1,e.push(t))}))}))}))}})),a.forEach((function(t){delete t._})),{type:"MultiPolygon",arcs:o.map((function(n){var e,a=[];if(n.forEach((function(t){t.forEach((function(t){t.forEach((function(t){i[t<0?~t:t].length<2&&a.push(t)}))}))})),(e=(a=nn(t,a)).length)>1)for(var o,s,u=1,h=r(a[0]);u<e;++u)(o=r(a[u]))>h&&(s=a[0],a[0]=a[u],a[u]=s,h=o);return a}))}}function vt(t,n,e){void 0===e&&(e={});var r=e.maxSegmentLength;void 0===r&&(r=10);var i=e.string;void 0===i&&(i=!0);var a=e.single;void 0===a&&(a=!1);var o=Y(t,r);o.length<n.length+2&&X(o,n.length+2-o.length);var s,u=sn(o,n.length),h=n.map((function(t){return Y(t,r)})),c="string"==typeof t&&t;return a&&!n.every((function(t){return"string"==typeof t}))||(s=n.slice(0)),xt(u,h,{match:!0,string:i,single:a,t0:c,t1:s})}function xt(t,n,e){void 0===e&&(e={});var r=e.string,i=e.single,a=e.t0,o=e.t1,s=e.match,u=s?un(t,n):t.map((function(t,n){return n})),h=u.map((function(e,i){return G(t[e],n[i],r)}));if(s&&Array.isArray(a)&&(a=u.map((function(t){return a[t]}))),i&&r&&(Array.isArray(a)&&(a=a.join(" ")),Array.isArray(o)&&(o=o.join(" "))),i){var c=r?function(t){return h.map((function(n){return n(t)})).join(" ")}:function(t){return h.map((function(n){return n(t)}))};return r&&(a||o)?function(t){return t<1e-4&&a||1-t<1e-4&&o||c(t)}:c}return r?(a=Array.isArray(a)?a.map((function(t){return"string"==typeof t&&t})):[],o=Array.isArray(o)?o.map((function(t){return"string"==typeof t&&t})):[],h.map((function(t,n){return a[n]||o[n]?function(e){return e<1e-4&&a[n]||1-e<1e-4&&o[n]||t(e)}:t}))):h}function yt(t,n,e,r,i){return mt(function(t,n,e){return function(r){var i=j(r),a=bt(r.concat([r[0]])),o=Math.atan2(r[0][1]-i[1],r[0][0]-i[0]),s=0;return r.map((function(i,u){var h;return u&&(s+=E(i,r[u-1])),h=o+2*Math.PI*(a?s/a:u/r.length),[Math.cos(h)*e+t,Math.sin(h)*e+n]}))}}(t,n,e),r,function(t,n,e){var r=t-e+","+n,i="A"+e+","+e+",0,1,1,";return"M"+r+i+(t+e)+","+n+i+r+"Z"}(t,n,e),2*Math.PI*e,i)}function dt(t,n,e,r,i,a){return mt(function(t,n,e,r){return function(i){var a=j(i),o=bt(i.concat([i[0]])),s=Math.atan2(i[0][1]-a[1],i[0][0]-a[0]),u=0;s<0&&(s=2*Math.PI+s);var h=s/(2*Math.PI);return i.map((function(a,s){s&&(u+=E(a,i[s-1]));var c=function(t){return t<=1/8?[1,.5+4*t]:t<=3/8?[1.5-4*t,1]:t<=5/8?[0,2.5-4*t]:t<=7/8?[4*t-2.5,0]:[1,4*t-3.5]}((h+(o?u/o:s/i.length))%1);return[t+c[0]*e,n+c[1]*r]}))}}(t,n,e,r),i,function(t,n,e,r){var i=t+e,a=n+r;return"M"+t+","+n+"L"+i+","+n+"L"+i+","+a+"L"+t+","+a+"Z"}(t,n,e,r),2*e+2*r,a)}function mt(t,n,e,r,i){void 0===i&&(i={});var a=i.maxSegmentLength;void 0===a&&(a=10);var o=i.string;void 0===o&&(o=!0);var s,u,h=Y(n,a);return F(r)&&h.length<r/a&&X(h,Math.ceil(r/a-h.length)),s=t(h),u=Z(s,h,o),o?function(t){return t<1e-4?e:u(t)}:u}var Mt=function(t){for(var n,e=-1,r=t.length,i=t[r-1],a=0;++e<r;)n=i,i=t[e],a+=n[1]*i[0]-n[0]*i[1];return a/2},wt=function(t){for(var n,e,r=-1,i=t.length,a=0,o=0,s=t[i-1],u=0;++r<i;)n=s,s=t[r],u+=e=n[0]*s[1]-s[0]*n[1],a+=(n[0]+s[0])*e,o+=(n[1]+s[1])*e;return[a/(u*=3),o/u]},bt=function(t){for(var n,e,r=-1,i=t.length,a=t[i-1],o=a[0],s=a[1],u=0;++r<i;)n=o,e=s,n-=o=(a=t[r])[0],e-=s=a[1],u+=Math.sqrt(n*n+e*e);return u},Lt={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},At=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Pt=function(t){var n=new i(t),e=n.max;for(a(n);n.index<e&&!n.err.length;)u(n);return n.err.length?n.result=[]:n.result.length&&("mM".indexOf(n.result[0][0])<0?(n.err="SvgPath: string should start with `M` or `m`",n.result=[]):n.result[0][0]="M"),{err:n.err,segments:n.result}};c.prototype.matrix=function(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]||(this.cache=null,this.queue.push(t)),this},c.prototype.translate=function(t,n){return 0===t&&0===n||(this.cache=null,this.queue.push([1,0,0,1,t,n])),this},c.prototype.scale=function(t,n){return 1===t&&1===n||(this.cache=null,this.queue.push([t,0,0,n,0,0])),this},c.prototype.rotate=function(t,n,e){var r,i,a;return 0!==t&&(this.translate(n,e),r=t*Math.PI/180,i=Math.cos(r),a=Math.sin(r),this.queue.push([i,a,-a,i,0,0]),this.cache=null,this.translate(-n,-e)),this},c.prototype.skewX=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,0,Math.tan(t*Math.PI/180),1,0,0])),this},c.prototype.skewY=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,Math.tan(t*Math.PI/180),0,1,0,0])),this},c.prototype.toArray=function(){var t=this;if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],1===this.queue.length)return this.cache;for(var n=1;n<this.queue.length;n++)t.cache=h(t.cache,t.queue[n]);return this.cache},c.prototype.calc=function(t,n,e){var r;return this.queue.length?(this.cache||(this.cache=this.toArray()),[t*(r=this.cache)[0]+n*r[2]+(e?0:r[4]),t*r[1]+n*r[3]+(e?0:r[5])]):[t,n]};var qt=c,kt={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},_t=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,St=/[\s,]+/,Ct=2*Math.PI,Et=Math.PI/180;g.prototype.transform=function(t){var n=Math.cos(this.ax*Et),e=Math.sin(this.ax*Et),r=[this.rx*(t[0]*n+t[2]*e),this.rx*(t[1]*n+t[3]*e),this.ry*(-t[0]*e+t[2]*n),this.ry*(-t[1]*e+t[3]*n)],i=r[0]*r[0]+r[2]*r[2],a=r[1]*r[1]+r[3]*r[3],o=((r[0]-r[3])*(r[0]-r[3])+(r[2]+r[1])*(r[2]+r[1]))*((r[0]+r[3])*(r[0]+r[3])+(r[2]-r[1])*(r[2]-r[1])),s=(i+a)/2;if(o<1e-10*s)return this.rx=this.ry=Math.sqrt(s),this.ax=0,this;var u=r[0]*r[1]+r[2]*r[3],h=s+(o=Math.sqrt(o))/2,c=s-o/2;return this.ax=Math.abs(u)<1e-10&&Math.abs(h-a)<1e-10?90:180*Math.atan(Math.abs(u)>Math.abs(h-a)?(h-i)/u:u/(h-a))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(h),this.ry=Math.sqrt(c)):(this.ax+=90,this.rx=Math.sqrt(c),this.ry=Math.sqrt(h)),this},g.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx};var Tt=g;v.prototype.__matrix=function(t){var n,e=this;t.queue.length&&this.iterate((function(r,i,a,o){var s,u,h,c;switch(r[0]){case"v":u=0===(s=t.calc(0,r[1],!0))[0]?["v",s[1]]:["l",s[0],s[1]];break;case"V":u=(s=t.calc(a,r[1],!1))[0]===t.calc(a,o,!1)[0]?["V",s[1]]:["L",s[0],s[1]];break;case"h":u=0===(s=t.calc(r[1],0,!0))[1]?["h",s[0]]:["l",s[0],s[1]];break;case"H":u=(s=t.calc(r[1],o,!1))[1]===t.calc(a,o,!1)[1]?["H",s[0]]:["L",s[0],s[1]];break;case"a":case"A":var f=t.toArray(),l=Tt(r[1],r[2],r[3]).transform(f);if(f[0]*f[3]-f[1]*f[2]<0&&(r[5]=r[5]?"0":"1"),s=t.calc(r[6],r[7],"a"===r[0]),"A"===r[0]&&r[6]===a&&r[7]===o||"a"===r[0]&&0===r[6]&&0===r[7]){u=["a"===r[0]?"l":"L",s[0],s[1]];break}u=l.isDegenerate()?["a"===r[0]?"l":"L",s[0],s[1]]:[r[0],l.rx,l.ry,l.ax,r[4],r[5],s[0],s[1]];break;case"m":c=i>0,u=["m",(s=t.calc(r[1],r[2],c))[0],s[1]];break;default:for(u=[h=r[0]],c=h.toLowerCase()===h,n=1;n<r.length;n+=2)s=t.calc(r[n],r[n+1],c),u.push(s[0],s[1])}e.segments[i]=u}),!0)},v.prototype.__evaluateStack=function(){var t,n;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(t=qt(),n=this.__stack.length;--n>=0;)t.matrix(this.__stack[n].toArray());this.__matrix(t),this.__stack=[]}},v.prototype.toString=function(){var t,n,e=this,r=[];this.__evaluateStack();for(var i=0;i<this.segments.length;i++)n=e.segments[i][0],t=i>0&&"m"!==n&&"M"!==n&&n===e.segments[i-1][0],r=r.concat(t?e.segments[i].slice(1):e.segments[i]);return r.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},v.prototype.translate=function(t,n){return this.__stack.push(qt().translate(t,n||0)),this},v.prototype.scale=function(t,n){return this.__stack.push(qt().scale(t,n||0===n?n:t)),this},v.prototype.rotate=function(t,n,e){return this.__stack.push(qt().rotate(t,n||0,e||0)),this},v.prototype.skewX=function(t){return this.__stack.push(qt().skewX(t)),this},v.prototype.skewY=function(t){return this.__stack.push(qt().skewY(t)),this},v.prototype.matrix=function(t){return this.__stack.push(qt().matrix(t)),this},v.prototype.transform=function(t){return t.trim()?(this.__stack.push(function(t){var n,e,r=new qt;return t.split(_t).forEach((function(t){if(t.length){if(void 0!==kt[t])return void(n=t);switch(e=t.split(St).map((function(t){return+t||0})),n){case"matrix":return void(6===e.length&&r.matrix(e));case"scale":return void(1===e.length?r.scale(e[0],e[0]):2===e.length&&r.scale(e[0],e[1]));case"rotate":return void(1===e.length?r.rotate(e[0],0,0):3===e.length&&r.rotate(e[0],e[1],e[2]));case"translate":return void(1===e.length?r.translate(e[0],0):2===e.length&&r.translate(e[0],e[1]));case"skewX":return void(1===e.length&&r.skewX(e[0]));case"skewY":return void(1===e.length&&r.skewY(e[0]))}}})),r}(t)),this):this},v.prototype.round=function(t){var n,e=0,r=0,i=0,a=0;return t=t||0,this.__evaluateStack(),this.segments.forEach((function(o){var s=o[0].toLowerCase()===o[0];switch(o[0]){case"H":case"h":return s&&(o[1]+=i),i=o[1]-o[1].toFixed(t),void(o[1]=+o[1].toFixed(t));case"V":case"v":return s&&(o[1]+=a),a=o[1]-o[1].toFixed(t),void(o[1]=+o[1].toFixed(t));case"Z":case"z":return i=e,void(a=r);case"M":case"m":return s&&(o[1]+=i,o[2]+=a),i=o[1]-o[1].toFixed(t),a=o[2]-o[2].toFixed(t),e=i,r=a,o[1]=+o[1].toFixed(t),void(o[2]=+o[2].toFixed(t));case"A":case"a":return s&&(o[6]+=i,o[7]+=a),i=o[6]-o[6].toFixed(t),a=o[7]-o[7].toFixed(t),o[1]=+o[1].toFixed(t),o[2]=+o[2].toFixed(t),o[3]=+o[3].toFixed(t+2),o[6]=+o[6].toFixed(t),void(o[7]=+o[7].toFixed(t));default:return n=o.length,s&&(o[n-2]+=i,o[n-1]+=a),i=o[n-2]-o[n-2].toFixed(t),a=o[n-1]-o[n-1].toFixed(t),void o.forEach((function(n,e){e&&(o[e]=+o[e].toFixed(t))}))}})),this},v.prototype.iterate=function(t,n){var e,r,i,a=this.segments,o={},s=!1,u=0,h=0,c=0,f=0;if(n||this.__evaluateStack(),a.forEach((function(n,e){var r=t(n,e,u,h);Array.isArray(r)&&(o[e]=r,s=!0);var i=n[0]===n[0].toLowerCase();switch(n[0]){case"m":case"M":return u=n[1]+(i?u:0),h=n[2]+(i?h:0),c=u,void(f=h);case"h":case"H":return void(u=n[1]+(i?u:0));case"v":case"V":return void(h=n[1]+(i?h:0));case"z":case"Z":return u=c,void(h=f);default:u=n[n.length-2]+(i?u:0),h=n[n.length-1]+(i?h:0)}})),!s)return this;for(i=[],e=0;e<a.length;e++)if(void 0!==o[e])for(r=0;r<o[e].length;r++)i.push(o[e][r]);else i.push(a[e]);return this.segments=i,this},v.prototype.abs=function(){return this.iterate((function(t,n,e,r){var i,a=t[0],o=a.toUpperCase();if(a!==o)switch(t[0]=o,a){case"v":return void(t[1]+=r);case"a":return t[6]+=e,void(t[7]+=r);default:for(i=1;i<t.length;i++)t[i]+=i%2?e:r}}),!0),this},v.prototype.rel=function(){return this.iterate((function(t,n,e,r){var i,a=t[0],o=a.toLowerCase();if(a!==o&&(0!==n||"M"!==a))switch(t[0]=o,a){case"V":return void(t[1]-=r);case"A":return t[6]-=e,void(t[7]-=r);default:for(i=1;i<t.length;i++)t[i]-=i%2?e:r}}),!0),this},v.prototype.unarc=function(){return this.iterate((function(t,n,e,r){var i,a,o,s=[],u=t[0];return"A"!==u&&"a"!==u?null:("a"===u?(a=e+t[6],o=r+t[7]):(a=t[6],o=t[7]),0===(i=function(t,n,e,r,i,a,o,s,u){var h=Math.sin(u*Ct/360),c=Math.cos(u*Ct/360),f=c*(t-e)/2+h*(n-r)/2,g=-h*(t-e)/2+c*(n-r)/2;if(0===f&&0===g)return[];if(0===o||0===s)return[];o=Math.abs(o),s=Math.abs(s);var v=f*f/(o*o)+g*g/(s*s);v>1&&(o*=Math.sqrt(v),s*=Math.sqrt(v));var x=l(t,n,e,r,i,a,o,s,h,c),y=[],d=x[2],m=x[3],M=Math.max(Math.ceil(Math.abs(m)/(Ct/4)),1);m/=M;for(var w=0;w<M;w++)y.push(p(d,m)),d+=m;return y.map((function(t){for(var n=0;n<t.length;n+=2){var e=t[n+0],r=t[n+1],i=c*(e*=o)-h*(r*=s),a=h*e+c*r;t[n+0]=i+x[0],t[n+1]=a+x[1]}return t}))}(e,r,a,o,t[4],t[5],t[1],t[2],t[3])).length?[["a"===t[0]?"l":"L",t[6],t[7]]]:(i.forEach((function(t){s.push(["C",t[2],t[3],t[4],t[5],t[6],t[7]])})),s))})),this},v.prototype.unshort=function(){var t,n,e,r,i,a=this.segments;return this.iterate((function(o,s,u,h){var c,f=o[0],l=f.toUpperCase();s&&("T"===l?(c="t"===f,"Q"===(e=a[s-1])[0]?(t=e[1]-u,n=e[2]-h):"q"===e[0]?(t=e[1]-e[3],n=e[2]-e[4]):(t=0,n=0),r=-t,i=-n,c||(r+=u,i+=h),a[s]=[c?"q":"Q",r,i,o[1],o[2]]):"S"===l&&(c="s"===f,"C"===(e=a[s-1])[0]?(t=e[3]-u,n=e[4]-h):"c"===e[0]?(t=e[3]-e[5],n=e[4]-e[6]):(t=0,n=0),r=-t,i=-n,c||(r+=u,i+=h),a[s]=[c?"c":"C",r,i,o[1],o[2],o[3],o[4]]))})),this};var Zt=v,Ft={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},jt=/([astvzqmhlc])([^astvzqmhlc]*)/gi,zt=function(t){var n=[];return t.replace(jt,(function(t,e,r){var i=e.toLowerCase();for(r=function(t){var n=t.match(Ot);return n?n.map(Number):[]}(r),"m"===i&&r.length>2&&(n.push([e].concat(r.splice(0,2))),i="l",e="m"===e?"l":"L");r.length>=0;){if(r.length===Ft[i])return r.unshift(e),n.push(r);if(r.length<Ft[i])throw new Error("malformed path data");n.push([e].concat(r.splice(0,Ft[i])))}})),n},Ot=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,It=function(t,n,e,r,i,a,o,s){return new x(t,n,e,r,i,a,o,s)};x.prototype={constructor:x,init:function(){this.length=this.getArcLength([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y])},getTotalLength:function(){return this.length},getPointAtLength:function(t){var n=m(t,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]);return this.getPoint([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],n)},getTangentAtLength:function(t){var n=m(t,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]),e=this.getDerivative([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],n),r=Math.sqrt(e.x*e.x+e.y*e.y);return r>0?{x:e.x/r,y:e.y/r}:{x:0,y:0}},getPropertiesAtLength:function(t){var n,e=m(t,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]),r=this.getDerivative([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],e),i=Math.sqrt(r.x*r.x+r.y*r.y);n=i>0?{x:r.x/i,y:r.y/i}:{x:0,y:0};var a=this.getPoint([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],e);return{x:a.x,y:a.y,tangentX:n.x,tangentY:n.y}}};var Vt=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],Xt=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],Yt=[[1],[1,1],[1,2,1],[1,3,3,1]],Gt=2*Math.PI,Dt=function(t,n,e,r,i,a,o,s,u){var h=Math.sin(i*Gt/360),c=Math.cos(i*Gt/360),f=c*(t-s)/2+h*(n-u)/2,l=-h*(t-s)/2+c*(n-u)/2;if(0===f&&0===l)return[];if(0===e||0===r)return[];e=Math.abs(e),r=Math.abs(r);var p=f*f/(e*e)+l*l/(r*r);p>1&&(e*=Math.sqrt(p),r*=Math.sqrt(p));var g=function(t,n,e,r,i,a,o,s,u,h){var c=h*(t-e)/2+u*(n-r)/2,f=-u*(t-e)/2+h*(n-r)/2,l=o*o,p=s*s,g=c*c,v=f*f,x=l*p-l*v-p*g;x<0&&(x=0),x/=l*v+p*g;var y=(x=Math.sqrt(x)*(i===a?-1:1))*o/s*f,d=x*-s/o*c,m=h*y-u*d+(t+e)/2,M=u*y+h*d+(n+r)/2,w=(c-y)/o,b=(f-d)/s,L=(-c-y)/o,A=(-f-d)/s,P=k(1,0,w,b),q=k(w,b,L,A);return 0===a&&q>0&&(q-=Gt),1===a&&q<0&&(q+=Gt),[m,M,P,q]}(t,n,s,u,a,o,e,r,h,c),v=[],x=g[2],y=g[3],d=Math.max(Math.ceil(Math.abs(y)/(Gt/4)),1);y/=d;for(var m=0;m<d;m++)v.push(_(x,y)),x+=y;return v.map((function(t){for(var n=0;n<t.length;n+=2){var i=t[n+0],a=t[n+1],o=c*(i*=e)-h*(a*=r),s=h*i+c*a;t[n+0]=o+g[0],t[n+1]=s+g[1]}return t}))},Ht=function(t,n,e,r,i,a,o,s,u){return new S(t,n,e,r,i,a,o,s,u)};S.prototype={constructor:S,init:function(){},getTotalLength:function(){return this.length},getPointAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var n=this.partialLengths.length-1;this.partialLengths[n]>=t&&this.partialLengths[n]>0;)n--;n<this.partialLengths.length-1&&n++;for(var e=0,r=0;r<n;r++)e+=this.partialLengths[r];return this.curves[n].getPointAtLength(t-e)},getTangentAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var n=this.partialLengths.length-1;this.partialLengths[n]>=t&&this.partialLengths[n]>0;)n--;n<this.partialLengths.length-1&&n++;for(var e=0,r=0;r<n;r++)e+=this.partialLengths[r];return this.curves[n].getTangentAtLength(t-e)},getPropertiesAtLength:function(t){var n=this.getTangentAtLength(t),e=this.getPointAtLength(t);return{x:e.x,y:e.y,tangentX:n.x,tangentY:n.y}}};var Nt=function(t,n,e,r){return new C(t,n,e,r)};C.prototype.getTotalLength=function(){return Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2))},C.prototype.getPointAtLength=function(t){var n=t/Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2)),e=(this.x1-this.x0)*n,r=(this.y1-this.y0)*n;return{x:this.x0+e,y:this.y0+r}},C.prototype.getTangentAtLength=function(){var t=Math.sqrt((this.x1-this.x0)*(this.x1-this.x0)+(this.y1-this.y0)*(this.y1-this.y0));return{x:(this.x1-this.x0)/t,y:(this.y1-this.y0)/t}},C.prototype.getPropertiesAtLength=function(t){var n=this.getPointAtLength(t),e=this.getTangentAtLength();return{x:n.x,y:n.y,tangentX:e.x,tangentY:e.y}};var Qt=function(t){function n(t){if(!t)return null;for(var a,o=zt(t),s=[0,0],u=[0,0],h=0;h<o.length;h++)"M"===o[h][0]?(s=[o[h][1],o[h][2]],i.push(null)):"m"===o[h][0]?(s=[o[h][1]+s[0],o[h][2]+s[1]],i.push(null)):"L"===o[h][0]?(e+=Math.sqrt(Math.pow(s[0]-o[h][1],2)+Math.pow(s[1]-o[h][2],2)),i.push(new Nt(s[0],o[h][1],s[1],o[h][2])),s=[o[h][1],o[h][2]]):"l"===o[h][0]?(e+=Math.sqrt(Math.pow(o[h][1],2)+Math.pow(o[h][2],2)),i.push(new Nt(s[0],o[h][1]+s[0],s[1],o[h][2]+s[1])),s=[o[h][1]+s[0],o[h][2]+s[1]]):"H"===o[h][0]?(e+=Math.abs(s[0]-o[h][1]),i.push(new Nt(s[0],o[h][1],s[1],s[1])),s[0]=o[h][1]):"h"===o[h][0]?(e+=Math.abs(o[h][1]),i.push(new Nt(s[0],s[0]+o[h][1],s[1],s[1])),s[0]=o[h][1]+s[0]):"V"===o[h][0]?(e+=Math.abs(s[1]-o[h][1]),i.push(new Nt(s[0],s[0],s[1],o[h][1])),s[1]=o[h][1]):"v"===o[h][0]?(e+=Math.abs(o[h][1]),i.push(new Nt(s[0],s[0],s[1],s[1]+o[h][1])),s[1]=o[h][1]+s[1]):"z"===o[h][0]||"Z"===o[h][0]?(e+=Math.sqrt(Math.pow(o[0][1]-s[0],2)+Math.pow(o[0][2]-s[1],2)),i.push(new Nt(s[0],o[0][1],s[1],o[0][2])),s=[o[0][1],o[0][2]]):"C"===o[h][0]?(a=new It(s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4],o[h][5],o[h][6]),e+=a.getTotalLength(),s=[o[h][5],o[h][6]],i.push(a)):"c"===o[h][0]?(a=new It(s[0],s[1],s[0]+o[h][1],s[1]+o[h][2],s[0]+o[h][3],s[1]+o[h][4],s[0]+o[h][5],s[1]+o[h][6]),e+=a.getTotalLength(),s=[o[h][5]+s[0],o[h][6]+s[1]],i.push(a)):"S"===o[h][0]?(a=h>0&&["C","c","S","s"].indexOf(o[h-1][0])>-1?new It(s[0],s[1],2*s[0]-o[h-1][o[h-1].length-4],2*s[1]-o[h-1][o[h-1].length-3],o[h][1],o[h][2],o[h][3],o[h][4]):new It(s[0],s[1],s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4]),e+=a.getTotalLength(),s=[o[h][3],o[h][4]],i.push(a)):"s"===o[h][0]?(a=h>0&&["C","c","S","s"].indexOf(o[h-1][0])>-1?new It(s[0],s[1],s[0]+a.d.x-a.c.x,s[1]+a.d.y-a.c.y,s[0]+o[h][1],s[1]+o[h][2],s[0]+o[h][3],s[1]+o[h][4]):new It(s[0],s[1],s[0],s[1],s[0]+o[h][1],s[1]+o[h][2],s[0]+o[h][3],s[1]+o[h][4]),e+=a.getTotalLength(),s=[o[h][3]+s[0],o[h][4]+s[1]],i.push(a)):"Q"===o[h][0]?(a=new It(s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4]),e+=a.getTotalLength(),i.push(a),s=[o[h][3],o[h][4]],u=[o[h][1],o[h][2]]):"q"===o[h][0]?(a=new It(s[0],s[1],s[0]+o[h][1],s[1]+o[h][2],s[0]+o[h][3],s[1]+o[h][4]),e+=a.getTotalLength(),u=[s[0]+o[h][1],s[1]+o[h][2]],s=[o[h][3]+s[0],o[h][4]+s[1]],i.push(a)):"T"===o[h][0]?(a=h>0&&["Q","q","T","t"].indexOf(o[h-1][0])>-1?new It(s[0],s[1],2*s[0]-u[0],2*s[1]-u[1],o[h][1],o[h][2]):new Nt(s[0],o[h][1],s[1],o[h][2]),i.push(a),e+=a.getTotalLength(),u=[2*s[0]-u[0],2*s[1]-u[1]],s=[o[h][1],o[h][2]]):"t"===o[h][0]?(a=h>0&&["Q","q","T","t"].indexOf(o[h-1][0])>-1?new It(s[0],s[1],2*s[0]-u[0],2*s[1]-u[1],s[0]+o[h][1],s[1]+o[h][2]):new Nt(s[0],s[0]+o[h][1],s[1],s[1]+o[h][2]),e+=a.getTotalLength(),u=[2*s[0]-u[0],2*s[1]-u[1]],s=[o[h][1]+s[0],o[h][2]+s[0]],i.push(a)):"A"===o[h][0]?(a=new Ht(s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4],o[h][5],o[h][6],o[h][7]),e+=a.getTotalLength(),s=[o[h][6],o[h][7]],i.push(a)):"a"===o[h][0]&&(a=new Ht(s[0],s[1],o[h][1],o[h][2],o[h][3],o[h][4],o[h][5],s[0]+o[h][6],s[1]+o[h][7]),e+=a.getTotalLength(),s=[s[0]+o[h][6],s[1]+o[h][7]],i.push(a)),r.push(e);return n}var e=0,r=[],i=[];n.getTotalLength=function(){return e},n.getPointAtLength=function(t){var n=a(t);return i[n.i].getPointAtLength(n.fraction)},n.getTangentAtLength=function(t){var n=a(t);return i[n.i].getTangentAtLength(n.fraction)},n.getPropertiesAtLength=function(t){var n=a(t);return i[n.i].getPropertiesAtLength(n.fraction)};var a=function(t){t<0?t=0:t>e&&(t=e);for(var n=r.length-1;r[n]>=t&&r[n]>0;)n--;return n++,{fraction:t-r[n-1],i:n}};return n(t)},Ut='All shapes must be supplied as arrays of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).\nExample valid ways of supplying a shape would be:\n[[0, 0], [10, 0], [10, 10]]\n"M0,0 L10,0 L10,10Z"\n',Rt="flubber.all() expects two arrays of equal length as arguments. Each element in both arrays should be an array of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).",Bt=function(t,n){for(var e,r,i,a=t.length,o=1/0,s=0;s<a;s++)!function(i){r=0,n.forEach((function(n,e){var o=E(t[(i+e)%a],n);r+=o*o})),r<o&&(o=r,e=i)}(s);e&&(i=t.splice(0,e),t.splice.apply(t,[t.length,0].concat(i)))},Wt=D;D.deviation=function(t,n,e,r){var i=n&&n.length,a=i?n[0]*e:t.length,o=Math.abs(ft(t,0,a,e));if(i)for(var s=0,u=n.length;s<u;s++){var h=n[s]*e,c=s<u-1?n[s+1]*e:t.length;o-=Math.abs(ft(t,h,c,e))}var f=0;for(s=0;s<r.length;s+=3){var l=r[s]*e,p=r[s+1]*e,g=r[s+2]*e;f+=Math.abs((t[l]-t[g])*(t[p+1]-t[l+1])-(t[l]-t[p])*(t[g+1]-t[l+1]))}return 0===o&&0===f?0:Math.abs((f-o)/o)},D.flatten=function(t){for(var n=t[0][0].length,e={vertices:[],holes:[],dimensions:n},r=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<n;o++)e.vertices.push(t[i][a][o]);i>0&&(r+=t[i-1].length,e.holes.push(r))}return e};var $t=function(t){return t},Jt=function(t){if(null==t)return $t;var n,e,r=t.scale[0],i=t.scale[1],a=t.translate[0],o=t.translate[1];return function(t,s){s||(n=e=0);var u=2,h=t.length,c=new Array(h);for(c[0]=(n+=t[0])*r+a,c[1]=(e+=t[1])*i+o;u<h;)c[u]=t[u],++u;return c}},Kt=function(t,n){for(var e,r=t.length,i=r-n;i<--r;)e=t[i],t[i++]=t[r],t[r]=e},tn=function(t,n){return"GeometryCollection"===n.type?{type:"FeatureCollection",features:n.geometries.map((function(n){return lt(t,n)}))}:lt(t,n)},nn=function(t,n){function e(n){var e,r=t.arcs[n<0?~n:n],i=r[0];return t.transform?(e=[0,0],r.forEach((function(t){e[0]+=t[0],e[1]+=t[1]}))):e=r[r.length-1],n<0?[e,i]:[i,e]}function r(t,n){for(var e in t){var r=t[e];delete n[r.start],delete r.start,delete r.end,r.forEach((function(t){i[t<0?~t:t]=1})),s.push(r)}}var i={},a={},o={},s=[],u=-1;return n.forEach((function(e,r){var i,a=t.arcs[e<0?~e:e];a.length<3&&!a[1][0]&&!a[1][1]&&(i=n[++u],n[u]=e,n[r]=i)})),n.forEach((function(t){var n,r,i=e(t),s=i[0],u=i[1];if(n=o[s])if(delete o[n.end],n.push(t),n.end=u,r=a[u]){delete a[r.start];var h=r===n?n:n.concat(r);a[h.start=n.start]=o[h.end=r.end]=h}else a[n.start]=o[n.end]=n;else if(n=a[u])if(delete a[n.start],n.unshift(t),n.start=s,r=o[s]){delete o[r.end];var c=r===n?n:r.concat(n);a[c.start=r.start]=o[c.end=n.end]=c}else a[n.start]=o[n.end]=n;else a[(n=[t]).start=s]=o[n.end=u]=n})),r(o,a),r(a,o),n.forEach((function(t){i[t<0?~t:t]||s.push([t])})),s},en=function(t,n){for(var e=0,r=t.length;e<r;){var i=e+r>>>1;t[i]<n?e=i+1:r=i}return e},rn=function(t){function n(t,n){t.forEach((function(t){t<0&&(t=~t);var e=r[t];e?e.push(n):r[t]=[n]}))}function e(t,e){t.forEach((function(t){n(t,e)}))}var r={},i=t.map((function(){return[]})),a={LineString:n,MultiLineString:e,Polygon:e,MultiPolygon:function(t,n){t.forEach((function(t){e(t,n)}))}};for(var o in t.forEach((function t(n,e){"GeometryCollection"===n.type?n.geometries.forEach((function(n){t(n,e)})):n.type in a&&a[n.type](n.arcs,e)})),r)for(var s=r[o],u=s.length,h=0;h<u;++h)for(var c=h+1;c<u;++c){var f,l=s[h],p=s[c];(f=i[l])[o=en(f,p)]!==p&&f.splice(o,0,p),(f=i[p])[o=en(f,l)]!==l&&f.splice(o,0,l)}return i},an=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},on=function(t){return 1===t.length&&(t=function(t){return function(n,e){return an(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}},sn=(on(an).right,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),function(t,n){return function(t,n){for(var e=t.objects.triangles.geometries,r=on((function(t){return t.area})).left;e.length>n;)!function(){var n=e[0],i=rn(e)[0][0],a=e[i],o=gt(t,[n,a]);o.area=n.area+a.area,o.type="Polygon",o.arcs=o.arcs[0],e.splice(i,1),e.shift(),e.splice(r(e,o.area),0,o)}();if(n>e.length)throw new RangeError("Can't collapse topology into "+n+" pieces.");return tn(t,t.objects.triangles).features.map((function(t){return t.geometry.coordinates[0].pop(),t.geometry.coordinates[0]}))}(function(t,n){var e={},r={type:"Topology",objects:{triangles:{type:"GeometryCollection",geometries:[]}},arcs:[]};return t.forEach((function(t){var i=[];t.forEach((function(t,a){var o=t[0]<t[1]?t.join(","):t[1]+","+t[0],s=t.map((function(t){return n[t]}));o in e?i.push(~e[o]):(i.push(e[o]=r.arcs.length),r.arcs.push(s))})),r.objects.triangles.geometries.push({type:"Polygon",area:Math.abs(Mt(t.map((function(t){return n[t[0]]})))),arcs:[i]})})),r.objects.triangles.geometries.sort((function(t,n){return t.area-n.area})),r}(function(t){for(var n=Wt(t.reduce((function(t,n){return t.concat([n[0]],[n[1]])}),[])),e=[],r=0,i=n.length;r<i;r+=3)e.push([[n[r],n[r+1]],[n[r+1],n[r+2]],[n[r+2],n[r]]]);return e}(t),t),n)}),un=function(t,n){if(t.length>8)return t.map((function(t,n){return n}));var e=t.map((function(t){return n.map((function(n){return function(t,n){var e=E(j(t),j(n));return e*e}(t,n)}))}));return function(t,n,e){var r=1/0,i=t.map((function(t,n){return n}));return function t(n,a,o){void 0===a&&(a=[]),void 0===o&&(o=0);for(var s=0;s<n.length;s++){var u=n.splice(s,1),h=e[u[0]][a.length];o+h<r&&(n.length?t(n.slice(),a.concat(u),o+h):(r=o+h,i=a.concat(u))),n.length&&n.splice(s,0,u[0])}}(i),i}(t,0,e)};t.interpolate=function(t,n,e){void 0===e&&(e={});var r=e.maxSegmentLength;void 0===r&&(r=10);var i=e.string;void 0===i&&(i=!0);var a=G(Y(t,r),Y(n,r),i);return!i||"string"!=typeof t&&"string"!=typeof n?a:function(e){return e<1e-4&&"string"==typeof t?t:1-e<1e-4&&"string"==typeof n?n:a(e)}},t.separate=vt,t.combine=function(t,n,e){void 0===e&&(e={});var r=e.maxSegmentLength;void 0===r&&(r=10);var i=e.string;void 0===i&&(i=!0);var a=e.single;void 0===a&&(a=!1);var o=vt(n,t,{maxSegmentLength:r,string:i,single:a});return a?function(t){return o(1-t)}:o.map((function(t){return function(n){return t(1-n)}}))},t.interpolateAll=function(t,n,e){void 0===e&&(e={});var r=e.maxSegmentLength;void 0===r&&(r=10);var i=e.string;void 0===i&&(i=!0);var a=e.single;if(void 0===a&&(a=!1),!Array.isArray(t)||!Array.isArray(n)||t.length!==n.length||!t.length)throw new TypeError(Rt);var o,s,u=function(t){return Y(t,r)},h=t.map(u),c=n.map(u);return a?(t.every((function(t){return"string"==typeof t}))&&(o=t.slice(0)),n.every((function(t){return"string"==typeof t}))&&(s=n.slice(0))):(o=t.slice(0),s=n.slice(0)),xt(h,c,{string:i,single:a,t0:o,t1:s,match:!1})},t.splitPathString=function(t){return O(z(t))},t.toPathString=I,t.fromCircle=yt,t.toCircle=function(t,n,e,r,i){var a=yt(n,e,r,t,i);return function(t){return a(1-t)}},t.fromRect=dt,t.toRect=function(t,n,e,r,i,a){var o=dt(n,e,r,i,t,a);return function(t){return o(1-t)}},Object.defineProperty(t,"__esModule",{value:!0})}(n)}},n={};function e(r){var i=n[r];if(void 0!==i)return i.exports;var a=n[r]={exports:{}};return t[r].call(a.exports,a,a.exports,e),a.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";e.r(r),e.d(r,{morphPath:()=>a,morphPathSimple:()=>s,morphPathSmooth:()=>o});var t=e(5814);function n(t){var n=function(t,n,e){return Math.min(Math.max(t,n),e)}(t,0,1);return Math.pow(n,2)*(3-2*n)}var i=function(){return i=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t},i.apply(this,arguments)};function a(t,e,r,i){var a=null,o=null,s=null,u="duration"in i?i.duration:500,h="easing"in i&&"function"==typeof i.easing?i.easing:n;function c(n){null===a&&(a=n),null===o&&(o="function"==typeof t?t():t),null===s&&(s=r(o.getAttribute("d"),e));var i=n-a,f=Math.min(i/u,1),l=h(f),p=s(l);o.setAttribute("d",p),f<1&&requestAnimationFrame(c)}return function(n){return n({animate:!0,animateCallback:function(){a=null,o=null,s=null,requestAnimationFrame(c)},updateCallback:function(){("function"==typeof t?t():t).setAttribute("d",e)}})}}function o(n,e,r){return void 0===r&&(r={}),a(n,e,(function(n,e){var i;return(0,t.interpolate)(n,e,{maxSegmentLength:null!==(i=r.maxSegmentLength)&&void 0!==i?i:10})}),r)}function s(t,n,e){void 0===e&&(e={});var r="duration"in e?e.duration:500,a="easing"in e&&"string"==typeof e.easing?e.easing:null;return function(e){var o="function"==typeof t?t():t;e({animate:!0,element:o,animationParams:i({d:n,duration:r},null!==a?{easing:a}:{}),updateCallback:function(){o.setAttribute("d",n)}})}}})(),r})()));