presenter 0.6.2 → 0.6.4

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.
package/dist/presenter.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Presenter=e():t.Presenter=e()}(this,()=>(()=>{var t={814:function(t,e){!function(t){"use strict";function e(t){return 10===t||13===t||8232===t||8233===t||32===t||9===t||11===t||12===t||160===t||t>=5760&&Lt.indexOf(t)>=0}function n(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 o(t){for(;t.index<t.max&&e(t.path.charCodeAt(t.index));)t.index++}function a(t){var e,r=t.index,i=r,o=t.max,a=!1,s=!1,h=!1,c=!1;if(i>=o)t.err="SvgPath: missed param (at pos "+i+")";else if(43!==(e=t.path.charCodeAt(i))&&45!==e||(e=++i<o?t.path.charCodeAt(i):0),n(e)||46===e){if(46!==e){if(a=48===e,e=++i<o?t.path.charCodeAt(i):0,a&&i<o&&e&&n(e))return void(t.err="SvgPath: numbers started with `0` such as `09` are ilegal (at pos "+r+")");for(;i<o&&n(t.path.charCodeAt(i));)i++,s=!0;e=i<o?t.path.charCodeAt(i):0}if(46===e){for(c=!0,i++;n(t.path.charCodeAt(i));)i++,h=!0;e=i<o?t.path.charCodeAt(i):0}if(101===e||69===e){if(c&&!s&&!h)return void(t.err="SvgPath: invalid float exponent (at pos "+i+")");if(43!==(e=++i<o?t.path.charCodeAt(i):0)&&45!==e||i++,!(i<o&&n(t.path.charCodeAt(i))))return void(t.err="SvgPath: invalid float exponent (at pos "+i+")");for(;i<o&&n(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 e,n;n=(e=t.path[t.segmentStart]).toLowerCase();var r=t.data;if("m"===n&&r.length>2&&(t.result.push([e,r[0],r[1]]),r=r.slice(2),n="l",e="m"===e?"l":"L"),"r"===n)t.result.push([e].concat(r));else for(;r.length>=At[n]&&(t.result.push([e].concat(r.splice(0,At[n]))),At[n]););}function h(t){var e,n,i,h=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(n=At[t.path[t.index].toLowerCase()],t.index++,o(t),t.data=[],n){for(e=!1;;){for(i=n;i>0;i--){if(a(t),t.err.length)return;t.data.push(t.param),o(t),e=!1,t.index<h&&44===t.path.charCodeAt(t.index)&&(t.index++,o(t),e=!0)}if(!e){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 c(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}function u(){if(!(this instanceof u))return new u;this.queue=[],this.cache=null}function l(t,e,n,r){var i=t*r-e*n<0?-1:1,o=(t*n+e*r)/(Math.sqrt(t*t+e*e)*Math.sqrt(t*t+e*e));return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function f(t,e,n,r,i,o,a,s,h,c){var u=c*(t-n)/2+h*(e-r)/2,f=-h*(t-n)/2+c*(e-r)/2,p=a*a,g=s*s,d=u*u,y=f*f,v=p*g-p*y-g*d;v<0&&(v=0),v/=p*y+g*d;var x=(v=Math.sqrt(v)*(i===o?-1:1))*a/s*f,w=v*-s/a*u,b=c*x-h*w+(t+n)/2,m=h*x+c*w+(e+r)/2,M=(u-x)/a,A=(f-w)/s,L=(-u-x)/a,P=(-f-w)/s,O=l(1,0,M,A),T=l(M,A,L,P);return 0===o&&T>0&&(T-=jt),1===o&&T<0&&(T+=jt),[b,m,O,T]}function p(t,e){var n=4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[r,i,r-i*n,i+r*n,o+a*n,a-o*n,o,a]}function g(t,e,n){if(!(this instanceof g))return new g(t,e,n);this.rx=t,this.ry=e,this.ax=n}function d(t){if(!(this instanceof d))return new d(t);var e=Pt(t);this.segments=e.segments,this.err=e.err,this.__stack=[]}function y(t,e,n,r,i,o,a,s){this.a={x:t,y:e},this.b={x:n,y:r},this.c={x:i,y:o},this.d={x:a,y:s},null!=a&&null!=s?(this.getArcLength=O,this.getPoint=m,this.getDerivative=x):(this.getArcLength=M,this.getPoint=b,this.getDerivative=v),this.init()}function v(t,e,n){return{x:2*(1-n)*(t[1]-t[0])+2*n*(t[2]-t[1]),y:2*(1-n)*(e[1]-e[0])+2*n*(e[2]-e[1])}}function x(t,e,n){return b([3*(t[1]-t[0]),3*(t[2]-t[1]),3*(t[3]-t[2])],[3*(e[1]-e[0]),3*(e[2]-e[1]),3*(e[3]-e[2])],n)}function w(t,e,n,r,i){for(var o=1,a=t/e,s=(t-n(r,i,a))/e;o>.001;){var h=n(r,i,a+s),c=n(r,i,a-s),u=Math.abs(t-h)/e,l=Math.abs(t-c)/e;u<o?(o=u,a+=s):l<o?(o=l,a-=s):s/=2}return a}function b(t,e,n){return{x:(1-n)*(1-n)*t[0]+2*(1-n)*n*t[1]+n*n*t[2],y:(1-n)*(1-n)*e[0]+2*(1-n)*n*e[1]+n*n*e[2]}}function m(t,e,n){return{x:(1-n)*(1-n)*(1-n)*t[0]+3*(1-n)*(1-n)*n*t[1]+3*(1-n)*n*n*t[2]+n*n*n*t[3],y:(1-n)*(1-n)*(1-n)*e[0]+3*(1-n)*(1-n)*n*e[1]+3*(1-n)*n*n*e[2]+n*n*n*e[3]}}function M(t,e,n){void 0===n&&(n=1);var r=t[0]-2*t[1]+t[2],i=e[0]-2*e[1]+e[2],o=2*t[1]-2*t[0],a=2*e[1]-2*e[0],s=4*(r*r+i*i),h=4*(r*o+i*a),c=o*o+a*a;if(0===s)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));var u=h/(2*s),l=n+u,f=c/s-u*u;return Math.sqrt(s)/2*(l*Math.sqrt(l*l+f)-u*Math.sqrt(u*u+f)+f*Math.log(Math.abs((l+Math.sqrt(l*l+f))/(u+Math.sqrt(u*u+f)))))}function A(t,e){return Bt[t][e]}function L(t,e,n){var r,i,o,a=n.length-1;if(0===a)return 0;if(0===t){for(i=0,o=0;o<=a;o++)i+=A(a,o)*Math.pow(1-e,a-o)*Math.pow(e,o)*n[o];return i}for(r=new Array(a),o=0;o<a;o++)r[o]=a*(n[o+1]-n[o]);return L(t-1,e,r)}function P(t,e,n){var r=L(1,n,t),i=L(1,n,e),o=r*r+i*i;return Math.sqrt(o)}function O(t,e,n){var r,i,o,a;for(void 0===n&&(n=1),r=n/2,i=0,o=0;o<20;o++)a=r*Ft[20][o]+r,i+=Dt[20][o]*P(t,e,a);return r*i}function T(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)}function S(t,e){var n=4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[r,i,r-i*n,i+r*n,o+a*n,a-o*n,o,a]}function E(t,e,n,r,i,o,a,s,h){var c=0,u=[],l=[];Zt(t,e,n,r,i,o,a,s,h).forEach(function(t){var e=new zt(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),n=e.getTotalLength();c+=n,u.push(n),l.push(e)}),this.length=c,this.partialLengths=u,this.curves=l}function j(t,e,n,r){this.x0=t,this.x1=e,this.y0=n,this.y1=r}function I(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function C(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function k(t,e,n){var r=t.map(function(t,n){return function(t,e){return function(n){return t.map(function(t,r){return t+n*(e[r]-t)})}}(t,e[n])});return function(t){var e=r.map(function(e){return e(t)});return n?z(e):e}}function q(t){return"number"==typeof t&&isFinite(t)}function _(t){return function(t){for(var e=0;e<t.length-2;e++){var n=t[e],r=t[e+1],i=t[e+2];if(n[0]*(r[1]-i[1])+r[0]*(i[1]-n[1])+i[0]*(n[1]-r[1]))return!0}return!1}(t)?mt(t):[(t[0][0]+t[t.length-1][0])/2,(t[0][1]+t[t.length-1][1])/2]}function N(t){return new kt(t).abs()}function R(t){return t.toString().split("M").map(function(t,e){return t=t.trim(),e&&t?"M"+t:t}).filter(function(t){return t})}function z(t){return"M"+t.join("L")+"Z"}function F(t,e){var n=N(t);return function(t){var e=t.segments||[],n=[];if(!e.length||"M"!==e[0][0])return!1;for(var r=0;r<e.length;r++){var i=e[r],o=i[0],a=i[1],s=i[2];if("M"===o&&r||"Z"===o)break;if("M"===o||"L"===o)n.push([a,s]);else if("H"===o)n.push([a,n[n.length-1][1]]);else{if("V"!==o)return!1;n.push([n[n.length-1][0],a])}}return!!n.length&&{ring:n}}(n)||function(t,e){var n,r,i=R(t)[0],o=[],a=3;if(!i)throw new TypeError(Wt);n=(r=function(t){if("undefined"!=typeof window&&window&&window.document)try{var e=window.document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttributeNS(null,"d",t),e}catch(t){}return Ut(t)}(i)).getTotalLength(),e&&q(e)&&e>0&&(a=Math.max(a,Math.ceil(n/e)));for(var s=0;s<a;s++){var h=r.getPointAtLength(n*s/a);o.push([h.x,h.y])}return{ring:o,skipBisect:!0}}(n,e)}function D(t,e){for(var n=t.length+e,r=Mt(t)/e,i=0,o=0,a=r/2;t.length<n;){var s=t[i],h=t[(i+1)%t.length],c=I(s,h);a<=o+c?(t.splice(i+1,0,c?C(s,h,(a-o)/c):s.slice(0)),a+=r):(o+=c,i++)}}function B(t,e){var n,r;if("string"==typeof t){var i=F(t,e);t=i.ring,r=i.skipBisect}else if(!Array.isArray(t))throw new TypeError(Wt);if(!function(t){return t.every(function(t){return Array.isArray(t)&&t.length>=2&&q(t[0])&&q(t[1])})}(n=t.slice(0)))throw new TypeError(Wt);return n.length>1&&function(t,e){return I(t,e)<1e-9}(n[0],n[n.length-1])&&n.pop(),bt(n)>0&&n.reverse(),!r&&e&&q(e)&&e>0&&function(t,e){void 0===e&&(e=1/0);for(var n=0;n<t.length;n++)for(var r=t[n],i=n===t.length-1?t[0]:t[n+1];I(r,i)>e;)i=C(r,i,.5),t.splice(n+1,0,i)}(n,e),n}function G(t,e,n){var r;return D(t,(r=t.length-e.length)<0?-1*r:0),D(e,r>0?r:0),Kt(t,e),k(t,e,n)}function Z(t,e,n){n=n||2;var r,i,o,a,s,h,c,u=e&&e.length,l=u?e[0]*n:t.length,f=X(t,0,l,n,!0),p=[];if(!f)return p;if(u&&(f=function(t,e,n,r){var i,o,a,s=[];for(i=0,o=e.length;i<o;i++)(a=X(t,e[i]*r,i<o-1?e[i+1]*r:t.length,r,!1))===a.next&&(a.steiner=!0),s.push(tt(a));for(s.sort(Q),i=0;i<s.length;i++)$(s[i],n),n=Y(n,n.next);return n}(t,e,f,n)),t.length>80*n){r=o=t[0],i=a=t[1];for(var g=n;g<l;g+=n)(s=t[g])<r&&(r=s),(h=t[g+1])<i&&(i=h),s>o&&(o=s),h>a&&(a=h);c=Math.max(o-r,a-i)}return U(f,p,n,r,i,c),p}function X(t,e,n,r,i){var o,a;if(i===lt(t,e,n,r)>0)for(o=e;o<n;o+=r)a=ht(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=ht(o,t[o],t[o+1],a);return a&&it(a,a.next)&&(ct(a),a=a.next),a}function Y(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!it(r,r.next)&&0!==rt(r.prev,r,r.next))r=r.next;else{if(ct(r),(r=e=r.prev)===r.next)return null;n=!0}}while(n||r!==e);return e}function U(t,e,n,r,i,o,a){if(t){!a&&o&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=J(i.x,i.y,e,n,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 e,n,r,i,o,a,s,h,c=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<c&&(s++,r=r.nextZ);e++);for(h=c;s>0||h>0&&r;)0===s?(i=r,r=r.nextZ,h--):0!==h&&r?n.z<=r.z?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,h--):(i=n,n=n.nextZ,s--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(t,r,i,o);for(var s,h,c=t;t.prev!==t.next;)if(s=t.prev,h=t.next,o?H(t,r,i,o):W(t))e.push(s.i/n),e.push(t.i/n),e.push(h.i/n),ct(t),t=h.next,c=h.next;else if((t=h)===c){a?1===a?U(t=K(t,e,n),e,n,r,i,o,2):2===a&&V(t,e,n,r,i,o):U(Y(t),e,n,r,i,o,1);break}}}function W(t){var e=t.prev,n=t,r=t.next;if(rt(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(et(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&rt(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function H(t,e,n,r){var i=t.prev,o=t,a=t.next;if(rt(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,h=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,l=J(s,h,e,n,r),f=J(c,u,e,n,r),p=t.nextZ;p&&p.z<=f;){if(p!==t.prev&&p!==t.next&&et(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&rt(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=l;){if(p!==t.prev&&p!==t.next&&et(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&rt(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function K(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!it(i,o)&&ot(i,r,r.next,o)&&at(i,o)&&at(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),ct(r),ct(r.next),r=t=o),r=r.next}while(r!==t);return r}function V(t,e,n,r,i,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&nt(a,s)){var h=st(a,s);return a=Y(a,a.next),h=Y(h,h.next),U(a,e,n,r,i,o),void U(h,e,n,r,i,o)}s=s.next}a=a.next}while(a!==t)}function Q(t,e){return t.x-e.x}function $(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===a)return n.prev;var h,c=n,u=n.x,l=n.y,f=1/0;for(r=n.next;r!==c;)i>=r.x&&r.x>=u&&et(o<l?i:a,o,u,l,o<l?a:i,o,r.x,r.y)&&((h=Math.abs(o-r.y)/(i-r.x))<f||h===f&&r.x>n.x)&&at(r,t)&&(n=r,f=h),r=r.next;return n}(t,e)){var n=st(e,t);Y(n,n.next)}}function J(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)/i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)/i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function tt(t){var e=t,n=t;do{e.x<n.x&&(n=e),e=e.next}while(e!==t);return n}function et(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function nt(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&ot(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&at(t,e)&&at(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)}function rt(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function it(t,e){return t.x===e.x&&t.y===e.y}function ot(t,e,n,r){return!!(it(t,e)&&it(n,r)||it(t,r)&&it(n,e))||rt(t,e,n)>0!=rt(t,e,r)>0&&rt(n,r,t)>0!=rt(n,r,e)>0}function at(t,e){return rt(t.prev,t,t.next)<0?rt(t,e,t.next)>=0&&rt(t,t.prev,e)>=0:rt(t,e,t.prev)<0||rt(t,t.next,e)<0}function st(t,e){var n=new ut(t.i,t.x,t.y),r=new ut(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function ht(t,e,n,r){var i=new ut(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function ct(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 ut(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function lt(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}function ft(t,e){var n=e.id,r=e.bbox,i=null==e.properties?{}:e.properties,o=pt(t,e);return null==n&&null==r?{type:"Feature",properties:i,geometry:o}:null==r?{type:"Feature",id:n,properties:i,geometry:o}:{type:"Feature",id:n,bbox:r,properties:i,geometry:o}}function pt(t,e){function n(t,e){e.length&&e.pop();for(var n=h[t<0?~t:t],r=0,i=n.length;r<i;++r)e.push(s(n[r],r));t<0&&Jt(e,i)}function r(t){return s(t)}function i(t){for(var e=[],r=0,i=t.length;r<i;++r)n(t[r],e);return e.length<2&&e.push(e[0]),e}function o(t){for(var e=i(t);e.length<4;)e.push(e[0]);return e}function a(t){return t.map(o)}var s=$t(t.transform),h=t.arcs;return function t(e){var n,o=e.type;switch(o){case"GeometryCollection":return{type:o,geometries:e.geometries.map(t)};case"Point":n=r(e.coordinates);break;case"MultiPoint":n=e.coordinates.map(r);break;case"LineString":n=i(e.arcs);break;case"MultiLineString":n=e.arcs.map(i);break;case"Polygon":n=a(e.arcs);break;case"MultiPolygon":n=e.arcs.map(a);break;default:return null}return{type:o,coordinates:n}}(e)}function gt(t,e){function n(t){t.forEach(function(e){e.forEach(function(e){(i[e=e<0?~e:e]||(i[e]=[])).push(t)})}),o.push(t)}function r(e){return function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[0]*i[1]-e[1]*i[0];return Math.abs(o)}(pt(t,{type:"Polygon",arcs:[e]}).coordinates[0])}var i={},o=[],a=[];return e.forEach(function t(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"Polygon":n(e.arcs);break;case"MultiPolygon":e.arcs.forEach(n)}}),o.forEach(function(t){if(!t._){var e=[],n=[t];for(t._=1,a.push(e);t=n.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){i[t<0?~t:t].forEach(function(t){t._||(t._=1,n.push(t))})})})}}),o.forEach(function(t){delete t._}),{type:"MultiPolygon",arcs:a.map(function(e){var n,o=[];if(e.forEach(function(t){t.forEach(function(t){t.forEach(function(t){i[t<0?~t:t].length<2&&o.push(t)})})}),(n=(o=ee(t,o)).length)>1)for(var a,s,h=1,c=r(o[0]);h<n;++h)(a=r(o[h]))>c&&(s=o[0],o[0]=o[h],o[h]=s,c=a);return o})}}function dt(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=n.single;void 0===o&&(o=!1);var a=B(t,r);a.length<e.length+2&&D(a,e.length+2-a.length);var s,h=ae(a,e.length),c=e.map(function(t){return B(t,r)}),u="string"==typeof t&&t;return o&&!e.every(function(t){return"string"==typeof t})||(s=e.slice(0)),yt(h,c,{match:!0,string:i,single:o,t0:u,t1:s})}function yt(t,e,n){void 0===n&&(n={});var r=n.string,i=n.single,o=n.t0,a=n.t1,s=n.match,h=s?se(t,e):t.map(function(t,e){return e}),c=h.map(function(n,i){return G(t[n],e[i],r)});if(s&&Array.isArray(o)&&(o=h.map(function(t){return o[t]})),i&&r&&(Array.isArray(o)&&(o=o.join(" ")),Array.isArray(a)&&(a=a.join(" "))),i){var u=r?function(t){return c.map(function(e){return e(t)}).join(" ")}:function(t){return c.map(function(e){return e(t)})};return r&&(o||a)?function(t){return t<1e-4&&o||1-t<1e-4&&a||u(t)}:u}return r?(o=Array.isArray(o)?o.map(function(t){return"string"==typeof t&&t}):[],a=Array.isArray(a)?a.map(function(t){return"string"==typeof t&&t}):[],c.map(function(t,e){return o[e]||a[e]?function(n){return n<1e-4&&o[e]||1-n<1e-4&&a[e]||t(n)}:t})):c}function vt(t,e,n,r,i){return wt(function(t,e,n){return function(r){var i=_(r),o=Mt(r.concat([r[0]])),a=Math.atan2(r[0][1]-i[1],r[0][0]-i[0]),s=0;return r.map(function(i,h){var c;return h&&(s+=I(i,r[h-1])),c=a+2*Math.PI*(o?s/o:h/r.length),[Math.cos(c)*n+t,Math.sin(c)*n+e]})}}(t,e,n),r,function(t,e,n){var r=t-n+","+e,i="A"+n+","+n+",0,1,1,";return"M"+r+i+(t+n)+","+e+i+r+"Z"}(t,e,n),2*Math.PI*n,i)}function xt(t,e,n,r,i,o){return wt(function(t,e,n,r){return function(i){var o=_(i),a=Mt(i.concat([i[0]])),s=Math.atan2(i[0][1]-o[1],i[0][0]-o[0]),h=0;s<0&&(s=2*Math.PI+s);var c=s/(2*Math.PI);return i.map(function(o,s){s&&(h+=I(o,i[s-1]));var u=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]}((c+(a?h/a:s/i.length))%1);return[t+u[0]*n,e+u[1]*r]})}}(t,e,n,r),i,function(t,e,n,r){var i=t+n,o=e+r;return"M"+t+","+e+"L"+i+","+e+"L"+i+","+o+"L"+t+","+o+"Z"}(t,e,n,r),2*n+2*r,o)}function wt(t,e,n,r,i){void 0===i&&(i={});var o=i.maxSegmentLength;void 0===o&&(o=10);var a=i.string;void 0===a&&(a=!0);var s,h,c=B(e,o);return q(r)&&c.length<r/o&&D(c,Math.ceil(r/o-c.length)),s=t(c),h=k(s,c,a),a?function(t){return t<1e-4?n:h(t)}:h}var bt=function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2},mt=function(t){for(var e,n,r=-1,i=t.length,o=0,a=0,s=t[i-1],h=0;++r<i;)e=s,s=t[r],h+=n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o/(h*=3),a/h]},Mt=function(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],s=o[1],h=0;++r<i;)e=a,n=s,e-=a=(o=t[r])[0],n-=s=o[1],h+=Math.sqrt(e*e+n*n);return h},At={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},Lt=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Pt=function(t){var e=new i(t),n=e.max;for(o(e);e.index<n&&!e.err.length;)h(e);return e.err.length?e.result=[]:e.result.length&&("mM".indexOf(e.result[0][0])<0?(e.err="SvgPath: string should start with `M` or `m`",e.result=[]):e.result[0][0]="M"),{err:e.err,segments:e.result}};u.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},u.prototype.translate=function(t,e){return 0===t&&0===e||(this.cache=null,this.queue.push([1,0,0,1,t,e])),this},u.prototype.scale=function(t,e){return 1===t&&1===e||(this.cache=null,this.queue.push([t,0,0,e,0,0])),this},u.prototype.rotate=function(t,e,n){var r,i,o;return 0!==t&&(this.translate(e,n),r=t*Math.PI/180,i=Math.cos(r),o=Math.sin(r),this.queue.push([i,o,-o,i,0,0]),this.cache=null,this.translate(-e,-n)),this},u.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},u.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},u.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 e=1;e<this.queue.length;e++)t.cache=c(t.cache,t.queue[e]);return this.cache},u.prototype.calc=function(t,e,n){var r;return this.queue.length?(this.cache||(this.cache=this.toArray()),[t*(r=this.cache)[0]+e*r[2]+(n?0:r[4]),t*r[1]+e*r[3]+(n?0:r[5])]):[t,e]};var Ot=u,Tt={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},St=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,Et=/[\s,]+/,jt=2*Math.PI,It=Math.PI/180;g.prototype.transform=function(t){var e=Math.cos(this.ax*It),n=Math.sin(this.ax*It),r=[this.rx*(t[0]*e+t[2]*n),this.rx*(t[1]*e+t[3]*n),this.ry*(-t[0]*n+t[2]*e),this.ry*(-t[1]*n+t[3]*e)],i=r[0]*r[0]+r[2]*r[2],o=r[1]*r[1]+r[3]*r[3],a=((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+o)/2;if(a<1e-10*s)return this.rx=this.ry=Math.sqrt(s),this.ax=0,this;var h=r[0]*r[1]+r[2]*r[3],c=s+(a=Math.sqrt(a))/2,u=s-a/2;return this.ax=Math.abs(h)<1e-10&&Math.abs(c-o)<1e-10?90:180*Math.atan(Math.abs(h)>Math.abs(c-o)?(c-i)/h:h/(c-o))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(c),this.ry=Math.sqrt(u)):(this.ax+=90,this.rx=Math.sqrt(u),this.ry=Math.sqrt(c)),this},g.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx};var Ct=g;d.prototype.__matrix=function(t){var e,n=this;t.queue.length&&this.iterate(function(r,i,o,a){var s,h,c,u;switch(r[0]){case"v":h=0===(s=t.calc(0,r[1],!0))[0]?["v",s[1]]:["l",s[0],s[1]];break;case"V":h=(s=t.calc(o,r[1],!1))[0]===t.calc(o,a,!1)[0]?["V",s[1]]:["L",s[0],s[1]];break;case"h":h=0===(s=t.calc(r[1],0,!0))[1]?["h",s[0]]:["l",s[0],s[1]];break;case"H":h=(s=t.calc(r[1],a,!1))[1]===t.calc(o,a,!1)[1]?["H",s[0]]:["L",s[0],s[1]];break;case"a":case"A":var l=t.toArray(),f=Ct(r[1],r[2],r[3]).transform(l);if(l[0]*l[3]-l[1]*l[2]<0&&(r[5]=r[5]?"0":"1"),s=t.calc(r[6],r[7],"a"===r[0]),"A"===r[0]&&r[6]===o&&r[7]===a||"a"===r[0]&&0===r[6]&&0===r[7]){h=["a"===r[0]?"l":"L",s[0],s[1]];break}h=f.isDegenerate()?["a"===r[0]?"l":"L",s[0],s[1]]:[r[0],f.rx,f.ry,f.ax,r[4],r[5],s[0],s[1]];break;case"m":u=i>0,h=["m",(s=t.calc(r[1],r[2],u))[0],s[1]];break;default:for(h=[c=r[0]],u=c.toLowerCase()===c,e=1;e<r.length;e+=2)s=t.calc(r[e],r[e+1],u),h.push(s[0],s[1])}n.segments[i]=h},!0)},d.prototype.__evaluateStack=function(){var t,e;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(t=Ot(),e=this.__stack.length;--e>=0;)t.matrix(this.__stack[e].toArray());this.__matrix(t),this.__stack=[]}},d.prototype.toString=function(){var t,e,n=this,r=[];this.__evaluateStack();for(var i=0;i<this.segments.length;i++)e=n.segments[i][0],t=i>0&&"m"!==e&&"M"!==e&&e===n.segments[i-1][0],r=r.concat(t?n.segments[i].slice(1):n.segments[i]);return r.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},d.prototype.translate=function(t,e){return this.__stack.push(Ot().translate(t,e||0)),this},d.prototype.scale=function(t,e){return this.__stack.push(Ot().scale(t,e||0===e?e:t)),this},d.prototype.rotate=function(t,e,n){return this.__stack.push(Ot().rotate(t,e||0,n||0)),this},d.prototype.skewX=function(t){return this.__stack.push(Ot().skewX(t)),this},d.prototype.skewY=function(t){return this.__stack.push(Ot().skewY(t)),this},d.prototype.matrix=function(t){return this.__stack.push(Ot().matrix(t)),this},d.prototype.transform=function(t){return t.trim()?(this.__stack.push(function(t){var e,n,r=new Ot;return t.split(St).forEach(function(t){if(t.length){if(void 0!==Tt[t])return void(e=t);switch(n=t.split(Et).map(function(t){return+t||0}),e){case"matrix":return void(6===n.length&&r.matrix(n));case"scale":return void(1===n.length?r.scale(n[0],n[0]):2===n.length&&r.scale(n[0],n[1]));case"rotate":return void(1===n.length?r.rotate(n[0],0,0):3===n.length&&r.rotate(n[0],n[1],n[2]));case"translate":return void(1===n.length?r.translate(n[0],0):2===n.length&&r.translate(n[0],n[1]));case"skewX":return void(1===n.length&&r.skewX(n[0]));case"skewY":return void(1===n.length&&r.skewY(n[0]))}}}),r}(t)),this):this},d.prototype.round=function(t){var e,n=0,r=0,i=0,o=0;return t=t||0,this.__evaluateStack(),this.segments.forEach(function(a){var s=a[0].toLowerCase()===a[0];switch(a[0]){case"H":case"h":return s&&(a[1]+=i),i=a[1]-a[1].toFixed(t),void(a[1]=+a[1].toFixed(t));case"V":case"v":return s&&(a[1]+=o),o=a[1]-a[1].toFixed(t),void(a[1]=+a[1].toFixed(t));case"Z":case"z":return i=n,void(o=r);case"M":case"m":return s&&(a[1]+=i,a[2]+=o),i=a[1]-a[1].toFixed(t),o=a[2]-a[2].toFixed(t),n=i,r=o,a[1]=+a[1].toFixed(t),void(a[2]=+a[2].toFixed(t));case"A":case"a":return s&&(a[6]+=i,a[7]+=o),i=a[6]-a[6].toFixed(t),o=a[7]-a[7].toFixed(t),a[1]=+a[1].toFixed(t),a[2]=+a[2].toFixed(t),a[3]=+a[3].toFixed(t+2),a[6]=+a[6].toFixed(t),void(a[7]=+a[7].toFixed(t));default:return e=a.length,s&&(a[e-2]+=i,a[e-1]+=o),i=a[e-2]-a[e-2].toFixed(t),o=a[e-1]-a[e-1].toFixed(t),void a.forEach(function(e,n){n&&(a[n]=+a[n].toFixed(t))})}}),this},d.prototype.iterate=function(t,e){var n,r,i,o=this.segments,a={},s=!1,h=0,c=0,u=0,l=0;if(e||this.__evaluateStack(),o.forEach(function(e,n){var r=t(e,n,h,c);Array.isArray(r)&&(a[n]=r,s=!0);var i=e[0]===e[0].toLowerCase();switch(e[0]){case"m":case"M":return h=e[1]+(i?h:0),c=e[2]+(i?c:0),u=h,void(l=c);case"h":case"H":return void(h=e[1]+(i?h:0));case"v":case"V":return void(c=e[1]+(i?c:0));case"z":case"Z":return h=u,void(c=l);default:h=e[e.length-2]+(i?h:0),c=e[e.length-1]+(i?c:0)}}),!s)return this;for(i=[],n=0;n<o.length;n++)if(void 0!==a[n])for(r=0;r<a[n].length;r++)i.push(a[n][r]);else i.push(o[n]);return this.segments=i,this},d.prototype.abs=function(){return this.iterate(function(t,e,n,r){var i,o=t[0],a=o.toUpperCase();if(o!==a)switch(t[0]=a,o){case"v":return void(t[1]+=r);case"a":return t[6]+=n,void(t[7]+=r);default:for(i=1;i<t.length;i++)t[i]+=i%2?n:r}},!0),this},d.prototype.rel=function(){return this.iterate(function(t,e,n,r){var i,o=t[0],a=o.toLowerCase();if(o!==a&&(0!==e||"M"!==o))switch(t[0]=a,o){case"V":return void(t[1]-=r);case"A":return t[6]-=n,void(t[7]-=r);default:for(i=1;i<t.length;i++)t[i]-=i%2?n:r}},!0),this},d.prototype.unarc=function(){return this.iterate(function(t,e,n,r){var i,o,a,s=[],h=t[0];return"A"!==h&&"a"!==h?null:("a"===h?(o=n+t[6],a=r+t[7]):(o=t[6],a=t[7]),0===(i=function(t,e,n,r,i,o,a,s,h){var c=Math.sin(h*jt/360),u=Math.cos(h*jt/360),l=u*(t-n)/2+c*(e-r)/2,g=-c*(t-n)/2+u*(e-r)/2;if(0===l&&0===g)return[];if(0===a||0===s)return[];a=Math.abs(a),s=Math.abs(s);var d=l*l/(a*a)+g*g/(s*s);d>1&&(a*=Math.sqrt(d),s*=Math.sqrt(d));var y=f(t,e,n,r,i,o,a,s,c,u),v=[],x=y[2],w=y[3],b=Math.max(Math.ceil(Math.abs(w)/(jt/4)),1);w/=b;for(var m=0;m<b;m++)v.push(p(x,w)),x+=w;return v.map(function(t){for(var e=0;e<t.length;e+=2){var n=t[e+0],r=t[e+1],i=u*(n*=a)-c*(r*=s),o=c*n+u*r;t[e+0]=i+y[0],t[e+1]=o+y[1]}return t})}(n,r,o,a,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},d.prototype.unshort=function(){var t,e,n,r,i,o=this.segments;return this.iterate(function(a,s,h,c){var u,l=a[0],f=l.toUpperCase();s&&("T"===f?(u="t"===l,"Q"===(n=o[s-1])[0]?(t=n[1]-h,e=n[2]-c):"q"===n[0]?(t=n[1]-n[3],e=n[2]-n[4]):(t=0,e=0),r=-t,i=-e,u||(r+=h,i+=c),o[s]=[u?"q":"Q",r,i,a[1],a[2]]):"S"===f&&(u="s"===l,"C"===(n=o[s-1])[0]?(t=n[3]-h,e=n[4]-c):"c"===n[0]?(t=n[3]-n[5],e=n[4]-n[6]):(t=0,e=0),r=-t,i=-e,u||(r+=h,i+=c),o[s]=[u?"c":"C",r,i,a[1],a[2],a[3],a[4]]))}),this};var kt=d,qt={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},_t=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Nt=function(t){var e=[];return t.replace(_t,function(t,n,r){var i=n.toLowerCase();for(r=function(t){var e=t.match(Rt);return e?e.map(Number):[]}(r),"m"===i&&r.length>2&&(e.push([n].concat(r.splice(0,2))),i="l",n="m"===n?"l":"L");r.length>=0;){if(r.length===qt[i])return r.unshift(n),e.push(r);if(r.length<qt[i])throw new Error("malformed path data");e.push([n].concat(r.splice(0,qt[i])))}}),e},Rt=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,zt=function(t,e,n,r,i,o,a,s){return new y(t,e,n,r,i,o,a,s)};y.prototype={constructor:y,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 e=w(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],e)},getTangentAtLength:function(t){var e=w(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]),n=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),r=Math.sqrt(n.x*n.x+n.y*n.y);return r>0?{x:n.x/r,y:n.y/r}:{x:0,y:0}},getPropertiesAtLength:function(t){var e,n=w(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],n),i=Math.sqrt(r.x*r.x+r.y*r.y);e=i>0?{x:r.x/i,y:r.y/i}:{x:0,y:0};var o=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);return{x:o.x,y:o.y,tangentX:e.x,tangentY:e.y}}};var Ft=[[],[],[-.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]],Dt=[[],[],[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]],Bt=[[1],[1,1],[1,2,1],[1,3,3,1]],Gt=2*Math.PI,Zt=function(t,e,n,r,i,o,a,s,h){var c=Math.sin(i*Gt/360),u=Math.cos(i*Gt/360),l=u*(t-s)/2+c*(e-h)/2,f=-c*(t-s)/2+u*(e-h)/2;if(0===l&&0===f)return[];if(0===n||0===r)return[];n=Math.abs(n),r=Math.abs(r);var p=l*l/(n*n)+f*f/(r*r);p>1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var g=function(t,e,n,r,i,o,a,s,h,c){var u=c*(t-n)/2+h*(e-r)/2,l=-h*(t-n)/2+c*(e-r)/2,f=a*a,p=s*s,g=u*u,d=l*l,y=f*p-f*d-p*g;y<0&&(y=0),y/=f*d+p*g;var v=(y=Math.sqrt(y)*(i===o?-1:1))*a/s*l,x=y*-s/a*u,w=c*v-h*x+(t+n)/2,b=h*v+c*x+(e+r)/2,m=(u-v)/a,M=(l-x)/s,A=(-u-v)/a,L=(-l-x)/s,P=T(1,0,m,M),O=T(m,M,A,L);return 0===o&&O>0&&(O-=Gt),1===o&&O<0&&(O+=Gt),[w,b,P,O]}(t,e,s,h,o,a,n,r,c,u),d=[],y=g[2],v=g[3],x=Math.max(Math.ceil(Math.abs(v)/(Gt/4)),1);v/=x;for(var w=0;w<x;w++)d.push(S(y,v)),y+=v;return d.map(function(t){for(var e=0;e<t.length;e+=2){var i=t[e+0],o=t[e+1],a=u*(i*=n)-c*(o*=r),s=c*i+u*o;t[e+0]=a+g[0],t[e+1]=s+g[1]}return t})},Xt=function(t,e,n,r,i,o,a,s,h){return new E(t,e,n,r,i,o,a,s,h)};E.prototype={constructor:E,init:function(){},getTotalLength:function(){return this.length},getPointAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var e=this.partialLengths.length-1;this.partialLengths[e]>=t&&this.partialLengths[e]>0;)e--;e<this.partialLengths.length-1&&e++;for(var n=0,r=0;r<e;r++)n+=this.partialLengths[r];return this.curves[e].getPointAtLength(t-n)},getTangentAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var e=this.partialLengths.length-1;this.partialLengths[e]>=t&&this.partialLengths[e]>0;)e--;e<this.partialLengths.length-1&&e++;for(var n=0,r=0;r<e;r++)n+=this.partialLengths[r];return this.curves[e].getTangentAtLength(t-n)},getPropertiesAtLength:function(t){var e=this.getTangentAtLength(t),n=this.getPointAtLength(t);return{x:n.x,y:n.y,tangentX:e.x,tangentY:e.y}}};var Yt=function(t,e,n,r){return new j(t,e,n,r)};j.prototype.getTotalLength=function(){return Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2))},j.prototype.getPointAtLength=function(t){var e=t/Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2)),n=(this.x1-this.x0)*e,r=(this.y1-this.y0)*e;return{x:this.x0+n,y:this.y0+r}},j.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}},j.prototype.getPropertiesAtLength=function(t){var e=this.getPointAtLength(t),n=this.getTangentAtLength();return{x:e.x,y:e.y,tangentX:n.x,tangentY:n.y}};var Ut=function(t){function e(t){if(!t)return null;for(var o,a=Nt(t),s=[0,0],h=[0,0],c=0;c<a.length;c++)"M"===a[c][0]?(s=[a[c][1],a[c][2]],i.push(null)):"m"===a[c][0]?(s=[a[c][1]+s[0],a[c][2]+s[1]],i.push(null)):"L"===a[c][0]?(n+=Math.sqrt(Math.pow(s[0]-a[c][1],2)+Math.pow(s[1]-a[c][2],2)),i.push(new Yt(s[0],a[c][1],s[1],a[c][2])),s=[a[c][1],a[c][2]]):"l"===a[c][0]?(n+=Math.sqrt(Math.pow(a[c][1],2)+Math.pow(a[c][2],2)),i.push(new Yt(s[0],a[c][1]+s[0],s[1],a[c][2]+s[1])),s=[a[c][1]+s[0],a[c][2]+s[1]]):"H"===a[c][0]?(n+=Math.abs(s[0]-a[c][1]),i.push(new Yt(s[0],a[c][1],s[1],s[1])),s[0]=a[c][1]):"h"===a[c][0]?(n+=Math.abs(a[c][1]),i.push(new Yt(s[0],s[0]+a[c][1],s[1],s[1])),s[0]=a[c][1]+s[0]):"V"===a[c][0]?(n+=Math.abs(s[1]-a[c][1]),i.push(new Yt(s[0],s[0],s[1],a[c][1])),s[1]=a[c][1]):"v"===a[c][0]?(n+=Math.abs(a[c][1]),i.push(new Yt(s[0],s[0],s[1],s[1]+a[c][1])),s[1]=a[c][1]+s[1]):"z"===a[c][0]||"Z"===a[c][0]?(n+=Math.sqrt(Math.pow(a[0][1]-s[0],2)+Math.pow(a[0][2]-s[1],2)),i.push(new Yt(s[0],a[0][1],s[1],a[0][2])),s=[a[0][1],a[0][2]]):"C"===a[c][0]?(o=new zt(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4],a[c][5],a[c][6]),n+=o.getTotalLength(),s=[a[c][5],a[c][6]],i.push(o)):"c"===a[c][0]?(o=new zt(s[0],s[1],s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4],s[0]+a[c][5],s[1]+a[c][6]),n+=o.getTotalLength(),s=[a[c][5]+s[0],a[c][6]+s[1]],i.push(o)):"S"===a[c][0]?(o=c>0&&["C","c","S","s"].indexOf(a[c-1][0])>-1?new zt(s[0],s[1],2*s[0]-a[c-1][a[c-1].length-4],2*s[1]-a[c-1][a[c-1].length-3],a[c][1],a[c][2],a[c][3],a[c][4]):new zt(s[0],s[1],s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4]),n+=o.getTotalLength(),s=[a[c][3],a[c][4]],i.push(o)):"s"===a[c][0]?(o=c>0&&["C","c","S","s"].indexOf(a[c-1][0])>-1?new zt(s[0],s[1],s[0]+o.d.x-o.c.x,s[1]+o.d.y-o.c.y,s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4]):new zt(s[0],s[1],s[0],s[1],s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4]),n+=o.getTotalLength(),s=[a[c][3]+s[0],a[c][4]+s[1]],i.push(o)):"Q"===a[c][0]?(o=new zt(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4]),n+=o.getTotalLength(),i.push(o),s=[a[c][3],a[c][4]],h=[a[c][1],a[c][2]]):"q"===a[c][0]?(o=new zt(s[0],s[1],s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4]),n+=o.getTotalLength(),h=[s[0]+a[c][1],s[1]+a[c][2]],s=[a[c][3]+s[0],a[c][4]+s[1]],i.push(o)):"T"===a[c][0]?(o=c>0&&["Q","q","T","t"].indexOf(a[c-1][0])>-1?new zt(s[0],s[1],2*s[0]-h[0],2*s[1]-h[1],a[c][1],a[c][2]):new Yt(s[0],a[c][1],s[1],a[c][2]),i.push(o),n+=o.getTotalLength(),h=[2*s[0]-h[0],2*s[1]-h[1]],s=[a[c][1],a[c][2]]):"t"===a[c][0]?(o=c>0&&["Q","q","T","t"].indexOf(a[c-1][0])>-1?new zt(s[0],s[1],2*s[0]-h[0],2*s[1]-h[1],s[0]+a[c][1],s[1]+a[c][2]):new Yt(s[0],s[0]+a[c][1],s[1],s[1]+a[c][2]),n+=o.getTotalLength(),h=[2*s[0]-h[0],2*s[1]-h[1]],s=[a[c][1]+s[0],a[c][2]+s[0]],i.push(o)):"A"===a[c][0]?(o=new Xt(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4],a[c][5],a[c][6],a[c][7]),n+=o.getTotalLength(),s=[a[c][6],a[c][7]],i.push(o)):"a"===a[c][0]&&(o=new Xt(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4],a[c][5],s[0]+a[c][6],s[1]+a[c][7]),n+=o.getTotalLength(),s=[s[0]+a[c][6],s[1]+a[c][7]],i.push(o)),r.push(n);return e}var n=0,r=[],i=[];e.getTotalLength=function(){return n},e.getPointAtLength=function(t){var e=o(t);return i[e.i].getPointAtLength(e.fraction)},e.getTangentAtLength=function(t){var e=o(t);return i[e.i].getTangentAtLength(e.fraction)},e.getPropertiesAtLength=function(t){var e=o(t);return i[e.i].getPropertiesAtLength(e.fraction)};var o=function(t){t<0?t=0:t>n&&(t=n);for(var e=r.length-1;r[e]>=t&&r[e]>0;)e--;return e++,{fraction:t-r[e-1],i:e}};return e(t)},Wt='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',Ht="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).",Kt=function(t,e){for(var n,r,i,o=t.length,a=1/0,s=0;s<o;s++)!function(i){r=0,e.forEach(function(e,n){var a=I(t[(i+n)%o],e);r+=a*a}),r<a&&(a=r,n=i)}(s);n&&(i=t.splice(0,n),t.splice.apply(t,[t.length,0].concat(i)))},Vt=Z;Z.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,a=Math.abs(lt(t,0,o,n));if(i)for(var s=0,h=e.length;s<h;s++){var c=e[s]*n,u=s<h-1?e[s+1]*n:t.length;a-=Math.abs(lt(t,c,u,n))}var l=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,p=r[s+1]*n,g=r[s+2]*n;l+=Math.abs((t[f]-t[g])*(t[p+1]-t[f+1])-(t[f]-t[p])*(t[g+1]-t[f+1]))}return 0===a&&0===l?0:Math.abs((l-a)/a)},Z.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n};var Qt=function(t){return t},$t=function(t){if(null==t)return Qt;var e,n,r=t.scale[0],i=t.scale[1],o=t.translate[0],a=t.translate[1];return function(t,s){s||(e=n=0);var h=2,c=t.length,u=new Array(c);for(u[0]=(e+=t[0])*r+o,u[1]=(n+=t[1])*i+a;h<c;)u[h]=t[h],++h;return u}},Jt=function(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n},te=function(t,e){return"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map(function(e){return ft(t,e)})}:ft(t,e)},ee=function(t,e){function n(e){var n,r=t.arcs[e<0?~e:e],i=r[0];return t.transform?(n=[0,0],r.forEach(function(t){n[0]+=t[0],n[1]+=t[1]})):n=r[r.length-1],e<0?[n,i]:[i,n]}function r(t,e){for(var n in t){var r=t[n];delete e[r.start],delete r.start,delete r.end,r.forEach(function(t){i[t<0?~t:t]=1}),s.push(r)}}var i={},o={},a={},s=[],h=-1;return e.forEach(function(n,r){var i,o=t.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(i=e[++h],e[h]=n,e[r]=i)}),e.forEach(function(t){var e,r,i=n(t),s=i[0],h=i[1];if(e=a[s])if(delete a[e.end],e.push(t),e.end=h,r=o[h]){delete o[r.start];var c=r===e?e:e.concat(r);o[c.start=e.start]=a[c.end=r.end]=c}else o[e.start]=a[e.end]=e;else if(e=o[h])if(delete o[e.start],e.unshift(t),e.start=s,r=a[s]){delete a[r.end];var u=r===e?e:r.concat(e);o[u.start=r.start]=a[u.end=e.end]=u}else o[e.start]=a[e.end]=e;else o[(e=[t]).start=s]=a[e.end=h]=e}),r(a,o),r(o,a),e.forEach(function(t){i[t<0?~t:t]||s.push([t])}),s},ne=function(t,e){for(var n=0,r=t.length;n<r;){var i=n+r>>>1;t[i]<e?n=i+1:r=i}return n},re=function(t){function e(t,e){t.forEach(function(t){t<0&&(t=~t);var n=r[t];n?n.push(e):r[t]=[e]})}function n(t,n){t.forEach(function(t){e(t,n)})}var r={},i=t.map(function(){return[]}),o={LineString:e,MultiLineString:n,Polygon:n,MultiPolygon:function(t,e){t.forEach(function(t){n(t,e)})}};for(var a in t.forEach(function t(e,n){"GeometryCollection"===e.type?e.geometries.forEach(function(e){t(e,n)}):e.type in o&&o[e.type](e.arcs,n)}),r)for(var s=r[a],h=s.length,c=0;c<h;++c)for(var u=c+1;u<h;++u){var l,f=s[c],p=s[u];(l=i[f])[a=ne(l,p)]!==p&&l.splice(a,0,p),(l=i[p])[a=ne(l,f)]!==f&&l.splice(a,0,f)}return i},ie=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},oe=function(t){return 1===t.length&&(t=function(t){return function(e,n){return ie(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}},ae=(oe(ie).right,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),function(t,e){return function(t,e){for(var n=t.objects.triangles.geometries,r=oe(function(t){return t.area}).left;n.length>e;)!function(){var e=n[0],i=re(n)[0][0],o=n[i],a=gt(t,[e,o]);a.area=e.area+o.area,a.type="Polygon",a.arcs=a.arcs[0],n.splice(i,1),n.shift(),n.splice(r(n,a.area),0,a)}();if(e>n.length)throw new RangeError("Can't collapse topology into "+e+" pieces.");return te(t,t.objects.triangles).features.map(function(t){return t.geometry.coordinates[0].pop(),t.geometry.coordinates[0]})}(function(t,e){var n={},r={type:"Topology",objects:{triangles:{type:"GeometryCollection",geometries:[]}},arcs:[]};return t.forEach(function(t){var i=[];t.forEach(function(t,o){var a=t[0]<t[1]?t.join(","):t[1]+","+t[0],s=t.map(function(t){return e[t]});a in n?i.push(~n[a]):(i.push(n[a]=r.arcs.length),r.arcs.push(s))}),r.objects.triangles.geometries.push({type:"Polygon",area:Math.abs(bt(t.map(function(t){return e[t[0]]}))),arcs:[i]})}),r.objects.triangles.geometries.sort(function(t,e){return t.area-e.area}),r}(function(t){for(var e=Vt(t.reduce(function(t,e){return t.concat([e[0]],[e[1]])},[])),n=[],r=0,i=e.length;r<i;r+=3)n.push([[e[r],e[r+1]],[e[r+1],e[r+2]],[e[r+2],e[r]]]);return n}(t),t),e)}),se=function(t,e){if(t.length>8)return t.map(function(t,e){return e});var n=t.map(function(t){return e.map(function(e){return function(t,e){var n=I(_(t),_(e));return n*n}(t,e)})});return function(t,e,n){var r=1/0,i=t.map(function(t,e){return e});return function t(e,o,a){void 0===o&&(o=[]),void 0===a&&(a=0);for(var s=0;s<e.length;s++){var h=e.splice(s,1),c=n[h[0]][o.length];a+c<r&&(e.length?t(e.slice(),o.concat(h),a+c):(r=a+c,i=o.concat(h))),e.length&&e.splice(s,0,h[0])}}(i),i}(t,0,n)};t.interpolate=function(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=G(B(t,r),B(e,r),i);return!i||"string"!=typeof t&&"string"!=typeof e?o:function(n){return n<1e-4&&"string"==typeof t?t:1-n<1e-4&&"string"==typeof e?e:o(n)}},t.separate=dt,t.combine=function(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=n.single;void 0===o&&(o=!1);var a=dt(e,t,{maxSegmentLength:r,string:i,single:o});return o?function(t){return a(1-t)}:a.map(function(t){return function(e){return t(1-e)}})},t.interpolateAll=function(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=n.single;if(void 0===o&&(o=!1),!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length||!t.length)throw new TypeError(Ht);var a,s,h=function(t){return B(t,r)},c=t.map(h),u=e.map(h);return o?(t.every(function(t){return"string"==typeof t})&&(a=t.slice(0)),e.every(function(t){return"string"==typeof t})&&(s=e.slice(0))):(a=t.slice(0),s=e.slice(0)),yt(c,u,{string:i,single:o,t0:a,t1:s,match:!1})},t.splitPathString=function(t){return R(N(t))},t.toPathString=z,t.fromCircle=vt,t.toCircle=function(t,e,n,r,i){var o=vt(e,n,r,t,i);return function(t){return o(1-t)}},t.fromRect=xt,t.toRect=function(t,e,n,r,i,o){var a=xt(e,n,r,i,t,o);return function(t){return a(1-t)}},Object.defineProperty(t,"__esModule",{value:!0})}(e)}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.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";n.r(r),n.d(r,{Alignment:()=>x,Anchor:()=>t,Animate:()=>Ot,Arrow:()=>L,BrowserCanvasRenderer:()=>je,Circle:()=>T,Color:()=>l,Easing:()=>At,FontStyle:()=>Tt,FontWeight:()=>Et,Grid:()=>c,Group:()=>h,IFrame:()=>v,Image:()=>E,Line:()=>I,Mask:()=>k,ObjectType:()=>i,Opaque:()=>ze,Path:()=>dt,Pause:()=>Ie,Polygon:()=>vt,Position:()=>ue,Presentation:()=>Bt,Rectangle:()=>wt,ScreenCapture:()=>m,Size:()=>zt,Slide:()=>ke,SlideObject:()=>a,SlideWebExtra:()=>g,Text:()=>_t,TextUnit:()=>_e,Transparent:()=>ft,Update:()=>Ne,getKeySlideBuildIndices:()=>Ge,getSizingFunctions:()=>Be,getSmoothPathInterpolator:()=>De,getTextContentLength:()=>kt,interpolateColor:()=>Xt,interpolateNumber:()=>Yt});var t={TOP_LEFT:"TopLeft",TOP:"Top",TOP_RIGHT:"TopRight",LEFT:"Left",CENTER:"Center",RIGHT:"Right",BOTTOM_LEFT:"BottomLeft",BOTTOM:"Bottom",BOTTOM_RIGHT:"BottomRight"},e=t.TOP_LEFT,i={ARROW:"Arrow",CIRCLE:"Circle",GROUP:"Group",IMAGE:"Image",LINE:"Line",MASK:"Mask",PATH:"Path",POLYGON:"Polygon",RECTANGLE:"Rectangle",SLIDE_OBJECT:"SlideObject",TEXT:"Text"},o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t){return o({objectType:i.SLIDE_OBJECT,opacity:1},t)}var s=function(){return s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s.apply(this,arguments)};function h(t,n){return void 0===n&&(n=null),a(s({objectType:i.GROUP,anchor:e,height:0,objects:t,rotateOriginX:0,rotateOriginY:0,rotation:0,scale:1,width:0,x:0,y:0},n))}function c(t){for(var n=t.anchor,r=void 0===n?e:n,i=t.cols,o=void 0===i?1:i,a=t.rows,s=void 0===a?1:a,c=t.gapX,u=void 0===c?0:c,l=t.gapY,f=void 0===l?0:l,p=t.width,g=void 0===p?0:p,d=t.height,y=void 0===d?0:d,v=t.x,x=void 0===v?0:v,w=t.y,b=void 0===w?0:w,m=t.objects,M=void 0===m?function(){return null}:m,A=[],L=[],P=0,O=0,T=0;T<s;T++){var S=[];P=0;for(var E=0,j=0;j<o;j++){var I=M(T,j),C="function"==typeof g?g(T,j):g,k="function"==typeof y?y(T,j):y;S.push(I),null!=I&&L.push(h([I],{x:P,y:O})),P+=C+u,E=Math.max(E,k)}A.push(S),O+=E+f}return{grid:h(L,{x,y:b,height:O-f,width:P-u,anchor:r}),objects:A}}var u=function(){return u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},u.apply(this,arguments)};function l(t,e,n,r){if(void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),"string"==typeof t){var i=t.replace("#",""),o=parseInt(i,16);return isNaN(o)?(console.warn("Invalid hex color format:",t),f):6===i.length?{red:o>>16&255,green:o>>8&255,blue:255&o,alpha:1}:8===i.length?{red:o>>24&255,green:o>>16&255,blue:o>>8&255,alpha:(255&o)/255}:(console.warn("Invalid hex color format:",t),f)}return"number"==typeof t?{red:t,green:null!=e?e:0,blue:null!=n?n:0,alpha:null!=r?r:1}:u({red:0,green:0,blue:0,alpha:1},t)}l.BLACK=l(0,0,0),l.BLUE=l(0,0,255),l.GREEN=l(0,255,0),l.RED=l(255,0,0),l.TRANSPARENT=l(0,0,0,0),l.WHITE=l(255,255,255);var f={red:0,green:0,blue:0,alpha:1},p=function(){return p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},p.apply(this,arguments)};function g(e){return void 0===e&&(e=null),p({content:null,setup:null,anchor:t.TOP_LEFT,height:0,width:0,x:0,y:0},e)}function d(t,e){return void 0===e&&(e=null),t.alpha*(null!=e?e:1)}function y(t,e){void 0===e&&(e=null);var n=t.red<<16|t.green<<8|t.blue,r=Math.round(255*d(t,e));return"#".concat(n.toString(16).padStart(6,"0")).concat(255!==r?r.toString(16).padStart(2,"0"):"")}function v(t){void 0===t&&(t=null);var n=t||{},r=n.url,i=void 0===r?"https://wikipedia.org/":r,o=n.backgroundColor,a=void 0===o?l.TRANSPARENT:o,s=n.borderColor,h=void 0===s?f:s,c=n.borderWidth,u=void 0===c?0:c,p=n.pointerEvents,d=void 0===p?"auto":p,v=n.scale,x=void 0===v?1:v,w=n.anchor,b=void 0===w?e:w,m=n.height,M=void 0===m?1e3:m,A=n.width,L=void 0===A?1e3:A,P=n.x,O=void 0===P?0:P,T=n.y,S=void 0===T?0:T,E=document.createElement("iframe");E.src=i,E.style.backgroundColor=y(a),E.style.border=u>0?"".concat(u,"px solid ").concat(y(h)):"none",E.style.pointerEvents=d;var j=(100/x).toFixed(3)+"%";return E.style.height=0===u?j:"calc(".concat(j," - ").concat(2*u,"px)"),E.style.width=0===u?j:"calc(".concat(j," - ").concat(2*u,"px)"),E.style.transform="scale(".concat(x,")"),E.style.transformOrigin="top left",g({content:E,anchor:b,height:M,width:L,x:O,y:S})}var x={LEFT:"left",CENTER:"center",RIGHT:"right"},w=x.LEFT;function b(t,e){throw new Error((null!=e?e:"Unexpected value")+": "+t)}function m(t){void 0===t&&(t=null);var n=t||{},r=n.alignment,i=void 0===r?x.LEFT:r,o=n.scale,a=void 0===o?1:o,s=n.anchor,h=void 0===s?e:s,c=n.height,u=void 0===c?1e3:c,l=n.width,f=void 0===l?1e3:l,p=n.x,d=void 0===p?0:p,y=n.y;return g({content:null,setup:function(t){var e=document.createElement("video");switch(e.autoplay=!0,e.style.transform="scale(".concat(a,")"),i){case x.LEFT:e.style.transformOrigin="top left";break;case x.CENTER:e.style.transformOrigin="top center";break;case x.RIGHT:e.style.transformOrigin="top right";break;default:b(i)}return t.appendChild(e),navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"window"},audio:!1}).then(function(t){var n=t.getVideoTracks()[0];void 0!==n&&(n.onended=function(){e.style.display="none"}),e.srcObject=t,e.play()}).catch(function(t){console.error("Could not start screen capture -",t)}),function(){e.srcObject.getTracks().forEach(function(t){return t.stop()}),e.style.display="none",e.srcObject=null}},anchor:h,height:u,width:f,x:d,y:void 0===y?0:y})}var M=function(){return M=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},M.apply(this,arguments)},A=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function L(t){void 0===t&&(t=null);var e=t||{},n=e.arrowheadSize,r=e.width,o=void 0===r?10:r,s=A(e,["arrowheadSize","width"]),h=null!=n?n:4*o;return a(M({objectType:i.ARROW,arrowheadSize:h,color:f,drawn:1,endX:100,endY:100,isArrowheadDoubled:!1,isArrowheadFilled:!1,isDrawnFromCenter:!1,startX:0,startY:0,width:o},s))}var P=function(){return P=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},P.apply(this,arguments)},O=50;function T(t){return void 0===t&&(t=null),a(P({objectType:i.CIRCLE,anchor:e,borderColor:f,borderWidth:0,drawn:1,fill:f,radius:O,x:0,y:0},t))}var S=function(){return S=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},S.apply(this,arguments)};function E(t){return void 0===t&&(t=null),a(S({objectType:i.IMAGE,anchor:e,height:100,imageId:"",rounding:0,smooth:!0,width:100,x:0,y:0},t))}var j=function(){return j=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},j.apply(this,arguments)};function I(t){return void 0===t&&(t=null),a(j({objectType:i.LINE,color:f,drawn:1,endX:100,endY:100,isDrawnFromCenter:!1,startX:0,startY:0,width:10},t))}var C=function(){return C=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},C.apply(this,arguments)};function k(t,n){return void 0===n&&(n=null),a(C({objectType:i.MASK,anchor:e,height:100,objects:t,preview:!1,width:100,x:0,y:0},n))}var q=Object.defineProperty,_=(t,e)=>q(t,"name",{value:e,configurable:!0}),N={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},R=/([astvzqmhlc])([^astvzqmhlc]*)/gi,z=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,F=_(t=>{const e=(t&&t.length>0?t:"M0,0").match(R);if(!e)throw new Error(`No path elements found in string ${t}`);return e.reduce((t,e)=>{let n=e.charAt(0),r=n.toLowerCase(),i=D(e.substring(1));if("m"===r&&i.length>2&&(t.push([n,...i.splice(0,2)]),r="l",n="m"===n?"l":"L"),"a"===r.toLowerCase()&&(5===i.length||6===i.length)){const t=e.substring(1).trim().split(" ");i=[Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3].charAt(0)),Number(t[3].charAt(1)),Number(t[3].substring(2)),Number(t[4])]}for(;i.length>=0;){if(i.length===N[r]){t.push([n,...i.splice(0,N[r])]);break}if(i.length<N[r])throw new Error(`Malformed path data: "${n}" must have ${N[r]} elements and has ${i.length}: ${e}`);t.push([n,...i.splice(0,N[r])])}return t},[])},"default"),D=_(t=>{const e=t.match(z);return e?e.map(Number):[]},"parseValues"),B=class{static{_(this,"LinearPosition")}x0;x1;y0;y1;constructor(t,e,n,r){this.x0=t,this.x1=e,this.y0=n,this.y1=r}getTotalLength=_(()=>Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2)),"getTotalLength");getPointAtLength=_(t=>{let e=t/Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2));e=Number.isNaN(e)?1:e;const n=(this.x1-this.x0)*e,r=(this.y1-this.y0)*e;return{x:this.x0+n,y:this.y0+r}},"getPointAtLength");getTangentAtLength=_(t=>{const e=Math.sqrt((this.x1-this.x0)*(this.x1-this.x0)+(this.y1-this.y0)*(this.y1-this.y0));return{x:(this.x1-this.x0)/e,y:(this.y1-this.y0)/e}},"getTangentAtLength");getPropertiesAtLength=_(t=>{const e=this.getPointAtLength(t),n=this.getTangentAtLength(t);return{x:e.x,y:e.y,tangentX:n.x,tangentY:n.y}},"getPropertiesAtLength")},G=class{static{_(this,"Arc")}x0;y0;rx;ry;xAxisRotate;LargeArcFlag;SweepFlag;x1;y1;length;constructor(t,e,n,r,i,o,a,s,h){this.x0=t,this.y0=e,this.rx=n,this.ry=r,this.xAxisRotate=i,this.LargeArcFlag=o,this.SweepFlag=a,this.x1=s,this.y1=h;const c=X(300,function(c){return Z({x:t,y:e},n,r,i,o,a,{x:s,y:h},c)});this.length=c.arcLength}getTotalLength=_(()=>this.length,"getTotalLength");getPointAtLength=_(t=>{t<0?t=0:t>this.length&&(t=this.length);const e=Z({x:this.x0,y:this.y0},this.rx,this.ry,this.xAxisRotate,this.LargeArcFlag,this.SweepFlag,{x:this.x1,y:this.y1},t/this.length);return{x:e.x,y:e.y}},"getPointAtLength");getTangentAtLength=_(t=>{t<0?t=0:t>this.length&&(t=this.length);const e=.05,n=this.getPointAtLength(t);let r;t<0?t=0:t>this.length&&(t=this.length),r=t<this.length-e?this.getPointAtLength(t+e):this.getPointAtLength(t-e);const i=r.x-n.x,o=r.y-n.y,a=Math.sqrt(i*i+o*o);return t<this.length-e?{x:-i/a,y:-o/a}:{x:i/a,y:o/a}},"getTangentAtLength");getPropertiesAtLength=_(t=>{const e=this.getTangentAtLength(t),n=this.getPointAtLength(t);return{x:n.x,y:n.y,tangentX:e.x,tangentY:e.y}},"getPropertiesAtLength")},Z=_((t,e,n,r,i,o,a,s)=>{e=Math.abs(e),n=Math.abs(n),r=Y(r,360);const h=U(r);if(t.x===a.x&&t.y===a.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(0===e||0===n)return{x:0,y:0,ellipticalArcAngle:0};const c=(t.x-a.x)/2,u=(t.y-a.y)/2,l={x:Math.cos(h)*c+Math.sin(h)*u,y:-Math.sin(h)*c+Math.cos(h)*u},f=Math.pow(l.x,2)/Math.pow(e,2)+Math.pow(l.y,2)/Math.pow(n,2);f>1&&(e=Math.sqrt(f)*e,n=Math.sqrt(f)*n);let p=(Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(l.y,2)-Math.pow(n,2)*Math.pow(l.x,2))/(Math.pow(e,2)*Math.pow(l.y,2)+Math.pow(n,2)*Math.pow(l.x,2));p=p<0?0:p;const g=(i!==o?1:-1)*Math.sqrt(p),d=g*(e*l.y/n),y=g*(-n*l.x/e),v={x:Math.cos(h)*d-Math.sin(h)*y+(t.x+a.x)/2,y:Math.sin(h)*d+Math.cos(h)*y+(t.y+a.y)/2},x={x:(l.x-d)/e,y:(l.y-y)/n},w=K({x:1,y:0},x);let b=K(x,{x:(-l.x-d)/e,y:(-l.y-y)/n});!o&&b>0?b-=2*Math.PI:o&&b<0&&(b+=2*Math.PI),b%=2*Math.PI;const m=w+b*s,M=e*Math.cos(m),A=n*Math.sin(m);return{x:Math.cos(h)*M-Math.sin(h)*A+v.x,y:Math.sin(h)*M+Math.cos(h)*A+v.y,ellipticalArcStartAngle:w,ellipticalArcEndAngle:w+b,ellipticalArcAngle:m,ellipticalArcCenter:v,resultantRx:e,resultantRy:n}},"pointOnEllipticalArc"),X=_((t,e)=>{t=t??500;let n=0;const r=[],i=[];let o,a=e(0);for(let s=0;s<t;s++){const h=H(s*(1/t),0,1);o=e(h),n+=W(a,o),i.push([a,o]),r.push({t:h,arcLength:n}),a=o}return o=e(1),i.push([a,o]),n+=W(a,o),r.push({t:1,arcLength:n}),{arcLength:n,arcLengthMap:r,approximationLines:i}},"approximateArcLengthOfCurve"),Y=_((t,e)=>(t%e+e)%e,"mod"),U=_(t=>t*(Math.PI/180),"toRadians"),W=_((t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)),"distance"),H=_((t,e,n)=>Math.min(Math.max(t,e),n),"clamp"),K=_((t,e)=>{const n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2)));return(t.x*e.y-t.y*e.x<0?-1:1)*Math.acos(n/r)},"angleBetween"),V=[[],[],[-.5773502691896257,.5773502691896258],[0,-.7745966692414833,.7745966692414833],[-.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]],Q=[[],[],[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]],$=[[1],[1,1],[1,2,1],[1,3,3,1]],J=_((t,e,n)=>({x:(1-n)*(1-n)*(1-n)*t[0]+3*(1-n)*(1-n)*n*t[1]+3*(1-n)*n*n*t[2]+n*n*n*t[3],y:(1-n)*(1-n)*(1-n)*e[0]+3*(1-n)*(1-n)*n*e[1]+3*(1-n)*n*n*e[2]+n*n*n*e[3]}),"cubicPoint"),tt=_((t,e,n)=>nt([3*(t[1]-t[0]),3*(t[2]-t[1]),3*(t[3]-t[2])],[3*(e[1]-e[0]),3*(e[2]-e[1]),3*(e[3]-e[2])],n),"cubicDerivative"),et=_((t,e,n)=>{let r,i;const o=n/2;r=0;for(let n=0;n<20;n++)i=o*V[20][n]+o,r+=Q[20][n]*ot(t,e,i);return o*r},"getCubicArcLength"),nt=_((t,e,n)=>({x:(1-n)*(1-n)*t[0]+2*(1-n)*n*t[1]+n*n*t[2],y:(1-n)*(1-n)*e[0]+2*(1-n)*n*e[1]+n*n*e[2]}),"quadraticPoint"),rt=_((t,e,n)=>{void 0===n&&(n=1);const r=t[0]-2*t[1]+t[2],i=e[0]-2*e[1]+e[2],o=2*t[1]-2*t[0],a=2*e[1]-2*e[0],s=4*(r*r+i*i),h=4*(r*o+i*a),c=o*o+a*a;if(0===s)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));const u=h/(2*s),l=n+u,f=c/s-u*u,p=l*l+f>0?Math.sqrt(l*l+f):0,g=u*u+f>0?Math.sqrt(u*u+f):0,d=u+Math.sqrt(u*u+f)!==0&&(l+p)/(u+g)!==0?f*Math.log(Math.abs((l+p)/(u+g))):0;return Math.sqrt(s)/2*(l*p-u*g+d)},"getQuadraticArcLength"),it=_((t,e,n)=>({x:2*(1-n)*(t[1]-t[0])+2*n*(t[2]-t[1]),y:2*(1-n)*(e[1]-e[0])+2*n*(e[2]-e[1])}),"quadraticDerivative");function ot(t,e,n){const r=at(1,n,t),i=at(1,n,e),o=r*r+i*i;return Math.sqrt(o)}_(ot,"BFunc");var at=_((t,e,n)=>{const r=n.length-1;let i,o;if(0===r)return 0;if(0===t){o=0;for(let t=0;t<=r;t++)o+=$[r][t]*Math.pow(1-e,r-t)*Math.pow(e,t)*n[t];return o}i=new Array(r);for(let t=0;t<r;t++)i[t]=r*(n[t+1]-n[t]);return at(t-1,e,i)},"getDerivative"),st=_((t,e,n)=>{let r=1,i=t/e,o=(t-n(i))/e,a=0;for(;r>.001;){const s=n(i+o),h=Math.abs(t-s)/e;if(h<r)r=h,i+=o;else{const a=n(i-o),s=Math.abs(t-a)/e;s<r?(r=s,i-=o):o/=2}if(a++,a>500)break}return i},"t2length"),ht=class{static{_(this,"Bezier")}a;b;c;d;length;getArcLength;getPoint;getDerivative;constructor(t,e,n,r,i,o,a,s){this.a={x:t,y:e},this.b={x:n,y:r},this.c={x:i,y:o},void 0!==a&&void 0!==s?(this.getArcLength=et,this.getPoint=J,this.getDerivative=tt,this.d={x:a,y:s}):(this.getArcLength=rt,this.getPoint=nt,this.getDerivative=it,this.d={x:0,y:0}),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],1)}getTotalLength=_(()=>this.length,"getTotalLength");getPointAtLength=_(t=>{const e=[this.a.x,this.b.x,this.c.x,this.d.x],n=[this.a.y,this.b.y,this.c.y,this.d.y],r=st(t,this.length,t=>this.getArcLength(e,n,t));return this.getPoint(e,n,r)},"getPointAtLength");getTangentAtLength=_(t=>{const e=[this.a.x,this.b.x,this.c.x,this.d.x],n=[this.a.y,this.b.y,this.c.y,this.d.y],r=st(t,this.length,t=>this.getArcLength(e,n,t)),i=this.getDerivative(e,n,r),o=Math.sqrt(i.x*i.x+i.y*i.y);let a;return a=o>0?{x:i.x/o,y:i.y/o}:{x:0,y:0},a},"getTangentAtLength");getPropertiesAtLength=_(t=>{const e=[this.a.x,this.b.x,this.c.x,this.d.x],n=[this.a.y,this.b.y,this.c.y,this.d.y],r=st(t,this.length,t=>this.getArcLength(e,n,t)),i=this.getDerivative(e,n,r),o=Math.sqrt(i.x*i.x+i.y*i.y);let a;a=o>0?{x:i.x/o,y:i.y/o}:{x:0,y:0};const s=this.getPoint(e,n,r);return{x:s.x,y:s.y,tangentX:a.x,tangentY:a.y}},"getPropertiesAtLength");getC=_(()=>this.c,"getC");getD=_(()=>this.d,"getD")},ct=class{static{_(this,"SVGPathProperties")}length=0;partial_lengths=[];functions=[];initial_point=null;constructor(t){const e=Array.isArray(t)?t:F(t);let n,r=[0,0],i=[0,0],o=[0,0];for(let t=0;t<e.length;t++){if("M"===e[t][0])r=[e[t][1],e[t][2]],o=[r[0],r[1]],this.functions.push(null),0===t&&(this.initial_point={x:e[t][1],y:e[t][2]});else if("m"===e[t][0])r=[e[t][1]+r[0],e[t][2]+r[1]],o=[r[0],r[1]],this.functions.push(null);else if("L"===e[t][0])this.length+=Math.sqrt(Math.pow(r[0]-e[t][1],2)+Math.pow(r[1]-e[t][2],2)),this.functions.push(new B(r[0],e[t][1],r[1],e[t][2])),r=[e[t][1],e[t][2]];else if("l"===e[t][0])this.length+=Math.sqrt(Math.pow(e[t][1],2)+Math.pow(e[t][2],2)),this.functions.push(new B(r[0],e[t][1]+r[0],r[1],e[t][2]+r[1])),r=[e[t][1]+r[0],e[t][2]+r[1]];else if("H"===e[t][0])this.length+=Math.abs(r[0]-e[t][1]),this.functions.push(new B(r[0],e[t][1],r[1],r[1])),r[0]=e[t][1];else if("h"===e[t][0])this.length+=Math.abs(e[t][1]),this.functions.push(new B(r[0],r[0]+e[t][1],r[1],r[1])),r[0]=e[t][1]+r[0];else if("V"===e[t][0])this.length+=Math.abs(r[1]-e[t][1]),this.functions.push(new B(r[0],r[0],r[1],e[t][1])),r[1]=e[t][1];else if("v"===e[t][0])this.length+=Math.abs(e[t][1]),this.functions.push(new B(r[0],r[0],r[1],r[1]+e[t][1])),r[1]=e[t][1]+r[1];else if("z"===e[t][0]||"Z"===e[t][0])this.length+=Math.sqrt(Math.pow(o[0]-r[0],2)+Math.pow(o[1]-r[1],2)),this.functions.push(new B(r[0],o[0],r[1],o[1])),r=[o[0],o[1]];else if("C"===e[t][0])n=new ht(r[0],r[1],e[t][1],e[t][2],e[t][3],e[t][4],e[t][5],e[t][6]),this.length+=n.getTotalLength(),r=[e[t][5],e[t][6]],this.functions.push(n);else if("c"===e[t][0])n=new ht(r[0],r[1],r[0]+e[t][1],r[1]+e[t][2],r[0]+e[t][3],r[1]+e[t][4],r[0]+e[t][5],r[1]+e[t][6]),n.getTotalLength()>0?(this.length+=n.getTotalLength(),this.functions.push(n),r=[e[t][5]+r[0],e[t][6]+r[1]]):this.functions.push(new B(r[0],r[0],r[1],r[1]));else if("S"===e[t][0]){if(t>0&&["C","c","S","s"].indexOf(e[t-1][0])>-1){if(n){const i=n.getC();n=new ht(r[0],r[1],2*r[0]-i.x,2*r[1]-i.y,e[t][1],e[t][2],e[t][3],e[t][4])}}else n=new ht(r[0],r[1],r[0],r[1],e[t][1],e[t][2],e[t][3],e[t][4]);n&&(this.length+=n.getTotalLength(),r=[e[t][3],e[t][4]],this.functions.push(n))}else if("s"===e[t][0]){if(t>0&&["C","c","S","s"].indexOf(e[t-1][0])>-1){if(n){const i=n.getC(),o=n.getD();n=new ht(r[0],r[1],r[0]+o.x-i.x,r[1]+o.y-i.y,r[0]+e[t][1],r[1]+e[t][2],r[0]+e[t][3],r[1]+e[t][4])}}else n=new ht(r[0],r[1],r[0],r[1],r[0]+e[t][1],r[1]+e[t][2],r[0]+e[t][3],r[1]+e[t][4]);n&&(this.length+=n.getTotalLength(),r=[e[t][3]+r[0],e[t][4]+r[1]],this.functions.push(n))}else if("Q"===e[t][0]){if(r[0]===e[t][1]&&r[1]===e[t][2]){const n=new B(e[t][1],e[t][3],e[t][2],e[t][4]);this.length+=n.getTotalLength(),this.functions.push(n)}else n=new ht(r[0],r[1],e[t][1],e[t][2],e[t][3],e[t][4],void 0,void 0),this.length+=n.getTotalLength(),this.functions.push(n);r=[e[t][3],e[t][4]],i=[e[t][1],e[t][2]]}else if("q"===e[t][0]){if(0!==e[t][1]||0!==e[t][2])n=new ht(r[0],r[1],r[0]+e[t][1],r[1]+e[t][2],r[0]+e[t][3],r[1]+e[t][4],void 0,void 0),this.length+=n.getTotalLength(),this.functions.push(n);else{const n=new B(r[0]+e[t][1],r[0]+e[t][3],r[1]+e[t][2],r[1]+e[t][4]);this.length+=n.getTotalLength(),this.functions.push(n)}i=[r[0]+e[t][1],r[1]+e[t][2]],r=[e[t][3]+r[0],e[t][4]+r[1]]}else if("T"===e[t][0]){if(t>0&&["Q","q","T","t"].indexOf(e[t-1][0])>-1)n=new ht(r[0],r[1],2*r[0]-i[0],2*r[1]-i[1],e[t][1],e[t][2],void 0,void 0),this.functions.push(n),this.length+=n.getTotalLength();else{const n=new B(r[0],e[t][1],r[1],e[t][2]);this.functions.push(n),this.length+=n.getTotalLength()}i=[2*r[0]-i[0],2*r[1]-i[1]],r=[e[t][1],e[t][2]]}else if("t"===e[t][0]){if(t>0&&["Q","q","T","t"].indexOf(e[t-1][0])>-1)n=new ht(r[0],r[1],2*r[0]-i[0],2*r[1]-i[1],r[0]+e[t][1],r[1]+e[t][2],void 0,void 0),this.length+=n.getTotalLength(),this.functions.push(n);else{const n=new B(r[0],r[0]+e[t][1],r[1],r[1]+e[t][2]);this.length+=n.getTotalLength(),this.functions.push(n)}i=[2*r[0]-i[0],2*r[1]-i[1]],r=[e[t][1]+r[0],e[t][2]+r[1]]}else if("A"===e[t][0]){const n=new G(r[0],r[1],e[t][1],e[t][2],e[t][3],1===e[t][4],1===e[t][5],e[t][6],e[t][7]);this.length+=n.getTotalLength(),r=[e[t][6],e[t][7]],this.functions.push(n)}else if("a"===e[t][0]){const n=new G(r[0],r[1],e[t][1],e[t][2],e[t][3],1===e[t][4],1===e[t][5],r[0]+e[t][6],r[1]+e[t][7]);this.length+=n.getTotalLength(),r=[r[0]+e[t][6],r[1]+e[t][7]],this.functions.push(n)}this.partial_lengths.push(this.length)}}getPartAtLength=_(t=>{t<0?t=0:t>this.length&&(t=this.length);let e=this.partial_lengths.length-1;for(;this.partial_lengths[e]>=t&&e>0;)e--;return e++,{fraction:t-this.partial_lengths[e-1],i:e}},"getPartAtLength");getTotalLength=_(()=>this.length,"getTotalLength");getPointAtLength=_(t=>{const e=this.getPartAtLength(t),n=this.functions[e.i];if(n)return n.getPointAtLength(e.fraction);if(this.initial_point)return this.initial_point;throw new Error("Wrong function at this part.")},"getPointAtLength");getTangentAtLength=_(t=>{const e=this.getPartAtLength(t),n=this.functions[e.i];if(n)return n.getTangentAtLength(e.fraction);if(this.initial_point)return{x:0,y:0};throw new Error("Wrong function at this part.")},"getTangentAtLength");getPropertiesAtLength=_(t=>{const e=this.getPartAtLength(t),n=this.functions[e.i];if(n)return n.getPropertiesAtLength(e.fraction);if(this.initial_point)return{x:this.initial_point.x,y:this.initial_point.y,tangentX:0,tangentY:0};throw new Error("Wrong function at this part.")},"getPropertiesAtLength");getParts=_(()=>{const t=[];for(let e=0;e<this.functions.length;e++)if(null!==this.functions[e]){this.functions[e]=this.functions[e];const n={start:this.functions[e].getPointAtLength(0),end:this.functions[e].getPointAtLength(this.partial_lengths[e]-this.partial_lengths[e-1]),length:this.partial_lengths[e]-this.partial_lengths[e-1],getPointAtLength:this.functions[e].getPointAtLength,getTangentAtLength:this.functions[e].getTangentAtLength,getPropertiesAtLength:this.functions[e].getPropertiesAtLength};t.push(n)}return t},"getParts")},ut=class{static{_(this,"_svgPathProperties")}inst;constructor(t){if(this.inst=new ct(t),!(this instanceof ut))return new ut(t)}getTotalLength=_(()=>this.inst.getTotalLength(),"getTotalLength");getPointAtLength=_(t=>this.inst.getPointAtLength(t),"getPointAtLength");getTangentAtLength=_(t=>this.inst.getTangentAtLength(t),"getTangentAtLength");getPropertiesAtLength=_(t=>this.inst.getPropertiesAtLength(t),"getPropertiesAtLength");getParts=_(()=>this.inst.getParts(),"getParts")},lt=function(){return lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},lt.apply(this,arguments)};function ft(t){return void 0===t&&(t=l.BLACK),lt(lt({},t),{alpha:0})}var pt=function(){return pt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},pt.apply(this,arguments)},gt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function dt(t){void 0===t&&(t=null);var n=null!=t?t:{},r=n.path,o=gt(n,["path"]),s=null!=r?r:"M 0 0 L 100 100",h=new ut(s).getTotalLength();return a(pt({objectType:i.PATH,anchor:e,color:f,drawn:1,fill:ft(),height:100,path:s,pathLength:h,strokeWidth:4,width:100,x:0,y:0},o))}var yt=function(){return yt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},yt.apply(this,arguments)};function vt(t){return void 0===t&&(t=null),a(yt({objectType:i.POLYGON,borderColor:f,borderWidth:0,drawn:1,points:[{x:0,y:0},{x:100,y:0},{x:100,y:100}],fill:f},t))}var xt=function(){return xt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},xt.apply(this,arguments)};function wt(t){return void 0===t&&(t=null),a(xt({objectType:i.RECTANGLE,anchor:e,borderColor:f,borderWidth:0,drawn:1,fill:f,height:100,rounding:0,width:100,x:0,y:0},t))}var bt={ANIMATE:"Animate",PAUSE:"Pause",UPDATE:"Update"},mt=1.70158,Mt=(function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(mt),function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(mt),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(mt)),At={LINEAR:function(t){return t},CUBIC:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2},CUBIC_IN:function(t){return t*t*t},CUBIC_OUT:function(t){return--t*t*t+1},BACK_IN_OUT:Mt.overshoot(.8)},Lt=At.LINEAR,Pt=function(){return Pt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Pt.apply(this,arguments)};function Ot(t,e,n){return void 0===n&&(n={}),Pt({type:bt.ANIMATE,object:t,props:e,duration:1e3,easing:Lt,block:!1,interpolators:null,isKey:!1,shortcut:null},"number"==typeof n?{duration:n}:n)}var Tt={NORMAL:"normal",ITALIC:"italic",OBLIQUE:"oblique"},St=Tt.NORMAL,Et={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900},jt=Et.NORMAL,It={color:f,fontFamily:"sans-serif",fontSize:100,fontStyle:St,fontWeight:jt,ligatures:!1};function Ct(t){return"string"==typeof t?[[{text:t}]]:t.map(function(t){return t.map(function(t){return"string"==typeof t?{text:t}:t})})}function kt(t){return Ct(t).reduce(function(t,e){return t+e.reduce(function(t,e){return t+e.text.length},0)},0)}var qt=function(){return qt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},qt.apply(this,arguments)};function _t(t,n){return void 0===t&&(t=""),void 0===n&&(n=null),a(qt(qt({objectType:i.TEXT,alignment:w,anchor:e,length:null,lineSpacing:1,text:t,x:0,y:0},It),n))}_t.writeOn=function(t,e){return void 0===e&&(e={}),Ot(t,{length:kt(t.text)},e)};var Nt=null;var Rt=function(){return Rt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Rt.apply(this,arguments)};function zt(t){return void 0===t&&(t=null),Rt({height:0,width:0},t)}var Ft=zt({width:0,height:0}),Dt=function(){return Dt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Dt.apply(this,arguments)};function Bt(t){return void 0===t&&(t=null),Dt({backgroundColor:l.WHITE,slides:[],title:"Presentation",size:zt({width:3840,height:2160}),resources:{images:{}}},t)}function Gt(t,e){void 0===e&&(e=null);var n=t.red,r=t.green,i=t.blue,o=d(t,e);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(o,")")}function Zt(t,e){window.innerHeight/window.innerWidth>e?(t.style.width="100%",t.style.height="auto"):(t.style.width="auto",t.style.height="100%")}var Xt={check:function(t){return"object"==typeof t&&null!==t&&"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&"number"==typeof t.alpha},interpolate:function(t,e,n){return{red:Math.round(t.red+(e.red-t.red)*n),green:Math.round(t.green+(e.green-t.green)*n),blue:Math.round(t.blue+(e.blue-t.blue)*n),alpha:t.alpha+(e.alpha-t.alpha)*n}}},Yt={check:function(t){return"number"==typeof t},interpolate:function(t,e,n){return t+(e-t)*n}},Ut=[Yt,Xt,{check:function(t){return!0},interpolate:function(t,e){return e}}],Wt=function(){return Wt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Wt.apply(this,arguments)},Ht=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function Kt(t,e,n,r){if(void 0===r&&(r=null),0===n)return t;if(1===n)return Wt(Wt({},t),e);var i=null!=r?Ht(Ht([],r,!0),Ut,!0):Ut,o={};for(var a in e)for(var s=t[a],h=e[a],c=0,u=i;c<u.length;c++){var l=u[c];if(l.check(s,a)&&l.check(h,a)){o[a]=l.interpolate(s,h,n);break}}return Wt(Wt({},t),o)}var Vt=function(){return Vt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Vt.apply(this,arguments)};function Qt(t,e,n){if(void 0===n&&(n=null),null!==e)for(var r=0,i=0,o=Array.isArray(e)?e:[e];i<o.length;i++){var a=o[i];if(null!==n&&r>n)break;switch(a.type){case bt.ANIMATE:if(void 0===(c=t.get(a.object)))break;var s=null!==n?n-r:null,h=null!==s?s/a.duration:1;t.set(a.object,Vt(Vt({},c),Kt(c,a.props,a.easing(h),a.interpolators))),a.block&&(r+=a.duration);break;case bt.UPDATE:var c;if(void 0===(c=t.get(a.object)))break;t.set(a.object,Vt(Vt({},c),a.props));break;case bt.PAUSE:r+=a.duration;break;default:b(a)}}}function $t(t,e,n,r){if(null!==e)if(Array.isArray(e))for(var i=0,o=e;i<o.length;i++)t[o[i]]={slideIndex:n,buildIndex:r};else t[e]={slideIndex:n,buildIndex:r}}var Jt="presenterState",te=Object.freeze({canvas:null,extrasContainer:null,mountedExtrasCleanups:[],mountedExtrasSlideIndex:null,slideIndex:0,buildIndex:0,currentAnimationId:null,imageById:{},shortcutState:{textCommand:null,shortcuts:{}}}),ee="browser",ne="node",re="browser",ie="node";function oe(t){var e=new Path2D(t);return{type:re,path:e}}function ae(t){var e=t.ctx,n=t.color,r=t.drawn,i=void 0===r?null:r,o=t.isDrawnFromCenter,a=void 0!==o&&o,s=t.opacity,h=void 0===s?null:s,c=t.path,u=t.pathLength,l=void 0===u?null:u,f=t.width;if(0!==f&&0!==i){if(null!==i&&null!==l&&1!==i){var p=l*i;a?e.context.setLineDash([0,(l-p)/2,p,(l-p)/2]):e.context.setLineDash([p,l-p])}else e.context.setLineDash([]);if(e.context.lineWidth=f,e.context.strokeStyle=y(n,h),void 0!==c)switch(e.type){case ee:c.type===re?e.context.stroke(c.path):console.warn("Attempted to use Node Path2D in Browser Canvas context");break;case ne:c.type===ie?e.context.stroke(c.path):console.warn("Attempted to use Browser Path2D in Node Canvas context");break;default:b(e)}else e.context.stroke()}}function se(t){var e=t.ctx,n=t.path,r=t.color,i=t.opacity,o=void 0===i?null:i;if(e.context.fillStyle=Gt(r,o),void 0!==n)switch(e.type){case ee:n.type===re?e.context.fill(n.path):console.warn("Attempted to use Node Path2D in Browser Canvas context");break;case ne:n.type===ie?e.context.fill(n.path):console.warn("Attempted to use Browser Path2D in Node Canvas context");break;default:b(e)}else e.context.fill()}function he(t,e){var n=e(),r=t[0];if(void 0===r)return{path:n,length:0};n.path.moveTo(r.x,r.y);for(var i=0,o=1;o<t.length;o++){var a=t[o],s=t[o-1];if(void 0!==a&&void 0!==s){var h=a.x-s.x,c=a.y-s.y;i+=Math.hypot(h,c),n.path.lineTo(a.x,a.y)}}return{path:n,length:i}}var ce=function(){return ce=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ce.apply(this,arguments)};function ue(t){return void 0===t&&(t=null),ce({x:0,y:0},t)}var le=ue(),fe=function(){return fe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},fe.apply(this,arguments)};function pe(t){return void 0===t&&(t=null),fe({origin:le,size:Ft},t)}function ge(e,n,r){var i=e.x,o=e.y,a=r.width,s=r.height;switch(n){case t.TOP_LEFT:return pe({origin:ue({x:i,y:o}),size:r});case t.TOP:return pe({origin:ue({x:i-a/2,y:o}),size:r});case t.TOP_RIGHT:return pe({origin:ue({x:i-a,y:o}),size:r});case t.LEFT:return pe({origin:ue({x:i,y:o-s/2}),size:r});case t.CENTER:return pe({origin:ue({x:i-a/2,y:o-s/2}),size:r});case t.RIGHT:return pe({origin:ue({x:i-a,y:o-s/2}),size:r});case t.BOTTOM_LEFT:return pe({origin:ue({x:i,y:o-s}),size:r});case t.BOTTOM:return pe({origin:ue({x:i-a/2,y:o-s}),size:r});case t.BOTTOM_RIGHT:return pe({origin:ue({x:i-a,y:o-s}),size:r});default:b(n)}}function de(t,e,n,r,i){void 0===i&&(i=0);var o=r();return o.path.moveTo(t.x+n,t.y),o.path.lineTo(t.x+e.width-n,t.y),o.path.arcTo(t.x+e.width,t.y,t.x+e.width,t.y+n,n),o.path.lineTo(t.x+e.width,t.y+e.height-n),o.path.arcTo(t.x+e.width,t.y+e.height,t.x+e.width-n,t.y+e.height,n),o.path.lineTo(t.x+n,t.y+e.height),o.path.arcTo(t.x,t.y+e.height,t.x,t.y+e.height-n,n),o.path.lineTo(t.x,t.y+n),o.path.arcTo(t.x,t.y,t.x+n,t.y,n),i>0&&o.path.lineTo(t.x+n+i,t.y),{path:o,length:2*(e.width+e.height-4*n)+2*Math.PI*n+i}}pe();var ye="browser";function ve(t){return{width:t.width,height:t.fontBoundingBoxAscent}}function xe(t,e,n){void 0===n&&(n=1),t.context.fillStyle=Gt(e.color,n),t.context.font="".concat(e.fontStyle," ").concat(e.fontWeight," ").concat(e.fontSize,"px ").concat(e.fontFamily),t.type===ee?t.context.textRendering=e.ligatures?"optimizeLegibility":"optimizeSpeed":t.context.fontVariant=e.ligatures?"common-ligatures":"no-common-ligatures"}var we,be=function(){return be=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},be.apply(this,arguments)},me=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Me=function(){return Me=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Me.apply(this,arguments)},Ae=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Le=((we={})[i.ARROW]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&0!==n.drawn){var a=function(t){var e=t.drawn,n=t.startX,r=t.startY,i=t.endX,o=t.endY,a=t.arrowheadSize,s=t.isArrowheadFilled,h=t.isDrawnFromCenter,c={x:n,y:r},u=i,l=o,f=Math.atan2(l-c.y,u-c.x),p=c.x+(u-c.x)/2,g=c.y+(l-c.y)/2,d=u-c.x,y=l-c.y,v=Math.hypot(d,y)*e,x=Math.cos(f),w=Math.sin(f),b=h?{x:p-x*v/2,y:g-w*v/2}:c,m=h?{x:p+x*v/2,y:g+w*v/2}:{x:c.x+x*v,y:c.y+w*v},M=s?Math.PI/6:Math.PI/4.5,A=v<2*a?v/2:a;return{arrowPoints:[b,m],arrowheadPoints:[{x:m.x-A*Math.cos(f-M),y:m.y-A*Math.sin(f-M)},m,{x:m.x-A*Math.cos(f+M),y:m.y-A*Math.sin(f+M)}],doubledArrowheadPoints:[{x:b.x+A*Math.cos(f-M),y:b.y+A*Math.sin(f-M)},b,{x:b.x+A*Math.cos(f+M),y:b.y+A*Math.sin(f+M)}]}}(n),s=a.arrowPoints,h=a.arrowheadPoints,c=a.doubledArrowheadPoints,u=he(s,i).path,l=he(h,i).path;if(ae({color:n.color,ctx:e,path:u,opacity:o,width:n.width}),n.isArrowheadFilled&&(l.path.closePath(),se({ctx:e,path:l,color:n.color,opacity:o})),ae({color:n.color,ctx:e,path:l,opacity:o,width:n.width}),n.isArrowheadDoubled){var f=he(c,i).path;n.isArrowheadFilled&&(f.path.closePath(),se({ctx:e,path:f,color:n.color,opacity:o})),ae({color:n.color,ctx:e,path:f,opacity:o,width:n.width})}}},we[i.CIRCLE]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&(0!==n.drawn||0!==n.fill.alpha)){var a=function(t,e){var n=e(),r=-Math.PI/2;return n.path.arc(t.x,t.y,t.radius,r,r+2*Math.PI),{path:n,length:2*Math.PI*t.radius}}(n,i),s=a.path,h=a.length;se({ctx:e,path:s,color:n.fill,opacity:o}),ae({color:n.borderColor,ctx:e,drawn:n.drawn,path:s,pathLength:h,opacity:o,width:n.borderWidth})}},we[i.GROUP]=function(t){var e=t.ctx,n=t.object,r=t.renderObject,i=t.opacity,o=ge(ue({x:n.x,y:n.y}),n.anchor,zt({width:n.width*n.scale,height:n.height*n.scale})),a=n.rotation,s=n.rotateOriginX,h=n.rotateOriginY;if(0!==n.scale){e.context.translate(o.origin.x,o.origin.y),e.context.scale(n.scale,n.scale),e.context.translate(s,h),e.context.rotate(a*Math.PI/180),e.context.translate(-s,-h);for(var c=0,u=n.objects;c<u.length;c++)r(u[c],i*n.opacity);e.context.translate(s,h),e.context.rotate(-a*Math.PI/180),e.context.translate(-s,-h),e.context.scale(1/n.scale,1/n.scale),e.context.translate(-o.origin.x,-o.origin.y)}},we[i.IMAGE]=function(t){var e=t.ctx,n=t.imageById,r=t.object,i=t.opacity,o=t.createPath2D,a=ge(ue({x:r.x,y:r.y}),r.anchor,zt({width:r.width,height:r.height})),s=n[r.imageId];if(void 0!==s){if(e.context.save(),r.rounding>0){var h=de(a.origin,a.size,r.rounding,o);switch(e.type){case ee:h.path.type===re?e.context.clip(h.path.path):console.warn("Attempted to use Node Path2D in Browser Canvas context");break;case ne:h.path.type===ie?e.context.clip(h.path.path):console.warn("Attempted to use Browser Path2D in Node Canvas context");break;default:b(e)}}switch(e.context.globalAlpha=i*r.opacity,e.context.imageSmoothingEnabled=r.smooth,e.type){case ee:s.type===ye?e.context.drawImage(s.image,a.origin.x,a.origin.y,a.size.width,a.size.height):console.warn("Attempted to use Node Image in Browser Canvas context");break;case ne:"node"===s.type?e.context.drawImage(s.image,a.origin.x,a.origin.y,a.size.width,a.size.height):console.warn("Attempted to use Browser Image in Node Canvas context");break;default:b(e)}e.context.restore()}},we[i.LINE]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&0!==n.drawn){var a=function(t,e){var n=e();return n.path.moveTo(t.startX,t.startY),n.path.lineTo(t.endX,t.endY),{path:n,length:Math.hypot(t.endX-t.startX,t.endY-t.startY)}}(n,i),s=a.path,h=a.length;ae({color:n.color,ctx:e,drawn:n.drawn,isDrawnFromCenter:n.isDrawnFromCenter,path:s,pathLength:h,opacity:o,width:n.width})}},we[i.MASK]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.renderObject;e.context.save();var o=ge(ue({x:n.x,y:n.y}),n.anchor,zt({width:n.width,height:n.height}));n.preview&&(e.context.lineWidth=4,e.context.strokeStyle=y(l.RED),e.context.rect(o.origin.x,o.origin.y,o.size.width,o.size.height),e.context.stroke()),e.context.beginPath(),e.context.rect(o.origin.x,o.origin.y,o.size.width,o.size.height),e.context.closePath(),e.context.clip();for(var a=0,s=n.objects;a<s.length;a++)i(s[a],r*n.opacity);e.context.restore()},we[i.PATH]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&(0!==n.drawn||0!==n.fill.alpha)){var a=ge(ue({x:n.x,y:n.y}),n.anchor,zt({width:n.width,height:n.height})).origin,s=i(n.path);e.context.save(),e.context.translate(a.x,a.y),se({ctx:e,path:s,color:n.fill,opacity:o}),ae({color:n.color,ctx:e,drawn:n.drawn,path:s,pathLength:n.pathLength,opacity:o,width:n.strokeWidth}),e.context.restore()}},we[i.POLYGON]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&(0!==n.drawn||0!==n.fill.alpha)){var a=function(t,e){var n=e(),r=t.points,i=r[0];if(void 0===i)return{path:n,length:0};n.path.moveTo(i.x,i.y);for(var o=0,a=i,s=1;s<r.length;s++){var h=r[s];void 0!==h&&(n.path.lineTo(h.x,h.y),o+=Math.hypot(h.x-a.x,h.y-a.y),a=h)}return n.path.closePath(),{path:n,length:o+=Math.hypot(i.x-a.x,i.y-a.y)}}(n,i),s=a.path,h=a.length;se({ctx:e,path:s,color:n.fill,opacity:o}),ae({color:n.borderColor,ctx:e,drawn:n.drawn,path:s,pathLength:h,opacity:o,width:n.borderWidth})}},we[i.RECTANGLE]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&(0!==n.drawn||0!==n.fill.alpha)){var a=function(t,e){var n=ge(ue({x:t.x,y:t.y}),t.anchor,zt({width:t.width,height:t.height})),r=n.origin,i=n.size,o=Math.max(0,Math.min(t.rounding,Math.min(i.width,i.height)/2)),a=Math.min(2*t.borderWidth,i.width-o);if(o>0)return de(r,i,o,e,a);var s=e();return s.path.moveTo(r.x,r.y),s.path.lineTo(r.x+i.width,r.y),s.path.lineTo(r.x+i.width,r.y+i.height),s.path.lineTo(r.x,r.y+i.height),s.path.lineTo(r.x,r.y),s.path.lineTo(r.x+a,r.y),{path:s,length:2*(i.width+i.height)+a}}(n,i),s=a.path,h=a.length;se({ctx:e,path:s,color:n.fill,opacity:o}),ae({color:n.borderColor,ctx:e,drawn:n.drawn,path:s,pathLength:h,opacity:o,width:n.borderWidth})}},we[i.SLIDE_OBJECT]=function(){},we[i.TEXT]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=n.opacity*r;if(0!==i)for(var o=n.length,a=Ct(n.text),s=function(t){return{color:t.color,fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,ligatures:t.ligatures}}(n),h=function(t,e,n){for(var r=[],i=0,o=t;i<o.length;i++){for(var a=[],s=0,h=o[i];s<h.length;s++){var c=h[s],u=c.text,l=me(c,["text"]);xe(n,be(be({},e),l));var f=n.context.measureText(u);a.push(ve(f))}r.push(a)}return r}(a,s,e),c=function(t,e){void 0===e&&(e=1);for(var n=Math.max.apply(Math,t.map(function(t){return t.reduce(function(t,e){return t+e.width},0)})),r=0,i=0,o=0;o<t.length;o++){var a=t[o];if(void 0!==a){var s=Math.max.apply(Math,a.map(function(t){return t.height}));r+=s+i*(e-1),i=s}}return{height:r,width:n}}(h,n.lineSpacing),u=ge(ue({x:n.x,y:n.y}),n.anchor,c),l=u.origin.x,f=u.origin.y,p=0,g=0,d=0;d<a.length;d++){var y=a[d],v=h[d];if(null!=y&&null!=v){var w=v.reduce(function(t,e){return t+e.width},0),m=0===v.length?g:v.reduce(function(t,e){return Math.max(t,e.height)},0);switch(n.alignment){case x.LEFT:l=u.origin.x;break;case x.CENTER:l=u.origin.x+(u.size.width-w)/2;break;case x.RIGHT:l=u.origin.x+(u.size.width-w);break;default:b(n.alignment)}f+=m+g*(n.lineSpacing-1),g=m;for(var M=0;M<y.length&&!(null!==o&&p>=o);M++){var A=y[M],L=v[M];if(null!=A&&null!=L){var P=A.text,O=Ae(A,["text"]),T=void 0;if(null!==o&&p+P.length>o){var S=o-p;T=P.slice(0,S)}var E=null!=T?T:P;p+=E.length,xe(e,Me(Me({},s),O),i),e.context.fillText(E,l,f),l+=L.width}else console.error("Could not determine text unit or size for unit")}}else console.error("Could not determine text units or sizes for line")}},we);function Pe(t,e){if(null===t)return null;var n=ge(ue({x:e.x,y:e.y}),e.anchor,zt({width:e.width,height:e.height})),r=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");r.setAttribute("x",n.origin.x.toString()),r.setAttribute("y",n.origin.y.toString()),r.setAttribute("width",e.width.toString()),r.setAttribute("height",e.height.toString());var i=e.content;null!==i&&r.appendChild(i),t.appendChild(r);var o=null;if(null!==e.setup){var a=e.setup(r);void 0!==a&&(o=a)}return function(){null!==o&&o(),t.removeChild(r)}}var Oe=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{h(r.next(t))}catch(t){o(t)}}function s(t){try{h(r.throw(t))}catch(t){o(t)}}function h(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}h((r=r.apply(t,e||[])).next())})},Te=function(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(h){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,h])}}};function Se(t){return Oe(this,void 0,void 0,function(){var e,n,r,i=this;return Te(this,function(o){switch(o.label){case 0:return 0===Object.keys(t).length?[2,{}]:(e={},n=function(t){return new Promise(function(e,n){var r=new Image;if(r.onload=function(){return e(r)},r.onerror=function(t){return n(t)},t.includes("</svg>")){var i=new Blob([t],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);r.src=o}else r.src=t})},r=Object.entries(t).map(function(t){return Oe(i,[t],void 0,function(t){var r,i=t[0],o=t[1];return Te(this,function(t){switch(t.label){case 0:return[4,n(o)];case 1:return r=t.sent(),e[i]={type:ye,image:r},[2]}})})}),[4,Promise.all(r)]);case 1:return o.sent(),[2,e]}})})}var Ee=function(){return Ee=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ee.apply(this,arguments)},je=function(){function t(t){var e=t.objectRenderers,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["objectRenderers"]);this.props=Ee({presentation:Bt(),element:document.body,objectRenderers:Ee(Ee({},Le),e),cacheDurationMinutes:15},n),this.state=Ee({},te)}return t.prototype.present=function(){return function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{h(r.next(t))}catch(t){o(t)}}function s(t){try{h(r.throw(t))}catch(t){o(t)}}function h(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}h((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function(){var t,e,n,r,i,o,a,s,h,c,u=this;return function(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(h){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,h])}}}(this,function(l){switch(l.label){case 0:return t=this.props,e=t.presentation,n=t.element,r=function(t){var e=document.createElement("canvas");return e.setAttribute("width",t.width.toString()),e.setAttribute("height",t.height.toString()),e.style.position="absolute",e.style.width="100%",e}(e.size),f=e.size,(p=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("viewBox","0 0 ".concat(f.width," ").concat(f.height)),p.style.backgroundColor="transparent",p.style.position="absolute",p.style.width="100%",i=p,o=this,a=[Ee({},te)],c={},[4,Se(e.resources.images)];case 1:return o.state=Ee.apply(void 0,a.concat([(c.imageById=l.sent(),c.canvas=r,c.extrasContainer=i,c)])),s=function(t,e){var n=document.createElement("div");if(n.style.width="100%",n.style.aspectRatio="".concat(t.size.width," / ").concat(t.size.height),n.style.position="relative",n.style.top="50%",n.style.transform="translateY(-50%)",n.style.marginLeft="auto",n.style.marginRight="auto",e===document.body){n.style.overflowY="clip",document.title=t.title,document.documentElement.style.height="100%",document.body.style.margin="0",document.body.style.height="100%",document.body.style.width="100%",document.body.style.backgroundColor="#000000";var r=t.size.height/t.size.width;Zt(n,r),window.matchMedia("(min-aspect-ratio: ".concat(t.size.width," / ").concat(t.size.height,")")).addEventListener("change",function(){return Zt(n,r)})}return n}(e,n),function(t,e,n,r){var i=r.onNext,o=r.onPrevious,a=r.onRenderSlide,s=r.onShowNavigator;n.shortcuts=function(t){for(var e,n,r=t.slides,i={s:{slideIndex:0,buildIndex:0},c:{slideIndex:null,buildIndex:0},e:{slideIndex:r.length-1,buildIndex:null!==(n=null===(e=r[r.length-1])||void 0===e?void 0:e.animations.length)&&void 0!==n?n:0}},o=0;o<r.length;o++){var a=r[o];if(void 0!==a){$t(i,a.shortcut,o,0);for(var s=0;s<a.animations.length;s++){var h=a.animations[s];if(void 0!==h)if(Array.isArray(h))for(var c=0,u=h;c<u.length;c++)$t(i,u[c].shortcut,o,s+1);else $t(i,h.shortcut,o,s+1)}}}return i}(t),e.addEventListener("keyup",function(t){if("Escape"!==t.code)if("ArrowRight"!==t.code&&"Space"!==t.code)if("ArrowLeft"!==t.code)if(null===n.textCommand)"g"!==t.key?"`"!==t.key||s():n.textCommand="";else{if("Enter"===t.code){var e=n.textCommand;n.textCommand=null;var r=n.shortcuts[e];return void(void 0!==r?a(r.slideIndex,r.buildIndex):isNaN(Number(e))||a(Number(e)-1,0))}"Backspace"===t.code?n.textCommand=n.textCommand.slice(0,-1):n.textCommand+=t.key}else o(t.shiftKey);else i(t.shiftKey);else n.textCommand=null})}(e,n,this.state.shortcutState,{onNext:function(t){return u.next(t)},onPrevious:function(t){return u.previous(t)},onRenderSlide:function(t,e){u.state.shortcutState.shortcuts.b={slideIndex:u.state.slideIndex,buildIndex:u.state.buildIndex},u.renderSlide(null!=t?t:u.state.slideIndex,e)},onShowNavigator:function(){return function(t){var e=t.presentation,n=t.onNavigateToSlide;if(null===Nt||Nt.closed)if(null!==(Nt=window.open("","Navigator","width=300,height=500,left=20,top=50"))){var r=function(t,e){var n=document.createElement("div");return n.style.fontFamily="Arial, sans-serif",t.slides.forEach(function(t,r){var i=function(t,e){var n=document.createElement("div");return n.style.marginBottom="8px",n.style.padding="8px",n.style.backgroundColor="#eceed7",n.style.borderRadius="4px",n.style.userSelect="none",n.innerHTML="".concat(e+1,": ")+(t.title.length>0?t.title:"Slide ".concat(e+1)),n}(t,r);i.style.cursor="pointer",i.addEventListener("click",function(t){t.shiftKey&&(null==Nt||Nt.close()),e(r)}),n.appendChild(i)}),n}(e,n);Nt.document.title=e.title,Nt.document.body.appendChild(r),Nt.addEventListener("keyup",function(t){"Escape"!==t.key&&"`"!==t.key||(null==Nt||Nt.close(),Nt=null)})}else console.error("Failed to open navigator window.");else Nt.focus()}({presentation:e,onNavigateToSlide:function(t){return u.renderSlide(t)}})}}),n.replaceChildren(),s.appendChild(r),s.appendChild(i),n.appendChild(s),h=function(t,e){var n,r=localStorage.getItem(Jt);if(null===r)return null;if(null===e)return localStorage.removeItem(Jt),null;try{n=JSON.parse(r)}catch(t){return console.error("Failed to parse presentation state from localStorage:",t),localStorage.removeItem(Jt),null}var i=n,o=i.title,a=i.timestamp,s=n,h=s.slideIndex,c=s.buildIndex;if("string"!=typeof o||"number"!=typeof h||"number"!=typeof c||"number"!=typeof a)return localStorage.removeItem(Jt),null;if(o!==t.title)return localStorage.removeItem(Jt),null;if(Date.now()-a>6e4*e)return localStorage.removeItem(Jt),null;h>t.slides.length-1&&(h=t.slides.length-1,c=0);var u=t.slides[h];return void 0===u?(localStorage.removeItem(Jt),null):(c>u.animations.length&&(c=u.animations.length),{title:o,slideIndex:h,buildIndex:c})}(e,this.props.cacheDurationMinutes),null!==h?this.renderSlide(h.slideIndex,h.buildIndex):this.renderSlide(0),[2]}var f,p})})},t.prototype.renderSlide=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=this.props,i=r.objectRenderers,o=r.presentation,a=this.state,s=a.canvas,h=a.imageById,c=this.state.slideIndex!==t;this.state.slideIndex=t,this.state.buildIndex=e,null===n&&function(t){var e=t.title,n=t.slideIndex,r=t.buildIndex;localStorage.setItem(Jt,JSON.stringify({title:e,slideIndex:n,buildIndex:r,timestamp:Date.now()}))}({title:o.title,slideIndex:t,buildIndex:e});var u=o.slides[t];if(void 0!==u&&null!==s){if(c||0===this.state.mountedExtrasCleanups.length&&u.extras.length>0){for(var l=0,f=this.state.mountedExtrasCleanups;l<f.length;l++)(d=f[l])();this.state.mountedExtrasCleanups=[];for(var p=0,g=u.extras;p<g.length;p++){var d,y=g[p];null!==(d=Pe(this.state.extrasContainer,y))&&this.state.mountedExtrasCleanups.push(d)}}var v=s.getContext("2d");if(null!==v){var x={type:ee,context:v};!function(t,e){e.context.clearRect(0,0,t.width,t.height)}(s,x);var w=function(t){var e,n,r=t.slide,i=t.buildIndex,o=t.buildTime,a=new Map;function s(t){a.set(t,t);for(var e=0,n=function(t){return"objects"in t?t.objects.filter(function(t){return"objectType"in t}):[]}(t);e<n.length;e++)s(n[e])}for(var h=0,c=r.objects;h<c.length;h++)s(c[h]);for(var u=null===o?i:i-1,l=0;l<u;l++){var f=null!==(e=r.animations[l])&&void 0!==e?e:null;Qt(a,f)}return null!==o&&i>0&&(f=null!==(n=r.animations[i-1])&&void 0!==n?n:null,Qt(a,f,o)),a}({slide:u,buildIndex:e,buildTime:n});x.context.fillStyle=Gt(o.backgroundColor),x.context.fillRect(0,0,s.width,s.height);for(var b=0,m=u.objects;b<m.length;b++)M(m[b],1)}}function M(t,e){var n=i[t.objectType],r=w.get(t);void 0!==n&&void 0!==r&&n({ctx:x,imageById:h,object:r,opacity:e,renderObject:M,createPath2D:oe})}},t.prototype.next=function(t){var e=this;void 0===t&&(t=!1);var n=this.props.presentation,r=this.state,i=r.currentAnimationId,o=r.slideIndex,a=r.buildIndex;null!==i&&cancelAnimationFrame(i);var s=n.slides[o];if(void 0!==s){var h=s.animations[a];if(void 0===h||t)o+1<n.slides.length&&this.renderSlide(o+1);else{var c=performance.now(),u=function(t){for(var e=0,n=0,r=0,i=Array.isArray(t)?t:[t];r<i.length;r++){var o=i[r];switch(o.type){case bt.PAUSE:e+=o.duration;break;case bt.ANIMATE:n=Math.max(n,e+o.duration),o.block&&(e+=o.duration);break;case bt.UPDATE:break;default:b(o)}}return n}(h),l=function(t){var n=t-c;n<u?(e.renderSlide(o,a+1,n),e.state.currentAnimationId=requestAnimationFrame(l)):e.renderSlide(o,a+1,null)};this.state.currentAnimationId=requestAnimationFrame(l)}}},t.prototype.previous=function(t){var e;void 0===t&&(t=!1);var n=this.state,r=n.currentAnimationId,i=n.slideIndex,o=n.buildIndex;if(null!==r&&cancelAnimationFrame(r),o>0)t?this.renderSlide(i,0):this.renderSlide(i,o-1);else if(i>0){var a=this.props.presentation.slides[i-1],s=t?0:null!==(e=null==a?void 0:a.animations.length)&&void 0!==e?e:0;this.renderSlide(i-1,s)}else this.renderSlide(0,0)},t}();function Ie(t){return void 0===t&&(t=1e3),{type:bt.PAUSE,isKey:!1,duration:t,shortcut:null}}var Ce=function(){return Ce=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ce.apply(this,arguments)};function ke(t){return void 0===t&&(t=null),Ce({objects:[],animations:[],extras:[],isAllKey:!1,isEndKey:!0,isStartKey:!1,shortcut:null,title:""},t)}var qe=function(){return qe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},qe.apply(this,arguments)};function _e(t,e){return void 0===e&&(e={}),qe(qe({},e),{text:t})}function Ne(t,e){return{type:bt.UPDATE,isKey:!1,object:t,props:e,shortcut:null}}var Re=function(){return Re=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Re.apply(this,arguments)};function ze(t){return void 0===t&&(t=l.BLACK),Re(Re({},t),{alpha:1})}var Fe=n(814);function De(t,e,n){void 0===n&&(n=3);var r=(0,Fe.interpolate)(t,e,{maxSegmentLength:n});return{check:function(t){return"string"==typeof t},interpolate:function(t,e,n){return r(n)}}}function Be(t){var e=function(e){return t.width*e},n=function(e){return t.height*e};return{scaleX:e,scaleY:n,position:function(t,r){return ue({x:e(t),y:n(r)})}}}function Ge(t){var e=[];if(t.isAllKey){for(var n=0;n<=t.animations.length;n++)e.push(n);return e}return t.isStartKey&&e.push(0),t.animations.forEach(function(t,n){Array.isArray(t)?t.some(function(t){return t.isKey})&&e.push(n+1):t.isKey&&e.push(n+1)}),t.isEndKey&&e[e.length-1]!==t.animations.length&&e.push(t.animations.length),e}})(),r})());
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Presenter=e():t.Presenter=e()}(this,()=>(()=>{var t={814:function(t,e){!function(t){"use strict";function e(t){return 10===t||13===t||8232===t||8233===t||32===t||9===t||11===t||12===t||160===t||t>=5760&&Lt.indexOf(t)>=0}function n(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 o(t){for(;t.index<t.max&&e(t.path.charCodeAt(t.index));)t.index++}function a(t){var e,r=t.index,i=r,o=t.max,a=!1,s=!1,h=!1,c=!1;if(i>=o)t.err="SvgPath: missed param (at pos "+i+")";else if(43!==(e=t.path.charCodeAt(i))&&45!==e||(e=++i<o?t.path.charCodeAt(i):0),n(e)||46===e){if(46!==e){if(a=48===e,e=++i<o?t.path.charCodeAt(i):0,a&&i<o&&e&&n(e))return void(t.err="SvgPath: numbers started with `0` such as `09` are ilegal (at pos "+r+")");for(;i<o&&n(t.path.charCodeAt(i));)i++,s=!0;e=i<o?t.path.charCodeAt(i):0}if(46===e){for(c=!0,i++;n(t.path.charCodeAt(i));)i++,h=!0;e=i<o?t.path.charCodeAt(i):0}if(101===e||69===e){if(c&&!s&&!h)return void(t.err="SvgPath: invalid float exponent (at pos "+i+")");if(43!==(e=++i<o?t.path.charCodeAt(i):0)&&45!==e||i++,!(i<o&&n(t.path.charCodeAt(i))))return void(t.err="SvgPath: invalid float exponent (at pos "+i+")");for(;i<o&&n(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 e,n;n=(e=t.path[t.segmentStart]).toLowerCase();var r=t.data;if("m"===n&&r.length>2&&(t.result.push([e,r[0],r[1]]),r=r.slice(2),n="l",e="m"===e?"l":"L"),"r"===n)t.result.push([e].concat(r));else for(;r.length>=At[n]&&(t.result.push([e].concat(r.splice(0,At[n]))),At[n]););}function h(t){var e,n,i,h=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(n=At[t.path[t.index].toLowerCase()],t.index++,o(t),t.data=[],n){for(e=!1;;){for(i=n;i>0;i--){if(a(t),t.err.length)return;t.data.push(t.param),o(t),e=!1,t.index<h&&44===t.path.charCodeAt(t.index)&&(t.index++,o(t),e=!0)}if(!e){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 c(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}function u(){if(!(this instanceof u))return new u;this.queue=[],this.cache=null}function l(t,e,n,r){var i=t*r-e*n<0?-1:1,o=(t*n+e*r)/(Math.sqrt(t*t+e*e)*Math.sqrt(t*t+e*e));return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function f(t,e,n,r,i,o,a,s,h,c){var u=c*(t-n)/2+h*(e-r)/2,f=-h*(t-n)/2+c*(e-r)/2,p=a*a,g=s*s,d=u*u,y=f*f,v=p*g-p*y-g*d;v<0&&(v=0),v/=p*y+g*d;var x=(v=Math.sqrt(v)*(i===o?-1:1))*a/s*f,w=v*-s/a*u,b=c*x-h*w+(t+n)/2,m=h*x+c*w+(e+r)/2,M=(u-x)/a,A=(f-w)/s,L=(-u-x)/a,P=(-f-w)/s,O=l(1,0,M,A),T=l(M,A,L,P);return 0===o&&T>0&&(T-=jt),1===o&&T<0&&(T+=jt),[b,m,O,T]}function p(t,e){var n=4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[r,i,r-i*n,i+r*n,o+a*n,a-o*n,o,a]}function g(t,e,n){if(!(this instanceof g))return new g(t,e,n);this.rx=t,this.ry=e,this.ax=n}function d(t){if(!(this instanceof d))return new d(t);var e=Pt(t);this.segments=e.segments,this.err=e.err,this.__stack=[]}function y(t,e,n,r,i,o,a,s){this.a={x:t,y:e},this.b={x:n,y:r},this.c={x:i,y:o},this.d={x:a,y:s},null!=a&&null!=s?(this.getArcLength=O,this.getPoint=m,this.getDerivative=x):(this.getArcLength=M,this.getPoint=b,this.getDerivative=v),this.init()}function v(t,e,n){return{x:2*(1-n)*(t[1]-t[0])+2*n*(t[2]-t[1]),y:2*(1-n)*(e[1]-e[0])+2*n*(e[2]-e[1])}}function x(t,e,n){return b([3*(t[1]-t[0]),3*(t[2]-t[1]),3*(t[3]-t[2])],[3*(e[1]-e[0]),3*(e[2]-e[1]),3*(e[3]-e[2])],n)}function w(t,e,n,r,i){for(var o=1,a=t/e,s=(t-n(r,i,a))/e;o>.001;){var h=n(r,i,a+s),c=n(r,i,a-s),u=Math.abs(t-h)/e,l=Math.abs(t-c)/e;u<o?(o=u,a+=s):l<o?(o=l,a-=s):s/=2}return a}function b(t,e,n){return{x:(1-n)*(1-n)*t[0]+2*(1-n)*n*t[1]+n*n*t[2],y:(1-n)*(1-n)*e[0]+2*(1-n)*n*e[1]+n*n*e[2]}}function m(t,e,n){return{x:(1-n)*(1-n)*(1-n)*t[0]+3*(1-n)*(1-n)*n*t[1]+3*(1-n)*n*n*t[2]+n*n*n*t[3],y:(1-n)*(1-n)*(1-n)*e[0]+3*(1-n)*(1-n)*n*e[1]+3*(1-n)*n*n*e[2]+n*n*n*e[3]}}function M(t,e,n){void 0===n&&(n=1);var r=t[0]-2*t[1]+t[2],i=e[0]-2*e[1]+e[2],o=2*t[1]-2*t[0],a=2*e[1]-2*e[0],s=4*(r*r+i*i),h=4*(r*o+i*a),c=o*o+a*a;if(0===s)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));var u=h/(2*s),l=n+u,f=c/s-u*u;return Math.sqrt(s)/2*(l*Math.sqrt(l*l+f)-u*Math.sqrt(u*u+f)+f*Math.log(Math.abs((l+Math.sqrt(l*l+f))/(u+Math.sqrt(u*u+f)))))}function A(t,e){return Bt[t][e]}function L(t,e,n){var r,i,o,a=n.length-1;if(0===a)return 0;if(0===t){for(i=0,o=0;o<=a;o++)i+=A(a,o)*Math.pow(1-e,a-o)*Math.pow(e,o)*n[o];return i}for(r=new Array(a),o=0;o<a;o++)r[o]=a*(n[o+1]-n[o]);return L(t-1,e,r)}function P(t,e,n){var r=L(1,n,t),i=L(1,n,e),o=r*r+i*i;return Math.sqrt(o)}function O(t,e,n){var r,i,o,a;for(void 0===n&&(n=1),r=n/2,i=0,o=0;o<20;o++)a=r*Ft[20][o]+r,i+=Dt[20][o]*P(t,e,a);return r*i}function T(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)}function S(t,e){var n=4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[r,i,r-i*n,i+r*n,o+a*n,a-o*n,o,a]}function E(t,e,n,r,i,o,a,s,h){var c=0,u=[],l=[];Zt(t,e,n,r,i,o,a,s,h).forEach(function(t){var e=new zt(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),n=e.getTotalLength();c+=n,u.push(n),l.push(e)}),this.length=c,this.partialLengths=u,this.curves=l}function j(t,e,n,r){this.x0=t,this.x1=e,this.y0=n,this.y1=r}function C(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function I(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function k(t,e,n){var r=t.map(function(t,n){return function(t,e){return function(n){return t.map(function(t,r){return t+n*(e[r]-t)})}}(t,e[n])});return function(t){var e=r.map(function(e){return e(t)});return n?z(e):e}}function q(t){return"number"==typeof t&&isFinite(t)}function _(t){return function(t){for(var e=0;e<t.length-2;e++){var n=t[e],r=t[e+1],i=t[e+2];if(n[0]*(r[1]-i[1])+r[0]*(i[1]-n[1])+i[0]*(n[1]-r[1]))return!0}return!1}(t)?mt(t):[(t[0][0]+t[t.length-1][0])/2,(t[0][1]+t[t.length-1][1])/2]}function R(t){return new kt(t).abs()}function N(t){return t.toString().split("M").map(function(t,e){return t=t.trim(),e&&t?"M"+t:t}).filter(function(t){return t})}function z(t){return"M"+t.join("L")+"Z"}function F(t,e){var n=R(t);return function(t){var e=t.segments||[],n=[];if(!e.length||"M"!==e[0][0])return!1;for(var r=0;r<e.length;r++){var i=e[r],o=i[0],a=i[1],s=i[2];if("M"===o&&r||"Z"===o)break;if("M"===o||"L"===o)n.push([a,s]);else if("H"===o)n.push([a,n[n.length-1][1]]);else{if("V"!==o)return!1;n.push([n[n.length-1][0],a])}}return!!n.length&&{ring:n}}(n)||function(t,e){var n,r,i=N(t)[0],o=[],a=3;if(!i)throw new TypeError(Ht);n=(r=function(t){if("undefined"!=typeof window&&window&&window.document)try{var e=window.document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttributeNS(null,"d",t),e}catch(t){}return Yt(t)}(i)).getTotalLength(),e&&q(e)&&e>0&&(a=Math.max(a,Math.ceil(n/e)));for(var s=0;s<a;s++){var h=r.getPointAtLength(n*s/a);o.push([h.x,h.y])}return{ring:o,skipBisect:!0}}(n,e)}function D(t,e){for(var n=t.length+e,r=Mt(t)/e,i=0,o=0,a=r/2;t.length<n;){var s=t[i],h=t[(i+1)%t.length],c=C(s,h);a<=o+c?(t.splice(i+1,0,c?I(s,h,(a-o)/c):s.slice(0)),a+=r):(o+=c,i++)}}function B(t,e){var n,r;if("string"==typeof t){var i=F(t,e);t=i.ring,r=i.skipBisect}else if(!Array.isArray(t))throw new TypeError(Ht);if(!function(t){return t.every(function(t){return Array.isArray(t)&&t.length>=2&&q(t[0])&&q(t[1])})}(n=t.slice(0)))throw new TypeError(Ht);return n.length>1&&function(t,e){return C(t,e)<1e-9}(n[0],n[n.length-1])&&n.pop(),bt(n)>0&&n.reverse(),!r&&e&&q(e)&&e>0&&function(t,e){void 0===e&&(e=1/0);for(var n=0;n<t.length;n++)for(var r=t[n],i=n===t.length-1?t[0]:t[n+1];C(r,i)>e;)i=I(r,i,.5),t.splice(n+1,0,i)}(n,e),n}function G(t,e,n){var r;return D(t,(r=t.length-e.length)<0?-1*r:0),D(e,r>0?r:0),Kt(t,e),k(t,e,n)}function Z(t,e,n){n=n||2;var r,i,o,a,s,h,c,u=e&&e.length,l=u?e[0]*n:t.length,f=W(t,0,l,n,!0),p=[];if(!f)return p;if(u&&(f=function(t,e,n,r){var i,o,a,s=[];for(i=0,o=e.length;i<o;i++)(a=W(t,e[i]*r,i<o-1?e[i+1]*r:t.length,r,!1))===a.next&&(a.steiner=!0),s.push(tt(a));for(s.sort(Q),i=0;i<s.length;i++)$(s[i],n),n=X(n,n.next);return n}(t,e,f,n)),t.length>80*n){r=o=t[0],i=a=t[1];for(var g=n;g<l;g+=n)(s=t[g])<r&&(r=s),(h=t[g+1])<i&&(i=h),s>o&&(o=s),h>a&&(a=h);c=Math.max(o-r,a-i)}return Y(f,p,n,r,i,c),p}function W(t,e,n,r,i){var o,a;if(i===lt(t,e,n,r)>0)for(o=e;o<n;o+=r)a=ht(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=ht(o,t[o],t[o+1],a);return a&&it(a,a.next)&&(ct(a),a=a.next),a}function X(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!it(r,r.next)&&0!==rt(r.prev,r,r.next))r=r.next;else{if(ct(r),(r=e=r.prev)===r.next)return null;n=!0}}while(n||r!==e);return e}function Y(t,e,n,r,i,o,a){if(t){!a&&o&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=J(i.x,i.y,e,n,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 e,n,r,i,o,a,s,h,c=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<c&&(s++,r=r.nextZ);e++);for(h=c;s>0||h>0&&r;)0===s?(i=r,r=r.nextZ,h--):0!==h&&r?n.z<=r.z?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,h--):(i=n,n=n.nextZ,s--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(t,r,i,o);for(var s,h,c=t;t.prev!==t.next;)if(s=t.prev,h=t.next,o?U(t,r,i,o):H(t))e.push(s.i/n),e.push(t.i/n),e.push(h.i/n),ct(t),t=h.next,c=h.next;else if((t=h)===c){a?1===a?Y(t=K(t,e,n),e,n,r,i,o,2):2===a&&V(t,e,n,r,i,o):Y(X(t),e,n,r,i,o,1);break}}}function H(t){var e=t.prev,n=t,r=t.next;if(rt(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(et(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&rt(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function U(t,e,n,r){var i=t.prev,o=t,a=t.next;if(rt(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,h=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,l=J(s,h,e,n,r),f=J(c,u,e,n,r),p=t.nextZ;p&&p.z<=f;){if(p!==t.prev&&p!==t.next&&et(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&rt(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=l;){if(p!==t.prev&&p!==t.next&&et(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&rt(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function K(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!it(i,o)&&ot(i,r,r.next,o)&&at(i,o)&&at(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),ct(r),ct(r.next),r=t=o),r=r.next}while(r!==t);return r}function V(t,e,n,r,i,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&nt(a,s)){var h=st(a,s);return a=X(a,a.next),h=X(h,h.next),Y(a,e,n,r,i,o),void Y(h,e,n,r,i,o)}s=s.next}a=a.next}while(a!==t)}function Q(t,e){return t.x-e.x}function $(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===a)return n.prev;var h,c=n,u=n.x,l=n.y,f=1/0;for(r=n.next;r!==c;)i>=r.x&&r.x>=u&&et(o<l?i:a,o,u,l,o<l?a:i,o,r.x,r.y)&&((h=Math.abs(o-r.y)/(i-r.x))<f||h===f&&r.x>n.x)&&at(r,t)&&(n=r,f=h),r=r.next;return n}(t,e)){var n=st(e,t);X(n,n.next)}}function J(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)/i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)/i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function tt(t){var e=t,n=t;do{e.x<n.x&&(n=e),e=e.next}while(e!==t);return n}function et(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function nt(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&ot(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&at(t,e)&&at(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)}function rt(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function it(t,e){return t.x===e.x&&t.y===e.y}function ot(t,e,n,r){return!!(it(t,e)&&it(n,r)||it(t,r)&&it(n,e))||rt(t,e,n)>0!=rt(t,e,r)>0&&rt(n,r,t)>0!=rt(n,r,e)>0}function at(t,e){return rt(t.prev,t,t.next)<0?rt(t,e,t.next)>=0&&rt(t,t.prev,e)>=0:rt(t,e,t.prev)<0||rt(t,t.next,e)<0}function st(t,e){var n=new ut(t.i,t.x,t.y),r=new ut(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function ht(t,e,n,r){var i=new ut(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function ct(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 ut(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function lt(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}function ft(t,e){var n=e.id,r=e.bbox,i=null==e.properties?{}:e.properties,o=pt(t,e);return null==n&&null==r?{type:"Feature",properties:i,geometry:o}:null==r?{type:"Feature",id:n,properties:i,geometry:o}:{type:"Feature",id:n,bbox:r,properties:i,geometry:o}}function pt(t,e){function n(t,e){e.length&&e.pop();for(var n=h[t<0?~t:t],r=0,i=n.length;r<i;++r)e.push(s(n[r],r));t<0&&Jt(e,i)}function r(t){return s(t)}function i(t){for(var e=[],r=0,i=t.length;r<i;++r)n(t[r],e);return e.length<2&&e.push(e[0]),e}function o(t){for(var e=i(t);e.length<4;)e.push(e[0]);return e}function a(t){return t.map(o)}var s=$t(t.transform),h=t.arcs;return function t(e){var n,o=e.type;switch(o){case"GeometryCollection":return{type:o,geometries:e.geometries.map(t)};case"Point":n=r(e.coordinates);break;case"MultiPoint":n=e.coordinates.map(r);break;case"LineString":n=i(e.arcs);break;case"MultiLineString":n=e.arcs.map(i);break;case"Polygon":n=a(e.arcs);break;case"MultiPolygon":n=e.arcs.map(a);break;default:return null}return{type:o,coordinates:n}}(e)}function gt(t,e){function n(t){t.forEach(function(e){e.forEach(function(e){(i[e=e<0?~e:e]||(i[e]=[])).push(t)})}),o.push(t)}function r(e){return function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[0]*i[1]-e[1]*i[0];return Math.abs(o)}(pt(t,{type:"Polygon",arcs:[e]}).coordinates[0])}var i={},o=[],a=[];return e.forEach(function t(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"Polygon":n(e.arcs);break;case"MultiPolygon":e.arcs.forEach(n)}}),o.forEach(function(t){if(!t._){var e=[],n=[t];for(t._=1,a.push(e);t=n.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){i[t<0?~t:t].forEach(function(t){t._||(t._=1,n.push(t))})})})}}),o.forEach(function(t){delete t._}),{type:"MultiPolygon",arcs:a.map(function(e){var n,o=[];if(e.forEach(function(t){t.forEach(function(t){t.forEach(function(t){i[t<0?~t:t].length<2&&o.push(t)})})}),(n=(o=ee(t,o)).length)>1)for(var a,s,h=1,c=r(o[0]);h<n;++h)(a=r(o[h]))>c&&(s=o[0],o[0]=o[h],o[h]=s,c=a);return o})}}function dt(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=n.single;void 0===o&&(o=!1);var a=B(t,r);a.length<e.length+2&&D(a,e.length+2-a.length);var s,h=ae(a,e.length),c=e.map(function(t){return B(t,r)}),u="string"==typeof t&&t;return o&&!e.every(function(t){return"string"==typeof t})||(s=e.slice(0)),yt(h,c,{match:!0,string:i,single:o,t0:u,t1:s})}function yt(t,e,n){void 0===n&&(n={});var r=n.string,i=n.single,o=n.t0,a=n.t1,s=n.match,h=s?se(t,e):t.map(function(t,e){return e}),c=h.map(function(n,i){return G(t[n],e[i],r)});if(s&&Array.isArray(o)&&(o=h.map(function(t){return o[t]})),i&&r&&(Array.isArray(o)&&(o=o.join(" ")),Array.isArray(a)&&(a=a.join(" "))),i){var u=r?function(t){return c.map(function(e){return e(t)}).join(" ")}:function(t){return c.map(function(e){return e(t)})};return r&&(o||a)?function(t){return t<1e-4&&o||1-t<1e-4&&a||u(t)}:u}return r?(o=Array.isArray(o)?o.map(function(t){return"string"==typeof t&&t}):[],a=Array.isArray(a)?a.map(function(t){return"string"==typeof t&&t}):[],c.map(function(t,e){return o[e]||a[e]?function(n){return n<1e-4&&o[e]||1-n<1e-4&&a[e]||t(n)}:t})):c}function vt(t,e,n,r,i){return wt(function(t,e,n){return function(r){var i=_(r),o=Mt(r.concat([r[0]])),a=Math.atan2(r[0][1]-i[1],r[0][0]-i[0]),s=0;return r.map(function(i,h){var c;return h&&(s+=C(i,r[h-1])),c=a+2*Math.PI*(o?s/o:h/r.length),[Math.cos(c)*n+t,Math.sin(c)*n+e]})}}(t,e,n),r,function(t,e,n){var r=t-n+","+e,i="A"+n+","+n+",0,1,1,";return"M"+r+i+(t+n)+","+e+i+r+"Z"}(t,e,n),2*Math.PI*n,i)}function xt(t,e,n,r,i,o){return wt(function(t,e,n,r){return function(i){var o=_(i),a=Mt(i.concat([i[0]])),s=Math.atan2(i[0][1]-o[1],i[0][0]-o[0]),h=0;s<0&&(s=2*Math.PI+s);var c=s/(2*Math.PI);return i.map(function(o,s){s&&(h+=C(o,i[s-1]));var u=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]}((c+(a?h/a:s/i.length))%1);return[t+u[0]*n,e+u[1]*r]})}}(t,e,n,r),i,function(t,e,n,r){var i=t+n,o=e+r;return"M"+t+","+e+"L"+i+","+e+"L"+i+","+o+"L"+t+","+o+"Z"}(t,e,n,r),2*n+2*r,o)}function wt(t,e,n,r,i){void 0===i&&(i={});var o=i.maxSegmentLength;void 0===o&&(o=10);var a=i.string;void 0===a&&(a=!0);var s,h,c=B(e,o);return q(r)&&c.length<r/o&&D(c,Math.ceil(r/o-c.length)),s=t(c),h=k(s,c,a),a?function(t){return t<1e-4?n:h(t)}:h}var bt=function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2},mt=function(t){for(var e,n,r=-1,i=t.length,o=0,a=0,s=t[i-1],h=0;++r<i;)e=s,s=t[r],h+=n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o/(h*=3),a/h]},Mt=function(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],s=o[1],h=0;++r<i;)e=a,n=s,e-=a=(o=t[r])[0],n-=s=o[1],h+=Math.sqrt(e*e+n*n);return h},At={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},Lt=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Pt=function(t){var e=new i(t),n=e.max;for(o(e);e.index<n&&!e.err.length;)h(e);return e.err.length?e.result=[]:e.result.length&&("mM".indexOf(e.result[0][0])<0?(e.err="SvgPath: string should start with `M` or `m`",e.result=[]):e.result[0][0]="M"),{err:e.err,segments:e.result}};u.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},u.prototype.translate=function(t,e){return 0===t&&0===e||(this.cache=null,this.queue.push([1,0,0,1,t,e])),this},u.prototype.scale=function(t,e){return 1===t&&1===e||(this.cache=null,this.queue.push([t,0,0,e,0,0])),this},u.prototype.rotate=function(t,e,n){var r,i,o;return 0!==t&&(this.translate(e,n),r=t*Math.PI/180,i=Math.cos(r),o=Math.sin(r),this.queue.push([i,o,-o,i,0,0]),this.cache=null,this.translate(-e,-n)),this},u.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},u.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},u.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 e=1;e<this.queue.length;e++)t.cache=c(t.cache,t.queue[e]);return this.cache},u.prototype.calc=function(t,e,n){var r;return this.queue.length?(this.cache||(this.cache=this.toArray()),[t*(r=this.cache)[0]+e*r[2]+(n?0:r[4]),t*r[1]+e*r[3]+(n?0:r[5])]):[t,e]};var Ot=u,Tt={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},St=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,Et=/[\s,]+/,jt=2*Math.PI,Ct=Math.PI/180;g.prototype.transform=function(t){var e=Math.cos(this.ax*Ct),n=Math.sin(this.ax*Ct),r=[this.rx*(t[0]*e+t[2]*n),this.rx*(t[1]*e+t[3]*n),this.ry*(-t[0]*n+t[2]*e),this.ry*(-t[1]*n+t[3]*e)],i=r[0]*r[0]+r[2]*r[2],o=r[1]*r[1]+r[3]*r[3],a=((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+o)/2;if(a<1e-10*s)return this.rx=this.ry=Math.sqrt(s),this.ax=0,this;var h=r[0]*r[1]+r[2]*r[3],c=s+(a=Math.sqrt(a))/2,u=s-a/2;return this.ax=Math.abs(h)<1e-10&&Math.abs(c-o)<1e-10?90:180*Math.atan(Math.abs(h)>Math.abs(c-o)?(c-i)/h:h/(c-o))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(c),this.ry=Math.sqrt(u)):(this.ax+=90,this.rx=Math.sqrt(u),this.ry=Math.sqrt(c)),this},g.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx};var It=g;d.prototype.__matrix=function(t){var e,n=this;t.queue.length&&this.iterate(function(r,i,o,a){var s,h,c,u;switch(r[0]){case"v":h=0===(s=t.calc(0,r[1],!0))[0]?["v",s[1]]:["l",s[0],s[1]];break;case"V":h=(s=t.calc(o,r[1],!1))[0]===t.calc(o,a,!1)[0]?["V",s[1]]:["L",s[0],s[1]];break;case"h":h=0===(s=t.calc(r[1],0,!0))[1]?["h",s[0]]:["l",s[0],s[1]];break;case"H":h=(s=t.calc(r[1],a,!1))[1]===t.calc(o,a,!1)[1]?["H",s[0]]:["L",s[0],s[1]];break;case"a":case"A":var l=t.toArray(),f=It(r[1],r[2],r[3]).transform(l);if(l[0]*l[3]-l[1]*l[2]<0&&(r[5]=r[5]?"0":"1"),s=t.calc(r[6],r[7],"a"===r[0]),"A"===r[0]&&r[6]===o&&r[7]===a||"a"===r[0]&&0===r[6]&&0===r[7]){h=["a"===r[0]?"l":"L",s[0],s[1]];break}h=f.isDegenerate()?["a"===r[0]?"l":"L",s[0],s[1]]:[r[0],f.rx,f.ry,f.ax,r[4],r[5],s[0],s[1]];break;case"m":u=i>0,h=["m",(s=t.calc(r[1],r[2],u))[0],s[1]];break;default:for(h=[c=r[0]],u=c.toLowerCase()===c,e=1;e<r.length;e+=2)s=t.calc(r[e],r[e+1],u),h.push(s[0],s[1])}n.segments[i]=h},!0)},d.prototype.__evaluateStack=function(){var t,e;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(t=Ot(),e=this.__stack.length;--e>=0;)t.matrix(this.__stack[e].toArray());this.__matrix(t),this.__stack=[]}},d.prototype.toString=function(){var t,e,n=this,r=[];this.__evaluateStack();for(var i=0;i<this.segments.length;i++)e=n.segments[i][0],t=i>0&&"m"!==e&&"M"!==e&&e===n.segments[i-1][0],r=r.concat(t?n.segments[i].slice(1):n.segments[i]);return r.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},d.prototype.translate=function(t,e){return this.__stack.push(Ot().translate(t,e||0)),this},d.prototype.scale=function(t,e){return this.__stack.push(Ot().scale(t,e||0===e?e:t)),this},d.prototype.rotate=function(t,e,n){return this.__stack.push(Ot().rotate(t,e||0,n||0)),this},d.prototype.skewX=function(t){return this.__stack.push(Ot().skewX(t)),this},d.prototype.skewY=function(t){return this.__stack.push(Ot().skewY(t)),this},d.prototype.matrix=function(t){return this.__stack.push(Ot().matrix(t)),this},d.prototype.transform=function(t){return t.trim()?(this.__stack.push(function(t){var e,n,r=new Ot;return t.split(St).forEach(function(t){if(t.length){if(void 0!==Tt[t])return void(e=t);switch(n=t.split(Et).map(function(t){return+t||0}),e){case"matrix":return void(6===n.length&&r.matrix(n));case"scale":return void(1===n.length?r.scale(n[0],n[0]):2===n.length&&r.scale(n[0],n[1]));case"rotate":return void(1===n.length?r.rotate(n[0],0,0):3===n.length&&r.rotate(n[0],n[1],n[2]));case"translate":return void(1===n.length?r.translate(n[0],0):2===n.length&&r.translate(n[0],n[1]));case"skewX":return void(1===n.length&&r.skewX(n[0]));case"skewY":return void(1===n.length&&r.skewY(n[0]))}}}),r}(t)),this):this},d.prototype.round=function(t){var e,n=0,r=0,i=0,o=0;return t=t||0,this.__evaluateStack(),this.segments.forEach(function(a){var s=a[0].toLowerCase()===a[0];switch(a[0]){case"H":case"h":return s&&(a[1]+=i),i=a[1]-a[1].toFixed(t),void(a[1]=+a[1].toFixed(t));case"V":case"v":return s&&(a[1]+=o),o=a[1]-a[1].toFixed(t),void(a[1]=+a[1].toFixed(t));case"Z":case"z":return i=n,void(o=r);case"M":case"m":return s&&(a[1]+=i,a[2]+=o),i=a[1]-a[1].toFixed(t),o=a[2]-a[2].toFixed(t),n=i,r=o,a[1]=+a[1].toFixed(t),void(a[2]=+a[2].toFixed(t));case"A":case"a":return s&&(a[6]+=i,a[7]+=o),i=a[6]-a[6].toFixed(t),o=a[7]-a[7].toFixed(t),a[1]=+a[1].toFixed(t),a[2]=+a[2].toFixed(t),a[3]=+a[3].toFixed(t+2),a[6]=+a[6].toFixed(t),void(a[7]=+a[7].toFixed(t));default:return e=a.length,s&&(a[e-2]+=i,a[e-1]+=o),i=a[e-2]-a[e-2].toFixed(t),o=a[e-1]-a[e-1].toFixed(t),void a.forEach(function(e,n){n&&(a[n]=+a[n].toFixed(t))})}}),this},d.prototype.iterate=function(t,e){var n,r,i,o=this.segments,a={},s=!1,h=0,c=0,u=0,l=0;if(e||this.__evaluateStack(),o.forEach(function(e,n){var r=t(e,n,h,c);Array.isArray(r)&&(a[n]=r,s=!0);var i=e[0]===e[0].toLowerCase();switch(e[0]){case"m":case"M":return h=e[1]+(i?h:0),c=e[2]+(i?c:0),u=h,void(l=c);case"h":case"H":return void(h=e[1]+(i?h:0));case"v":case"V":return void(c=e[1]+(i?c:0));case"z":case"Z":return h=u,void(c=l);default:h=e[e.length-2]+(i?h:0),c=e[e.length-1]+(i?c:0)}}),!s)return this;for(i=[],n=0;n<o.length;n++)if(void 0!==a[n])for(r=0;r<a[n].length;r++)i.push(a[n][r]);else i.push(o[n]);return this.segments=i,this},d.prototype.abs=function(){return this.iterate(function(t,e,n,r){var i,o=t[0],a=o.toUpperCase();if(o!==a)switch(t[0]=a,o){case"v":return void(t[1]+=r);case"a":return t[6]+=n,void(t[7]+=r);default:for(i=1;i<t.length;i++)t[i]+=i%2?n:r}},!0),this},d.prototype.rel=function(){return this.iterate(function(t,e,n,r){var i,o=t[0],a=o.toLowerCase();if(o!==a&&(0!==e||"M"!==o))switch(t[0]=a,o){case"V":return void(t[1]-=r);case"A":return t[6]-=n,void(t[7]-=r);default:for(i=1;i<t.length;i++)t[i]-=i%2?n:r}},!0),this},d.prototype.unarc=function(){return this.iterate(function(t,e,n,r){var i,o,a,s=[],h=t[0];return"A"!==h&&"a"!==h?null:("a"===h?(o=n+t[6],a=r+t[7]):(o=t[6],a=t[7]),0===(i=function(t,e,n,r,i,o,a,s,h){var c=Math.sin(h*jt/360),u=Math.cos(h*jt/360),l=u*(t-n)/2+c*(e-r)/2,g=-c*(t-n)/2+u*(e-r)/2;if(0===l&&0===g)return[];if(0===a||0===s)return[];a=Math.abs(a),s=Math.abs(s);var d=l*l/(a*a)+g*g/(s*s);d>1&&(a*=Math.sqrt(d),s*=Math.sqrt(d));var y=f(t,e,n,r,i,o,a,s,c,u),v=[],x=y[2],w=y[3],b=Math.max(Math.ceil(Math.abs(w)/(jt/4)),1);w/=b;for(var m=0;m<b;m++)v.push(p(x,w)),x+=w;return v.map(function(t){for(var e=0;e<t.length;e+=2){var n=t[e+0],r=t[e+1],i=u*(n*=a)-c*(r*=s),o=c*n+u*r;t[e+0]=i+y[0],t[e+1]=o+y[1]}return t})}(n,r,o,a,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},d.prototype.unshort=function(){var t,e,n,r,i,o=this.segments;return this.iterate(function(a,s,h,c){var u,l=a[0],f=l.toUpperCase();s&&("T"===f?(u="t"===l,"Q"===(n=o[s-1])[0]?(t=n[1]-h,e=n[2]-c):"q"===n[0]?(t=n[1]-n[3],e=n[2]-n[4]):(t=0,e=0),r=-t,i=-e,u||(r+=h,i+=c),o[s]=[u?"q":"Q",r,i,a[1],a[2]]):"S"===f&&(u="s"===l,"C"===(n=o[s-1])[0]?(t=n[3]-h,e=n[4]-c):"c"===n[0]?(t=n[3]-n[5],e=n[4]-n[6]):(t=0,e=0),r=-t,i=-e,u||(r+=h,i+=c),o[s]=[u?"c":"C",r,i,a[1],a[2],a[3],a[4]]))}),this};var kt=d,qt={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},_t=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Rt=function(t){var e=[];return t.replace(_t,function(t,n,r){var i=n.toLowerCase();for(r=function(t){var e=t.match(Nt);return e?e.map(Number):[]}(r),"m"===i&&r.length>2&&(e.push([n].concat(r.splice(0,2))),i="l",n="m"===n?"l":"L");r.length>=0;){if(r.length===qt[i])return r.unshift(n),e.push(r);if(r.length<qt[i])throw new Error("malformed path data");e.push([n].concat(r.splice(0,qt[i])))}}),e},Nt=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,zt=function(t,e,n,r,i,o,a,s){return new y(t,e,n,r,i,o,a,s)};y.prototype={constructor:y,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 e=w(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],e)},getTangentAtLength:function(t){var e=w(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]),n=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),r=Math.sqrt(n.x*n.x+n.y*n.y);return r>0?{x:n.x/r,y:n.y/r}:{x:0,y:0}},getPropertiesAtLength:function(t){var e,n=w(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],n),i=Math.sqrt(r.x*r.x+r.y*r.y);e=i>0?{x:r.x/i,y:r.y/i}:{x:0,y:0};var o=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);return{x:o.x,y:o.y,tangentX:e.x,tangentY:e.y}}};var Ft=[[],[],[-.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]],Dt=[[],[],[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]],Bt=[[1],[1,1],[1,2,1],[1,3,3,1]],Gt=2*Math.PI,Zt=function(t,e,n,r,i,o,a,s,h){var c=Math.sin(i*Gt/360),u=Math.cos(i*Gt/360),l=u*(t-s)/2+c*(e-h)/2,f=-c*(t-s)/2+u*(e-h)/2;if(0===l&&0===f)return[];if(0===n||0===r)return[];n=Math.abs(n),r=Math.abs(r);var p=l*l/(n*n)+f*f/(r*r);p>1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var g=function(t,e,n,r,i,o,a,s,h,c){var u=c*(t-n)/2+h*(e-r)/2,l=-h*(t-n)/2+c*(e-r)/2,f=a*a,p=s*s,g=u*u,d=l*l,y=f*p-f*d-p*g;y<0&&(y=0),y/=f*d+p*g;var v=(y=Math.sqrt(y)*(i===o?-1:1))*a/s*l,x=y*-s/a*u,w=c*v-h*x+(t+n)/2,b=h*v+c*x+(e+r)/2,m=(u-v)/a,M=(l-x)/s,A=(-u-v)/a,L=(-l-x)/s,P=T(1,0,m,M),O=T(m,M,A,L);return 0===o&&O>0&&(O-=Gt),1===o&&O<0&&(O+=Gt),[w,b,P,O]}(t,e,s,h,o,a,n,r,c,u),d=[],y=g[2],v=g[3],x=Math.max(Math.ceil(Math.abs(v)/(Gt/4)),1);v/=x;for(var w=0;w<x;w++)d.push(S(y,v)),y+=v;return d.map(function(t){for(var e=0;e<t.length;e+=2){var i=t[e+0],o=t[e+1],a=u*(i*=n)-c*(o*=r),s=c*i+u*o;t[e+0]=a+g[0],t[e+1]=s+g[1]}return t})},Wt=function(t,e,n,r,i,o,a,s,h){return new E(t,e,n,r,i,o,a,s,h)};E.prototype={constructor:E,init:function(){},getTotalLength:function(){return this.length},getPointAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var e=this.partialLengths.length-1;this.partialLengths[e]>=t&&this.partialLengths[e]>0;)e--;e<this.partialLengths.length-1&&e++;for(var n=0,r=0;r<e;r++)n+=this.partialLengths[r];return this.curves[e].getPointAtLength(t-n)},getTangentAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var e=this.partialLengths.length-1;this.partialLengths[e]>=t&&this.partialLengths[e]>0;)e--;e<this.partialLengths.length-1&&e++;for(var n=0,r=0;r<e;r++)n+=this.partialLengths[r];return this.curves[e].getTangentAtLength(t-n)},getPropertiesAtLength:function(t){var e=this.getTangentAtLength(t),n=this.getPointAtLength(t);return{x:n.x,y:n.y,tangentX:e.x,tangentY:e.y}}};var Xt=function(t,e,n,r){return new j(t,e,n,r)};j.prototype.getTotalLength=function(){return Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2))},j.prototype.getPointAtLength=function(t){var e=t/Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2)),n=(this.x1-this.x0)*e,r=(this.y1-this.y0)*e;return{x:this.x0+n,y:this.y0+r}},j.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}},j.prototype.getPropertiesAtLength=function(t){var e=this.getPointAtLength(t),n=this.getTangentAtLength();return{x:e.x,y:e.y,tangentX:n.x,tangentY:n.y}};var Yt=function(t){function e(t){if(!t)return null;for(var o,a=Rt(t),s=[0,0],h=[0,0],c=0;c<a.length;c++)"M"===a[c][0]?(s=[a[c][1],a[c][2]],i.push(null)):"m"===a[c][0]?(s=[a[c][1]+s[0],a[c][2]+s[1]],i.push(null)):"L"===a[c][0]?(n+=Math.sqrt(Math.pow(s[0]-a[c][1],2)+Math.pow(s[1]-a[c][2],2)),i.push(new Xt(s[0],a[c][1],s[1],a[c][2])),s=[a[c][1],a[c][2]]):"l"===a[c][0]?(n+=Math.sqrt(Math.pow(a[c][1],2)+Math.pow(a[c][2],2)),i.push(new Xt(s[0],a[c][1]+s[0],s[1],a[c][2]+s[1])),s=[a[c][1]+s[0],a[c][2]+s[1]]):"H"===a[c][0]?(n+=Math.abs(s[0]-a[c][1]),i.push(new Xt(s[0],a[c][1],s[1],s[1])),s[0]=a[c][1]):"h"===a[c][0]?(n+=Math.abs(a[c][1]),i.push(new Xt(s[0],s[0]+a[c][1],s[1],s[1])),s[0]=a[c][1]+s[0]):"V"===a[c][0]?(n+=Math.abs(s[1]-a[c][1]),i.push(new Xt(s[0],s[0],s[1],a[c][1])),s[1]=a[c][1]):"v"===a[c][0]?(n+=Math.abs(a[c][1]),i.push(new Xt(s[0],s[0],s[1],s[1]+a[c][1])),s[1]=a[c][1]+s[1]):"z"===a[c][0]||"Z"===a[c][0]?(n+=Math.sqrt(Math.pow(a[0][1]-s[0],2)+Math.pow(a[0][2]-s[1],2)),i.push(new Xt(s[0],a[0][1],s[1],a[0][2])),s=[a[0][1],a[0][2]]):"C"===a[c][0]?(o=new zt(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4],a[c][5],a[c][6]),n+=o.getTotalLength(),s=[a[c][5],a[c][6]],i.push(o)):"c"===a[c][0]?(o=new zt(s[0],s[1],s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4],s[0]+a[c][5],s[1]+a[c][6]),n+=o.getTotalLength(),s=[a[c][5]+s[0],a[c][6]+s[1]],i.push(o)):"S"===a[c][0]?(o=c>0&&["C","c","S","s"].indexOf(a[c-1][0])>-1?new zt(s[0],s[1],2*s[0]-a[c-1][a[c-1].length-4],2*s[1]-a[c-1][a[c-1].length-3],a[c][1],a[c][2],a[c][3],a[c][4]):new zt(s[0],s[1],s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4]),n+=o.getTotalLength(),s=[a[c][3],a[c][4]],i.push(o)):"s"===a[c][0]?(o=c>0&&["C","c","S","s"].indexOf(a[c-1][0])>-1?new zt(s[0],s[1],s[0]+o.d.x-o.c.x,s[1]+o.d.y-o.c.y,s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4]):new zt(s[0],s[1],s[0],s[1],s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4]),n+=o.getTotalLength(),s=[a[c][3]+s[0],a[c][4]+s[1]],i.push(o)):"Q"===a[c][0]?(o=new zt(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4]),n+=o.getTotalLength(),i.push(o),s=[a[c][3],a[c][4]],h=[a[c][1],a[c][2]]):"q"===a[c][0]?(o=new zt(s[0],s[1],s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4]),n+=o.getTotalLength(),h=[s[0]+a[c][1],s[1]+a[c][2]],s=[a[c][3]+s[0],a[c][4]+s[1]],i.push(o)):"T"===a[c][0]?(o=c>0&&["Q","q","T","t"].indexOf(a[c-1][0])>-1?new zt(s[0],s[1],2*s[0]-h[0],2*s[1]-h[1],a[c][1],a[c][2]):new Xt(s[0],a[c][1],s[1],a[c][2]),i.push(o),n+=o.getTotalLength(),h=[2*s[0]-h[0],2*s[1]-h[1]],s=[a[c][1],a[c][2]]):"t"===a[c][0]?(o=c>0&&["Q","q","T","t"].indexOf(a[c-1][0])>-1?new zt(s[0],s[1],2*s[0]-h[0],2*s[1]-h[1],s[0]+a[c][1],s[1]+a[c][2]):new Xt(s[0],s[0]+a[c][1],s[1],s[1]+a[c][2]),n+=o.getTotalLength(),h=[2*s[0]-h[0],2*s[1]-h[1]],s=[a[c][1]+s[0],a[c][2]+s[0]],i.push(o)):"A"===a[c][0]?(o=new Wt(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4],a[c][5],a[c][6],a[c][7]),n+=o.getTotalLength(),s=[a[c][6],a[c][7]],i.push(o)):"a"===a[c][0]&&(o=new Wt(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4],a[c][5],s[0]+a[c][6],s[1]+a[c][7]),n+=o.getTotalLength(),s=[s[0]+a[c][6],s[1]+a[c][7]],i.push(o)),r.push(n);return e}var n=0,r=[],i=[];e.getTotalLength=function(){return n},e.getPointAtLength=function(t){var e=o(t);return i[e.i].getPointAtLength(e.fraction)},e.getTangentAtLength=function(t){var e=o(t);return i[e.i].getTangentAtLength(e.fraction)},e.getPropertiesAtLength=function(t){var e=o(t);return i[e.i].getPropertiesAtLength(e.fraction)};var o=function(t){t<0?t=0:t>n&&(t=n);for(var e=r.length-1;r[e]>=t&&r[e]>0;)e--;return e++,{fraction:t-r[e-1],i:e}};return e(t)},Ht='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',Ut="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).",Kt=function(t,e){for(var n,r,i,o=t.length,a=1/0,s=0;s<o;s++)!function(i){r=0,e.forEach(function(e,n){var a=C(t[(i+n)%o],e);r+=a*a}),r<a&&(a=r,n=i)}(s);n&&(i=t.splice(0,n),t.splice.apply(t,[t.length,0].concat(i)))},Vt=Z;Z.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,a=Math.abs(lt(t,0,o,n));if(i)for(var s=0,h=e.length;s<h;s++){var c=e[s]*n,u=s<h-1?e[s+1]*n:t.length;a-=Math.abs(lt(t,c,u,n))}var l=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,p=r[s+1]*n,g=r[s+2]*n;l+=Math.abs((t[f]-t[g])*(t[p+1]-t[f+1])-(t[f]-t[p])*(t[g+1]-t[f+1]))}return 0===a&&0===l?0:Math.abs((l-a)/a)},Z.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n};var Qt=function(t){return t},$t=function(t){if(null==t)return Qt;var e,n,r=t.scale[0],i=t.scale[1],o=t.translate[0],a=t.translate[1];return function(t,s){s||(e=n=0);var h=2,c=t.length,u=new Array(c);for(u[0]=(e+=t[0])*r+o,u[1]=(n+=t[1])*i+a;h<c;)u[h]=t[h],++h;return u}},Jt=function(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n},te=function(t,e){return"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map(function(e){return ft(t,e)})}:ft(t,e)},ee=function(t,e){function n(e){var n,r=t.arcs[e<0?~e:e],i=r[0];return t.transform?(n=[0,0],r.forEach(function(t){n[0]+=t[0],n[1]+=t[1]})):n=r[r.length-1],e<0?[n,i]:[i,n]}function r(t,e){for(var n in t){var r=t[n];delete e[r.start],delete r.start,delete r.end,r.forEach(function(t){i[t<0?~t:t]=1}),s.push(r)}}var i={},o={},a={},s=[],h=-1;return e.forEach(function(n,r){var i,o=t.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(i=e[++h],e[h]=n,e[r]=i)}),e.forEach(function(t){var e,r,i=n(t),s=i[0],h=i[1];if(e=a[s])if(delete a[e.end],e.push(t),e.end=h,r=o[h]){delete o[r.start];var c=r===e?e:e.concat(r);o[c.start=e.start]=a[c.end=r.end]=c}else o[e.start]=a[e.end]=e;else if(e=o[h])if(delete o[e.start],e.unshift(t),e.start=s,r=a[s]){delete a[r.end];var u=r===e?e:r.concat(e);o[u.start=r.start]=a[u.end=e.end]=u}else o[e.start]=a[e.end]=e;else o[(e=[t]).start=s]=a[e.end=h]=e}),r(a,o),r(o,a),e.forEach(function(t){i[t<0?~t:t]||s.push([t])}),s},ne=function(t,e){for(var n=0,r=t.length;n<r;){var i=n+r>>>1;t[i]<e?n=i+1:r=i}return n},re=function(t){function e(t,e){t.forEach(function(t){t<0&&(t=~t);var n=r[t];n?n.push(e):r[t]=[e]})}function n(t,n){t.forEach(function(t){e(t,n)})}var r={},i=t.map(function(){return[]}),o={LineString:e,MultiLineString:n,Polygon:n,MultiPolygon:function(t,e){t.forEach(function(t){n(t,e)})}};for(var a in t.forEach(function t(e,n){"GeometryCollection"===e.type?e.geometries.forEach(function(e){t(e,n)}):e.type in o&&o[e.type](e.arcs,n)}),r)for(var s=r[a],h=s.length,c=0;c<h;++c)for(var u=c+1;u<h;++u){var l,f=s[c],p=s[u];(l=i[f])[a=ne(l,p)]!==p&&l.splice(a,0,p),(l=i[p])[a=ne(l,f)]!==f&&l.splice(a,0,f)}return i},ie=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},oe=function(t){return 1===t.length&&(t=function(t){return function(e,n){return ie(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}},ae=(oe(ie).right,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),function(t,e){return function(t,e){for(var n=t.objects.triangles.geometries,r=oe(function(t){return t.area}).left;n.length>e;)!function(){var e=n[0],i=re(n)[0][0],o=n[i],a=gt(t,[e,o]);a.area=e.area+o.area,a.type="Polygon",a.arcs=a.arcs[0],n.splice(i,1),n.shift(),n.splice(r(n,a.area),0,a)}();if(e>n.length)throw new RangeError("Can't collapse topology into "+e+" pieces.");return te(t,t.objects.triangles).features.map(function(t){return t.geometry.coordinates[0].pop(),t.geometry.coordinates[0]})}(function(t,e){var n={},r={type:"Topology",objects:{triangles:{type:"GeometryCollection",geometries:[]}},arcs:[]};return t.forEach(function(t){var i=[];t.forEach(function(t,o){var a=t[0]<t[1]?t.join(","):t[1]+","+t[0],s=t.map(function(t){return e[t]});a in n?i.push(~n[a]):(i.push(n[a]=r.arcs.length),r.arcs.push(s))}),r.objects.triangles.geometries.push({type:"Polygon",area:Math.abs(bt(t.map(function(t){return e[t[0]]}))),arcs:[i]})}),r.objects.triangles.geometries.sort(function(t,e){return t.area-e.area}),r}(function(t){for(var e=Vt(t.reduce(function(t,e){return t.concat([e[0]],[e[1]])},[])),n=[],r=0,i=e.length;r<i;r+=3)n.push([[e[r],e[r+1]],[e[r+1],e[r+2]],[e[r+2],e[r]]]);return n}(t),t),e)}),se=function(t,e){if(t.length>8)return t.map(function(t,e){return e});var n=t.map(function(t){return e.map(function(e){return function(t,e){var n=C(_(t),_(e));return n*n}(t,e)})});return function(t,e,n){var r=1/0,i=t.map(function(t,e){return e});return function t(e,o,a){void 0===o&&(o=[]),void 0===a&&(a=0);for(var s=0;s<e.length;s++){var h=e.splice(s,1),c=n[h[0]][o.length];a+c<r&&(e.length?t(e.slice(),o.concat(h),a+c):(r=a+c,i=o.concat(h))),e.length&&e.splice(s,0,h[0])}}(i),i}(t,0,n)};t.interpolate=function(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=G(B(t,r),B(e,r),i);return!i||"string"!=typeof t&&"string"!=typeof e?o:function(n){return n<1e-4&&"string"==typeof t?t:1-n<1e-4&&"string"==typeof e?e:o(n)}},t.separate=dt,t.combine=function(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=n.single;void 0===o&&(o=!1);var a=dt(e,t,{maxSegmentLength:r,string:i,single:o});return o?function(t){return a(1-t)}:a.map(function(t){return function(e){return t(1-e)}})},t.interpolateAll=function(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=n.single;if(void 0===o&&(o=!1),!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length||!t.length)throw new TypeError(Ut);var a,s,h=function(t){return B(t,r)},c=t.map(h),u=e.map(h);return o?(t.every(function(t){return"string"==typeof t})&&(a=t.slice(0)),e.every(function(t){return"string"==typeof t})&&(s=e.slice(0))):(a=t.slice(0),s=e.slice(0)),yt(c,u,{string:i,single:o,t0:a,t1:s,match:!1})},t.splitPathString=function(t){return N(R(t))},t.toPathString=z,t.fromCircle=vt,t.toCircle=function(t,e,n,r,i){var o=vt(e,n,r,t,i);return function(t){return o(1-t)}},t.fromRect=xt,t.toRect=function(t,e,n,r,i,o){var a=xt(e,n,r,i,t,o);return function(t){return a(1-t)}},Object.defineProperty(t,"__esModule",{value:!0})}(e)}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.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";n.r(r),n.d(r,{Alignment:()=>O,Anchor:()=>y,Animate:()=>h,Arrow:()=>_,BrowserCanvasRenderer:()=>Ne,Circle:()=>z,Color:()=>w,Easing:()=>o,FadeIn:()=>u,FadeOut:()=>f,FontStyle:()=>qt,FontWeight:()=>Rt,Grid:()=>B,Group:()=>D,Hide:()=>g,IFrame:()=>P,Image:()=>Z,Line:()=>X,Mask:()=>H,ObjectType:()=>j,Opaque:()=>We,Path:()=>Et,Pause:()=>ze,Polygon:()=>Ct,Position:()=>ve,Presentation:()=>Ut,Rectangle:()=>kt,ScreenCapture:()=>E,Show:()=>d,Size:()=>Xt,Slide:()=>De,SlideObject:()=>I,SlideWebExtra:()=>M,Text:()=>Gt,TextUnit:()=>Ge,Transparent:()=>Ot,Update:()=>p,getKeySlideBuildIndices:()=>Ue,getSizingFunctions:()=>He,getSmoothPathInterpolator:()=>Ye,getTextContentLength:()=>Dt,interpolateColor:()=>Qt,interpolateNumber:()=>$t});var t={ANIMATE:"Animate",PAUSE:"Pause",UPDATE:"Update"},e=1.70158,i=(function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(e),function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(e),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(e)),o={LINEAR:function(t){return t},CUBIC:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2},CUBIC_IN:function(t){return t*t*t},CUBIC_OUT:function(t){return--t*t*t+1},BACK_IN_OUT:i.overshoot(.8)},a=o.LINEAR,s=function(){return s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s.apply(this,arguments)};function h(e,n,r){return void 0===r&&(r={}),s({type:t.ANIMATE,object:e,props:n,delay:0,duration:1e3,easing:a,block:!1,interpolators:null,isKey:!1,shortcut:null},"number"==typeof r?{duration:r}:r)}var c=function(){return c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},c.apply(this,arguments)};function u(t,e){return void 0===e&&(e={}),h(t,{opacity:1},c({duration:500,easing:o.CUBIC},"number"==typeof e?{duration:e}:e))}var l=function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l.apply(this,arguments)};function f(t,e){return void 0===e&&(e={}),h(t,{opacity:0},l({duration:500,easing:o.CUBIC},"number"==typeof e?{duration:e}:e))}function p(e,n){return{type:t.UPDATE,isKey:!1,object:e,props:n,shortcut:null}}function g(t){return p(t,{opacity:0})}function d(t){return p(t,{opacity:1})}var y={TOP_LEFT:"TopLeft",TOP:"Top",TOP_RIGHT:"TopRight",LEFT:"Left",CENTER:"Center",RIGHT:"Right",BOTTOM_LEFT:"BottomLeft",BOTTOM:"Bottom",BOTTOM_RIGHT:"BottomRight"},v=y.TOP_LEFT,x=function(){return x=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},x.apply(this,arguments)};function w(t,e,n,r){if(void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),"string"==typeof t){var i=t.replace("#",""),o=parseInt(i,16);return isNaN(o)?(console.warn("Invalid hex color format:",t),b):6===i.length?{red:o>>16&255,green:o>>8&255,blue:255&o,alpha:1}:8===i.length?{red:o>>24&255,green:o>>16&255,blue:o>>8&255,alpha:(255&o)/255}:(console.warn("Invalid hex color format:",t),b)}return"number"==typeof t?{red:t,green:null!=e?e:0,blue:null!=n?n:0,alpha:null!=r?r:1}:x({red:0,green:0,blue:0,alpha:1},t)}w.BLACK=w(0,0,0),w.BLUE=w(0,0,255),w.GREEN=w(0,255,0),w.RED=w(255,0,0),w.TRANSPARENT=w(0,0,0,0),w.WHITE=w(255,255,255);var b={red:0,green:0,blue:0,alpha:1},m=function(){return m=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},m.apply(this,arguments)};function M(t){return void 0===t&&(t=null),m({content:null,setup:null,anchor:y.TOP_LEFT,height:0,width:0,x:0,y:0},t)}function A(t,e){return void 0===e&&(e=null),t.alpha*(null!=e?e:1)}function L(t,e){void 0===e&&(e=null);var n=t.red<<16|t.green<<8|t.blue,r=Math.round(255*A(t,e));return"#".concat(n.toString(16).padStart(6,"0")).concat(255!==r?r.toString(16).padStart(2,"0"):"")}function P(t){void 0===t&&(t=null);var e=t||{},n=e.url,r=void 0===n?"https://wikipedia.org/":n,i=e.backgroundColor,o=void 0===i?w.TRANSPARENT:i,a=e.borderColor,s=void 0===a?b:a,h=e.borderWidth,c=void 0===h?0:h,u=e.pointerEvents,l=void 0===u?"auto":u,f=e.scale,p=void 0===f?1:f,g=e.anchor,d=void 0===g?v:g,y=e.height,x=void 0===y?1e3:y,m=e.width,A=void 0===m?1e3:m,P=e.x,O=void 0===P?0:P,T=e.y,S=void 0===T?0:T,E=document.createElement("iframe");E.src=r,E.style.backgroundColor=L(o),E.style.border=c>0?"".concat(c,"px solid ").concat(L(s)):"none",E.style.pointerEvents=l;var j=(100/p).toFixed(3)+"%";return E.style.height=0===c?j:"calc(".concat(j," - ").concat(2*c,"px)"),E.style.width=0===c?j:"calc(".concat(j," - ").concat(2*c,"px)"),E.style.transform="scale(".concat(p,")"),E.style.transformOrigin="top left",M({content:E,anchor:d,height:x,width:A,x:O,y:S})}var O={LEFT:"left",CENTER:"center",RIGHT:"right"},T=O.LEFT;function S(t,e){throw new Error((null!=e?e:"Unexpected value")+": "+t)}function E(t){void 0===t&&(t=null);var e=t||{},n=e.alignment,r=void 0===n?O.LEFT:n,i=e.scale,o=void 0===i?1:i,a=e.anchor,s=void 0===a?v:a,h=e.height,c=void 0===h?1e3:h,u=e.width,l=void 0===u?1e3:u,f=e.x,p=void 0===f?0:f,g=e.y;return M({content:null,setup:function(t){var e=document.createElement("video");switch(e.autoplay=!0,e.style.transform="scale(".concat(o,")"),r){case O.LEFT:e.style.transformOrigin="top left";break;case O.CENTER:e.style.transformOrigin="top center";break;case O.RIGHT:e.style.transformOrigin="top right";break;default:S(r)}return t.appendChild(e),navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"window"},audio:!1}).then(function(t){var n=t.getVideoTracks()[0];void 0!==n&&(n.onended=function(){e.style.display="none"}),e.srcObject=t,e.play()}).catch(function(t){console.error("Could not start screen capture -",t)}),function(){e.srcObject.getTracks().forEach(function(t){return t.stop()}),e.style.display="none",e.srcObject=null}},anchor:s,height:c,width:l,x:p,y:void 0===g?0:g})}var j={ARROW:"Arrow",CIRCLE:"Circle",GROUP:"Group",IMAGE:"Image",LINE:"Line",MASK:"Mask",PATH:"Path",POLYGON:"Polygon",RECTANGLE:"Rectangle",SLIDE_OBJECT:"SlideObject",TEXT:"Text"},C=function(){return C=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},C.apply(this,arguments)};function I(t){return C({objectType:j.SLIDE_OBJECT,opacity:1},t)}var k=function(){return k=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},k.apply(this,arguments)},q=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function _(t){void 0===t&&(t=null);var e=t||{},n=e.arrowheadSize,r=e.width,i=void 0===r?10:r,o=q(e,["arrowheadSize","width"]),a=null!=n?n:4*i;return I(k({objectType:j.ARROW,arrowheadSize:a,color:b,drawn:1,endX:100,endY:100,isArrowheadDoubled:!1,isArrowheadFilled:!1,isDrawnFromCenter:!1,startX:0,startY:0,width:i},o))}var R=function(){return R=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},R.apply(this,arguments)},N=50;function z(t){return void 0===t&&(t=null),I(R({objectType:j.CIRCLE,anchor:v,borderColor:b,borderWidth:0,drawn:1,fill:b,radius:N,x:0,y:0},t))}var F=function(){return F=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},F.apply(this,arguments)};function D(t,e){return void 0===e&&(e=null),I(F({objectType:j.GROUP,anchor:v,height:0,objects:t,previewColor:null,rotateOriginPreviewSize:0,rotateOriginX:0,rotateOriginY:0,rotation:0,scale:1,width:0,x:0,y:0},e))}function B(t){for(var e=t.anchor,n=void 0===e?v:e,r=t.cols,i=void 0===r?1:r,o=t.rows,a=void 0===o?1:o,s=t.gapX,h=void 0===s?0:s,c=t.gapY,u=void 0===c?0:c,l=t.width,f=void 0===l?0:l,p=t.height,g=void 0===p?0:p,d=t.x,y=void 0===d?0:d,x=t.y,w=void 0===x?0:x,b=t.objects,m=void 0===b?function(){return null}:b,M=[],A=[],L=0,P=0,O=0;O<a;O++){var T=[];L=0;for(var S=0,E=0;E<i;E++){var j=m(O,E),C="function"==typeof f?f(O,E):f,I="function"==typeof g?g(O,E):g;T.push(j),null!=j&&A.push(D([j],{x:L,y:P})),L+=C+h,S=Math.max(S,I)}M.push(T),P+=S+u}return{grid:D(A,{x:y,y:w,height:P-u,width:L-h,anchor:n}),objects:M}}var G=function(){return G=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},G.apply(this,arguments)};function Z(t){return void 0===t&&(t=null),I(G({objectType:j.IMAGE,anchor:v,height:100,imageId:"",rounding:0,smooth:!0,width:100,x:0,y:0},t))}var W=function(){return W=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},W.apply(this,arguments)};function X(t){return void 0===t&&(t=null),I(W({objectType:j.LINE,color:b,drawn:1,endX:100,endY:100,isDrawnFromCenter:!1,isRounded:!1,startX:0,startY:0,width:10},t))}var Y=function(){return Y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Y.apply(this,arguments)};function H(t,e){return void 0===e&&(e=null),I(Y({objectType:j.MASK,anchor:v,height:100,objects:t,preview:!1,width:100,x:0,y:0},e))}var U=Object.defineProperty,K=(t,e)=>U(t,"name",{value:e,configurable:!0}),V={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Q=/([astvzqmhlc])([^astvzqmhlc]*)/gi,$=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,J=K(t=>{const e=(t&&t.length>0?t:"M0,0").match(Q);if(!e)throw new Error(`No path elements found in string ${t}`);return e.reduce((t,e)=>{let n=e.charAt(0),r=n.toLowerCase(),i=tt(e.substring(1));if("m"===r&&i.length>2&&(t.push([n,...i.splice(0,2)]),r="l",n="m"===n?"l":"L"),"a"===r.toLowerCase()&&(5===i.length||6===i.length)){const t=e.substring(1).trim().split(" ");i=[Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3].charAt(0)),Number(t[3].charAt(1)),Number(t[3].substring(2)),Number(t[4])]}for(;i.length>=0;){if(i.length===V[r]){t.push([n,...i.splice(0,V[r])]);break}if(i.length<V[r])throw new Error(`Malformed path data: "${n}" must have ${V[r]} elements and has ${i.length}: ${e}`);t.push([n,...i.splice(0,V[r])])}return t},[])},"default"),tt=K(t=>{const e=t.match($);return e?e.map(Number):[]},"parseValues"),et=class{static{K(this,"LinearPosition")}x0;x1;y0;y1;constructor(t,e,n,r){this.x0=t,this.x1=e,this.y0=n,this.y1=r}getTotalLength=K(()=>Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2)),"getTotalLength");getPointAtLength=K(t=>{let e=t/Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2));e=Number.isNaN(e)?1:e;const n=(this.x1-this.x0)*e,r=(this.y1-this.y0)*e;return{x:this.x0+n,y:this.y0+r}},"getPointAtLength");getTangentAtLength=K(t=>{const e=Math.sqrt((this.x1-this.x0)*(this.x1-this.x0)+(this.y1-this.y0)*(this.y1-this.y0));return{x:(this.x1-this.x0)/e,y:(this.y1-this.y0)/e}},"getTangentAtLength");getPropertiesAtLength=K(t=>{const e=this.getPointAtLength(t),n=this.getTangentAtLength(t);return{x:e.x,y:e.y,tangentX:n.x,tangentY:n.y}},"getPropertiesAtLength")},nt=class{static{K(this,"Arc")}x0;y0;rx;ry;xAxisRotate;LargeArcFlag;SweepFlag;x1;y1;length;constructor(t,e,n,r,i,o,a,s,h){this.x0=t,this.y0=e,this.rx=n,this.ry=r,this.xAxisRotate=i,this.LargeArcFlag=o,this.SweepFlag=a,this.x1=s,this.y1=h;const c=it(300,function(c){return rt({x:t,y:e},n,r,i,o,a,{x:s,y:h},c)});this.length=c.arcLength}getTotalLength=K(()=>this.length,"getTotalLength");getPointAtLength=K(t=>{t<0?t=0:t>this.length&&(t=this.length);const e=rt({x:this.x0,y:this.y0},this.rx,this.ry,this.xAxisRotate,this.LargeArcFlag,this.SweepFlag,{x:this.x1,y:this.y1},t/this.length);return{x:e.x,y:e.y}},"getPointAtLength");getTangentAtLength=K(t=>{t<0?t=0:t>this.length&&(t=this.length);const e=.05,n=this.getPointAtLength(t);let r;t<0?t=0:t>this.length&&(t=this.length),r=t<this.length-e?this.getPointAtLength(t+e):this.getPointAtLength(t-e);const i=r.x-n.x,o=r.y-n.y,a=Math.sqrt(i*i+o*o);return t<this.length-e?{x:-i/a,y:-o/a}:{x:i/a,y:o/a}},"getTangentAtLength");getPropertiesAtLength=K(t=>{const e=this.getTangentAtLength(t),n=this.getPointAtLength(t);return{x:n.x,y:n.y,tangentX:e.x,tangentY:e.y}},"getPropertiesAtLength")},rt=K((t,e,n,r,i,o,a,s)=>{e=Math.abs(e),n=Math.abs(n),r=ot(r,360);const h=at(r);if(t.x===a.x&&t.y===a.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(0===e||0===n)return{x:0,y:0,ellipticalArcAngle:0};const c=(t.x-a.x)/2,u=(t.y-a.y)/2,l={x:Math.cos(h)*c+Math.sin(h)*u,y:-Math.sin(h)*c+Math.cos(h)*u},f=Math.pow(l.x,2)/Math.pow(e,2)+Math.pow(l.y,2)/Math.pow(n,2);f>1&&(e=Math.sqrt(f)*e,n=Math.sqrt(f)*n);let p=(Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(l.y,2)-Math.pow(n,2)*Math.pow(l.x,2))/(Math.pow(e,2)*Math.pow(l.y,2)+Math.pow(n,2)*Math.pow(l.x,2));p=p<0?0:p;const g=(i!==o?1:-1)*Math.sqrt(p),d=g*(e*l.y/n),y=g*(-n*l.x/e),v={x:Math.cos(h)*d-Math.sin(h)*y+(t.x+a.x)/2,y:Math.sin(h)*d+Math.cos(h)*y+(t.y+a.y)/2},x={x:(l.x-d)/e,y:(l.y-y)/n},w=ct({x:1,y:0},x);let b=ct(x,{x:(-l.x-d)/e,y:(-l.y-y)/n});!o&&b>0?b-=2*Math.PI:o&&b<0&&(b+=2*Math.PI),b%=2*Math.PI;const m=w+b*s,M=e*Math.cos(m),A=n*Math.sin(m);return{x:Math.cos(h)*M-Math.sin(h)*A+v.x,y:Math.sin(h)*M+Math.cos(h)*A+v.y,ellipticalArcStartAngle:w,ellipticalArcEndAngle:w+b,ellipticalArcAngle:m,ellipticalArcCenter:v,resultantRx:e,resultantRy:n}},"pointOnEllipticalArc"),it=K((t,e)=>{t=t??500;let n=0;const r=[],i=[];let o,a=e(0);for(let s=0;s<t;s++){const h=ht(s*(1/t),0,1);o=e(h),n+=st(a,o),i.push([a,o]),r.push({t:h,arcLength:n}),a=o}return o=e(1),i.push([a,o]),n+=st(a,o),r.push({t:1,arcLength:n}),{arcLength:n,arcLengthMap:r,approximationLines:i}},"approximateArcLengthOfCurve"),ot=K((t,e)=>(t%e+e)%e,"mod"),at=K(t=>t*(Math.PI/180),"toRadians"),st=K((t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)),"distance"),ht=K((t,e,n)=>Math.min(Math.max(t,e),n),"clamp"),ct=K((t,e)=>{const n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2)));return(t.x*e.y-t.y*e.x<0?-1:1)*Math.acos(n/r)},"angleBetween"),ut=[[],[],[-.5773502691896257,.5773502691896258],[0,-.7745966692414833,.7745966692414833],[-.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]],lt=[[],[],[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]],ft=[[1],[1,1],[1,2,1],[1,3,3,1]],pt=K((t,e,n)=>({x:(1-n)*(1-n)*(1-n)*t[0]+3*(1-n)*(1-n)*n*t[1]+3*(1-n)*n*n*t[2]+n*n*n*t[3],y:(1-n)*(1-n)*(1-n)*e[0]+3*(1-n)*(1-n)*n*e[1]+3*(1-n)*n*n*e[2]+n*n*n*e[3]}),"cubicPoint"),gt=K((t,e,n)=>yt([3*(t[1]-t[0]),3*(t[2]-t[1]),3*(t[3]-t[2])],[3*(e[1]-e[0]),3*(e[2]-e[1]),3*(e[3]-e[2])],n),"cubicDerivative"),dt=K((t,e,n)=>{let r,i;const o=n/2;r=0;for(let n=0;n<20;n++)i=o*ut[20][n]+o,r+=lt[20][n]*wt(t,e,i);return o*r},"getCubicArcLength"),yt=K((t,e,n)=>({x:(1-n)*(1-n)*t[0]+2*(1-n)*n*t[1]+n*n*t[2],y:(1-n)*(1-n)*e[0]+2*(1-n)*n*e[1]+n*n*e[2]}),"quadraticPoint"),vt=K((t,e,n)=>{void 0===n&&(n=1);const r=t[0]-2*t[1]+t[2],i=e[0]-2*e[1]+e[2],o=2*t[1]-2*t[0],a=2*e[1]-2*e[0],s=4*(r*r+i*i),h=4*(r*o+i*a),c=o*o+a*a;if(0===s)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));const u=h/(2*s),l=n+u,f=c/s-u*u,p=l*l+f>0?Math.sqrt(l*l+f):0,g=u*u+f>0?Math.sqrt(u*u+f):0,d=u+Math.sqrt(u*u+f)!==0&&(l+p)/(u+g)!==0?f*Math.log(Math.abs((l+p)/(u+g))):0;return Math.sqrt(s)/2*(l*p-u*g+d)},"getQuadraticArcLength"),xt=K((t,e,n)=>({x:2*(1-n)*(t[1]-t[0])+2*n*(t[2]-t[1]),y:2*(1-n)*(e[1]-e[0])+2*n*(e[2]-e[1])}),"quadraticDerivative");function wt(t,e,n){const r=bt(1,n,t),i=bt(1,n,e),o=r*r+i*i;return Math.sqrt(o)}K(wt,"BFunc");var bt=K((t,e,n)=>{const r=n.length-1;let i,o;if(0===r)return 0;if(0===t){o=0;for(let t=0;t<=r;t++)o+=ft[r][t]*Math.pow(1-e,r-t)*Math.pow(e,t)*n[t];return o}i=new Array(r);for(let t=0;t<r;t++)i[t]=r*(n[t+1]-n[t]);return bt(t-1,e,i)},"getDerivative"),mt=K((t,e,n)=>{let r=1,i=t/e,o=(t-n(i))/e,a=0;for(;r>.001;){const s=n(i+o),h=Math.abs(t-s)/e;if(h<r)r=h,i+=o;else{const a=n(i-o),s=Math.abs(t-a)/e;s<r?(r=s,i-=o):o/=2}if(a++,a>500)break}return i},"t2length"),Mt=class{static{K(this,"Bezier")}a;b;c;d;length;getArcLength;getPoint;getDerivative;constructor(t,e,n,r,i,o,a,s){this.a={x:t,y:e},this.b={x:n,y:r},this.c={x:i,y:o},void 0!==a&&void 0!==s?(this.getArcLength=dt,this.getPoint=pt,this.getDerivative=gt,this.d={x:a,y:s}):(this.getArcLength=vt,this.getPoint=yt,this.getDerivative=xt,this.d={x:0,y:0}),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],1)}getTotalLength=K(()=>this.length,"getTotalLength");getPointAtLength=K(t=>{const e=[this.a.x,this.b.x,this.c.x,this.d.x],n=[this.a.y,this.b.y,this.c.y,this.d.y],r=mt(t,this.length,t=>this.getArcLength(e,n,t));return this.getPoint(e,n,r)},"getPointAtLength");getTangentAtLength=K(t=>{const e=[this.a.x,this.b.x,this.c.x,this.d.x],n=[this.a.y,this.b.y,this.c.y,this.d.y],r=mt(t,this.length,t=>this.getArcLength(e,n,t)),i=this.getDerivative(e,n,r),o=Math.sqrt(i.x*i.x+i.y*i.y);let a;return a=o>0?{x:i.x/o,y:i.y/o}:{x:0,y:0},a},"getTangentAtLength");getPropertiesAtLength=K(t=>{const e=[this.a.x,this.b.x,this.c.x,this.d.x],n=[this.a.y,this.b.y,this.c.y,this.d.y],r=mt(t,this.length,t=>this.getArcLength(e,n,t)),i=this.getDerivative(e,n,r),o=Math.sqrt(i.x*i.x+i.y*i.y);let a;a=o>0?{x:i.x/o,y:i.y/o}:{x:0,y:0};const s=this.getPoint(e,n,r);return{x:s.x,y:s.y,tangentX:a.x,tangentY:a.y}},"getPropertiesAtLength");getC=K(()=>this.c,"getC");getD=K(()=>this.d,"getD")},At=class{static{K(this,"SVGPathProperties")}length=0;partial_lengths=[];functions=[];initial_point=null;constructor(t){const e=Array.isArray(t)?t:J(t);let n,r=[0,0],i=[0,0],o=[0,0];for(let t=0;t<e.length;t++){if("M"===e[t][0])r=[e[t][1],e[t][2]],o=[r[0],r[1]],this.functions.push(null),0===t&&(this.initial_point={x:e[t][1],y:e[t][2]});else if("m"===e[t][0])r=[e[t][1]+r[0],e[t][2]+r[1]],o=[r[0],r[1]],this.functions.push(null);else if("L"===e[t][0])this.length+=Math.sqrt(Math.pow(r[0]-e[t][1],2)+Math.pow(r[1]-e[t][2],2)),this.functions.push(new et(r[0],e[t][1],r[1],e[t][2])),r=[e[t][1],e[t][2]];else if("l"===e[t][0])this.length+=Math.sqrt(Math.pow(e[t][1],2)+Math.pow(e[t][2],2)),this.functions.push(new et(r[0],e[t][1]+r[0],r[1],e[t][2]+r[1])),r=[e[t][1]+r[0],e[t][2]+r[1]];else if("H"===e[t][0])this.length+=Math.abs(r[0]-e[t][1]),this.functions.push(new et(r[0],e[t][1],r[1],r[1])),r[0]=e[t][1];else if("h"===e[t][0])this.length+=Math.abs(e[t][1]),this.functions.push(new et(r[0],r[0]+e[t][1],r[1],r[1])),r[0]=e[t][1]+r[0];else if("V"===e[t][0])this.length+=Math.abs(r[1]-e[t][1]),this.functions.push(new et(r[0],r[0],r[1],e[t][1])),r[1]=e[t][1];else if("v"===e[t][0])this.length+=Math.abs(e[t][1]),this.functions.push(new et(r[0],r[0],r[1],r[1]+e[t][1])),r[1]=e[t][1]+r[1];else if("z"===e[t][0]||"Z"===e[t][0])this.length+=Math.sqrt(Math.pow(o[0]-r[0],2)+Math.pow(o[1]-r[1],2)),this.functions.push(new et(r[0],o[0],r[1],o[1])),r=[o[0],o[1]];else if("C"===e[t][0])n=new Mt(r[0],r[1],e[t][1],e[t][2],e[t][3],e[t][4],e[t][5],e[t][6]),this.length+=n.getTotalLength(),r=[e[t][5],e[t][6]],this.functions.push(n);else if("c"===e[t][0])n=new Mt(r[0],r[1],r[0]+e[t][1],r[1]+e[t][2],r[0]+e[t][3],r[1]+e[t][4],r[0]+e[t][5],r[1]+e[t][6]),n.getTotalLength()>0?(this.length+=n.getTotalLength(),this.functions.push(n),r=[e[t][5]+r[0],e[t][6]+r[1]]):this.functions.push(new et(r[0],r[0],r[1],r[1]));else if("S"===e[t][0]){if(t>0&&["C","c","S","s"].indexOf(e[t-1][0])>-1){if(n){const i=n.getC();n=new Mt(r[0],r[1],2*r[0]-i.x,2*r[1]-i.y,e[t][1],e[t][2],e[t][3],e[t][4])}}else n=new Mt(r[0],r[1],r[0],r[1],e[t][1],e[t][2],e[t][3],e[t][4]);n&&(this.length+=n.getTotalLength(),r=[e[t][3],e[t][4]],this.functions.push(n))}else if("s"===e[t][0]){if(t>0&&["C","c","S","s"].indexOf(e[t-1][0])>-1){if(n){const i=n.getC(),o=n.getD();n=new Mt(r[0],r[1],r[0]+o.x-i.x,r[1]+o.y-i.y,r[0]+e[t][1],r[1]+e[t][2],r[0]+e[t][3],r[1]+e[t][4])}}else n=new Mt(r[0],r[1],r[0],r[1],r[0]+e[t][1],r[1]+e[t][2],r[0]+e[t][3],r[1]+e[t][4]);n&&(this.length+=n.getTotalLength(),r=[e[t][3]+r[0],e[t][4]+r[1]],this.functions.push(n))}else if("Q"===e[t][0]){if(r[0]===e[t][1]&&r[1]===e[t][2]){const n=new et(e[t][1],e[t][3],e[t][2],e[t][4]);this.length+=n.getTotalLength(),this.functions.push(n)}else n=new Mt(r[0],r[1],e[t][1],e[t][2],e[t][3],e[t][4],void 0,void 0),this.length+=n.getTotalLength(),this.functions.push(n);r=[e[t][3],e[t][4]],i=[e[t][1],e[t][2]]}else if("q"===e[t][0]){if(0!==e[t][1]||0!==e[t][2])n=new Mt(r[0],r[1],r[0]+e[t][1],r[1]+e[t][2],r[0]+e[t][3],r[1]+e[t][4],void 0,void 0),this.length+=n.getTotalLength(),this.functions.push(n);else{const n=new et(r[0]+e[t][1],r[0]+e[t][3],r[1]+e[t][2],r[1]+e[t][4]);this.length+=n.getTotalLength(),this.functions.push(n)}i=[r[0]+e[t][1],r[1]+e[t][2]],r=[e[t][3]+r[0],e[t][4]+r[1]]}else if("T"===e[t][0]){if(t>0&&["Q","q","T","t"].indexOf(e[t-1][0])>-1)n=new Mt(r[0],r[1],2*r[0]-i[0],2*r[1]-i[1],e[t][1],e[t][2],void 0,void 0),this.functions.push(n),this.length+=n.getTotalLength();else{const n=new et(r[0],e[t][1],r[1],e[t][2]);this.functions.push(n),this.length+=n.getTotalLength()}i=[2*r[0]-i[0],2*r[1]-i[1]],r=[e[t][1],e[t][2]]}else if("t"===e[t][0]){if(t>0&&["Q","q","T","t"].indexOf(e[t-1][0])>-1)n=new Mt(r[0],r[1],2*r[0]-i[0],2*r[1]-i[1],r[0]+e[t][1],r[1]+e[t][2],void 0,void 0),this.length+=n.getTotalLength(),this.functions.push(n);else{const n=new et(r[0],r[0]+e[t][1],r[1],r[1]+e[t][2]);this.length+=n.getTotalLength(),this.functions.push(n)}i=[2*r[0]-i[0],2*r[1]-i[1]],r=[e[t][1]+r[0],e[t][2]+r[1]]}else if("A"===e[t][0]){const n=new nt(r[0],r[1],e[t][1],e[t][2],e[t][3],1===e[t][4],1===e[t][5],e[t][6],e[t][7]);this.length+=n.getTotalLength(),r=[e[t][6],e[t][7]],this.functions.push(n)}else if("a"===e[t][0]){const n=new nt(r[0],r[1],e[t][1],e[t][2],e[t][3],1===e[t][4],1===e[t][5],r[0]+e[t][6],r[1]+e[t][7]);this.length+=n.getTotalLength(),r=[r[0]+e[t][6],r[1]+e[t][7]],this.functions.push(n)}this.partial_lengths.push(this.length)}}getPartAtLength=K(t=>{t<0?t=0:t>this.length&&(t=this.length);let e=this.partial_lengths.length-1;for(;this.partial_lengths[e]>=t&&e>0;)e--;return e++,{fraction:t-this.partial_lengths[e-1],i:e}},"getPartAtLength");getTotalLength=K(()=>this.length,"getTotalLength");getPointAtLength=K(t=>{const e=this.getPartAtLength(t),n=this.functions[e.i];if(n)return n.getPointAtLength(e.fraction);if(this.initial_point)return this.initial_point;throw new Error("Wrong function at this part.")},"getPointAtLength");getTangentAtLength=K(t=>{const e=this.getPartAtLength(t),n=this.functions[e.i];if(n)return n.getTangentAtLength(e.fraction);if(this.initial_point)return{x:0,y:0};throw new Error("Wrong function at this part.")},"getTangentAtLength");getPropertiesAtLength=K(t=>{const e=this.getPartAtLength(t),n=this.functions[e.i];if(n)return n.getPropertiesAtLength(e.fraction);if(this.initial_point)return{x:this.initial_point.x,y:this.initial_point.y,tangentX:0,tangentY:0};throw new Error("Wrong function at this part.")},"getPropertiesAtLength");getParts=K(()=>{const t=[];for(let e=0;e<this.functions.length;e++)if(null!==this.functions[e]){this.functions[e]=this.functions[e];const n={start:this.functions[e].getPointAtLength(0),end:this.functions[e].getPointAtLength(this.partial_lengths[e]-this.partial_lengths[e-1]),length:this.partial_lengths[e]-this.partial_lengths[e-1],getPointAtLength:this.functions[e].getPointAtLength,getTangentAtLength:this.functions[e].getTangentAtLength,getPropertiesAtLength:this.functions[e].getPropertiesAtLength};t.push(n)}return t},"getParts")},Lt=class{static{K(this,"_svgPathProperties")}inst;constructor(t){if(this.inst=new At(t),!(this instanceof Lt))return new Lt(t)}getTotalLength=K(()=>this.inst.getTotalLength(),"getTotalLength");getPointAtLength=K(t=>this.inst.getPointAtLength(t),"getPointAtLength");getTangentAtLength=K(t=>this.inst.getTangentAtLength(t),"getTangentAtLength");getPropertiesAtLength=K(t=>this.inst.getPropertiesAtLength(t),"getPropertiesAtLength");getParts=K(()=>this.inst.getParts(),"getParts")},Pt=function(){return Pt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Pt.apply(this,arguments)};function Ot(t){return void 0===t&&(t=w.BLACK),Pt(Pt({},t),{alpha:0})}var Tt=function(){return Tt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Tt.apply(this,arguments)},St=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Et(t){void 0===t&&(t=null);var e=null!=t?t:{},n=e.path,r=e.height,i=void 0===r?100:r,o=e.width,a=void 0===o?100:o,s=e.viewboxHeight,h=e.viewboxWidth,c=St(e,["path","height","width","viewboxHeight","viewboxWidth"]),u=null!=n?n:"M 0 0 L 100 100",l=new Lt(u).getTotalLength();return I(Tt({objectType:j.PATH,anchor:v,color:b,drawn:1,fill:Ot(),isRounded:!1,height:i,path:u,pathLength:l,strokeWidth:4,viewboxHeight:null!=s?s:i,viewboxWidth:null!=h?h:a,width:a,x:0,y:0},c))}var jt=function(){return jt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},jt.apply(this,arguments)};function Ct(t){return void 0===t&&(t=null),I(jt({objectType:j.POLYGON,borderColor:b,borderWidth:0,drawn:1,points:[{x:0,y:0},{x:100,y:0},{x:100,y:100}],fill:b},t))}var It=function(){return It=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},It.apply(this,arguments)};function kt(t){return void 0===t&&(t=null),I(It({objectType:j.RECTANGLE,anchor:v,borderColor:b,borderWidth:0,drawn:1,fill:b,height:100,rounding:0,width:100,x:0,y:0},t))}var qt={NORMAL:"normal",ITALIC:"italic",OBLIQUE:"oblique"},_t=qt.NORMAL,Rt={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900},Nt=Rt.NORMAL,zt={color:b,fontFamily:"sans-serif",fontSize:100,fontStyle:_t,fontWeight:Nt,ligatures:!1};function Ft(t){return"string"==typeof t?[[{text:t}]]:t.map(function(t){return t.map(function(t){return"string"==typeof t?{text:t}:t})})}function Dt(t){return Ft(t).reduce(function(t,e){return t+e.reduce(function(t,e){return t+e.text.length},0)},0)}var Bt=function(){return Bt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Bt.apply(this,arguments)};function Gt(t,e){return void 0===t&&(t=""),void 0===e&&(e=null),I(Bt(Bt({objectType:j.TEXT,alignment:T,anchor:v,length:null,lineSpacing:1,text:t,x:0,y:0},zt),e))}Gt.writeOn=function(t,e){return void 0===e&&(e={}),h(t,{length:Dt(t.text)},e)};var Zt=null;var Wt=function(){return Wt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Wt.apply(this,arguments)};function Xt(t){return void 0===t&&(t=null),Wt({height:0,width:0},t)}var Yt=Xt({width:0,height:0}),Ht=function(){return Ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ht.apply(this,arguments)};function Ut(t){return void 0===t&&(t=null),Ht({backgroundColor:w.WHITE,slides:[],title:"Presentation",size:Xt({width:3840,height:2160}),resources:{images:{}}},t)}function Kt(t,e){void 0===e&&(e=null);var n=t.red,r=t.green,i=t.blue,o=A(t,e);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(o,")")}function Vt(t,e){window.innerHeight/window.innerWidth>e?(t.style.width="100%",t.style.height="auto"):(t.style.width="auto",t.style.height="100%")}var Qt={check:function(t){return"object"==typeof t&&null!==t&&"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&"number"==typeof t.alpha},interpolate:function(t,e,n){return{red:Math.round(t.red+(e.red-t.red)*n),green:Math.round(t.green+(e.green-t.green)*n),blue:Math.round(t.blue+(e.blue-t.blue)*n),alpha:t.alpha+(e.alpha-t.alpha)*n}}},$t={check:function(t){return"number"==typeof t},interpolate:function(t,e,n){return t+(e-t)*n}},Jt=[$t,Qt,{check:function(t){return!0},interpolate:function(t,e){return e}}],te=function(){return te=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},te.apply(this,arguments)},ee=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function ne(t,e,n,r){if(void 0===r&&(r=null),0===n)return t;if(1===n)return te(te({},t),e);var i=null!=r?ee(ee([],r,!0),Jt,!0):Jt,o={};for(var a in e)for(var s=t[a],h=e[a],c=0,u=i;c<u.length;c++){var l=u[c];if(l.check(s,a)&&l.check(h,a)){o[a]=l.interpolate(s,h,n);break}}return te(te({},t),o)}var re=function(){return re=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},re.apply(this,arguments)};function ie(e,n,r){if(void 0===r&&(r=null),null!==n)for(var i=0,o=0,a=Array.isArray(n)?n:[n];o<a.length;o++){var s=a[o];if(null!==r&&i>r)break;switch(s.type){case t.ANIMATE:if(void 0===(u=e.get(s.object)))break;var h=null!==r?r-i:null,c=Math.max(Math.min(null!==h?(h-s.delay)/s.duration:1,1),0);e.set(s.object,re(re({},u),ne(u,s.props,s.easing(c),s.interpolators))),s.block&&(i+=s.delay+s.duration);break;case t.UPDATE:var u;if(void 0===(u=e.get(s.object)))break;e.set(s.object,re(re({},u),s.props));break;case t.PAUSE:i+=s.duration;break;default:S(s)}}}function oe(t,e,n,r){if(null!==e)if(Array.isArray(e))for(var i=0,o=e;i<o.length;i++)t[o[i]]={slideIndex:n,buildIndex:r};else t[e]={slideIndex:n,buildIndex:r}}var ae="presenterState",se=Object.freeze({canvas:null,extrasContainer:null,mountedExtrasCleanups:[],mountedExtrasSlideIndex:null,slideIndex:0,buildIndex:0,currentAnimationId:null,imageById:{},shortcutState:{textCommand:null,shortcuts:{}}}),he="browser",ce="node",ue="browser",le="node";function fe(t){var e=new Path2D(t);return{type:ue,path:e}}function pe(t){var e=t.ctx,n=t.color,r=t.drawn,i=void 0===r?null:r,o=t.isDrawnFromCenter,a=void 0!==o&&o,s=t.isRounded,h=void 0!==s&&s,c=t.opacity,u=void 0===c?null:c,l=t.path,f=t.pathLength,p=void 0===f?null:f,g=t.width;if(0!==g&&0!==i){if(null!==i&&null!==p&&1!==i){var d=p+(h?g:0),y=p*i;a?e.context.setLineDash([0,(d-y)/2,y,(d-y)/2]):e.context.setLineDash([y,d-y])}else e.context.setLineDash([]);if(e.context.lineWidth=g,e.context.strokeStyle=L(n,u),e.context.lineCap=h?"round":"butt",void 0!==l)switch(e.type){case he:l.type===ue?e.context.stroke(l.path):console.warn("Attempted to use Node Path2D in Browser Canvas context");break;case ce:l.type===le?e.context.stroke(l.path):console.warn("Attempted to use Browser Path2D in Node Canvas context");break;default:S(e)}else e.context.stroke()}}function ge(t){var e=t.ctx,n=t.path,r=t.color,i=t.opacity,o=void 0===i?null:i;if(e.context.fillStyle=Kt(r,o),void 0!==n)switch(e.type){case he:n.type===ue?e.context.fill(n.path):console.warn("Attempted to use Node Path2D in Browser Canvas context");break;case ce:n.type===le?e.context.fill(n.path):console.warn("Attempted to use Browser Path2D in Node Canvas context");break;default:S(e)}else e.context.fill()}function de(t,e){var n=e(),r=t[0];if(void 0===r)return{path:n,length:0};n.path.moveTo(r.x,r.y);for(var i=0,o=1;o<t.length;o++){var a=t[o],s=t[o-1];if(void 0!==a&&void 0!==s){var h=a.x-s.x,c=a.y-s.y;i+=Math.hypot(h,c),n.path.lineTo(a.x,a.y)}}return{path:n,length:i}}var ye=function(){return ye=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ye.apply(this,arguments)};function ve(t){return void 0===t&&(t=null),ye({x:0,y:0},t)}var xe=ve(),we=function(){return we=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},we.apply(this,arguments)};function be(t){return void 0===t&&(t=null),we({origin:xe,size:Yt},t)}function me(t,e,n){var r=t.x,i=t.y,o=n.width,a=n.height;switch(e){case y.TOP_LEFT:return be({origin:ve({x:r,y:i}),size:n});case y.TOP:return be({origin:ve({x:r-o/2,y:i}),size:n});case y.TOP_RIGHT:return be({origin:ve({x:r-o,y:i}),size:n});case y.LEFT:return be({origin:ve({x:r,y:i-a/2}),size:n});case y.CENTER:return be({origin:ve({x:r-o/2,y:i-a/2}),size:n});case y.RIGHT:return be({origin:ve({x:r-o,y:i-a/2}),size:n});case y.BOTTOM_LEFT:return be({origin:ve({x:r,y:i-a}),size:n});case y.BOTTOM:return be({origin:ve({x:r-o/2,y:i-a}),size:n});case y.BOTTOM_RIGHT:return be({origin:ve({x:r-o,y:i-a}),size:n});default:S(e)}}function Me(t,e,n,r,i){void 0===i&&(i=0);var o=r();return o.path.moveTo(t.x+n,t.y),o.path.lineTo(t.x+e.width-n,t.y),o.path.arcTo(t.x+e.width,t.y,t.x+e.width,t.y+n,n),o.path.lineTo(t.x+e.width,t.y+e.height-n),o.path.arcTo(t.x+e.width,t.y+e.height,t.x+e.width-n,t.y+e.height,n),o.path.lineTo(t.x+n,t.y+e.height),o.path.arcTo(t.x,t.y+e.height,t.x,t.y+e.height-n,n),o.path.lineTo(t.x,t.y+n),o.path.arcTo(t.x,t.y,t.x+n,t.y,n),i>0&&o.path.lineTo(t.x+n+i,t.y),{path:o,length:2*(e.width+e.height-4*n)+2*Math.PI*n+i}}be();var Ae="browser";function Le(t){return{width:t.width,height:t.fontBoundingBoxAscent}}function Pe(t,e,n){void 0===n&&(n=1),t.context.fillStyle=Kt(e.color,n),t.context.font="".concat(e.fontStyle," ").concat(e.fontWeight," ").concat(e.fontSize,"px ").concat(e.fontFamily),t.type===he?t.context.textRendering=e.ligatures?"optimizeLegibility":"optimizeSpeed":t.context.fontVariant=e.ligatures?"common-ligatures":"no-common-ligatures"}var Oe,Te=function(){return Te=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Te.apply(this,arguments)},Se=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Ee=function(){return Ee=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ee.apply(this,arguments)},je=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Ce=((Oe={})[j.ARROW]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&0!==n.drawn){var a=function(t){var e=t.drawn,n=t.startX,r=t.startY,i=t.endX,o=t.endY,a=t.arrowheadSize,s=t.isArrowheadFilled,h=t.isDrawnFromCenter,c={x:n,y:r},u=i,l=o,f=Math.atan2(l-c.y,u-c.x),p=c.x+(u-c.x)/2,g=c.y+(l-c.y)/2,d=u-c.x,y=l-c.y,v=Math.hypot(d,y)*e,x=Math.cos(f),w=Math.sin(f),b=h?{x:p-x*v/2,y:g-w*v/2}:c,m=h?{x:p+x*v/2,y:g+w*v/2}:{x:c.x+x*v,y:c.y+w*v},M=s?Math.PI/6:Math.PI/4.5,A=v<2*a?v/2:a;return{arrowPoints:[b,m],arrowheadPoints:[{x:m.x-A*Math.cos(f-M),y:m.y-A*Math.sin(f-M)},m,{x:m.x-A*Math.cos(f+M),y:m.y-A*Math.sin(f+M)}],doubledArrowheadPoints:[{x:b.x+A*Math.cos(f-M),y:b.y+A*Math.sin(f-M)},b,{x:b.x+A*Math.cos(f+M),y:b.y+A*Math.sin(f+M)}]}}(n),s=a.arrowPoints,h=a.arrowheadPoints,c=a.doubledArrowheadPoints,u=de(s,i).path,l=de(h,i).path;if(pe({color:n.color,ctx:e,path:u,opacity:o,width:n.width}),n.isArrowheadFilled&&(l.path.closePath(),ge({ctx:e,path:l,color:n.color,opacity:o})),pe({color:n.color,ctx:e,path:l,opacity:o,width:n.width}),n.isArrowheadDoubled){var f=de(c,i).path;n.isArrowheadFilled&&(f.path.closePath(),ge({ctx:e,path:f,color:n.color,opacity:o})),pe({color:n.color,ctx:e,path:f,opacity:o,width:n.width})}}},Oe[j.CIRCLE]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&(0!==n.drawn||0!==n.fill.alpha)){var a=function(t,e){var n=e(),r=-Math.PI/2;return n.path.arc(t.x,t.y,t.radius,r,r+2*Math.PI),{path:n,length:2*Math.PI*t.radius}}(n,i),s=a.path,h=a.length;ge({ctx:e,path:s,color:n.fill,opacity:o}),pe({color:n.borderColor,ctx:e,drawn:n.drawn,path:s,pathLength:h,opacity:o,width:n.borderWidth})}},Oe[j.GROUP]=function(t){var e=t.ctx,n=t.object,r=t.renderObject,i=t.opacity,o=me(ve({x:n.x,y:n.y}),n.anchor,Xt({width:n.width*n.scale,height:n.height*n.scale})),a=n.rotation,s=n.rotateOriginX,h=n.rotateOriginY;if(0!==n.scale){e.context.translate(o.origin.x,o.origin.y),e.context.scale(n.scale,n.scale),e.context.translate(s,h),e.context.rotate(a*Math.PI/180),e.context.translate(-s,-h);for(var c=0,u=n.objects;c<u.length;c++)r(u[c],i*n.opacity);null!==n.previewColor&&(e.context.fillStyle=L(n.previewColor),e.context.fillRect(0,0,n.width,n.height)),e.context.translate(s,h),e.context.rotate(-a*Math.PI/180),e.context.translate(-s,-h),n.rotateOriginPreviewSize>0&&(e.context.fillStyle="red",e.context.beginPath(),e.context.arc(s,h,n.rotateOriginPreviewSize,0,2*Math.PI),e.context.fill()),e.context.scale(1/n.scale,1/n.scale),e.context.translate(-o.origin.x,-o.origin.y)}},Oe[j.IMAGE]=function(t){var e=t.ctx,n=t.imageById,r=t.object,i=t.opacity,o=t.createPath2D,a=me(ve({x:r.x,y:r.y}),r.anchor,Xt({width:r.width,height:r.height})),s=n[r.imageId];if(void 0!==s){if(e.context.save(),r.rounding>0){var h=Me(a.origin,a.size,r.rounding,o);switch(e.type){case he:h.path.type===ue?e.context.clip(h.path.path):console.warn("Attempted to use Node Path2D in Browser Canvas context");break;case ce:h.path.type===le?e.context.clip(h.path.path):console.warn("Attempted to use Browser Path2D in Node Canvas context");break;default:S(e)}}switch(e.context.globalAlpha=i*r.opacity,e.context.imageSmoothingEnabled=r.smooth,e.type){case he:s.type===Ae?e.context.drawImage(s.image,a.origin.x,a.origin.y,a.size.width,a.size.height):console.warn("Attempted to use Node Image in Browser Canvas context");break;case ce:"node"===s.type?e.context.drawImage(s.image,a.origin.x,a.origin.y,a.size.width,a.size.height):console.warn("Attempted to use Browser Image in Node Canvas context");break;default:S(e)}e.context.restore()}},Oe[j.LINE]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&0!==n.drawn){var a=function(t,e){var n=e();return n.path.moveTo(t.startX,t.startY),n.path.lineTo(t.endX,t.endY),{path:n,length:Math.hypot(t.endX-t.startX,t.endY-t.startY)}}(n,i),s=a.path,h=a.length;pe({color:n.color,ctx:e,drawn:n.drawn,isDrawnFromCenter:n.isDrawnFromCenter,isRounded:n.isRounded,path:s,pathLength:h,opacity:o,width:n.width})}},Oe[j.MASK]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.renderObject;e.context.save();var o=me(ve({x:n.x,y:n.y}),n.anchor,Xt({width:n.width,height:n.height}));n.preview&&(e.context.lineWidth=4,e.context.strokeStyle=L(w.RED),e.context.rect(o.origin.x,o.origin.y,o.size.width,o.size.height),e.context.stroke()),e.context.beginPath(),e.context.rect(o.origin.x,o.origin.y,o.size.width,o.size.height),e.context.closePath(),e.context.clip();for(var a=0,s=n.objects;a<s.length;a++)i(s[a],r*n.opacity);e.context.restore()},Oe[j.PATH]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&(0!==n.drawn||0!==n.fill.alpha)){var a=me(ve({x:n.x,y:n.y}),n.anchor,Xt({width:n.width,height:n.height})).origin,s=i(n.path);e.context.save(),e.context.translate(a.x,a.y),e.context.scale(n.width/n.viewboxWidth,n.height/n.viewboxHeight),ge({ctx:e,path:s,color:n.fill,opacity:o}),pe({color:n.color,ctx:e,drawn:n.drawn,isRounded:n.isRounded,path:s,pathLength:n.pathLength,opacity:o,width:n.strokeWidth}),e.context.restore()}},Oe[j.POLYGON]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&(0!==n.drawn||0!==n.fill.alpha)){var a=function(t,e){var n=e(),r=t.points,i=r[0];if(void 0===i)return{path:n,length:0};n.path.moveTo(i.x,i.y);for(var o=0,a=i,s=1;s<r.length;s++){var h=r[s];void 0!==h&&(n.path.lineTo(h.x,h.y),o+=Math.hypot(h.x-a.x,h.y-a.y),a=h)}return n.path.closePath(),{path:n,length:o+=Math.hypot(i.x-a.x,i.y-a.y)}}(n,i),s=a.path,h=a.length;ge({ctx:e,path:s,color:n.fill,opacity:o}),pe({color:n.borderColor,ctx:e,drawn:n.drawn,path:s,pathLength:h,opacity:o,width:n.borderWidth})}},Oe[j.RECTANGLE]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=t.createPath2D,o=n.opacity*r;if(0!==o&&(0!==n.drawn||0!==n.fill.alpha)){var a=function(t,e){var n=me(ve({x:t.x,y:t.y}),t.anchor,Xt({width:t.width,height:t.height})),r=n.origin,i=n.size,o=Math.max(0,Math.min(t.rounding,Math.min(i.width,i.height)/2)),a=Math.min(2*t.borderWidth,i.width-o);if(o>0)return Me(r,i,o,e,a);var s=e();return s.path.moveTo(r.x,r.y),s.path.lineTo(r.x+i.width,r.y),s.path.lineTo(r.x+i.width,r.y+i.height),s.path.lineTo(r.x,r.y+i.height),s.path.lineTo(r.x,r.y),s.path.lineTo(r.x+a,r.y),{path:s,length:2*(i.width+i.height)+a}}(n,i),s=a.path,h=a.length;ge({ctx:e,path:s,color:n.fill,opacity:o}),pe({color:n.borderColor,ctx:e,drawn:n.drawn,path:s,pathLength:h,opacity:o,width:n.borderWidth})}},Oe[j.SLIDE_OBJECT]=function(){},Oe[j.TEXT]=function(t){var e=t.ctx,n=t.object,r=t.opacity,i=n.opacity*r;if(0!==i)for(var o=n.length,a=Ft(n.text),s=function(t){return{color:t.color,fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,ligatures:t.ligatures}}(n),h=function(t,e,n){for(var r=[],i=0,o=t;i<o.length;i++){for(var a=[],s=0,h=o[i];s<h.length;s++){var c=h[s],u=c.text,l=Se(c,["text"]);Pe(n,Te(Te({},e),l));var f=n.context.measureText(u);a.push(Le(f))}r.push(a)}return r}(a,s,e),c=function(t,e){void 0===e&&(e=1);for(var n=Math.max.apply(Math,t.map(function(t){return t.reduce(function(t,e){return t+e.width},0)})),r=0,i=0,o=0;o<t.length;o++){var a=t[o];if(void 0!==a){var s=Math.max.apply(Math,a.map(function(t){return t.height}));r+=s+i*(e-1),i=s}}return{height:r,width:n}}(h,n.lineSpacing),u=me(ve({x:n.x,y:n.y}),n.anchor,c),l=u.origin.x,f=u.origin.y,p=0,g=0,d=0;d<a.length;d++){var y=a[d],v=h[d];if(null!=y&&null!=v){var x=v.reduce(function(t,e){return t+e.width},0),w=0===v.length?g:v.reduce(function(t,e){return Math.max(t,e.height)},0);switch(n.alignment){case O.LEFT:l=u.origin.x;break;case O.CENTER:l=u.origin.x+(u.size.width-x)/2;break;case O.RIGHT:l=u.origin.x+(u.size.width-x);break;default:S(n.alignment)}f+=w+g*(n.lineSpacing-1),g=w;for(var b=0;b<y.length&&!(null!==o&&p>=o);b++){var m=y[b],M=v[b];if(null!=m&&null!=M){var A=m.text,L=je(m,["text"]),P=void 0;if(null!==o&&p+A.length>o){var T=o-p;P=A.slice(0,T)}var E=null!=P?P:A;p+=E.length,Pe(e,Ee(Ee({},s),L),i),e.context.fillText(E,l,f),l+=M.width}else console.error("Could not determine text unit or size for unit")}}else console.error("Could not determine text units or sizes for line")}},Oe);function Ie(t,e){if(null===t)return null;var n=me(ve({x:e.x,y:e.y}),e.anchor,Xt({width:e.width,height:e.height})),r=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");r.setAttribute("x",n.origin.x.toString()),r.setAttribute("y",n.origin.y.toString()),r.setAttribute("width",e.width.toString()),r.setAttribute("height",e.height.toString());var i=e.content;null!==i&&r.appendChild(i),t.appendChild(r);var o=null;if(null!==e.setup){var a=e.setup(r);void 0!==a&&(o=a)}return function(){null!==o&&o(),t.removeChild(r)}}var ke=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{h(r.next(t))}catch(t){o(t)}}function s(t){try{h(r.throw(t))}catch(t){o(t)}}function h(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}h((r=r.apply(t,e||[])).next())})},qe=function(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(h){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,h])}}};function _e(t){return ke(this,void 0,void 0,function(){var e,n,r,i=this;return qe(this,function(o){switch(o.label){case 0:return 0===Object.keys(t).length?[2,{}]:(e={},n=function(t){return new Promise(function(e,n){var r=new Image;if(r.onload=function(){return e(r)},r.onerror=function(t){return n(t)},t.includes("</svg>")){var i=new Blob([t],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);r.src=o}else r.src=t})},r=Object.entries(t).map(function(t){return ke(i,[t],void 0,function(t){var r,i=t[0],o=t[1];return qe(this,function(t){switch(t.label){case 0:return[4,n(o)];case 1:return r=t.sent(),e[i]={type:Ae,image:r},[2]}})})}),[4,Promise.all(r)]);case 1:return o.sent(),[2,e]}})})}var Re=function(){return Re=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Re.apply(this,arguments)},Ne=function(){function e(t){var e=t.objectRenderers,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["objectRenderers"]);this.props=Re({presentation:Ut(),element:document.body,objectRenderers:Re(Re({},Ce),e),cacheDurationMinutes:15},n),this.state=Re({},se)}return e.prototype.present=function(){return function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{h(r.next(t))}catch(t){o(t)}}function s(t){try{h(r.throw(t))}catch(t){o(t)}}function h(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}h((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function(){var t,e,n,r,i,o,a,s,h,c,u=this;return function(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(h){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,h])}}}(this,function(l){switch(l.label){case 0:return t=this.props,e=t.presentation,n=t.element,r=function(t){var e=document.createElement("canvas");return e.setAttribute("width",t.width.toString()),e.setAttribute("height",t.height.toString()),e.style.position="absolute",e.style.width="100%",e}(e.size),f=e.size,(p=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("viewBox","0 0 ".concat(f.width," ").concat(f.height)),p.style.backgroundColor="transparent",p.style.position="absolute",p.style.width="100%",i=p,o=this,a=[Re({},se)],c={},[4,_e(e.resources.images)];case 1:return o.state=Re.apply(void 0,a.concat([(c.imageById=l.sent(),c.canvas=r,c.extrasContainer=i,c)])),s=function(t,e){var n=document.createElement("div");if(n.style.width="100%",n.style.aspectRatio="".concat(t.size.width," / ").concat(t.size.height),n.style.position="relative",n.style.top="50%",n.style.transform="translateY(-50%)",n.style.marginLeft="auto",n.style.marginRight="auto",e===document.body){n.style.overflowY="clip",document.title=t.title,document.documentElement.style.height="100%",document.body.style.margin="0",document.body.style.height="100%",document.body.style.width="100%",document.body.style.backgroundColor="#000000";var r=t.size.height/t.size.width;Vt(n,r),window.matchMedia("(min-aspect-ratio: ".concat(t.size.width," / ").concat(t.size.height,")")).addEventListener("change",function(){return Vt(n,r)})}return n}(e,n),function(t,e,n,r){var i=r.onNext,o=r.onPrevious,a=r.onRenderSlide,s=r.onShowNavigator;n.shortcuts=function(t){for(var e,n,r=t.slides,i={s:{slideIndex:0,buildIndex:0},c:{slideIndex:null,buildIndex:0},e:{slideIndex:r.length-1,buildIndex:null!==(n=null===(e=r[r.length-1])||void 0===e?void 0:e.animations.length)&&void 0!==n?n:0}},o=0;o<r.length;o++){var a=r[o];if(void 0!==a){oe(i,a.shortcut,o,0);for(var s=0;s<a.animations.length;s++){var h=a.animations[s];if(void 0!==h)if(Array.isArray(h))for(var c=0,u=h;c<u.length;c++)oe(i,u[c].shortcut,o,s+1);else oe(i,h.shortcut,o,s+1)}}}return i}(t),e.addEventListener("mousemove",function(){e.style.cursor="auto"}),e.addEventListener("keyup",function(t){if("Escape"!==t.code)if("ArrowRight"!==t.code&&"Space"!==t.code)if("ArrowLeft"!==t.code)if(null===n.textCommand)"g"!==t.key?"`"!==t.key||s():n.textCommand="";else{if("Enter"===t.code){var e=n.textCommand;n.textCommand=null;var r=n.shortcuts[e];return void(void 0!==r?a(r.slideIndex,r.buildIndex):isNaN(Number(e))||a(Number(e)-1,0))}"Backspace"===t.code?n.textCommand=n.textCommand.slice(0,-1):n.textCommand+=t.key}else o(t.shiftKey);else i(t.shiftKey);else n.textCommand=null})}(e,n,this.state.shortcutState,{onNext:function(t){return u.next(t)},onPrevious:function(t){return u.previous(t)},onRenderSlide:function(t,e){u.state.shortcutState.shortcuts.b={slideIndex:u.state.slideIndex,buildIndex:u.state.buildIndex},u.renderSlide(null!=t?t:u.state.slideIndex,e)},onShowNavigator:function(){return function(t){var e=t.presentation,n=t.onNavigateToSlide;if(null===Zt||Zt.closed)if(null!==(Zt=window.open("","Navigator","width=300,height=500,left=20,top=50"))){var r=function(t,e){var n=document.createElement("div");return n.style.fontFamily="Arial, sans-serif",t.slides.forEach(function(t,r){var i=function(t,e){var n=document.createElement("div");return n.style.marginBottom="8px",n.style.padding="8px",n.style.backgroundColor="#eceed7",n.style.borderRadius="4px",n.style.userSelect="none",n.innerHTML="".concat(e+1,": ")+(t.title.length>0?t.title:"Slide ".concat(e+1)),n}(t,r);i.style.cursor="pointer",i.addEventListener("click",function(t){t.shiftKey&&(null==Zt||Zt.close()),e(r)}),n.appendChild(i)}),n}(e,n);Zt.document.title=e.title,Zt.document.body.appendChild(r),Zt.addEventListener("keyup",function(t){"Escape"!==t.key&&"`"!==t.key||(null==Zt||Zt.close(),Zt=null)})}else console.error("Failed to open navigator window.");else Zt.focus()}({presentation:e,onNavigateToSlide:function(t){return u.renderSlide(t)}})}}),n.replaceChildren(),s.appendChild(r),s.appendChild(i),n.appendChild(s),h=function(t,e){var n,r=localStorage.getItem(ae);if(null===r)return null;if(null===e)return localStorage.removeItem(ae),null;try{n=JSON.parse(r)}catch(t){return console.error("Failed to parse presentation state from localStorage:",t),localStorage.removeItem(ae),null}var i=n,o=i.title,a=i.timestamp,s=n,h=s.slideIndex,c=s.buildIndex;if("string"!=typeof o||"number"!=typeof h||"number"!=typeof c||"number"!=typeof a)return localStorage.removeItem(ae),null;if(o!==t.title)return localStorage.removeItem(ae),null;if(Date.now()-a>6e4*e)return localStorage.removeItem(ae),null;h>t.slides.length-1&&(h=t.slides.length-1,c=0);var u=t.slides[h];return void 0===u?(localStorage.removeItem(ae),null):(c>u.animations.length&&(c=u.animations.length),{title:o,slideIndex:h,buildIndex:c})}(e,this.props.cacheDurationMinutes),null!==h?this.renderSlide(h.slideIndex,h.buildIndex):this.renderSlide(0),[2]}var f,p})})},e.prototype.renderSlide=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=this.props,i=r.objectRenderers,o=r.presentation,a=this.state,s=a.canvas,h=a.imageById,c=this.state.slideIndex!==t;this.state.slideIndex=t,this.state.buildIndex=e,null===n&&function(t){var e=t.title,n=t.slideIndex,r=t.buildIndex;localStorage.setItem(ae,JSON.stringify({title:e,slideIndex:n,buildIndex:r,timestamp:Date.now()}))}({title:o.title,slideIndex:t,buildIndex:e});var u=o.slides[t];if(void 0!==u&&null!==s){if(c||0===this.state.mountedExtrasCleanups.length&&u.extras.length>0){for(var l=0,f=this.state.mountedExtrasCleanups;l<f.length;l++)(d=f[l])();this.state.mountedExtrasCleanups=[];for(var p=0,g=u.extras;p<g.length;p++){var d,y=g[p];null!==(d=Ie(this.state.extrasContainer,y))&&this.state.mountedExtrasCleanups.push(d)}}var v=s.getContext("2d");if(null!==v){var x={type:he,context:v};!function(t,e){e.context.clearRect(0,0,t.width,t.height)}(s,x);var w=function(t){var e,n,r=t.slide,i=t.buildIndex,o=t.buildTime,a=new Map;function s(t){a.set(t,t);for(var e=0,n=function(t){return"objects"in t?t.objects.filter(function(t){return"objectType"in t}):[]}(t);e<n.length;e++)s(n[e])}for(var h=0,c=r.objects;h<c.length;h++)s(c[h]);for(var u=null===o?i:i-1,l=0;l<u;l++){var f=null!==(e=r.animations[l])&&void 0!==e?e:null;ie(a,f)}return null!==o&&i>0&&(f=null!==(n=r.animations[i-1])&&void 0!==n?n:null,ie(a,f,o)),a}({slide:u,buildIndex:e,buildTime:n});x.context.fillStyle=Kt(o.backgroundColor),x.context.fillRect(0,0,s.width,s.height);for(var b=0,m=u.objects;b<m.length;b++)M(m[b],1)}}function M(t,e){var n=i[t.objectType],r=w.get(t);void 0!==n&&void 0!==r&&n({ctx:x,imageById:h,object:r,opacity:e,renderObject:M,createPath2D:fe})}},e.prototype.next=function(e){var n=this;void 0===e&&(e=!1);var r=this.props.presentation,i=this.state,o=i.currentAnimationId,a=i.slideIndex,s=i.buildIndex;this.props.element.style.cursor="none",null!==o&&cancelAnimationFrame(o);var h=r.slides[a];if(void 0!==h){var c=h.animations[s];if(void 0===c||e)a+1<r.slides.length&&this.renderSlide(a+1);else{var u=performance.now(),l=function(e){for(var n=0,r=0,i=0,o=Array.isArray(e)?e:[e];i<o.length;i++){var a=o[i];switch(a.type){case t.PAUSE:n+=a.duration;break;case t.ANIMATE:r=Math.max(r,n+a.delay+a.duration),a.block&&(n+=a.delay+a.duration);break;case t.UPDATE:break;default:S(a)}}return r}(c),f=function(t){var e=t-u;e<l?(n.renderSlide(a,s+1,e),n.state.currentAnimationId=requestAnimationFrame(f)):n.renderSlide(a,s+1,null)};this.state.currentAnimationId=requestAnimationFrame(f)}}},e.prototype.previous=function(t){var e;void 0===t&&(t=!1);var n=this.state,r=n.currentAnimationId,i=n.slideIndex,o=n.buildIndex;if(this.props.element.style.cursor="none",null!==r&&cancelAnimationFrame(r),o>0)t?this.renderSlide(i,0):this.renderSlide(i,o-1);else if(i>0){var a=this.props.presentation.slides[i-1],s=t?0:null!==(e=null==a?void 0:a.animations.length)&&void 0!==e?e:0;this.renderSlide(i-1,s)}else this.renderSlide(0,0)},e}();function ze(e){return void 0===e&&(e=1e3),{type:t.PAUSE,isKey:!1,duration:e,shortcut:null}}var Fe=function(){return Fe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Fe.apply(this,arguments)};function De(t){return void 0===t&&(t=null),Fe({objects:[],animations:[],extras:[],isAllKey:!1,isEndKey:!0,isStartKey:!1,shortcut:null,title:""},t)}var Be=function(){return Be=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Be.apply(this,arguments)};function Ge(t,e){return void 0===e&&(e={}),Be(Be({},e),{text:t})}var Ze=function(){return Ze=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ze.apply(this,arguments)};function We(t){return void 0===t&&(t=w.BLACK),Ze(Ze({},t),{alpha:1})}var Xe=n(814);function Ye(t,e,n){void 0===n&&(n=3);var r=(0,Xe.interpolate)(t,e,{maxSegmentLength:n});return{check:function(t){return"string"==typeof t},interpolate:function(t,e,n){return r(n)}}}function He(t){var e=function(e){return t.width*e},n=function(e){return t.height*e};return{scaleX:e,scaleY:n,position:function(t,r){return ve({x:e(t),y:n(r)})}}}function Ue(t){var e=[];if(t.isAllKey){for(var n=0;n<=t.animations.length;n++)e.push(n);return e}return t.isStartKey&&e.push(0),t.animations.forEach(function(t,n){Array.isArray(t)?t.some(function(t){return t.isKey})&&e.push(n+1):t.isKey&&e.push(n+1)}),t.isEndKey&&e[e.length-1]!==t.animations.length&&e.push(t.animations.length),e}})(),r})());