Select Git revision
xlsx-es5.9cf6e834ac2c887c9986.js
Forked from
Shekher Mudgal / COMP90024-project-group21
Source project has a limited visibility.
main-es2015.85c858a5d72e383fe318.js 1.09 MiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+jW5":function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return n}));class n{constructor(t=[],e=r){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:i}=this,n=e[t];for(;t>0;){const r=t-1>>1,s=e[r];if(i(n,s)>=0)break;e[t]=s,t=r}e[t]=n}_down(t){const{data:e,compare:i}=this,n=this.length>>1,r=e[t];for(;t<n;){let n=1+(t<<1),s=e[n];const o=n+1;if(o<this.length&&i(e[o],s)<0&&(n=o,s=e[o]),i(s,r)>=0)break;e[t]=s,t=n}e[t]=r}}function r(t,e){return t<e?-1:t>e?1:0}},0:function(t,e,i){t.exports=i("zUnb")},lcx6:function(t,e,i){"use strict";var n=i("+jW5");function r(t,e,i){var r,a,l,u;e=e||1;for(var h=0;h<t[0].length;h++){var c=t[0][h];(!h||c[0]<r)&&(r=c[0]),(!h||c[1]<a)&&(a=c[1]),(!h||c[0]>l)&&(l=c[0]),(!h||c[1]>u)&&(u=c[1])}var p=l-r,d=u-a,f=Math.min(p,d),g=f/2;if(0===f)return[r,a];for(var m=new n(void 0,s),y=r;y<l;y+=f)for(var v=a;v<u;v+=f)m.push(new o(y+g,v+g,g,t));var b=function(t){for(var e=0,i=0,n=0,r=t[0],s=0,a=r.length,l=a-1;s<a;l=s++){var u=r[s],h=r[l],c=u[0]*h[1]-h[0]*u[1];i+=(u[0]+h[0])*c,n+=(u[1]+h[1])*c,e+=3*c}return 0===e?new o(r[0][0],r[0][1],0,t):new o(i/e,n/e,0,t)}(t),_=new o(r+p/2,a+d/2,0,t);_.d>b.d&&(b=_);for(var x=m.length;m.length;){var w=m.pop();w.d>b.d&&(b=w,i&&console.log("found best %d after %d probes",Math.round(1e4*w.d)/1e4,x)),w.max-b.d<=e||(g=w.h/2,m.push(new o(w.x-g,w.y-g,g,t)),m.push(new o(w.x+g,w.y-g,g,t)),m.push(new o(w.x-g,w.y+g,g,t)),m.push(new o(w.x+g,w.y+g,g,t)),x+=4)}return i&&(console.log("num probes: "+x),console.log("best distance: "+b.d)),[b.x,b.y]}function s(t,e){return e.max-t.max}function o(t,e,i,n){this.x=t,this.y=e,this.h=i,this.d=function(t,e,i){for(var n=!1,r=1/0,s=0;s<i.length;s++)for(var o=i[s],l=0,u=o.length,h=u-1;l<u;h=l++){var c=o[l],p=o[h];c[1]>e!=p[1]>e&&t<(p[0]-c[0])*(e-c[1])/(p[1]-c[1])+c[0]&&(n=!n),r=Math.min(r,a(t,e,c,p))}return(n?1:-1)*Math.sqrt(r)}(t,e,n),this.max=this.d+this.h*Math.SQRT2}function a(t,e,i,n){var r=i[0],s=i[1],o=n[0]-r,a=n[1]-s;if(0!==o||0!==a){var l=((t-r)*o+(e-s)*a)/(o*o+a*a);l>1?(r=n[0],s=n[1]):l>0&&(r+=o*l,s+=a*l)}return(o=t-r)*o+(a=e-s)*a}n.default&&(n=n.default),t.exports=r,t.exports.default=r},zUnb:function(t,e,i){"use strict";i.r(e);var n={};function r(t){return"function"==typeof t}i.r(n),i.d(n,"Mercator",(function(){return tA})),i.d(n,"Miller",(function(){return fA})),i.d(n,"Eckert6",(function(){return mA})),i.d(n,"Orthographic",(function(){return bA})),i.d(n,"Stereographic",(function(){return xA})),i.d(n,"Albers",(function(){return SA})),i.d(n,"AlbersUsa",(function(){return OA})),i.d(n,"NaturalEarth1",(function(){return EA})),i.d(n,"AzimuthalEqualArea",(function(){return IA})),i.d(n,"EqualEarth",(function(){return RA})),i.d(n,"Projection",(function(){return EF}));let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function a(t){setTimeout(()=>{throw t},0)}const l={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;a(t)},complete(){}},u=Array.isArray||(t=>t&&"number"==typeof t.length);function h(t){return null!==t&&"object"==typeof t}const c=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class p{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_unsubscribe:i,_subscriptions:n}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof p)e.remove(this);else if(null!==e)for(let r=0;r<e.length;++r){e[r].remove(this)}if(r(i))try{i.call(this)}catch(s){t=s instanceof c?f(s.errors):[s]}if(u(n)){let e=-1,i=n.length;for(;++e<i;){const i=n[e];if(h(i))try{i.unsubscribe()}catch(s){t=t||[],s instanceof c?t=t.concat(f(s.errors)):t.push(s)}}}if(t)throw new c(t)}add(t){let e=t;if(!t)return p.EMPTY;switch(typeof t){case"function":e=new p(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof p)){const t=e;e=new p,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof p){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const n=this._subscriptions;return null===n?this._subscriptions=[e]:n.push(e),e}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var d;function f(t){return t.reduce((t,e)=>t.concat(e instanceof c?e.errors:e),[])}p.EMPTY=((d=new p).closed=!0,d);const g="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class m extends p{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!t){this.destination=l;break}if("object"==typeof t){t instanceof m?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new y(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new y(this,t,e,i)}}[g](){return this}static create(t,e,i){const n=new m(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class y extends m{constructor(t,e,i,n){let s;super(),this._parentSubscriber=t;let o=this;r(e)?s=e:e&&(s=e.next,i=e.error,n=e.complete,e!==l&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=n}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=o;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):a(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;a(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw i;a(i)}}__tryOrSetError(t,e,i){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(a(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const v="function"==typeof Symbol&&Symbol.observable||"@@observable";function b(t){return t}function _(...t){return x(t)}function x(t){return 0===t.length?b:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}class w{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const e=new w;return e.source=this,e.operator=t,e}subscribe(t,e,i){const{operator:n}=this,r=function(t,e,i){if(t){if(t instanceof m)return t;if(t[g])return t[g]()}return t||e||i?new m(t,e,i):new m(l)}(t,e,i);if(n?r.add(n.call(r,this.source)):r.add(this.source||o.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),o.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof m?i:null}return!0}(t)?console.warn(e):t.error(e)}}forEach(t,e){return new(e=P(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(r){i(r),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[v](){return this}pipe(...t){return 0===t.length?this:x(t)(this)}toPromise(t){return new(t=P(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}function P(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}w.create=t=>new w(t);const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class S extends p{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class O extends m{constructor(t){super(t),this.destination=t}}class D extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[g](){return new O(this)}lift(t){const e=new E(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let r=0;r<i;r++)n[r].next(t)}}error(t){if(this.closed)throw new C;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,i=e.length,n=e.slice();for(let r=0;r<i;r++)n[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new C;this.isStopped=!0;const{observers:t}=this,e=t.length,i=t.slice();for(let n=0;n<e;n++)i[n].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new C;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new C;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new S(this,t))}asObservable(){const t=new w;return t.source=this,t}}D.create=(t,e)=>new E(t,e);class E extends D{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):p.EMPTY}}function T(t){return t&&"function"==typeof t.schedule}class k extends m{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const I=t=>e=>{for(let i=0,n=t.length;i<n&&!e.closed;i++)e.next(t[i]);e.complete()};const M="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",F=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function A(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const j=t=>{if(t&&"function"==typeof t[v])return n=t,t=>{const e=n[v]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(F(t))return I(t);if(A(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,a),t);if(t&&"function"==typeof t[M])return e=t,t=>{const i=e[M]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=h(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var e,i,n};function L(t,e,i,n,r=new k(t,i,n)){if(!r.closed)return e instanceof w?e.subscribe(r):j(e)(r)}class V extends m{notifyNext(t,e,i,n,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function R(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new N(t,e))}}class N{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new B(t,this.project,this.thisArg))}}class B extends m{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function H(t,e){return new w(i=>{const n=new p;let r=0;return n.add(e.schedule((function(){r!==t.length?(i.next(t[r++]),i.closed||n.add(this.schedule())):i.complete()}))),n})}function z(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[v]}(t))return function(t,e){return new w(i=>{const n=new p;return n.add(e.schedule(()=>{const r=t[v]();n.add(r.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(A(t))return function(t,e){return new w(i=>{const n=new p;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(F(t))return H(t,e);if(function(t){return t&&"function"==typeof t[M]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new w(i=>{const n=new p;let r;return n.add(()=>{r&&"function"==typeof r.return&&r.return()}),n.add(e.schedule(()=>{r=t[M](),n.add(e.schedule((function(){if(i.closed)return;let t,e;try{const i=r.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())})))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function U(t,e){return e?z(t,e):t instanceof w?t:new w(j(t))}function W(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(W((i,n)=>U(t(i,n)).pipe(R((t,r)=>e(i,t,n,r))),i)):("number"==typeof e&&(i=e),e=>e.lift(new G(t,i)))}class G{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends V{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(e,t,i)}_innerSub(t,e,i){const n=new k(this,e,i),r=this.destination;r.add(n);const s=L(this,t,void 0,void 0,n);s!==n&&r.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,i,n,r){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(t=Number.POSITIVE_INFINITY){return W(b,t)}function Y(t,e){return e?H(t,e):new w(I(t))}function q(){return function(t){return t.lift(new X(t))}}class X{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new Z(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r}}class Z extends m{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class Q extends w{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new p,t.add(this.source.subscribe(new tt(this.getSubject(),this))),t.closed&&(this._connection=null,t=p.EMPTY)),t}refCount(){return q()(this)}}const J=(()=>{const t=Q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class tt extends O{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class et{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,n=this.subjectFactory(),r=i(n).subscribe(t);return r.add(e.subscribe(n)),r}}function it(){return new D}function nt(){return t=>{return q()((e=it,function(t){let n;if(n="function"==typeof e?e:function(){return e},"function"==typeof i)return t.lift(new et(n,i));const r=Object.create(t,J);return r.source=t,r.subjectFactory=n,r})(t));var e,i}}function rt(t){return{toString:t}.toString()}const st="__annotations__",ot="__parameters__",at="__prop__metadata__";function lt(t,e,i,n,r){return rt(()=>{const s=ut(e);function o(...t){if(this instanceof o)return s.call(this,...t),this;const e=new o(...t);return function(i){return r&&r(i,...t),(i.hasOwnProperty(st)?i[st]:Object.defineProperty(i,st,{value:[]})[st]).push(e),n&&n(i),i}}return i&&(o.prototype=Object.create(i.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function ut(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}function ht(t,e,i){return rt(()=>{const n=ut(e);function r(...t){if(this instanceof r)return n.apply(this,t),this;const e=new r(...t);return i.annotation=e,i;function i(t,i,n){const r=t.hasOwnProperty(ot)?t[ot]:Object.defineProperty(t,ot,{value:[]})[ot];for(;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(e),t}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function ct(t,e,i,n){return rt(()=>{const r=ut(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return function(i,r){const s=i.constructor,o=s.hasOwnProperty(at)?s[at]:Object.defineProperty(s,at,{value:{}})[at];o[r]=o.hasOwnProperty(r)&&o[r]||[],o[r].unshift(e),n&&n(i,r,...t)}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const pt=ht("Inject",t=>({token:t}));const dt=ht("Optional");const ft=ht("Self");const gt=ht("SkipSelf");const mt=ht("Host");const yt=ht("Attribute",t=>({attributeName:t}));var vt;function bt(t){for(let e in t)if(t[e]===bt)return e;throw Error("Could not find renamed property on target object.")}function _t(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function xt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}!function(t){t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional"}(vt||(vt={}));function wt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function Pt(t){return Ct(t,t[Ot])||Ct(t,t[Tt])}function Ct(t,e){return e&&e.token===t?e:null}function St(t){return t&&(t.hasOwnProperty(Dt)||t.hasOwnProperty(kt))?t[Dt]:null}const Ot=bt({"\u0275prov":bt}),Dt=bt({"\u0275inj":bt}),Et=bt({"\u0275provFallback":bt}),Tt=bt({ngInjectableDef:bt}),kt=bt({ngInjectorDef:bt});function It(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(It).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function Mt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ft=bt({__forward_ref__:bt});function At(t){return t.__forward_ref__=At,t.toString=function(){return It(this())},t}function jt(t){return Lt(t)?t():t}function Lt(t){return"function"==typeof t&&t.hasOwnProperty(Ft)&&t.__forward_ref__===At}const Vt="undefined"!=typeof globalThis&&globalThis,Rt="undefined"!=typeof window&&window,Nt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt="undefined"!=typeof global&&global,Ht=Vt||Bt||Rt||Nt;var zt,Ut,Wt;function Gt(){const t=Ht.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}!function(t){t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.ChangeDetectorRef=2]="ChangeDetectorRef",t[t.Invalid=3]="Invalid"}(zt||(zt={})),function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"}(Ut||(Ut={})),function(t){t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Wt||(Wt={}));const $t=bt({"\u0275cmp":bt}),Kt=bt({"\u0275dir":bt}),Yt=bt({"\u0275pipe":bt}),qt=bt({"\u0275mod":bt}),Xt=bt({"\u0275loc":bt}),Zt=bt({"\u0275fac":bt}),Qt=bt({__NG_ELEMENT_ID__:bt});class Jt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=xt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const te=new Jt("INJECTOR",-1),ee={},ie=/\n/gm,ne=bt({provide:String,useValue:bt});let re,se=void 0;function oe(t){const e=se;return se=t,e}function ae(t){const e=re;return re=t,e}function le(t,e=vt.Default){if(void 0===se)throw new Error("inject() must be called from an injection context");return null===se?ce(t,void 0,e):se.get(t,e&vt.Optional?null:void 0,e)}function ue(t,e=vt.Default){return(re||le)(jt(t),e)}function he(t){throw new Error("invalid")}function ce(t,e,i){const n=Pt(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&vt.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${It(t)}]`)}function pe(t){const e=[];for(let i=0;i<t.length;i++){const n=jt(t[i]);if(Array.isArray(n)){if(0===n.length)throw new Error("Arguments array must have arguments.");let t=void 0,i=vt.Default;for(let e=0;e<n.length;e++){const r=n[e];r instanceof dt||"Optional"===r.ngMetadataName||r===dt?i|=vt.Optional:r instanceof gt||"SkipSelf"===r.ngMetadataName||r===gt?i|=vt.SkipSelf:r instanceof ft||"Self"===r.ngMetadataName||r===ft?i|=vt.Self:t=r instanceof pt||r===pt?r.token:r}e.push(ue(t,i))}else e.push(ue(n))}return e}class de{get(t,e=ee){if(e===ee){const e=new Error(`NullInjectorError: No provider for ${It(t)}!`);throw e.name="NullInjectorError",e}return e}}function fe(t,e,i,n){const r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=ge("\n"+t.message,r,i,n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}function ge(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=It(e);if(Array.isArray(e))r=e.map(It).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):It(n)))}r=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(ie,"\n ")}`}const me={"\u0275\u0275defineInjectable":xt,"\u0275\u0275defineInjector":wt,"\u0275\u0275inject":ue,"\u0275\u0275getFactoryOf":function t(e){const i=e;if(Lt(e))return()=>{const e=t(jt(i));return e?e():null};const n=Pt(i)||St(i);if(!n||void 0===n.factory)return null;return n.factory},"\u0275\u0275invalidFactoryDep":he};class ye{}class ve{}function be(t,e){null==t&&_e(e,t,null,"!=")}function _e(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${i} ${n} ${e} <=Actual]`))}function xe(t,e){for(let i=0;i<t.length;i++)e.push(t[i])}function we(t,e){void 0===e&&(e=t);for(let i=0;i<t.length;i++){let n=t[i];Array.isArray(n)?(e===t&&(e=t.slice(0,i)),we(n,e)):e!==t&&e.push(n)}return e}function Pe(t,e){t.forEach(t=>Array.isArray(t)?Pe(t,e):e(t))}function Ce(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Oe(t,e){const i=[];for(let n=0;n<t;n++)i.push(e);return i}function De(t,e,i){let n=Te(t,e);return n>=0?t[1|n]=i:(n=~n,function(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;){const e=r-2;t[r]=t[e],r--}t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function Ee(t,e){const i=Te(t,e);if(i>=0)return t[1|i]}function Te(t,e){return ke(t,e,1)}function ke(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){const s=n+(r-n>>1),o=t[s<<i];if(e===o)return s<<i;o>e?r=s:n=s+1}return~(r<<i)}const Ie={OnPush:0,Default:1};Ie[Ie.OnPush]="OnPush",Ie[Ie.Default]="Default";const Me={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};Me[Me.CheckOnce]="CheckOnce",Me[Me.Checked]="Checked",Me[Me.CheckAlways]="CheckAlways",Me[Me.Detached]="Detached",Me[Me.Errored]="Errored",Me[Me.Destroyed]="Destroyed";const Fe={Emulated:0,Native:1,None:2,ShadowDom:3};Fe[Fe.Emulated]="Emulated",Fe[Fe.Native]="Native",Fe[Fe.None]="None",Fe[Fe.ShadowDom]="ShadowDom";const Ae={},je=[];let Le=0;function Ve(t){return rt(()=>{const e=t.type,i=e.prototype,n={},r={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:i.ngOnInit||null,doCheck:i.ngDoCheck||null,afterContentInit:i.ngAfterContentInit||null,afterContentChecked:i.ngAfterContentChecked||null,afterViewInit:i.ngAfterViewInit||null,afterViewChecked:i.ngAfterViewChecked||null,onDestroy:i.ngOnDestroy||null,onPush:t.changeDetection===Ie.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||je,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Fe.Emulated,id:"c",styles:t.styles||je,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,o=t.features,a=t.pipes;return r.id+=Le++,r.inputs=We(t.inputs,n),r.outputs=We(t.outputs),o&&o.forEach(t=>t(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(Ne):null,r.pipeDefs=a?()=>("function"==typeof a?a():a).map(Be):null,r})}function Re(t,e,i){const n=t.\u0275cmp;n.directiveDefs=()=>e.map(Ne),n.pipeDefs=()=>i.map(Be)}function Ne(t){const e=Ke(t)||Ye(t);return e}function Be(t){const e=qe(t);return e}const He={};function ze(t){const e={type:t.type,bootstrap:t.bootstrap||je,declarations:t.declarations||je,imports:t.imports||je,exports:t.exports||je,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&rt(()=>{He[t.id]=t.type}),e}function Ue(t,e){return rt(()=>{const i=Ze(t,!0);i.declarations=e.declarations||je,i.imports=e.imports||je,i.exports=e.exports||je})}function We(t,e){if(null==t)return Ae;const i={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),i[r]=n,e&&(e[r]=s)}return i}const Ge=Ve;function $e(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ke(t){return t[$t]||null}function Ye(t){return t[Kt]||null}function qe(t){return t[Yt]||null}function Xe(t,e){const i=t.hasOwnProperty(Zt);return i?t[Zt]:null}function Ze(t,e){const i=t[qt]||null;if(!i&&!0===e)throw new Error(`Type ${It(t)} does not have '\u0275mod' property.`);return i}function Qe(t){return Array.isArray(t)&&"object"==typeof t[1]}function Je(t){return Array.isArray(t)&&!0===t[1]}function ti(t){return 0!=(8&t.flags)}function ei(t){return 2==(2&t.flags)}function ii(t){return 1==(1&t.flags)}function ni(t){return null!==t.template}function ri(t){return 0!=(512&t[2])}let si=void 0;function oi(){return void 0!==si?si:"undefined"!=typeof document?document:void 0}const ai={Important:1,DashCase:2};function li(t){return!!t.listen}ai[ai.Important]="Important",ai[ai.DashCase]="DashCase";const ui={createRenderer:(t,e)=>oi()};function hi(t){for(;Array.isArray(t);)t=t[0];return t}function ci(t,e){return hi(e[t+20])}function pi(t,e){const i=hi(e[t.index]);return i}function di(t,e){return t.data[e+20]}function fi(t,e){return t[e+20]}function gi(t,e){const i=e[t];return Qe(i)?i:i[0]}function mi(t){return t.__ngContext__||null}function yi(t){const e=mi(t);return e?Array.isArray(e)?e:e.lView:null}function vi(t){return 4==(4&t[2])}function bi(t){return 128==(128&t[2])}function _i(t,e){return null===t||null==e?null:t[e]}function xi(t){t[18]=0}function wi(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Pi={lFrame:qi(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ci(){return Pi.bindingsEnabled}function Si(){Pi.bindingsEnabled=!0}function Oi(){Pi.bindingsEnabled=!1}function Di(){return Pi.lFrame.lView}function Ei(){return Pi.lFrame.tView}function Ti(t){Pi.lFrame.contextLView=t}function ki(){return Pi.lFrame.previousOrParentTNode}function Ii(t,e){Pi.lFrame.previousOrParentTNode=t,Pi.lFrame.isParent=e}function Mi(){return Pi.lFrame.isParent}function Fi(){Pi.lFrame.isParent=!1}function Ai(){return Pi.checkNoChangesMode}function ji(t){Pi.checkNoChangesMode=t}function Li(){const t=Pi.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Vi(){return Pi.lFrame.bindingIndex}function Ri(t){return Pi.lFrame.bindingIndex=t}function Ni(){return Pi.lFrame.bindingIndex++}function Bi(t){const e=Pi.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Hi(t,e){const i=Pi.lFrame;i.bindingIndex=i.bindingRootIndex=t,zi(e)}function zi(t){Pi.lFrame.currentDirectiveIndex=t}function Ui(t){const e=Pi.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Wi(){return Pi.lFrame.currentQueryIndex}function Gi(t){Pi.lFrame.currentQueryIndex=t}function $i(t,e){const i=Yi();Pi.lFrame=i,i.previousOrParentTNode=e,i.lView=t}function Ki(t,e){const i=Yi();const n=t[1];Pi.lFrame=i,i.previousOrParentTNode=e,i.lView=t,i.tView=n,i.contextLView=t,i.bindingIndex=n.bindingStartIndex}function Yi(){const t=Pi.lFrame,e=null===t?null:t.child;return null===e?qi(t):e}function qi(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Xi(){const t=Pi.lFrame;return Pi.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Zi=Xi;function Qi(){const t=Xi();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ji(t){return(Pi.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Pi.lFrame.contextLView))[8]}function tn(){return Pi.lFrame.selectedIndex}function en(t){Pi.lFrame.selectedIndex=t}function nn(){const t=Pi.lFrame;return di(t.tView,t.selectedIndex)}function rn(){Pi.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function sn(){Pi.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function on(){Pi.lFrame.currentNamespace=null}function an(t){Pi.lFrame.currentSanitizer=t}function ln(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){const e=t.data[i];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-i,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(i,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(i,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-i,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(i,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(i,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,e.onDestroy)}}function un(t,e,i){pn(t,e,3,i)}function hn(t,e,i,n){(3&t[2])===i&&pn(t,e,i,n)}function cn(t,e){let i=t[2];(3&i)===e&&(i&=2047,i+=1,t[2]=i)}function pn(t,e,i,n){const r=null!=n?n:-1;let s=0;for(let o=void 0!==n?65535&t[18]:0;o<e.length;o++){if("number"==typeof e[o+1]){if(s=e[o],null!=n&&s>=n)break}else{e[o]<0&&(t[18]+=65536),(s<r||-1==r)&&(dn(t,i,e,o),t[18]=(4294901760&t[18])+o+2),o++}}}function dn(t,e,i,n){const r=i[n]<0,s=i[n+1],o=t[r?-i[n]:i[n]];if(r){t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,s.call(o))}else s.call(o)}class fn{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function gn(t,e,i){const n=li(t);let r=0;for(;r<i.length;){const s=i[r];if("number"==typeof s){if(0!==s)break;r++;const o=i[r++],a=i[r++],l=i[r++];n?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=i[++r];yn(o)?n&&t.setProperty(e,o,a):n?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function mn(t){return 3===t||4===t||6===t}function yn(t){return 64===t.charCodeAt(0)}function vn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r?i=r:0===i||bn(t,i,r,null,-1===i||2===i?e[++n]:null)}}return t}function bn(t,e,i,n,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const i=t[s++];if("number"==typeof i){if(i===e){o=-1;break}if(i>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===i){if(null===n)return void(null!==r&&(t[s+1]=r));if(n===t[s+1])return void(t[s+2]=r)}s++,null!==n&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,i),null!==n&&t.splice(s++,0,n),null!==r&&t.splice(s++,0,r)}function _n(t){return-1!==t}function xn(t){return 32767&t}function wn(t){return t>>16}function Pn(t,e){let i=wn(t),n=e;for(;i>0;)n=n[15],i--;return n}function Cn(t){return"string"==typeof t?t:null==t?"":""+t}function Sn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Cn(t)}const On=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ht);function Dn(t){return{name:"window",target:t.ownerDocument.defaultView}}function En(t){return{name:"document",target:t.ownerDocument}}function Tn(t){return{name:"body",target:t.ownerDocument.body}}function kn(t){return t instanceof Function?t():t}let In=!0;function Mn(t){const e=In;return In=t,e}let Fn=0;function An(t,e){const i=Ln(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,jn(n.data,t),jn(e,null),jn(n.blueprint,null));const r=Vn(t,e),s=t.injectorIndex;if(_n(r)){const t=xn(r),i=Pn(r,e),n=i[1].data;for(let r=0;r<8;r++)e[s+r]=i[t+r]|n[t+r]}return e[s+8]=r,s}function jn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ln(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Vn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=e[6],n=1;for(;i&&-1===i.injectorIndex;)i=(e=e[15])?e[6]:null,n++;return i?i.injectorIndex|n<<16:-1}function Rn(t,e,i){!function(t,e,i){let n="string"!=typeof i?i[Qt]:i.charCodeAt(0)||0;null==n&&(n=i[Qt]=Fn++);const r=255&n,s=1<<r,o=128&r,a=64&r,l=32&r,u=e.data;o?a?l?u[t+7]|=s:u[t+6]|=s:l?u[t+5]|=s:u[t+4]|=s:a?l?u[t+3]|=s:u[t+2]|=s:l?u[t+1]|=s:u[t]|=s}(t,e,i)}function Nn(t,e,i,n=vt.Default,r){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[Qt];return"number"==typeof e&&e>0?255&e:e}(i);if("function"==typeof r){$i(e,t);try{const t=r();if(null!=t||n&vt.Optional)return t;throw new Error(`No provider for ${Sn(i)}!`)}finally{Zi()}}else if("number"==typeof r){if(-1===r)return new $n(t,e);let s=null,o=Ln(t,e),a=-1,l=n&vt.Host?e[16][6]:null;for((-1===o||n&vt.SkipSelf)&&(a=-1===o?Vn(t,e):e[o+8],Gn(n,!1)?(s=e[1],o=xn(a),e=Pn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(Wn(r,o,t.data)){const t=Hn(o,e,i,s,n,l);if(t!==Bn)return t}Gn(n,e[1].data[o+8]===l)&&Wn(r,o,e)?(s=t,o=xn(a),e=Pn(a,e)):o=-1}}}if(n&vt.Optional&&void 0===r&&(r=null),0==(n&(vt.Self|vt.Host))){const t=e[9],s=ae(void 0);try{return t?t.get(i,r,n&vt.Optional):ce(i,r,n&vt.Optional)}finally{ae(s)}}if(n&vt.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${Sn(i)}]`)}const Bn={};function Hn(t,e,i,n,r,s){const o=e[1],a=o.data[t+8],l=zn(a,o,i,null==n?ei(a)&&In:n!=o&&3===a.type,r&vt.Host&&s===a);return null!==l?Un(e,o,l,a):Bn}function zn(t,e,i,n,r){const s=t.providerIndexes,o=e.data,a=65535&s,l=t.directiveStart,u=t.directiveEnd,h=s>>16,c=r?a+h:u;for(let p=n?a:a+h;p<c;p++){const t=o[p];if(p<l&&i===t||p>=l&&t.type===i)return p}if(r){const t=o[l];if(t&&ni(t)&&t.type===i)return l}return null}function Un(t,e,i,n){let r=t[i];const s=e.data;if(r instanceof fn){const o=r;if(o.resolving)throw new Error(`Circular dep for ${Sn(s[i])}`);const a=Mn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=ae(o.injectImpl)),$i(t,n);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{onChanges:n,onInit:r,doCheck:s}=e;n&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)),r&&(i.preOrderHooks||(i.preOrderHooks=[])).push(-t,r),s&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s))}(i,s[i],e)}finally{o.injectImpl&&ae(l),Mn(a),o.resolving=!1,Zi()}}return r}function Wn(t,e,i){const n=1<<t,r=64&t,s=32&t;let o;return o=128&t?r?s?i[e+7]:i[e+6]:s?i[e+5]:i[e+4]:r?s?i[e+3]:i[e+2]:s?i[e+1]:i[e],!!(o&n)}function Gn(t,e){return!(t&vt.Self||t&vt.Host&&e)}class $n{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Nn(this._tNode,this._lView,t,void 0,e)}}function Kn(t){const e=t;if(Lt(t))return()=>{const t=Kn(jt(e));return t?t():null};let i=Xe(e);if(null===i){const t=St(e);i=t&&t.factory}return i||null}function Yn(t){return rt(()=>{const e=Object.getPrototypeOf(t.prototype).constructor,i=e[Zt]||Kn(e);return null!==i?i:t=>new t})}function qn(t){return t.ngDebugContext}function Xn(t){return t.ngOriginalError}function Zn(t,...e){t.error(...e)}class Qn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||Zn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?qn(t)?qn(t):this._findContext(Xn(t)):null}_findOriginalError(t){let e=Xn(t);for(;e&&Xn(e);)e=Xn(e);return e}}class Jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class tr extends Jn{getTypeName(){return"HTML"}}class er extends Jn{getTypeName(){return"Style"}}class ir extends Jn{getTypeName(){return"Script"}}class nr extends Jn{getTypeName(){return"URL"}}class rr extends Jn{getTypeName(){return"ResourceURL"}}function sr(t){return t instanceof Jn?t.changingThisBreaksApplicationSecurity:t}function or(t,e){const i=ar(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see http://g.co/ng/security#xss)`)}return i===e}function ar(t){return t instanceof Jn&&t.getTypeName()||null}let lr=!0,ur=!1;function hr(){return ur=!0,lr}class cr{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement=this.getInertBodyElement_DOMParser:this.getInertBodyElement=this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(n){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const i=e.response.body;return i.removeChild(i.firstChild),i}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const i=this.inertDocument.createElement("body");return i.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0<n;n--){const i=e.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.removeAttribute(i)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const pr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,dr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function fr(t){return(t=String(t)).match(pr)||t.match(dr)?t:(hr()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function gr(t){return(t=String(t)).split(",").map(t=>fr(t.trim())).join(", ")}function mr(t){const e={};for(const i of t.split(","))e[i]=!0;return e}function yr(...t){const e={};for(const i of t)for(const t in i)i.hasOwnProperty(t)&&(e[t]=!0);return e}const vr=mr("area,br,col,hr,img,wbr"),br=mr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_r=mr("rp,rt"),xr=yr(_r,br),wr=yr(br,mr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Pr=yr(_r,mr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Cr=yr(vr,wr,Pr,xr),Sr=mr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Or=mr("srcset"),Dr=mr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Er=mr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Tr=yr(Sr,Or,Dr,Er),kr=mr("script,style,template");class Ir{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Cr.hasOwnProperty(e))return this.sanitizedSomething=!0,!kr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let n=0;n<i.length;n++){const t=i.item(n),e=t.name,r=e.toLowerCase();if(!Tr.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let s=t.value;Sr[r]&&(s=fr(s)),Or[r]&&(s=gr(s)),this.buf.push(" ",e,'="',Ar(s),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Cr.hasOwnProperty(e)&&!vr.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ar(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Mr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fr=/([^\#-~ |!])/g;function Ar(t){return t.replace(/&/g,"&").replace(Mr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Fr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let jr;function Lr(t,e){let i=null;try{jr=jr||new cr(t);let n=e?String(e):"";i=jr.getInertBodyElement(n);let r=5,s=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=i.innerHTML,i=jr.getInertBodyElement(n)}while(n!==s);const o=new Ir,a=o.sanitizeChildren(Vr(i)||i);return hr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(i){const t=Vr(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Vr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Rr={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};Rr[Rr.NONE]="NONE",Rr[Rr.HTML]="HTML",Rr[Rr.STYLE]="STYLE",Rr[Rr.SCRIPT]="SCRIPT",Rr[Rr.URL]="URL",Rr[Rr.RESOURCE_URL]="RESOURCE_URL";const Nr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Br=/^url\(([^)]+)\)$/;function Hr(t){if(!(t=String(t).trim()))return"";const e=t.match(Br);return e&&fr(e[1])===e[1]||t.match(Nr)&&function(t){let e=!0,i=!0;for(let n=0;n<t.length;n++){const r=t.charAt(n);"'"===r&&i?e=!e:'"'===r&&e&&(i=!i)}return e&&i}(t)?t:(hr()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}function zr(t){const e=Xr();return e?e.sanitize(Rr.HTML,t)||"":or(t,"HTML")?sr(t):Lr(oi(),Cn(t))}function Ur(t){const e=Xr();return e?e.sanitize(Rr.STYLE,t)||"":or(t,"Style")?sr(t):Hr(Cn(t))}function Wr(t){const e=Xr();return e?e.sanitize(Rr.URL,t)||"":or(t,"URL")?sr(t):fr(Cn(t))}function Gr(t){const e=Xr();if(e)return e.sanitize(Rr.RESOURCE_URL,t)||"";if(or(t,"ResourceURL"))return sr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function $r(t){const e=Xr();if(e)return e.sanitize(Rr.SCRIPT,t)||"";if(or(t,"Script"))return sr(t);throw new Error("unsafe value used in a script context")}function Kr(t,e,i){return function(t,e){return"src"===e&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===e&&("base"===t||"link"===t)?Gr:Wr}(e,i)(t)}const Yr=function(t,e,i){if(void 0===e&&void 0===i)return Ur(t);let n=!0;return 1&(i=i||3)&&(n=qr(t)),2&i?n?Ur(e):sr(e):n};function qr(t){return"background-image"===t||"backgroundImage"===t||"background"===t||"border-image"===t||"borderImage"===t||"border-image-source"===t||"borderImageSource"===t||"filter"===t||"list-style"===t||"listStyle"===t||"list-style-image"===t||"listStyleImage"===t||"clip-path"===t||"clipPath"===t}function Xr(){const t=Di();return t&&t[12]}function Zr(t,e){t.__ngContext__=e}function Qr(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function Jr(){throw new Error("Cannot mix multi providers and regular providers")}function ts(t,e,i){let n=t.length;for(;;){const r=t.indexOf(e,i);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const i=e.length;if(r+i===n||t.charCodeAt(r+i)<=32)return r}i=r+1}}function es(t,e,i){let n=0;for(;n<t.length;){let r=t[n++];if(i&&"class"===r){if(r=t[n],-1!==ts(r.toLowerCase(),e,0))return!0}else if(1===r){for(;n<t.length&&"string"==typeof(r=t[n++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function is(t){return 0===t.type&&"ng-template"!==t.tagName}function ns(t,e,i){return e===(0!==t.type||i?t.tagName:"ng-template")}function rs(t,e,i){let n=4;const r=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++){if(mn(t[e]))return e}return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&n){if(n=2|1&n,""!==l&&!ns(t,l,i)||""===l&&1===e.length){if(ss(n))return!1;o=!0}}else{const u=8&n?l:e[++a];if(8&n&&null!==t.attrs){if(!es(t.attrs,u,i)){if(ss(n))return!1;o=!0}continue}const h=os(8&n?"class":l,r,is(t),i);if(-1===h){if(ss(n))return!1;o=!0;continue}if(""!==u){let t;t=h>s?"":r[h+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==ts(e,u,0)||2&n&&u!==t){if(ss(n))return!1;o=!0}}}}else{if(!o&&!ss(n)&&!ss(l))return!1;if(o&&ss(l))continue;o=!1,n=l|1&n}}return ss(n)||o}function ss(t){return 0==(1&t)}function os(t,e,i,n){if(null===e)return-1;let r=0;if(n||!i){let i=!1;for(;r<e.length;){const n=e[r];if(n===t)return r;if(3===n||6===n)i=!0;else{if(1===n||2===n){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===n)break;if(0===n){r+=4;continue}}r+=i?1:2}return-1}return function(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){const n=t[i];if("number"==typeof n)return-1;if(n===e)return i;i++}return-1}(e,t)}function as(t,e,i=!1){for(let n=0;n<e.length;n++)if(rs(t,e[n],i))return!0;return!1}function ls(t,e){t:for(let i=0;i<e.length;i++){const n=e[i];if(t.length===n.length){for(let e=0;e<t.length;e++)if(t[e]!==n[e])continue t;return!0}}return!1}function us(t,e){return t?":not("+e.trim()+")":e}function hs(t){let e=t[0],i=1,n=2,r="",s=!1;for(;i<t.length;){let o=t[i];if("string"==typeof o)if(2&n){const e=t[++i];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&n?r+="."+o:4&n&&(r+=" "+o);else""===r||ss(o)||(e+=us(s,r),r=""),n=o,s=s||!ss(n);i++}return""!==r&&(e+=us(s,r)),e}const cs={};function ps(t){const e=t[3];return Je(e)?e[3]:e}function ds(t){return gs(t[13])}function fs(t){return gs(t[4])}function gs(t){for(;null!==t&&!Je(t);)t=t[4];return t}function ms(t){vs(Ei(),Di(),tn()+t,Ai())}function ys(t){vs(Ei(),Di(),t,Ai())}function vs(t,e,i,n){if(!n){if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&un(e,n,i)}else{const n=t.preOrderHooks;null!==n&&hn(e,n,0,i)}}en(i)}const bs={marker:"element"},_s={marker:"comment"};function xs(t,e){return t<<17|e<<2}function ws(t){return t>>17&32767}function Ps(t){return 2==(2&t)}function Cs(t){return 2|t}function Ss(t){return(131068&t)>>2}function Os(t,e){return-131069&t|e<<2}function Ds(t){return 1==(1&t)}function Es(t){return 1|t}const Ts=Promise.resolve(null);function ks(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n<i.length;n+=2){const r=i[n],s=i[n+1];if(-1!==s){const i=t.data[s];Gi(r),i.contentQueries(2,e[s],s)}}}function Is(t,e,i){return li(e)?e.createElement(t,i):null===i?e.createElement(t):e.createElementNS(i,t)}function Ms(t,e,i,n,r,s,o,a,l,u){const h=e.blueprint.slice();return h[0]=r,h[2]=140|n,xi(h),h[3]=h[15]=t,h[8]=i,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=u||t&&t[9]||null,h[6]=s,h[16]=2==e.type?t[16]:h,h}function Fs(t,e,i,n,r,s){const o=i+20,a=t.data[o]||function(t,e,i,n,r,s){const o=ki(),a=Mi(),l=a?o:o&&o.parent,u=l&&l!==e?l:null,h=t.data[i]=Ws(t,u,n,i,r,s);null===t.firstChild&&(t.firstChild=h);o&&(!a||null!=o.child||null===h.parent&&2!==o.type?a||(o.next=h):o.child=h);return h}(t,e,o,n,r,s);return Ii(a,!0),a}function As(t,e,i){Ki(e,e[6]);try{const n=t.viewQuery;null!==n&&go(1,n,i);const r=t.template;null!==r&&Vs(t,e,r,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&ks(t,e),t.staticViewQueries&&go(2,t.viewQuery,i);const s=t.components;null!==s&&function(t,e){for(let i=0;i<e.length;i++)lo(t,e[i])}(e,s)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),n}finally{e[2]&=-5,Qi()}}function js(t,e,i,n){const r=e[2];if(256==(256&r))return;Ki(e,e[6]);const s=Ai();try{xi(e),Ri(t.bindingStartIndex),null!==i&&Vs(t,e,i,2,n);const o=3==(3&r);if(!s)if(o){const i=t.preOrderCheckHooks;null!==i&&un(e,i,null)}else{const i=t.preOrderHooks;null!==i&&hn(e,i,0,null),cn(e,0)}if(function(t){for(let e=ds(t);null!==e;e=fs(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const i=t[e],n=i[3];0==(1024&i[2])&&wi(n,1),i[2]|=1024}}}(e),function(t){for(let e=ds(t);null!==e;e=fs(e))for(let t=10;t<e.length;t++){const i=e[t],n=i[1];bi(i)&&js(n,i,n.template,i[8])}}(e),null!==t.contentQueries&&ks(t,e),!s)if(o){const i=t.contentCheckHooks;null!==i&&un(e,i)}else{const i=t.contentHooks;null!==i&&hn(e,i,1),cn(e,1)}!function(t,e){try{const i=t.expandoInstructions;if(null!==i){let n=t.expandoStartIndex,r=-1,s=-1;for(let t=0;t<i.length;t++){const o=i[t];if("number"==typeof o)if(o<=0){s=0-o,en(s),n+=9+i[++t],r=n}else n+=o;else{if(null!==o){Hi(n,r),o(2,e[r])}r++}}}}finally{en(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let i=0;i<e.length;i++)ao(t,e[i])}(e,a);const l=t.viewQuery;if(null!==l&&go(2,l,n),!s)if(o){const i=t.viewCheckHooks;null!==i&&un(e,i)}else{const i=t.viewHooks;null!==i&&hn(e,i,2),cn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,wi(e[3],-1))}finally{Qi()}}function Ls(t,e,i,n){const r=e[10],s=!Ai(),o=vi(e);try{s&&!o&&r.begin&&r.begin(),o&&As(t,e,n),js(t,e,i,n)}finally{s&&!o&&r.end&&r.end()}}function Vs(t,e,i,n,r){const s=tn();try{en(-1),2&n&&e.length>20&&vs(t,e,0,Ai()),i(n,r)}finally{en(s)}}function Rs(t,e,i){if(ti(e)){const n=e.directiveStart,r=e.directiveEnd;for(let e=n;e<r;e++){const n=t.data[e];n.contentQueries&&n.contentQueries(1,i[e],e)}}}function Ns(t,e,i){Ci()&&(function(t,e,i,n){const r=i.directiveStart,s=i.directiveEnd;t.firstCreatePass||An(i,e);Zr(n,e);const o=i.initialInputs;for(let a=r;a<s;a++){const n=t.data[a],s=ni(n);s&&io(e,i,n);const l=Un(e,t,a,i);if(Zr(l,e),null!==o&&ro(e,a-r,l,n,i,o),s){gi(i.index,e)[8]=l}}}(t,e,i,pi(i,e)),128==(128&i.flags)&&function(t,e,i){const n=i.directiveStart,r=i.directiveEnd,s=t.expandoInstructions,o=t.firstCreatePass,a=i.index-20,l=Pi.lFrame.currentDirectiveIndex;try{en(a);for(let i=n;i<r;i++){const n=t.data[i],r=e[i];zi(i),null!==n.hostBindings||0!==n.hostVars||null!==n.hostAttrs?Xs(n,r):o&&s.push(null)}}finally{en(-1),zi(l)}}(t,e,i))}function Bs(t,e,i=pi){const n=e.localNames;if(null!==n){let r=e.index+1;for(let s=0;s<n.length;s+=2){const o=n[s+1],a=-1===o?i(e,t):t[o];t[r++]=a}}}function Hs(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=zs(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function zs(t,e,i,n,r,s,o,a,l,u){const h=20+n,c=h+r,p=function(t,e){const i=[];for(let n=0;n<e;n++)i.push(n<t?null:cs);return i}(h,c);return p[1]={type:t,id:e,blueprint:p,template:i,queries:null,viewQuery:a,node:null,data:p.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:c,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:u,incompleteFirstPass:!1}}function Us(t,e,i){if(li(t)){const n=i===Fe.ShadowDom;return t.selectRootElement(e,n)}let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}function Ws(t,e,i,n,r,s){let o=e?e.injectorIndex:-1;return{type:i,index:n,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Gs(t,e,i){for(let n in t)if(t.hasOwnProperty(n)){i=null===i?{}:i;const r=t[n];i.hasOwnProperty(n)?i[n].push(e,r):i[n]=[e,r]}return i}function $s(t,e,i,n,r,s,o,a){const l=pi(e,i);let u,h=e.inputs;var c;!a&&null!=h&&(u=h[n])?(xo(t,i,u,n,r),ei(e)&&function(t,e){const i=gi(e,t);16&i[2]||(i[2]|=64)}(i,e.index)):3===e.type?(n="class"===(c=n)?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c,r=null!=o?o(r,e.tagName||"",n):r,li(s)?s.setProperty(l,n,r):yn(n)||(l.setProperty?l.setProperty(n,r):l[n]=r)):e.type}function Ks(t,e,i,n){let r=!1;if(Ci()){const s=function(t,e,i){const n=t.directiveRegistry;let r=null;if(n)for(let s=0;s<n.length;s++){const o=n[s];as(i,o.selectors,!1)&&(r||(r=[]),Rn(An(i,e),t,o.type),ni(o)?(2&i.flags&&Qr(i),Qs(t,i),r.unshift(o)):r.push(o))}return r}(t,e,i),o=null===n?null:{"":-1};if(null!==s){let n=0;r=!0,to(i,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}Zs(t,i,s.length);let a=!1,l=!1;for(let r=0;r<s.length;r++){const u=s[r];i.mergedAttrs=vn(i.mergedAttrs,u.hostAttrs),eo(t,e,u),Js(t.data.length-1,u,o),null!==u.contentQueries&&(i.flags|=8),null===u.hostBindings&&null===u.hostAttrs&&0===u.hostVars||(i.flags|=128),!a&&(u.onChanges||u.onInit||u.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i.index-20),a=!0),l||!u.onChanges&&!u.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i.index-20),l=!0),Ys(t,u),n+=u.hostVars}!function(t,e){const i=e.directiveStart,n=e.directiveEnd,r=t.data,s=e.attrs,o=[];let a=null,l=null;for(let u=i;u<n;u++){const t=r[u],i=t.inputs,n=null===s||is(e)?null:so(i,s);o.push(n),a=Gs(i,u,a),l=Gs(t.outputs,u,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(t,i),qs(t,e,n)}o&&function(t,e,i){if(e){const n=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=i[e[t+1]];if(null==r)throw new Error(`Export of name '${e[t+1]}' not found!`);n.push(e[t],r)}}}(i,n,o)}return i.mergedAttrs=vn(i.mergedAttrs,i.attrs),r}function Ys(t,e){const i=t.expandoInstructions;i.push(e.hostBindings),0!==e.hostVars&&i.push(e.hostVars)}function qs(t,e,i){for(let n=0;n<i;n++)e.push(cs),t.blueprint.push(cs),t.data.push(null)}function Xs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Zs(t,e,i){const n=20-e.index,r=65535&e.providerIndexes,s=t.data.length-r;(t.expandoInstructions||(t.expandoInstructions=[])).push(n,s,i)}function Qs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Js(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;ni(e)&&(i[""]=t)}}function to(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function eo(t,e,i){t.data.push(i);const n=i.factory||(i.factory=Xe(i.type)),r=new fn(n,ni(i),null);t.blueprint.push(r),e.push(r)}function io(t,e,i){const n=pi(e,t),r=Hs(i),s=t[10],o=uo(t,Ms(t,r,null,i.onPush?64:16,n,e,s,s.createRenderer(n,i)));t[e.index]=o}function no(t,e,i,n,r,s){const o=pi(t,e),a=e[11];if(null==n)li(a)?a.removeAttribute(o,i,s):o.removeAttribute(i);else{const e=null==r?Cn(n):r(n,t.tagName||"",i);li(a)?a.setAttribute(o,i,e,s):s?o.setAttributeNS(s,i,e):o.setAttribute(i,e)}}function ro(t,e,i,n,r,s){const o=s[e];if(null!==o){const t=n.setInput;for(let e=0;e<o.length;){const r=o[e++],s=o[e++],a=o[e++];null!==t?n.setInput(i,a,r,s):i[s]=a}}}function so(t,e){let i=null,n=0;for(;n<e.length;){const r=e[n];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===i&&(i=[]),i.push(r,t[r],e[n+1])),n+=2}else n+=2;else n+=4}return i}function oo(t,e,i,n){const r=new Array(t,!0,!1,e,null,0,n,i,null,null);return r}function ao(t,e){const i=gi(e,t);if(bi(i)){const t=i[1];80&i[2]?js(t,i,t.template,i[8]):i[5]>0&&function t(e){for(let n=ds(e);null!==n;n=fs(n))for(let e=10;e<n.length;e++){const i=n[e];if(1024&i[2]){const t=i[1];js(t,i,t.template,i[8])}else i[5]>0&&t(i)}const i=e[1].components;if(null!==i)for(let n=0;n<i.length;n++){const r=gi(i[n],e);bi(r)&&r[5]>0&&t(r)}}(i)}}function lo(t,e){const i=gi(e,t),n=i[1];!function(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}(n,i),As(n,i,i[8])}function uo(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ho(t){for(;t;){t[2]|=64;const e=ps(t);if(ri(t)&&!e)return t;t=e}return null}function co(t){for(let e=0;e<t.components.length;e++){const i=t.components[e],n=yi(i),r=n[1];Ls(r,n,r.template,i)}}function po(t,e,i){const n=e[10];n.begin&&n.begin();try{js(t,e,t.template,i)}catch(r){throw _o(e,r),r}finally{n.end&&n.end()}}function fo(t){co(t[8])}function go(t,e,i){Gi(0),e(t,i)}const mo=Ts;function yo(t){return t[7]||(t[7]=[])}function vo(t){return t.cleanup||(t.cleanup=[])}function bo(t,e,i){return(null===t||ni(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function _o(t,e){const i=t[9],n=i?i.get(Qn,null):null;n&&n.handleError(e)}function xo(t,e,i,n,r){for(let s=0;s<i.length;){const o=i[s++],a=i[s++],l=e[o],u=t.data[o];null!==u.setInput?u.setInput(l,r,n,a):l[a]=r}}function wo(t,e,i){const n=ci(e,t),r=t[11];li(r)?r.setValue(n,i):n.textContent=i}function Po(t,e){const i=e[3];return-1===t.index?Je(i)?i:null:i}function Co(t,e){const i=Po(t,e);return i?Ro(e[11],i[7]):null}function So(t,e,i,n,r){if(null!=n){let s,o=!1;Je(n)?s=n:Qe(n)&&(o=!0,n=n[0]);const a=hi(n);0===t&&null!==i?null==r?Lo(e,i,a):jo(e,i,a,r||null):1===t&&null!==i?jo(e,i,a,r||null):2===t?zo(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,i,n,r){const s=i[7],o=hi(i);s!==o&&So(e,t,n,s,r);for(let a=10;a<i.length;a++){const r=i[a];Wo(r[1],r,t,e,n,s)}}(e,t,s,i,r)}}function Oo(t,e){return li(e)?e.createText(t):e.createTextNode(t)}function Do(t,e,i,n){const r=Co(t.node,e);if(r){Wo(t,e,e[11],i?1:2,r,n)}}function Eo(t,e,i,n){const r=10+n,s=i.length;n>0&&(i[r-1][4]=e),n<s-10?(e[4]=i[r],Ce(i,10+n,e)):(i.push(e),e[4]=null),e[3]=i;const o=e[17];null!==o&&i!==o&&function(t,e){const i=t[9],n=e[3];const r=n[3][16];const s=e[16];s!==r&&(t[2]=!0);null===i?t[9]=[e]:i.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}function To(t,e){const i=t[9],n=i.indexOf(e),r=e[3];1024&e[2]&&wi(r,-1),i.splice(n,1)}function ko(t,e){if(t.length<=10)return;const i=10+e,n=t[i];if(n){const r=n[17];null!==r&&r!==t&&To(r,n),e>0&&(t[i-1][4]=n[4]);const s=Se(t,10+e);Do(n[1],n,!1,null);const o=s[19];null!==o&&o.detachView(s[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}function Io(t,e){if(!(256&e[2])){const i=e[11];li(i)&&i.destroyNode&&Wo(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Fo(t[1],t);for(;e;){let i=null;if(Qe(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)Qe(e)&&Fo(e[1],e),e=Mo(e,t);null===e&&(e=t),Qe(e)&&Fo(e[1],e),i=e&&e[4]}e=i}}(e)}}function Mo(t,e){let i;return Qe(t)&&(i=t[6])&&2===i.type?Po(i,t):t[3]===e?null:t[3]}function Fo(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n<i.length;n+=2){const t=e[i[n]];if(!(t instanceof fn)){const e=i[n+1];if(Array.isArray(e))for(let i=0;i<e.length;i+=2)e[i+1].call(t[e[i]]);else e.call(t)}}}(t,e),function(t,e){const i=t.cleanup;if(null!==i){const t=e[7];for(let n=0;n<i.length-1;n+=2)if("string"==typeof i[n]){const r=i[n+1],s="function"==typeof r?r(e):hi(e[r]),o=t[i[n+2]],a=i[n+3];"boolean"==typeof a?s.removeEventListener(i[n],o,a):a>=0?t[a]():t[-a].unsubscribe(),n+=2}else{const e=t[i[n+1]];i[n].call(e)}e[7]=null}}(t,e);const i=e[6];i&&3===i.type&&li(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Je(e[3])){n!==e[3]&&To(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Ao(t,e,i){let n=e.parent;for(;null!=n&&(4===n.type||5===n.type);)n=(e=n).parent;if(null==n){const t=i[6];return 2===t.type?Co(t,i):i[0]}if(e&&5===e.type&&4&e.flags)return pi(e,i).parentNode;if(2&n.flags){const e=t.data,i=e[e[n.index].directiveStart].encapsulation;if(i!==Fe.ShadowDom&&i!==Fe.Native)return null}return pi(n,i)}function jo(t,e,i,n){li(t)?t.insertBefore(e,i,n):e.insertBefore(i,n,!0)}function Lo(t,e,i){li(t)?t.appendChild(e,i):e.appendChild(i)}function Vo(t,e,i,n){null!==n?jo(t,e,i,n):Lo(t,e,i)}function Ro(t,e){return li(t)?t.parentNode(e):e.parentNode}function No(t,e){if(2===t.type){const i=Po(t,e);return null===i?null:Ho(i.indexOf(e,10)-10,i)}return 4===t.type||5===t.type?pi(t,e):null}function Bo(t,e,i,n){const r=Ao(t,n,e);if(null!=r){const t=e[11],s=No(n.parent||e[6],e);if(Array.isArray(i))for(let e=0;e<i.length;e++)Vo(t,r,i[e],s);else Vo(t,r,i,s)}}function Ho(t,e){const i=10+t+1;if(i<e.length){const t=e[i],n=t[1].firstChild;if(null!==n)return function t(e,i){if(null!==i){const n=i.type;if(3===n)return pi(i,e);if(0===n)return Ho(-1,e[i.index]);if(4===n||5===n){const n=i.child;if(null!==n)return t(e,n);{const t=e[i.index];return Je(t)?Ho(-1,t):hi(t)}}{const n=e[16],r=n[6],s=ps(n),o=r.projection[i.projection];return null!=o?t(s,o):t(e,i.next)}}return null}(t,n)}return e[7]}function zo(t,e,i){const n=Ro(t,e);n&&function(t,e,i,n){li(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}function Uo(t,e,i,n,r,s,o){for(;null!=i;){const a=n[i.index],l=i.type;o&&0===e&&(a&&Zr(hi(a),n),i.flags|=4),64!=(64&i.flags)&&(4===l||5===l?(Uo(t,e,i.child,n,r,s,!1),So(e,t,r,a,s)):1===l?$o(t,e,n,i,r,s):So(e,t,r,a,s)),i=o?i.projectionNext:i.next}}function Wo(t,e,i,n,r,s){Uo(i,n,t.node.child,e,r,s,!1)}function Go(t,e,i){$o(e[11],0,e,i,Ao(t,i,e),No(i.parent||e[6],e))}function $o(t,e,i,n,r,s){const o=i[16],a=o[6].projection[n.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){So(e,t,r,a[l],s)}else{Uo(t,e,a,o[3],r,s,!0)}}function Ko(t,e,i){li(t)?t.setAttribute(e,"style",i):e.style.cssText=i}function Yo(t,e,i){li(t)?""===i?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i):e.className=i}class qo{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;if(null==t[0]){const e=t[6];return function t(e,i,n,r,s=!1){for(;null!==n;){const o=i[n.index];if(null!==o&&r.push(hi(o)),Je(o))for(let e=10;e<o.length;e++){const i=o[e],n=i[1].firstChild;null!==n&&t(i[1],i,n,r)}const a=n.type;if(4===a||5===a)t(e,i,n.child,r);else if(1===a){const e=i[16],s=e[6],o=n.projection,a=s.projection[o];if(Array.isArray(a))r.push(...a);else{const i=ps(e);t(i[1],i,a,r,!0)}}n=s?n.projectionNext:n.next}return r}(t[1],t,e.child,[])}return[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Io(this._lView[1],this._lView)}onDestroy(t){var e,i,n;e=this._lView[1],i=this._lView,n=t,yo(i).push(n),e.firstCreatePass&&vo(e).push(i[7].length-1,null)}markForCheck(){ho(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){po(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){ji(!0);try{po(t,e,i)}finally{ji(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t,e;this._appRef=null,t=this._lView[1],e=this._lView,Wo(t,e,e[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Xo extends qo{constructor(t){super(t),this._view=t}detectChanges(){fo(this._view)}checkNoChanges(){!function(t){ji(!0);try{fo(t)}finally{ji(!1)}}(this._view)}get context(){return null}}let Zo,Qo,Jo;function ta(t,e,i){return Zo||(Zo=class extends t{}),new Zo(pi(e,i))}function ea(t,e,i,n){return Qo||(Qo=class extends t{constructor(t,e,i){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Ms(this._declarationView,e,t,16,null,e.node),n=this._declarationView[this._declarationTContainer.index];i[17]=n;const r=this._declarationView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),As(e,i,t),new qo(i)}}),0===i.type?new Qo(n,i,ta(e,i,n)):null}function ia(t,e,i,n){let r;Jo||(Jo=class extends t{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostView=i}get element(){return ta(e,this._hostTNode,this._hostView)}get injector(){return new $n(this._hostTNode,this._hostView)}get parentInjector(){const t=Vn(this._hostTNode,this._hostView),e=Pn(t,this._hostView),i=function(t,e,i){if(i.parent&&-1!==i.parent.injectorIndex){const t=i.parent.injectorIndex;let e=i.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let n=wn(t),r=e,s=e[6];for(;n>1;)r=r[15],s=r[6],n--;return s}(t,this._hostView,this._hostTNode);return _n(t)&&null!=i?new $n(i,e):new $n(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,r){const s=i||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(ye,null);t&&(r=t)}const o=t.create(s,n,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Je(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new Jo(e,e[6],e[3]);n.detach(n.indexOf(t))}}const r=this._adjustIndex(e);return Eo(n,i,this._lContainer,r),Do(n,i,!0,Ho(r,this._lContainer)),t.attachToViewContainerRef(this),Ce(this._lContainer[8],r,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);!function(t,e){const i=ko(t,e);i&&Io(i[1],i)}(this._lContainer,e),Se(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),i=ko(this._lContainer,e);return i&&null!=Se(this._lContainer[8],e)?new qo(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const s=n[i.index];if(Je(s))r=s;else{let t;if(4===i.type)t=hi(s);else if(t=n[11].createComment(""),ri(n)){const e=n[11],r=pi(i,n);jo(e,Ro(e,r),t,function(t,e){return li(t)?t.nextSibling(e):e.nextSibling}(e,r))}else Bo(n[1],n,t,i);n[i.index]=r=oo(s,n,t,i),uo(n,r)}return new Jo(r,i,n)}function na(t=!1){return function(t,e,i){if(!i&&ei(t)){const i=gi(t.index,e);return new qo(i,i)}if(3===t.type||0===t.type||4===t.type||5===t.type){const t=e[16];return new qo(t,e)}return null}(ki(),Di(),t)}class ra{}ra.__NG_ELEMENT_ID__=()=>sa();const sa=na,oa=Function;function aa(t){return"function"==typeof t}const la=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,ua=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ha=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,ca=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class pa{constructor(t){this._reflect=t||Ht.Reflect}isReflectionEnabled(){return!0}factory(t){return(...e)=>new t(...e)}_zipTypesAndAnnotations(t,e){let i;i=Oe(void 0===t?e.length:t.length);for(let n=0;n<i.length;n++)void 0===t?i[n]=[]:t[n]&&t[n]!=Object?i[n]=[t[n]]:i[n]=[],e&&null!=e[n]&&(i[n]=i[n].concat(e[n]));return i}_ownParameters(t,e){if(function(t){return la.test(t)||ca.test(t)||ua.test(t)&&!ha.test(t)}(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;const i=t.ctorParameters;if(i&&i!==e.ctorParameters){const t="function"==typeof i?i():i,e=t.map(t=>t&&t.type),n=t.map(t=>t&&da(t.decorators));return this._zipTypesAndAnnotations(e,n)}const n=t.hasOwnProperty(ot)&&t[ot],r=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return r||n?this._zipTypesAndAnnotations(r,n):Oe(t.length)}parameters(t){if(!aa(t))return[];const e=fa(t);let i=this._ownParameters(t,e);return i||e===Object||(i=this.parameters(e)),i||[]}_ownAnnotations(t,e){if(t.annotations&&t.annotations!==e.annotations){let e=t.annotations;return"function"==typeof e&&e.annotations&&(e=e.annotations),e}return t.decorators&&t.decorators!==e.decorators?da(t.decorators):t.hasOwnProperty(st)?t[st]:null}annotations(t){if(!aa(t))return[];const e=fa(t),i=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(i)}_ownPropMetadata(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){let e=t.propMetadata;return"function"==typeof e&&e.propMetadata&&(e=e.propMetadata),e}if(t.propDecorators&&t.propDecorators!==e.propDecorators){const e=t.propDecorators,i={};return Object.keys(e).forEach(t=>{i[t]=da(e[t])}),i}return t.hasOwnProperty(at)?t[at]:null}propMetadata(t){if(!aa(t))return{};const e=fa(t),i={};if(e!==Object){const t=this.propMetadata(e);Object.keys(t).forEach(e=>{i[e]=t[e]})}const n=this._ownPropMetadata(t,e);return n&&Object.keys(n).forEach(t=>{const e=[];i.hasOwnProperty(t)&&e.push(...i[t]),e.push(...n[t]),i[t]=e}),i}ownPropMetadata(t){return aa(t)&&this._ownPropMetadata(t,fa(t))||{}}hasLifecycleHook(t,e){return t instanceof oa&&e in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${It(t)}`}resourceUri(t){return`./${It(t)}`}resolveIdentifier(t,e,i,n){return n}resolveEnum(t,e){return t[e]}}function da(t){return t?t.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function fa(t){const e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}let ga=null;function ma(){return ga=ga||new pa}function ya(t){return va(ma().parameters(t))}function va(t){const e=Gt();return t.map(t=>function(t,e){const i={token:null,host:!1,optional:!1,resolved:t.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function n(e){i.resolved=t.R3ResolvedDependencyType.Token,i.token=e}if(Array.isArray(e)&&e.length>0)for(let r=0;r<e.length;r++){const s=e[r];if(void 0===s)continue;const o=Object.getPrototypeOf(s);if(s instanceof dt||"Optional"===o.ngMetadataName)i.optional=!0;else if(s instanceof gt||"SkipSelf"===o.ngMetadataName)i.skipSelf=!0;else if(s instanceof ft||"Self"===o.ngMetadataName)i.self=!0;else if(s instanceof mt||"Host"===o.ngMetadataName)i.host=!0;else if(s instanceof pt)i.token=s.token;else if(s instanceof yt){if(void 0===s.attributeName)throw new Error("Attribute name must be defined.");i.token=s.attributeName,i.resolved=t.R3ResolvedDependencyType.Attribute}else s===ra?(i.token=s,i.resolved=t.R3ResolvedDependencyType.ChangeDetectorRef):n(s)}else void 0===e||Array.isArray(e)&&0===e.length?(i.token=void 0,i.resolved=zt.Invalid):n(e);return i}(e,t))}const ba=bt({provide:String,useValue:bt});function _a(t){return void 0!==t.useClass}function xa(t){return void 0!==t.useFactory}function wa(t,e){const i=e||{providedIn:null},n={name:t.name,type:t,typeArgumentCount:0,providedIn:i.providedIn,userDeps:void 0};return(_a(i)||xa(i))&&void 0!==i.deps&&(n.userDeps=va(i.deps)),_a(i)?n.useClass=jt(i.useClass):!function(t){return ba in t}(i)?xa(i)?n.useFactory=i.useFactory:function(t){return void 0!==t.useExisting}(i)&&(n.useExisting=jt(i.useExisting)):n.useValue=jt(i.useValue),n}bt({provide:String,useValue:bt});lt("Injectable",void 0,void 0,void 0,(t,e)=>Pa(t,e));const Pa=function(t,e){let i=null,n=null;t.hasOwnProperty(Ot)||(Object.defineProperty(t,Ot,{get:()=>(null===i&&(i=Gt().compileInjectable(me,`ng:///${t.name}/\u0275prov.js`,wa(t,e))),i)}),t.hasOwnProperty(Et)||(t[Et]=()=>t[Ot])),t.hasOwnProperty(Zt)||Object.defineProperty(t,Zt,{get:()=>{if(null===n){const i=wa(t,e),r=Gt();n=r.compileFactory(me,`ng:///${t.name}/\u0275fac.js`,{name:i.name,type:i.type,typeArgumentCount:i.typeArgumentCount,deps:ya(t),injectFn:"inject",target:r.R3FactoryTarget.Injectable})}return n},configurable:!0})},Ca=new Jt("Set Injector scope."),Sa={},Oa={},Da=[];let Ea=void 0;function Ta(){return void 0===Ea&&(Ea=new de),Ea}function ka(t,e=null,i=null,n){return new Ia(t,i,e||Ta(),n)}class Ia{constructor(t,e,i,n=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&Pe(e,i=>this.processProvider(i,t,e)),Pe([t],t=>this.processInjectorType(t,[],r)),this.records.set(te,Aa(void 0,this));const s=this.records.get(Ca);this.scope=null!=s?s.value:null,this.source=n||("object"==typeof t?null:It(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=ee,i=vt.Default){this.assertNotDestroyed();const n=oe(this);try{if(!(i&vt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Jt)&&Pt(t);e=i&&this.injectableDefInScope(i)?Aa(Ma(t),Sa):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}const s=i&vt.Self?Ta():this.parent;return e=i&vt.Optional&&e===ee?null:e,s.get(t,e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(It(t)),n)throw s;return fe(s,t,"R3InjectorError",this.source)}throw s}finally{oe(n)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(It(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=jt(t)))return!1;let n=St(t);const r=null==n&&t.ngModule||void 0,s=void 0===r?t:r;const o=-1!==i.indexOf(s);if(void 0!==r&&(n=St(r)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(s);try{Pe(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:i,providers:n}=t[e];Pe(n,t=>this.processProvider(t,i,n||Da))}}this.injectorDefTypes.add(s),this.records.set(s,Aa(n.factory,Sa));const a=n.providers;if(null!=a&&!o){const e=t;Pe(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,i){let n=La(t=jt(t))?t:jt(t&&t.provide);const r=function(t,e,i){if(ja(t))return Aa(void 0,t.useValue);return Aa(Fa(t,e,i),Sa)}(t,e,i);if(La(t)||!0!==t.multi){const t=this.records.get(n);t&&void 0!==t.multi&&Jr()}else{let e=this.records.get(n);e?void 0===e.multi&&Jr():(e=Aa(void 0,Sa,!0),e.factory=()=>pe(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,r)}hydrate(t,e){var i;return e.value===Oa?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(It(t)):e.value===Sa&&(e.value=Oa,e.value=e.factory()),"object"==typeof e.value&&e.value&&(null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Ma(t){const e=Pt(t),i=null!==e?e.factory:Xe(t);if(null!==i)return i;const n=St(t);if(null!==n)return n.factory;if(t instanceof Jt)throw new Error(`Token ${It(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=Oe(e,"?");throw new Error(`Can't resolve all parameters for ${It(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[Ot]||t[Tt]||t[Et]&&t[Et]());if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Fa(t,e,i){let n=void 0;if(La(t)){const e=jt(t);return Xe(e)||Ma(e)}if(ja(t))n=()=>jt(t.useValue);else if((r=t)&&r.useFactory)n=()=>t.useFactory(...pe(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>ue(jt(t.useExisting));else{const r=jt(t&&(t.useClass||t.provide));if(r||function(t,e,i){let n="";if(t&&e){n=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==i?"?"+i+"?":"...").join(", ")}]`}throw new Error(`Invalid provider for the NgModule '${It(t)}'`+n)}(e,i,t),!function(t){return!!t.deps}(t))return Xe(r)||Ma(r);n=()=>new r(...pe(t.deps))}var r;return n}function Aa(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function ja(t){return null!==t&&"object"==typeof t&&ne in t}function La(t){return"function"==typeof t}const Va=function(t,e,i){return function(t,e=null,i=null,n){const r=ka(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)};class Ra{static create(t,e){return Array.isArray(t)?Va(t,e,""):Va(t.providers,t.parent,t.name||"")}}Ra.THROW_IF_NOT_FOUND=ee,Ra.NULL=new de,Ra.\u0275prov=xt({token:Ra,providedIn:"any",factory:()=>ue(te)}),Ra.__NG_ELEMENT_ID__=-1;function Na(t){if(t.length>1){return" ("+function(t){const e=[];for(let i=0;i<t.length;++i){if(e.indexOf(t[i])>-1)return e.push(t[i]),e;e.push(t[i])}return e}(t.slice().reverse()).map(t=>It(t.token)).join(" -> ")+")"}return""}function Ba(t,e,i,n){const r=[e],s=i(r),o=n?function(t,e){const i=`${t} caused by: ${e instanceof Error?e.message:e}`,n=Error(i);return n.ngOriginalError=e,n}(s,n):Error(s);return o.addKey=Ha,o.keys=r,o.injectors=[t],o.constructResolvingMessage=i,o.ngOriginalError=n,o}function Ha(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function za(t,e){const i=[];for(let n=0,r=e.length;n<r;n++){const t=e[n];t&&0!=t.length?i.push(t.map(It).join(" ")):i.push("?")}return Error("Cannot resolve all parameters for '"+It(t)+"'("+i.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+It(t)+"' is decorated with Injectable.")}class Ua{constructor(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=It(this.token)}static get(t){return Wa.get(jt(t))}static get numberOfKeys(){return Wa.numberOfKeys}}const Wa=new class{constructor(){this._allKeys=new Map}get(t){if(t instanceof Ua)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const e=new Ua(t,Ua.numberOfKeys);return this._allKeys.set(t,e),e}get numberOfKeys(){return this._allKeys.size}};const Ga=new class{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,e,i,n){return this.reflectionCapabilities.resolveIdentifier(t,e,i,n)}resolveEnum(t,e){return this.reflectionCapabilities.resolveEnum(t,e)}}(new pa);class $a{constructor(t,e,i){this.key=t,this.optional=e,this.visibility=i}static fromKey(t){return new $a(t,!1,null)}}const Ka=[];class Ya{constructor(t,e,i){this.key=t,this.resolvedFactories=e,this.multiProvider=i,this.resolvedFactory=this.resolvedFactories[0]}}class qa{constructor(t,e){this.factory=t,this.dependencies=e}}function Xa(t){let e,i;if(t.useClass){const n=jt(t.useClass);e=Ga.factory(n),i=Ja(n)}else t.useExisting?(e=t=>t,i=[$a.fromKey(Ua.get(t.useExisting))]):t.useFactory?(e=t.useFactory,i=function(t,e){if(e){const i=e.map(t=>[t]);return e.map(e=>tl(t,e,i))}return Ja(t)}(t.useFactory,t.deps)):(e=()=>t.useValue,i=Ka);return new qa(e,i)}function Za(t){return new Ya(Ua.get(t.provide),[Xa(t)],t.multi||!1)}function Qa(t){const e=function(t,e){for(let i=0;i<t.length;i++){const n=t[i],r=e.get(n.key.id);if(r){if(n.multiProvider!==r.multiProvider)throw Error(`Cannot mix multi providers and regular providers, got: ${r} ${n}`);if(n.multiProvider)for(let t=0;t<n.resolvedFactories.length;t++)r.resolvedFactories.push(n.resolvedFactories[t]);else e.set(n.key.id,n)}else{let t;t=n.multiProvider?new Ya(n.key,n.resolvedFactories.slice(),n.multiProvider):n,e.set(n.key.id,t)}}return e}(function t(e,i){return e.forEach(e=>{if(e instanceof oa)i.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)i.push(e);else{if(!Array.isArray(e))throw Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`);t(e,i)}}),i}(t,[]).map(Za),new Map);return Array.from(e.values())}function Ja(t){const e=Ga.parameters(t);if(!e)return[];if(e.some(t=>null==t))throw za(t,e);return e.map(i=>tl(t,i,e))}function tl(t,e,i){let n=null,r=!1;if(!Array.isArray(e))return el(e instanceof pt?e.token:e,r,null);let s=null;for(let o=0;o<e.length;++o){const t=e[o];t instanceof oa?n=t:t instanceof pt?n=t.token:t instanceof dt?r=!0:t instanceof ft||t instanceof gt?s=t:t instanceof Jt&&(n=t)}if(n=jt(n),null!=n)return el(n,r,s);throw za(t,i)}function el(t,e,i){return new $a(Ua.get(t),e,i)}const il={};class nl{static resolve(t){return Qa(t)}static resolveAndCreate(t,e){const i=nl.resolve(t);return nl.fromResolvedProviders(i,e)}static fromResolvedProviders(t,e){return new rl(t,e)}}class rl{constructor(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;const i=t.length;this.keyIds=[],this.objs=[];for(let n=0;n<i;n++)this.keyIds[n]=t[n].key.id,this.objs[n]=il}get(t,e=ee){return this._getByKey(Ua.get(t),null,e)}resolveAndCreateChild(t){const e=nl.resolve(t);return this.createChildFromResolved(e)}createChildFromResolved(t){const e=new rl(t);return e.parent=this,e}resolveAndInstantiate(t){return this.instantiateResolved(nl.resolve([t])[0])}instantiateResolved(t){return this._instantiateProvider(t)}getProviderAtIndex(t){if(t<0||t>=this._providers.length)throw function(t){return Error(`Index ${t} is out-of-bounds.`)}(t);return this._providers[t]}_new(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw e=this,i=t.key,Ba(e,i,(function(t){return`Cannot instantiate cyclic dependency!${Na(t)}`}));var e,i;return this._instantiateProvider(t)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(t){if(t.multiProvider){const e=[];for(let i=0;i<t.resolvedFactories.length;++i)e[i]=this._instantiate(t,t.resolvedFactories[i]);return e}return this._instantiate(t,t.resolvedFactories[0])}_instantiate(t,e){const i=e.factory;let n,r;try{n=e.dependencies.map(t=>this._getByReflectiveDependency(t))}catch(l){throw l.addKey&&l.addKey(this,t.key),l}try{r=i(...n)}catch(l){throw s=this,o=l,l.stack,a=t.key,Ba(s,a,(function(t){const e=It(t[0].token);return`${o.message}: Error during instantiation of ${e}!${Na(t)}.`}),o)}var s,o,a;return r}_getByReflectiveDependency(t){return this._getByKey(t.key,t.visibility,t.optional?null:ee)}_getByKey(t,e,i){return t===rl.INJECTOR_KEY?this:e instanceof ft?this._getByKeySelf(t,i):this._getByKeyDefault(t,i,e)}_getObjByKeyId(t){for(let e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===il&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return il}_throwOrNull(t,e){if(e!==ee)return e;throw function(t,e){return Ba(t,e,(function(t){return`No provider for ${It(t[0].token)}!${Na(t)}`}))}(this,t)}_getByKeySelf(t,e){const i=this._getObjByKeyId(t.id);return i!==il?i:this._throwOrNull(t,e)}_getByKeyDefault(t,e,i){let n;for(n=i instanceof gt?this.parent:this;n instanceof rl;){const e=n,i=e._getObjByKeyId(t.id);if(i!==il)return i;n=e.parent}return null!==n?n.get(t.token,e):this._throwOrNull(t,e)}get displayName(){return`ReflectiveInjector(providers: [${function(t,e){const i=[];for(let n=0;n<t._providers.length;++n)i[n]=e(t.getProviderAtIndex(n));return i}(this,t=>' "'+t.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}rl.INJECTOR_KEY=Ua.get(Ra);const sl=new Jt("AnalyzeForEntryComponents");class ol{}const al=ct("ContentChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e),ol);ct("ContentChild",(t,e={})=>Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e),ol);ct("ViewChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e),ol);ct("ViewChild",(t,e)=>Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e),ol);function ll(t){const e=[],i=new Map;function n(e){let n=i.get(e);if(!n){const r=t(e);i.set(e,n=r.then(pl))}return n}return ul.forEach((t,i)=>{const r=[];t.templateUrl&&r.push(n(t.templateUrl).then(e=>{t.template=e}));const s=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;s&&s.forEach((e,i)=>{o.push(""),r.push(n(e).then(n=>{o[a+i]=n,s.splice(s.indexOf(e),1),0==s.length&&(t.styleUrls=void 0)}))});const l=Promise.all(r).then(()=>function(t){hl.delete(t)}(i));e.push(l)}),function(){const t=ul;ul=new Map}(),Promise.all(e).then(()=>{})}let ul=new Map;const hl=new Set;function cl(t){return!!(t.templateUrl&&!t.hasOwnProperty("template")||t.styleUrls&&t.styleUrls.length)}function pl(t){return"string"==typeof t?t:t.text()}function dl(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];if("number"==typeof t)s=t;else if(1==s)r=Mt(r,t);else if(2==s){n=Mt(n,t+": "+e[++o]+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=r:t.classesWithoutHost=r}let fl=null;function gl(){if(!fl){const t=Ht.Symbol;if(t&&t.iterator)fl=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(fl=i)}}}return fl}function ml(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class yl{constructor(t){this.wrapped=t}static wrap(t){return new yl(t)}static unwrap(t){return yl.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof yl}}function vl(t){return!!bl(t)&&(Array.isArray(t)||!(t instanceof Map)&&gl()in t)}function bl(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function _l(t,e,i){return t[e]=i}function xl(t,e){return t[e]}function wl(t,e,i){const n=t[e];return!Object.is(n,i)&&(t[e]=i,!0)}function Pl(t,e,i,n){const r=wl(t,e,i);return wl(t,e+1,n)||r}function Cl(t,e,i,n,r){const s=Pl(t,e,i,n);return wl(t,e+2,r)||s}function Sl(t,e,i,n,r,s){const o=Pl(t,e,i,n);return Pl(t,e+2,r,s)||o}function Ol(t,e,i,n){const r=Di(),s=Ni();if(wl(r,s,e)){Ei();const s=nn();no(s,r,t,e,i,n)}return Ol}function Dl(t,e){let i=!1,n=Vi();for(let s=1;s<e.length;s+=2)i=wl(t,n++,e[s])||i;if(Ri(n),!i)return cs;let r=e[0];for(let s=1;s<e.length;s+=2)r+=Cn(e[s])+e[s+1];return r}function El(t,e,i,n){return wl(t,Ni(),i)?e+Cn(i)+n:cs}function Tl(t,e,i,n,r,s){const o=Pl(t,Vi(),i,r);return Bi(2),o?e+Cn(i)+n+Cn(r)+s:cs}function kl(t,e,i,n,r,s,o,a){const l=Cl(t,Vi(),i,r,o);return Bi(3),l?e+Cn(i)+n+Cn(r)+s+Cn(o)+a:cs}function Il(t,e,i,n,r,s,o,a,l,u){const h=Sl(t,Vi(),i,r,o,l);return Bi(4),h?e+Cn(i)+n+Cn(r)+s+Cn(o)+a+Cn(l)+u:cs}function Ml(t,e,i,n,r,s,o,a,l,u,h,c){const p=Vi();let d=Sl(t,p,i,r,o,l);return d=wl(t,p+4,h)||d,Bi(5),d?e+Cn(i)+n+Cn(r)+s+Cn(o)+a+Cn(l)+u+Cn(h)+c:cs}function Fl(t,e,i,n,r,s,o,a,l,u,h,c,p,d){const f=Vi();let g=Sl(t,f,i,r,o,l);return g=Pl(t,f+4,h,p)||g,Bi(6),g?e+Cn(i)+n+Cn(r)+s+Cn(o)+a+Cn(l)+u+Cn(h)+c+Cn(p)+d:cs}function Al(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g){const m=Vi();let y=Sl(t,m,i,r,o,l);return y=Cl(t,m+4,h,p,f)||y,Bi(7),y?e+Cn(i)+n+Cn(r)+s+Cn(o)+a+Cn(l)+u+Cn(h)+c+Cn(p)+d+Cn(f)+g:cs}function jl(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,y){const v=Vi();let b=Sl(t,v,i,r,o,l);return b=Sl(t,v+4,h,p,f,m)||b,Bi(8),b?e+Cn(i)+n+Cn(r)+s+Cn(o)+a+Cn(l)+u+Cn(h)+c+Cn(p)+d+Cn(f)+g+Cn(m)+y:cs}function Ll(t,e,i,n,r,s){const o=Di(),a=El(o,e,i,n);if(a!==cs){const e=nn();no(e,o,t,a,r,s)}return Ll}function Vl(t,e,i,n,r,s,o,a){const l=Di(),u=Tl(l,e,i,n,r,s);if(u!==cs){const e=nn();no(e,l,t,u,o,a)}return Vl}function Rl(t,e,i,n,r,s,o,a,l,u){const h=Di(),c=kl(h,e,i,n,r,s,o,a);if(c!==cs){const e=nn();no(e,h,t,c,l,u)}return Rl}function Nl(t,e,i,n,r,s,o,a,l,u,h,c){const p=Di(),d=Il(p,e,i,n,r,s,o,a,l,u);if(d!==cs){const e=nn();no(e,p,t,d,h,c)}return Nl}function Bl(t,e,i,n,r,s,o,a,l,u,h,c,p,d){const f=Di(),g=Ml(f,e,i,n,r,s,o,a,l,u,h,c);if(g!==cs){const e=nn();no(e,f,t,g,p,d)}return Bl}function Hl(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g){const m=Di(),y=Fl(m,e,i,n,r,s,o,a,l,u,h,c,p,d);if(y!==cs){const e=nn();no(e,m,t,y,f,g)}return Hl}function zl(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,y){const v=Di(),b=Al(v,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g);if(b!==cs){const e=nn();no(e,v,t,b,m,y)}return zl}function Ul(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,y,v,b){const _=Di(),x=jl(_,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,y);if(x!==cs){const e=nn();no(e,_,t,x,v,b)}return Ul}function Wl(t,e,i,n){const r=Di(),s=Dl(r,e);if(s!==cs){const e=nn();no(e,r,t,s,i,n)}return Wl}function Gl(t,e,i,n,r,s,o,a){const l=Di(),u=Ei(),h=t+20,c=u.firstCreatePass?function(t,e,i,n,r,s,o,a,l){const u=e.consts,h=Fs(e,i[6],t,0,o||null,_i(u,a));Ks(e,i,h,_i(u,l)),ln(e,h);const c=h.tViews=zs(2,-1,n,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u),p=Ws(0,null,2,-1,null,null);return p.injectorIndex=h.injectorIndex,c.node=p,null!==e.queries&&(e.queries.template(e,h),c.queries=e.queries.embeddedTView(h)),h}(t,u,l,e,i,n,r,s,o):u.data[h];Ii(c,!1);const p=l[11].createComment("");Bo(u,l,p,c),Zr(p,l),uo(l,l[h]=oo(p,l,p,c)),ii(c)&&Ns(u,l,c),null!=o&&Bs(l,c,a)}function $l(t){return fi(Pi.lFrame.contextLView,t)}function Kl(t,e=vt.Default){const i=Di();return null==i?ue(t,e):Nn(ki(),i,jt(t),e)}function Yl(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n<t;){const r=i[n];if(mn(r))break;if(0===r)n+=2;else if("number"==typeof r)for(n++;n<t&&"string"==typeof i[n];)n++;else{if(r===e)return i[n+1];n+=2}}}return null}(ki(),t)}function ql(){throw new Error("invalid")}function Xl(t,e,i){const n=Di(),r=Ni();if(wl(n,r,e)){const r=Ei(),s=nn();$s(r,s,n,t,e,n[11],i,!1)}return Xl}function Zl(t,e,i,n,r){const s=r?"class":"style";xo(t,i,e.inputs[s],s,n)}function Ql(t,e,i,n,r,s,o){const a=e.consts,l=_i(a,s),u=Fs(e,i[6],t,3,r,l);Ks(e,i,u,_i(a,o));return null!==u.attrs&&dl(u,u.attrs,!1),null!==u.mergedAttrs&&dl(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}function Jl(t,e,i,n){const r=Di(),s=Ei(),o=20+t,a=r[11],l=r[o]=Is(e,a,Pi.lFrame.currentNamespace),u=s.firstCreatePass?Ql(t,s,r,0,e,i,n):s.data[o];Ii(u,!0);const h=u.mergedAttrs;null!==h&&gn(a,l,h);const c=u.classes;null!==c&&Yo(a,l,c);const p=u.styles;null!==p&&Ko(a,l,p),Bo(s,r,l,u),0===Pi.lFrame.elementDepthCount&&Zr(l,r),Pi.lFrame.elementDepthCount++,ii(u)&&(Ns(s,r,u),Rs(s,u,r)),null!==n&&Bs(r,u)}function tu(){let t=ki();Mi()?Fi():(t=t.parent,Ii(t,!1));const e=t;Pi.lFrame.elementDepthCount--;const i=Ei();i.firstCreatePass&&(ln(i,t),ti(t)&&i.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Zl(i,e,Di(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Zl(i,e,Di(),e.stylesWithoutHost,!1)}function eu(t,e,i,n){Jl(t,e,i,n),tu()}function iu(t,e,i){const n=Di(),r=Ei(),s=t+20,o=r.firstCreatePass?function(t,e,i,n,r){const s=e.consts,o=_i(s,n),a=Fs(e,i[6],t,4,"ng-container",o);return null!==o&&dl(a,o,!0),Ks(e,i,a,_i(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,r,n,e,i):r.data[s];Ii(o,!0);const a=n[s]=n[11].createComment("");Bo(r,n,a,o),Zr(a,n),ii(o)&&(Ns(r,n,o),Rs(r,o,n)),null!=i&&Bs(n,o)}function nu(){let t=ki();const e=Ei();Mi()?Fi():(t=t.parent,Ii(t,!1)),e.firstCreatePass&&(ln(e,t),ti(t)&&e.queries.elementEnd(t))}function ru(t,e,i){iu(t,e,i),nu()}function su(){return Di()}function ou(t){return!!t&&"function"==typeof t.then}function au(t){return!!t&&"function"==typeof t.subscribe}function lu(t,e,i=!1,n){const r=Di(),s=Ei(),o=ki();return hu(s,r,r[11],o,t,e,i,n),lu}function uu(t,e,i=!1,n){const r=ki(),s=Di(),o=Ei();return hu(o,s,bo(Ui(o.data),r,s),r,t,e,i,n),uu}function hu(t,e,i,n,r,s,o=!1,a){const l=ii(n),u=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=yo(e);let c=!0;if(3===n.type){const p=pi(n,e),d=a?a(p):Ae,f=d.target||p,g=h.length,m=a?t=>a(hi(t[n.index])).target:n.index;if(li(i)){let o=null;if(!a&&l&&(o=function(t,e,i,n){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const t=r[s];if(t===i&&r[s+1]===n){const t=e[7],i=r[s+2];return t.length>i?t[i]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,n.index)),null!==o){(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,c=!1}else{s=pu(n,e,s,!1);const t=i.listen(d.name||f,r,s);h.push(s,t),u&&u.push(r,m,g,g+1)}}else s=pu(n,e,s,!0),f.addEventListener(r,s,o),h.push(s),u&&u.push(r,m,g,o)}const p=n.outputs;let d;if(c&&null!==p&&(d=p[r])){const t=d.length;if(t)for(let i=0;i<t;i+=2){const t=d[i],o=d[i+1],a=e[t],l=a[o];0;const c=l.subscribe(s),p=h.length;h.push(s,c),u&&u.push(r,n.index,p,-(p+1))}}}function cu(t,e,i){try{return!1!==e(i)}catch(n){return _o(t,n),!1}}function pu(t,e,i,n){return function r(s){if(s===Function)return i;const o=2&t.flags?gi(t.index,e):e;0==(32&e[2])&&ho(o);let a=cu(e,i,s),l=r.__ngNextListenerFn__;for(;l;)a=cu(e,l,s)&&a,l=l.__ngNextListenerFn__;return n&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function du(t=1){return Ji(t)}function fu(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===n?as(t,s,!0):ls(n,s))return r}else i=r}return i}function gu(t){const e=Di()[16][6];if(!e.projection){const i=t?t.length:1,n=e.projection=Oe(i,null),r=n.slice();let s=e.child;for(;null!==s;){const e=t?fu(s,t):0;null!==e&&(r[e]?r[e].projectionNext=s:n[e]=s,r[e]=s),s=s.next}}}let mu=!1;function yu(t){mu=t}function vu(t,e=0,i){const n=Di(),r=Ei(),s=Fs(r,n[6],t,1,null,i||null);null===s.projection&&(s.projection=e),Fi(),mu||Go(r,n,s)}function bu(t,e,i){return _u(t,"",e,"",i),bu}function _u(t,e,i,n,r){const s=Di(),o=El(s,e,i,n);if(o!==cs){const e=Ei(),i=nn();$s(e,i,s,t,o,s[11],r,!1)}return _u}function xu(t,e,i,n,r,s,o){const a=Di(),l=Tl(a,e,i,n,r,s);if(l!==cs){const e=Ei(),i=nn();$s(e,i,a,t,l,a[11],o,!1)}return xu}function wu(t,e,i,n,r,s,o,a,l){const u=Di(),h=kl(u,e,i,n,r,s,o,a);if(h!==cs){const e=Ei(),i=nn();$s(e,i,u,t,h,u[11],l,!1)}return wu}function Pu(t,e,i,n,r,s,o,a,l,u,h){const c=Di(),p=Il(c,e,i,n,r,s,o,a,l,u);if(p!==cs){const e=Ei(),i=nn();$s(e,i,c,t,p,c[11],h,!1)}return Pu}function Cu(t,e,i,n,r,s,o,a,l,u,h,c,p){const d=Di(),f=Ml(d,e,i,n,r,s,o,a,l,u,h,c);if(f!==cs){const e=Ei(),i=nn();$s(e,i,d,t,f,d[11],p,!1)}return Cu}function Su(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f){const g=Di(),m=Fl(g,e,i,n,r,s,o,a,l,u,h,c,p,d);if(m!==cs){const e=Ei(),i=nn();$s(e,i,g,t,m,g[11],f,!1)}return Su}function Ou(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m){const y=Di(),v=Al(y,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g);if(v!==cs){const e=Ei(),i=nn();$s(e,i,y,t,v,y[11],m,!1)}return Ou}function Du(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,y,v){const b=Di(),_=jl(b,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,y);if(_!==cs){const e=Ei(),i=nn();$s(e,i,b,t,_,b[11],v,!1)}return Du}function Eu(t,e,i){const n=Di(),r=Dl(n,e);if(r!==cs){const e=Ei(),s=nn();$s(e,s,n,t,r,n[11],i,!1)}return Eu}const Tu=[];function ku(t,e,i,n,r,s){let o=s?e.classBindings:e.styleBindings,a=ws(o),l=Ss(o);t[n]=i;let u,h=!1;if(Array.isArray(i)){const t=i;u=t[1],(null===u||Te(t,u)>0)&&(h=!0)}else u=i;if(r){if(0!==l){const e=ws(t[a+1]);t[n+1]=xs(e,a),0!==e&&(t[e+1]=Os(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=xs(a,0),0!==a&&(t[a+1]=Os(t[a+1],n)),a=n}else t[n+1]=xs(l,0),0===a?a=n:t[l+1]=Os(t[l+1],n),l=n;h&&(t[n+1]=Cs(t[n+1])),Iu(t,u,n,!0,s),Iu(t,u,n,!1,s),function(t,e,i,n,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&Te(s,e)>=0&&(i[n+1]=Es(i[n+1]))}(e,u,t,n,s),o=xs(a,l),s?e.classBindings=o:e.styleBindings=o}function Iu(t,e,i,n,r){const s=t[i+1],o=null===e;let a=n?ws(s):Ss(s),l=!1;for(;0!==a&&(!1===l||o);){const i=t[a],r=t[a+1];Mu(i,e)&&(l=!0,t[a+1]=n?Es(r):Cs(r)),a=n?ws(r):Ss(r)}l&&(t[i+1]=n?Cs(s):Es(s))}function Mu(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Te(t,e)>=0}const Fu={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Au(t){return t.substring(Fu.key,Fu.keyEnd)}function ju(t){return t.substring(Fu.value,Fu.valueEnd)}function Lu(t,e){const i=Fu.textEnd;return i===e?-1:(e=Fu.keyEnd=function(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}(t,Fu.key=e,i),Nu(t,e,i))}function Vu(t,e){const i=Fu.textEnd;let n=Fu.key=Nu(t,e,i);return i===n?-1:(n=Fu.keyEnd=function(t,e,i){let n;for(;e<i&&(45===(n=t.charCodeAt(e))||95===n||(-33&n)>=65&&(-33&n)<=90);)e++;return e}(t,n,i),n=Bu(t,n,i,58),n=Fu.value=Nu(t,n,i),n=Fu.valueEnd=function(t,e,i){let n=-1,r=-1,s=-1,o=e,a=o;for(;o<i;){const l=t.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Hu(t,l,o,i):e===o-4&&85===s&&82===r&&76===n&&40===l?a=o=Hu(t,41,o,i):l>32&&(a=o),s=r,r=n,n=-33&l}return a}(t,n,i),Bu(t,n,i,59))}function Ru(t){Fu.key=0,Fu.keyEnd=0,Fu.value=0,Fu.valueEnd=0,Fu.textEnd=t.length}function Nu(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function Bu(t,e,i,n){return(e=Nu(t,e,i))<i&&e++,e}function Hu(t,e,i,n){let r=-1,s=i;for(;s<n;){const i=t.charCodeAt(s++);if(i==e&&92!==r)return s;r=92==i&&92===r?0:i}throw new Error}function zu(t){an(t)}function Uu(t,e,i){return qu(t,e,i,!1),Uu}function Wu(t,e){return qu(t,e,null,!0),Wu}function Gu(t){Xu(eh,$u,t,!1)}function $u(t,e){for(let i=function(t){return Ru(t),Vu(t,Nu(t,0,Fu.textEnd))}(e);i>=0;i=Vu(e,i))eh(t,Au(e),ju(e))}function Ku(t){Xu(De,Yu,t,!0)}function Yu(t,e){for(let i=function(t){return Ru(t),Lu(t,Nu(t,0,Fu.textEnd))}(e);i>=0;i=Lu(e,i))De(t,Au(e),!0)}function qu(t,e,i,n){const r=Di(),s=Ei(),o=Bi(2);if(s.firstUpdatePass&&Qu(s,t,o,n),e!==cs&&wl(r,o,e)){let a;null==i&&(a=function(){const t=Pi.lFrame;return null===t?null:t.currentSanitizer}())&&(i=a),ih(s,s.data[tn()+20],r,r[11],t,r[o+1]=function(t,e){null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=It(sr(t))));return t}(e,i),n,o)}}function Xu(t,e,i,n){const r=Ei(),s=Bi(2);r.firstUpdatePass&&Qu(r,null,s,n);const o=Di();if(i!==cs&&wl(o,s,i)){const a=r.data[tn()+20];if(sh(a,n)&&!Zu(r,s)){0;let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=Mt(t,i||"")),Zl(r,a,o,i,n)}else!function(t,e,i,n,r,s,o,a){r===cs&&(r=Tu);let l=0,u=0,h=0<r.length?r[0]:null,c=0<s.length?s[0]:null;for(;null!==h||null!==c;){const p=l<r.length?r[l+1]:void 0,d=u<s.length?s[u+1]:void 0;let f=null,g=void 0;h===c?(l+=2,u+=2,p!==d&&(f=c,g=d)):null===c||null!==h&&h<c?(l+=2,f=h):(u+=2,f=c,g=d),null!==f&&ih(t,e,i,n,f,g,o,a),h=l<r.length?r[l]:null,c=u<s.length?s[u]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(t,e,i){if(null==i||""===i)return Tu;const n=[],r=sr(i);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(n,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(n,s,r[s]);else"string"==typeof r&&e(n,r);return n}(t,e,i),n,s)}}function Zu(t,e){return e>=t.expandoStartIndex}function Qu(t,e,i,n){const r=t.data;if(null===r[i+1]){const s=r[tn()+20],o=Zu(t,i);sh(s,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const r=Ui(t);let s=n?e.residualClasses:e.residualStyles;if(null===r){0===(n?e.classBindings:e.styleBindings)&&(i=th(i=Ju(null,t,e,i,n),e.attrs,n),s=null)}else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(i=Ju(r,t,e,i,n),null===s){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0===Ss(n))return;return t[ws(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Ju(null,t,e,i[1],n),i=th(i,e.attrs,n),function(t,e,i,n){const r=i?e.classBindings:e.styleBindings;t[ws(r)]=n}(t,e,n,i))}else s=function(t,e,i){let n=void 0;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++){const e=t[s].hostAttrs;n=th(n,e,i)}return th(n,e.attrs,i)}(t,e,n)}void 0!==s&&(n?e.residualClasses=s:e.residualStyles=s);return i}(r,s,e,n),ku(r,s,e,i,o,n)}}function Ju(t,e,i,n,r){let s=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a<o&&(s=e[a],n=th(n,s.hostAttrs,r),s!==t);)a++;return null!==t&&(i.directiveStylingLast=a),n}function th(t,e,i){const n=i?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===n&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),De(t,o,!!i||e[++s]))}return void 0===t?null:t}function eh(t,e,i){qr(e)&&(i=Ur(i)),De(t,e,i)}function ih(t,e,i,n,r,s,o,a){if(3!==e.type)return;const l=t.data,u=l[a+1];if(!rh(Ds(u)?nh(l,e,i,r,Ss(u),o):void 0)){rh(s)||Ps(u)&&(s=nh(l,null,i,r,a,o)),function(t,e,i,n,r){const s=li(t);if(e)r?s?t.addClass(i,n):i.classList.add(n):s?t.removeClass(i,n):i.classList.remove(n);else{const e=-1==n.indexOf("-")?void 0:2;null==r?s?t.removeStyle(i,n,e):i.style.removeProperty(n):s?t.setStyle(i,n,r,e):i.style.setProperty(n,r)}}(n,o,ci(tn(),i),r,s)}}function nh(t,e,i,n,r,s){const o=null===e;let a=void 0;for(;r>0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,u=null===l;let h=i[r+1];h===cs&&(h=u?Tu:void 0);let c=u?Ee(h,n):l===n?h:void 0;if(s&&!rh(c)&&(c=Ee(e,n)),rh(c)&&(a=c,o))return a;const p=t[r+1];r=o?ws(p):Ss(p)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=Ee(t,n))}return a}function rh(t){return void 0!==t}function sh(t,e){return 0!=(t.flags&(e?16:32))}function oh(t,e=""){const i=Di(),n=Ei(),r=t+20,s=n.firstCreatePass?Fs(n,i[6],t,3,null,null):n.data[r],o=i[r]=Oo(e,i[11]);Bo(n,i,o,s),Ii(s,!1)}function ah(t){return lh("",t,""),ah}function lh(t,e,i){const n=Di(),r=El(n,t,e,i);return r!==cs&&wo(n,tn(),r),lh}function uh(t,e,i,n,r){const s=Di(),o=Tl(s,t,e,i,n,r);return o!==cs&&wo(s,tn(),o),uh}function hh(t,e,i,n,r,s,o){const a=Di(),l=kl(a,t,e,i,n,r,s,o);return l!==cs&&wo(a,tn(),l),hh}function ch(t,e,i,n,r,s,o,a,l){const u=Di(),h=Il(u,t,e,i,n,r,s,o,a,l);return h!==cs&&wo(u,tn(),h),ch}function ph(t,e,i,n,r,s,o,a,l,u,h){const c=Di(),p=Ml(c,t,e,i,n,r,s,o,a,l,u,h);return p!==cs&&wo(c,tn(),p),ph}function dh(t,e,i,n,r,s,o,a,l,u,h,c,p){const d=Di(),f=Fl(d,t,e,i,n,r,s,o,a,l,u,h,c,p);return f!==cs&&wo(d,tn(),f),dh}function fh(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f){const g=Di(),m=Al(g,t,e,i,n,r,s,o,a,l,u,h,c,p,d,f);return m!==cs&&wo(g,tn(),m),fh}function gh(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m){const y=Di(),v=jl(y,t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m);return v!==cs&&wo(y,tn(),v),gh}function mh(t){const e=Di(),i=Dl(e,t);return i!==cs&&wo(e,tn(),i),mh}function yh(t,e,i){Xu(De,Yu,El(Di(),t,e,i),!0)}function vh(t,e,i,n,r){Xu(De,Yu,Tl(Di(),t,e,i,n,r),!0)}function bh(t,e,i,n,r,s,o){Xu(De,Yu,kl(Di(),t,e,i,n,r,s,o),!0)}function _h(t,e,i,n,r,s,o,a,l){Xu(De,Yu,Il(Di(),t,e,i,n,r,s,o,a,l),!0)}function xh(t,e,i,n,r,s,o,a,l,u,h){Xu(De,Yu,Ml(Di(),t,e,i,n,r,s,o,a,l,u,h),!0)}function wh(t,e,i,n,r,s,o,a,l,u,h,c,p){Xu(De,Yu,Fl(Di(),t,e,i,n,r,s,o,a,l,u,h,c,p),!0)}function Ph(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f){Xu(De,Yu,Al(Di(),t,e,i,n,r,s,o,a,l,u,h,c,p,d,f),!0)}function Ch(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m){Xu(De,Yu,jl(Di(),t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m),!0)}function Sh(t){Xu(De,Yu,Dl(Di(),t),!0)}function Oh(t,e,i){Gu(El(Di(),t,e,i))}function Dh(t,e,i,n,r){Gu(Tl(Di(),t,e,i,n,r))}function Eh(t,e,i,n,r,s,o){Gu(kl(Di(),t,e,i,n,r,s,o))}function Th(t,e,i,n,r,s,o,a,l){Gu(Il(Di(),t,e,i,n,r,s,o,a,l))}function kh(t,e,i,n,r,s,o,a,l,u,h){Gu(Ml(Di(),t,e,i,n,r,s,o,a,l,u,h))}function Ih(t,e,i,n,r,s,o,a,l,u,h,c,p){Gu(Fl(Di(),t,e,i,n,r,s,o,a,l,u,h,c,p))}function Mh(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f){Gu(Al(Di(),t,e,i,n,r,s,o,a,l,u,h,c,p,d,f))}function Fh(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m){Gu(jl(Di(),t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m))}function Ah(t){Gu(Dl(Di(),t))}function jh(t,e,i,n,r){return qu(t,El(Di(),e,i,n),r,!1),jh}function Lh(t,e,i,n,r,s,o){return qu(t,Tl(Di(),e,i,n,r,s),o,!1),Lh}function Vh(t,e,i,n,r,s,o,a,l){return qu(t,kl(Di(),e,i,n,r,s,o,a),l,!1),Vh}function Rh(t,e,i,n,r,s,o,a,l,u,h){return qu(t,Il(Di(),e,i,n,r,s,o,a,l,u),h,!1),Rh}function Nh(t,e,i,n,r,s,o,a,l,u,h,c,p){return qu(t,Ml(Di(),e,i,n,r,s,o,a,l,u,h,c),p,!1),Nh}function Bh(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f){return qu(t,Fl(Di(),e,i,n,r,s,o,a,l,u,h,c,p,d),f,!1),Bh}function Hh(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m){return qu(t,Al(Di(),e,i,n,r,s,o,a,l,u,h,c,p,d,f,g),m,!1),Hh}function zh(t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,y,v){return qu(t,jl(Di(),e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,y),v,!1),zh}function Uh(t,e,i){return qu(t,Dl(Di(),e),i,!1),Uh}function Wh(t,e,i){const n=Di(),r=Ni();if(wl(n,r,e)){const r=Ei(),s=nn();$s(r,s,n,t,e,n[11],i,!0)}return Wh}function Gh(t,e,i){const n=Di(),r=Ni();if(wl(n,r,e)){const r=Ei(),s=nn();$s(r,s,n,t,e,bo(Ui(r.data),s,n),i,!0)}return Gh}function $h(t,e,i,n,r,s){const o=i[1];i[20]=t;const a=Fs(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(dl(a,l,!0),null!==t&&(gn(r,t,l),null!==a.classes&&Yo(r,t,a.classes),null!==a.styles&&Ko(r,t,a.styles)));const u=n.createRenderer(t,e),h=Ms(i,Hs(e),null,e.onPush?64:16,i[20],a,n,u,s);return o.firstCreatePass&&(Rn(An(a,i),o,e.type),Qs(o,a),to(a,i.length,1)),uo(i,h),i[20]=h}function Kh(t,e,i,n,r){const s=i[1],o=function(t,e,i){const n=ki();t.firstCreatePass&&(i.providersResolver&&i.providersResolver(i),Zs(t,n,1),eo(t,e,i));const r=Un(e,t,e.length-1,n);Zr(r,e);const s=pi(n,e);return s&&Zr(s,e),r}(s,i,e);n.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,i.length-1);const a=ki();if(s.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){en(a.index-20);const t=i[1];Ys(t,e),qs(t,i,e.hostVars),Xs(e,o)}return o}function Yh(t,e){return{components:[],scheduler:t||On,clean:mo,playerHandler:e||null,flags:0}}function qh(t,e){const i=yi(t)[1],n=i.data.length-1;ln(i,{directiveStart:n,directiveEnd:n+1})}function Xh(t){return Object.getPrototypeOf(t.prototype).constructor}function Zh(t){let e=Xh(t.type),i=!0;const n=[t];for(;e;){let r=void 0;if(ni(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(i){n.push(r);const e=t;e.inputs=Qh(t.inputs),e.declaredInputs=Qh(t.declaredInputs),e.outputs=Qh(t.outputs);const i=r.hostBindings;i&&ec(t,i);const s=r.viewQuery,o=r.contentQueries;if(s&&Jh(t,s),o&&tc(t,o),_t(t.inputs,r.inputs),_t(t.declaredInputs,r.declaredInputs),_t(t.outputs,r.outputs),ni(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}e.afterContentChecked=e.afterContentChecked||r.afterContentChecked,e.afterContentInit=t.afterContentInit||r.afterContentInit,e.afterViewChecked=t.afterViewChecked||r.afterViewChecked,e.afterViewInit=t.afterViewInit||r.afterViewInit,e.doCheck=t.doCheck||r.doCheck,e.onDestroy=t.onDestroy||r.onDestroy,e.onInit=t.onInit||r.onInit}const e=r.features;if(e)for(let n=0;n<e.length;n++){const r=e[n];r&&r.ngInherit&&r(t),r===Zh&&(i=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){const r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=vn(r.hostAttrs,i=vn(i,r.hostAttrs))}}(n)}function Qh(t){return t===Ae?{}:t===je?[]:t}function Jh(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function tc(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,r)=>{e(t,n,r),i(t,n,r)}:e}function ec(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}const ic=["providersResolver"],nc=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function rc(t){let e=Xh(t.type),i=void 0;i=ni(t)?e.\u0275cmp:e.\u0275dir;const n=t;for(const r of ic)n[r]=i[r];if(ni(i))for(const r of nc)n[r]=i[r]}class sc{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function oc(t){t.type.prototype.ngOnChanges&&(t.setInput=ac,t.onChanges=function(){const t=lc(this),e=t&&t.current;if(e){const i=t.previous;if(i===Ae)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function ac(t,e,i,n){const r=lc(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ae,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[i],l=o[a];s[a]=new sc(l&&l.currentValue,e,o===Ae),t[n]=e}oc.ngInherit=!0;function lc(t){return t.__ngSimpleChanges__||null}function uc(t,e,i,n,r){if(t=jt(t),Array.isArray(t))for(let s=0;s<t.length;s++)uc(t[s],e,i,n,r);else{const s=Ei(),o=Di();let a=La(t)?t:jt(t.provide),l=Fa(t);const u=ki(),h=65535&u.providerIndexes,c=u.directiveStart,p=u.providerIndexes>>16;if(La(t)||!t.multi){const n=new fn(l,r,Kl),d=pc(a,e,r?h:h+p,c);-1===d?(Rn(An(u,o),s,a),hc(s,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=65536),i.push(n),o.push(n)):(i[d]=n,o[d]=n)}else{const d=pc(a,e,h+p,c),f=pc(a,e,h,h+p),g=d>=0&&i[d],m=f>=0&&i[f];if(r&&!m||!r&&!g){Rn(An(u,o),s,a);const h=function(t,e,i,n,r){const s=new fn(t,i,Kl);return s.multi=[],s.index=e,s.componentProviders=0,cc(s,r,n&&!i),s}(r?fc:dc,i.length,r,n,l);!r&&m&&(i[f].providerFactory=h),hc(s,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=65536),i.push(h),o.push(h)}else{hc(s,t,d>-1?d:f,cc(i[r?f:d],l,!r&&n))}!r&&n&&m&&i[f].componentProviders++}}}function hc(t,e,i,n){const r=La(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,s]):o[t+1].push(n,s)}else o.push(i,s)}}}function cc(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function pc(t,e,i,n){for(let r=i;r<n;r++)if(e[r]===t)return r;return-1}function dc(t,e,i,n){return gc(this.multi,[])}function fc(t,e,i,n){const r=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Un(i,i[1],this.providerFactory.index,n);s=e.slice(0,t),gc(r,s);for(let i=t;i<e.length;i++)s.push(e[i])}else s=[],gc(r,s);return s}function gc(t,e){for(let i=0;i<t.length;i++){const n=t[i];e.push(n())}return e}function mc(t,e=[]){return i=>{i.providersResolver=(i,n)=>function(t,e,i){const n=Ei();if(n.firstCreatePass){const r=ni(t);uc(i,n.data,n.blueprint,r,!0),uc(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}class yc{}class vc{}function bc(t){const e=Error(`No component factory found for ${It(t)}. Did you add it to @NgModule.entryComponents?`);return e[_c]=t,e}const _c="ngComponent";class xc{}xc.NULL=new class{resolveComponentFactory(t){throw bc(t)}};class wc{constructor(t){this.nativeElement=t}}wc.__NG_ELEMENT_ID__=()=>Pc(wc);const Pc=function(t){return ta(t,ki(),Di())};new Jt("Renderer2Interceptor");class Cc{}const Sc={Important:1,DashCase:2};Sc[Sc.Important]="Important",Sc[Sc.DashCase]="DashCase";class Oc{}Oc.__NG_ELEMENT_ID__=()=>Dc();const Dc=function(){const t=Di(),e=gi(ki().index,t);return function(t){const e=t[11];if(li(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Qe(e)?e:t)};class Ec{}Ec.\u0275prov=xt({token:Ec,providedIn:"root",factory:()=>null});class Tc{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const kc=new Tc("9.1.9");class Ic{constructor(){}supports(t){return vl(t)}create(t){return new Fc(t)}}const Mc=(t,e)=>e;class Fc{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Mc}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex<Vc(i,n,r)?e:i,o=Vc(s,n,r),a=s.currentIndex;if(s===i)n--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)n++;else{r||(r=[]);const t=o-n,e=a-n;if(t!=e){for(let i=0;i<t;i++){const n=i<r.length?r[i]:r[i]=0,s=n+i;e<=s&&s<t&&(r[i]=n+1)}r[s.previousIndex]=e-t}}o!==a&&t(s,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!vl(t))throw new Error(`Error trying to diff '${It(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,i,n,r=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)i=t[e],n=this._trackByFn(e,i),null!==r&&ml(r.trackById,n)?(s&&(r=this._verifyReinsertion(r,i,n,e)),ml(r.item,i)||this._addIdentityChange(r,i)):(r=this._mismatch(r,i,n,e),s=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let i=0;i<t.length;i++)e(t[i]);else{const i=t[gl()]();let n;for(;!(n=i.next()).done;)e(n.value)}}(t,t=>{n=this._trackByFn(e,t),null!==r&&ml(r.trackById,n)?(s&&(r=this._verifyReinsertion(r,t,n,e)),ml(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,n,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(ml(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(ml(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,n)):t=this._addAfter(new Ac(e,i),r,n),t}_verifyReinsertion(t,e,i,n){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,r=t._nextRemoved;return null===n?this._removalsHead=r:n._nextRemoved=r,null===r?this._removalsTail=n:r._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Lc),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Lc),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}}class Ac{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class jc{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&ml(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Lc{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new jc,this.map.set(e,i)),i.add(t)}get(t,e){const i=t,n=this.map.get(i);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Vc(t,e,i){const n=t.previousIndex;if(null===n)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+e+r}class Rc{constructor(){}supports(t){return t instanceof Map||bl(t)}create(){return new Nc}}class Nc{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||bl(t)))throw new Error(`Error trying to diff '${It(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,i)=>{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,r=i._next;return n&&(n._next=r),r&&(r._prev=n),i._next=null,i._prev=null,i}const i=new Bc(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){ml(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Bc{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}class Hc{constructor(t){this.factories=t}static create(t,e){if(null!=e){const i=e.factories.slice();t=t.concat(i)}return new Hc(t)}static extend(t){return{provide:Hc,useFactory:e=>{if(!e)throw new Error("Cannot extend IterableDiffers without a parent injector");return Hc.create(t,e)},deps:[[Hc,new gt,new dt]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}Hc.\u0275prov=xt({token:Hc,providedIn:"root",factory:()=>new Hc([new Ic])});class zc{constructor(t){this.factories=t}static create(t,e){if(e){const i=e.factories.slice();t=t.concat(i)}return new zc(t)}static extend(t){return{provide:zc,useFactory:e=>{if(!e)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return zc.create(t,e)},deps:[[zc,new gt,new dt]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}zc.\u0275prov=xt({token:zc,providedIn:"root",factory:()=>new zc([new Rc])});const Uc=[new Rc],Wc=[new Ic],Gc=new Hc(Wc),$c=new zc(Uc);class Kc{}Kc.__NG_ELEMENT_ID__=()=>Yc(Kc,wc);const Yc=function(t,e){return ea(t,e,ki(),Di())};class qc{}qc.__NG_ELEMENT_ID__=()=>Xc(qc,wc);const Xc=function(t,e){return ia(t,e,ki(),Di())};const Zc=new Map;function Qc(t){let e=Zc.get(t);return e||(e=It(t)+"_"+Zc.size,Zc.set(t,e)),e}new WeakMap;Qc(Ra),Qc(te),Qc(ye);Qc(Oc),Qc(wc),Qc(qc),Qc(Kc),Qc(ra),Qc(Ra),Qc(te);const Jc={};class tp extends xc{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Ke(t);return new np(e,this.ngModule)}}function ep(t){const e=[];for(let i in t)if(t.hasOwnProperty(i)){const n=t[i];e.push({propName:n,templateName:i})}return e}const ip=new Jt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>On});class np extends vc{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(hs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ep(this.componentDef.inputs)}get outputs(){return ep(this.componentDef.outputs)}create(t,e,i,n){const r=(n=n||this.ngModule)?function(t,e){return{get:(i,n,r)=>{const s=t.get(i,Jc,r);return s!==Jc||n===Jc?s:e.get(i,n,r)}}}(t,n.injector):t,s=r.get(Cc,ui),o=r.get(Ec,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=i?Us(a,i,this.componentDef.encapsulation):Is(l,s.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,c="string"==typeof i&&/^#root-ng-internal-isolated-\d+/.test(i),p=Yh(),d=zs(0,-1,null,1,0,null,null,null,null,null),f=Ms(null,d,p,h,null,null,s,a,o,r);let g,m;Ki(f,null);try{const t=$h(u,this.componentDef,f,s,a);if(u)if(i)gn(a,u,["ng-version",kc.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,r=2;for(;n<t.length;){let s=t[n];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++n]):8===r&&i.push(s);else{if(!ss(r))break;r=s}n++}return{attrs:e,classes:i}}(this.componentDef.selectors[0]);t&&gn(a,u,t),e&&e.length>0&&Yo(a,u,e.join(" "))}if(m=di(d,0),void 0!==e){const t=m.projection=[];for(let i=0;i<this.ngContentSelectors.length;i++){const n=e[i];t.push(null!=n?Array.from(n):null)}}g=Kh(t,this.componentDef,f,p,[qh]),As(d,f,null)}finally{Qi()}const y=new rp(this.componentType,g,ta(wc,m,f),f,m);return i&&!c||(d.node.child=m),y}}new tp;class rp extends yc{constructor(t,e,i,n,r){super(),this.location=i,this._rootLView=n,this._tNode=r,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Xo(n),function(t,e,i,n){let r=t.node;null==r&&(t.node=r=Ws(t,e,2,i,null,null)),n[6]=r}(n[1],null,-1,n),this.componentType=t}get injector(){return new $n(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}var sp=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let op={};function ap(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=up(e);if(i)return i;const n=e.split("-")[0];if(i=up(n),i)return i;if("en"===n)return sp;throw new Error(`Missing locale data for the locale "${t}".`)}function lp(t){return ap(t)[hp.PluralCase]}function up(t){return t in op||(op[t]=Ht.ng&&Ht.ng.common&&Ht.ng.common.locales&&Ht.ng.common.locales[t]),op[t]}const hp={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};hp[hp.LocaleId]="LocaleId",hp[hp.DayPeriodsFormat]="DayPeriodsFormat",hp[hp.DayPeriodsStandalone]="DayPeriodsStandalone",hp[hp.DaysFormat]="DaysFormat",hp[hp.DaysStandalone]="DaysStandalone",hp[hp.MonthsFormat]="MonthsFormat",hp[hp.MonthsStandalone]="MonthsStandalone",hp[hp.Eras]="Eras",hp[hp.FirstDayOfWeek]="FirstDayOfWeek",hp[hp.WeekendRange]="WeekendRange",hp[hp.DateFormat]="DateFormat",hp[hp.TimeFormat]="TimeFormat",hp[hp.DateTimeFormat]="DateTimeFormat",hp[hp.NumberSymbols]="NumberSymbols",hp[hp.NumberFormats]="NumberFormats",hp[hp.CurrencyCode]="CurrencyCode",hp[hp.CurrencySymbol]="CurrencySymbol",hp[hp.CurrencyName]="CurrencyName",hp[hp.Currencies]="Currencies",hp[hp.Directionality]="Directionality",hp[hp.PluralCase]="PluralCase",hp[hp.ExtraData]="ExtraData";const cp=["zero","one","two","few","many"];const pp=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,dp=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,fp=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,gp=/\ufffd(\d+):?\d*\ufffd/gi,mp=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,yp=/\[(\ufffd.+?\ufffd?)\]/,vp=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,bp=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,_p=/{([A-Z0-9_]+)}/g,xp=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,wp=/\/\*/,Pp=/\d+\:(\d+)/;function Cp(t){if(!t)return[];let e=0;const i=[],n=[],r=/[{}]/g;let s;for(r.lastIndex=0;s=r.exec(t);){const r=s.index;if("}"==s[0]){if(i.pop(),0==i.length){const i=t.substring(e,r);pp.test(i)?n.push(Sp(i)):n.push(i),e=r+1}}else{if(0==i.length){const i=t.substring(e,r);n.push(i),e=r+1}i.push("{")}}const o=t.substring(e);return n.push(o),n}function Sp(t){const e=[],i=[];let n=1,r=0;const s=Cp(t=t.replace(pp,(function(t,e,i){return n="select"===i?0:1,r=parseInt(e.substr(1),10),""})));for(let o=0;o<s.length;){let t=s[o++].trim();1===n&&(t=t.replace(/\s*(?:=)?(\w+)\s*/,"$1")),t.length&&e.push(t);const r=Cp(s[o++]);e.length>i.length&&i.push(r)}return{type:n,mainBinding:r,cases:e,values:i}}function Op(t){let e,i,n="",r=0,s=!1;for(;null!==(e=dp.exec(t));)s?e[0]===`\ufffd/*${i}\ufffd`&&(r=e.index,s=!1):(n+=t.substring(r,e.index+e[0].length),i=e[1],s=!0);return n+=t.substr(r),n}function Dp(t,e,i,n=null){const r=[null,null],s=t.split(gp);let o=0;for(let a=0;a<s.length;a++){const t=s[a];if(1&a){const e=parseInt(t,10);r.push(-1-e),o|=Ip(e)}else""!==t&&r.push(t)}return r.push(e<<2|(i?1:0)),i&&r.push(i,n),r[0]=o,r[1]=r.length-2,r}function Ep(t,e=0){let i;e|=Ip(t.mainBinding);for(let n=0;n<t.values.length;n++){const r=t.values[n];for(let t=0;t<r.length;t++){const n=r[t];if("string"==typeof n)for(;i=gp.exec(n);)e|=Ip(parseInt(i[1],10));else e=Ep(n,e)}}return e}const Tp=[];let kp=-1;function Ip(t){return 1<<Math.min(t,31)}const Mp=[];function Fp(t,e,i){const n=Ei();Tp[++kp]=t,yu(!0),n.firstCreatePass&&null===n.data[t+20]&&function(t,e,i,n,r){const s=e.blueprint.length-20;Ap=0;const o=ki(),a=Mi()?o:o&&o.parent;let l=a&&a!==t[6]?a.index-20:i,u=0;Mp[u]=l;const h=[];if(i>0&&o!==a){let t=o.index-20;Mi()||(t=~t),h.push(t<<3|0)}const c=[],p=[];if(""===n&&Vp(r))h.push(n,jp(s),l<<17|1);else{const t=function(t,e){if(Vp(e))return Op(t);{const i=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,n=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return Op(t.substring(i,n))}}(n,r),e=(d=t,d.replace(Jp," ")).split(fp);for(let i=0;i<e.length;i++){let n=e[i];if(1&i)if("/"===n.charAt(0)){if("#"===n.charAt(1)){const t=parseInt(n.substr(2),10);l=Mp[--u],h.push(t<<3|5)}}else{const t=parseInt(n.substr(1),10),e="#"===n.charAt(0);h.push((e?t:~t)<<3|0,l<<17|1),e&&(Mp[++u]=l=t)}else{const e=Cp(n);for(let i=0;i<e.length;i++)if(1&i){const n=e[i];if("object"!=typeof n)throw new Error(`Unable to parse ICU expression in "${t}" message.`);const r=jp(s);h.push(_s,"",r,l<<17|1);const o=Ep(n);Xp(p,n,r,r);const a=p.length-1;c.push(Ip(n.mainBinding),3,-1-n.mainBinding,r<<2|2,a,o,2,r<<2|3,a)}else if(""!==e[i]){const t=e[i],n=t.match(gp),r=jp(s);h.push(n?"":t,r,l<<17|1),n&&xe(Dp(t,r),c)}}}}var d;Ap>0&&function(t,e,i){if(i>0&&t.firstCreatePass){for(let n=0;n<i;n++)t.blueprint.push(null),t.data.push(null),e.push(null);t.expandoInstructions?t.expandoInstructions.push(i):t.expandoStartIndex+=i}}(e,t,Ap);const f={vars:Ap,create:h,update:c,icus:p.length?p:null};e.data[i+20]=f}(Di(),n,t,e,i)}let Ap;function jp(t){return t+Ap++}function Lp(t,e,i,n,r){const s=e.next;n||(n=i),n===i&&e!==i.child?(e.next=i.child,i.child=e):n!==i&&e!==n.next?(e.next=n.next,n.next=e):e.next=null,i!==r[6]&&(e.parent=i);let o=e.next;for(;o;)o.next===e&&(o.next=s),o=o.next;if(1===e.type)return Go(t,r,e),e;Bo(t,r,pi(e,r),e);const a=r[e.index];return 0!==e.type&&Je(a)&&Bo(t,r,a[7],e),e}function Vp(t){return void 0===t}function Rp(t,e={}){let i=t;if(yp.test(t)){const t={},e=[0];i=i.replace(vp,(i,n,r)=>{const s=n||r,o=t[s]||[];if(o.length||(s.split("|").forEach(t=>{const e=t.match(Pp),i=e?parseInt(e[1],10):0,n=wp.test(t);o.push([i,n,t])}),t[s]=o),!o.length)throw new Error(`i18n postprocess: unmatched placeholder - ${s}`);const a=e[e.length-1];let l=0;for(let t=0;t<o.length;t++)if(o[t][0]===a){l=t;break}const[u,h,c]=o[l];return h?e.pop():a!==u&&e.push(u),o.splice(l,1),c})}return Object.keys(e).length?(i=i.replace(bp,(t,i,n,r,s,o)=>e.hasOwnProperty(n)?`${i}${e[n]}${o}`:t),i=i.replace(_p,(t,i)=>e.hasOwnProperty(i)?e[i]:t),i=i.replace(xp,(t,i)=>{if(e.hasOwnProperty(i)){const n=e[i];if(!n.length)throw new Error(`i18n postprocess: unmatched ICU - ${t} with key: ${i}`);return n.shift()}return t}),i):i}function Np(){const t=Di(),e=Ei();!function(t,e){const i=Tp[kp--],n=t.data[i+20];const r=ki(),s=Hp(i,n.create,t,e);let o=i+1;for(;o<=r.index-20;){-1===s.indexOf(o)&&zp(t,e,o,!0);const i=di(t,o);!i||0!==i.type&&3!==i.type&&4!==i.type||null===i.localNames||(o+=i.localNames.length>>1),o++}}(e,t),yu(!1)}function Bp(t,e,i,n,r,s){const o=ki();e[i+20]=r;const a=Fs(t,e[6],i,n,s,null);return o&&o.next===a&&(o.next=null),a}function Hp(t,e,i,n){const r=n[11];let s=null,o=null;const a=[];for(let l=0;l<e.length;l++){const u=e[l];if("string"==typeof u){const t=Oo(u,r),h=e[++l];o=s,s=Bp(i,n,h,3,t,null),a.push(h),Fi()}else if("number"==typeof u)switch(7&u){case 1:const r=u>>>17;let h;h=r===t?n[6]:di(i,r),o=Lp(i,s,h,o,n);break;case 0:const c=u>=0,p=(c?u:~u)>>>3;a.push(p),o=s,s=di(i,p),s&&Ii(s,c);break;case 5:o=s=di(i,u>>>3),Ii(s,!1);break;case 4:const d=u>>>3,f=e[++l],g=e[++l];no(di(i,d),n,f,g,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${u}"`)}else switch(u){case _s:const t=e[++l],h=e[++l],c=r.createComment(t);o=s,s=Bp(i,n,h,5,c,null),a.push(h),Zr(c,n),s.activeCaseIndex=null,Fi();break;case bs:const p=e[++l],d=e[++l];o=s,s=Bp(i,n,d,3,r.createElement(p),p),a.push(d);break;default:throw new Error(`Unable to determine the type of mutate operation for "${u}"`)}}return Fi(),a}function zp(t,e,i,n){const r=di(t,i),s=ci(i,e);s&&zo(e[11],s);const o=fi(e,i);if(Je(o)){const t=o;0!==r.type&&zo(e[11],t[7])}n&&(r.flags|=64)}function Up(t,e,i){Fp(t,e,i),Np()}function Wp(t,e){const i=Di(),n=Ei();!function(t,e,i,n){const r=ki().index-20,s=[];for(let o=0;o<n.length;o+=2){const a=n[o],l=n[o+1].split(mp);for(let n=0;n<l.length;n++){const o=l[n];if(1&n)throw new Error("ICU expressions are not yet supported in attributes");if(""!==o){if(!!o.match(gp))e.firstCreatePass&&null===e.data[i+20]&&xe(Dp(o,r,a),s);else{const i=di(e,r);3===i.type&&no(i,t,a,o,null,null);const n=null!==i.inputs&&i.inputs[a];n&&xo(e,t,n,a,o)}}}}e.firstCreatePass&&null===e.data[i+20]&&(e.data[i+20]=s)}(i,n,t,e)}let Gp=0,$p=0;function Kp(t){return wl(Di(),Ni(),t)&&(Gp|=1<<$p),$p++,Kp}function Yp(t){if($p){const e=Ei(),i=e.data[t+20];let n,r=null;Array.isArray(i)?n=i:(n=i.update,r=i.icus);const s=Vi()-$p-1,o=Di();!function t(e,i,n,r,s,o,a=!1){let l=!1;for(let u=0;u<e.length;u++){const h=e[u],c=e[++u];if(a||h&r){let a="";for(let h=u+1;h<=u+c;h++){const u=e[h];if("string"==typeof u)a+=u;else if("number"==typeof u)if(u<0)a+=Cn(o[n-u]);else{const c=u>>>2;let p,d,f;switch(3&u){case 1:const u=e[++h],g=e[++h];$s(s,di(s,c),o,u,a,o[11],g,!1);break;case 0:wo(o,c,a);break;case 2:if(p=e[++h],d=i[p],f=di(s,c),null!==f.activeCaseIndex){const t=d.remove[f.activeCaseIndex];for(let e=0;e<t.length;e++){const n=t[e];switch(7&n){case 3:zp(s,o,n>>>3,!1);break;case 6:const r=di(s,t[e+1]>>>3).activeCaseIndex;if(null!==r){xe(i[n>>>3].remove[r],t)}}}}const m=qp(d,a);f.activeCaseIndex=-1!==m?m:null,m>-1&&(Hp(-1,d.create[m],s,o),l=!0);break;case 3:p=e[++h],d=i[p],f=di(s,c),null!==f.activeCaseIndex&&t(d.update[f.activeCaseIndex],i,n,r,s,o,l)}}}}u+=c}}(n,r,s,Gp,e,o),Gp=0,$p=0}}function qp(t,e){let i=t.cases.indexOf(e);if(-1===i)switch(t.type){case 1:{const n=function(t,e){const i=lp(e)(parseInt(t,10)),n=cp[i];return void 0!==n?n:"other"}(e,td);i=t.cases.indexOf(n),-1===i&&"other"!==n&&(i=t.cases.indexOf("other"));break}case 0:i=t.cases.indexOf("other")}return i}function Xp(t,e,i,n){const r=[],s=[],o=[],a=[],l=[];for(let h=0;h<e.values.length;h++){const u=e.values[h],c=[];for(let t=0;t<u.length;t++){const e=u[t];if("string"!=typeof e){const i=c.push(e)-1;u[t]=`\x3c!--\ufffd${i}\ufffd--\x3e`}}const p=Zp(u.join(""),i,c,t,n);r.push(p.create),s.push(p.remove),o.push(p.update),a.push(p.vars),l.push(p.childIcus)}const u={type:e.type,vars:a,childIcus:l,cases:e.cases,create:r,remove:s,update:o};t.push(u),Ap+=Math.max(...a)}function Zp(t,e,i,n,r){const s=new cr(oi()).getInertBodyElement(t);if(!s)throw new Error("Unable to generate inert body element");const o={vars:0,childIcus:[],create:[],remove:[],update:[]};return function t(e,i,n,r,s,o){if(e){const a=[];for(;e;){const l=e.nextSibling,u=o+ ++i.vars;switch(e.nodeType){case Node.ELEMENT_NODE:const l=e,h=l.tagName.toLowerCase();if(Cr.hasOwnProperty(h)){i.create.push(bs,h,u,n<<17|1);const a=l.attributes;for(let t=0;t<a.length;t++){const e=a.item(t),n=e.name.toLowerCase();!!e.value.match(gp)?Tr.hasOwnProperty(n)&&(Sr[n]?xe(Dp(e.value,u,e.name,fr),i.update):Or[n]?xe(Dp(e.value,u,e.name,gr),i.update):xe(Dp(e.value,u,e.name),i.update)):i.create.push(u<<3|4,e.name,e.value)}t(e.firstChild,i,u,r,s,o),i.remove.push(u<<3|3)}else i.vars--;break;case Node.TEXT_NODE:const c=e.textContent||"",p=c.match(gp);i.create.push(p?"":c,u,n<<17|1),i.remove.push(u<<3|3),p&&xe(Dp(c,u),i.update);break;case Node.COMMENT_NODE:const d=Qp.exec(e.textContent||"");if(d){const t=parseInt(d[1],10),e="";i.create.push(_s,e,u,n<<17|1);const s=r[t];a.push([s,u])}else i.vars--;break;default:i.vars--}e=l}for(let t=0;t<a.length;t++){const e=a[t][0],n=a[t][1];Xp(s,e,n,o+i.vars);const r=s.length-1;i.vars+=Math.max(...s[r].vars),i.childIcus.push(r);const l=Ep(e);i.update.push(Ip(e.mainBinding),3,-1-e.mainBinding,n<<2|2,r,l,2,n<<2|3,r),i.remove.push(r<<3|6,n<<3|3)}}}((Vr(s)||s).firstChild,o,e,i,n,r),o}const Qp=/\ufffd(\d+)\ufffd/;const Jp=/\uE500/g;let td="en-US";function ed(t){be(t,"Expected localeId to be defined"),"string"==typeof t&&(td=t.toLowerCase().replace(/_/g,"-"))}const id=new Map;function nd(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${It(e)} vs ${It(e.name)}`)}class rd extends ye{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new tp(this);const i=Ze(t),n=t[Xt]||null;n&&ed(n),this._bootstrapComponents=kn(i.bootstrap),this._r3Injector=ka(t,e,[{provide:ye,useValue:this},{provide:xc,useValue:this.componentFactoryResolver}],It(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ra.THROW_IF_NOT_FOUND,i=vt.Default){return t===Ra||t===ye||t===te?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class sd extends ve{constructor(t){super(),this.moduleType=t,null!==Ze(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;nd(t,id.get(t),e),id.set(t,e)}let i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach(e=>t(e))}(t)}create(t){return new rd(this.moduleType,t)}}function od(t,e,i){const n=Li()+t,r=Di();return r[n]===cs?_l(r,n,i?e.call(i):e()):xl(r,n)}function ad(t,e,i,n){return yd(Di(),Li(),t,e,i,n)}function ld(t,e,i,n,r){return vd(Di(),Li(),t,e,i,n,r)}function ud(t,e,i,n,r,s){return bd(Di(),Li(),t,e,i,n,r,s)}function hd(t,e,i,n,r,s,o){return _d(Di(),Li(),t,e,i,n,r,s,o)}function cd(t,e,i,n,r,s,o,a){const l=Li()+t,u=Di(),h=Sl(u,l,i,n,r,s);return wl(u,l+4,o)||h?_l(u,l+5,a?e.call(a,i,n,r,s,o):e(i,n,r,s,o)):xl(u,l+5)}function pd(t,e,i,n,r,s,o,a,l){const u=Li()+t,h=Di(),c=Sl(h,u,i,n,r,s);return Pl(h,u+4,o,a)||c?_l(h,u+6,l?e.call(l,i,n,r,s,o,a):e(i,n,r,s,o,a)):xl(h,u+6)}function dd(t,e,i,n,r,s,o,a,l,u){const h=Li()+t,c=Di();let p=Sl(c,h,i,n,r,s);return Cl(c,h+4,o,a,l)||p?_l(c,h+7,u?e.call(u,i,n,r,s,o,a,l):e(i,n,r,s,o,a,l)):xl(c,h+7)}function fd(t,e,i,n,r,s,o,a,l,u,h){const c=Li()+t,p=Di(),d=Sl(p,c,i,n,r,s);return Sl(p,c+4,o,a,l,u)||d?_l(p,c+8,h?e.call(h,i,n,r,s,o,a,l,u):e(i,n,r,s,o,a,l,u)):xl(p,c+8)}function gd(t,e,i,n){return xd(Di(),Li(),t,e,i,n)}function md(t,e){const i=t[e];return i===cs?void 0:i}function yd(t,e,i,n,r,s){const o=e+i;return wl(t,o,r)?_l(t,o+1,s?n.call(s,r):n(r)):md(t,o+1)}function vd(t,e,i,n,r,s,o){const a=e+i;return Pl(t,a,r,s)?_l(t,a+2,o?n.call(o,r,s):n(r,s)):md(t,a+2)}function bd(t,e,i,n,r,s,o,a){const l=e+i;return Cl(t,l,r,s,o)?_l(t,l+3,a?n.call(a,r,s,o):n(r,s,o)):md(t,l+3)}function _d(t,e,i,n,r,s,o,a,l){const u=e+i;return Sl(t,u,r,s,o,a)?_l(t,u+4,l?n.call(l,r,s,o,a):n(r,s,o,a)):md(t,u+4)}function xd(t,e,i,n,r,s){let o=e+i,a=!1;for(let l=0;l<r.length;l++)wl(t,o++,r[l])&&(a=!0);return a?_l(t,o,n.apply(s,r)):md(t,o)}function wd(t,e){const i=Ei();let n;const r=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new Error(`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];const s=n.factory||(n.factory=Xe(n.type)),o=ae(Kl),a=Mn(!1),l=s();return Mn(a),ae(o),function(t,e,i,n){const r=i+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}(i,Di(),t,l),l}function Pd(t,e,i){const n=Di(),r=fi(n,t);return Td(n,Ed(n,t)?yd(n,Li(),e,r.transform,i,r):r.transform(i))}function Cd(t,e,i,n){const r=Di(),s=fi(r,t);return Td(r,Ed(r,t)?vd(r,Li(),e,s.transform,i,n,s):s.transform(i,n))}function Sd(t,e,i,n,r){const s=Di(),o=fi(s,t);return Td(s,Ed(s,t)?bd(s,Li(),e,o.transform,i,n,r,o):o.transform(i,n,r))}function Od(t,e,i,n,r,s){const o=Di(),a=fi(o,t);return Td(o,Ed(o,t)?_d(o,Li(),e,a.transform,i,n,r,s,a):a.transform(i,n,r,s))}function Dd(t,e,i){const n=Di(),r=fi(n,t);return Td(n,Ed(n,t)?xd(n,Li(),e,r.transform,i,r):r.transform.apply(r,i))}function Ed(t,e){return t[1].data[e+20].pure}function Td(t,e){if(yl.isWrapped(e)){e=yl.unwrap(e),t[Vi()]=cs}return e}class kd extends D{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let n,r=t=>null,s=()=>null;t&&"object"==typeof t?(n=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(s=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(n,r,s);return t instanceof p&&t.add(o),o}}function Id(){return this._results[gl()]()}class Md{constructor(){this.dirty=!0,this._results=[],this.changes=new kd,this.length=0;const t=gl(),e=Md.prototype;e[t]||(e[t]=Id)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=we(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Fd{constructor(t){this.queryList=t,this.matches=null}clone(){return new Fd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ad{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,n=[];for(let t=0;t<i;t++){const i=e.getByIndex(t),r=this.queries[i.indexInDeclarationView];n.push(r.clone())}return new Ad(n)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Zd(t,e).matches&&this.queries[e].setDirty()}}class jd{constructor(t,e,i,n=null){this.predicate=t,this.descendants=e,this.isStatic=i,this.read=n}}class Ld{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const n=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(t,n);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new Ld(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Vd{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Vd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&4===i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const i=this.metadata.predicate;for(let n=0;n<i.length;n++)this.matchTNodeWithReadOption(t,e,Rd(e,i[n]))}else{const i=this.metadata.predicate;i===Kc?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,zn(e,t,i,!1,!1))}}matchTNodeWithReadOption(t,e,i){if(null!==i){const n=this.metadata.read;if(null!==n)if(n===wc||n===qc||n===Kc&&0===e.type)this.addMatch(e.index,-2);else{const i=zn(e,t,n,!1,!1);null!==i&&this.addMatch(e.index,i)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Rd(t,e){const i=t.localNames;if(null!==i)for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1];return null}function Nd(t,e,i,n){return-1===i?function(t,e){return 3===t.type||4===t.type?ta(wc,t,e):0===t.type?ea(Kc,wc,t,e):null}(e,t):-2===i?function(t,e,i){if(i===wc)return ta(wc,e,t);if(i===Kc)return ea(Kc,wc,e,t);if(i===qc)return ia(qc,wc,e,t)}(t,e,n):Un(t,t[1],i,e)}function Bd(t,e,i,n){const r=e[19].queries[n];if(null===r.matches){const n=t.data,s=i.matches,o=[];for(let t=0;t<s.length;t+=2){const r=s[t];if(r<0)o.push(null);else{const a=n[r];o.push(Nd(e,a,s[t+1],i.metadata.read))}}r.matches=o}return r.matches}function Hd(t){const e=Di(),i=Ei(),n=Wi();Gi(n+1);const r=Zd(i,n);if(t.dirty&&vi(e)===r.metadata.isStatic){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?function t(e,i,n,r){const s=e.queries.getByIndex(n),o=s.matches;if(null!==o){const a=Bd(e,i,s,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)r.push(a[e/2]);else{const s=o[e+1],a=i[-n];for(let e=10;e<a.length;e++){const i=a[e];i[17]===i[3]&&t(i[1],i,s,r)}if(null!==a[9]){const e=a[9];for(let i=0;i<e.length;i++){const n=e[i];t(n[1],n,s,r)}}}}}return r}(i,e,n,[]):Bd(i,e,r,n);t.reset(s),t.notifyOnChanges()}return!0}return!1}function zd(t,e,i){Wd(Ei(),Di(),t,e,i,!0)}function Ud(t,e,i){Wd(Ei(),Di(),t,e,i,!1)}function Wd(t,e,i,n,r,s){t.firstCreatePass&&(Xd(t,new jd(i,n,s,r),-1),s&&(t.staticViewQueries=!0)),qd(t,e)}function Gd(t,e,i,n){Kd(Ei(),Di(),e,i,n,!1,ki(),t)}function $d(t,e,i,n){Kd(Ei(),Di(),e,i,n,!0,ki(),t)}function Kd(t,e,i,n,r,s,o,a){t.firstCreatePass&&(Xd(t,new jd(i,n,s,r),o.index),function(t,e){const i=t.contentQueries||(t.contentQueries=[]),n=t.contentQueries.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}(t,a),s&&(t.staticContentQueries=!0)),qd(t,e)}function Yd(){return t=Di(),e=Wi(),t[19].queries[e].queryList;var t,e}function qd(t,e){const i=new Md;!function(t,e,i,n){const r=yo(e);r.push(i),t.firstCreatePass&&vo(t).push(n,r.length-1)}(t,e,i,i.destroy),null===e[19]&&(e[19]=new Ad),e[19].queries.push(new Fd(i))}function Xd(t,e,i){null===t.queries&&(t.queries=new Ld),t.queries.track(new Vd(e,i))}function Zd(t,e){return t.queries.getByIndex(e)}function Qd(t,e){return ea(Kc,wc,t,e)}function Jd(t=vt.Default){const e=na(!0);if(null!=e||t&vt.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}const tf={"\u0275\u0275attribute":Ol,"\u0275\u0275attributeInterpolate1":Ll,"\u0275\u0275attributeInterpolate2":Vl,"\u0275\u0275attributeInterpolate3":Rl,"\u0275\u0275attributeInterpolate4":Nl,"\u0275\u0275attributeInterpolate5":Bl,"\u0275\u0275attributeInterpolate6":Hl,"\u0275\u0275attributeInterpolate7":zl,"\u0275\u0275attributeInterpolate8":Ul,"\u0275\u0275attributeInterpolateV":Wl,"\u0275\u0275defineComponent":Ve,"\u0275\u0275defineDirective":Ge,"\u0275\u0275defineInjectable":xt,"\u0275\u0275defineInjector":wt,"\u0275\u0275defineNgModule":ze,"\u0275\u0275definePipe":$e,"\u0275\u0275directiveInject":Kl,"\u0275\u0275getFactoryOf":Kn,"\u0275\u0275getInheritedFactory":Yn,"\u0275\u0275inject":ue,"\u0275\u0275injectAttribute":Yl,"\u0275\u0275invalidFactory":ql,"\u0275\u0275invalidFactoryDep":he,"\u0275\u0275injectPipeChangeDetectorRef":Jd,"\u0275\u0275templateRefExtractor":Qd,"\u0275\u0275NgOnChangesFeature":oc,"\u0275\u0275ProvidersFeature":mc,"\u0275\u0275CopyDefinitionFeature":rc,"\u0275\u0275InheritDefinitionFeature":Zh,"\u0275\u0275nextContext":du,"\u0275\u0275namespaceHTML":on,"\u0275\u0275namespaceMathML":sn,"\u0275\u0275namespaceSVG":rn,"\u0275\u0275enableBindings":Si,"\u0275\u0275disableBindings":Oi,"\u0275\u0275elementStart":Jl,"\u0275\u0275elementEnd":tu,"\u0275\u0275element":eu,"\u0275\u0275elementContainerStart":iu,"\u0275\u0275elementContainerEnd":nu,"\u0275\u0275elementContainer":ru,"\u0275\u0275pureFunction0":od,"\u0275\u0275pureFunction1":ad,"\u0275\u0275pureFunction2":ld,"\u0275\u0275pureFunction3":ud,"\u0275\u0275pureFunction4":hd,"\u0275\u0275pureFunction5":cd,"\u0275\u0275pureFunction6":pd,"\u0275\u0275pureFunction7":dd,"\u0275\u0275pureFunction8":fd,"\u0275\u0275pureFunctionV":gd,"\u0275\u0275getCurrentView":su,"\u0275\u0275restoreView":Ti,"\u0275\u0275listener":lu,"\u0275\u0275projection":vu,"\u0275\u0275updateSyntheticHostBinding":Gh,"\u0275\u0275componentHostSyntheticListener":uu,"\u0275\u0275pipeBind1":Pd,"\u0275\u0275pipeBind2":Cd,"\u0275\u0275pipeBind3":Sd,"\u0275\u0275pipeBind4":Od,"\u0275\u0275pipeBindV":Dd,"\u0275\u0275projectionDef":gu,"\u0275\u0275hostProperty":Wh,"\u0275\u0275property":Xl,"\u0275\u0275propertyInterpolate":bu,"\u0275\u0275propertyInterpolate1":_u,"\u0275\u0275propertyInterpolate2":xu,"\u0275\u0275propertyInterpolate3":wu,"\u0275\u0275propertyInterpolate4":Pu,"\u0275\u0275propertyInterpolate5":Cu,"\u0275\u0275propertyInterpolate6":Su,"\u0275\u0275propertyInterpolate7":Ou,"\u0275\u0275propertyInterpolate8":Du,"\u0275\u0275propertyInterpolateV":Eu,"\u0275\u0275pipe":wd,"\u0275\u0275queryRefresh":Hd,"\u0275\u0275viewQuery":Ud,"\u0275\u0275staticViewQuery":zd,"\u0275\u0275staticContentQuery":$d,"\u0275\u0275loadQuery":Yd,"\u0275\u0275contentQuery":Gd,"\u0275\u0275reference":$l,"\u0275\u0275classMap":Ku,"\u0275\u0275classMapInterpolate1":yh,"\u0275\u0275classMapInterpolate2":vh,"\u0275\u0275classMapInterpolate3":bh,"\u0275\u0275classMapInterpolate4":_h,"\u0275\u0275classMapInterpolate5":xh,"\u0275\u0275classMapInterpolate6":wh,"\u0275\u0275classMapInterpolate7":Ph,"\u0275\u0275classMapInterpolate8":Ch,"\u0275\u0275classMapInterpolateV":Sh,"\u0275\u0275styleMap":Gu,"\u0275\u0275styleMapInterpolate1":Oh,"\u0275\u0275styleMapInterpolate2":Dh,"\u0275\u0275styleMapInterpolate3":Eh,"\u0275\u0275styleMapInterpolate4":Th,"\u0275\u0275styleMapInterpolate5":kh,"\u0275\u0275styleMapInterpolate6":Ih,"\u0275\u0275styleMapInterpolate7":Mh,"\u0275\u0275styleMapInterpolate8":Fh,"\u0275\u0275styleMapInterpolateV":Ah,"\u0275\u0275styleProp":Uu,"\u0275\u0275stylePropInterpolate1":jh,"\u0275\u0275stylePropInterpolate2":Lh,"\u0275\u0275stylePropInterpolate3":Vh,"\u0275\u0275stylePropInterpolate4":Rh,"\u0275\u0275stylePropInterpolate5":Nh,"\u0275\u0275stylePropInterpolate6":Bh,"\u0275\u0275stylePropInterpolate7":Hh,"\u0275\u0275stylePropInterpolate8":zh,"\u0275\u0275stylePropInterpolateV":Uh,"\u0275\u0275styleSanitizer":zu,"\u0275\u0275classProp":Wu,"\u0275\u0275select":ys,"\u0275\u0275advance":ms,"\u0275\u0275template":Gl,"\u0275\u0275text":oh,"\u0275\u0275textInterpolate":ah,"\u0275\u0275textInterpolate1":lh,"\u0275\u0275textInterpolate2":uh,"\u0275\u0275textInterpolate3":hh,"\u0275\u0275textInterpolate4":ch,"\u0275\u0275textInterpolate5":ph,"\u0275\u0275textInterpolate6":dh,"\u0275\u0275textInterpolate7":fh,"\u0275\u0275textInterpolate8":gh,"\u0275\u0275textInterpolateV":mh,"\u0275\u0275i18n":Up,"\u0275\u0275i18nAttributes":Wp,"\u0275\u0275i18nExp":Kp,"\u0275\u0275i18nStart":Fp,"\u0275\u0275i18nEnd":Np,"\u0275\u0275i18nApply":Yp,"\u0275\u0275i18nPostprocess":Rp,"\u0275\u0275resolveWindow":Dn,"\u0275\u0275resolveDocument":En,"\u0275\u0275resolveBody":Tn,"\u0275\u0275setComponentScope":Re,"\u0275\u0275setNgModuleScope":Ue,"\u0275\u0275sanitizeHtml":zr,"\u0275\u0275sanitizeStyle":Ur,"\u0275\u0275defaultStyleSanitizer":Yr,"\u0275\u0275sanitizeResourceUrl":Gr,"\u0275\u0275sanitizeScript":$r,"\u0275\u0275sanitizeUrl":Wr,"\u0275\u0275sanitizeUrlOrResourceUrl":Kr};let ef=null;const nf=[];const rf=[];let sf=!1;function of(t){return Array.isArray(t)?t.every(of):!!jt(t)}new Map,new Map;function af(t,e){const i=we(e.declarations||nf),n=uf(t);i.forEach(e=>{if(e.hasOwnProperty($t)){lf(Ke(e),n)}else e.hasOwnProperty(Kt)||e.hasOwnProperty(Yt)||(e.ngSelectorScope=t)})}function lf(t,e){t.directiveDefs=()=>Array.from(e.compilation.directives).map(t=>t.hasOwnProperty($t)?Ke(t):Ye(t)).filter(t=>!!t),t.pipeDefs=()=>Array.from(e.compilation.pipes).map(t=>qe(t)),t.schemas=e.schemas,t.tView=null}function uf(t){if(!cf(t))throw new Error(`${t.name} does not have a module def (\u0275mod property)`);const e=Ze(t);if(null!==e.transitiveCompileScopes)return e.transitiveCompileScopes;const i={schemas:e.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return kn(e.imports).forEach(t=>{const e=t;if(!cf(e))throw new Error(`Importing ${e.name} which does not have a \u0275mod property`);const n=uf(e);n.exported.directives.forEach(t=>i.compilation.directives.add(t)),n.exported.pipes.forEach(t=>i.compilation.pipes.add(t))}),kn(e.declarations).forEach(t=>{qe(t)?i.compilation.pipes.add(t):i.compilation.directives.add(t)}),kn(e.exports).forEach(t=>{const e=t;if(cf(e)){const t=uf(e);t.exported.directives.forEach(t=>{i.compilation.directives.add(t),i.exported.directives.add(t)}),t.exported.pipes.forEach(t=>{i.compilation.pipes.add(t),i.exported.pipes.add(t)})}else qe(e)?i.exported.pipes.add(e):i.exported.directives.add(e)}),e.transitiveCompileScopes=i,i}function hf(t){return function(t){return void 0!==t.ngModule}(t)?t.ngModule:t}function cf(t){return!!Ze(t)}function pf(t,e){let i=null;ff(t,e||{}),Object.defineProperty(t,Kt,{get:()=>{if(null===i){const n=df(t,e||{});i=Gt().compileDirective(tf,n.sourceMapUrl,n.metadata)}return i},configurable:!1})}function df(t,e){const i=t&&t.name,n=`ng:///${i}/\u0275dir.js`,r=Gt(),s=mf(t,e);return s.typeSourceSpan=r.createParseSourceSpan("Directive",i,n),s.usesInheritance&&yf(t),{metadata:s,sourceMapUrl:n}}function ff(t,e){let i=null;Object.defineProperty(t,Zt,{get:()=>{if(null===i){const n=df(t,e),r=Gt();i=r.compileFactory(tf,`ng:///${t.name}/\u0275fac.js`,Object.assign(Object.assign({},n.metadata),{injectFn:"directiveInject",target:r.R3FactoryTarget.Directive}))}return i},configurable:!1})}function gf(t){return Object.getPrototypeOf(t.prototype)===Object.prototype}function mf(t,e){const i=ma(),n=i.ownPropMetadata(t);return{name:t.name,type:t,typeArgumentCount:0,selector:void 0!==e.selector?e.selector:null,deps:ya(t),host:e.host||Ae,propMetadata:n,inputs:e.inputs||je,outputs:e.outputs||je,queries:bf(t,n,_f),lifecycle:{usesOnChanges:i.hasLifecycleHook(t,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!gf(t),exportAs:(r=e.exportAs,void 0===r?null:Pf(r)),providers:e.providers||null,viewQueries:bf(t,n,xf)};var r}function yf(t){const e=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==e;)Ye(i)||Ke(i)||!Sf(i)||pf(i,null),i=Object.getPrototypeOf(i)}function vf(t,e){return{propertyName:t,predicate:(i=e.selector,"string"==typeof i?Pf(i):jt(i)),descendants:e.descendants,first:e.first,read:e.read?e.read:null,static:!!e.static};var i}function bf(t,e,i){const n=[];for(const r in e)if(e.hasOwnProperty(r)){const s=e[r];s.forEach(e=>{if(i(e)){if(!e.selector)throw new Error(`Can't construct a query for the property "${r}" of `+`"${Sn(t)}" since the query selector wasn't defined.`);if(s.some(wf))throw new Error("Cannot combine @Input decorators with query decorators");n.push(vf(r,e))}})}return n}function _f(t){const e=t.ngMetadataName;return"ContentChild"===e||"ContentChildren"===e}function xf(t){const e=t.ngMetadataName;return"ViewChild"===e||"ViewChildren"===e}function wf(t){return"Input"===t.ngMetadataName}function Pf(t){return t.split(",").map(t=>t.trim())}const Cf=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Sf(t){const e=ma();if(Cf.some(i=>e.hasLifecycleHook(t,i)))return!0;const i=e.propMetadata(t);for(const n in i){const t=i[n];for(let e=0;e<t.length;e++){const i=t[e],n=i.ngMetadataName;if(wf(i)||_f(i)||xf(i)||"Output"===n||"HostBinding"===n||"HostListener"===n)return!0}}return!1}function Of(t,e){return{type:t,typeArgumentCount:0,name:t.name,deps:ya(t),pipeName:e.name,pure:void 0===e.pure||e.pure}}const Df=lt("Directive",(t={})=>t,void 0,void 0,(t,e)=>Ff(t,e));lt("Component",(t={})=>Object.assign({changeDetection:Ie.Default},t),Df,void 0,(t,e)=>Mf(t,e));lt("Pipe",t=>Object.assign({pure:!0},t),void 0,void 0,(t,e)=>Af(t,e));const Ef=ct("Input",t=>({bindingPropertyName:t}));const Tf=ct("Output",t=>({bindingPropertyName:t}));const kf=ct("HostBinding",t=>({hostPropertyName:t}));const If=ct("HostListener",(t,e)=>({eventName:t,args:e})),Mf=function(t,e){let i=null;!function(t,e){cl(e)&&(ul.set(t,e),hl.add(t))}(t,e),ff(t,e),Object.defineProperty(t,$t,{get:()=>{if(null===i){const n=Gt();if(cl(e)){const i=[`Component '${t.name}' is not resolved:`];throw e.templateUrl&&i.push(` - templateUrl: ${e.templateUrl}`),e.styleUrls&&e.styleUrls.length&&i.push(` - styleUrls: ${JSON.stringify(e.styleUrls)}`),i.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(i.join("\n"))}const r=ef;let s=e.preserveWhitespaces;void 0===s&&(s=null!==r&&void 0!==r.preserveWhitespaces&&r.preserveWhitespaces);let o=e.encapsulation;void 0===o&&(o=null!==r&&void 0!==r.defaultEncapsulation?r.defaultEncapsulation:Fe.Emulated);const a=e.templateUrl||`ng:///${t.name}/template.html`,l=Object.assign(Object.assign({},mf(t,e)),{typeSourceSpan:n.createParseSourceSpan("Component",t.name,a),template:e.template||"",preserveWhitespaces:s,styles:e.styles||je,animations:e.animations,directives:[],changeDetection:e.changeDetection,pipes:new Map,encapsulation:o,interpolation:e.interpolation,viewProviders:e.viewProviders||null});if(l.usesInheritance&&yf(t),i=n.compileComponent(tf,a,l),function(){if(!sf){sf=!0;try{for(let t=rf.length-1;t>=0;t--){const{moduleType:e,ngModule:i}=rf[t];i.declarations&&i.declarations.every(of)&&(rf.splice(t,1),af(e,i))}}finally{sf=!1}}}(),void 0!==t.ngSelectorScope){const e=uf(t.ngSelectorScope);lf(i,e)}}return i},configurable:!1})},Ff=pf,Af=function(t,e){let i=null,n=null;Object.defineProperty(t,Zt,{get:()=>{if(null===n){const i=Of(t,e),r=Gt();n=r.compileFactory(tf,`ng:///${i.name}/\u0275fac.js`,Object.assign(Object.assign({},i),{injectFn:"directiveInject",target:r.R3FactoryTarget.Pipe}))}return n},configurable:!1}),Object.defineProperty(t,Yt,{get:()=>{if(null===i){const n=Of(t,e);i=Gt().compilePipe(tf,`ng:///${n.name}/\u0275pipe.js`,n)}return i},configurable:!1})};lt("NgModule",t=>t,void 0,void 0,(t,e)=>jf(t,e));const jf=function(t,e={}){!function(t,e,i=!1){const n=we(e.declarations||nf);let r=null;Object.defineProperty(t,qt,{configurable:!0,get:()=>(null===r&&(r=Gt().compileNgModule(tf,`ng:///${t.name}/\u0275mod.js`,{type:t,bootstrap:we(e.bootstrap||nf).map(jt),declarations:n.map(jt),imports:we(e.imports||nf).map(jt).map(hf),exports:we(e.exports||nf).map(jt).map(hf),schemas:e.schemas?we(e.schemas):null,id:e.id||null}),r.schemas||(r.schemas=[])),r)});let s=null;Object.defineProperty(t,Dt,{get:()=>{if(null===s){const i={name:t.name,type:t,deps:ya(t),providers:e.providers||nf,imports:[(e.imports||nf).map(jt),(e.exports||nf).map(jt)]};s=Gt().compileInjector(tf,`ng:///${t.name}/\u0275inj.js`,i)}return s},configurable:!1})}(t,e),function(t,e){rf.push({moduleType:t,ngModule:e})}(t,e)},Lf=new Jt("Application Initializer");class Vf{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const e=this.appInits[i]();ou(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}Vf.\u0275fac=function(t){return new(t||Vf)(ue(Lf,8))},Vf.\u0275prov=xt({token:Vf,factory:Vf.\u0275fac}),Vf.ctorParameters=()=>[{type:Array,decorators:[{type:pt,args:[Lf]},{type:dt}]}];const Rf=new Jt("AppId");const Nf={provide:Rf,useFactory:function(){return`${Bf()}${Bf()}${Bf()}`},deps:[]};function Bf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Hf=new Jt("Platform Initializer"),zf=new Jt("Platform ID"),Uf=new Jt("appBootstrapListener");new Jt("Application Packages Root URL");class Wf{log(t){console.log(t)}warn(t){console.warn(t)}}Wf.\u0275fac=function(t){return new(t||Wf)},Wf.\u0275prov=xt({token:Wf,factory:Wf.\u0275fac});const Gf=new Jt("LocaleId"),$f=new Jt("DefaultCurrencyCode"),Kf=(new Jt("Translations"),new Jt("TranslationsFormat"),{Error:0,Warning:1,Ignore:2});Kf[Kf.Error]="Error",Kf[Kf.Warning]="Warning",Kf[Kf.Ignore]="Ignore";class Yf{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const qf=function(t){return new sd(t)},Xf=qf,Zf=function(t){return Promise.resolve(qf(t))},Qf=function(t){const e=qf(t),i=kn(Ze(t).declarations).reduce((t,e)=>{const i=Ke(e);return i&&t.push(new np(i)),t},[]);return new Yf(e,i)},Jf=Qf,tg=function(t){return Promise.resolve(Qf(t))};class eg{constructor(){this.compileModuleSync=Xf,this.compileModuleAsync=Zf,this.compileModuleAndAllComponentsSync=Jf,this.compileModuleAndAllComponentsAsync=tg}clearCache(){}clearCacheFor(t){}getModuleId(t){}}eg.\u0275fac=function(t){return new(t||eg)},eg.\u0275prov=xt({token:eg,factory:eg.\u0275fac});const ig=new Jt("compilerOptions");const ng=Promise.resolve(0);function rg(t){"undefined"==typeof Zone?ng.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class sg{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kd(!1),this.onMicrotaskEmpty=new kd(!1),this.onStable=new kd(!1),this.onError=new kd(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.wtfZoneSpec&&(i._inner=i._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=e,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=Ht.requestAnimationFrame,e=Ht.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){if(-1!==t.lastRequestAnimationFrameId)return;t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ht,()=>{t.lastRequestAnimationFrameId=-1,ug(t),lg(t)}),ug(t)}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(i,n,r,s,o,a)=>{try{return hg(t),i.invokeTask(r,s,o,a)}finally{e&&"eventTask"===s.type&&e(),cg(t)}},onInvoke:(e,i,n,r,s,o,a)=>{try{return hg(t),e.invoke(n,r,s,o,a)}finally{cg(t)}},onHasTask:(e,i,n,r)=>{e.hasTask(n,r),i===n&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,ug(t),lg(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,n,r)=>(e.handleError(n,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!sg.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(sg.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+n,t,ag,og,og);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}function og(){}const ag={};function lg(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ug(t){t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function hg(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function cg(t){t._nesting--,lg(t)}class pg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kd,this.onMicrotaskEmpty=new kd,this.onStable=new kd,this.onError=new kd}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}class dg{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{sg.assertNotInAngularZone(),rg(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())rg(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}dg.\u0275fac=function(t){return new(t||dg)(ue(sg))},dg.\u0275prov=xt({token:dg,factory:dg.\u0275fac}),dg.ctorParameters=()=>[{type:sg}];class fg{constructor(){this._applications=new Map,mg.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return mg.findTestabilityInTree(this,t,e)}}fg.\u0275fac=function(t){return new(t||fg)},fg.\u0275prov=xt({token:fg,factory:fg.\u0275fac}),fg.ctorParameters=()=>[];let gg,mg=new class{addToWindow(t){}findTestabilityInTree(t,e,i){return null}},yg=function(t,e,i){const n=t.get(ig,[]).concat(e);0;const r=new sd(i);if(0===ul.size)return Promise.resolve(r);const s=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(n.map(t=>t.providers));if(0===s.length)return Promise.resolve(r);const o=Gt(),a=Ra.create({providers:s}).get(o.ResourceLoader);return ll(t=>Promise.resolve(a.get(t))).then(()=>r)};let vg=function(){},bg=function(t){return t.isBoundToModule};const _g=new Jt("AllowMultipleToken");class xg{constructor(t,e){this.name=t,this.token=e}}function wg(t,e,i=[]){const n=`Platform: ${e}`,r=new Jt(n);return(e=[])=>{let s=Pg();if(!s||s.injector.get(_g,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{const t=i.concat(e).concat({provide:r,useValue:!0},{provide:Ca,useValue:"platform"});!function(t){if(gg&&!gg.destroyed&&!gg.injector.get(_g,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");vg(),gg=t.get(Cg);const e=t.get(Hf,null);e&&e.forEach(t=>t())}(Ra.create({providers:t,name:n}))}return function(t){const e=Pg();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Pg(){return gg&&!gg.destroyed?gg:null}class Cg{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;i="noop"===t?new pg:("zone.js"===t?void 0:t)||new sg({enableLongStackTrace:hr(),shouldCoalesceEventChangeDetection:e});return i}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),n=[{provide:sg,useValue:i}];return i.run(()=>{const e=Ra.create({providers:n,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(Qn,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Dg(this._modules,r)),i.runOutsideAngular(()=>i.onError.subscribe({next:t=>{s.handleError(t)}})),function(t,e,i){try{const n=i();return ou(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(s,i,()=>{const t=r.injector.get(Vf);return t.runInitializers(),t.donePromise.then(()=>{ed(r.injector.get(Gf,"en-US")||"en-US");return this._moduleDoBootstrap(r),r})})})}bootstrapModule(t,e=[]){const i=Sg({},e);return yg(this.injector,i,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Og);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${It(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Sg(t,e){return t=Array.isArray(e)?e.reduce(Sg,t):Object.assign(Object.assign({},t),e)}Cg.\u0275fac=function(t){return new(t||Cg)(ue(Ra))},Cg.\u0275prov=xt({token:Cg,factory:Cg.\u0275fac}),Cg.ctorParameters=()=>[{type:Ra}];class Og{constructor(t,e,i,n,r,s){this._zone=t,this._console=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=hr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new w(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new w(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{sg.assertNotInAngularZone(),rg(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{sg.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return T(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof w?t[0]:K(e)(Y(t,i))}(o,a.pipe(nt()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof vc?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=bg(i)?void 0:this._injector.get(ye),r=e||i.selector,s=i.create(Ra.NULL,[],r,n);s.onDestroy(()=>{this._unloadComponent(s)});const o=s.injector.get(dg,null);return o&&s.injector.get(fg).registerApplication(s.location.nativeElement,o),this._loadComponent(s),hr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Dg(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Uf,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Dg(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}function Dg(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}Og.\u0275fac=function(t){return new(t||Og)(ue(sg),ue(Wf),ue(Ra),ue(Qn),ue(xc),ue(Vf))},Og.\u0275prov=xt({token:Og,factory:Og.\u0275fac}),Og.ctorParameters=()=>[{type:sg},{type:Wf},{type:Ra},{type:Qn},{type:xc},{type:Vf}];class Eg{}class Tg{}const kg={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Ig{constructor(t,e){this._compiler=t,this._config=e||kg}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i("zn8P")(e).then(t=>t[n]).then(t=>Mg(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),r="NgFactory";return void 0===n&&(n="default",r=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+r]).then(t=>Mg(t,e,n))}}function Mg(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}Ig.\u0275fac=function(t){return new(t||Ig)(ue(eg),ue(Tg,8))},Ig.\u0275prov=xt({token:Ig,factory:Ig.\u0275fac}),Ig.ctorParameters=()=>[{type:eg},{type:Tg,decorators:[{type:dt}]}];new Map;const Fg=function(t){return null};const Ag=wg(null,"core",[{provide:zf,useValue:"unknown"},{provide:Cg,deps:[Ra]},{provide:fg,deps:[]},{provide:Wf,deps:[]}]);const jg=[{provide:Og,useClass:Og,deps:[sg,Wf,Ra,Qn,xc,Vf]},{provide:ip,deps:[sg],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Vf,useClass:Vf,deps:[[new dt,Lf]]},{provide:eg,useClass:eg,deps:[]},Nf,{provide:Hc,useFactory:function(){return Gc},deps:[]},{provide:zc,useFactory:function(){return $c},deps:[]},{provide:Gf,useFactory:function(t){return ed(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new pt(Gf),new dt,new gt]]},{provide:$f,useValue:"USD"}];class Lg{constructor(t){}}Lg.\u0275mod=ze({type:Lg}),Lg.\u0275inj=wt({factory:function(t){return new(t||Lg)(ue(Og))},providers:jg}),Lg.ctorParameters=()=>[{type:Og}];const Vg={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};Vg[Vg.CreateViewNodes]="CreateViewNodes",Vg[Vg.CheckNoChanges]="CheckNoChanges",Vg[Vg.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",Vg[Vg.CheckAndUpdate]="CheckAndUpdate",Vg[Vg.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",Vg[Vg.Destroy]="Destroy";new Map,new Map,new Map;const Rg={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};Rg[Rg.create]="create",Rg[Rg.detectChanges]="detectChanges",Rg[Rg.checkNoChanges]="checkNoChanges",Rg[Rg.destroy]="destroy",Rg[Rg.handleEvent]="handleEvent";let Ng=null;function Bg(){return Ng}const Hg=new Jt("DocumentToken");class zg{}function Ug(){return ue(Gg)}zg.\u0275fac=function(t){return new(t||zg)},zg.\u0275prov=xt({factory:Ug,token:zg,providedIn:"platform"});const Wg=new Jt("Location Initialized");class Gg extends zg{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Bg().getLocation(),this._history=Bg().getHistory()}getBaseHrefFromDOM(){return Bg().getBaseHref(this._doc)}onPopState(t){Bg().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Bg().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){$g()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){$g()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}function $g(){return!!window.history.pushState}function Kg(){return new Gg(ue(Hg))}function Yg(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function qg(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-("/"===t[i-1]?1:0);return t.slice(0,n)+t.slice(i)}function Xg(t){return t&&"?"!==t[0]?"?"+t:t}Gg.\u0275fac=function(t){return new(t||Gg)(ue(Hg))},Gg.ctorParameters=()=>[{type:void 0,decorators:[{type:pt,args:[Hg]}]}],Gg.\u0275prov=xt({factory:Kg,token:Gg,providedIn:"platform"});class Zg{}function Qg(t){const e=ue(Hg).location;return new tm(ue(zg),e&&e.origin||"")}Zg.\u0275fac=function(t){return new(t||Zg)},Zg.\u0275prov=xt({factory:Qg,token:Zg,providedIn:"root"});const Jg=new Jt("appBaseHref");class tm extends Zg{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Yg(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Xg(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const r=this.prepareExternalUrl(i+Xg(n));this._platformLocation.pushState(t,e,r)}replaceState(t,e,i,n){const r=this.prepareExternalUrl(i+Xg(n));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}tm.\u0275fac=function(t){return new(t||tm)(ue(zg),ue(Jg,8))},tm.\u0275prov=xt({token:tm,factory:tm.\u0275fac}),tm.ctorParameters=()=>[{type:zg},{type:String,decorators:[{type:dt},{type:pt,args:[Jg]}]}];class em extends Zg{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Yg(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let r=this.prepareExternalUrl(i+Xg(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,i,n){let r=this.prepareExternalUrl(i+Xg(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}em.\u0275fac=function(t){return new(t||em)(ue(zg),ue(Jg,8))},em.\u0275prov=xt({token:em,factory:em.\u0275fac}),em.ctorParameters=()=>[{type:zg},{type:String,decorators:[{type:dt},{type:pt,args:[Jg]}]}];class im{constructor(t,e){this._subject=new kd,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=qg(rm(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Xg(e))}normalize(t){return im.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,rm(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xg(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xg(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}function nm(){return new im(ue(Zg),ue(zg))}function rm(t){return t.replace(/\/index.html$/,"")}im.\u0275fac=function(t){return new(t||im)(ue(Zg),ue(zg))},im.normalizeQueryParams=Xg,im.joinWithSlash=Yg,im.stripTrailingSlash=qg,im.ctorParameters=()=>[{type:Zg},{type:zg}],im.\u0275prov=xt({factory:nm,token:im,providedIn:"root"});const sm={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},om={Decimal:0,Percent:1,Currency:2,Scientific:3};om[om.Decimal]="Decimal",om[om.Percent]="Percent",om[om.Currency]="Currency",om[om.Scientific]="Scientific";const am={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};am[am.Zero]="Zero",am[am.One]="One",am[am.Two]="Two",am[am.Few]="Few",am[am.Many]="Many",am[am.Other]="Other";const lm={Format:0,Standalone:1};lm[lm.Format]="Format",lm[lm.Standalone]="Standalone";const um={Narrow:0,Abbreviated:1,Wide:2,Short:3};um[um.Narrow]="Narrow",um[um.Abbreviated]="Abbreviated",um[um.Wide]="Wide",um[um.Short]="Short";const hm={Short:0,Medium:1,Long:2,Full:3};hm[hm.Short]="Short",hm[hm.Medium]="Medium",hm[hm.Long]="Long",hm[hm.Full]="Full";const cm={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};cm[cm.Decimal]="Decimal",cm[cm.Group]="Group",cm[cm.List]="List",cm[cm.PercentSign]="PercentSign",cm[cm.PlusSign]="PlusSign",cm[cm.MinusSign]="MinusSign",cm[cm.Exponential]="Exponential",cm[cm.SuperscriptingExponent]="SuperscriptingExponent",cm[cm.PerMille]="PerMille",cm[cm.Infinity]="Infinity",cm[cm.NaN]="NaN",cm[cm.TimeSeparator]="TimeSeparator",cm[cm.CurrencyDecimal]="CurrencyDecimal",cm[cm.CurrencyGroup]="CurrencyGroup";const pm={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};function dm(t,e){return _m(ap(t)[hp.DateFormat],e)}function fm(t,e){return _m(ap(t)[hp.TimeFormat],e)}function gm(t,e){return _m(ap(t)[hp.DateTimeFormat],e)}function mm(t,e){const i=ap(t),n=i[hp.NumberSymbols][e];if(void 0===n){if(e===cm.CurrencyDecimal)return i[hp.NumberSymbols][cm.Decimal];if(e===cm.CurrencyGroup)return i[hp.NumberSymbols][cm.Group]}return n}function ym(t,e){return ap(t)[hp.NumberFormats][e]}pm[pm.Sunday]="Sunday",pm[pm.Monday]="Monday",pm[pm.Tuesday]="Tuesday",pm[pm.Wednesday]="Wednesday",pm[pm.Thursday]="Thursday",pm[pm.Friday]="Friday",pm[pm.Saturday]="Saturday";const vm=lp;function bm(t){if(!t[hp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[hp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _m(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function xm(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}function wm(t,e,i="en"){const n=function(t){return ap(t)[hp.Currencies]}(i)[t]||sm[t]||[],r=n[1];return"narrow"===e&&"string"==typeof r?r:n[0]||t}const Pm=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Cm={},Sm=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Om={Short:0,ShortGMT:1,Long:2,Extended:3};Om[Om.Short]="Short",Om[Om.ShortGMT]="ShortGMT",Om[Om.Long]="Long",Om[Om.Extended]="Extended";const Dm={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};Dm[Dm.FullYear]="FullYear",Dm[Dm.Month]="Month",Dm[Dm.Date]="Date",Dm[Dm.Hours]="Hours",Dm[Dm.Minutes]="Minutes",Dm[Dm.Seconds]="Seconds",Dm[Dm.FractionalSeconds]="FractionalSeconds",Dm[Dm.Day]="Day";const Em={DayPeriods:0,Days:1,Months:2,Eras:3};function Tm(t,e,i,n){let r=function(t){if(Rm(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,i,n]=t.split("-").map(t=>+t);return new Date(e,i-1,n)}let i;if(i=t.match(Pm))return function(t){const e=new Date(0);let i=0,n=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11]));r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,o,a,l,u),e}(i)}const e=new Date(t);if(!Rm(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,i){const n=function(t){return ap(t)[hp.LocaleId]}(e);if(Cm[n]=Cm[n]||{},Cm[n][i])return Cm[n][i];let r="";switch(i){case"shortDate":r=dm(e,hm.Short);break;case"mediumDate":r=dm(e,hm.Medium);break;case"longDate":r=dm(e,hm.Long);break;case"fullDate":r=dm(e,hm.Full);break;case"shortTime":r=fm(e,hm.Short);break;case"mediumTime":r=fm(e,hm.Medium);break;case"longTime":r=fm(e,hm.Long);break;case"fullTime":r=fm(e,hm.Full);break;case"short":const i=t(e,"shortTime"),n=t(e,"shortDate");r=km(gm(e,hm.Short),[i,n]);break;case"medium":const s=t(e,"mediumTime"),o=t(e,"mediumDate");r=km(gm(e,hm.Medium),[s,o]);break;case"long":const a=t(e,"longTime"),l=t(e,"longDate");r=km(gm(e,hm.Long),[a,l]);break;case"full":const u=t(e,"fullTime"),h=t(e,"fullDate");r=km(gm(e,hm.Full),[u,h])}r&&(Cm[n][i]=r);return r}(i,e)||e;let s,o=[];for(;e;){if(s=Sm.exec(e),!s){o.push(e);break}{o=o.concat(s.slice(1));const t=o.pop();if(!t)break;e=t}}let a=r.getTimezoneOffset();n&&(a=Vm(n,a),r=function(t,e,i){const n=i?-1:1,r=t.getTimezoneOffset(),s=Vm(e,r);return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,n*(s-r))}(r,n,!0));let l="";return o.forEach(t=>{const e=function(t){if(Lm[t])return Lm[t];let e;switch(t){case"G":case"GG":case"GGG":e=Fm(Em.Eras,um.Abbreviated);break;case"GGGG":e=Fm(Em.Eras,um.Wide);break;case"GGGGG":e=Fm(Em.Eras,um.Narrow);break;case"y":e=Mm(Dm.FullYear,1,0,!1,!0);break;case"yy":e=Mm(Dm.FullYear,2,0,!0,!0);break;case"yyy":e=Mm(Dm.FullYear,3,0,!1,!0);break;case"yyyy":e=Mm(Dm.FullYear,4,0,!1,!0);break;case"M":case"L":e=Mm(Dm.Month,1,1);break;case"MM":case"LL":e=Mm(Dm.Month,2,1);break;case"MMM":e=Fm(Em.Months,um.Abbreviated);break;case"MMMM":e=Fm(Em.Months,um.Wide);break;case"MMMMM":e=Fm(Em.Months,um.Narrow);break;case"LLL":e=Fm(Em.Months,um.Abbreviated,lm.Standalone);break;case"LLLL":e=Fm(Em.Months,um.Wide,lm.Standalone);break;case"LLLLL":e=Fm(Em.Months,um.Narrow,lm.Standalone);break;case"w":e=jm(1);break;case"ww":e=jm(2);break;case"W":e=jm(1,!0);break;case"d":e=Mm(Dm.Date,1);break;case"dd":e=Mm(Dm.Date,2);break;case"E":case"EE":case"EEE":e=Fm(Em.Days,um.Abbreviated);break;case"EEEE":e=Fm(Em.Days,um.Wide);break;case"EEEEE":e=Fm(Em.Days,um.Narrow);break;case"EEEEEE":e=Fm(Em.Days,um.Short);break;case"a":case"aa":case"aaa":e=Fm(Em.DayPeriods,um.Abbreviated);break;case"aaaa":e=Fm(Em.DayPeriods,um.Wide);break;case"aaaaa":e=Fm(Em.DayPeriods,um.Narrow);break;case"b":case"bb":case"bbb":e=Fm(Em.DayPeriods,um.Abbreviated,lm.Standalone,!0);break;case"bbbb":e=Fm(Em.DayPeriods,um.Wide,lm.Standalone,!0);break;case"bbbbb":e=Fm(Em.DayPeriods,um.Narrow,lm.Standalone,!0);break;case"B":case"BB":case"BBB":e=Fm(Em.DayPeriods,um.Abbreviated,lm.Format,!0);break;case"BBBB":e=Fm(Em.DayPeriods,um.Wide,lm.Format,!0);break;case"BBBBB":e=Fm(Em.DayPeriods,um.Narrow,lm.Format,!0);break;case"h":e=Mm(Dm.Hours,1,-12);break;case"hh":e=Mm(Dm.Hours,2,-12);break;case"H":e=Mm(Dm.Hours,1);break;case"HH":e=Mm(Dm.Hours,2);break;case"m":e=Mm(Dm.Minutes,1);break;case"mm":e=Mm(Dm.Minutes,2);break;case"s":e=Mm(Dm.Seconds,1);break;case"ss":e=Mm(Dm.Seconds,2);break;case"S":e=Mm(Dm.FractionalSeconds,1);break;case"SS":e=Mm(Dm.FractionalSeconds,2);break;case"SSS":e=Mm(Dm.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Am(Om.Short);break;case"ZZZZZ":e=Am(Om.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Am(Om.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Am(Om.Long);break;default:return null}return Lm[t]=e,e}(t);l+=e?e(r,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function km(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,i){return null!=e&&i in e?e[i]:t}))),t}function Im(t,e,i="-",n,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=i));let o=String(t);for(;o.length<e;)o="0"+o;return n&&(o=o.substr(o.length-e)),s+o}function Mm(t,e,i=0,n=!1,r=!1){return function(s,o){let a=function(t,e){switch(t){case Dm.FullYear:return e.getFullYear();case Dm.Month:return e.getMonth();case Dm.Date:return e.getDate();case Dm.Hours:return e.getHours();case Dm.Minutes:return e.getMinutes();case Dm.Seconds:return e.getSeconds();case Dm.FractionalSeconds:return e.getMilliseconds();case Dm.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,s);if((i>0||a>-i)&&(a+=i),t===Dm.Hours)0===a&&-12===i&&(a=12);else if(t===Dm.FractionalSeconds)return l=e,Im(a,3).substr(0,l);var l;const u=mm(o,cm.MinusSign);return Im(a,e,u,n,r)}}function Fm(t,e,i=lm.Format,n=!1){return function(r,s){return function(t,e,i,n,r,s){switch(i){case Em.Months:return function(t,e,i){const n=ap(t),r=_m([n[hp.MonthsFormat],n[hp.MonthsStandalone]],e);return _m(r,i)}(e,r,n)[t.getMonth()];case Em.Days:return function(t,e,i){const n=ap(t),r=_m([n[hp.DaysFormat],n[hp.DaysStandalone]],e);return _m(r,i)}(e,r,n)[t.getDay()];case Em.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(s){const t=function(t){const e=ap(t);return bm(e),(e[hp.ExtraData][2]||[]).map(t=>"string"==typeof t?xm(t):[xm(t[0]),xm(t[1])])}(e),i=function(t,e,i){const n=ap(t);bm(n);const r=_m([n[hp.ExtraData][0],n[hp.ExtraData][1]],e)||[];return _m(r,i)||[]}(e,r,n);let s;if(t.forEach((t,e)=>{if(Array.isArray(t)){const{hours:n,minutes:r}=t[0],{hours:l,minutes:u}=t[1];o>=n&&a>=r&&(o<l||o===l&&a<u)&&(s=i[e])}else{const{hours:n,minutes:r}=t;n===o&&r===a&&(s=i[e])}}),s)return s}return function(t,e,i){const n=ap(t),r=_m([n[hp.DayPeriodsFormat],n[hp.DayPeriodsStandalone]],e);return _m(r,i)}(e,r,n)[o<12?0:1];case Em.Eras:return function(t,e){return _m(ap(t)[hp.Eras],e)}(e,n)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${i}`)}}(r,s,t,e,i,n)}}function Am(t){return function(e,i,n){const r=-1*n,s=mm(i,cm.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Om.Short:return(r>=0?"+":"")+Im(o,2,s)+Im(Math.abs(r%60),2,s);case Om.ShortGMT:return"GMT"+(r>=0?"+":"")+Im(o,1,s);case Om.Long:return"GMT"+(r>=0?"+":"")+Im(o,2,s)+":"+Im(Math.abs(r%60),2,s);case Om.Extended:return 0===n?"Z":(r>=0?"+":"")+Im(o,2,s)+":"+Im(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}Em[Em.DayPeriods]="DayPeriods",Em[Em.Days]="Days",Em[Em.Months]="Months",Em[Em.Eras]="Eras";function jm(t,e=!1){return function(i,n){let r;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();r=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(i.getFullYear()),e=(s=i,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-t.getTime();r=1+Math.round(e/6048e5)}var s;return Im(r,t,mm(n,cm.MinusSign))}}const Lm={};function Vm(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function Rm(t){return t instanceof Date&&!isNaN(t.valueOf())}const Nm=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Bm(t,e,i,n,r,s,o=!1){let a="",l=!1;if(isFinite(t)){let u=function(t){let e,i,n,r,s,o=Math.abs(t)+"",a=0;(i=o.indexOf("."))>-1&&(o=o.replace(".",""));(n=o.search(/e/i))>0?(i<0&&(i=n),i+=+o.slice(n+1),o=o.substring(0,n)):i<0&&(i=o.length);for(n=0;"0"===o.charAt(n);n++);if(n===(s=o.length))e=[0],i=1;else{for(s--;"0"===o.charAt(s);)s--;for(i-=n,e=[],r=0;n<=s;n++,r++)e[r]=Number(o.charAt(n))}i>22&&(e=e.splice(0,21),a=i-1,i=1);return{digits:e,exponent:a,integerLen:i}}(t);o&&(u=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2);return t}(u));let h=e.minInt,c=e.minFrac,p=e.maxFrac;if(s){const t=s.match(Nm);if(null===t)throw new Error(`${s} is not a valid digit info`);const e=t[1],i=t[3],n=t[5];null!=e&&(h=Um(e)),null!=i&&(c=Um(i)),null!=n?p=Um(n):null!=i&&c>p&&(p=c)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,r=n.length-t.integerLen;const s=Math.min(Math.max(e,r),i);let o=s+t.integerLen,a=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let t=o;t<n.length;t++)n[t]=0}else{r=Math.max(0,r),t.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let t=1;t<o;t++)n[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let l=0!==s;const u=e+t.integerLen,h=n.reduceRight((function(t,e,i,n){return e+=t,n[i]=e<10?e:e-10,l&&(0===n[i]&&i>=u?n.pop():l=!1),e>=10?1:0}),0);h&&(n.unshift(h),t.integerLen++)}(u,c,p);let d=u.digits,f=u.integerLen;const g=u.exponent;let m=[];for(l=d.every(t=>!t);f<h;f++)d.unshift(0);for(;f<0;f++)d.unshift(0);f>0?m=d.splice(f,d.length):(m=d,d=[0]);const y=[];for(d.length>=e.lgSize&&y.unshift(d.splice(-e.lgSize,d.length).join(""));d.length>e.gSize;)y.unshift(d.splice(-e.gSize,d.length).join(""));d.length&&y.unshift(d.join("")),a=y.join(mm(i,n)),m.length&&(a+=mm(i,r)+m.join("")),g&&(a+=mm(i,cm.Exponential)+"+"+g)}else a=mm(i,cm.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function Hm(t,e,i,n,r){const s=zm(ym(e,om.Currency),mm(e,cm.MinusSign));return s.minFrac=function(t){let e;const i=sm[t];return i&&(e=i[2]),"number"==typeof e?e:2}(n),s.maxFrac=s.minFrac,Bm(t,s,e,cm.CurrencyGroup,cm.CurrencyDecimal,r).replace("\xa4",i).replace("\xa4","").trim()}function zm(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),r=n[0],s=n[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";i.posPre=a.substr(0,a.indexOf("#"));for(let h=0;h<l.length;h++){const t=l.charAt(h);"0"===t?i.minFrac=i.maxFrac=h+1:"#"===t?i.maxFrac=h+1:i.posSuf+=t}const u=a.split(",");if(i.gSize=u[1]?u[1].length:0,i.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,s){const t=r.length-i.posPre.length-i.posSuf.length,e=s.indexOf("#");i.negPre=s.substr(0,e).replace(/'/g,""),i.negSuf=s.substr(e+t).replace(/'/g,"")}else i.negPre=e+i.posPre,i.negSuf=i.posSuf;return i}function Um(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class Wm{}function Gm(t,e,i,n){let r=`=${t}`;if(e.indexOf(r)>-1)return r;if(r=i.getPluralCategory(t,n),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}class $m extends Wm{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(vm(e||this.locale)(t)){case am.Zero:return"zero";case am.One:return"one";case am.Two:return"two";case am.Few:return"few";case am.Many:return"many";default:return"other"}}}function Km(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,r]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(r)}return null}$m.\u0275fac=function(t){return new(t||$m)(ue(Gf))},$m.\u0275prov=xt({token:$m,factory:$m.\u0275fac}),$m.ctorParameters=()=>[{type:String,decorators:[{type:pt,args:[Gf]}]}];class Ym{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(vl(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${It(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}Ym.\u0275fac=function(t){return new(t||Ym)(Kl(Hc),Kl(zc),Kl(wc),Kl(Oc))},Ym.\u0275dir=Ge({type:Ym,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Ym.ctorParameters=()=>[{type:Hc},{type:zc},{type:wc},{type:Oc}],Ym.propDecorators={klass:[{type:Ef,args:["class"]}],ngClass:[{type:Ef,args:["ngClass"]}]};class qm{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(ye);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const i=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(xc)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}qm.\u0275fac=function(t){return new(t||qm)(Kl(qc))},qm.\u0275dir=Ge({type:qm,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[oc]}),qm.ctorParameters=()=>[{type:qc}],qm.propDecorators={ngComponentOutlet:[{type:Ef}],ngComponentOutletInjector:[{type:Ef}],ngComponentOutletContent:[{type:Ef}],ngComponentOutletNgModuleFactory:[{type:Ef}]};class Xm{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class Zm{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){hr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new Xm(null,this._ngForOf,-1,-1),null===n?void 0:n),r=new Qm(t,i);e.push(r)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const r=this._viewContainer.get(i);this._viewContainer.move(r,n);const s=new Qm(t,r);e.push(s)}});for(let i=0;i<e.length;i++)this._perViewChange(e[i].view,e[i].record);for(let i=0,n=this._viewContainer.length;i<n;i++){const t=this._viewContainer.get(i);t.context.index=i,t.context.count=n,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}Zm.\u0275fac=function(t){return new(t||Zm)(Kl(qc),Kl(Kc),Kl(Hc))},Zm.\u0275dir=Ge({type:Zm,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Zm.ctorParameters=()=>[{type:qc},{type:Kc},{type:Hc}],Zm.propDecorators={ngForOf:[{type:Ef}],ngForTrackBy:[{type:Ef}],ngForTemplate:[{type:Ef}]};class Qm{constructor(t,e){this.record=t,this.view=e}}class Jm{constructor(t,e){this._viewContainer=t,this._context=new ty,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ey("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ey("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}Jm.\u0275fac=function(t){return new(t||Jm)(Kl(qc),Kl(Kc))},Jm.\u0275dir=Ge({type:Jm,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Jm.ctorParameters=()=>[{type:qc},{type:Kc}],Jm.propDecorators={ngIf:[{type:Ef}],ngIfThen:[{type:Ef}],ngIfElse:[{type:Ef}]};class ty{constructor(){this.$implicit=null,this.ngIf=null}}function ey(t,e){if(!!(e&&!e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${It(e)}'.`)}class iy{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}class ny{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++){this._defaultViews[e].enforceState(t)}}}}ny.\u0275fac=function(t){return new(t||ny)},ny.\u0275dir=Ge({type:ny,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),ny.propDecorators={ngSwitch:[{type:Ef}]};class ry{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new iy(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}ry.\u0275fac=function(t){return new(t||ry)(Kl(qc),Kl(Kc),Kl(ny,1))},ry.\u0275dir=Ge({type:ry,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),ry.ctorParameters=()=>[{type:qc},{type:Kc},{type:ny,decorators:[{type:mt}]}],ry.propDecorators={ngSwitchCase:[{type:Ef}]};class sy{constructor(t,e,i){i._addDefault(new iy(t,e))}}sy.\u0275fac=function(t){return new(t||sy)(Kl(qc),Kl(Kc),Kl(ny,1))},sy.\u0275dir=Ge({type:sy,selectors:[["","ngSwitchDefault",""]]}),sy.ctorParameters=()=>[{type:qc},{type:Kc},{type:ny,decorators:[{type:mt}]}];class oy{constructor(t){this._localization=t,this._caseViews={}}set ngPlural(t){this._switchValue=t,this._updateView()}addCase(t,e){this._caseViews[t]=e}_updateView(){this._clearViews();const t=Object.keys(this._caseViews),e=Gm(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}}oy.\u0275fac=function(t){return new(t||oy)(Kl(Wm))},oy.\u0275dir=Ge({type:oy,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),oy.ctorParameters=()=>[{type:Wm}],oy.propDecorators={ngPlural:[{type:Ef}]};class ay{constructor(t,e,i,n){this.value=t;const r=!isNaN(Number(t));n.addCase(r?`=${t}`:t,new iy(i,e))}}ay.\u0275fac=function(t){return new(t||ay)(Yl("ngPluralCase"),Kl(Kc),Kl(qc),Kl(oy,1))},ay.\u0275dir=Ge({type:ay,selectors:[["","ngPluralCase",""]]}),ay.ctorParameters=()=>[{type:String,decorators:[{type:yt,args:["ngPluralCase"]}]},{type:Kc},{type:qc},{type:oy,decorators:[{type:mt}]}];class ly{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}ly.\u0275fac=function(t){return new(t||ly)(Kl(wc),Kl(zc),Kl(Oc))},ly.\u0275dir=Ge({type:ly,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),ly.ctorParameters=()=>[{type:wc},{type:zc},{type:Oc}],ly.propDecorators={ngStyle:[{type:Ef,args:["ngStyle"]}]};class uy{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),i=Object.keys(t.currentValue||{});if(e.length===i.length){for(let t of i)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}uy.\u0275fac=function(t){return new(t||uy)(Kl(qc))},uy.\u0275dir=Ge({type:uy,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[oc]}),uy.ctorParameters=()=>[{type:qc}],uy.propDecorators={ngTemplateOutletContext:[{type:Ef}],ngTemplateOutlet:[{type:Ef}]};function hy(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${It(t)}'`)}const cy=new class{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}},py=new class{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}};class dy{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):ml(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,yl.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(t){if(ou(t))return cy;if(au(t))return py;throw hy(dy,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}dy.\u0275fac=function(t){return new(t||dy)(Jd())},dy.\u0275pipe=$e({name:"async",type:dy,pure:!1}),dy.ctorParameters=()=>[{type:ra}];class fy{transform(t){if(!t)return t;if("string"!=typeof t)throw hy(fy,t);return t.toLowerCase()}}fy.\u0275fac=function(t){return new(t||fy)},fy.\u0275pipe=$e({name:"lowercase",type:fy,pure:!0});const gy=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;class my{transform(t){if(!t)return t;if("string"!=typeof t)throw hy(my,t);return t.replace(gy,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}my.\u0275fac=function(t){return new(t||my)},my.\u0275pipe=$e({name:"titlecase",type:my,pure:!0});class yy{transform(t){if(!t)return t;if("string"!=typeof t)throw hy(yy,t);return t.toUpperCase()}}yy.\u0275fac=function(t){return new(t||yy)},yy.\u0275pipe=$e({name:"uppercase",type:yy,pure:!0});class vy{constructor(t){this.locale=t}transform(t,e="mediumDate",i,n){if(null==t||""===t||t!=t)return null;try{return Tm(t,e,n||this.locale,i)}catch(r){throw hy(vy,r.message)}}}vy.\u0275fac=function(t){return new(t||vy)(Kl(Gf))},vy.\u0275pipe=$e({name:"date",type:vy,pure:!0}),vy.ctorParameters=()=>[{type:String,decorators:[{type:pt,args:[Gf]}]}];const by=/#/g;class _y{constructor(t){this._localization=t}transform(t,e,i){if(null==t)return"";if("object"!=typeof e||null===e)throw hy(_y,e);return e[Gm(t,Object.keys(e),this._localization,i)].replace(by,t.toString())}}_y.\u0275fac=function(t){return new(t||_y)(Kl(Wm))},_y.\u0275pipe=$e({name:"i18nPlural",type:_y,pure:!0}),_y.ctorParameters=()=>[{type:Wm}];class xy{transform(t,e){if(null==t)return"";if("object"!=typeof e||"string"!=typeof t)throw hy(xy,e);return e.hasOwnProperty(t)?e[t]:e.hasOwnProperty("other")?e.other:""}}xy.\u0275fac=function(t){return new(t||xy)},xy.\u0275pipe=$e({name:"i18nSelect",type:xy,pure:!0});class wy{transform(t){return JSON.stringify(t,null,2)}}wy.\u0275fac=function(t){return new(t||wy)},wy.\u0275pipe=$e({name:"json",type:wy,pure:!1});class Py{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=Cy){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem(t=>{var e,i;this.keyValues.push((e=t.key,i=t.currentValue,{key:e,value:i}))}),this.keyValues.sort(e)),this.keyValues}}function Cy(t,e){const i=t.key,n=e.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i<n?-1:1;if("number"==typeof i&&"number"==typeof n)return i-n;if("boolean"==typeof i&&"boolean"==typeof n)return i<n?-1:1;const r=String(i),s=String(n);return r==s?0:r<s?-1:1}Py.\u0275fac=function(t){return new(t||Py)(Kl(zc))},Py.\u0275pipe=$e({name:"keyvalue",type:Py,pure:!1}),Py.ctorParameters=()=>[{type:zc}];class Sy{constructor(t){this._locale=t}transform(t,e,i){if(Ey(t))return null;i=i||this._locale;try{return function(t,e,i){return Bm(t,zm(ym(e,om.Decimal),mm(e,cm.MinusSign)),e,cm.Group,cm.Decimal,i)}(Ty(t),i,e)}catch(n){throw hy(Sy,n.message)}}}Sy.\u0275fac=function(t){return new(t||Sy)(Kl(Gf))},Sy.\u0275pipe=$e({name:"number",type:Sy,pure:!0}),Sy.ctorParameters=()=>[{type:String,decorators:[{type:pt,args:[Gf]}]}];class Oy{constructor(t){this._locale=t}transform(t,e,i){if(Ey(t))return null;i=i||this._locale;try{return function(t,e,i){return Bm(t,zm(ym(e,om.Percent),mm(e,cm.MinusSign)),e,cm.Group,cm.Decimal,i,!0).replace(new RegExp("%","g"),mm(e,cm.PercentSign))}(Ty(t),i,e)}catch(n){throw hy(Oy,n.message)}}}Oy.\u0275fac=function(t){return new(t||Oy)(Kl(Gf))},Oy.\u0275pipe=$e({name:"percent",type:Oy,pure:!0}),Oy.ctorParameters=()=>[{type:String,decorators:[{type:pt,args:[Gf]}]}];class Dy{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(t,e,i="symbol",n,r){if(Ey(t))return null;r=r||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");let s=e||this._defaultCurrencyCode;"code"!==i&&(s="symbol"===i||"symbol-narrow"===i?wm(s,"symbol"===i?"wide":"narrow",r):i);try{return Hm(Ty(t),r,s,e,n)}catch(o){throw hy(Dy,o.message)}}}function Ey(t){return null==t||""===t||t!=t}function Ty(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}Dy.\u0275fac=function(t){return new(t||Dy)(Kl(Gf),Kl($f))},Dy.\u0275pipe=$e({name:"currency",type:Dy,pure:!0}),Dy.ctorParameters=()=>[{type:String,decorators:[{type:pt,args:[Gf]}]},{type:String,decorators:[{type:pt,args:[$f]}]}];class ky{transform(t,e,i){if(null==t)return t;if(!this.supports(t))throw hy(ky,t);return t.slice(e,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}ky.\u0275fac=function(t){return new(t||ky)},ky.\u0275pipe=$e({name:"slice",type:ky,pure:!1});class Iy{}Iy.\u0275mod=ze({type:Iy}),Iy.\u0275inj=wt({factory:function(t){return new(t||Iy)},providers:[{provide:Wm,useClass:$m}]});new Tc("9.1.9");class My{}My.\u0275prov=xt({token:My,providedIn:"root",factory:()=>new Fy(ue(Hg),window,ue(Qn))});class Fy{constructor(t,e,i){this.document=t,this.window=e,this.errorHandler=i,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const i=this.document.querySelector(`[name='${t}']`);if(i)return void this.scrollToElement(i)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}(()=>{if(Ht.Node)Ht.Node.prototype.contains})();class Ay extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Ay,Ng||(Ng=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=function(){if(!Ly&&(Ly=document.querySelector("base"),!Ly))return null;return Ly.getAttribute("href")}();return null==e?null:function(t){jy||(jy=document.createElement("a"));return jy.setAttribute("href",t),"/"===jy.pathname.charAt(0)?jy.pathname:"/"+jy.pathname}(e)}resetBaseElement(){Ly=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Km(document.cookie,t)}}let jy,Ly=null;const Vy=new Jt("TRANSITION_ID");const Ry=[{provide:Lf,useFactory:function(t,e,i){return()=>{i.get(Vf).donePromise.then(()=>{const i=Bg();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[Vy,Hg,Ra],multi:!0}];class Ny{static init(){var t;t=new Ny,mg=t}addToWindow(t){Ht.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},Ht.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ht.getAllAngularRootElements=()=>t.getAllRootElements();Ht.frameworkStabilizers||(Ht.frameworkStabilizers=[]),Ht.frameworkStabilizers.push(t=>{const e=Ht.getAllAngularTestabilities();let i=e.length,n=!1;const r=function(e){n=n||e,i--,0==i&&t(n)};e.forEach((function(t){t.whenStable(r)}))})}findTestabilityInTree(t,e,i){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:i?Bg().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}function By(t,e){if("undefined"==typeof COMPILED||!COMPILED){(Ht.ng=Ht.ng||{})[t]=e}}const Hy={ApplicationRef:Og,NgZone:sg};function zy(t){return Fg(t)}new dt;const Uy=[],Wy=new Jt("EventManagerPlugins");class Gy{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n<i.length;n++){const e=i[n];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}Gy.\u0275fac=function(t){return new(t||Gy)(ue(Wy),ue(sg))},Gy.\u0275prov=xt({token:Gy,factory:Gy.\u0275fac}),Gy.ctorParameters=()=>[{type:Array,decorators:[{type:pt,args:[Wy]}]},{type:sg}];class $y{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const n=Bg().getGlobalEventTarget(this._doc,t);if(!n)throw new Error(`Unsupported event target ${n} for event ${e}`);return this.addEventListener(n,e,i)}}class Ky{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}Ky.\u0275fac=function(t){return new(t||Ky)},Ky.\u0275prov=xt({token:Ky,factory:Ky.\u0275fac});class Yy extends Ky{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Bg().remove(t))}}Yy.\u0275fac=function(t){return new(t||Yy)(ue(Hg))},Yy.\u0275prov=xt({token:Yy,factory:Yy.\u0275fac}),Yy.ctorParameters=()=>[{type:void 0,decorators:[{type:pt,args:[Hg]}]}];const qy={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Xy=/%COMP%/g,Zy="_nghost-%COMP%",Qy="_ngcontent-%COMP%";function Jy(t,e,i){for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?Jy(t,r,i):(r=r.replace(Xy,t),i.push(r))}return i}function tv(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}class ev{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new iv(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Fe.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new nv(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case Fe.Native:case Fe.ShadowDom:return new rv(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Jy(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}ev.\u0275fac=function(t){return new(t||ev)(ue(Gy),ue(Yy),ue(Rf))},ev.\u0275prov=xt({token:ev,factory:ev.\u0275fac}),ev.ctorParameters=()=>[{type:Gy},{type:Yy},{type:String,decorators:[{type:pt,args:[Rf]}]}];class iv{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(qy[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const r=qy[n];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=qy[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&Sc.DashCase?t.style.setProperty(e,i,n&Sc.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Sc.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,tv(i)):this.eventManager.addEventListener(t,e,tv(i))}}"@".charCodeAt(0);class nv extends iv{constructor(t,e,i,n){super(t),this.component=i;const r=Jy(n+"-"+i.id,i.styles,[]);var s;e.addStyles(r),this.contentAttr=(s=n+"-"+i.id,Qy.replace(Xy,s)),this.hostAttr=function(t){return Zy.replace(Xy,t)}(n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class rv extends iv{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.component=n,n.encapsulation===Fe.ShadowDom?this.shadowRoot=i.attachShadow({mode:"open"}):this.shadowRoot=i.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=Jy(n.id,n.styles,[]);for(let s=0;s<r.length;s++){const t=document.createElement("style");t.textContent=r[s],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}class sv extends $y{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}sv.\u0275fac=function(t){return new(t||sv)(ue(Hg))},sv.\u0275prov=xt({token:sv,factory:sv.\u0275fac}),sv.ctorParameters=()=>[{type:void 0,decorators:[{type:pt,args:[Hg]}]}];const ov={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},av=new Jt("HammerGestureConfig"),lv=new Jt("HammerLoader");class uv{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const i in this.overrides)e.get(i).set(this.overrides[i]);return e}}uv.\u0275fac=function(t){return new(t||uv)},uv.\u0275prov=xt({token:uv,factory:uv.\u0275fac});class hv extends $y{constructor(t,e,i,n){super(t),this._config=e,this.console=i,this.loader=n}supports(t){return!(!ov.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))&&(!(!window.Hammer&&!this.loader)||(this.console.warn(`The "${t}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),!1))}addEventListener(t,e,i){const n=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){let n=!1,r=()=>{n=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(r=()=>{});n||(r=this.addEventListener(t,e,i))}).catch(()=>{this.console.warn(`The "${e}" event cannot be bound because the custom `+"Hammer.JS loader failed."),r=()=>{}}),()=>{r()}}return n.runOutsideAngular(()=>{const r=this._config.buildHammer(t),s=function(t){n.runGuarded((function(){i(t)}))};return r.on(e,s),()=>{r.off(e,s),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}hv.\u0275fac=function(t){return new(t||hv)(ue(Hg),ue(av),ue(Wf),ue(lv,8))},hv.\u0275prov=xt({token:hv,factory:hv.\u0275fac}),hv.ctorParameters=()=>[{type:void 0,decorators:[{type:pt,args:[Hg]}]},{type:uv,decorators:[{type:pt,args:[av]}]},{type:Wf},{type:void 0,decorators:[{type:dt},{type:pt,args:[lv]}]}];const cv=[{provide:Wy,useClass:hv,multi:!0,deps:[Hg,av,Wf,[new dt,lv]]},{provide:av,useClass:uv,deps:[]}],pv=[];class dv{}dv.\u0275mod=ze({type:dv}),dv.\u0275inj=wt({factory:function(t){return new(t||dv)},providers:cv});const fv=["alt","control","meta","shift"],gv={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},mv={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},yv={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};class vv extends $y{constructor(t){super(t)}supports(t){return null!=vv.parseEventName(t)}addEventListener(t,e,i){const n=vv.parseEventName(e),r=vv.eventCallback(n.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Bg().onAndCancel(t,n.domEventName,r))}static parseEventName(t){const e=t.toLowerCase().split("."),i=e.shift();if(0===e.length||"keydown"!==i&&"keyup"!==i)return null;const n=vv._normalizeKey(e.pop());let r="";if(fv.forEach(t=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r+=t+".")}),r+=n,0!=e.length||0===n.length)return null;const s={};return s.domEventName=i,s.fullKey=r,s}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&mv.hasOwnProperty(e)&&(e=mv[e]))}return gv[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),fv.forEach(n=>{if(n!=i){(0,yv[n])(t)&&(e+=n+".")}}),e+=i,e}static eventCallback(t,e,i){return n=>{vv.getEventFullKey(n)===t&&i.runGuarded(()=>e(n))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}vv.\u0275fac=function(t){return new(t||vv)(ue(Hg))},vv.\u0275prov=xt({token:vv,factory:vv.\u0275fac}),vv.ctorParameters=()=>[{type:void 0,decorators:[{type:pt,args:[Hg]}]}];class bv{}function _v(t){return new xv(t.get(Hg))}bv.\u0275fac=function(t){return new(t||bv)},bv.\u0275prov=xt({factory:function(){return ue(xv)},token:bv,providedIn:"root"});class xv extends bv{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Rr.NONE:return e;case Rr.HTML:return or(e,"HTML")?sr(e):Lr(this._doc,String(e));case Rr.STYLE:return or(e,"Style")?sr(e):Hr(e);case Rr.SCRIPT:if(or(e,"Script"))return sr(e);throw new Error("unsafe value used in a script context");case Rr.URL:ar(e);return or(e,"URL")?sr(e):fr(String(e));case Rr.RESOURCE_URL:if(or(e,"ResourceURL"))return sr(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new tr(t)}bypassSecurityTrustStyle(t){return new er(t)}bypassSecurityTrustScript(t){return new ir(t)}bypassSecurityTrustUrl(t){return new nr(t)}bypassSecurityTrustResourceUrl(t){return new rr(t)}}xv.\u0275fac=function(t){return new(t||xv)(ue(Hg))},xv.ctorParameters=()=>[{type:void 0,decorators:[{type:pt,args:[Hg]}]}],xv.\u0275prov=xt({factory:function(){return _v(ue(te))},token:xv,providedIn:"root"});const wv=[],Pv=wg(Ag,"browser",[{provide:zf,useValue:"browser"},{provide:Hf,useValue:function(){Ay.makeCurrent(),Ny.init()},multi:!0},{provide:Hg,useFactory:function(){return function(t){si=t}(document),document},deps:[]}]),Cv=[wv,{provide:Ca,useValue:"root"},{provide:Qn,useFactory:function(){return new Qn},deps:[]},{provide:Wy,useClass:sv,multi:!0,deps:[Hg,sg,zf]},{provide:Wy,useClass:vv,multi:!0,deps:[Hg]},pv,{provide:ev,useClass:ev,deps:[Gy,Yy,Rf]},{provide:Cc,useExisting:ev},{provide:Ky,useExisting:Yy},{provide:Yy,useClass:Yy,deps:[Hg]},{provide:dg,useClass:dg,deps:[sg]},{provide:Gy,useClass:Gy,deps:[Wy,sg]},Uy];class Sv{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:Sv,providers:[{provide:Rf,useValue:t.appId},{provide:Vy,useExisting:Rf},Ry]}}}function Ov(){return new Dv(ue(Hg))}Sv.\u0275mod=ze({type:Sv}),Sv.\u0275inj=wt({factory:function(t){return new(t||Sv)(ue(Sv,12))},providers:Cv,imports:[Iy,Lg]}),Sv.ctorParameters=()=>[{type:void 0,decorators:[{type:dt},{type:gt},{type:pt,args:[Sv]}]}];class Dv{constructor(t){this._doc=t,this._dom=Bg()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,i)=>(i&&t.push(this._getOrCreateElement(i,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const i=this.getTag(e);return i?this._setMetaElementAttributes(t,i):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),i=this.getTag(e);if(i&&this._containsAttributes(t,i))return i}const i=this._dom.createElement("meta");return this._setMetaElementAttributes(t,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(i=>e.setAttribute(i,t[i])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(i=>e.getAttribute(i)===t[i])}}function Ev(){return new Tv(ue(Hg))}Dv.\u0275fac=function(t){return new(t||Dv)(ue(Hg))},Dv.ctorParameters=()=>[{type:void 0,decorators:[{type:pt,args:[Hg]}]}],Dv.\u0275prov=xt({factory:Ov,token:Dv,providedIn:"root"});class Tv{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}Tv.\u0275fac=function(t){return new(t||Tv)(ue(Hg))},Tv.ctorParameters=()=>[{type:void 0,decorators:[{type:pt,args:[Hg]}]}],Tv.\u0275prov=xt({factory:Ev,token:Tv,providedIn:"root"});"undefined"!=typeof window&&window;class kv{constructor(){this.store={},this.onSerializeCallbacks={}}static init(t){const e=new kv;return e.store=t,e}get(t,e){return void 0!==this.store[t]?this.store[t]:e}set(t,e){this.store[t]=e}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}onSerialize(t,e){this.onSerializeCallbacks[t]=e}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)}}function Iv(t,e){const i=t.getElementById(e+"-state");let n={};if(i&&i.textContent)try{n=JSON.parse(function(t){const e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,t=>e[t])}(i.textContent))}catch(r){console.warn("Exception while restoring TransferState for app "+e,r)}return kv.init(n)}kv.\u0275fac=function(t){return new(t||kv)},kv.\u0275prov=xt({token:kv,factory:kv.\u0275fac});class Mv{}Mv.\u0275mod=ze({type:Mv}),Mv.\u0275inj=wt({factory:function(t){return new(t||Mv)},providers:[{provide:kv,useFactory:Iv,deps:[Hg,Rf]}]});new Tc("9.1.9");function Fv(...t){let e=t[t.length-1];return T(e)?(t.pop(),H(t,e)):Y(t)}function Av(t,e){return W(t,e,1)}function jv(t,e){return function(i){return i.lift(new Lv(t,e))}}class Lv{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Vv(t,this.predicate,this.thisArg))}}class Vv extends m{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class Rv{}class Nv{}class Bv{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(r):this.headers.set(n,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Bv?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Bv;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Bv?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Hv{encodeKey(t){return zv(t)}encodeValue(t){return zv(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function zv(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Uv{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Hv,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;if(t.length>0){t.split("&").forEach(t=>{const n=t.indexOf("="),[r,s]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(r)||[];o.push(s),i.set(r,o)})}return i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Uv({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Wv(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Gv(t){return"undefined"!=typeof Blob&&t instanceof Blob}function $v(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Kv{constructor(t,e,i,n){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,r=n):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new Bv),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?"),n=-1===i?"?":i<e.length-1?"&":"";this.urlWithParams=e+n+t}}else this.params=new Uv,this.urlWithParams=e}serializeBody(){return null===this.body?null:Wv(this.body)||Gv(this.body)||$v(this.body)||"string"==typeof this.body?this.body:this.body instanceof Uv?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||$v(this.body)?null:Gv(this.body)?this.body.type||null:Wv(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Uv?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,i=t.url||this.url,n=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,i)=>e.set(i,t.setHeaders[i]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new Kv(e,i,r,{params:l,headers:a,reportProgress:o,responseType:n,withCredentials:s})}}const Yv={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};Yv[Yv.Sent]="Sent",Yv[Yv.UploadProgress]="UploadProgress",Yv[Yv.ResponseHeader]="ResponseHeader",Yv[Yv.DownloadProgress]="DownloadProgress",Yv[Yv.Response]="Response",Yv[Yv.User]="User";class qv{constructor(t,e=200,i="OK"){this.headers=t.headers||new Bv,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Xv extends qv{constructor(t={}){super(t),this.type=Yv.ResponseHeader}clone(t={}){return new Xv({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Zv extends qv{constructor(t={}){super(t),this.type=Yv.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Zv({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Qv extends qv{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Jv(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}class tb{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof Kv)n=t;else{let r=void 0;r=i.headers instanceof Bv?i.headers:new Bv(i.headers);let s=void 0;i.params&&(s=i.params instanceof Uv?i.params:new Uv({fromObject:i.params})),n=new Kv(t,e,void 0!==i.body?i.body:null,{headers:r,params:s,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const r=Fv(n).pipe(Av(t=>this.handler.handle(t)));if(t instanceof Kv||"events"===i.observe)return r;const s=r.pipe(jv(t=>t instanceof Zv));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return s.pipe(R(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(R(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(R(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(R(t=>t.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Uv).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,Jv(i,e))}post(t,e,i={}){return this.request("POST",t,Jv(i,e))}put(t,e,i={}){return this.request("PUT",t,Jv(i,e))}}tb.\u0275fac=function(t){return new(t||tb)(ue(Rv))},tb.\u0275prov=xt({token:tb,factory:tb.\u0275fac}),tb.ctorParameters=()=>[{type:Rv}];class eb{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const ib=new Jt("HTTP_INTERCEPTORS");class nb{intercept(t,e){return e.handle(t)}}nb.\u0275fac=function(t){return new(t||nb)},nb.\u0275prov=xt({token:nb,factory:nb.\u0275fac});let rb=0;class sb{}class ob{constructor(t,e){this.callbackMap=t,this.document=e}nextCallback(){return`ng_jsonp_callback_${rb++}`}handle(t){if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new w(e=>{const i=this.nextCallback(),n=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${i}$1`),r=this.document.createElement("script");r.src=n;let s=null,o=!1,a=!1;this.callbackMap[i]=t=>{delete this.callbackMap[i],a||(s=t,o=!0)};const l=()=>{r.parentNode&&r.parentNode.removeChild(r),delete this.callbackMap[i]},u=t=>{a||(l(),o?(e.next(new Zv({body:s,status:200,statusText:"OK",url:n})),e.complete()):e.error(new Qv({url:n,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},h=t=>{a||(l(),e.error(new Qv({error:t,status:0,statusText:"JSONP Error",url:n})))};return r.addEventListener("load",u),r.addEventListener("error",h),this.document.body.appendChild(r),e.next({type:Yv.Sent}),()=>{a=!0,r.removeEventListener("load",u),r.removeEventListener("error",h),l()}})}}ob.\u0275fac=function(t){return new(t||ob)(ue(sb),ue(Hg))},ob.\u0275prov=xt({token:ob,factory:ob.\u0275fac}),ob.ctorParameters=()=>[{type:sb},{type:void 0,decorators:[{type:pt,args:[Hg]}]}];class ab{constructor(t){this.jsonp=t}intercept(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)}}ab.\u0275fac=function(t){return new(t||ab)(ue(ob))},ab.\u0275prov=xt({token:ab,factory:ab.\u0275fac}),ab.ctorParameters=()=>[{type:ob}];const lb=/^\)\]\}',?\n/;class ub{}class hb{constructor(){}build(){return new XMLHttpRequest}}hb.\u0275fac=function(t){return new(t||hb)},hb.\u0275prov=xt({token:hb,factory:hb.\u0275fac}),hb.ctorParameters=()=>[];class cb{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new w(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===i.status?204:i.status,n=i.statusText||"OK",s=new Bv(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return r=new Xv({headers:s,status:e,statusText:n,url:o}),r},o=()=>{let{headers:n,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===i.response?i.responseText:i.response),0===r&&(r=l?200:0);let u=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(lb,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,u&&(u=!1,l={error:h,text:l})}}u?(e.next(new Zv({body:l,headers:n,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new Qv({error:l,headers:n,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=s(),r=new Qv({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(r)};let l=!1;const u=n=>{l||(e.next(s()),l=!0);let r={type:Yv.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(r.total=n.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),e.next(r)},h=t=>{let i={type:Yv.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:Yv.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("load",o),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.abort()}})}}cb.\u0275fac=function(t){return new(t||cb)(ue(ub))},cb.\u0275prov=xt({token:cb,factory:cb.\u0275fac}),cb.ctorParameters=()=>[{type:ub}];const pb=new Jt("XSRF_COOKIE_NAME"),db=new Jt("XSRF_HEADER_NAME");class fb{}class gb{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Km(t,this.cookieName),this.lastCookieString=t),this.lastToken}}gb.\u0275fac=function(t){return new(t||gb)(ue(Hg),ue(zf),ue(pb))},gb.\u0275prov=xt({token:gb,factory:gb.\u0275fac}),gb.ctorParameters=()=>[{type:void 0,decorators:[{type:pt,args:[Hg]}]},{type:String,decorators:[{type:pt,args:[zf]}]},{type:String,decorators:[{type:pt,args:[pb]}]}];class mb{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}mb.\u0275fac=function(t){return new(t||mb)(ue(fb),ue(db))},mb.\u0275prov=xt({token:mb,factory:mb.\u0275fac}),mb.ctorParameters=()=>[{type:fb},{type:String,decorators:[{type:pt,args:[db]}]}];class yb{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(ib,[]);this.chain=t.reduceRight((t,e)=>new eb(t,e),this.backend)}return this.chain.handle(t)}}function vb(){return"object"==typeof window?window:{}}yb.\u0275fac=function(t){return new(t||yb)(ue(Nv),ue(Ra))},yb.\u0275prov=xt({token:yb,factory:yb.\u0275fac}),yb.ctorParameters=()=>[{type:Nv},{type:Ra}];class bb{static disable(){return{ngModule:bb,providers:[{provide:mb,useClass:nb}]}}static withOptions(t={}){return{ngModule:bb,providers:[t.cookieName?{provide:pb,useValue:t.cookieName}:[],t.headerName?{provide:db,useValue:t.headerName}:[]]}}}bb.\u0275mod=ze({type:bb}),bb.\u0275inj=wt({factory:function(t){return new(t||bb)},providers:[mb,{provide:ib,useExisting:mb,multi:!0},{provide:fb,useClass:gb},{provide:pb,useValue:"XSRF-TOKEN"},{provide:db,useValue:"X-XSRF-TOKEN"}]});class _b{}_b.\u0275mod=ze({type:_b}),_b.\u0275inj=wt({factory:function(t){return new(t||_b)},providers:[tb,{provide:Rv,useClass:yb},cb,{provide:Nv,useExisting:cb},hb,{provide:ub,useExisting:hb}],imports:[[bb.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]});class xb{}xb.\u0275mod=ze({type:xb}),xb.\u0275inj=wt({factory:function(t){return new(t||xb)},providers:[ob,{provide:sb,useFactory:vb},{provide:ib,useClass:ab,multi:!0}]});class wb extends D{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}const Pb=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Cb={};class Sb{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Ob(t,this.resultSelector))}}class Ob extends V{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Cb),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++){const e=t[i];this.add(L(this,e,e,i))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i,n,r){const s=this.values,o=s[i],a=this.toRespond?o===Cb?--this.toRespond:this.toRespond:0;s[i]=e,0===a&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Db=new w(t=>t.complete());function Eb(t){return t?function(t){return new w(e=>t.schedule(()=>e.complete()))}(t):Db}function Tb(t){return new w(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?U(i):Eb()).subscribe(e)})}function kb(){return K(1)}const Ib=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Mb(t){return function(e){return 0===t?Eb():e.lift(new Fb(t))}}class Fb{constructor(t){if(this.total=t,this.total<0)throw new Ib}call(t,e){return e.subscribe(new Ab(t,this.total))}}class Ab extends m{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;if(e.length<i)e.push(t);else{e[n%i]=t}}_complete(){const t=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let r=0;r<i;r++){const r=e++%i;t.next(n[r])}}t.complete()}}function jb(t=Rb){return e=>e.lift(new Lb(t))}class Lb{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Vb(t,this.errorFactory))}}class Vb extends m{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Rb(){return new Pb}function Nb(t=null){return e=>e.lift(new Bb(t))}class Bb{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Hb(t,this.defaultValue))}}class Hb extends m{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function zb(t,e){const i=arguments.length>=2;return n=>n.pipe(t?jv((e,i)=>t(e,i,n)):b,Mb(1),i?Nb(e):jb(()=>new Pb))}function Ub(t){return function(e){const i=new Wb(t),n=e.lift(i);return i.caught=n}}class Wb{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Gb(t,this.selector,this.caught))}}class Gb extends V{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new k(this,void 0,void 0);this.add(n);const r=L(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}function $b(t){return e=>0===t?Eb():e.lift(new Kb(t))}class Kb{constructor(t){if(this.total=t,this.total<0)throw new Ib}call(t,e){return e.subscribe(new Yb(t,this.total))}}class Yb extends m{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function qb(t,e){const i=arguments.length>=2;return n=>n.pipe(t?jv((e,i)=>t(e,i,n)):b,$b(1),i?Nb(e):jb(()=>new Pb))}class Xb{constructor(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}call(t,e){return e.subscribe(new Zb(t,this.predicate,this.thisArg,this.source))}}class Zb extends m{constructor(t,e,i,n){super(t),this.predicate=e,this.thisArg=i,this.source=n,this.index=0,this.thisArg=i||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Qb(t,e){return"function"==typeof e?i=>i.pipe(Qb((i,n)=>U(t(i,n)).pipe(R((t,r)=>e(i,t,n,r))))):e=>e.lift(new Jb(t))}class Jb{constructor(t){this.project=t}call(t,e){return e.subscribe(new t_(t,this.project))}}class t_ extends V{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new k(this,e,i),s=this.destination;s.add(r),this.innerSubscription=L(this,t,void 0,void 0,r),this.innerSubscription!==r&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,r){this.destination.next(e)}}function e_(...t){return kb()(Fv(...t))}function i_(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new n_(t,e,i))}}class n_{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new r_(t,this.accumulator,this.seed,this.hasSeed))}}class r_ extends m{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}function s_(){}function o_(t,e,i){return function(n){return n.lift(new a_(t,e,i))}}class a_{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new l_(t,this.nextOrObserver,this.error,this.complete))}}class l_ extends m{constructor(t,e,i,n){super(t),this._tapNext=s_,this._tapError=s_,this._tapComplete=s_,this._tapError=i||s_,this._tapComplete=n||s_,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s_,this._tapError=e.error||s_,this._tapComplete=e.complete||s_)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class u_{constructor(t){this.callback=t}call(t,e){return e.subscribe(new h_(t,this.callback))}}class h_ extends m{constructor(t,e){super(t),this.add(new p(e))}}class c_{constructor(t,e){this.id=t,this.url=e}}class p_ extends c_{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class d_ extends c_{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class f_ extends c_{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class g_ extends c_{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class m_ extends c_{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class y_ extends c_{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class v_ extends c_{constructor(t,e,i,n,r){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class b_ extends c_{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class __ extends c_{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class x_{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class w_{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class P_{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class C_{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S_{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class O_{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class D_{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){const t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}}class E_{}E_.\u0275fac=function(t){return new(t||E_)},E_.\u0275cmp=Ve({type:E_,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&eu(0,"router-outlet")},directives:function(){return[Hw]},encapsulation:2});class T_{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function k_(t){return new T_(t)}function I_(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function M_(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length<t.length))return null;const r={};for(let s=0;s<n.length;s++){const e=n[s],i=t[s];if(e.startsWith(":"))r[e.substring(1)]=i;else if(e!==i.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}class F_{constructor(t,e){this.routes=t,this.module=e}}function A_(t,e=""){for(let i=0;i<t.length;i++){const n=t[i];j_(n,L_(e,n))}}function j_(t,e){if(!t)throw new Error(`\n Invalid configuration of route '${e}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){const i="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. ${i}`)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&A_(t.children,e)}function L_(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function V_(t){const e=t.children&&t.children.map(V_),i=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!i.component&&(e||i.loadChildren)&&i.outlet&&"primary"!==i.outlet&&(i.component=E_),i}function R_(t,e){const i=Object.keys(t),n=Object.keys(e);if(!i||!n||i.length!=n.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!N_(t[r],e[r]))return!1;return!0}function N_(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function B_(t){return Array.prototype.concat.apply([],t)}function H_(t){return t.length>0?t[t.length-1]:null}function z_(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function U_(t){return au(t)?t:ou(t)?U(Promise.resolve(t)):Fv(t)}function W_(t,e,i){return i?function(t,e){return R_(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!q_(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>N_(t[i],e[i]))}(t.queryParams,e.queryParams)&&G_(t.root,e.root)}function G_(t,e){return function t(e,i,n){if(e.segments.length>n.length){return!!q_(e.segments.slice(0,n.length),n)&&!i.hasChildren()}if(e.segments.length===n.length){if(!q_(e.segments,n))return!1;for(const t in i.children){if(!e.children[t])return!1;if(!G_(e.children[t],i.children[t]))return!1}return!0}{const r=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!q_(e.segments,r)&&(!!e.children.primary&&t(e.children.primary,i,s))}}(t,e,e.segments)}class $_{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=k_(this.queryParams)),this._queryParamMap}toString(){return J_.serialize(this)}}class K_{constructor(t,e){this.segments=t,this.children=e,this.parent=null,z_(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tx(this)}}class Y_{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=k_(this.parameters)),this._parameterMap}toString(){return ox(this)}}function q_(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function X_(t,e){let i=[];return z_(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),z_(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class Z_{}class Q_{parse(t){const e=new cx(t);return new $_(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,i){if(!e.hasChildren())return tx(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return z_(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=X_(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return`${tx(e)}/(${i.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${ix(e)}=${ix(t)}`).join("&"):`${ix(e)}=${ix(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const J_=new Q_;function tx(t){return t.segments.map(t=>ox(t)).join("/")}function ex(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ix(t){return ex(t).replace(/%3B/gi,";")}function nx(t){return ex(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rx(t){return decodeURIComponent(t)}function sx(t){return rx(t.replace(/\+/g,"%20"))}function ox(t){return`${nx(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${nx(t)}=${nx(e[t])}`).join("")}`;var e}const ax=/^[^\/()?;=#]+/;function lx(t){const e=t.match(ax);return e?e[0]:""}const ux=/^[^=?&#]+/;const hx=/^[^?&#]+/;class cx{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new K_([],{}):new K_([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new K_(t,e)),i}parseSegment(){const t=lx(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Y_(rx(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=lx(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=lx(this.remaining);t&&(i=t,this.capture(i))}t[rx(e)]=rx(i)}parseQueryParam(t){const e=function(t){const e=t.match(ux);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(hx);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=sx(e),r=sx(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(r)}else t[n]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=lx(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new K_([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class px{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=dx(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=dx(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=fx(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return fx(t,this._root).map(t=>t.value)}}function dx(t,e){if(t===e.value)return e;for(const i of e.children){const e=dx(t,i);if(e)return e}return null}function fx(t,e){if(t===e.value)return[e];for(const i of e.children){const n=fx(t,i);if(n.length)return n.unshift(e),n}return[]}class gx{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function mx(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class yx extends px{constructor(t,e){super(t),this.snapshot=e,Px(this,t)}toString(){return this.snapshot.toString()}}function vx(t,e){const i=function(t,e){const i=new xx([],{},{},"",{},"primary",e,null,t.root,-1,{});return new wx("",new gx(i,[]))}(t,e),n=new wb([new Y_("",{})]),r=new wb({}),s=new wb({}),o=new wb({}),a=new wb(""),l=new bx(n,r,o,a,s,"primary",e,i.root);return l.snapshot=i.root,new yx(new gx(l,[]),i)}class bx{constructor(t,e,i,n,r,s,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(R(t=>k_(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(R(t=>k_(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function _x(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class xx{constructor(t,e,i,n,r,s,o,a,l,u,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=k_(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=k_(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class wx extends px{constructor(t,e){super(e),this.url=t,Px(this,e)}toString(){return Cx(this._root)}}function Px(t,e){e.value._routerState=t,e.children.forEach(e=>Px(t,e))}function Cx(t){const e=t.children.length>0?` { ${t.children.map(Cx).join(", ")} } `:"";return`${t.value}${e}`}function Sx(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,R_(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),R_(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!R_(t[i],e[i]))return!1;return!0}(e.url,i.url)||t.url.next(i.url),R_(e.data,i.data)||t.data.next(i.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Ox(t,e){const i=R_(t.params,e.params)&&(n=t.url,r=e.url,q_(n,r)&&n.every((t,e)=>R_(t.parameters,r[e].parameters)));var n,r;const s=!t.parent!=!e.parent;return i&&!s&&(!t.parent||Ox(t.parent,e.parent))}function Dx(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const r=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(n.value.snapshot,e.value))return Dx(t,e,n);return Dx(t,e)})}(t,e,i);return new gx(n,r)}{const i=t.retrieve(e.value);if(i){const t=i.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)t(e.children[n],i.children[n])}(e,t),t}{const i=(n=e.value,new bx(new wb(n.url),new wb(n.params),new wb(n.queryParams),new wb(n.fragment),new wb(n.data),n.outlet,n.component,n)),r=e.children.map(e=>Dx(t,e));return new gx(i,r)}}var n}function Ex(t,e,i,n,r){if(0===i.length)return kx(e.root,e.root,e,n,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Ix(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,r)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return z_(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===r?(n.split("/").forEach((n,r)=>{0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Ix(i,e,n)}(i);if(s.toRoot())return kx(e.root,new K_([],{}),e,n,r);const o=function(t,e,i){if(t.isAbsolute)return new Mx(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new Mx(i.snapshot._urlSegment,!0,0);const n=Tx(t.commands[0])?0:1,r=i.snapshot._lastPathIndex+n;return function(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new Error("Invalid number of '../'");r=n.segments.length}return new Mx(n,!1,r-s)}(i.snapshot._urlSegment,r,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?jx(o.segmentGroup,o.index,s.commands):Ax(o.segmentGroup,o.index,s.commands);return kx(o.segmentGroup,a,e,n,r)}function Tx(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function kx(t,e,i,n,r){let s={};return n&&z_(n,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),i.root===t?new $_(e,s,r):new $_(function t(e,i,n){const r={};return z_(e.children,(e,s)=>{r[s]=e===i?n:t(e,i,n)}),new K_(e.segments,r)}(i.root,t,e),s,r)}class Ix{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Tx(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==H_(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mx{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Fx(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Ax(t,e,i){if(t||(t=new K_([],{})),0===t.segments.length&&t.hasChildren())return jx(t,e,i);const n=function(t,e,i){let n=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return s;const e=t.segments[r],o=Fx(i[n]),a=n<i.length-1?i[n+1]:null;if(r>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Nx(o,a,e))return s;n+=2}else{if(!Nx(o,{},e))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const e=new K_(t.segments.slice(0,n.pathIndex),{});return e.children.primary=new K_(t.segments.slice(n.pathIndex),t.children),jx(e,0,r)}return n.match&&0===r.length?new K_(t.segments,{}):n.match&&!t.hasChildren()?Lx(t,e,i):n.match?jx(t,0,r):Lx(t,e,i)}function jx(t,e,i){if(0===i.length)return new K_(t.segments,{});{const n=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(i),r={};return z_(n,(i,n)=>{null!==i&&(r[n]=Ax(t.children[n],e,i))}),z_(t.children,(t,e)=>{void 0===n[e]&&(r[e]=t)}),new K_(t.segments,r)}}function Lx(t,e,i){const n=t.segments.slice(0,e);let r=0;for(;r<i.length;){if("object"==typeof i[r]&&void 0!==i[r].outlets){const t=Vx(i[r].outlets);return new K_(n,t)}if(0===r&&Tx(i[0])){const s=t.segments[e];n.push(new Y_(s.path,i[0])),r++;continue}const s=Fx(i[r]),o=r<i.length-1?i[r+1]:null;s&&o&&Tx(o)?(n.push(new Y_(s,Rx(o))),r+=2):(n.push(new Y_(s,{})),r++)}return new K_(n,{})}function Vx(t){const e={};return z_(t,(t,i)=>{null!==t&&(e[i]=Lx(new K_([],{}),0,t))}),e}function Rx(t){const e={};return z_(t,(t,i)=>e[i]=`${t}`),e}function Nx(t,e,i){return t==i.path&&R_(e,i.parameters)}class Bx{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Sx(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=mx(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),z_(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,r=e?e.value:null;if(n===r)if(n.component){const r=i.getContext(n.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=mx(t),r=t.value.component?i.children:e;z_(n,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=mx(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new O_(t.value.snapshot))}),t.children.length&&this.forwardEvent(new C_(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,r=e?e.value:null;if(Sx(n),n===r)if(n.component){const r=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Hx(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),r=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=r,e.outlet&&e.outlet.activateWith(n,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Hx(t){Sx(t.value),t.children.forEach(Hx)}function zx(t){return"function"==typeof t}function Ux(t){return t instanceof $_}class Wx{constructor(t){this.segmentGroup=t||null}}class Gx{constructor(t){this.urlTree=t}}function $x(t){return new w(e=>e.error(new Wx(t)))}function Kx(t){return new w(e=>e.error(new Gx(t)))}function Yx(t){return new w(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class qx{constructor(t,e,i,n,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(ye)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(R(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ub(t=>{if(t instanceof Gx)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Wx)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(R(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Ub(t=>{if(t instanceof Wx)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new K_([],{primary:t}):t;return new $_(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(R(t=>new K_([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Fv({});const i=[],n=[],r={};return z_(t,(t,s)=>{const o=e(s,t).pipe(R(t=>r[s]=t));"primary"===s?i.push(o):n.push(o)}),Fv.apply(null,i.concat(n)).pipe(kb(),zb(),R(()=>r))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,r,s){return Fv(...i).pipe(R(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,r,s).pipe(Ub(t=>{if(t instanceof Wx)return Fv(null);throw t}))),kb(),qb(t=>!!t),Ub((t,i)=>{if(t instanceof Pb||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,r))return Fv(new K_([],{}));throw new Wx(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,r,s,o){return Jx(n)!==s?$x(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s):$x(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Kx(r):this.lineralizeSegments(i,r).pipe(W(i=>{const r=new K_(i,{});return this.expandSegment(t,r,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=Xx(e,n,r);if(!o)return $x(e);const h=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?Kx(h):this.lineralizeSegments(n,h).pipe(W(n=>this.expandSegment(t,e,i,n.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(R(t=>(i._loadedConfig=t,new K_(n,{})))):Fv(new K_(n,{}));const{matched:r,consumedSegments:s,lastChild:o}=Xx(e,i,n);if(!r)return $x(e);const a=n.slice(o);return this.getChildConfig(t,i,n).pipe(W(t=>{const i=t.module,n=t.routes,{segmentGroup:r,slicedSegments:o}=function(t,e,i,n){if(i.length>0&&function(t,e,i){return i.some(i=>Qx(t,e,i)&&"primary"!==Jx(i))}(t,i,n)){return{segmentGroup:Zx(new K_(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==Jx(n)&&(i[Jx(n)]=new K_([],{}));return i}(n,new K_(i,t.children)))),slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Qx(t,e,i))}(t,i,n)){return{segmentGroup:Zx(new K_(t.segments,function(t,e,i,n){const r={};for(const s of i)Qx(t,e,s)&&!n[Jx(s)]&&(r[Jx(s)]=new K_([],{}));return Object.assign(Object.assign({},n),r)}(t,i,n,t.children))),slicedSegments:i}}return{segmentGroup:t,slicedSegments:i}}(e,s,a,n);if(0===o.length&&r.hasChildren()){return this.expandChildren(i,n,r).pipe(R(t=>new K_(s,t)))}return 0===n.length&&0===o.length?Fv(new K_(s,{})):this.expandSegment(i,r,n,o,"primary",!0).pipe(R(t=>new K_(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Fv(new F_(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Fv(e._loadedConfig):function(t,e,i){const n=e.canLoad;return n&&0!==n.length?U(n).pipe(R(n=>{const r=t.get(n);let s;if(function(t){return t&&zx(t.canLoad)}(r))s=r.canLoad(e,i);else{if(!zx(r))throw new Error("Invalid CanLoad guard");s=r(e,i)}return U_(s)})).pipe(kb(),function(t,e){return i=>i.lift(new Xb(t,e,i))}(t=>!0===t)):Fv(!0)}(t.injector,e,i).pipe(W(i=>i?this.configLoader.load(t.injector,e).pipe(R(t=>(e._loadedConfig=t,t))):function(t){return new w(e=>e.error(I_(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Fv(new F_([],t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Fv(i);if(n.numberOfChildren>1||!n.children.primary)return Yx(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const r=this.createSegmentGroup(t,e.root,i,n);return new $_(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return z_(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);i[n]=e[r]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const r=this.createSegments(t,e.segments,i,n);let s={};return z_(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,i,n)}),new K_(r,s)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Xx(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||M_)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Zx(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new K_(t.segments.concat(e.segments),e.children)}return t}function Qx(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&(""===i.path&&void 0!==i.redirectTo)}function Jx(t){return t.outlet||"primary"}function tw(t,e,i,n){return function(r){return r.pipe(Qb(r=>function(t,e,i,n,r){return new qx(t,e,i,n,r).apply()}(t,e,i,r.extractedUrl,n).pipe(R(t=>Object.assign(Object.assign({},r),{urlAfterRedirects:t})))))}}class ew{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class iw{constructor(t,e){this.component=t,this.route=e}}function nw(t,e,i){const n=t._root;return sw(n,e?e._root:null,i,[n.value])}function rw(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function sw(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=mx(e);return t.children.forEach(t=>{!function(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!q_(t.url,e.url);case"pathParamsOrQueryParamsChange":return!q_(t.url,e.url)||!R_(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ox(t,e)||!R_(t.queryParams,e.queryParams);case"paramsChange":default:return!Ox(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);if(l?r.canActivateChecks.push(new ew(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?sw(t,e,a?a.children:null,n,r):sw(t,e,i,n,r),l){const t=a&&a.outlet&&a.outlet.component||null;r.canDeactivateChecks.push(new iw(t,o))}}else o&&ow(e,a,r),r.canActivateChecks.push(new ew(n)),s.component?sw(t,null,a?a.children:null,n,r):sw(t,null,i,n,r)}(t,s[t.value.outlet],i,n.concat([t.value]),r),delete s[t.value.outlet]}),z_(s,(t,e)=>ow(t,i.getContext(e),r)),r}function ow(t,e,i){const n=mx(t),r=t.value;z_(n,(t,n)=>{r.component?ow(t,e?e.children.getContext(n):null,i):ow(t,e,i)}),r.component&&e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new iw(e.outlet.component,r)):i.canDeactivateChecks.push(new iw(null,r))}const aw=Symbol("INITIAL_VALUE");function lw(){return Qb(t=>function(...t){let e=null,i=null;return T(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&u(t[0])&&(t=t[0]),Y(t,i).lift(new Sb(e))}(...t.map(t=>t.pipe($b(1),function(...t){const e=t[t.length-1];return T(e)?(t.pop(),i=>e_(t,i,e)):e=>e_(t,e)}(aw)))).pipe(i_((t,e)=>{let i=!1;return e.reduce((t,n,r)=>{if(t!==aw)return t;if(n===aw&&(i=!0),!i){if(!1===n)return n;if(r===e.length-1||Ux(n))return n}return t},t)},aw),jv(t=>t!==aw),R(t=>Ux(t)?t:!0===t),$b(1)))}function uw(t,e){return function(i){return i.pipe(W(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return 0===o.length&&0===s.length?Fv(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return U(t).pipe(W(t=>function(t,e,i,n,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?Fv(s.map(s=>{const o=rw(s,e,r);let a;if(function(t){return t&&zx(t.canDeactivate)}(o))a=U_(o.canDeactivate(t,e,i,n));else{if(!zx(o))throw new Error("Invalid CanDeactivate guard");a=U_(o(t,e,i,n))}return a.pipe(qb())})).pipe(lw()):Fv(!0)}(t.component,t.route,i,e,n)),qb(t=>!0!==t,!0))}(o,n,r,t).pipe(W(i=>i&&"boolean"==typeof i?function(t,e,i,n){return U(e).pipe(Av(e=>U([cw(e.route.parent,n),hw(e.route,n),dw(t,e.path,i),pw(t,e.route,i)]).pipe(kb(),qb(t=>!0!==t,!0))),qb(t=>!0!==t,!0))}(n,s,t,e):Fv(i)),R(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}function hw(t,e){return null!==t&&e&&e(new S_(t)),Fv(!0)}function cw(t,e){return null!==t&&e&&e(new P_(t)),Fv(!0)}function pw(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Fv(n.map(n=>Tb(()=>{const r=rw(n,e,i);let s;if(function(t){return t&&zx(t.canActivate)}(r))s=U_(r.canActivate(e,t));else{if(!zx(r))throw new Error("Invalid CanActivate guard");s=U_(r(e,t))}return s.pipe(qb())}))).pipe(lw()):Fv(!0)}function dw(t,e,i){const n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Tb(()=>Fv(e.guards.map(r=>{const s=rw(r,e.node,i);let o;if(function(t){return t&&zx(t.canActivateChild)}(s))o=U_(s.canActivateChild(n,t));else{if(!zx(s))throw new Error("Invalid CanActivateChild guard");o=U_(s(n,t))}return o.pipe(qb())})).pipe(lw())));return Fv(r).pipe(lw())}class fw{}class gw{constructor(t,e,i,n,r,s){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){try{const t=vw(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new xx([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new gx(i,e),r=new wx(this.url,n);return this.inheritParamsAndData(r._root),Fv(r)}catch(t){return new w(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=_x(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=X_(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const s of t)try{return this.processSegmentAgainstRoute(s,e,i,n)}catch(r){if(!(r instanceof fw))throw r}if(this.noLeftoversInUrl(e,i,n))return[];throw new fw}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new fw;if((t.outlet||"primary")!==n)throw new fw;let r,s=[],o=[];if("**"===t.path){const s=i.length>0?H_(i).parameters:{};r=new xx(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xw(t),n,t.component,t,mw(e),yw(e)+i.length,ww(t))}else{const a=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new fw;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||M_)(i,t,e);if(!n)throw new fw;const r={};z_(n.posParams,(t,e)=>{r[e]=t.path});const s=n.consumed.length>0?Object.assign(Object.assign({},r),n.consumed[n.consumed.length-1].parameters):r;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:s}}(e,t,i);s=a.consumedSegments,o=i.slice(a.lastChild),r=new xx(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xw(t),n,t.component,t,mw(e),yw(e)+s.length,ww(t))}const a=function(t){if(t.children)return t.children;if(t.loadChildren)return t._loadedConfig.routes;return[]}(t),{segmentGroup:l,slicedSegments:u}=vw(e,s,o,a,this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new gx(r,t)]}if(0===a.length&&0===u.length)return[new gx(r,[])];const h=this.processSegment(a,l,u,"primary");return[new gx(r,h)]}}function mw(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function yw(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function vw(t,e,i,n,r){if(i.length>0&&function(t,e,i){return i.some(i=>bw(t,e,i)&&"primary"!==_w(i))}(t,i,n)){const r=new K_(e,function(t,e,i,n){const r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const s of i)if(""===s.path&&"primary"!==_w(s)){const i=new K_([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,r[_w(s)]=i}return r}(t,e,n,new K_(i,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>bw(t,e,i))}(t,i,n)){const s=new K_(t.segments,function(t,e,i,n,r,s){const o={};for(const a of n)if(bw(t,i,a)&&!r[_w(a)]){const i=new K_([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[_w(a)]=i}return Object.assign(Object.assign({},r),o)}(t,e,i,n,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}const s=new K_(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function bw(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&(""===i.path&&void 0===i.redirectTo)}function _w(t){return t.outlet||"primary"}function xw(t){return t.data||{}}function ww(t){return t.resolve||{}}function Pw(t,e,i,n,r){return function(s){return s.pipe(W(s=>function(t,e,i,n,r="emptyOnly",s="legacy"){return new gw(t,e,i,n,r,s).recognize()}(t,e,s.urlAfterRedirects,i(s.urlAfterRedirects),n,r).pipe(R(t=>Object.assign(Object.assign({},s),{targetSnapshot:t})))))}}function Cw(t,e){return function(i){return i.pipe(W(i=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=i;return r.length?U(r).pipe(Av(i=>function(t,e,i,n){return function(t,e,i,n){const r=Object.keys(t);if(0===r.length)return Fv({});if(1===r.length){const s=r[0];return Sw(t[s],e,i,n).pipe(R(t=>({[s]:t})))}const s={};return U(r).pipe(W(r=>Sw(t[r],e,i,n).pipe(R(t=>(s[r]=t,t))))).pipe(zb(),R(()=>s))}(t._resolve,t,e,n).pipe(R(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),_x(t,i).resolve),null)))}(i.route,n,t,e)),function(t,e){return arguments.length>=2?function(i){return _(i_(t,e),Mb(1),Nb(e))(i)}:function(e){return _(i_((e,i,n)=>t(e,i,n+1)),Mb(1))(e)}}((t,e)=>t),R(t=>i)):Fv(i)}))}}function Sw(t,e,i,n){const r=rw(t,e,n);return r.resolve?U_(r.resolve(e,i)):U_(r(e,i))}function Ow(t){return function(e){return e.pipe(Qb(e=>{const i=t(e);return i?U(i).pipe(R(()=>e)):U([e])}))}}class Dw{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const Ew=new Jt("ROUTES");class Tw{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(R(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new F_(B_(n.injector.get(Ew)).map(V_),n)}))}loadModuleFactory(t){return"string"==typeof t?U(this.loader.load(t)):U_(t()).pipe(W(t=>t instanceof ve?Fv(t):U(this.compiler.compileModuleAsync(t))))}}class kw{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Iw(t){throw t}function Mw(t,e,i){return e.parse("/")}function Fw(t,e){return Fv(null)}class Aw{constructor(t,e,i,n,r,s,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new D,this.errorHandler=Iw,this.malformedUriErrorHandler=Mw,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Fw,afterPreactivation:Fw},this.urlHandlingStrategy=new kw,this.routeReuseStrategy=new Dw,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy";this.ngModule=r.get(ye),this.console=r.get(Wf);const l=r.get(sg);this.isNgZoneEnabled=l instanceof sg,this.resetConfig(a),this.currentUrlTree=new $_(new K_([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Tw(s,o,t=>this.triggerEvent(new x_(t)),t=>this.triggerEvent(new w_(t))),this.routerState=vx(this.currentUrlTree,this.rootComponentType),this.transitions=new wb({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(jv(t=>0!==t.id),R(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Qb(t=>{let i=!1,n=!1;return Fv(t).pipe(o_(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Qb(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Fv(t).pipe(Qb(t=>{const i=this.transitions.getValue();return e.next(new p_(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?Db:[t]}),Qb(t=>Promise.resolve(t)),tw(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),o_(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),Pw(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),o_(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),o_(t=>{const i=new m_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:r,restoredState:s,extras:o}=t,a=new p_(i,this.serializeUrl(n),r,s);e.next(a);const l=vx(n,this.rootComponentType).snapshot;return Fv(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Db}),Ow(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),o_(t=>{const e=new y_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),R(t=>Object.assign(Object.assign({},t),{guards:nw(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),uw(this.ngModule.injector,t=>this.triggerEvent(t)),o_(t=>{if(Ux(t.guardsResult)){const e=I_(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),o_(t=>{const e=new v_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),jv(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new f_(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),Ow(t=>{if(t.guards.canActivateChecks.length)return Fv(t).pipe(o_(t=>{const e=new b_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Cw(this.paramsInheritanceStrategy,this.ngModule.injector),o_(t=>{const e=new __(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ow(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),R(t=>{const e=function(t,e,i){const n=Dx(t,e._root,i?i._root:void 0);return new yx(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),o_(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),R(t=>(new Bx(o,t.targetRouterState,t.currentRouterState,a).activate(s),t))),o_({next(){i=!0},complete(){i=!0}}),(r=()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new f_(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new u_(r))),Ub(i=>{if(n=!0,(r=i)&&r.ngNavigationCancelingError){const n=Ux(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new f_(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(r),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree),n={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy};return this.scheduleNavigation(e,"imperative",null,n,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new g_(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(s){t.reject(s)}}var r;return Db}));var r,s,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const i="popstate"===t.type?"popstate":"hashchange",n=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,i,n,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){A_(t),this.config=t.map(V_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:r,preserveQueryParams:s,queryParamsHandling:o,preserveFragment:a}=e;hr()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=i||this.routerState.root,u=a?this.currentUrlTree.fragment:r;let h=null;if(o)switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=n||null}else h=s?this.currentUrlTree.queryParams:n||null;return null!==h&&(h=this.removeEmptyProps(h)),Ex(l,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){hr()&&this.isNgZoneEnabled&&!sg.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=Ux(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const i=t[e];if(null==i)throw new Error(`The requested path contains ${i} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(i){e=this.malformedUriErrorHandler(i,this.urlSerializer,t)}return e}isActive(t,e){if(Ux(t))return W_(this.currentUrlTree,t,e);const i=this.parseUrl(t);return W_(this.currentUrlTree,i,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,i)=>{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new d_(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,r){const s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;r?(o=r.resolve,a=r.reject,l=r.promise):l=new Promise((t,e)=>{o=t,a=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const r=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(r,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}Aw.\u0275fac=function(t){ql()},Aw.\u0275dir=Ge({type:Aw});class jw{constructor(t,e,i,n,r){this.router=t,this.route=e,this.commands=[],null==i&&n.setAttribute(r.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){hr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Vw(this.skipLocationChange),replaceUrl:Vw(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Vw(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Vw(this.preserveFragment)})}}jw.\u0275fac=function(t){return new(t||jw)(Kl(Aw),Kl(bx),Yl("tabindex"),Kl(Oc),Kl(wc))},jw.\u0275dir=Ge({type:jw,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&lu("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),jw.ctorParameters=()=>[{type:Aw},{type:bx},{type:String,decorators:[{type:yt,args:["tabindex"]}]},{type:Oc},{type:wc}],jw.propDecorators={queryParams:[{type:Ef}],fragment:[{type:Ef}],queryParamsHandling:[{type:Ef}],preserveFragment:[{type:Ef}],skipLocationChange:[{type:Ef}],replaceUrl:[{type:Ef}],state:[{type:Ef}],routerLink:[{type:Ef}],preserveQueryParams:[{type:Ef}],onClick:[{type:If,args:["click"]}]};class Lw{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof d_&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){hr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n){if(0!==t||e||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:Vw(this.skipLocationChange),replaceUrl:Vw(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Vw(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Vw(this.preserveFragment)})}}function Vw(t){return""===t||!!t}Lw.\u0275fac=function(t){return new(t||Lw)(Kl(Aw),Kl(bx),Kl(Zg))},Lw.\u0275dir=Ge({type:Lw,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&lu("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(Wh("href",e.href,Wr),Ol("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[oc]}),Lw.ctorParameters=()=>[{type:Aw},{type:bx},{type:Zg}],Lw.propDecorators={target:[{type:kf,args:["attr.target"]},{type:Ef}],queryParams:[{type:Ef}],fragment:[{type:Ef}],queryParamsHandling:[{type:Ef}],preserveFragment:[{type:Ef}],skipLocationChange:[{type:Ef}],replaceUrl:[{type:Ef}],state:[{type:Ef}],href:[{type:kf}],routerLink:[{type:Ef}],preserveQueryParams:[{type:Ef}],onClick:[{type:If,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]};class Rw{constructor(t,e,i,n,r){this.router=t,this.element=e,this.renderer=i,this.link=n,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof d_&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}Rw.\u0275fac=function(t){return new(t||Rw)(Kl(Aw),Kl(wc),Kl(Oc),Kl(jw,8),Kl(Lw,8))},Rw.\u0275dir=Ge({type:Rw,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;(1&t&&(Gd(i,jw,!0),Gd(i,Lw,!0)),2&t)&&(Hd(n=Yd())&&(e.links=n),Hd(n=Yd())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[oc]}),Rw.ctorParameters=()=>[{type:Aw},{type:wc},{type:Oc},{type:jw,decorators:[{type:dt}]},{type:Lw,decorators:[{type:dt}]}],Rw.propDecorators={links:[{type:al,args:[jw,{descendants:!0}]}],linksWithHrefs:[{type:al,args:[Lw,{descendants:!0}]}],routerLinkActiveOptions:[{type:Ef}],routerLinkActive:[{type:Ef}]};class Nw{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Bw,this.attachRef=null}}class Bw{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Nw,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Hw{constructor(t,e,i,n,r){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new kd,this.deactivateEvents=new kd,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=t._futureSnapshot.routeConfig.component,n=(e=e||this.resolver).resolveComponentFactory(i),r=this.parentContexts.getOrCreateContext(this.name).children,s=new zw(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}Hw.\u0275fac=function(t){return new(t||Hw)(Kl(Bw),Kl(qc),Kl(xc),Yl("name"),Kl(ra))},Hw.\u0275dir=Ge({type:Hw,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Hw.ctorParameters=()=>[{type:Bw},{type:qc},{type:xc},{type:String,decorators:[{type:yt,args:["name"]}]},{type:ra}],Hw.propDecorators={activateEvents:[{type:Tf,args:["activate"]}],deactivateEvents:[{type:Tf,args:["deactivate"]}]};class zw{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===bx?this.route:t===Bw?this.childContexts:this.parent.get(t,e)}}class Uw{}class Ww{preload(t,e){return Fv(null)}}class Gw{constructor(t,e,i,n,r){this.router=t,this.injector=n,this.preloadingStrategy=r;this.loader=new Tw(e,i,e=>t.triggerEvent(new x_(e)),e=>t.triggerEvent(new w_(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(jv(t=>t instanceof d_),Av(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ye);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return U(i).pipe(K(),R(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(W(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}Gw.\u0275fac=function(t){return new(t||Gw)(ue(Aw),ue(Eg),ue(eg),ue(Ra),ue(Uw))},Gw.\u0275prov=xt({token:Gw,factory:Gw.\u0275fac}),Gw.ctorParameters=()=>[{type:Aw},{type:Eg},{type:eg},{type:Ra},{type:Uw}];class $w{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof p_?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof d_&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof D_&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new D_(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}$w.\u0275fac=function(t){ql()},$w.\u0275dir=Ge({type:$w});const Kw=new Jt("ROUTER_CONFIGURATION"),Yw=new Jt("ROUTER_FORROOT_GUARD"),qw=[im,{provide:Z_,useClass:Q_},{provide:Aw,useFactory:function(t,e,i,n,r,s,o,a={},l,u){const h=new Aw(null,t,e,i,n,r,s,B_(o));l&&(h.urlHandlingStrategy=l);u&&(h.routeReuseStrategy=u);a.errorHandler&&(h.errorHandler=a.errorHandler);a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler);if(a.enableTracing){const t=Bg();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation);a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy);a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy);a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution);return h},deps:[Z_,Bw,im,Ra,Eg,eg,Ew,Kw,[class{},new dt],[class{},new dt]]},Bw,{provide:bx,useFactory:function(t){return t.routerState.root},deps:[Aw]},{provide:Eg,useClass:Ig},Gw,Ww,class{preload(t,e){return e().pipe(Ub(()=>Fv(null)))}},{provide:Kw,useValue:{enableTracing:!1}}];function Xw(){return new xg("Router",Aw)}class Zw{constructor(t,e){}static forRoot(t,e){return{ngModule:Zw,providers:[qw,eP(t),{provide:Yw,useFactory:tP,deps:[[Aw,new dt,new gt]]},{provide:Kw,useValue:e||{}},{provide:Zg,useFactory:Jw,deps:[zg,[new pt(Jg),new dt],Kw]},{provide:$w,useFactory:Qw,deps:[Aw,My,Kw]},{provide:Uw,useExisting:e&&e.preloadingStrategy?e.preloadingStrategy:Ww},{provide:xg,multi:!0,useFactory:Xw},[iP,{provide:Lf,multi:!0,useFactory:nP,deps:[iP]},{provide:sP,useFactory:rP,deps:[iP]},{provide:Uf,multi:!0,useExisting:sP}]]}}static forChild(t){return{ngModule:Zw,providers:[eP(t)]}}}function Qw(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new $w(t,e,i)}function Jw(t,e,i={}){return i.useHash?new em(t,e):new tm(t,e)}function tP(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function eP(t){return[{provide:sl,multi:!0,useValue:t},{provide:Ew,multi:!0,useValue:t}]}Zw.\u0275mod=ze({type:Zw}),Zw.\u0275inj=wt({factory:function(t){return new(t||Zw)(ue(Yw,8),ue(Aw,8))}}),Zw.ctorParameters=()=>[{type:void 0,decorators:[{type:dt},{type:pt,args:[Yw]}]},{type:Aw,decorators:[{type:dt}]}];class iP{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new D}appInitializer(){return this.injector.get(Wg,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Aw),n=this.injector.get(Kw);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?Fv(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Kw),i=this.injector.get(Gw),n=this.injector.get($w),r=this.injector.get(Aw),s=this.injector.get(Og);t===s.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}function nP(t){return t.appInitializer.bind(t)}function rP(t){return t.bootstrapListener.bind(t)}iP.\u0275fac=function(t){return new(t||iP)(ue(Ra))},iP.\u0275prov=xt({token:iP,factory:iP.\u0275fac}),iP.ctorParameters=()=>[{type:Ra}];const sP=new Jt("Router Initializer");new Tc("9.1.9");class oP{}oP.\u0275mod=ze({type:oP}),oP.\u0275inj=wt({factory:function(t){return new(t||oP)},imports:[[Zw.forRoot([])],Zw]});class aP{constructor(){}ngOnInit(){this.title="Australian Game of Thrones",this.subtitle="A Cluster and Cloud Computing (COMP90024) Project",this.uni="University of Melbourne"}}aP.\u0275fac=function(t){return new(t||aP)},aP.\u0275cmp=Ve({type:aP,selectors:[["app-jumbotron"]],decls:10,vars:2,consts:[[1,"jumbotron"],[1,"display-4"],[1,"lead"],[1,"my-4"],["href","#credits","role","button",1,"btn","btn-primary","btn-lg"]],template:function(t,e){1&t&&(Jl(0,"div",0),Jl(1,"h1",1),oh(2),tu(),Jl(3,"p",2),oh(4),tu(),eu(5,"hr",3),Jl(6,"p"),oh(7,"University of Melbourne"),tu(),Jl(8,"a",4),oh(9,"Credits"),tu(),tu()),2&t&&(ms(2),ah(e.title),ms(2),ah(e.subtitle))},styles:[""]});var lP=function(t,e){return(lP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function uP(t,e){function i(){this.constructor=t}lP(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function hP(t,e,i,n){return new(i||(i=Promise))((function(r,s){function o(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}l((n=n.apply(t,e||[])).next())}))}function cP(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(a){s=[6,a],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function pP(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function dP(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(a){r={error:a}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o}function fP(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(dP(arguments[e]));return t}var gP=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._value+"%"},t}();function mP(t){return new gP(t)}function yP(t){return Number(t)!==t}function vP(t){return{}.toString.call(t)}function bP(t){if("string"==typeof t)return t;if("number"==typeof t)return""+t;throw new Error("Expected a string or number but got "+vP(t))}function _P(t){return!!t}function xP(t){if(CP(t)&&!TP(t)){var e=Number(t);return yP(e)&&EP(t)&&""!=t?xP(t.replace(/[^0-9.\-]+/g,"")):e}return t}function wP(t){if(CP(t)&&!EP(t)){if(TP(t))return bP(t);if(kP(t))return t.toString()}return t}function PP(t){return!CP(t)||TP(t)||function(t){return t instanceof gP}(t)?t:EP(t)&&-1!=t.indexOf("%")?mP(xP(t)):xP(t)}function CP(t){return null!=t}function SP(t){if(CP(t))return t;throw new Error("Value doesn't exist")}function OP(t,e){return CP(t)?t:e}function DP(t){return"[object Date]"===vP(t)}function EP(t){return"string"==typeof t}function TP(t){return"number"==typeof t&&Number(t)==t}function kP(t){return"object"==typeof t&&null!=t}function IP(t){return Array.isArray(t)}var MP=Math.PI,FP=MP/2,AP=MP/180,jP=180/MP;function LP(t,e,i){return CP(t)?NP(t=xP(t),e,i):t}function VP(t,e,i){if(!TP(e)||e<=0){var n=Math.round(t);return i&&n-t==.5&&n--,n}var r=Math.pow(10,e);return Math.round(t*r)/r}function RP(t,e){if(!TP(e)||e<=0)return Math.ceil(t);var i=Math.pow(10,e);return Math.ceil(t*i)/i}function NP(t,e,i){if(TP(e)){if(TP(i)&&i<e){var n=i;i=e,e=n}t<e&&(t=e)}return TP(i)&&t>i&&(t=i),t}function BP(t){return VP(Math.sin(AP*t),10)}function HP(t){return VP(Math.cos(AP*t),10)}function zP(t,e){return TP(t)?TP(e)&&e>t?e:t:TP(e)?e:null}function UP(t,e){return TP(t)?TP(e)&&e<t?e:t:TP(e)?e:null}function WP(t,e){var i=SP(t.start),n=SP(e.start),r=SP(t.end),s=SP(e.end);return Math.max(i,n)<=Math.min(r,s)}function GP(t,e){return t?(e||(e={x:0,y:0}),Math.sqrt(Math.pow(Math.abs(t.x-e.x),2)+Math.pow(Math.abs(t.y-e.y),2))):0}function $P(t,e,i,n,r){if(!t)return 0;e||(e={x:0,y:0});var s=0,o=t;if(r>0)for(var a=0;a<=r;a++){var l=QP(t,e,i,n,a/r);s+=GP(o,l),o=l}return s}function KP(t,e,i,n){var r=GP(e,n),s=GP(t,i);return Math.abs(s/r)}function YP(t,e,i){return TP(i)||(i=.5),{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function qP(t,e){e||(e={x:2*t.x,y:2*t.y});var i=e.x-t.x,n=e.y-t.y,r=Math.atan2(n,i)*jP;return r<0&&(r+=360),iC(r)}function XP(t){if(t){var e=t.length;if(0!==e){for(var i,n=void 0,r=void 0,s=void 0,o=0;o<e;o++){var a=t[o];(!TP(r)||a.x>r)&&(r=a.x),(!TP(n)||a.x<n)&&(n=a.x),(!TP(i)||a.y<i)&&(i=a.y),(!TP(s)||a.y>s)&&(s=a.y)}return{x:n,y:i,width:r-n,height:s-i}}}return{x:0,y:0,width:0,height:0}}function ZP(t){var e=t.length;if(0!==e){for(var i=void 0,n=void 0,r=void 0,s=void 0,o=0;o<e;o++){var a=t[o];i=UP(a.x,i),n=UP(a.y,n),r=zP(a.x+a.width,r),s=zP(a.y+a.height,s)}return{x:i,y:n,width:r-i,height:s-n}}}function QP(t,e,i,n,r){var s={x:0,y:0},o=1-r,a=o*o,l=a*o;return s.x=t.x*l+3*i.x*a*r+3*n.x*o*r*r+e.x*r*r*r,s.y=t.y*l+3*i.y*a*r+3*n.y*o*r*r+e.y*r*r*r,s}function JP(t,e,i,n,r,s){return r=eC(r),s=eC(s),{x:(-t.x+e.x/r+i.x)*r,y:(-t.y+e.y/s+i.y)*s}}function tC(t,e,i,n,r,s){return r=eC(r),s=eC(s),{x:(e.x+i.x/r-n.x)*r,y:(e.y+i.y/s-n.y)*s}}function eC(t){return 1-t+1e-5}function iC(t){return 360==t?360:t%360}function nC(t,e,i){var n=Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,o=-Number.MAX_VALUE,a=[];TP(i)||(i=1),a.push(rC(i,t)),a.push(rC(i,e));for(var l=Math.min(90*Math.floor(t/90),90*Math.floor(e/90)),u=Math.max(90*Math.ceil(t/90),90*Math.ceil(e/90)),h=l;h<=u;h+=90)h>=t&&h<=e&&a.push(rC(i,h));for(var c=0;c<a.length;c++){var p=a[c];p.x<n&&(n=p.x),p.y<r&&(r=p.y),p.x>s&&(s=p.x),p.y>o&&(o=p.y)}return{x:n,y:r,width:s-n,height:o-r}}function rC(t,e){return{x:t*HP(e),y:t*BP(e)}}function sC(t,e){for(var i=t.length,n=0;n<i;++n)if(t[n]===e)return n;return-1}function oC(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n]))return!0;return!1}function aC(t,e){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=e(t[r],r);return n}function lC(t,e){for(var i=t.length,n=0;n<i;++n)e(t[n],n)}function uC(t,e){for(var i=t.length,n=0;n<i&&e(t[n],n);++n);}function hC(t,e){var i=!1,n=t.indexOf(e);if(-1!==n){i=!0,t.splice(n,1);for(var r=t.length;n<r;)t[n]===e?(t.splice(n,1),--r):++n}return i}function cC(t,e,i){var n=sC(t,e);-1!==n&&mC(t,n),null==i?t.push(e):gC(t,i,e)}function pC(t,e,i){TP(i)?0===i?t.unshift(e):t.splice(i,0,e):t.push(e)}function dC(t){return Array.isArray(t)?t:[t]}function fC(t){for(var e=t.length,i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function gC(t,e,i){t.splice(e,0,i)}function mC(t,e){t.splice(e,1)}function yC(t,e,i){for(var n=0,r=t.length,s=!1;n<r;){var o=n+r>>1,a=e(i,t[o]);a<0?r=o:0===a?(s=!0,n=o+1):n=o+1}return{found:s,index:s?n-1:n}}function vC(t,e){for(var i=t.length,n=0;n<i;++n)if(e(t[n],n))return n;return-1}function bC(t,e){var i=vC(t,e);if(-1!==i)return t[i]}function _C(t,e){for(var i=t.length,n=0;n<i;)e(t[n])?++n:(t.splice(n,1),--i)}var xC=function(){function t(t){this._disposed=!1,this._dispose=t}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},t}(),wC=function(t){function e(e){return t.call(this,(function(){lC(e,(function(t){t.dispose()}))}))||this}return uP(e,t),e}(xC),PC=function(t){function e(){var e=t.call(this,(function(){CP(e._disposer)&&(e._disposer.dispose(),e._disposer=void 0)}))||this;return e}return uP(e,t),e.prototype.get=function(){return this._value},e.prototype.set=function(t,e){CP(this._disposer)&&this._disposer.dispose(),this._disposer=e,this._value=t},e.prototype.reset=function(){this.set(void 0,void 0)},e}(xC),CC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._counter=0,e}return uP(e,t),e.prototype.increment=function(){var t=this;return++this._counter,new xC((function(){--t._counter,0===t._counter&&t.dispose()}))},e}(xC),SC=!1,OC=[],DC=[],EC=[],TC=[],kC="function"==typeof requestAnimationFrame?function(t){requestAnimationFrame(t)}:function(t){setTimeout(t,1e3/60)};function IC(){for(var t=Date.now(),e=OC.length,i=0;i<e;++i)OC[i](t);!function(t,e){for(var i=t.length,n=e;n<i;++n)t[n-e]=t[n];t.length=i-e}(OC,e);for(i=0;i<DC.length;++i)DC[i](t);DC.length=0;for(i=0;i<EC.length;++i)EC[i](t);EC.length=0,0===OC.length&&0===DC.length?SC=!1:kC(IC)}function MC(){SC||(SC=!0,kC(IC))}function FC(t){EC.push(t),MC()}var AC=function(){function t(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{lC(t,(function(t){t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}},t.prototype.hasListeners=function(){return 0!==this._listeners.length},t.prototype.hasListenersByType=function(t){return oC(this._listeners,(function(e){return(null===e.type||e.type===t)&&!e.killed}))},t.prototype.enable=function(){this._enabled=!0},t.prototype.disable=function(){this._enabled=!1},t.prototype.enableType=function(t){delete this._disabled[t]},t.prototype.disableType=function(t,e){void 0===e&&(e=1/0),this._disabled[t]=e},t.prototype._removeListener=function(t){if(0===this._iterating){var e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)},t.prototype._removeExistingListener=function(t,e,i,n){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((function(r){r.once!==t||r.type!==e||null!=i&&r.callback!==i||r.context!==n||r.disposer.dispose()}))},t.prototype.isEnabled=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&null==this._disabled[t]},t.prototype.has=function(t,e,i){return-1!==vC(this._listeners,(function(n){return!0!==n.once&&n.type===t&&(null==e||n.callback===e)&&n.context===i}))},t.prototype._shouldDispatch=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[t];return TP(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled},t.prototype._eachListener=function(t){var e=this;++this._iterating;try{lC(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(lC(this._killed,(function(t){e._removeListener(t)})),this._killed.length=0)}},t.prototype.dispatchImmediately=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){i.killed||null!==i.type&&i.type!==t||i.dispatch(t,e)}))},t.prototype.dispatch=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){var n;i.killed||null!==i.type&&i.type!==t||(n=function(){i.killed||i.dispatch(t,e)},TC.push(n))}))},t.prototype._on=function(t,e,i,n,r,s){var o=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);var a={type:e,callback:i,context:n,shouldClone:r,dispatch:s,killed:!1,once:t,disposer:new xC((function(){a.killed=!0,o._removeListener(a)}))};return this._listeners.push(a),a},t.prototype.onAll=function(t,e,i){return void 0===i&&(i=!0),this._on(!1,null,t,e,i,(function(i,n){return t.call(e,i,n)})).disposer},t.prototype.on=function(t,e,i,n){return void 0===n&&(n=!0),this._on(!1,t,e,i,n,(function(t,n){return e.call(i,n)})).disposer},t.prototype.once=function(t,e,i,n){void 0===n&&(n=!0);var r=this._on(!0,t,e,i,n,(function(t,n){r.disposer.dispose(),e.call(i,n)}));return r.disposer},t.prototype.off=function(t,e,i){this._removeExistingListener(!1,t,e,i)},t.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");lC(t._listeners,(function(t){!t.killed&&t.shouldClone&&(null===t.type?e.onAll(t.callback,t.context):t.once?e.once(t.type,t.callback,t.context):e.on(t.type,t.callback,t.context))}))},t}(),jC=function(t){function e(e){var i=t.call(this)||this;return i.target=e,i}return uP(e,t),e.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");lC(t._listeners,(function(i){i.context!==t.target&&!i.killed&&i.shouldClone&&(null===i.type?e.onAll(i.callback,i.context):i.once?e.once(i.type,i.callback,i.context):e.on(i.type,i.callback,i.context))}))},e}(AC);function LC(t){var e=[];for(var i in t)VC(t,i)&&e.push(i);return e}function VC(t,e){return{}.hasOwnProperty.call(t,e)}function RC(t,e){for(var i in t)if(VC(t,i)&&!e(i,t[i]))break}function NC(t,e){RC(t,(function(t,i){return e(t,i),!0}))}function BC(t,e,i){lC(function(t,e){return LC(t).sort(e)}(t,i),(function(i){e(i,t[i])}))}function HC(t,e){return Object.assign({},t,e)}function zC(t,e,i){lC(i,(function(i){CP(t[i])&&(e[i]=t[i])}))}function UC(t,e){zC(t,e,LC(t))}function WC(t){return function(e){for(var i=t.length,n=0;n<i&&e(t[n]);++n);}}function GC(t){var e=[];return t((function(t){return e.push(t),!0})),e}function $C(t,e){t(e)}function KC(t,e){t((function(t){return e(t),!0}))}function YC(t,e){return function(i){return t((function(t){return i(e(t))}))}}function qC(t){return function(e){var i=0;t((function(t){return e([i++,t])}))}}function XC(t,e){var i;return t((function(t){return!e(t)||(i=t,!1)})),i}function ZC(t,e){var i=!1;return t((function(t){return!e(t)||(i=!0,!1)})),i}var QC=function(){function t(t,e){this.createNewItems=!1,this.list=t,this._create=e,this.reset()}return t.prototype.reset=function(){this._listCopy=GC(this.list.iterator())},t.prototype.clear=function(){this._listCopy.length=0},t.prototype.getFirst=function(){return this.returnItem(0)},t.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},t.prototype.find=function(t){var e=vC(this._listCopy,t);if(-1!==e){var i=this._listCopy[e];return hC(this._listCopy,i),i}return this.getLast()},t.prototype.removeItem=function(t){return hC(this._listCopy,t)},t.prototype.returnItem=function(t){if(t>=0&&t<this._listCopy.length){var e=this._listCopy[t];return hC(this._listCopy,e),e}if(this.createNewItems)return this._create()},t.prototype.iterator=function(){return WC(this._listCopy)},t}();function JC(t,e){return new Array(e+1).join(t)}var tS=function(t){function e(e){var i=e.events.on("removed",(function(t){t.oldValue.dispose()}),void 0,!1);return t.call(this,(function(){i.dispose(),KC(e.iterator(),(function(t){t[1].dispose()}))}))||this}return uP(e,t),e}(xC),eS=function(){function t(){this.events=new AC,this._dictionary={}}return t.prototype.hasKey=function(t){return VC(this._dictionary,t)},t.prototype.getKey=function(t){return this._dictionary[t]},t.prototype.insertKey=function(t,e){if(VC(this._dictionary,t))throw new Error("Key "+t+" already exists in dictionary");this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.setKey=function(t,e){if(VC(this._dictionary,t)){var i=this._dictionary[t];i!==e&&(this._dictionary[t]=e,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))}else this._dictionary[t]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:t,newValue:e})},t.prototype.updateKey=function(t,e){if(!VC(this._dictionary,t))throw new Error("Key "+t+" doesn't exist in dictionary");var i=this._dictionary[t],n=e(i);i!==n&&(this._dictionary[t]=n,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:t,oldValue:i,newValue:n}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}))},t.prototype.removeKey=function(t){if(VC(this._dictionary,t)){var e=this._dictionary[t];delete this._dictionary[t],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e})}},t.prototype.insertKeyIfEmpty=function(t,e){return this.hasKey(t)||this.insertKey(t,e()),this.getKey(t)},t.prototype.clear=function(){var t=this;this.events.isEnabled("removed")&&NC(this._dictionary,(function(e,i){t.events.dispatchImmediately("removed",{type:"removed",target:t,oldValue:i})})),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},t.prototype.copyFrom=function(t){var e=this;KC(t.iterator(),(function(t){e.setKey(t[0],t[1])}))},t.prototype.iterator=function(){return t=this._dictionary,function(e){for(var i in t)if(VC(t,i)&&!e([i,t[i]]))break};var t},t.prototype[Symbol.iterator]=function(){var t,e,i,n;return cP(this,(function(r){switch(r.label){case 0:for(e in t=[],this._dictionary)t.push(e);i=0,r.label=1;case 1:return i<t.length?(n=t[i],VC(this._dictionary,n)?[4,[n,this._dictionary[n]]]:[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return i++,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){KC(this.iterator(),(function(e){var i=dP(e,2),n=i[0],r=i[1];return t(n,r)}))},t.prototype.sortedIterator=function(){return t=this.iterator(),e=function(t,e){return i=t[0],n=e[0],i===n?0:i<n?-1:1;var i,n},WC(GC(t).sort(e));var t,e},t}(),iS=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return uP(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;KC(t.iterator(),(function(t){e.setKey(t[0],t[1].clone())}))},e.prototype.create=function(t){var e=this;return this.insertKeyIfEmpty(t,(function(){return e.template.clone()}))},e}(eS),nS=new(function(){function t(){this._storage=new eS,this.ttl=1e3}return t.prototype.set=function(t,e,i,n){var r=this._storage.insertKeyIfEmpty(t,(function(){return new eS})),s={touched:(new Date).getTime(),ttl:TP(n)?n:this.ttl,value:i};r.setKey(e,s)},t.prototype.get=function(t,e,i){if(void 0===i&&(i=void 0),this._storage.hasKey(t)){var n=this._storage.getKey(t);if(n.hasKey(e)){var r=n.getKey(e);return r.ttl&&r.touched+r.ttl<(new Date).getTime()&&(r.expired=!0),r.expired?(n.removeKey(e),i):r.value}return i}return i},t.prototype.clear=function(t){t?this._storage.removeKey(t):this._storage.clear()},t}()),rS=new(function(){function t(){var t=this;this.events=new AC,this.themes=[],this.loadedThemes={},this._uidCount=0,this.registeredClasses={},this._placeholders={},this.invalidSprites={},this.invalidDatas={},this.invalidRawDatas=[],this.invalidDataItems=[],this.invalidDataRange=[],this.invalidPositions={},this.invalidLayouts={},this.baseSprites=[],this.baseSpritesByUid={},this.queue=[],this.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[],addEventListener("beforeprint",(function(){lC(t.baseSprites,(function(t){var e=t.paper.svg;e.setAttribute("viewBox","0 0 "+e.clientWidth+" "+e.clientHeight)}))})),addEventListener("afterprint",(function(){lC(t.baseSprites,(function(t){t.paper.svg.removeAttribute("viewBox")}))}))}return t.prototype.getUniqueId=function(){var t=this._uidCount;return this._uidCount+=1,"id-"+t},Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new eS),this._map},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){nS.set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),nS.get(this.uid,t,e)},t.prototype.dispatch=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},t.prototype.dispatchImmediately=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},t.prototype.getPlaceholder=function(t){return CP(this._placeholders[t])||(this._placeholders[t]="__amcharts_"+t+"_"+function(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*i.length));return e}(8)+"__"),this._placeholders[t]},t.prototype.addToInvalidComponents=function(t){t.baseId?cC(this.invalidDatas[t.baseId],t):cC(this.invalidDatas.noBase,t)},t.prototype.removeFromInvalidComponents=function(t){t.baseId&&hC(this.invalidDatas[t.baseId],t),hC(this.invalidDatas.noBase,t)},t.prototype.addToInvalidSprites=function(t){t.baseId?pC(this.invalidSprites[t.baseId],t):pC(this.invalidSprites.noBase,t)},t.prototype.removeFromInvalidSprites=function(t){t.baseId&&hC(this.invalidSprites[t.baseId],t),hC(this.invalidSprites.noBase,t)},t.prototype.addToInvalidPositions=function(t){t.baseId?pC(this.invalidPositions[t.baseId],t):pC(this.invalidPositions.noBase,t)},t.prototype.removeFromInvalidPositions=function(t){t.baseId&&hC(this.invalidPositions[t.baseId],t),hC(this.invalidPositions.noBase,t)},t.prototype.addToInvalidLayouts=function(t){t.baseId?pC(this.invalidLayouts[t.baseId],t):pC(this.invalidLayouts.noBase,t)},t.prototype.removeFromInvalidLayouts=function(t){t.baseId&&hC(this.invalidLayouts[t.baseId],t),hC(this.invalidLayouts.noBase,t)},t}());function sS(t,e){var i=rS.registeredClasses[e];return null!=i&&t instanceof i}var oS=function(){function t(t,e,i){this._array=t,this._start=e,this._end=i}return t.prototype.iterator=function(){var t=this;return function(e){if(t._start!==t._end)if(t._start<t._end)for(var i=t._start;i<t._end&&e(t._array[i]);++i);else for(i=t._start-1;i>=t._end&&e(t._array[i]);--i);}},t.prototype.backwards=function(){return new t(this._array,this._end,this._start)},t.prototype.range=function(e,i){if(e<=i){if(this._start===this._end)return this;if(this._start<this._end){var n=i-e;return e=Math.max(this._start+e,this._start),i=Math.min(e+n,this._end),new t(this._array,e,i)}n=i-e;return e=Math.max(this._start-e,this._end),i=Math.max(e-n,this._end),new t(this._array,e,i)}throw new Error("Start index must be lower than end index")},t}(),aS=(function(t){function e(e,i,n){var r=t.call(this,[e.events.on("inserted",(function(t){var i=t.newValue,n=r._getKey(i),s=0;$C(e.iterator(),(function(t){return t!==i&&(r._getKey(t)===n&&++s,!0)})),r._insert(i,n,s)}),void 0,!1),e.events.on("removed",(function(t){r._remove(t.oldValue)}),void 0,!1)])||this;return r._keys=[],r._groups={},r._getKey=i,r._sort=n,KC(e.iterator(),(function(t){r._insert(t,i(t))})),r}uP(e,t),e.prototype._insert=function(t,e,i){if(null==this._groups[e]){this._groups[e]=[];var n=yC(this._keys,this._sort,e),r=n.found,s=n.index;if(r)throw new Error("Key already exists: "+e);gC(this._keys,s,e)}null==i?this._groups[e].push(t):gC(this._groups[e],i,t)},e.prototype._remove=function(t){var e=this._getKey(t),i=this._groups[e];if(null!=i&&(hC(i,t),0===i.length)){delete this._groups[e];var n=yC(this._keys,this._sort,e),r=n.found,s=n.index;if(!r)throw new Error("Key doesn't exist: "+e);mC(this._keys,s)}},e.prototype.iterator=function(){var t,e=this;return t=YC(WC(this._keys),(function(t){return WC(e._groups[t])})),function(e){var i=!0,n=function(t){return i=e(t)};t((function(t){return t(n),i}))}}}(wC),function(t){function e(e,i){void 0===i&&(i=!0);var n=this;if(i){var r=e.events.on("removed",(function(t){t.oldValue.dispose()}),void 0,!1);n=t.call(this,(function(){r.dispose(),KC(e.iterator(),(function(t){t.dispose()}))}))||this}else n=t.call(this,(function(){KC(e.iterator(),(function(t){t.dispose()}))}))||this;return n}return uP(e,t),e}(xC));function lS(t,e){if(!(t>=0&&t<e))throw new Error("Index out of bounds: "+t)}var uS=function(){function t(t){void 0===t&&(t=[]),this.events=new AC,this._values=t}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return-1!==this._values.indexOf(t)},t.prototype.removeValue=function(t){for(var e=0,i=this._values.length;e<i;)this._values[e]===t?(this.removeIndex(e),--i):++e},t.prototype.indexOf=function(t){return sC(this._values,t)},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.hasIndex=function(t){return t>=0&&t<this._values.length},t.prototype.getIndex=function(t){return this._values[t]},t.prototype.setIndex=function(t,e){lS(t,this._values.length);var i=this._values[t];return i!==e&&(this._values[t]=e,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:i,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})),i},t.prototype.insertIndex=function(t,e){lS(t,this._values.length+1),gC(this._values,t,e),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})},t.prototype._sortQuicksort=function(t,e,i){if(t<e){var n=this._sortPartition(t,e,i);this._sortQuicksort(t,n,i),this._sortQuicksort(n+1,e,i)}},t.prototype._sortPartition=function(t,e,i){for(var n=this._values,r=n[t],s=t-1,o=e+1;;){do{++s}while(i(n[s],r)<0);do{--o}while(i(n[o],r)>0);if(s>=o)return o;this.swap(s,o)}},t.prototype.sort=function(t){this._sortQuicksort(0,this._values.length-1,t)},t.prototype.swap=function(t,e){var i=this._values.length;if(lS(t,i),lS(e,i),t!==e){var n=this._values[t],r=this._values[e];this._values[t]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:n,newValue:r}),this._values[e]=n,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:r,newValue:n})}},t.prototype.removeIndex=function(t){lS(t,this._values.length);var e=this._values[t];return mC(this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},t.prototype.moveValue=function(t,e){var i=this.indexOf(t);if(-1!==i){var n=this._values[i];mC(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:n})}null==e?(e=this._values.length,this._values.push(t)):gC(this._values,e,t),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),-1===i&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t})},t.prototype.push=function(t){var e=this._values.push(t)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t}),t},t.prototype.unshift=function(t){this.insertIndex(0,t)},t.prototype.pushAll=function(t){var e=this;lC(t,(function(t){e.push(t)}))},t.prototype.copyFrom=function(t){this.pushAll(t._values)},t.prototype.pop=function(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)},t.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},t.prototype.setAll=function(t){var e=this,i=fC(this._values);this._values.length=0,lC(t,(function(t){e._values.push(t)})),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:i,newArray:this._values}),this.events.isEnabled("removed")&&lC(i,(function(t){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:t})})),this.events.isEnabled("inserted")&&lC(this._values,(function(t){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:t})}))},t.prototype.clear=function(){this.setAll([])},t.prototype.iterator=function(){return WC(this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return cP(this,(function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){lC(this._values,t)},t.prototype.range=function(t,e){if(t<=e){var i=e-t;return t=Math.max(t,0),e=Math.min(t+i,this._values.length),new oS(this._values,t,e)}throw new Error("Start index must be lower than end index")},t.prototype.backwards=function(){return new oS(this._values,this._values.length,0)},t}(),hS=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return uP(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;KC(t.iterator(),(function(t){e.push(t.clone())}))},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.push(e),e},e.prototype.clone=function(){for(var t=new e(this.template),i=this.values,n=i.length,r=0;r<n;++r)t.push(i[r].clone());return t},e}(uS),cS=function(){function t(t){this._values=[],this.events=new AC,null!=t&&this.setAll(t)}return Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),t.prototype._insert=function(t){return this._values.push(t),this._values.length-1},Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(t){return sC(this._values,t)},t.prototype.contains=function(t){return-1!==this.indexOf(t)},t.prototype.getIndex=function(t){return this._values[t]},Object.defineProperty(t.prototype,"first",{get:function(){return this._values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._values[this._values.length-1]},enumerable:!0,configurable:!0}),t.prototype.insert=function(t){var e=this._insert(t);this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,index:e,newValue:t})},t.prototype.remove=function(t){var e=this.indexOf(t);if(-1!==e){var i=this._values[e];mC(this._values,e),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,index:e,oldValue:i})}},t.prototype.setAll=function(t){var e=this;!function(t,e){for(var i=t.length;i--;)e(t[i],i)}(this._values,(function(t,i){e._values.pop(),e.events.isEnabled("removed")&&e.events.dispatchImmediately("removed",{type:"removed",target:e,index:i,oldValue:t})})),lC(t,(function(t){e.insert(t)}))},t.prototype.clear=function(){this.setAll([])},t.prototype.slice=function(e,i){var n=new t;return n._values=this._values.slice(e,i),n},t.prototype.findClosestIndex=function(t,e,i){void 0===i&&(i="any");var n,r,s=-1,o=0;return $C(this.iterator(),(function(a){var l=e(a);if("any"===i){if(l===t)return s=o,!1;var u=Math.abs(t-l);(!CP(r)||r>u)&&(s=o,n=l,r=u)}else"left"===i&&l<t?(!CP(n)||n<l)&&(s=o,n=l):"right"===i&&l>=t&&(!CP(n)||n>=l)&&(s=o,n=l);return++o,!0})),-1===s&&("left"===i?s=0:"right"===i&&(s=this.length-1)),s},t.prototype.iterator=function(){return WC(this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return cP(this,(function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e<t?[4,this._values[e]]:[3,4];case 2:i.sent(),i.label=3;case 3:return++e,[3,1];case 4:return[2]}}))},t.prototype.each=function(t){lC(this._values,t)},t}(),pS=function(t){function e(e){var i=t.call(this)||this;return i._ordering=e,i}return uP(e,t),e.prototype._insert=function(t){var e=yC(this._values,this._ordering,t).index;return gC(this._values,e,t),e},e.prototype.indexOf=function(t){var e=yC(this._values,this._ordering,t),i=e.found,n=e.index;return i?n:-1},e.prototype.update=function(t){var e=sC(this._values,t);if(-1!==e){var i=this._values.length-1;(0===e||this._ordering(this._values[e-1],t)<0)&&(e===i||this._ordering(t,this._values[e+1])<0)||(mC(this._values,e),this._insert(t))}},e}(cS),dS=function(t){function e(e){var i=t.call(this)||this;return i.template=e,i}return uP(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;KC(t.iterator(),(function(t){e.insert(t.clone())}))},e.prototype.slice=function(t,i){var n=new e(this.template);return n._values=this._values.slice(t,i),n},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.insert(e),e},e}(cS),fS=function(t){function e(e,i){var n=t.call(this,i)||this;return n.template=e,n}return uP(e,t),Object.defineProperty(e.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(t){var e=this;KC(t.iterator(),(function(t){e.insert(t.clone())}))},e.prototype.create=function(t){var e=null!=t?new t:this.template.clone();return this.insert(e),e},e}(pS);function gS(t,e){return t===e?0:t<e?-1:1}function mS(t,e){return 0===t?e:t}var yS=new(function(){function t(){this._callbackId=0,this._callbacks=new pS((function(t,e){return mS(gS(t.priority,e.priority),gS(t.id,e.id))}))}return t.prototype.addAll=function(t,e,i,n,r){void 0===n&&(n=0),this._callbacks.insert({id:++this._callbackId,key:e,callback:i,priority:n,scope:r,type:t})},t.prototype.isEnabled=function(t,e){return oC(this._callbacks.values,(function(i){return i.key===e&&t instanceof i.type}))},t.prototype.applyAll=function(t,e,i){var n=this._callbacks.values,r=n.length;if(0==r)return i;for(var s=0;s<r;++s){var o=n[s];o.key===e&&t instanceof o.type&&(i=o.callback.call(o.scope,i,t,e))}return i},t}()),vS=function(){function t(t){this._callbackId=0,this._callbacks=new pS((function(t,e){return mS(gS(t.priority,e.priority),gS(t.id,e.id))})),this._disabled={},this.object=t,this.events=this._callbacks.events}return t.prototype.add=function(t,e,i,n){void 0===i&&(i=0),this._callbacks.insert({id:++this._callbackId,key:t,callback:e,priority:i,scope:n})},t.prototype.has=function(t,e,i,n){return void 0===i&&(i=0),ZC(this._callbacks.iterator(),(function(r){return r.key===t&&r.callback===e&&r.priority===i&&r.scope===n}))},t.prototype.remove=function(t,e){var i=this;lC(GC(this._callbacks.iterator()),(function(n){n.key!==t||TP(e)&&e!==n.priority||i._callbacks.remove(n)}))},t.prototype.enableKey=function(t){delete this._disabled[t]},t.prototype.disableKey=function(t,e){void 0===e&&(e=1/0),this._disabled[t]=e},t.prototype._hasListenersByType=function(t){return oC(this._callbacks.values,(function(e){return e.key===t}))},t.prototype.isEnabled=function(t){return null==this._disabled[t]&&(this._hasListenersByType(t)||yS.isEnabled(this.object,t))},t.prototype._shouldDispatch=function(t){var e=this._disabled[t];return!TP(e)||(e<=1?delete this._disabled[t]:--this._disabled[t],!1)},t.prototype.apply=function(t,e){if(this._shouldDispatch(t)){var i=this._callbacks.values,n=i.length;if(n>0)for(var r=0;r<n;++r){var s=i[r];s.key===t&&(e=s.callback.call(s.scope,e,this.object,t))}return e=yS.applyAll(this.object,t,e)}return e},t.prototype.keys=function(){return GC(YC(this._callbacks.iterator(),(function(t){return t.key})))},t.prototype.copyFrom=function(t){var e=this;KC(t._callbacks.iterator(),(function(t){e.add(t.key,t.callback,t.priority,t.scope)}))},t.prototype.clear=function(){this._callbacks.clear()},t}(),bS={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgrey:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},grey:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgrey:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function _S(t,e){var i;return bS[t]?i=bS[t]:"#"===t.charAt(0)?i=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:void 0}(t):t.match(/^rgba?\(/)&&(i=function(t){var e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(!(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i)))return;return{r:parseInt(e[1]),g:parseInt(e[2]),b:parseInt(e[3]),a:parseFloat(e[4])}}(t)),i||(i={r:0,g:0,b:0,a:1}),CP(e)&&(i.a=e),i}function xS(t){return 1==t.length?"0"+t:""+t}function wS(t,e,i){return i=NP(i,0,1),t?e?{r:t.r+Math.round((e.r-t.r)*i),g:t.g+Math.round((e.g-t.g)*i),b:t.b+Math.round((e.b-t.b)*i),a:(t.a||1)+Math.round(((e.a||1)-(t.a||1))*i)}:t:e||t}function PS(t,e){var i=e>0?255-t:t;return Math.round(i*e)}function CS(t){var e,i,n,r=t.h,s=t.s,o=t.l;if(0==s)e=i=n=o;else{var a=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},l=o<.5?o*(1+s):o+s-o*s,u=2*o-l;e=a(u,l,r+1/3),i=a(u,l,r),n=a(u,l,r-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*n)}}function SS(t){var e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),s=Math.min(e,i,n),o=0,a=0,l=(r+s)/2;if(r===s)o=a=0;else{var u=r-s;switch(a=l>.5?u/(2-r-s):u/(r+s),r){case e:o=(i-n)/u+(i<n?6:0);break;case i:o=(n-e)/u+2;break;case n:o=(e-i)/u+4}o/=6}return{h:o,s:a,l}}var OS=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"rgb",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._value?"#"+xS((t=this._value).r.toString(16))+xS(t.g.toString(16))+xS(t.b.toString(16)):"none";var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rgba",{get:function(){return this._value?CP((t=this._value).a)&&1!==t.a?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"rgb("+t.r+","+t.g+","+t.b+")":"none";var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return null!=this._value&&null!=this._value.a?this._value.a:1},set:function(t){this._value&&(this._value.a=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return this._lightColor||(this._lightColor=new t({r:255,g:255,b:255})),this._lightColor},set:function(t){this._lightColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"darkColor",{get:function(){return this._darkColor||(this._darkColor=new t({r:0,g:0,b:0})),this._darkColor},set:function(t){this._darkColor=t},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.alpha<1?this.rgba:this.hex},t.prototype.lighten=function(e){return new t(function(t,e){return t?{r:Math.max(0,Math.min(255,t.r+PS(t.r,e))),g:Math.max(0,Math.min(255,t.g+PS(t.g,e))),b:Math.max(0,Math.min(255,t.b+PS(t.b,e))),a:t.a}:t}(this.rgb,e))},t.prototype.brighten=function(e){return new t(function(t,e){if(t){var i=PS(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}(this.rgb,e))},t.prototype.saturate=function(e){return new t(function(t,e){if(null==t||1==e)return t;var i=SS(t);return i.s=e,CS(i)}(this.rgb,e))},Object.defineProperty(t.prototype,"alternative",{get:function(){if(null!=this.rgb)return(299*(t=this.rgb).r+587*t.g+114*t.b)/1e3>=128?this.darkColor:this.lightColor;throw new Error("Color does not exist");var t},enumerable:!0,configurable:!0}),t}();function DS(t,e){if(!CP(t))return new OS(void 0);if("string"==typeof t){var i="_color_"+t+"_"+(e||"1"),n=rS.getCache(i);if(n)return new OS({r:n.r,g:n.g,b:n.b,a:n.a});var r=_S(t,e);return rS.setCache(i,r),new OS(r)}return t instanceof OS?(CP(e)&&(t.alpha=e),t):new OS(t)}function ES(t){return CP(t)&&!function(t){return t instanceof OS}(t)?function(t){return DS(t)}(t):t}var TS=function(){function t(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return t.prototype.debug=function(){},Object.defineProperty(t.prototype,"uid",{get:function(){return this._uid||(this._uid=rS.getUniqueId(),rS.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new eS),this._map},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"delayedMap",{get:function(){return this._delayedMap||(this._delayedMap=new eS),this._delayedMap},enumerable:!0,configurable:!0}),t.prototype.addDelayedMap=function(t,e){var i=this.delayedMap;i.hasKey(e)||i.setKey(e,[]),i.getKey(e).push({property:t,target:this})},t.prototype.processDelayedMap=function(){var t=this;this.delayedMap.each((function(e,i){if(t.map.hasKey(e)){var n=t.map.getKey(e);lC(i,(function(t){t.target[t.property]=n})),t.delayedMap.removeKey(e)}}))},t.prototype.applyTheme=function(){var t=this;if(rS){var e=this.getCurrentThemes();e&&lC(e,(function(e,i){e(t)}))}},Object.defineProperty(t.prototype,"themes",{get:function(){return this._themes},set:function(t){this._themes=t},enumerable:!0,configurable:!0}),t.prototype.getCurrentThemes=function(){return this.themes||rS.themes},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;0!==t.length;){t.shift().dispose()}this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var e=this._uid;null!=e&&rS.map.removeKey(e)}},t.prototype.addDisposer=function(t){this._disposers.push(t)},t.prototype.removeDispose=function(t){if(!this._disposed){var e=sC(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()},t.prototype.clone=function(t){t||(t="clone-"+rS.getUniqueId());var e=new this.constructor;return e.cloneId=t,e.copyFrom(this),e},Object.defineProperty(t.prototype,"clones",{get:function(){return this._clones||(this._clones=new uS),this._clones},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(t){t.clones.push(this),this.clonedFrom=t},Object.defineProperty(t.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){nS.set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),nS.get(this.uid,t,e)},t.prototype.clearCache=function(){nS.clear(this.uid)},t.prototype.setTimeout=function(t,e){var i=this,n=setTimeout((function(){i.removeDispose(r),t()}),e),r=new xC((function(){clearTimeout(n)}));return this._disposers.push(r),r},t.prototype.setInterval=function(t,e){var i=this,n=setInterval((function(){i.removeDispose(r),t()}),e),r=new xC((function(){clearTimeout(n)}));return this._disposers.push(r),r},Object.defineProperty(t.prototype,"config",{set:function(t){try{this.processConfig(t)}catch(e){this.raiseCriticalError(e)}},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){var i=this;if(e){var n=this;if(BC(e,(function(e,r){var s,o=r;if("callback"==e&&"function"==typeof r&&r.call(n),i.hasProperty(e))if(!kP(o)||!CP(o.type)||kP(n[e])&&CP(n[e].className)&&!o.forceCreate&&n[e].className==o.type||i.asIs(e)?s=n[e]:(s=i.createClassInstance(o.type))?n[e]=s:s=n[e],s instanceof vS)i.processAdapters(s,o);else if(s instanceof AC)i.processEvents(s,o);else if("locale"==e&&EP(o))window["am4lang_"+o]&&(n[e]=window["am4lang_"+o]);else if("parent"==e&&EP(o)){var a=i.map.getKey(o);a?n[e]=a:i.addDelayedMap("parent",o)}else if(i.asIs(e))n[e]=o;else if(i.asFunction(e)&&EP(o)){if(!CP(rS.registeredClasses[o]))throw Error("Invalid easing function: "+o);n[e]=rS.registeredClasses[o]}else if(o instanceof t)n[e]=o;else if(s instanceof t)s.config=o;else if(s instanceof hS||s instanceof dS||s instanceof fS){if(IP(o))s instanceof hS?i.processListTemplate(o,s):i.processOrderedTemplate(o,s);else if(kP(o))if(o instanceof t)s.template=o;else{var l=void 0;l=CP(o.template)?o.template:o,s.template instanceof t?s.template.config=l:NC(l,(function(e,n){var r=s.template[e];r instanceof vS?i.processAdapters(r,n):r instanceof AC?i.processEvents(r,n):r instanceof iS?i.processDictionaryTemplate(r,n):s.template[e]instanceof t?s.template[e].config=n:kP(n)&&CP(n.type)?(r=i.createClassInstance(n.type))?(r instanceof t&&(r.config=n),s.template[e]=r):s.template[e]=n:r instanceof uS?i.processList(n,r):s.template[e]=i.maybeColorOrPercent(n)})),CP(o.values)&&(s instanceof hS?i.processListTemplate(o.values,s):i.processOrderedTemplate(o.values,s))}}else s instanceof uS?"children"==e?i.processList(o,s,i):i.processList(o,s):s instanceof iS?i.processDictionaryTemplate(s,o):s instanceof eS?i.processDictionary(s,o):s instanceof OS||s instanceof gP?n[e]=i.maybeColorOrPercent(o):kP(s)&&kP(o)?UC(o,s):(o=i.maybeColorOrPercent(o),n[e]=o);else i.isReserved(e)||(n[e]=o)}),this.configOrder),this.processingErrors.length){var r=this.processingErrors.join("\n");throw this._processingErrors=[],Error(r)}}},t.prototype.maybeColorOrPercent=function(t){if(EP(t)){if(t.match(/^[\-]?[0-9.]+\%$/))return mP(xP(t));if(t.match(/^\#[0-9abcdef]{3,}$/i))return DS(t)}return t},t.prototype.processAdapters=function(t,e){var i=this;IP(e)?lC(e,(function(e,n){t.add(e.key,e.callback,e.priority||0,i)})):kP(e)&&NC(e,(function(e,i){t.has(e,i)||t.add(e,i)}))},t.prototype.processEvents=function(t,e){var i=this;kP(e)?NC(e,(function(e,i){t.has(e,i)||t.on(e,i)})):IP(e)&&lC(e,(function(e,n){t.on(e.type,e.callback,i)}))},t.prototype.processDictionaryTemplate=function(e,i){kP(i)&&NC(i,(function(i,n){var r;(r="template"==i?e.template:e.hasKey(i)?e.getKey(i):e.create(i))instanceof t?r.config=n:kP(r)&&kP(n)?UC(n,r):r.setKey(i,n)}))},t.prototype.processDictionary=function(t,e){kP(e)&&NC(e,(function(e,i){t.setKey(e,i)}))},t.prototype.processListTemplate=function(e,i){var n=this;for(lC(e,(function(e,r){var s,o=n.getConfigEntryType(e);if(i.hasIndex(r)&&!e.forceCreate)s=i.getIndex(r);else{if(e instanceof t)return void i.push(e);s=o?i.create(o):i.create()}e===s||kP(e)&&(s instanceof t?s.config=e:kP(s)&&kP(e)?UC(e,s):i.setIndex(i.indexOf(s),e))}));e.length>i.length;)i.pop()},t.prototype.processOrderedTemplate=function(e,i){var n=this;lC(e,(function(e,r){var s,o=n.getConfigEntryType(e);s=o?i.create(o):i.create(),kP(e)&&(s instanceof t?s.config=e:kP(s)&&kP(e)?UC(e,s):i.insert(e))}))},t.prototype.processList=function(e,i,n){var r=this;IP(e)||(e=[e]);var s=i.length;for(lC(e,(function(e,o){if(kP(e)){var a=void 0;if(o<s&&!e.forceCreate)a=i.getIndex(o);else{if(e instanceof t)return void i.push(e);a=r.createEntryInstance(e),n?a.parent=n:i.push(a)}a instanceof t?a.config=e:kP(a)&&kP(e)&&UC(e,a)}else i.hasIndex(o)?i.setIndex(o,e):i.push(e)}));e.length>i.length;)i.pop()},t.prototype.configOrder=function(t,e){return t==e?0:"language"==t?-1:"language"==e?1:0},t.prototype.asIs=function(t){return-1!=sC(["locale"],t)},t.prototype.asFunction=function(t){return!1},t.prototype.createClassInstance=function(t){if(CP(rS.registeredClasses[t]))return new rS.registeredClasses[t];throw Error('Invalid type: "'+t+'".')},t.prototype.createEntryInstance=function(t){var e;return CP(t.type)&&(e=this.createClassInstance(t.type)),e||t},t.prototype.getConfigEntryType=function(t){if(CP(t.type)){if(CP(rS.registeredClasses[t.type]))return rS.registeredClasses[t.type];throw Error('Invalid type: "'+t.type+'".')}},t.prototype.hasProperty=function(t){return t in this},t.prototype.isReserved=function(t){return-1!==["type","forceCreate"].indexOf(t)},Object.defineProperty(t.prototype,"processingErrors",{get:function(){return this._processingErrors||(this._processingErrors=[]),this._processingErrors},enumerable:!0,configurable:!0}),t}(),kS=function(t){function e(){var e=t.call(this)||this;return e.className="BaseObjectEvents",e}return uP(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher||(this._eventDispatcher=new AC,this._disposers.push(this._eventDispatcher)),this._eventDispatcher},enumerable:!0,configurable:!0}),e.prototype.dispatch=function(t,e){this._eventDispatcher&&this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},e.prototype.dispatchImmediately=function(t,e){this._eventDispatcher&&this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e._eventDispatcher&&this.events.copyFrom(e._eventDispatcher)},e}(TS);function IS(t,e){return NC(t,(function(t,i){CP(i)&&(e[t]=i)})),e}function MS(t){return/^[^#]*/.exec(t)[0]}function FS(){var t="#";if(/apple/i.test(navigator.vendor)){var e=document.baseURI;if(e){e=MS(e);var i=MS(location.href);e!==i&&(t=i+t)}}return t}function AS(t,e){return NC(t,(function(t,i){CP(i)&&!CP(e[t])&&(e[t]=i)})),e}function jS(t){return CP(t)&&""!==t.toString()}function LS(t,e){return TP(t)?t:null!=t&&TP(t.value)&&TP(e)?e*t.value:0}function VS(t){return JSON.stringify(t)}function RS(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function NS(t,e,i,n){if(t.length<=e)return[t];var r=[];if(i)for(var s=-1,o=t.replace(/([,;:!?\\\/\.]+[\s]+|[\s])/g,"__\xa7\xa7\xa7__$1__\xa7\xa7\xa7__").split("__\xa7\xa7\xa7__"),a=0;a<o.length;a++){var l=o[a],u=l.length;if(0!==u){var h;if(u>e){if(n&&(l=US(l)),h=l.match(new RegExp(".{1,"+e+"}","g"))){if(n)for(var c=0;c<h.length;c++)h[c]=US(h[c]);r=r.concat(h)}}else-1===s&&(r.push(""),s=0),r[s].length+u+1>e&&""!==r[s]&&(r.push(""),s++),r[s]+=l;s=r.length-1}}else if(h=t.match(new RegExp(".{1,"+e+"}","g"))){if(n)for(c=0;c<h.length;c++)h[c]=US(h[c]);r=h}return 1==r.length&&i&&r[0].length>e&&(r=[]),r}function BS(t,e,i,n,r){return t.length<=e?t:((e-=i.length)<1&&(e=1),(NS(t,e,n,r)[0]||"")+i)}function HS(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function zS(t){return t.replace(/[\s\uFEFF\xA0]+$/g,"")}function US(t){return t.split("").reverse().join("")}function WS(t,e,i){return void 0===e&&(e=0),void 0===i&&(i="0"),"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function GS(t){return t.replace(/\/(date|number|duration)$/i,"")}function $S(t){return t?t.replace(/<[^>]*>/g,""):t}function KS(t){return t?$S(t.replace(/[\n\r]+/g,". ")):t}function YS(t){if(DP(t))return new Date(t);if(TP(t))return new Date(t);var e=Number(t);return TP(e)?new Date(e):new Date(t)}function qS(t){if(DP(t))return t.getTime();if(TP(t))return t;if(EP(t)){var e=Number(t);return TP(e)?e:void 0}}function XS(t,e){void 0===e&&(e=!1);var i=new Date(t.getFullYear(),0,0),n=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(n/864e5)}function ZS(t,e){void 0===e&&(e=!1);var i=XS(t,e)-1,n=Math.floor((i-(t.getDay()||7)+10)/7);return 0===n?n=53:53===n&&(n=1),n}function QS(t,e){void 0===e&&(e=!1);var i=ZS(new Date(t.getFullYear(),t.getMonth(),1),e),n=ZS(t,e);return 1==n&&(n=53),n-i+1}function JS(t,e){return t>12?t-=12:0===t&&(t=12),CP(e)?t+(e-1):t}function tO(t,e,i,n){if(void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=!1),n)return e?"Coordinated Universal Time":"UTC";var r=t.toLocaleString("UTC"),s=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),s}function eO(t,e,i){return t>i?i:t<e?e:t}function iO(t,e,i){var n=i-e;return(t>i||t<e)&&(t=e+(t-n*Math.floor(t/n))),t}function nO(t,e){var i=t.x,n=t.y,r=[];if(e){for(;CP(e.parent);)r.push(e),e=e.parent;r.reverse();for(var s=0;s<r.length;s++){var o=r[s],a=o.rotation,l=i-o.pixelX-o.ex,u=n-o.pixelY-o.ey;o.dx&&(i-=o.dx),o.dy&&(n-=o.dy);var h=o.scale;o.group&&(h=o.group.scale),i=(HP(-a)*l-BP(-a)*u)/h-o.pixelPaddingLeft,n=(HP(-a)*u+BP(-a)*l)/h-o.pixelPaddingTop}}return{x:i,y:n}}function rO(t,e){var i=t.x,n=t.y;if(e)for(;CP(e.parent);){var r=e.rotation;i+=e.pixelPaddingLeft+e.ex,n+=e.pixelPaddingTop+e.ey;var s=e.scale;e.group&&(s=e.group.scale);var o=e.pixelX+(i*HP(r)-n*BP(r))*s,a=e.pixelY+(i*BP(r)+n*HP(r))*s;e.dx&&(o+=e.dx),e.dy&&(a+=e.dy),i=o,n=a,e=e.parent}return{x:i,y:n}}function sO(t,e,i){return nO(rO(t,e),i)}function oO(t,e){var i=rO(t,e),n=rO({x:t.x+t.width,y:t.y+t.height},e);return{x:i.x,y:i.y,width:n.x-i.x,height:n.y-i.y}}function aO(t,e,i){try{var n=e.getBoundingClientRect();return TP(i)||(i=1),{x:(t.x-n.left)/i,y:(t.y-n.top)/i}}catch(r){return t}}function lO(t,e){return e&&e.htmlContainer?nO(aO(t,SP(e.htmlContainer),e.svgContainer.cssScale),e):t}function uO(t,e){return e&&e.htmlContainer?function(t,e){try{var i=e.getBoundingClientRect();return{x:t.x+i.left,y:t.y+i.top}}catch(n){return t}}(rO(t,e),SP(e.htmlContainer)):t}var hO=/^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;function cO(t){var e=hO.exec(t);return{protocol:e&&e[1]||"",separator:e&&e[2]||"",authority:e&&e[3]||"",domain:e&&e[4]||"",port:e&&e[5]||"",path:e&&e[6]||"",query:e&&e[7]||"",hash:e&&e[8]||""}}function pO(t){return t.protocol+t.separator+t.authority+t.domain+t.port+t.path+t.query+t.hash}function dO(t){return""===t.protocol&&""===t.separator&&""===t.authority&&""===t.domain&&""===t.port}function fO(t,e){var i=cO(t),n=cO(e);if(dO(i))throw new Error("Left URL is not absolute");if(dO(n)){if(""!==n.path)if("/"===n.path[0])i.path=n.path;else{var r=i.path.split(/\//),s=n.path.split(/\//);if(0===r.length?0!==s.length&&r.push(""):r.length>1&&r.pop(),function(t,e){for(var i=e.length,n=0;n<i;++n)t.push(e[n])}(r,s),i.path=r.join("/"),""!==i.path&&"/"!==i.path[0])throw new Error("URL path must start with /")}return i.query=n.query,i.hash=n.hash,pO(i)}return pO(n)}function gO(t){return+t}function mO(t,e){return Math.pow(t,e)}function yO(t,e){return 1-Math.pow(1-t,e)}function vO(t,e){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}function bO(t){return yO(t,3)}function _O(t){return t*t*t}function xO(t){return--t*t*t+1}rS.registeredClasses["ease.linear"]=gO,rS.registeredClasses["ease.quadIn"]=function(t){return t*t},rS.registeredClasses["ease.quadOut"]=function(t){return t*(2-t)},rS.registeredClasses["ease.quadInOut"]=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2},rS.registeredClasses["ease.polyIn"]=mO,rS.registeredClasses["ease.polyOut"]=yO,rS.registeredClasses["ease.polyInOut"]=vO,rS.registeredClasses["ease.polyIn3"]=function(t){return mO(t,3)},rS.registeredClasses["ease.polyOut3"]=bO,rS.registeredClasses["ease.polyInOut3"]=function(t){return vO(t,3)},rS.registeredClasses["ease.expIn"]=function(t){return Math.pow(2,10*t-10)},rS.registeredClasses["ease.expOut"]=function(t){return 1-Math.pow(2,-10*t)},rS.registeredClasses["ease.expInOut"]=function(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2},rS.registeredClasses["ease.sinIn"]=function(t){return 1-Math.cos(t*FP)},rS.registeredClasses["ease.sinOut"]=function(t){return Math.sin(t*FP)},rS.registeredClasses["ease.sinInOut"]=function(t){return(1-Math.cos(MP*t))/2},rS.registeredClasses["ease.cubicIn"]=_O,rS.registeredClasses["ease.cubicOut"]=xO,rS.registeredClasses["ease.cubicInOut"]=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2},rS.registeredClasses["ease.circleIn"]=function(t){return 1-Math.sqrt(1-t*t)},rS.registeredClasses["ease.circleOut"]=function(t){return Math.sqrt(1- --t*t)},rS.registeredClasses["ease.circleInOut"]=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2};function wO(t){return(t=+t)<4/11?7.5625*t*t:t<8/11?7.5625*(t-=6/11)*t+3/4:t<10/11?7.5625*(t-=9/11)*t+15/16:7.5625*(t-=21/22)*t+63/64}rS.registeredClasses["ease.bounceIn"]=function(t){return 1-wO(1-t)},rS.registeredClasses["ease.bounceOut"]=wO,rS.registeredClasses["ease.bounceInOut"]=function(t){return((t*=2)<=1?1-wO(1-t):wO(t-1)+1)/2};var PO=2*Math.PI,CO=.3/PO,SO=Math.asin(1)*CO;rS.registeredClasses["ease.elasticIn"]=function(t){return 1*Math.pow(2,10*--t)*Math.sin((SO-t)/CO)},rS.registeredClasses["ease.elasticOut"]=function(t){return 1-1*Math.pow(2,-10*(t=+t))*Math.sin((t+SO)/CO)},rS.registeredClasses["ease.elasticInOut"]=function(t){return((t=2*t-1)<0?1*Math.pow(2,10*t)*Math.sin((SO-t)/CO):2-1*Math.pow(2,-10*t)*Math.sin((SO+t)/CO))/2};var OO=function(t){function e(){var e=t.call(this)||this;return e.transitionDuration=0,e.transitionEasing=xO,e.properties={},e.propertyFields={},e.filters=new uS,e.isTemplate=!1,e.className="SpriteState",e._disposers.push(new aS(e.filters)),e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"adapter",{get:function(){var t=this;return this._adapterO||(this._adapterO=new vS(this),this._adapterO.events.on("inserted",(function(e){t[e.newValue.key]=t[e.newValue.key]}),void 0,!1),this._adapterO.events.on("removed",(function(e){t[e.newValue.key]=t[e.newValue.key]}),void 0,!1)),this._adapterO},enumerable:!0,configurable:!0}),e.prototype.getPropertyValue=function(t){var e=this.properties[t],i=this.sprite;if(i){var n=this.propertyFields[t];if(CP(n)&&(i.dataItem&&(e=i.dataItem.dataContext[n]),null==e&&(e="__unset")),CP(e))this._adapterO&&(e=this._adapterO.apply(t,e));else{var r=i.getPropertyValue(t);(e=this._adapterO?this._adapterO.apply(t,r):r)==r&&(e=void 0)}}return e},e.prototype.copyFrom=function(t){t&&t!=this&&(this.transitionDuration=t.transitionDuration,this.transitionEasing=t.transitionEasing,IS(t.properties,this.properties),IS(t.propertyFields,this.propertyFields),this.filters.copyFrom(t.filters),t._adapterO&&this.adapter.copyFrom(t._adapterO))},Object.defineProperty(e.prototype,"allValues",{get:function(){var t=this,e={};(NC(this.properties,(function(i,n){e[i]=t.getPropertyValue(i)})),this._adapterO)&&NC(this._adapterO.keys(),(function(i,n){var r=t.getPropertyValue(n);e[n]=r}));return NC(this.propertyFields,(function(i){var n=t.getPropertyValue(i);e[i]=n})),e},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.properties={},this.filters.clear()},e.prototype.processConfig=function(e){CP(e)&&CP(e.properties)&&NC(e.properties,(function(t,i){EP(i)&&(i.match(/^[0-9.\-]+\%$/)?e.properties[t]=mP(xP(i)):i.match(/^\#[0-9abcdef]{3,}$/i)&&(e.properties[t]=ES(i)))})),t.prototype.processConfig.call(this,e)},e.prototype.asFunction=function(e){return"transitionEasing"==e||t.prototype.asIs.call(this,e)},e}(TS);rS.registeredClasses.SpriteState=OO;var DO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._interactionEvents=new eS,e}return uP(e,t),e.prototype._dispatchSpriteEvent=function(t){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(t.type)){var e=HC(t,{target:this.target});this.target.events.dispatchImmediately(e.type,e)}},e.prototype._dispatchSpritePointEvent=function(t){if(!this.target.disabled&&!this.target.isTemplate&&this.target.events.isEnabled(t.type)){var e=HC(t,{target:this.target,spritePoint:lO(t.point,this.target),svgPoint:this.target.getSvgPoint(t.point)});this.target.events.dispatchImmediately(e.type,e)}},e.prototype._addInteractionObjectEvent=function(t,e,i,n){var r=this,s=n+"-"+t;return this._interactionEvents.insertKeyIfEmpty(s,(function(){var o=r.target.interactions.events.on(t,e,i,n);return new CC((function(){r._interactionEvents.removeKey(s),o.dispose()}))})).increment()},e.prototype._on=function(e,i,n,r,s,o){var a=t.prototype._on.call(this,e,i,n,r,s,o),l=[a.disposer];switch(i){case"hit":case"track":case"doublehit":case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":l.push(this._addInteractionObjectEvent(i,this._dispatchSpritePointEvent,this,s));break;case"rightclick":case"down":case"up":case"drag":case"dragged":case"dragstart":case"dragstop":case"over":case"out":case"swipe":case"swipeleft":case"swiperight":case"resize":case"focus":case"blur":case"toggled":l.push(this._addInteractionObjectEvent(i,this._dispatchSpriteEvent,this,s))}switch(i){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"toggled":this.target.togglable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":this.target.hoverable=!0;case"out":this.target.hoverable=!0;break;case"focus":case"blur":this.target.focusable=!0}return a.disposer=new wC(l),a},e}(jC),EO=function(){function t(){}return t.opacity=1,t.strokeOpacity=1,t.strokeWidth=1,t.fillOpacity=1,t.fill=DS("#000000"),t.stroke=DS("#000000"),t.focusable=void 0,t.tabindex=0,t}(),TO={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1,licenses:[],suppressErrors:!1,animationsEnabled:!0,nonce:""};function kO(t,e,i){return e+(i-e)*t}function IO(t,e,i){return new gP(kO(t,e.percent,i.percent))}function MO(t,e,i){var n=new OS(wS(e.rgb,i.rgb,t));return e.alpha!=i.alpha&&(n.alpha=e.alpha+(i.alpha-e.alpha)*t),n}function FO(t,e){return e+t.charAt(0).toUpperCase()+t.substr(1)}var AO,jO=function(){function t(t){this._disposer=new xC((function(){for(;0!==t.length;)t[0].dispose()}))}return t.prototype.isDisposed=function(){return this._disposer.isDisposed()},t.prototype.dispose=function(){this._disposer.dispose()},t}(),LO=function(t){function e(e,i,n,r){var s=t.call(this)||this;return s.duration=0,s.easing=gO,s.progress=0,s._loop=0,s._pause=!1,s._delayTimeout=null,s._time=0,s._isFinished=!1,s.className="Animation",!1===TO.animationsEnabled&&(n=0),s.object=e,s.animationOptions=dC(i),s.duration=n,r&&(s.easing=r),s.applyTheme(),s}return uP(e,t),e.prototype.debug=function(){},e.prototype.dispose=function(){t.prototype.dispose.call(this),this.pause()},e.prototype.delay=function(t){var e=this;if(t>0){this.pause(),cC(this.object.animations,this);var i=setTimeout((function(){e._delayTimeout=null,e.start()}),t);this._delayTimeout=new xC((function(){clearTimeout(i)}))}return this},e.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,cC(QD.animations,this),cC(this.object.animations,this),QD.requestFrame()},e.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var t=this.animationOptions.length-1;t>=0;t--){var e=this.animationOptions[t];if(CP(e.from)||(e.childObject?e.from=e.childObject[e.property]:(e.from=this.object[e.property],CP(e.from)||(e.from=EO[e.property]))),e.from==e.to)hC(this.animationOptions,e);else if(!CP(e.from)||!(e.from instanceof gP)&&e.to instanceof gP||e.from instanceof gP&&!(e.to instanceof gP))this.staticOptions.push(e),hC(this.animationOptions,e);else if(TP(e.to))if(e.updateMethod=kO,e.from instanceof gP){var i=this.object[FO(e.property,"pixel")];isNaN(i)?(this.staticOptions.push(e),hC(this.animationOptions,e)):e.from=i}else isNaN(e.from)&&(this.staticOptions.push(e),hC(this.animationOptions,e));else if(e.to instanceof OS)e.from?e.updateMethod=MO:(this.staticOptions.push(e),hC(this.animationOptions,e));else if(e.to instanceof gP){if(e.updateMethod=IO,!isNaN(e.from)){i=this.object[FO(e.property,"relative")];isNaN(i)||(e.from=mP(100*i))}}else this.staticOptions.push(e),hC(this.animationOptions,e)}if(this.applyStaticOptions(),this.events.isEnabled("animationstarted")){var n={type:"animationstarted",target:this,progress:this.progress};this.events.dispatchImmediately("animationstarted",n)}return this.update(),0===this.duration&&this.end(),this},e.prototype.loop=function(t){return TP(t)||(t=1/0),this._loop=t,this},e.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),hC(QD.animations,this),hC(this.object.animations,this),this},e.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},e.prototype.end=function(){if(0==this._loop&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")){var t={type:"animationended",target:this,progress:this.progress};this.events.dispatchImmediately("animationended",t)}return this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},e.prototype.kill=function(){this.pause(),this._isFinished=!0},e.prototype.isFinished=function(){return this._isFinished},e.prototype.applyStaticOptions=function(){var t=this;lC(this.staticOptions,(function(e){e.childObject?e.childObject[e.property]=1==t.progress?e.to:e.from:t.object[e.property]=1==t.progress?e.to:e.from}))},e.prototype.stop=function(t){if(this.pause(),!t&&this.events.isEnabled("animationstopped")){var e={type:"animationstopped",target:this,progress:this.progress};this.events.dispatchImmediately("animationstopped",e)}return this},e.prototype.setProgress=function(t){var e=this;if(this._time=this.duration*t,lC(this.animationOptions,(function(i){if(i.updateMethod&&CP(i.from)){var n=i.updateMethod(t,i.from,i.to);i.childObject?i.childObject[i.property]=n:e.object[i.property]=n}})),this.progress=t,this.events.isEnabled("animationprogress")){var i={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",i)}QD.requestFrame()},e.prototype.update=function(){if(!this._pause){var t=void 0;this._time=NP(Date.now()-this._startTime,0,this.duration);var e=this._time/this.duration;t=this.easing(e),(0==this.duration||!TP(t)||e>=1)&&(t=1),this.setProgress(t),1==VP(this._time/this.duration,6)&&this.end()}return this},Object.defineProperty(e.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),e.prototype.stopSameAnimations=function(){var t=this;lC(fC(this.object.animations),(function(e){if(e!==t&&!e.delayed){var i=[];lC(t.animationOptions,(function(t){lC(e.animationOptions,(function(n){t.property==n.property&&t.childObject==n.childObject&&(i.push(n),0==e.animationOptions.length&&e.kill())}))})),lC(i,(function(t){hC(e.animationOptions,t)}))}}))},e.prototype.asFunction=function(e){return"easing"==e||t.prototype.asIs.call(this,e)},e}(kS),VO="http://www.w3.org/2000/svg",RO="http://www.w3.org/2000/xmlns/",NO="http://www.w3.org/1999/xlink";function BO(t,e,i,n){return t.addEventListener(e,i,n||!1),new xC((function(){t.removeEventListener(e,i,n||!1)}))}function HO(t,e){if(t)if(t.classList)t.classList.add(e);else{var i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((function(t){return t!==e})).join(" ")+" "+e):t.setAttribute("class",e)}}function zO(t,e){if(t)if(t.classList)t.classList.remove(e);else{var i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((function(t){return t!==e})).join(" "))}}function UO(t,e,i){t.style[e]=i}function WO(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function GO(){var t=document.createElement("input");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}function $O(t,e){for(var i=e;;){if(t===i)return!0;if(null==i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function KO(t){for(var e=t;;){if(null==e.parentNode)return null!=e.host?e:null;e=e.parentNode}}function YO(t){for(var e=t.ownerDocument,i=t;;){if(null==i.parentNode)return i===e||null!=i.host?i:null;i=i.parentNode}}function qO(t){var e;e=function(){try{var e=t.getBoundingClientRect(),i=e.left-Math.round(e.left),n=e.top-Math.round(e.top);0!==i&&FC((function(){t.style.left=i+"px"})),0!==n&&FC((function(){t.style.top=n+"px"}))}catch(r){}},DC.push(e),MC()}var XO=function(t){function e(e,i,n){var r=this,s=function(t){if(null==t){if(!CP(AO))(e=document.createElement("style")).type="text/css",""!=TO.nonce&&e.setAttribute("nonce",TO.nonce),document.head.appendChild(e),AO=e.sheet;return AO}var e;return(e=document.createElement("style")).type="text/css",""!=TO.nonce&&e.setAttribute("nonce",TO.nonce),t.appendChild(e),e.sheet}(e);return(r=t.call(this,(function(){var t=sC(s.cssRules,r._rule);if(-1===t)throw new Error("Could not dispose StyleRule");s.deleteRule(t)}))||this)._rule=function(t,e){var i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}(s,i),NC(n,(function(t,e){r.setStyle(t,e)})),r}return uP(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(t){this._rule.selectorText=t},enumerable:!0,configurable:!0}),e.prototype._setVendorPrefixName=function(t,e){var i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")},e.prototype.setStyle=function(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")},e}(xC),ZO=0;!function(t){function e(e,i,n){var r=this,s=CP(n)?n:"__style_"+ ++ZO+"__";return(r=t.call(this,e,"."+s,i)||this)._className=s,r}uP(e,t),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t,this.selector="."+t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._className}}(XO);function QO(t){var e=WO(t,"font-family");if(e)return e;var i=t.parentElement||t.parentNode;return i?QO(i):void 0}function JO(t){var e=WO(t,"font-size");if(e)return e;var i=t.parentElement||t.parentNode;return i?JO(i):void 0}function tD(t,e){var i=t.getBoundingClientRect(),n=IP(e)?e:e?[e]:[];if(n.length){for(var r=0;r<n.length;r++){var s=n[r];if(!tD(s))return!1;var o=s.getBoundingClientRect();if(i.top>=0&&i.left>=0&&i.top<=o.top+o.height&&i.left<=o.left+o.width)return!0}return!1}return i.top>=0&&i.left>=0&&i.top<=(window.innerHeight||document.documentElement.clientHeight)&&i.left<=(window.innerWidth||document.documentElement.clientWidth)}var eD=function(){function t(t){this._isDisposed=!1,this._x=0,this._y=0,this._rotationY=0,this._rotationX=0,this._rotation=0,this._scale=1,this.node="string"==typeof t?document.createElementNS(VO,t):t}return t.prototype.removeNode=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},Object.defineProperty(t.prototype,"transformString",{get:function(){if(this.node)return this._transformString},enumerable:!0,configurable:!0}),t.prototype.transform=function(){var t="translate("+this._x+","+this._y+")";if(1!=this._scale&&(t+=(t?" ":"")+"scale("+this._scale+")"),0!=this._rotation){var e="rotate("+this._rotation+")";this._rotationX&&this._rotationY&&(e="rotate("+this._rotation+" "+this._rotationX+" "+this._rotationY+")"),t+=(t?" ":"")+e}this._transformString=t,this.node.setAttribute("transform",t)},t.prototype.getBBox=function(){var t={width:0,height:0,x:0,y:0};if(this.node&&this.node.parentNode)try{var e=this.node.getBBox();t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height}catch(i){}return t},t.prototype.moveTo=function(t){if(t){var e=t.x,i=t.y;this._x==e&&this._y==i||(this._x=e,this._y=i,this.transform())}},Object.defineProperty(t.prototype,"content",{get:function(){return this.node.innerHTML||""},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.node.textContent||""},set:function(t){this.node.textContent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x!=t&&(this._x=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y!=t&&(this._y=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!=t&&(this._rotation=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationX",{get:function(){return this._rotationX},set:function(t){this._rotationX!=t&&(this._rotationX=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationY",{get:function(){return this._rotationY},set:function(t){this._rotationY!=t&&(this._rotationY=t,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale!=t&&(this._scale=t,this.transform())},enumerable:!0,configurable:!0}),t.prototype.removeAttr=function(t){this.node.removeAttribute(t)},t.prototype.attr=function(t){var e=this;return NC(t,(function(t,i){CP(i)?e.node.setAttribute(t,i):e.node.removeAttribute(t)})),this},t.prototype.getAttr=function(t){return this.node.getAttribute(t)},t.prototype.attrNS=function(t,e,i){return this.node.setAttributeNS(t,e,i),this},t.prototype.getAttrNS=function(t,e){return this.node.getAttributeNS(t,e)},t.prototype.removeStyle=function(t){this.node.style[t]=null,delete this.node.style[t]},t.prototype.getStyle=function(t){return this.node.style[t]},t.prototype.addStyle=function(t){var e=this;return NC(t,(function(t,i){CP(i)?e.node.style[t]=i:e.removeStyle(t)})),this},t.prototype.addClass=function(t){HO(this.node,t)},t.prototype.removeClass=function(t){zO(this.node,t)},t.prototype.setClass=function(t){this.node.setAttribute("class",t)},t.prototype.removeChildNodes=function(){for(;this.node.childNodes.length>0;)this.node.removeChild(this.node.firstChild)},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.dispose=function(){this.removeNode()},t}(),iD=function(t){function e(e){return t.call(this,e)||this}return uP(e,t),e.prototype.add=function(t){t&&this.node.appendChild(t.node)},e.prototype.addToBack=function(t){if(t){var e=this.node.childNodes[0];e?e!=t.node&&this.node.insertBefore(t.node,e):this.node.appendChild(t.node)}},e.prototype.removeElement=function(t){if(t)try{t.node&&t.node.parentNode==this.node&&this.node.removeChild(t.node)}catch(e){}},e.prototype.hasChild=function(t){for(var e=0;e<this.node.childNodes.length;e++)if(this.node.childNodes[e]==t.node)return!0;return!1},Object.defineProperty(e.prototype,"content",{get:function(){return this.node.innerHTML},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),e.prototype.removeChildren=function(){if(this.node.childNodes)for(;this.node.childNodes.length>0;){var t=this.node.firstChild;t&&t.parentNode&&t.parentNode.removeChild(t)}},e}(eD),nD=function(t){function e(){var e=t.call(this)||this;return e._purposes={stroke:DS("#e5e5e5"),fill:DS("#f3f3f3"),primaryButton:DS("#6794dc"),primaryButtonHover:DS("#6771dc"),primaryButtonDown:DS("#68dc75"),primaryButtonActive:DS("#68dc75"),primaryButtonText:DS("#FFFFFF"),primaryButtonStroke:DS("#FFFFFF"),secondaryButton:DS("#d9d9d9"),secondaryButtonHover:DS("#d9d9d9").brighten(-.25),secondaryButtonDown:DS("#d9d9d9").brighten(-.35),secondaryButtonActive:DS("#d9d9d9").brighten(.35),secondaryButtonText:DS("#000000"),secondaryButtonStroke:DS("#FFFFFF"),grid:DS("#000000"),background:DS("#ffffff"),alternativeBackground:DS("#000000"),text:DS("#000000"),alternativeText:DS("#FFFFFF"),disabledBackground:DS("#999999"),positive:DS("#67dc75"),negative:DS("#dc6788")},e.className="InterfaceColorSet",e.applyTheme(),e}return uP(e,t),e.prototype.debug=function(){},e.prototype.getFor=function(t){return this._purposes[t]},e.prototype.setFor=function(t,e){this._purposes[t]=e},e}(TS);rS.registeredClasses.InterfaceColorSet=nD;var rD=new eS,sD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domEvents={},e}return uP(e,t),e.prototype._addDOMEvent=function(t,e,i,n){var r=this;if(!this._domEvents[t]){var s=function(t){i.call(n,e,t)};this.target.element.addEventListener(t,s,!1),this._domEvents[t]=new CC((function(){delete r._domEvents[t],r.target.element.removeEventListener(t,s,!1)}))}return this._domEvents[t].increment()},e.prototype._dispatchKeyboardEvent=function(t,e){this.target.events.isEnabled(t)&&this.target.events.dispatchImmediately(t,{type:t,target:this.target,event:e})},e.prototype._on=function(e,i,n,r,s,o){var a=t.prototype._on.call(this,e,i,n,r,s,o),l=[a.disposer];switch(i){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":case"out":this.target.hoverable=!0;break;case"focus":case"blur":case"focusin":case"focusout":this.target.focusable=!0;break;case"keydown":case"keyup":case"keypress":case"input":l.push(this._addDOMEvent(i,i,this._dispatchKeyboardEvent,this))}return a.disposer=new wC(l),a},e}(jC),oD=function(t){function e(e){var i=t.call(this)||this;return i._eventDispatcher=new sD(i),i.eventDisposers=new eS,i.replacedStyles=new eS,i._clickable=!1,i._contextMenuDisabled=!1,i._hoverable=!1,i._trackable=!1,i._draggable=!1,i._swipeable=!1,i._resizable=!1,i._wheelable=!1,i._inert=!1,i._isHover=!1,i.isRealHover=!1,i._isHoverByTouch=!1,i._isDown=!1,i._isFocused=!1,i._isTouchProtected=!1,i._inertiaOptions=new eS,i.inertias=new eS,i._hitOptions={},i._hoverOptions={},i._swipeOptions={},i._keyboardOptions={},i._mouseOptions={},i._cursorOptions={defaultStyle:[{property:"cursor",value:"default"}]},i._disposers.push(i._eventDispatcher),i._element=e,i.className="InteractionObject",i._disposers.push(new tS(i.inertias)),i._disposers.push(new tS(i.eventDisposers)),i.applyTheme(),i}return uP(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHover",{get:function(){return this._isHover},set:function(t){this.isHover!=t&&(this._isHover=t,t?dD().overObjects.moveValue(this):(this.isRealHover=!1,dD().overObjects.removeValue(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHoverByTouch",{get:function(){return this._isHoverByTouch},set:function(t){this.isHoverByTouch!=t&&(this._isHoverByTouch=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overPointers",{get:function(){return this._overPointers||(this._overPointers=new uS),this._overPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return this._isDown},set:function(t){this.isDown!=t&&(this._isDown=t,t?dD().downObjects.moveValue(this):dD().downObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"downPointers",{get:function(){return this._downPointers||(this._downPointers=new uS),this._downPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(t){this.isFocused!=t&&(this._isFocused=t,dD().focusedObject=t?this:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTouchProtected",{get:function(){return this._isTouchProtected},set:function(t){this._isTouchProtected!=t&&(this._isTouchProtected=t,t?dD().unprepElement(this):(this.draggable||this.swipeable||this.trackable||this.resizable)&&dD().prepElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clickable",{get:function(){return this._clickable},set:function(t){this._clickable!==t&&(this._clickable=t,dD().processClickable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextMenuDisabled",{get:function(){return this._contextMenuDisabled},set:function(t){this._contextMenuDisabled!==t&&(this._contextMenuDisabled=t,dD().processContextMenu(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverable",{get:function(){return this._hoverable},set:function(t){this._hoverable!==t&&(this._hoverable=t,dD().processHoverable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackable",{get:function(){return this._trackable},set:function(t){this._trackable!==t&&(this._trackable=t,dD().processTrackable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(t){this._draggable!==t&&(this._draggable=t,dD().processDraggable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeable",{get:function(){return this._swipeable},set:function(t){this._swipeable!==t&&(this._swipeable=t,dD().processSwipeable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this._resizable},set:function(t){this._resizable!==t&&(this._resizable=t,dD().processResizable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wheelable",{get:function(){return this._wheelable},set:function(t){this._wheelable!==t&&(this._wheelable=t,dD().processWheelable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inert",{get:function(){return this._inert},set:function(t){this._inert!==t&&(this._inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this._focusable},set:function(t){this._focusable!==t&&(this._focusable=t,this._focusable&&-1==this.tabindex&&(this._tabindex=1),dD().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return OP(this._tabindex,-1)},set:function(t){this._tabindex!==t&&(this._tabindex=t,t>-1&&(this.focusable=!0),dD().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this._element=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(t){this._originalPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalScale",{get:function(){return OP(this._originalScale,1)},set:function(t){this._originalScale!==t&&(this._originalScale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalAngle",{get:function(){return OP(this._originalAngle,0)},set:function(t){this._originalAngle!==t&&(this._originalAngle=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inertiaOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions},set:function(t){this._inertiaOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hitOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(t){this._hitOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(t){this._hoverOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(t){this._swipeOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyboardOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(t){this._keyboardOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mouseOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("mouseOptions",this._mouseOptions):this._mouseOptions},set:function(t){this._mouseOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(t){this._cursorOptions=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.inertiaOptions=e.inertiaOptions,this.hitOptions=e.hitOptions,this.hoverOptions=e.hoverOptions,this.swipeOptions=e.swipeOptions,this.keyboardOptions=e.keyboardOptions,this.cursorOptions=e.cursorOptions,this.contextMenuDisabled=e.contextMenuDisabled,dD().applyCursorOverStyle(this)},e.prototype.setEventDisposer=function(t,e,i){var n=this.eventDisposers.getKey(t);e?null==n&&this.eventDisposers.setKey(t,i()):null!=n&&(n.dispose(),this.eventDisposers.removeKey(t))},e.prototype.dispose=function(){t.prototype.dispose.call(this);var e=dD();e.overObjects.removeValue(this),e.downObjects.removeValue(this),e.trackedObjects.removeValue(this),e.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&e.unlockWheel(),e.focusedObject===this&&(e.focusedObject=void 0)},e}(kS),aD=function(){function t(t,e){this._disposed=!1,this.directionX=0,this.directionY=0,this.interaction=t,this.keyboardEvent=e,this._startedOn=(new Date).getTime(),dD().processDragStart(t),QD.animations.push(this),this.update()}return t.prototype.update=function(){var t=this.interaction,e=dD().getKeyboardOption(t,"speed"),i=dD().getKeyboardOption(t,"accelleration"),n=dD().getKeyboardOption(t,"accellerationDelay"),r={x:0,y:0};this.keyboardEvent.shiftKey?(e*=.5,i=1):this.keyboardEvent.ctrlKey&&(e*=2);var s=(new Date).getTime()-this._startedOn,o=s-n;if(i>0&&o>0){var a=s/n;s=n,r.x+=this.directionX*(e*i*a*o),r.y+=this.directionY*(e*i*a*o)}r.x+=this.directionX*(e*s),r.y+=this.directionY*(e*s),dD().handleTransformMove(t,r,{x:0,y:0},this.keyboardEvent,!0,!1)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(dD().processDragStop(this.interaction),hC(QD.animations,this))},t}(),lD=function(t){function e(e,i,n,r){var s=t.call(this)||this;return s.animations=[],s.className="Inertia",s.interaction=e,s.type=i,s.point=n,s.startPoint=r,s._disposers.push(new jO(s.animations)),s}return uP(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.point.x},set:function(t){TP(t)&&(this.point.x=t,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.point.y},set:function(t){TP(t)&&(this.point.y=t,this.handleMove())},enumerable:!0,configurable:!0}),e.prototype.handleMove=function(){if(this.interaction.events.isEnabled("drag")){var t={type:"drag",target:this.interaction,shift:{x:this.x-this.startPoint.x,y:this.y-this.startPoint.y},startPoint:this.startPoint,point:{x:this.x,y:this.y},touch:!1};this.interaction.events.dispatchImmediately("drag",t)}},e.prototype.done=function(){this.interaction.inertias.removeKey(this.type),"move"===this.type&&dD().processDragStop(this.interaction),this.dispose()},e}(TS),uD=new(function(){function t(){}return t.prototype.getEventKey=function(t){var e;switch(t.keyCode||t.which){case 38:e="up";break;case 40:e="down";break;case 37:e="left";break;case 39:e="right";break;case 13:e="enter";break;case 27:e="esc";break;case 36:e="home";break;case 35:e="end";break;case 9:e="tab";break;case 17:e="ctrl";break;case 18:e="alt";break;case 16:e="shift";break;case 32:e="space";break;case 36:e="home";break;case 35:e="end";break;case 33:e="pgup";break;case 34:e="pgdn";break;case 45:e="ins";break;case 46:e="del";break;case 107:e="plus";break;case 109:e="minus";break;default:e="other"}return e},t.prototype.isKey=function(t,e){var i=this.getEventKey(t);return EP(e)&&(e=[e]),-1!==e.indexOf(i)},t.prototype.shiftKey=function(t){return t.shiftKey},t.prototype.ctrlKey=function(t){return t.ctrlKey},t.prototype.altKey=function(t){return t.altKey},t.prototype.metaKey=function(t){return t.metaKey},t}());function hD(){return(new Date).getTime()}var cD=function(t){function e(){var i=t.call(this)||this;return i._globalEventsAdded=!1,i._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},i._usePointerEventsOnly=!1,i._useTouchEventsOnly=!1,i._addHoverEvents=!0,i._passiveSupported=!1,i._delayedEvents={out:[]},i.overObjects=new uS,i.downObjects=new uS,i.trackedObjects=new uS,i.transformedObjects=new uS,i.pointers=new eS,i.inertiaOptions=new eS,i.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},i.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},i.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},i.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},i.mouseOptions={sensitivity:1},i.className="Interaction",i.body=i.getInteraction(document.body),i._disposers.push(i.body),window.hasOwnProperty("PointerEvent")?(i._pointerEvents.pointerdown="pointerdown",i._pointerEvents.pointerup="pointerup",i._pointerEvents.pointermove="pointermove",i._pointerEvents.pointercancel="pointercancel",i._pointerEvents.pointerover="pointerover",i._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(i._pointerEvents.pointerdown="MSPointerDown",i._pointerEvents.pointerup="MSPointerUp",i._pointerEvents.pointermove="MSPointerMove",i._pointerEvents.pointercancel="MSPointerUp",i._pointerEvents.pointerover="MSPointerOver",i._pointerEvents.pointerout="MSPointerOut"):"undefined"!=typeof matchMedia&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(i._addHoverEvents=!1,i._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)||i.fullFF()?i._usePointerEventsOnly=!0:i._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?i._pointerEvents.wheel="wheel":CP(document.onmousewheel)&&(i._pointerEvents.wheel="mousewheel"),i.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:bO}),i.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:bO}),i._passiveSupported=e.passiveSupported,i.applyTheme(),i}return uP(e,t),e.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},e.prototype.debug=function(){},e.prototype.addGlobalEvents=function(){var t=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(BO(document,this._pointerEvents.pointerdown,(function(e){t.handleGlobalPointerDown(e)}))),this._disposers.push(BO(document,this._pointerEvents.pointermove,(function(e){t.handleGlobalPointerMove(e)}))),this._disposers.push(BO(document,this._pointerEvents.pointerup,(function(e){t.handleGlobalPointerUp(e)}))),this._disposers.push(BO(document,this._pointerEvents.pointercancel,(function(e){t.handleGlobalPointerUp(e,!0)}))),this._disposers.push(BO(document,"mouseenter",(function(e){CP(e.relatedTarget)||0!=e.buttons&&0!=e.which||t.handleDocumentLeave(e)})))),this._usePointerEventsOnly||(this._disposers.push(BO(document,"touchstart",(function(e){t.handleGlobalTouchStart(e)}))),this._disposers.push(BO(document,"touchmove",(function(e){t.handleGlobalTouchMove(e)}))),this._disposers.push(BO(document,"touchend",(function(e){t.handleGlobalTouchEnd(e)})))),this._disposers.push(BO(document,"keydown",(function(e){t.handleGlobalKeyDown(e)}))),this._disposers.push(BO(document,"keyup",(function(e){t.handleGlobalKeyUp(e)}))),this._globalEventsAdded=!0)},e.prototype.processClickable=function(t){this.processTouchable(t)},e.prototype.processContextMenu=function(t){t.contextMenuDisabled?t.eventDisposers.hasKey("contextMenuDisabled")||t.eventDisposers.setKey("contextMenuDisabled",BO(t.element,"contextmenu",(function(t){t.preventDefault()}))):t.eventDisposers.hasKey("contextMenuDisabled")&&t.eventDisposers.getKey("contextMenuDisabled").dispose()},e.prototype.processHoverable=function(t){var e=this;if(t.hoverable||t.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(t),!t.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&t.eventDisposers.setKey("hoverable",new wC([BO(t.element,this._pointerEvents.pointerout,(function(i){return e.handlePointerOut(t,i)})),BO(t.element,this._pointerEvents.pointerover,(function(i){return e.handlePointerOver(t,i)}))])),t.trackable;else{var i=t.eventDisposers.getKey("hoverable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("hoverable"))}this.processTouchable(t)},e.prototype.processMovable=function(t){(t.draggable||t.swipeable||t.trackable||t.resizable)&&(this.isGlobalElement(t)||t.isTouchProtected||this.prepElement(t),this.applyCursorOverStyle(t)),this.processTouchable(t)},e.prototype.processTrackable=function(t){this.processHoverable(t),this.processMovable(t),t.trackable?this.trackedObjects.moveValue(t):this.trackedObjects.removeValue(t)},e.prototype.processDraggable=function(t){this.processMovable(t)},e.prototype.processSwipeable=function(t){this.processMovable(t)},e.prototype.processResizable=function(t){this.processMovable(t)},e.prototype.processWheelable=function(t){var e=this;if(t.wheelable)t.eventDisposers.hasKey("wheelable")||t.eventDisposers.setKey("wheelable",new wC([BO(t.element,this._pointerEvents.wheel,(function(i){return e.handleMouseWheel(t,i)}),!!this._passiveSupported&&{passive:!1}),t.events.on("out",(function(i){t.wheelable&&e.unlockWheel()})),t.events.on("over",(function(i){t.wheelable&&e.lockWheel()}))]));else{var i=t.eventDisposers.getKey("wheelable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("wheelable"))}},e.prototype.processFocusable=function(t){var e=this;if(!0===t.focusable&&t.tabindex>-1&&!this._useTouchEventsOnly)t.eventDisposers.hasKey("focusable")||t.eventDisposers.setKey("focusable",new wC([BO(t.element,"focus",(function(i){return e.handleFocus(t,i)})),BO(t.element,"blur",(function(i){return e.handleBlur(t,i)})),BO(t.element,this._pointerEvents.pointerdown,(function(i){return e.handleFocusBlur(t,i)})),BO(t.element,"touchstart",(function(i){return e.handleFocusBlur(t,i)}),!!this._passiveSupported&&{passive:!1})]));else{var i=t.eventDisposers.getKey("focusable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("focusable"))}},e.prototype.processTouchable=function(t){var e=this;if(t.clickable||t.hoverable||t.trackable||t.draggable||t.swipeable||t.resizable)this.addGlobalEvents(),t.eventDisposers.hasKey("touchable")||(this._useTouchEventsOnly||this._usePointerEventsOnly?this._useTouchEventsOnly?this._usePointerEventsOnly||t.eventDisposers.setKey("touchable",BO(t.element,"touchstart",(function(i){return e.handleTouchDown(t,i)}),!!this._passiveSupported&&{passive:!1})):t.eventDisposers.setKey("touchable",BO(t.element,this._pointerEvents.pointerdown,(function(i){return e.handlePointerDown(t,i)}))):t.eventDisposers.setKey("touchable",new wC([BO(t.element,this._pointerEvents.pointerdown,(function(i){return e.handlePointerDown(t,i)})),BO(t.element,"touchstart",(function(i){return e.handleTouchDown(t,i)}),!!this._passiveSupported&&{passive:!1})])));else{var i=t.eventDisposers.getKey("touchable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("touchable"))}},e.prototype.handleFocus=function(t,e){if(t.focusable){if(t.isFocused=!0,t.events.isEnabled("focus")&&!QD.isPaused){var i={type:"focus",target:t,event:e};t.events.dispatchImmediately("focus",i)}}else e.preventDefault()},e.prototype.handleFocusBlur=function(t,e){!1!==t.focusable&&this.getHitOption(t,"noFocus")&&t.events.once("focus",(function(){t.events.disableType("blur"),GO(),t.sprite&&t.sprite.handleBlur(),t.events.enableType("blur")}))},e.prototype.handleBlur=function(t,e){if(t.focusable){if(t.isFocused=!1,t.events.isEnabled("blur")&&!QD.isPaused){var i={type:"blur",target:t,event:e};t.events.dispatchImmediately("blur",i)}}else e.preventDefault()},e.prototype.handleGlobalKeyDown=function(t){if(this.focusedObject)if(uD.isKey(t,"esc"))GO();else if(this.focusedObject.draggable&&uD.isKey(t,["up","down","left","right"])){t.preventDefault();var e=this.focusedObject;if(e.eventDisposers.hasKey("interactionKeyboardObject"))return;var i=new aD(e,t);switch(e.eventDisposers.setKey("interactionKeyboardObject",i),uD.getEventKey(t)){case"up":i.directionY=-1;break;case"down":i.directionY=1;break;case"left":i.directionX=-1;break;case"right":i.directionX=1}}},e.prototype.handleGlobalKeyUp=function(t){if(this.focusedObject){var e=this.focusedObject.eventDisposers.getKey("interactionKeyboardObject");null!=e&&(t.preventDefault(),e.dispose(),this.focusedObject.eventDisposers.removeKey("interactionKeyboardObject"))}},e.prototype.handleGlobalPointerMove=function(t){var e=this.getPointer(t);if(e.point=this.getPointerPoint(t),this.events.isEnabled("track")&&!QD.isPaused){var i={type:"track",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("track",i)}this.addBreadCrumb(e,e.point),this.handleGlobalMove(e,t)},e.prototype.handleGlobalPointerDown=function(t){this.processDelayed();var e=this.getPointer(t);if(this.events.isEnabled("down")&&!QD.isPaused){var i={type:"down",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("down",i)}},e.prototype.preventTouchAction=function(t){t.defaultPrevented||t.preventDefault()},e.prototype.handleGlobalPointerUp=function(t,e){void 0===e&&(e=!1);var i=this.getPointer(t);if(this.events.isEnabled("up")&&!QD.isPaused){var n={type:"up",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(i,t,e)},e.prototype.handleGlobalTouchMove=function(t){for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(i.point=this.getPointerPoint(t.changedTouches[e]),this.events.isEnabled("track")&&!QD.isPaused){var n={type:"track",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("track",n)}this.addBreadCrumb(i,i.point),this.handleGlobalMove(i,t)}},e.prototype.handleGlobalTouchStart=function(t){this.processDelayed();for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(!this._usePointerEventsOnly&&this.events.isEnabled("down")&&!QD.isPaused){var n={type:"down",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("down",n)}}},e.prototype.handleGlobalTouchEnd=function(t){for(var e=0;e<t.changedTouches.length;e++){var i=this.getPointer(t.changedTouches[e]);if(this.events.isEnabled("up")&&!QD.isPaused){var n={type:"up",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(i,t)}},e.prototype.handlePointerDown=function(t,e){var i=this.getPointer(e);(i.touch||1==e.which||3==e.which)&&(i.button=e.which,this.resetPointer(i,e),this.handleDown(t,i,e))},e.prototype.handlePointerOver=function(t,e){var i=this.getPointer(e);this.handleOver(t,i,e)},e.prototype.handlePointerOut=function(t,e){var i=this.getPointer(e);this.handleOut(t,i,e)},e.prototype.handleMouseWheel=function(t,e){var i=this.getPointer(e);i.point=this.getPointerPoint(e);var n=0,r=0,s=1;if(1==e.deltaMode&&(s=50),s*=this.getMouseOption(t,"sensitivity"),!(e instanceof WheelEvent))throw new Error("Invalid event type");n=Math.round(-1*e.wheelDeltaX||e.deltaX)*s,r=Math.round(-1*e.wheelDeltaY||e.deltaY)*s,this.handleWheel(t,i,n,r,e)},e.prototype.handleTouchDown=function(t,e){for(var i=0;i<e.changedTouches.length;i++){var n=this.getPointer(e.changedTouches[i]);this.maybePreventDefault(t,e,n),this.resetPointer(n,e.changedTouches[i]),this.handleDown(t,n,e)}},e.prototype.handleHit=function(t,e,i){var n=hD();if(t.lastHit&&t.lastHit>=n-this.getHitOption(t,"doubleHitTime")){if(n-t.lastHit<100)return;if(t.lastHit=void 0,t.lastHitPointer=void 0,t.events.isEnabled("doublehit")&&!QD.isPaused){var r={type:"doublehit",target:t,point:e.point,event:i,touch:e.touch};t.events.dispatchImmediately("doublehit",r)}}else if(t.lastHit=n,t.lastHitPointer=e,3===e.button){if(t.events.isEnabled("rightclick")&&!QD.isPaused){r={type:"rightclick",target:t,event:i};t.events.dispatchImmediately("rightclick",r)}}else if(t.events.isEnabled("hit")&&!QD.isPaused){r={type:"hit",target:t,event:i,point:e.point,touch:e.touch};t.events.dispatchImmediately("hit",r)}},e.prototype.handleOver=function(t,e,i,n){if(void 0===n&&(n=!1),t.hoverable&&(this.processDelayed(),t.overPointers.moveValue(e),!t.isRealHover&&(t.isHover=!0,t.isRealHover=!0,this.overObjects.moveValue(t),this.handleTrack(this.body,e,i,!0),t.events.isEnabled("over")&&!QD.isPaused))){var r={type:"over",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("over",r)}},e.prototype.handleOut=function(t,e,i,n,r){var s=this;if(void 0===n&&(n=!1),void 0===r&&(r=!1),t.hoverable&&(t.overPointers.removeValue(e),t.isHover&&(!t.hasDelayedOut||r))){if(n&&t.overPointers.length)return;if(e.touch&&!r&&!this.old(e)){var o=this.getHoverOption(t,"touchOutBehavior");if("leave"==o)return this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:hD()+500}),void(t.hasDelayedOut=!0);if("delay"==o&&this.getHoverOption(t,"touchOutDelay"))return void this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:hD()+500,timeout:this.setTimeout((function(){s.handleOut(t,e,i,!0)}),this.getHoverOption(t,"touchOutDelay"))})}if(t.isHover=!1,this.overObjects.removeValue(t),t.events.isEnabled("out")&&!QD.isPaused){var a={type:"out",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("out",a)}t.overPointers.clear(),t.hasDelayedOut=!1}},e.prototype.processDelayed=function(){for(var t;t=this._delayedEvents.out.pop();)t.timeout&&t.timeout.dispose(),this.handleOut(t.io,t.pointer,t.event,!1,!0)},e.prototype.handleDown=function(t,e,i){if(this.maybePreventDefault(t,i,e),t.inert&&this.stopInertia(t),this.handleOver(t,e,i,!0),t.downPointers.moveValue(e),this.applyCursorDownStyle(t,e),t.isDown||(!1!==t.focusable&&this.getHitOption(t,"noFocus")&&this.focusedObject&&GO(),t.isDown=!0,this.downObjects.moveValue(t),t.draggable&&this.processDragStart(t,e,i),t.resizable&&this.processResizeStart(t,e,i)),t.events.isEnabled("down")&&!QD.isPaused){var n={type:"down",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("down",n)}},e.prototype.handleGlobalUp=function(t,e,i){var n=this;void 0===i&&(i=!1);var r=this.downObjects.values.slice();r.sort((function(t,e){if(t&&e){var i=t.element.compareDocumentPosition(e.element);return i&Node.DOCUMENT_POSITION_CONTAINED_BY?1:i&Node.DOCUMENT_POSITION_CONTAINS?-1:0}return 0})),lC(r,(function(r){r&&r.downPointers.contains(t)&&n.handleUp(r,t,e,i)}))},e.prototype.handleDocumentLeave=function(t){var e=this;KC(this.downObjects.backwards().iterator(),(function(i){i.downPointers.each((function(n){e.handleUp(i,n,t)}))}))},e.prototype.handleUp=function(t,e,i,n){if(void 0===n&&(n=!1),this.restoreCursorDownStyle(t,e),t.downPointers.removeValue(e),(e.touch||this._useTouchEventsOnly)&&this.handleOut(t,e,i,!0),t.isDown){if(0==t.downPointers.length&&(t.isDown=!1,this.downObjects.removeValue(t)),t.events.isEnabled("up")&&!QD.isPaused){var r={type:"up",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("up",r)}n||(t.swipeable&&this.swiped(t,e)?this.handleSwipe(t,e,i):(t.clickable&&!this.moved(e,this.getHitOption(t,"hitTolerance"))&&this.handleHit(t,e,i),t.inert&&this.moved(e,this.getHitOption(t,"hitTolerance"))?this.handleInertia(t,e):t.draggable&&this.processDragStop(t,e,i),t.resizable&&this.processResizeStop(t,e,i)))}},e.prototype.maybePreventDefault=function(t,e,i){!CP(e)||!(t.draggable||t.swipeable||t.trackable||t.resizable)||this.isGlobalElement(t)||!1===e.cancelable||t.isTouchProtected&&i&&i.touch||e.preventDefault()},e.prototype.handleGlobalMove=function(t,e){var i,n=this;if(!t.touch){var r="function"==typeof(i=t.lastEvent).composedPath?i.composedPath()[0]:i.target;KC(this.overObjects.backwards().iterator(),(function(i){if(i&&i.overPointers.contains(t)&&i.hoverable){var s=!1;i.element&&t.lastEvent&&$O(i.element,r)||(s=!0),s&&n.handleOut(i,t,e,!0)}}))}KC(this.transformedObjects.backwards().iterator(),(function(i){!i.downPointers.contains(t)||i.swipeable&&n.swiping(i,t)||!i.draggable&&!i.resizable||n.handleTransform(i,e)})),KC(this.trackedObjects.backwards().iterator(),(function(i){i.overPointers.contains(t)||n.handleTrack(i,t,e)}))},e.prototype.handleTrack=function(t,e,i,n){if(void 0===n&&(n=!1),(n||this.moved(e,0))&&t.events.isEnabled("track")&&!QD.isPaused){var r={type:"track",target:t,event:i,point:e.point,pointer:e,touch:e.touch};t.events.dispatchImmediately("track",r)}},e.prototype.handleSwipe=function(t,e,i){if(t.events.isEnabled("swipe")&&!QD.isPaused){var n={type:"swipe",target:t,event:i,touch:e.touch};t.events.dispatchImmediately("swipe",n)}if(e.startPoint.x<e.point.x){if(t.events.isEnabled("swiperight")&&!QD.isPaused){n={type:"swiperight",target:t,event:i,touch:e.touch};t.events.dispatchImmediately("swiperight",n)}}else if(t.events.isEnabled("swipeleft")&&!QD.isPaused){n={type:"swipeleft",target:t,event:i,touch:e.touch};t.events.dispatchImmediately("swipeleft",n)}},e.prototype.handleWheel=function(t,e,i,n,r){var s={x:i,y:n};t.events.isEnabled("wheel")&&!QD.isPaused&&t.events.dispatchImmediately("wheel",{type:"wheel",target:t,event:r,point:e.point,shift:s}),i<0?t.events.isEnabled("wheelleft")&&!QD.isPaused&&t.events.dispatchImmediately("wheelleft",{type:"wheelleft",target:t,event:r,point:e.point,shift:s}):i>0?t.events.isEnabled("swiperight")&&!QD.isPaused&&t.events.dispatchImmediately("wheelright",{type:"wheelright",target:t,event:r,point:e.point,shift:s}):n<0?t.events.isEnabled("wheelup")&&!QD.isPaused&&t.events.dispatchImmediately("wheelup",{type:"wheelup",target:t,event:r,point:e.point,shift:s}):n>0&&t.events.isEnabled("wheeldown")&&!QD.isPaused&&t.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:t,event:r,point:e.point,shift:s})},e.prototype.handleInertia=function(t,e){t.draggable&&0===t.downPointers.length&&this.handleMoveInertia(t,e),t.resizable&&t.downPointers.length>1&&this.handleResizeInertia(t,e)},e.prototype.handleMoveInertia=function(t,e){var i=t,n={x:e.point.x,y:e.point.y},r={x:e.startPoint.x,y:e.startPoint.y},s=new lD(i,"move",n,r),o=this.getTrailPoint(e,hD()-this.getInertiaOption(t,"move","time"));if(void 0!==o){var a=this.getInertiaOption(t,"move","factor"),l=[{to:e.point.x+(e.point.x-o.point.x)*a,property:"x"},{to:e.point.y+(e.point.y-o.point.y)*a,property:"y"}],u=new LO(s,l,this.getInertiaOption(t,"move","duration"),this.getInertiaOption(t,"move","easing")).start();this._disposers.push(u.events.on("animationended",(function(t){s.done()}))),t.inertias.setKey("move",s)}else this.processDragStop(t,e,e.lastUpEvent)},e.prototype.handleResizeInertia=function(t,e){},e.prototype.handleTransform=function(t,e){var i,n,r,s=t.downPointers.getIndex(0),o=null,a=null;s&&(o=s.point,a=s.startPoint),r=n={x:t.originalPosition.x,y:t.originalPosition.y};for(var l=!0,u=1;u<t.downPointers.length;u++){var h=t.downPointers.getIndex(u);if(a.x!=h.startPoint.x&&a.y!=h.startPoint.y){l=!1,n=(i=h).point,r=i.startPoint;break}}var c=s&&this.moved(s,0);if(t.draggable&&s&&s.dragStartEvents&&s.dragStartEvents.length&&c&&t.events.isEnabled("dragstart")&&!QD.isPaused&&t.events.dispatchImmediately("dragstart",s.dragStartEvents.shift()),l&&t.draggable)this.handleTransformMove(t,o,a,e,c,s.touch);else{var p=i&&this.moved(i,0);t.draggable&&t.resizable?(this.handleTransformMove(t,o,a,e,c&&p,s.touch),this.handleTransformResize(t,o,a,n,r,e,c&&p,s.touch)):(t.draggable&&this.handleTransformMove(t,o,a,e,c,s.touch),!t.resizable||l&&!e.ctrlKey||this.handleTransformResize(t,o,a,n,r,e,c&&p,s.touch))}},e.prototype.handleTransformMove=function(t,e,i,n,r,s){if(r&&t.events.isEnabled("drag")&&!QD.isPaused&&(!t.isTouchProtected||!s)){var o={type:"drag",target:t,event:n,shift:{x:e.x-i.x,y:e.y-i.y},startPoint:i,point:e,touch:s};t.events.dispatchImmediately("drag",o)}},e.prototype.handleTransformResize=function(t,e,i,n,r,s,o,a){if(t.events.isEnabled("resize")&&!QD.isPaused&&(!t.isTouchProtected||!a)){var l={type:"resize",target:t,event:s,scale:KP(e,i,n,r),startPoint1:i,point1:e,startPoint2:r,point2:n,touch:a};t.events.dispatchImmediately("resize",l)}},e.prototype.processDragStart=function(t,e,i){this.transformedObjects.moveValue(t);var n={type:"dragstart",target:t,event:i,touch:!!e&&e.touch};e&&(e.dragTarget=t),e&&e.dragStartEvents?e.dragStartEvents.push(n):QD.isPaused||t.dispatchImmediately("dragstart",n)},e.prototype.processDragStop=function(t,e,i){if(e||(e=this.getDragPointer(t)),e&&(e.dragTarget=void 0),this.transformedObjects.removeValue(t),(!e||this.moved(e,0))&&t.events.isEnabled("dragstop")&&!QD.isPaused){var n={type:"dragstop",target:t,touch:!!e&&e.touch};t.events.dispatchImmediately("dragstop",n)}},e.prototype.processResizeStart=function(t,e,i){this.transformedObjects.moveValue(t)},e.prototype.processResizeStop=function(t,e,i){this.transformedObjects.removeValue(t)},e.prototype.dragStart=function(t,e){e||(e=this.getDragPointer(t)),e&&this.handleDown(t,e,e.lastDownEvent)},e.prototype.dragStop=function(t,e,i){e||(e=this.getDragPointer(t)),e&&!i&&this.handleGlobalUp(e,e.lastUpEvent,i)},e.prototype.getDragPointer=function(t){return t?t.downPointers.getIndex(0):this.transformedObjects.length?this.getDragPointer(this.transformedObjects.getIndex(0)):void 0},e.prototype.getPointerId=function(t){return(CP(t.identifier)?""+t.identifier:CP(t.pointerId)?""+t.pointerId:"m").replace("-","")},e.prototype.getPointerPoint=function(t){return{x:t.clientX,y:t.clientY}},e.prototype.getPointer=function(t){var e,i=this.getPointerId(t),n=this.getPointerPoint(t);return this.pointers.hasKey(i)?(e=this.pointers.getKey(i)).touch=this.isPointerTouch(t):(e={id:i,touch:this.isPointerTouch(t),startPoint:n,startTime:hD(),point:n,track:[],swipeCanceled:!1,dragStartEvents:[]},this.addBreadCrumb(e,n),this.pointers.setKey(i,e)),e.lastEvent=t,this.lastPointer=e,e},e.prototype.isPointerTouch=function(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&CP(t.pointerType))switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(CP(t.type)&&t.type.match(/^mouse/))return!1;return!0},e.prototype.resetPointer=function(t,e){var i=this.getPointerPoint(e);t.startTime=hD(),t.startPoint={x:i.x,y:i.y},t.point={x:i.x,y:i.y},t.track=[],t.swipeCanceled=!1},e.prototype.addBreadCrumb=function(t,e){t.track.push({timestamp:hD(),point:e})},e.prototype.lockDocument=function(){this.prepElement(this.body)},e.prototype.unlockDocument=function(){0==this.transformedObjects.length&&this.restoreAllStyles(this.body)},e.prototype.lockElement=function(t){this.prepElement(t)},e.prototype.unlockElement=function(t){this.restoreAllStyles(t)},e.prototype.lockWheel=function(){window.addEventListener(this._pointerEvents.wheel,this.wheelLockEvent,!!this._passiveSupported&&{passive:!1})},e.prototype.unlockWheel=function(){window.removeEventListener(this._pointerEvents.wheel,this.wheelLockEvent)},e.prototype.isLocalElement=function(t,e,i){var n=this.getCache("local_pointer_"+t.id);if(CP(n))return n;var r=YO(e)||document;if(r.elementFromPoint){var s=r.elementFromPoint(t.point.x,t.point.y),o=s&&$O(e,s);return this.setCache("local_pointer_"+t.id+"_"+i,o,100),o}return!1},e.prototype.wheelLockEvent=function(t){return t.preventDefault(),!1},e.prototype.prepElement=function(t){var e=t.element;if(e){for(var i=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<i.length;n++)i[n]in e.style&&this.setTemporaryStyle(t,i[n],"none");this.setTemporaryStyle(t,"tapHighlightColor","rgba(0, 0, 0, 0)")}},e.prototype.unprepElement=function(t){var e=t.element;if(e){for(var i=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<i.length;n++)i[n]in e.style&&this.restoreStyle(t,i[n]);this.restoreStyle(t,"tapHighlightColor")}},e.prototype.getHitOption=function(t,e){var i=t.hitOptions[e];return void 0===i&&(i=this.hitOptions[e]),i},e.prototype.getHoverOption=function(t,e){var i=t.hoverOptions[e];return void 0===i&&(i=this.hoverOptions[e]),i},e.prototype.getSwipeOption=function(t,e){var i=t.swipeOptions[e];return void 0===i&&(i=this.swipeOptions[e]),i},e.prototype.getKeyboardOption=function(t,e){var i=t.keyboardOptions[e];return void 0===i&&(i=this.keyboardOptions[e]),i},e.prototype.getMouseOption=function(t,e){var i=t.mouseOptions[e];return void 0===i&&(i=this.mouseOptions[e]),i},e.prototype.getInertiaOption=function(t,e,i){var n=t.inertiaOptions.getKey(e);return n&&CP(n[i])?n[i]:this.inertiaOptions.getKey(e)[i]},e.prototype.stopInertia=function(t){for(var e,i=["move","resize"],n=0;n<i.length;n++)if(e=i[n],t.inertias.hasKey(e)){var r=t.inertias.getKey(e);if(r){r.dispose();continue}}},e.prototype.swiping=function(t,e){var i=hD();return!(e.swipeCanceled||!t.swipeable)&&(Math.abs(e.startPoint.y-e.point.y)<this.getSwipeOption(t,"verticalThreshold")&&e.startTime>i-this.getSwipeOption(t,"time"))},e.prototype.swiped=function(t,e){var i=hD();return!e.swipeCanceled&&(Math.abs(e.startPoint.x-e.point.x)>this.getSwipeOption(t,"horizontalThreshold")&&Math.abs(e.startPoint.y-e.point.y)<this.getSwipeOption(t,"verticalThreshold")&&e.startTime>i-this.getSwipeOption(t,"time"))},e.prototype.applyCursorOverStyle=function(t){var e=t.cursorOptions;if(CP(e.overStyle))for(var i=0;i<e.overStyle.length;i++)UO(t.element,e.overStyle[i].property,e.overStyle[i].value)},e.prototype.applyCursorDownStyle=function(t,e){if(!e.touch){var i=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&CP(i))for(var n=0;n<i.length;n++)this.setTemporaryStyle(this.body,i[n].property,i[n].value),this.setTemporaryStyle(t,i[n].property,i[n].value)}},e.prototype.restoreCursorDownStyle=function(t,e){if(!e.touch){var i=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&CP(i))for(var n=0;n<i.length;n++)this.restoreStyle(this.body,i[n].property),this.restoreStyle(t,i[n].property)}},e.prototype.setGlobalStyle=function(t){for(var e=dD().body,i=IP(t)?t:[t],n=0;n<i.length;n++)this.setTemporaryStyle(e,i[n].property,i[n].value)},e.prototype.restoreGlobalStyle=function(t){for(var e=dD().body,i=IP(t)?t:[t],n=0;n<i.length;n++)this.restoreStyle(e,i[n].property)},e.prototype.isGlobalElement=function(t){return document.body===t.element},e.prototype.moved=function(t,e,i){void 0===i&&(i=300);var n=this.getShift(t);return Math.abs(n.x)>e||Math.abs(n.y)>e},e.prototype.old=function(t,e){return void 0===e&&(e=300),hD()-t.startTime>e},e.prototype.getShift=function(t){return{x:t.startPoint.x-t.point.x,y:t.startPoint.y-t.point.y}},e.prototype.getTrailPoint=function(t,e){for(var i,n=0;n<t.track.length;n++)if(t.track[n].timestamp>=e){i=t.track[n];break}return i},e.prototype.pointerExists=function(t,e){var i=!1;return t.each((function(t){t!=e&&(i=t.point.x==e.point.x&&t.point.y==e.point.y)})),i},e.prototype.getInteraction=function(t){return new oD(t)},e.prototype.setTemporaryStyle=function(t,e,i){var n=t.element;CP(n.style[e])&&!t.replacedStyles.hasKey(e)&&t.replacedStyles.setKey(e,n.style[e]),UO(n,e,i)},e.prototype.restoreStyle=function(t,e){t.replacedStyles.hasKey(e)?(t.element.style[e]=t.replacedStyles.getKey(e),t.replacedStyles.removeKey(e)):delete t.element.style[e]},e.prototype.restoreAllStyles=function(t){KC(t.replacedStyles.iterator(),(function(e){var i=e[0],n=e[1];t.element.style[i]=n,t.replacedStyles.removeKey(i)}))},e.prototype.dispose=function(){this.isDisposed()||(t.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},e.prototype.log=function(t,e,i){if(e.changedTouches)for(var n=0;n<e.changedTouches.length;n++)this.logTouch(t,e.type,e.changedTouches[n]);else{var r="";if(e.pointerType)switch(e.pointerType){case 2:r="touch";break;case 4:r="mouse";break;default:r=e.pointerType}else r="undefined"!=typeof TouchEvent&&e instanceof TouchEvent?"touch":e.type.match(/^mouse/)?"mouse":"???";var s="";s=CP(e.identifier)?e.identifier:CP(e.pointerId)?e.pointerId:"???",i?console.log(t+" ("+i.uid+") "+e.type+" "+r+" "+s):console.log(t+" "+e.type+" "+r+" "+s)}},e.prototype.areTransformed=function(t){var e=this.transformedObjects.length;if(t)for(var i=IP(t)?t:[t],n=0;n<i.length;n++)this.transformedObjects.contains(i[n])&&e--;return e>0},e.prototype.logTouch=function(t,e,i){console.log(t+" "+e+" touch "+i.identifier)},Object.defineProperty(e,"passiveSupported",{get:function(){var t=this;if(null==this._passiveSupported)try{var e=Object.defineProperty({},"passive",{get:function(){t._passiveSupported=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(i){this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),e}(kS),pD=null;function dD(){return null==pD&&(pD=new cD),pD}var fD=function(t){function e(){var e=t.call(this)||this;return e.adapter=new vS(e),e._elements={},e._IOs={},e._content="",e._title="",e._classPrefix="ampopup",e._defaultStyles=!0,e._showCurtain=!1,e._draggable=!0,e._align="center",e._dynamicResize=!0,e._verticalAlign="middle",e._shift={x:0,y:0},e._tempShift={x:0,y:0},e._readerTitle="",e._closable=!0,e._cssLoaded=!1,e._fitTo="window",e.isTemplate=!1,e._sized=!1,e.className="Popup",e}return uP(e,t),e.prototype.open=function(){this.container&&(this._elements.wrapper&&this.container.appendChild(this._elements.wrapper),this._elements.curtain&&(this.container.appendChild(this._elements.curtain),this.showCurtain=this.showCurtain),this.positionElement(),this.dispatchImmediately("opened"))},e.prototype.close=function(){this._elements.wrapper&&this._elements.wrapper.parentElement&&this._elements.wrapper.parentElement.removeChild(this._elements.wrapper),this._elements.curtain&&this._elements.curtain.parentElement&&this._elements.curtain.parentElement.removeChild(this._elements.curtain),this.dispatchImmediately("closed"),this.releasePointers()},e.prototype.dispose=function(){this.close(),t.prototype.dispose.call(this)},e.prototype.positionElement=function(t){var e=this;void 0===t&&(t=!0),this._elements.wrapper&&setTimeout((function(){if(e._elements.wrapper){if(t||!e._sized){e._elements.wrapper.style.opacity="0.01",e._elements.wrapper.style.left="0",e._elements.wrapper.style.top="0",e._elements.wrapper.style.margin="0 0 0 0",e._elements.wrapper.style.width="",e._elements.wrapper.style.height="";var i=e._elements.wrapper.getBoundingClientRect();e._elements.wrapper.style.width=i.width+"px",e._elements.wrapper.style.height=i.height+"px",e._sized=!0}if(e.dynamicResize)for(var n=e._elements.wrapper.getElementsByTagName("img"),r=0;r<n.length;r++){var s=n[r];if(!s.complete){s.addEventListener("load",(function(){e.positionElement(!0)}));break}}setTimeout((function(){if(e._elements.wrapper){var i;switch(!t&&e._sized||!e._bbox?(i=e._elements.wrapper.getBoundingClientRect(),e._elements.wrapper.style.opacity=""):i=e._bbox,e.align){case"left":e._elements.wrapper.style.left="0",e._elements.wrapper.style.right="auto",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x);break;case"center":e._elements.wrapper.style.left="50%",e._elements.wrapper.style.right="auto",e._elements.wrapper.style.marginLeft=e.toStyle(Math.round(-i.width/2)+(e._shift.x+e._tempShift.x));break;case"right":e._elements.wrapper.style.left="auto",e._elements.wrapper.style.right="0",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x);break;default:e._elements.wrapper.style.left=e.toStyle(e.left)||"auto",e._elements.wrapper.style.right=e.toStyle(e.right)||"auto",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x)}switch(e.verticalAlign){case"top":e._elements.wrapper.style.top="0",e._elements.wrapper.style.bottom="auto",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y);break;case"middle":e._elements.wrapper.style.top="50%",e._elements.wrapper.style.bottom="auto",e._elements.wrapper.style.marginTop=e.toStyle(Math.round(-i.height/2)+(e._shift.y+e._tempShift.y));break;case"bottom":e._elements.wrapper.style.top="auto",e._elements.wrapper.style.bottom="0",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y);break;default:e._elements.wrapper.style.top=e.toStyle(e.top)||"auto",e._elements.wrapper.style.bottom=e.toStyle(e.bottom)||"auto",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y)}}}),1)}}),1)},e.prototype.setupDragging=function(){var t=this;this.draggable?(this._IOs.header.events.has("drag")||this._IOs.header.events.on("drag",(function(e){t._tempShift.x=e.shift.x,t._tempShift.y=e.shift.y,t.positionElement(!1)})),this._IOs.header.events.has("dragstop")||this._IOs.header.events.on("dragstop",(function(e){t._shift.x+=t._tempShift.x,t._shift.y+=t._tempShift.y,t._tempShift.x=0,t._tempShift.y=0,t.positionElement(!1)}))):this._IOs.header&&(dD().unprepElement(this._IOs.header),this._IOs.header.events.has("drag")&&this._IOs.header.events.off("drag"),this._IOs.header.events.has("dragstop")&&this._IOs.header.events.off("dragstop"))},e.prototype.toStyle=function(t){return CP(t)?TP(t)?t+"px":t.toString():null},Object.defineProperty(e.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",this._classPrefix)},set:function(t){this._classPrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classPrefixRaw",{get:function(){return this._classPrefix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this.adapter.apply("content",this._content)},set:function(t){this._content!=t&&(this._content=t,this._elements.content||this.createContentElement(),this._elements.content.innerHTML=t,this.positionElement())},enumerable:!0,configurable:!0}),e.prototype.getClassNames=function(){return this.adapter.apply("classNames",{wrapperClass:this.classPrefix+"",headerClass:this.classPrefix+"-header",titleClass:this.classPrefix+"-title",contentClass:this.classPrefix+"-content",insideClass:this.classPrefix+"-inside",curtainClass:this.classPrefix+"-curtain",closeClass:this.classPrefix+"-close"})},e.prototype.createContentElement=function(){if(!this._elements.wrapper){var t=this.getClassNames(),e=document.createElement("div");e.className=t.contentClass,e.style.opacity="0.01";var i=document.createElement("a");i.className=t.closeClass;var n=document.createElement("div");n.className=t.headerClass;var r=document.createElement("div");r.innerHTML=this.title,r.className=t.titleClass,this.title||(r.style.display="none");var s=document.createElement("div");s.className=t.insideClass,s.innerHTML=this.content,this._IOs.wrapper=dD().getInteraction(e),this._IOs.header=dD().getInteraction(n),this._disposers.push(this._IOs.wrapper),this._IOs.wrapper.events.on("over",this.disablePointers,this),this._IOs.wrapper.events.on("out",this.releasePointers,this),this._IOs.close=dD().getInteraction(i),this._disposers.push(this._IOs.close),i.style.visibility="hidden",e.setAttribute("role","dialog"),n.appendChild(i),n.appendChild(r),e.appendChild(n),e.appendChild(s),this.container.appendChild(e),this._elements.wrapper=e,this._elements.header=n,this._elements.content=s,this._elements.title=r,this._elements.close=i,this.defaultStyles&&this.loadDefaultCSS(),this.createCurtainElement(),this.applyEvents(),this.applyReaderSettings(),this.setupDragging()}},Object.defineProperty(e.prototype,"title",{get:function(){return this.adapter.apply("title",this._title)},set:function(t){this._title!=t&&(this._title=t,this._elements.content||this.createContentElement(),this._elements.title.innerHTML=t,this.positionElement(),this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerTitle",{get:function(){return this.adapter.apply("readerTitle",""!=this._readerTitle?this._readerTitle:this.title)},set:function(t){this._readerTitle!=t&&(this._readerTitle=t,this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closable",{get:function(){return this.adapter.apply("closable",this._closable)},set:function(t){t!==this._closable&&(this._closable=t,this.applyEvents())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitTo",{get:function(){return this.adapter.apply("fitTo",this._fitTo)},set:function(t){t!=this._fitTo&&(this._fitTo=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",this._defaultStyles)},set:function(t){this._defaultStyles!=t&&(this._defaultStyles=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showCurtain",{get:function(){return this.adapter.apply("showCurtain",this._showCurtain)},set:function(t){this._showCurtain!=t&&(this._showCurtain=t,this._elements.curtain&&(this._elements.curtain.style.display=t?"block":"none"))},enumerable:!0,configurable:!0}),e.prototype.createCurtainElement=function(){var t=this.getClassNames(),e=document.createElement("div");e.className=t.curtainClass,this.container.appendChild(e),this._IOs.curtain=dD().getInteraction(e),this._disposers.push(this._IOs.curtain),this._IOs.curtain.events.on("over",this.disablePointers,this),this._IOs.curtain.events.on("out",this.releasePointers,this),e.style.display=this.showCurtain?"block":"none",this._elements.curtain=e},Object.defineProperty(e.prototype,"draggable",{get:function(){return this.adapter.apply("draggable",this._draggable)},set:function(t){this._draggable!=t&&(this._draggable=t,this.setupDragging())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dynamicResize",{get:function(){return this.adapter.apply("dynamicResize",this._dynamicResize)},set:function(t){this._dynamicResize!=t&&(this._dynamicResize=t,this.positionElement(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adapter.apply("align",this._align)},set:function(t){this._align!=t&&(this._align=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",this._verticalAlign)},set:function(t){this._verticalAlign!=t&&(this._verticalAlign=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.adapter.apply("left",this._left)},set:function(t){this.left!=t&&(this._left=t,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.adapter.apply("right",this._right)},set:function(t){this.right!=t&&(this._right=t,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.adapter.apply("top",this._top)},set:function(t){this.top!=t&&(this._top=t,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.adapter.apply("bottom",this._bottom)},set:function(t){this.bottom!=t&&(this._bottom=t,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),e.prototype.loadDefaultCSS=function(){this._cssLoaded||(this._disposers.push(function(t,e){e||(e="ampopup");var i=new nD,n=i.getFor("text"),r=i.getFor("background");r.alpha=.8;var s=i.getFor("alternativeBackground");return s.alpha=.05,rD.insertKeyIfEmpty(e,(function(){var i=new wC([new XO(t,"."+e,{overflow:"visible",position:"absolute",top:"0",left:"0","z-index":"2000"}),new XO(t,"."+e+"-curtain",{width:"100%",height:"100%",position:"absolute",top:"0",left:"0","z-index":"2001","background-color":r.hex,opacity:"0.5"}),new XO(t,"."+e+"-header",{display:"block",width:"100%","min-height":"1.8em",background:s.rgba}),new XO(t,"."+e+"-title",{"font-weight":"bold","font-size":"110%",padding:"0.5em 1.2em 0.5em 1em"}),new XO(t,"."+e+"-content",{background:r.hex,"background-color":r.rgba,color:n.hex,display:"inline-block",position:"absolute",top:"0",left:"0","max-width":"90%","max-height":"90%",overflow:"auto","z-index":"2002"}),new XO(t,"."+e+"-inside",{padding:"1em"}),new XO(t,"."+e+"-close",{display:"block",position:"absolute",top:"0.3em",right:"0.3em","background-color":"rgb(100, 100, 100)",background:"rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center","background-size":"80%",width:"1.2em",height:"1.2em",cursor:"pointer"})]);return new CC((function(){rD.removeKey(e),i.dispose()}))})).increment()}(KO(this.container),this.classPrefix)),NC(this._elements,(function(t,e){e.style.display=""})),this._cssLoaded=!0)},e.prototype.applyEvents=function(){var t=this;if(this._IOs.close)if(this.closable){this._IOs.close.element.style.visibility="visible";var e=[dD().body.events.on("keyup",(function(e){uD.isKey(e.event,"esc")&&t.closable&&t.close()})),this._IOs.close.events.on("hit",(function(e){t.close()}))];e.push(this._IOs.curtain.events.on("hit",(function(e){t.showCurtain&&t.closable&&t.close()}))),this._disposers.push(new wC(e))}else this._IOs.close.element.style.visibility="hidden"},e.prototype.disablePointers=function(){this.sprite&&(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled,this.sprite.interactionsEnabled=!1)},e.prototype.releasePointers=function(){CP(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled,this._spriteInteractionsEnabled=void 0)},e.prototype.applyReaderSettings=function(){this.elements.wrapper.setAttribute("aria-label",this.readerTitle)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.container=e.container,this.sprite=e.sprite,this.classPrefix=e.classPrefixRaw,this.content=e.content,this.title=e.title,this.readerTitle=e.readerTitle,this.defaultStyles=e.defaultStyles,this.showCurtain=e.showCurtain,this.align=e.align,this.verticalAlign=e.verticalAlign,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.adapter.copyFrom(e.adapter)},e}(kS),gD=function(t){function e(){var e=t.call(this)||this;return e.adapter=new vS(e),e.className="Modal",e.showCurtain=!0,e.draggable=!1,e}return uP(e,t),e}(fD),mD=function(){function t(){var t=this;this._targets=[],this._observer=new ResizeObserver((function(e){lC(e,(function(e){lC(t._targets,(function(t){t.target===e.target&&t.callback()}))}))}))}return t.prototype.addTarget=function(t,e){this._observer.observe(t,{box:"content-box"}),this._targets.push({target:t,callback:e})},t.prototype.removeTarget=function(t){this._observer.unobserve(t),_C(this._targets,(function(e){return e.target!==t}))},t}(),yD=function(){function t(){this._targets=[]}return t.prototype.addTarget=function(e,i){var n=this;if(0===this._targets.length){var r=null,s=function(){var e=Date.now();(null===r||e>r+t.delay)&&(r=e,lC(n._targets,(function(t){var e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),n._timer=requestAnimationFrame(s)};this._timer=requestAnimationFrame(s)}var o=e.getBoundingClientRect();this._targets.push({target:e,callback:i,size:o})},t.prototype.removeTarget=function(t){_C(this._targets,(function(e){return e.target!==t})),0===this._targets.length&&cancelAnimationFrame(this._timer)},t.delay=200,t}(),vD=null;var bD=function(){function t(t,e){this._disposed=!1,this._sensor=(null===vD&&(vD="undefined"!=typeof ResizeObserver?new mD:new yD),vD),this._element=t,this._sensor.addTarget(t,e)}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element))},t.prototype.reset=function(){console.warn("resizeSensor.reset() is no longer needed and can be removed")},t}(),_D=[],xD=function(){function t(t,e){var i=this;if(this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this.htmlElement=t,!e){var n=!1;this.resizeSensor=new bD(t,(function(){i.autoResize&&!n&&i.measure()})),this._disposers.push(this.resizeSensor),this._disposers.push(BO(window,"beforeprint",(function(){n=!0}))),this._disposers.push(BO(window,"afterprint",(function(){n=!1})))}_D.push(this);var r=document.createElement("div"),s=r.style;s.width="100%",s.height="100%",s.position="relative",t.appendChild(r),this.SVGContainer=r}return t.prototype.measure=function(){var t,e,i,n,r=(t=this.htmlElement,e=getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),n=parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth),t.clientWidth-i-n),s=function(t){var e=getComputedStyle(t),i=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),n=parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth);return t.clientHeight-i-n}(this.htmlElement),o=this.container;o&&(this.width==r&&this.height==s||(this.width=r,this.height=s,r>0&&(o.maxWidth=r),s>0&&(o.maxHeight=s),qO(this.SVGContainer)),o.maxWidth||(o.maxWidth=0),o.maxHeight||(o.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.measure()},enumerable:!0,configurable:!0}),t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||hC(_D,this),lC(this._disposers,(function(t){t.dispose()}))},Object.defineProperty(t.prototype,"hideOverflow",{set:function(t){this.SVGContainer.style.overflow=t?"hidden":""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modal",{get:function(){return CP(this._modal)||(this._modal=new gD,this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),t.prototype.openModal=function(t,e){this.closeModal();var i=this.modal;return i.content=t,i.readerTitle=e||"",i.title=e||"",i.open(),i},t.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(t.prototype,"popups",{get:function(){if(!CP(this._popups)){var t=new fD;t.container=this.SVGContainer,this._popups=new hS(t),this._disposers.push(new aS(this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),t.prototype.openPopup=function(t,e){var i=this.popups.create();return i.content=t,CP(e)&&(i.title=e),i.open(),i},t.prototype.closeAllPopups=function(){this.popups.each((function(t){t.close()}))},Object.defineProperty(t.prototype,"readerAlertElement",{get:function(){if(!CP(this._readerAlertElement)){var t=document.createElement("div");t.setAttribute("role","alert"),t.style.zIndex="-100000",t.style.opacity="0",this.SVGContainer.appendChild(t),this._readerAlertElement=t}return this._readerAlertElement},enumerable:!0,configurable:!0}),t.prototype.readerAlert=function(t){this.readerAlertElement.innerHTML=t},t.prototype.checkTransform=function(t){if(window.getComputedStyle){if(t&&t.style){var e=window.getComputedStyle(t,null);if(e){var i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(i&&"none"!==i){var n=i.split("(")[1].split(")")[0].split(","),r=Number(n[0]),s=Number(n[1]),o=Math.sqrt(r*r+s*s);isNaN(o)||(this.cssScale*=o)}}}t.parentNode&&t.parentNode instanceof HTMLElement&&this.checkTransform(t.parentNode)}},t}(),wD=function(){function t(t,e){this.container=t,this.id=e;var i=document.createElementNS(VO,"svg");i.setAttribute("version","1.1"),i.setAttributeNS(RO,"xmlns",VO),i.setAttributeNS(RO,"xmlns:xlink",NO),i.setAttribute("role","group"),this.container.appendChild(i),this.defs=document.createElementNS(VO,"defs"),i.appendChild(this.defs),i.style.width="100%",i.style.height="100%",i.style.overflow="visible",this.svg=i}return t.prototype.add=function(t){return new eD(t)},t.prototype.addGroup=function(t){return new iD(t)},t.prototype.append=function(t){t&&this.svg.appendChild(t.node)},t.prototype.appendDef=function(t){t&&this.defs.appendChild(t.node)},t.prototype.foreignObject=function(){return new eD("foreignObject")},t.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},t}(),PD=null;function CD(){if(null===PD){var t=document.createElement("div");t.hidden=!0,document.body.appendChild(t);var e=new xD(t,!0);PD=new wD(e.SVGContainer,"ghost")}return PD}var SD=function(t){function e(){var e=t.call(this)||this;e._elements=new uS,e.properties={},e.className="Pattern",e.width=10,e.height=10,e.x=0,e.y=0,e.patternUnits="userSpaceOnUse";var i=new nD;return e.backgroundFill=i.getFor("background"),e.backgroundOpacity=0,e.fillOpacity=1,e.fill=i.getFor("alternativeBackground"),e.stroke=i.getFor("alternativeBackground"),e.strokeOpacity=1,e.strokeWidth=1,e.shapeRendering="crispEdges",e.rotation=0,e.element=e.paper.addGroup("pattern"),e.id="pattern-"+rS.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e._disposers.push(new aS(e._elements)),e.patternUnits=e.patternUnits,e.width=e.width,e.height=e.height,e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){var t=this,e=this.element;if(e){e.removeChildNodes();var i=this.paper.add("rect");i.attr({width:this.width,height:this.height,"shape-rendering":"crispEdges",fill:this.backgroundFill.hex,"fill-opacity":this.backgroundOpacity,stroke:this.backgroundFill.hex,"stroke-opacity":this.backgroundOpacity}),e.add(i),e.attr({x:this.x,y:this.y,width:this.width,height:this.height,stroke:this.stroke.hex,fill:this.fill.hex,"fill-opacity":this.fillOpacity,"stroke-opacity":this.strokeOpacity,"stroke-width":this.strokeWidth,"shape-rendering":this.shapeRendering,patternUnits:this.patternUnits,"stroke-dasharray":this.strokeDasharray}),KC(this._elements.iterator(),(function(e){e.rotation=t.rotation,e.rotationX=t.properties.rotationX,e.rotationY=t.properties.rotationY,t.element.add(e)}))}},e.prototype.animate=function(t,e,i){return new LO(this,t,e,i).start()},e.prototype.addElement=function(t){this._elements.push(t),this._disposers.push(t)},e.prototype.removeElement=function(t){this._elements.removeValue(t),this.removeDispose(t)},Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this.properties.fillOpacity},set:function(t){this.properties.fillOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.properties.fill},set:function(t){this.properties.fill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundFill",{get:function(){return this.properties.backgroundFill},set:function(t){this.properties.backgroundFill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundOpacity",{get:function(){return this.properties.backgroundOpacity},set:function(t){this.properties.backgroundOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(t){this.properties.stroke=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this.properties.strokeOpacity},set:function(t){this.properties.strokeOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(t){this.properties.strokeWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shapeRendering",{get:function(){return this.properties.shapeRendering},set:function(t){this.properties.shapeRendering=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.properties.rotation},set:function(t){this.properties.rotation=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patternUnits",{get:function(){return this.properties.patternUnits},set:function(t){this.properties.patternUnits=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.properties.x},set:function(t){this.properties.x=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.properties.y},set:function(t){this.properties.y=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:CD()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),NC(e.properties,(function(t,e){i[t]=e}))},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new jO(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDasharray",{get:function(){return this.properties.strokeDashArray},set:function(t){this.properties.strokeDashArray=t,this.draw()},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(e&&CP(e.elements)&&IP(e.elements))for(var i=0,n=e.elements.length;i<n;i++){var r=e.elements[i];if(CP(r.type)){var s=this.createEntryInstance(r);s instanceof TS&&(s.config=r),this.addElement(CP(r.typeProperty)?s[r.typeProperty]:s.element)}}t.prototype.processConfig.call(this,e)},e}(TS);rS.registeredClasses.Pattern=SD;var OD=function(t){function e(){var e=t.call(this)||this;return e._stops=new uS,e._rotation=0,e.className="LinearGradient",e._stops.events.on("setIndex",e.validate,e),e._stops.events.on("inserted",e.validate,e),e.element=e.paper.addGroup("linearGradient"),e.id="gradient-"+rS.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return uP(e,t),e.prototype.validate=function(){var t=this,e=(this._rotation+90)*AP,i=Math.round(50+50*Math.sin(e+Math.PI))+"%",n=Math.round(50+50*Math.cos(e))+"%",r=Math.round(50+50*Math.sin(e))+"%",s=Math.round(50+50*Math.cos(e+Math.PI))+"%",o=this.element;o.removeChildNodes(),o.attr({x1:i,x2:r,y1:n,y2:s}),KC(qC(this._stops.iterator()),(function(e){var i=e[0],n=e[1],r=n.offset;TP(r)||(r=i/(t._stops.length-1));var s=t.paper.add("stop");CP(n.color)&&s.attr({"stop-color":n.color.toString()}),TP(n.opacity)&&s.attr({"stop-opacity":n.opacity}),TP(r)&&s.attr({offset:r}),o.add(s)}))},e.prototype.clear=function(){this._stops.clear()},e.prototype.addColor=function(t,e,i){this._stops.push({color:t,opacity:e,offset:i})},Object.defineProperty(e.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:CD()},set:function(t){this._paper!=t&&(this._paper=t,this.validate(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation=t,this.validate()},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this._rotation=e.rotation},Object.defineProperty(e.prototype,"gradientUnits",{set:function(t){this.element.attr({gradientUnits:t})},enumerable:!0,configurable:!0}),e}(TS);rS.registeredClasses.LinearGradient=OD;var DD=function(t){function e(){var e=t.call(this)||this;return e._stops=new uS,e.element=e.paper.addGroup("radialGradient"),e.id="gradient-"+rS.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){var t,e=this,i=this.element;TP(this.cx)&&((t=this.cx)instanceof gP&&(t=t.percent+"%"),i.attr({cx:t}));TP(this.cy)&&((t=this.cy)instanceof gP&&(t=t.percent+"%"),i.attr({cy:t}));this.fx&&((t=this.fx)instanceof gP&&(t=t.percent+"%"),i.attr({fx:t}));this.fy&&((t=this.fy)instanceof gP&&(t=t.percent+"%"),i.attr({fy:t}));i.removeChildNodes(),KC(qC(this._stops.iterator()),(function(t){var n=t[0],r=t[1],s=r.offset;TP(s)||(s=n/(e._stops.length-1));var o=e.paper.add("stop");CP(r.color)&&o.attr({"stop-color":r.color.toString()}),TP(r.opacity)&&o.attr({"stop-opacity":r.opacity}),TP(s)&&o.attr({offset:s}),i.add(o)}))},e.prototype.addColor=function(t,e,i){this._stops.push({color:t,opacity:e,offset:i}),this.draw()},Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:CD()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cx",{get:function(){return this._cx},set:function(t){this._cx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cy",{get:function(){return this._cy},set:function(t){this._cy=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fx",{get:function(){return this._fx},set:function(t){this._fx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fy",{get:function(){return this._fy},set:function(t){this._fy=t,this.draw()},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this.cx=e.cx,this.cy=e.cy,this.fx=e.fx,this.fy=e.fy},Object.defineProperty(e.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._stops.clear()},e}(TS);rS.registeredClasses.RadialGradient=DD;var ED,TD=function(){function t(){}return t.grab=[{property:"cursor",value:"move"},{property:"cursor",value:"grab"},{property:"cursor",value:"-webkit-grab"}],t.grabbing=[{property:"cursor",value:"move"},{property:"cursor",value:"grabbing"},{property:"cursor",value:"-webkit-grabbing"}],t.pointer=[{property:"cursor",value:"pointer"}],t.default=[{property:"cursor",value:"default"}],t.horizontalResize=[{property:"cursor",value:"ew-resize"}],t.verticalResize=[{property:"cursor",value:"ns-resize"}],t.notAllowed=[{property:"cursor",value:"not-allowed"}],t.text=[{property:"cursor",value:"text"}],t}(),kD={_decimalSeparator:".",_thousandSeparator:",",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03bc",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){var e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""},ID=function(t){function e(){var e=t.call(this)||this;return e.adapter=new vS(e),e._locale=kD,e._defaultLocale=kD,e.className="Language",CP(TO.defaultLocale)&&(e.locale=TO.defaultLocale),e.applyTheme(),e}return uP(e,t),e.prototype.getLocale=function(t){return null==t&&(t=this._locale),this.adapter.apply("locale",{locale:t}).locale},e.prototype.translate=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];e=this.getLocale(e);var r=t,s=this.getTranslations(e),o=s[t];if(null===o)o="";else if(CP(o))o&&(r=o);else if(e!==this._defaultLocale)return this.translate.apply(this,fP([t,this._defaultLocale],i));if(i.length)for(var a=i.length,l=0;l<a;++l)r=r.split("%"+(l+1)).join(i[l]);return this.adapter.apply("translate",{translation:r,locale:e}).translation},e.prototype.translateAny=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.translate(t,e)},e.prototype.translateEmpty=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=this.translate.apply(this,fP([t,e],i));return r==t?"":r},e.prototype.translateFunc=function(t,e){e=this.getLocale(e);var i=this.getTranslations(e)[t];return null!=i?i:e!==this._defaultLocale?this.translateFunc(t,this._defaultLocale):function(){return""}},e.prototype.translateAll=function(t,e){var i=this;return this.isDefault()?t:aC(t,(function(t){return i.translate(t,e)}))},e.prototype.isDefault=function(){return this._defaultLocale===this._locale},Object.defineProperty(e.prototype,"locale",{get:function(){return this._locale},set:function(t){if(this._locale!=t&&(this._locale=t,this.events.isEnabled("localechanged"))){var e={type:"localechanged",locale:t,target:this};this.events.dispatchImmediately("localechanged",e)}},enumerable:!0,configurable:!0}),e.prototype.getTranslations=function(t){return this.adapter.apply("translations",{translations:t,locale:t}).translations},e}(kS),MD=function(t){function e(){var e=t.call(this)||this;return e.adapter=new vS(e),e.className="TextFormatter",e.applyTheme(),e}return uP(e,t),e.prototype.debug=function(){},e.prototype.format=function(t,e){CP(e)||(e="svg");var i="",n=(t=this.escape(t)).match(/\[([^\]]*?)\]/gm);if(!n)return this.wrap(t,"",e);for(var r=t.split(/\[[^\[\]]*\]/),s=0,o=r.length;s<o;s++){var a=r[s];if(""!==a){a=this.adapter.apply("chunk",a);var l="";s>0&&(l=n[s-1].replace("[","").replace("]","")),i+=this.wrap(a,l,e)}}return i=this.unescape(i),this.cleanUp(i)},e.prototype.escape=function(t){return t.replace(/\[\[/g,rS.getPlaceholder("1")).replace(/([^\/]{1})\]\]/g,"$1"+rS.getPlaceholder("2")).replace(/\]\]/g,rS.getPlaceholder("2")).replace(/\{\{/g,rS.getPlaceholder("3")).replace(/\}\}/g,rS.getPlaceholder("4")).replace(/\'\'/g,rS.getPlaceholder("5"))},e.prototype.unescape=function(t){return t.replace(new RegExp(rS.getPlaceholder("1"),"g"),"[[").replace(new RegExp(rS.getPlaceholder("2"),"g"),"]]").replace(new RegExp(rS.getPlaceholder("3"),"g"),"{{").replace(new RegExp(rS.getPlaceholder("4"),"g"),"}}").replace(new RegExp(rS.getPlaceholder("5"),"g"),"'")},e.prototype.cleanUp=function(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},e.prototype.wrap=function(t,e,i){switch(""!==e&&"/"!==e||(e=""),i){case"html":return this.wrapHtml(t,this.translateStyleShortcuts(e));default:return this.wrapSvg(t,this.translateStyleShortcuts(e))}},e.prototype.wrapSvg=function(t,e){return""===e?"<tspan>"+t+"</tspan>":"<tspan style='"+e+"'>"+t+"</tspan>"},e.prototype.getSvgElement=function(t,e){var i=new eD("tspan");return i.textContent=t,e&&i.node.setAttribute("style",e),i},e.prototype.wrapHtml=function(t,e){return""===e?"<span>"+t+"</span>":"<span style='"+this.styleSvgToHtml(e)+"'>"+t+"</span>"},e.prototype.getHtmlElement=function(t,e){var i=document.createElement("span");return i.innerHTML=t,e&&i.setAttribute("style",e),i},e.prototype.styleSvgToHtml=function(t){return t=t.replace(/fill:/,"color:")},e.prototype.translateStyleShortcuts=function(t){if(""==t||"[ ]"==t)return"";var e=rS.getCache("translateStyleShortcuts_"+t);if(e)return e;var i=t.match(/('[^']*')|("[^"]*")/gi);if(i)for(var n=0;n<i.length;n++)t=t.replace(i[n],i[n].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));var r=t.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);if(!r)return t;for(n=0;n<r.length;n++)r[n].match(/^bold$/i)?r[n]="font-weight:"+r[n]:"/"==r[n]?r[n]="":r[n].match(/:/)?r[n]=r[n].replace(/\+/g," "):r[n]="fill:"+r[n];var s=r.join(";");return rS.setCache("translateStyleShortcuts_"+t,s),s},e.prototype.chunk=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=[];t=this.escape(t);for(var r=e?t.split("'"):[t],s=0;s<r.length;s++){var o=r[s];if(""!==o)if(s%2==0)for(var a=(o=(o=o.replace(/\]\[/g,"]__\xa7\xa7\xa7__[")).replace(/\[\]/g,"[ ]")).split(/[\[\]]+/),l=0;l<a.length;l++){"__\xa7\xa7\xa7__"!==(u=this.cleanUp(this.unescape(a[l])))&&(""!==u&&(l%2==0?n.push({type:"value",text:this.adapter.apply("chunk",u)}):n.push({type:i?"value":"format",text:"["+u+"]"})))}else for(a=o.split(/[\[\]]+/),l=0;l<a.length;l++){var u;""!==(u=this.cleanUp(this.unescape(a[l])))&&(l%2==0?n.push({type:"text",text:u}):this.isImage(u)?n.push({type:"image",text:"["+u+"]"}):n.push({type:"format",text:"["+u+"]"}))}}return n},e.prototype.isImage=function(t){return!!t.match(/img[ ]?:/)},e}(TS);function FD(){return null==ED&&(ED=new MD),ED}rS.registeredClasses.TextFormatter=MD;var AD=function(t){function e(){var e=t.call(this)||this;return e._negativeBase=0,e._numberFormat="#,###.#####",e._outputFormat="svg",e._smallNumberThreshold=1,e.className="NumberFormatter",e.applyTheme(),e}return uP(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.language&&this.language.dispose()},Object.defineProperty(e.prototype,"language",{get:function(){return this._language||(this.sprite?this._language=this.sprite.language:this._language=new ID),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),e.prototype.format=function(t,e,i){var n;(void 0===e||EP(e)&&"number"===e.toLowerCase())&&(e=this._numberFormat);var r,s=Number(t);if(e instanceof Object)try{return this.intlLocales?new Intl.NumberFormat(this.intlLocales,e).format(s):new Intl.NumberFormat(void 0,e).format(s)}catch(l){return"Invalid"}else{e=GS(e);var o=this.parseFormat(e,this.language),a=void 0;a=s>this._negativeBase?o.positive:s<this._negativeBase?o.negative:o.zero,CP(i)&&!a.mod&&(r=a,(a=JSON.parse(JSON.stringify(r))).decimals.active=0==s?0:i),n=a.template.split("__\xa7\xa7\xa7__").join(this.applyFormat(s,a))}return n},e.prototype.parseFormat=function(t,e){var i=this,n=this.getCache(t);if(CP(n))return n;var r={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1}},s=(t=t.replace("||","__\xa7\xa7\xa7\xa7__")).split("|");return r.positive.source=s[0],void 0===s[2]?r.zero=r.positive:r.zero.source=s[2],void 0===s[1]?r.negative=r.positive:r.negative.source=s[1],NC(r,(function(t,e){if(!e.parsed)if(void 0===i.getCache(e.source)){var n=e.source;"number"===n.toLowerCase()&&(n=EP(i._numberFormat)?i._numberFormat:"#,###.#####");for(var s=FD().chunk(n,!0),o=0;o<s.length;o++){var a=s[o];if(a.text=a.text.replace("__\xa7\xa7\xa7\xa7__","|"),"value"===a.type){var l=a.text.match(/[#0.,]+[ ]?[abesABES%!]?[abesABES\u2030!]?/);if(l)if(null===l||""===l[0])e.template+=a.text;else{var u=l[0].match(/[abesABES%\u2030!]{2}|[abesABES%\u2030]{1}$/);u&&(e.mod=u[0].toLowerCase(),e.modSpacing=!!l[0].match(/[ ]{1}[abesABES%\u2030!]{1}$/));var h=l[0].split(".");if(""===h[0]);else{e.thousands.active=(h[0].match(/0/g)||[]).length,e.thousands.passive=(h[0].match(/\#/g)||[]).length+e.thousands.active;var c=h[0].split(",");1===c.length||(e.thousands.interval=SP(c.pop()).length,0===e.thousands.interval&&(e.thousands.interval=-1))}void 0===h[1]||(e.decimals.active=(h[1].match(/0/g)||[]).length,e.decimals.passive=(h[1].match(/\#/g)||[]).length+e.decimals.active),e.template+=a.text.split(l[0]).join("__\xa7\xa7\xa7__")}}else e.template+=a.text}i.setCache(e.source,e),e.parsed=!0}else r[t]=i.getCache(e.source)})),this.setCache(t,r),r},e.prototype.applyFormat=function(t,e){var i=t<0;t=Math.abs(t);var n="",r="",s=e.mod?e.mod.split(""):[];if(-1!==s.indexOf("b")){var o=this.applyPrefix(t,this.bytePrefixes,-1!==s.indexOf("!"));t=o[0],n=o[1],r=o[2],e.modSpacing&&(r=" "+r)}else if(-1!==s.indexOf("a")){var a=this.applyPrefix(t,t<this.smallNumberThreshold?this.smallNumberPrefixes:this.bigNumberPrefixes,-1!==s.indexOf("!"));t=a[0],n=a[1],r=a[2],e.modSpacing&&(r=" "+r)}else if(-1!==s.indexOf("%")){var l=UP(t.toString().length+2,21);t*=100,t=parseFloat(t.toPrecision(l)),r="%"}else if(-1!==s.indexOf("\u2030")){l=UP(t.toString().length+3,21);t*=1e3,t=parseFloat(t.toPrecision(l)),r="\u2030"}if(-1!==s.indexOf("e")){var u=void 0;u=e.decimals.passive>=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(u[0]),r="e"+u[1],e.modSpacing&&(r=" "+r)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){var h=Math.pow(10,e.decimals.passive);t=Math.round(t*h)/h}var c="",p=function(t){if(yP(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";var e=t<0;t=Math.abs(t);var i,n=SP(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t)),r=n[1],s=n[2]||"";if(null==n[3])i=""===s?r:r+"."+s;else{var o,a=+n[3];if(t<1)i="0."+JC("0",o=a-1)+r+s;else i=0===(o=a-s.length)?r+s:o<0?r+s.slice(0,o)+"."+s.slice(o):r+s+JC("0",o)}return e?"-"+i:i}(t).split("."),d=p[0];if(d.length<e.thousands.active&&(d=Array(e.thousands.active-d.length+1).join("0")+d),e.thousands.interval>0){for(var f=[],g=d.split("").reverse().join(""),m=0,y=d.length;m<=y;m+=e.thousands.interval){var v=g.substr(m,e.thousands.interval).split("").reverse().join("");""!==v&&f.unshift(v)}d=f.join(e.thousands.separator)}c+=d,1===p.length&&p.push("");var b=p[1];return b.length<e.decimals.active&&(b+=Array(e.decimals.active-b.length+1).join("0")),""!==b&&(c+=e.decimals.separator+b),""===c&&(c="0"),0!==t&&i&&-1===s.indexOf("s")&&(c="-"+c),n&&(c=n+c),r&&(c+=r),c},e.prototype.applyPrefix=function(t,e,i){void 0===i&&(i=!1);for(var n=t,r="",s="",o=!1,a=1,l=0,u=e.length;l<u;l++)e[l].number<=t&&(0===e[l].number?n=0:(n=t/e[l].number,a=e[l].number),r=e[l].prefix,s=e[l].suffix,o=!0);return!o&&i&&e.length&&0!=t&&(n=t/e[0].number,r=e[0].prefix,s=e[0].suffix,o=!0),o&&(n=parseFloat(n.toPrecision(UP(a.toString().length+Math.floor(n).toString().replace(/[^0-9]*/g,"").length,21)))),[n,r,s]},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(e.prototype,"numberFormat",{get:function(){return this._numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(t){this._intlLocales=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"negativeBase",{get:function(){return this._negativeBase},set:function(t){this._negativeBase=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bigNumberPrefixes",{get:function(){return CP(this._bigNumberPrefixes)||(this._bigNumberPrefixes=[{number:1e3,suffix:this.language.translate("_big_number_suffix_3")},{number:1e6,suffix:this.language.translate("_big_number_suffix_6")},{number:1e9,suffix:this.language.translate("_big_number_suffix_9")},{number:1e12,suffix:this.language.translate("_big_number_suffix_12")},{number:1e15,suffix:this.language.translate("_big_number_suffix_15")},{number:1e18,suffix:this.language.translate("_big_number_suffix_18")},{number:1e21,suffix:this.language.translate("_big_number_suffix_21")},{number:1e24,suffix:this.language.translate("_big_number_suffix_24")}]),this._bigNumberPrefixes},set:function(t){this._bigNumberPrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"smallNumberPrefixes",{get:function(){return CP(this._smallNumberPrefixes)||(this._smallNumberPrefixes=[{number:1e-24,suffix:this.language.translate("_small_number_suffix_24")},{number:1e-21,suffix:this.language.translate("_small_number_suffix_21")},{number:1e-18,suffix:this.language.translate("_small_number_suffix_18")},{number:1e-15,suffix:this.language.translate("_small_number_suffix_15")},{number:1e-12,suffix:this.language.translate("_small_number_suffix_12")},{number:1e-9,suffix:this.language.translate("_small_number_suffix_9")},{number:1e-6,suffix:this.language.translate("_small_number_suffix_6")},{number:.001,suffix:this.language.translate("_small_number_suffix_3")}]),this._smallNumberPrefixes},set:function(t){this._smallNumberPrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"smallNumberThreshold",{get:function(){return this._smallNumberThreshold},set:function(t){this._smallNumberThreshold=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bytePrefixes",{get:function(){return CP(this._bytePrefixes)||(this._bytePrefixes=[{number:1,suffix:this.language.translate("_byte_suffix_B")},{number:1024,suffix:this.language.translate("_byte_suffix_KB")},{number:1048576,suffix:this.language.translate("_byte_suffix_MB")},{number:1073741824,suffix:this.language.translate("_byte_suffix_GB")},{number:1099511627776,suffix:this.language.translate("_byte_suffix_TB")},{number:0x4000000000000,suffix:this.language.translate("_byte_suffix_PB")}]),this._bytePrefixes},set:function(t){this._bytePrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e.prototype.escape=function(t){return t.replace("||","__\xa7\xa7\xa7\xa7__")},e.prototype.unescape=function(t){return t.replace("__\xa7\xa7\xa7\xa7__","|")},e}(TS);rS.registeredClasses.NumberFormatter=AD;var jD=function(t){function e(){var e=t.call(this)||this;return e._dateFormat="yyyy-MM-dd",e._inputDateFormat="yyyy-MM-dd",e._utc=!1,e._firstDayOfWeek=1,e.months=["January","February","March","April","May","June","July","August","September","October","November","December"],e.monthsShort=["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e.weekdaysShort=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e._outputFormat="svg",e.capitalize=!0,e.className="DateFormatter",e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"language",{get:function(){return this._language},set:function(t){this._language=t,this.dateFormat=this._language.translate("_date")},enumerable:!0,configurable:!0}),e.prototype.format=function(t,e){var i,n;if(this.language||(this.sprite?this.language=this.sprite.language:this.language=new ID),void 0!==e&&""!==e||(e=this._dateFormat),n=EP(t)?this.parse(t):YS(t),e instanceof Object)try{return this.intlLocales?new Intl.DateTimeFormat(this.intlLocales,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(s){return"Invalid"}else{e=GS(e);var r=this.parseFormat(e);if(CP(this.timezoneOffset)&&n.setMinutes(n.getMinutes()+n.getTimezoneOffset()-this.timezoneOffset),!TP(n.getTime()))return this.language.translate("Invalid date");i=this.applyFormat(n,r,this.language),this.capitalize&&(i=i.replace(/^.{1}/,i.substr(0,1).toUpperCase()))}return i},e.prototype.parseFormat=function(t){var e=this.getCache(t);if(CP(e))return e;for(var i={template:"",parts:[]},n=FD().chunk(t,!0),r=0;r<n.length;r++){var s=n[r];if("value"===s.type){s.text.match(/^date$/i)&&EP(this._dateFormat)&&(s.text=this._dateFormat);var o=s.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(o)for(var a=0;a<o.length;a++)i.parts.push(o[a]),s.text=s.text.replace(o[a],"__\xa7\xa7\xa7__")}i.template+=s.text}return this.setCache(t,i),i},e.prototype.applyFormat=function(t,e,i){var n,r,s,o,a,l,u,h,c=e.template,p=t.getTimezoneOffset(),d=t.getTime();this.utc?(n=t.getUTCFullYear(),r=t.getUTCMonth(),s=t.getUTCDay(),o=t.getUTCDate(),a=t.getUTCHours(),l=t.getUTCMinutes(),u=t.getUTCSeconds(),h=t.getUTCMilliseconds()):(n=t.getFullYear(),r=t.getMonth(),s=t.getDay(),o=t.getDate(),a=t.getHours(),l=t.getMinutes(),u=t.getSeconds(),h=t.getMilliseconds());for(var f=0,g=e.parts.length;f<g;f++){var m="";switch(e.parts[f]){case"G":m=i.translate(n<0?"_era_bc":"_era_ad");break;case"yyyy":m=Math.abs(n).toString(),n<0&&(m+=i.translate("_era_bc"));break;case"yyy":case"yy":case"y":m=Math.abs(n).toString().substr(-e.parts[f].length),n<0&&(m+=i.translate("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":var y=n;1==ZS(t)&&s>1&&y--,m="YYYY"==e.parts[f]?Math.abs(y).toString():Math.abs(y).toString().substr(-e.parts[f].length),y<0&&(m+=i.translate("_era_bc"));break;case"u":break;case"MMMMM":m=i.translate(this.months[r]).substr(0,1);break;case"MMMM":m=i.translate(this.months[r]);break;case"MMM":m=i.translate(this.monthsShort[r]);break;case"MM":m=WS(r+1,2,"0");break;case"M":m=(r+1).toString();break;case"ww":m=WS(ZS(t,this.utc),2,"0");break;case"w":m=ZS(t,this.utc).toString();break;case"W":m=QS(t,this.utc).toString();break;case"dd":m=WS(o,2,"0");break;case"d":m=o.toString();break;case"DD":case"DDD":m=WS(XS(t,this.utc).toString(),e.parts[f].length,"0");break;case"D":m=XS(t,this.utc).toString();break;case"F":case"g":break;case"t":m=i.translateFunc("_dateOrd").call(this,o);break;case"E":m=(s||7).toString();break;case"EE":m=WS((s||7).toString(),2,"0");break;case"EEE":case"eee":m=i.translate(this.weekdaysShort[s]);break;case"EEEE":case"eeee":m=i.translate(this.weekdays[s]);break;case"EEEEE":case"eeeee":m=i.translate(this.weekdays[s]).substr(0,1);break;case"e":case"ee":m=(s-this.firstDayOfWeek+1).toString(),"ee"==e.parts[f]&&(m=WS(m,2,"0"));break;case"a":m=a>=12?i.translate("PM"):i.translate("AM");break;case"aa":m=a>=12?i.translate("P.M."):i.translate("A.M.");break;case"aaa":m=a>=12?i.translate("P"):i.translate("A");break;case"h":m=JS(a).toString();break;case"hh":m=WS(JS(a),2,"0");break;case"H":m=a.toString();break;case"HH":m=WS(a,2,"0");break;case"K":m=JS(a,0).toString();break;case"KK":m=WS(JS(a,0),2,"0");break;case"k":m=(a+1).toString();break;case"kk":m=WS(a+1,2,"0");break;case"m":m=l.toString();break;case"mm":m=WS(l,2,"0");break;case"s":m=u.toString();break;case"ss":m=WS(u,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(h/1e3*Math.pow(10,e.parts[f].length)).toString();break;case"x":m=d.toString();break;case"n":case"nn":case"nnn":m=WS(h,e.parts[f].length,"0");break;case"z":m=tO(t,!1,!1,this.utc);break;case"zz":m=tO(t,!0,!1,this.utc);break;case"zzz":m=tO(t,!1,!0,this.utc);break;case"zzzz":m=tO(t,!0,!0,this.utc);break;case"Z":case"ZZ":var v=Math.abs(p)/60,b=Math.floor(v),_=60*v-60*b;this.utc&&(b=0,_=0),"Z"==e.parts[f]?(m="GMT",m+=p>0?"-":"+",m+=WS(b,2)+":"+WS(_,2)):(m=p>0?"-":"+",m+=WS(b,2)+WS(_,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}c=c.replace("__\xa7\xa7\xa7__",m)}return c},e.prototype.parse=function(t,e){if(CP(e)||(e=this.inputDateFormat),t instanceof Date)return t;if("number"==typeof t)return new Date(t);var i;"string"!=typeof t&&(t=t.toString()),this.language||(this.sprite?this.language=this.sprite.language:this.language=new ID);var n="";e=(e=GS(e)).substr(0,t.length);for(var r=this.parseFormat(e),s={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},o={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},a=0,l=0,u=0;u<r.parts.length;u++){switch(l=u+a+1,r.parts[u]){case"yyyy":case"YYYY":n+="([0-9]{4})",s.year=l;break;case"yyy":case"YYY":n+="([0-9]{3})",s.year3=l;break;case"yy":case"YY":n+="([0-9]{2})",s.year2=l;break;case"y":case"Y":n+="([0-9]{1})",s.year1=l;break;case"MMMM":n+="("+this.getStringList(this.months).join("|")+")",s.monthLong=l;break;case"MMM":n+="("+this.getStringList(this.monthsShort).join("|")+")",s.monthShort=l;break;case"MM":case"M":n+="([0-9]{2}|[0-9]{1})",s.month=l;break;case"ww":case"w":n+="([0-9]{2}|[0-9]{1})",s.week=l;break;case"dd":case"d":n+="([0-9]{2}|[0-9]{1})",s.day=l;break;case"DDD":case"DD":case"D":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",s.yearDay=l;break;case"dddd":n+="("+this.getStringList(this.weekdays).join("|")+")",s.weekdayLong=l;break;case"ddd":n+="("+this.getStringList(this.weekdaysShort).join("|")+")",s.weekdayShort=l;break;case"aaa":case"aa":case"a":n+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",s.am=l;break;case"hh":case"h":n+="([0-9]{2}|[0-9]{1})",s.hour12Base1=l;break;case"HH":case"H":n+="([0-9]{2}|[0-9]{1})",s.hourBase0=l;break;case"KK":case"K":n+="([0-9]{2}|[0-9]{1})",s.hour12Base0=l;break;case"kk":case"k":n+="([0-9]{2}|[0-9]{1})",s.hourBase1=l;break;case"mm":case"m":n+="([0-9]{2}|[0-9]{1})",s.minute=l;break;case"ss":case"s":n+="([0-9]{2}|[0-9]{1})",s.second=l;break;case"SSS":case"SS":case"S":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",s.millisecond=l,s.millisecondDigits=r.parts[u].length;break;case"nnn":case"nn":case"n":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",s.millisecond=l;break;case"x":n+="([0-9]{1,})",s.timestamp=l;break;case"Z":n+="GMT([-+]+[0-9]{2}:[0-9]{2})",s.zone=l;break;case"ZZ":n+="([\\-+]+[0-9]{2}[0-9]{2})",s.zone=l;break;case"i":n+="([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{3})[0-9]*([Zz]?)",s.iso=l,a+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz":case"zzz":case"zz":case"z":case"t":a--}n+="[^0-9]*"}var h=new RegExp(n),c=t.match(h);if(c){if(s.year>-1&&(o.year=parseInt(c[s.year])),s.year3>-1){var p=parseInt(c[s.year3]);p+=1e3,o.year=p}if(s.year2>-1){p=parseInt(c[s.year2]);p+=p>50?1e3:2e3,o.year=p}if(s.year1>-1){p=parseInt(c[s.year1]);p=10*Math.floor((new Date).getFullYear()/10)+p,o.year=p}if(s.monthLong>-1&&(o.month=this.resolveMonth(c[s.monthLong])),s.monthShort>-1&&(o.month=this.resolveShortMonth(c[s.monthShort])),s.month>-1&&(o.month=parseInt(c[s.month])-1),s.week>-1&&-1===s.day&&(o.month=0,o.day=function(t,e,i,n){void 0===i&&(i=1),void 0===n&&(n=!1);var r=new Date(e,0,4,0,0,0,0);return n&&r.setUTCFullYear(e),7*t+i-((r.getDay()||7)+3)}(parseInt(c[s.week]),o.year,1,this.utc)),s.day>-1&&(o.day=parseInt(c[s.day])),s.yearDay>-1&&(o.month=0,o.day=parseInt(c[s.yearDay])),s.hourBase0>-1&&(o.hour=parseInt(c[s.hourBase0])),s.hourBase1>-1&&(o.hour=parseInt(c[s.hourBase1])-1),s.hour12Base0>-1)11==(p=parseInt(c[s.hour12Base0]))&&(p=0),s.am>-1&&!this.isAm(c[s.am])&&(p+=12),o.hour=p;if(s.hour12Base1>-1)12==(p=parseInt(c[s.hour12Base1]))&&(p=0),s.am>-1&&!this.isAm(c[s.am])&&(p+=12),o.hour=p;if(s.minute>-1&&(o.minute=parseInt(c[s.minute])),s.second>-1&&(o.second=parseInt(c[s.second])),s.millisecond>-1){p=parseInt(c[s.millisecond]);2==s.millisecondDigits?p*=10:1==s.millisecondDigits&&(p*=100),o.millisecond=p}if(s.timestamp>-1&&(o.timestamp=parseInt(c[s.timestamp])),s.zone>-1){var d=SP(c[s.zone].replace(/:/,"").match(/([+\-]?)([0-9]{2})([0-9]{2})/)),f=d[1],g=d[2],m=d[3],y=60*parseInt(g)+parseInt(m);"+"==f&&(y*=-1);var v=y-(new Date).getTimezoneOffset();o.offset=v}s.iso>-1&&("Z"!=c[s.iso+7]&&"z"!=c[s.iso+7]||(o.utc=!0),o.year=xP(c[s.iso+0]),o.month=xP(c[s.iso+1])-1,o.day=xP(c[s.iso+2]),o.hour=xP(c[s.iso+3]),o.minute=xP(c[s.iso+4]),o.second=xP(c[s.iso+5]),o.millisecond=xP(c[s.iso+6])),i=o.utc?new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond)):new Date(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond)}else i=new Date(t);return i},e.prototype.resolveMonth=function(t){var e=this.months.indexOf(t);return e>-1||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this.months).indexOf(t))>-1?e:0},e.prototype.resolveShortMonth=function(t){var e=this.monthsShort.indexOf(t);return e>-1||(e=this.months.indexOf(t))>-1||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this.monthsShort).indexOf(t))>-1?e:0},e.prototype.isAm=function(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},e.prototype.getStringList=function(t){for(var e=[],i=0;i<t.length;i++)this.language?e.push(RS(this.language.translate(t[i]))):e.push(RS(t[i]));return e},Object.defineProperty(e.prototype,"dateFormat",{get:function(){return this._dateFormat},set:function(t){this._dateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputDateFormat",{get:function(){return this._inputDateFormat},set:function(t){this._inputDateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(t){this._intlLocales=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"utc",{get:function(){return this._utc},set:function(t){this._utc=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezoneOffset",{get:function(){return this._timezoneOffset},set:function(t){this._timezoneOffset!=t&&(this._timezoneOffset=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(t){this._firstDayOfWeek=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e}(TS);rS.registeredClasses.DateFormatter=jD;var LD=function(t){function e(){var e=t.call(this)||this;return e._negativeBase=0,e._baseUnit="second",e._outputFormat="svg",e._unitValues={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},e._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"},e.className="DurationFormatter",e.applyTheme(),e}return uP(e,t),e.prototype.format=function(t,e,i){this.language||(this.sprite?this.language=this.sprite.language:this.language=new ID);var n=i||this._baseUnit;void 0!==e&&""!==e||(e=CP(this.durationFormat)?this.durationFormat:this.getFormat(xP(t),null,n)),e=GS(e);var r,s=this.parseFormat(e,n),o=Number(t);r=o>this._negativeBase?s.positive:o<this._negativeBase?s.negative:s.zero;var a=this.applyFormat(o,r);return""!==r.color&&("svg"===this._outputFormat?a="<tspan fill='"+r.color+"'>"+a+"</tspan>":"html"===this._outputFormat&&(a="<span style='color: "+r.color+";'>"+a+"</span>")),a},e.prototype.parseFormat=function(t,e){var i=this,n=this.getCache(t);if(CP(n))return n;var r=e||this._baseUnit,s={positive:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1}},o=(t=t.replace("||","__\xa7\xa7\xa7\xa7__")).split("|");return s.positive.source=o[0],void 0===o[2]?s.zero=s.positive:s.zero.source=o[2],void 0===o[1]?s.negative=s.positive:s.negative.source=o[1],NC(s,(function(t,e){if(!e.parsed)if(void 0===i.getCache(e.source)){var n,r=e.source;(n=e.source.match(/^\[([^\]]*)\]/))&&n.length&&""!==n[0]&&(r=e.source.substr(n[0].length),e.color=n[1]);for(var o=FD().chunk(r,!0),a=0;a<o.length;a++){var l=o[a];if(l.text=l.text.replace("__\xa7\xa7\xa7\xa7__","|"),"value"===l.type){l.text.match(/[yYMdDwhHKkmsSn]+a/)&&(e.absolute=!0,l.text=l.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));var u=l.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(u)for(var h=0;h<u.length;h++)CP(u[h])||(u[h]=i._unitAliases[u[h]]),e.parts.push(u[h]),l.text=l.text.replace(u[h],"__\xa7\xa7\xa7__")}e.template+=l.text}i.setCache(e.source,e),e.parsed=!0}else s[t]=i.getCache(e.source)})),this.setCache(t,s),s},e.prototype.applyFormat=function(t,e){var i=!e.absolute&&t<this._negativeBase;t=Math.abs(t);for(var n=this.toTimeStamp(t,e.baseUnit),r=e.template,s=0,o=e.parts.length;s<o;s++){var a=e.parts[s],l=this.toTimeUnit(a.substr(0,1)),u=a.length,h=Math.floor(n/this._unitValues[l]);r=r.replace("__\xa7\xa7\xa7__",WS(h,u,"0")),n-=h*this._unitValues[l]}return i&&(r="-"+r),r},e.prototype.toTimeStamp=function(t,e){return t*this._unitValues[e]},e.prototype.toTimeUnit=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(e.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),e.prototype.getFormat=function(t,e,i){if(CP(this.durationFormat))return this.durationFormat;if(i||(i=this.baseUnit),CP(e)&&t!=e){t=Math.abs(t),e=Math.abs(e);var n=this.getValueUnit(zP(t,e),i);return this.durationFormats[i][n]}var r=this.getValueUnit(t,i);return this.durationFormats[i][r]},e.prototype.getValueUnit=function(t,e){var i;e||(e=this.baseUnit);var n=this.getMilliseconds(t,e);return RC(this._unitValues,(function(t,r){if(t==e||i){if(n/r<=1)return i||(i=t),!1;i=t}return!0})),i},e.prototype.getMilliseconds=function(t,e){return e||(e=this.baseUnit),t*this._unitValues[e]},Object.defineProperty(e.prototype,"durationFormat",{get:function(){return this._durationFormat},set:function(t){this._durationFormat!=t&&(this._durationFormat=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormats",{get:function(){return this._durationFormats||(this._durationFormats={millisecond:{millisecond:this.language.translate("_duration_millisecond"),second:this.language.translate("_duration_millisecond_second"),minute:this.language.translate("_duration_millisecond_minute"),hour:this.language.translate("_duration_millisecond_hour"),day:this.language.translate("_duration_millisecond_day"),week:this.language.translate("_duration_millisecond_week"),month:this.language.translate("_duration_millisecond_month"),year:this.language.translate("_duration_millisecond_year")},second:{second:this.language.translate("_duration_second"),minute:this.language.translate("_duration_second_minute"),hour:this.language.translate("_duration_second_hour"),day:this.language.translate("_duration_second_day"),week:this.language.translate("_duration_second_week"),month:this.language.translate("_duration_second_month"),year:this.language.translate("_duration_second_year")},minute:{minute:this.language.translate("_duration_minute"),hour:this.language.translate("_duration_minute_hour"),day:this.language.translate("_duration_minute_day"),week:this.language.translate("_duration_minute_week"),month:this.language.translate("_duration_minute_month"),year:this.language.translate("_duration_minute_year")},hour:{hour:this.language.translate("_duration_hour"),day:this.language.translate("_duration_hour_day"),week:this.language.translate("_duration_hour_week"),month:this.language.translate("_duration_hour_month"),year:this.language.translate("_duration_hour_year")},day:{day:this.language.translate("_duration_day"),week:this.language.translate("_duration_day_week"),month:this.language.translate("_duration_day_month"),year:this.language.translate("_duration_day_year")},week:{week:this.language.translate("_duration_week"),month:this.language.translate("_duration_week_month"),year:this.language.translate("_duration_week_year")},month:{month:this.language.translate("_duration_month"),year:this.language.translate("_duration_month_year")},year:{year:this.language.translate("_duration_year")}}),this._durationFormats},set:function(t){this._durationFormats=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),e}(TS);rS.registeredClasses.DurationFormatter=LD;var VD,RD=new eS,ND=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._validateDisposer=null,e}return uP(e,t),e.prototype.invalidate=function(){null===this._validateDisposer&&(this._validateDisposer=rS.events.on("exitframe",this.validate,this))},e.prototype.validate=function(){null!==this._validateDisposer&&(this._validateDisposer.dispose(),this._validateDisposer=null)},e.prototype.dispose=function(){null!==this._validateDisposer&&(this._validateDisposer.dispose(),this._validateDisposer=null),t.prototype.dispose.call(this)},e}(kS),BD=function(t){function e(){var e=t.call(this)||this;return e.adapter=new vS(e),e.closeDelay=1e3,e.closeOnClick=!0,e._language=new PC,e._menuTag="ul",e._itemTag="li",e._labelTag="a",e._iconTag="img",e._classPrefix="amexport",e._defaultStyles=!0,e._align="right",e._verticalAlign="top",e._tabindex=0,e._ignoreNextClose=!1,e._items=[{label:"...",menu:[{label:"Image",menu:[{type:"png",label:"PNG"},{type:"jpg",label:"JPG"},{type:"svg",label:"SVG"},{type:"pdf",label:"PDF"}]},{label:"Data",menu:[{type:"json",label:"JSON"},{type:"csv",label:"CSV"},{type:"xlsx",label:"XLSX"},{type:"html",label:"HTML"},{type:"pdfdata",label:"PDF"}]},{label:"Print",type:"print"}]}],e.className="ExportMenu",e._disposers.push(e._language),e.invalidate(),e.applyTheme(),e}return uP(e,t),e.prototype.validate=function(){this.draw(),t.prototype.validate.call(this)},e.prototype.draw=function(){var t=this;this._element?(this._element.innerHTML="",this._element.className=this.getMenuItemClass(0)):this._element=this.createMenuElement(0),this.defaultStyles&&(this._element.style.display="none"),SP(this._container).appendChild(this._element);for(var e=this.adapter.apply("items",{items:this._items}).items,i=e.length,n=0;n<i;n++)this.drawBranch(this._element,e[n],0);this._element=this.adapter.apply("menuElement",{menuElement:this._element}).menuElement,this._disposers.push(dD().body.events.on("down",(function(e){e.pointer.touch||(t._ignoreNextClose=!1),t.close()}))),this._disposers.push(dD().body.events.on("keyup",(function(e){var i=uD.getEventKey(e.event);switch(i){case"esc":t.close();break;case"up":case"down":case"left":case"right":t.moveSelection(i)}}))),this.defaultStyles&&this.loadDefaultCSS()},e.prototype.drawBranch=function(t,e,i){var n=this;if(!0!==(e=this.adapter.apply("branch",{branch:e,level:i}).branch).unsupported){e.ascendants||(e.ascendants=new uS);var r,s=e.type,o=this.createItemElement(i,s);e.icon?((r=this.createIconElement(i,s)).src=e.icon,e.label&&(r.title=e.label)):e.svg?(r=this.createSvgElement(i,s,e.svg),e.label&&(r.title=e.label)):(r=this.createLabelElement(i,s)).innerHTML=e.label?this.language.translate(e.label):"";var a=this.getReaderLabel(e,r.innerHTML);r.setAttribute("aria-label",a),o.appendChild(r),e.interactions=dD().getInteraction(r),e.element=o,this.typeClickable(s)&&(e.interactions.events.on("hit",(function(t){if(n.events.isEnabled("hit")){var i={type:"hit",event:t.event,target:n,branch:e};n.events.dispatchImmediately("hit",i)}})),e.interactions.events.on("keyup",(function(t){if(uD.isKey(t.event,"enter")&&n.events.isEnabled("enter")){var i={type:"enter",event:t.event,target:n,branch:e};n.events.dispatchImmediately("enter",i)}})));var l=this.getSubMenu(e);null!=l&&(e.interactions.events.on("keyup",(function(t){uD.isKey(t.event,"enter")&&(n.selectBranch(l[0]),n.setFocus(l[0]))})),e.interactions.events.on("hit",(function(t){n.selectBranch(e)}))),e.interactions.events.on("over",(function(t){if(t.pointer.touch&&(n._ignoreNextClose=!0),n.selectBranch(e),n.events.isEnabled("over")){var i={type:"over",event:t.event,target:n,branch:e};n.events.dispatchImmediately("over",i)}})),e.interactions.events.on("out",(function(t){if(t.pointer.touch||n.delayUnselectBranch(e),n.events.isEnabled("out")){var i={type:"out",event:t.event,target:n,branch:e};n.events.dispatchImmediately("out",i)}})),e.interactions.events.on("focus",(function(t){n.selectBranch(e)})),e.interactions.events.on("blur",(function(t){n.delayUnselectBranch(e)}));var u=i+1;if(e.menu){for(var h=this.createMenuElement(u),c=e.menu.length,p=0;p<c;p++){var d=new uS;e.menu[p].ascendants=d,e.ascendants.length&&d.copyFrom(e.ascendants),d.push(e),this.drawBranch(h,e.menu[p],u)}if(""==h.innerHTML)return;o.appendChild(h)}e.hidden&&this.hideBranch(e),e.id&&o.setAttribute("id",e.id),e.color&&(o.style.backgroundColor=e.color.hex),t.appendChild(o)}},e.prototype.createMenuElement=function(t){var e=document.createElement(this.menuTag);return e.className=this.getMenuItemClass(t),0===t&&e.setAttribute("role","menu"),e},e.prototype.getMenuItemClass=function(t){var e=this.classPrefix+"-menu "+this.classPrefix+"-menu-level-"+t;return 0===t&&(e+=" "+this.classPrefix+"-menu-root "+this.classPrefix+"-"+this.align+" "+this.classPrefix+"-"+this.verticalAlign),this.adapter.apply("menuClass",{className:e,level:t}).className},e.prototype.createItemElement=function(t,e){var i=document.createElement(this.itemTag),n=this.classPrefix+"-item "+this.classPrefix+"-item-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return i.className=this.adapter.apply("itemClass",{className:n,level:t,type:e}).className,i.setAttribute("role","menuitem"),i},e.prototype.createLabelElement=function(t,e){var i=document.createElement(this.labelTag),n=this.classPrefix+"-label "+this.classPrefix+"-label-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(n+=" "+this.classPrefix+"-clickable"),i.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,i.setAttribute("tabindex",this.tabindex.toString()),i.setAttribute("role","menuitem"),i},e.prototype.createIconElement=function(t,e){var i=document.createElement(this.iconTag),n=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(n+=" "+this.classPrefix+"-clickable"),i.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,i.setAttribute("tabindex",this.tabindex.toString()),i.setAttribute("role","menuitem"),i},e.prototype.createSvgElement=function(t,e,i){var n=(new DOMParser).parseFromString(i,"image/svg+xml").documentElement,r=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(r+=" "+this.classPrefix+"-clickable"),n.setAttribute("class",this.adapter.apply("labelClass",{className:r,level:t,type:e}).className),n.setAttribute("tabindex",this.tabindex.toString()),n.setAttribute("role","menuitem"),n},e.prototype.dispose=function(){this._disposed||(t.prototype.dispose.call(this),this._element&&this._element.parentNode&&this._element.parentNode.removeChild(this._element))},e.prototype.typeClickable=function(t){return CP(t)},e.prototype.hasSubMenu=function(t){return!(!t.menu||!t.menu.length)},e.prototype.getSubMenu=function(t){if(t.menu&&t.menu.length)return t.menu},e.prototype.getReaderLabel=function(t,e){return e=$S(e),this.hasSubMenu(t)?e+=" ["+this.language.translate("Click, tap or press ENTER to open")+"]":"print"==t.type?e=this.language.translate("Click, tap or press ENTER to print."):this.typeClickable(t.type)&&(e=this.language.translate("Click, tap or press ENTER to export as %1.",void 0,e)),this.adapter.apply("rederLabel",{label:e,branch:t}).label},Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tag",{set:function(t){this._menuTag=t,this._itemTag="ul"==t?"li":"div",this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menuTag",{get:function(){return this.adapter.apply("menuTag",{tag:this._menuTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemTag",{get:function(){return this.adapter.apply("itemTag",{tag:this._itemTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelTag",{get:function(){return this.adapter.apply("labelTag",{tag:this._labelTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconTag",{get:function(){return this.adapter.apply("iconTag",{tag:this._iconTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.adapter.apply("align",{align:this._align}).align},set:function(t){this._align=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",{verticalAlign:this._verticalAlign}).verticalAlign},set:function(t){this._verticalAlign=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",{classPrefix:this._classPrefix}).classPrefix},set:function(t){this._classPrefix=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",{defaultStyles:this._defaultStyles}).defaultStyles},set:function(t){this._defaultStyles!=t&&(this._defaultStyles=t,t&&this.loadDefaultCSS()),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.loadDefaultCSS=function(){var t,e,i,n;this._disposers.push((t=KO(this.container),e=this.classPrefix,i=e||"amexport",n=new nD,RD.insertKeyIfEmpty(i,(function(){var e=new wC([new XO(t,"."+i+"-menu *",{"box-sizing":"border-box"}),new XO(t,"."+i+"-menu-level-0",{position:"absolute",top:"5px",right:"5px"}),new XO(t,"."+i+"-menu-level-0."+i+"-left",{right:"auto",left:"5px"}),new XO(t,"."+i+"-menu-level-0."+i+"-right",{right:"5px",left:"auto"}),new XO(t,"."+i+"-menu-level-0."+i+"-top",{top:"5px",bottom:"auto"}),new XO(t,"."+i+"-menu-level-0."+i+"-bottom",{top:"auto",bottom:"5px"}),new XO(t,"."+i+"-item."+i+"-item-level-0",{opacity:"0.3",width:"30px","min-height":"30px",transition:"all 100ms ease-in-out"}),new XO(t,"div:hover ."+i+"-item."+i+"-item-level-0, ."+i+"-item."+i+"-item-level-0.active",{opacity:"0.9"}),new XO(t,"."+i+"-item."+i+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new XO(t,"."+i+"-item."+i+"-item-level-0:before",{display:"block"}),new XO(t,"."+i+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":n.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:n.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new XO(t,"."+i+"-left ."+i+"-item",{margin:"1px 0 0 1px"}),new XO(t,"."+i+"-item:hover, ."+i+"-item.active",{background:n.getFor("secondaryButtonHover").hex,color:n.getFor("secondaryButtonText").hex}),new XO(t,"."+i+"-item > ."+i+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new XO(t,"."+i+"-left ."+i+"-item > ."+i+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new XO(t,"."+i+"-right ."+i+"-item > ."+i+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new XO(t,"."+i+"-top ."+i+"-item > ."+i+"-menu",{top:"-1px",bottom:"auto"}),new XO(t,"."+i+"-bottom ."+i+"-item > ."+i+"-menu",{top:"auto",bottom:"0"}),new XO(t,"."+i+"-item > ."+i+"-menu",{display:"none"}),new XO(t,"."+i+"-item:hover > ."+i+"-menu, ."+i+"-item.active > ."+i+"-menu",{display:"block"}),new XO(t,"."+i+"-item:hover > ."+i+"-menu > ."+i+"-item, ."+i+"-item.active > ."+i+"-menu > ."+i+"-item",{opacity:"1"}),new XO(t,"."+i+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new XO(t,"."+i+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new XO(t,"."+i+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"32px","min-height":"32px",margin:"auto auto","border-radius":"3px"}),new XO(t,"."+i+"-item-level-0 > ."+i+"-icon",{padding:"0.1em 0.2em"}),new XO(t,"."+i+"-clickable",{cursor:"pointer"})]);return new CC((function(){RD.removeKey(i),e.dispose()}))})).increment())),this._element&&(this._element.style.display="")},Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.adapter.apply("tabindex",{tabindex:this._tabindex}).tabindex},set:function(t){this._tabindex=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var t=this,e=this._language.get();return null==e&&(e=new ID,this._language.set(e,e.events.on("localechanged",(function(e){t.invalidate()})))),e},set:function(t){var e=this;this._language.set(t,t.events.on("localechanged",(function(t){e.invalidate()}))),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.close=function(){var t=this;if(this._ignoreNextClose)this._ignoreNextClose=!1;else{if(this.closeOnClick&&(this._element.style.pointerEvents="none",setTimeout((function(){t._element.style.pointerEvents="auto"}),100)),this._currentSelection&&(this.setBlur(this._currentSelection),this._currentSelection=void 0),this._element)for(var e=this._element.getElementsByClassName("active"),i=e.length-1;i>=0;i--)e[i]&&zO(e[i],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},e.prototype.selectBranch=function(t){var e=this;if(t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),HO(t.interactions.element.parentElement,"active"),this._currentSelection&&this._currentSelection!==t&&this._currentSelection.ascendants&&KC(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var i=!0,n=function(t){return i=e(t)},r=t.length,s=0;s<r&&(t[s](n),i);++s);}}(WC([this._currentSelection]),this._currentSelection.ascendants.iterator()),(function(i){t.ascendants.contains(i)||t===i||e.unselectBranch(i,!0)})),KC(t.ascendants.iterator(),(function(t){t.closeTimeout&&(e.removeDispose(t.closeTimeout),t.closeTimeout=void 0),HO(t.interactions.element.parentElement,"active")})),this._currentSelection=t,this.events.isEnabled("branchselected")){var i={type:"branchselected",target:this,branch:t};this.events.dispatchImmediately("branchselected",i)}},e.prototype.unselectBranch=function(t,e){if(zO(t.interactions.element.parentElement,"active"),this._currentSelection==t&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected")){var i={type:"branchunselected",target:this,branch:t};this.events.dispatchImmediately("branchunselected",i)}},e.prototype.delayUnselectBranch=function(t,e){var i=this;t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),t.closeTimeout=this.setTimeout((function(){i.unselectBranch(t,e)}),this.closeDelay),!0!==e&&t.ascendants&&KC(t.ascendants.iterator(),(function(t){i.delayUnselectBranch(t,!0)}))},e.prototype.moveSelection=function(t){if(this._currentSelection){var e;if("up"==t)e=this.getPrevSibling(this._currentSelection);else if("down"==t)e=this.getNextSibling(this._currentSelection);else if("left"==t&&"right"==this.align||"right"==t&&"left"==this.align){var i=this.getSubMenu(this._currentSelection);null!=i&&(e=i[0])}else("right"==t&&"right"==this.align||"left"==t&&"left"==this.align)&&(e=this.getParentItem(this._currentSelection));e&&e!==this._currentSelection&&(this.selectBranch(e),this.setFocus(e),this._currentSelection=e)}},e.prototype.getSiblings=function(t){var e=this.getParentItem(t);return e&&e.menu?e.menu:[]},e.prototype.getParentItem=function(t){return t.ascendants&&t.ascendants.length?t.ascendants.getIndex(t.ascendants.length-1):void 0},e.prototype.getNextSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)+1;return e[i=e.length==i?0:i].unsupported?this.getNextSibling(e[i]):e[i]}return t},e.prototype.getPrevSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)-1;return e[i=-1==i?e.length-1:i].unsupported?this.getPrevSibling(e[i]):e[i]}return t},e.prototype.setFocus=function(t){if(t.interactions)try{t.interactions.element.focus()}catch(e){}},e.prototype.setBlur=function(t){if(t.interactions)try{t.interactions.element.blur()}catch(e){}},e.prototype.hideBranch=function(t){t.element.style.display="none"},e.prototype.showBranch=function(t){t.element.style.display=""},e}(ND);function HD(t,e,i){return new Promise((function(n,r){var s=CP(i)&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=function(){if(200===o.status){var t,i=void 0;if(s)return t=o.response,void(l=t,new Promise((function(t,e){var i=new FileReader;i.onload=function(e){t(i.result)},i.onerror=function(t){e(t)},i.readAsText(l)}))).then((function(i){var r={xhr:o,error:!1,response:i,blob:t,type:o.getResponseHeader("Content-Type"),target:e};n(r)}));i=o.responseText||o.response;var a={xhr:o,error:!1,response:i,blob:t,type:o.getResponseHeader("Content-Type"),target:e};n(a)}else r({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e});var l},o.onerror=function(){r({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),CP(i)){if(CP(i.requestHeaders))for(var a=0;a<i.requestHeaders.length;a++){var l=i.requestHeaders[a];o.setRequestHeader(l.key,l.value)}CP(i.responseType)&&(o.responseType=i.responseType)}o.send()}))}var zD=/src: ([^;]+);/;function UD(t){return hP(this,void 0,void 0,(function(){var e;return cP(this,(function(i){switch(i.label){case 0:e=t.sheet,i.label=1;case 1:return i.trys.push([1,2,,4]),[2,e.cssRules];case 2:return i.sent(),[4,new Promise((function(i,n){t.addEventListener("load",(function(){i(e.cssRules)}),!0),t.addEventListener("error",(function(t){n(t)}),!0),setTimeout((function(){n(new Error("Timeout while waiting for <style> to load"))}),1e4)}))];case 3:return[2,i.sent()];case 4:return[2]}}))}))}function WD(t,e,i){return hP(this,void 0,void 0,(function(){var n,r,s,o;return cP(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,HD(e)];case 1:return n=a.sent(),[3,3];case 2:return r=a.sent(),console.error("Failed to load stylesheet",e,r),[2];case 3:(s=t.createElement("style")).textContent=n.response,t.head.appendChild(s),a.label=4;case 4:return a.trys.push([4,,7,8]),[4,UD(s)];case 5:return o=a.sent(),[4,GD(t,e,o,i)];case 6:return a.sent(),[3,8];case 7:return t.head.removeChild(s),[7];case 8:return[2]}}))}))}function GD(t,e,i,n){return hP(this,void 0,void 0,(function(){var r,s,o,a,l;return cP(this,(function(u){switch(u.label){case 0:for(r=[],s=i.length,o=0;o<s;o++)(a=i[o]).type===CSSRule.IMPORT_RULE?(l=a.href)&&(l=fO(e,l),r.push(WD(t,l,n))):n(e,a);return r.length?[4,Promise.all(r)]:[3,2];case 1:u.sent(),u.label=2;case 2:return[2]}}))}))}function $D(t){return hP(this,void 0,void 0,(function(){var e,i;return cP(this,(function(n){switch(n.label){case 0:(e=document.createElement("iframe")).src="about:blank",e.setAttribute("title",""),document.head.appendChild(e),n.label=1;case 1:return n.trys.push([1,,3,4]),i=e.contentDocument,[4,Promise.all(aC(document.styleSheets,(function(e){var n=e.href;return null==n?GD(i,location.href,e.cssRules,t):(n=fO(location.href,n),WD(i,n,t))})))];case 2:return n.sent(),[3,4];case 3:return document.head.removeChild(e),[7];case 4:return[2]}}))}))}var KD=function(t){function e(e){var i=t.call(this)||this;return i.adapter=new vS(i),i._formatOptions=new eS,i._extraSprites=[],i._validateSprites=[],i.dataFieldsOrder=[],i._dynamicDataFields=!0,i._removedObjects=new uS,i._hiddenObjects=[],i._objectsAlreadyHidden=!1,i._filePrefix="amCharts",i.useWebFonts=!0,i.useRetina=!0,i.useSimplifiedExport=!0,i.timeoutDelay=2e3,i._exportRunning=!1,i._container=e,i.className="Export",i._formatOptions.setKey("png",{}),i._formatOptions.setKey("jpg",{quality:.8}),i._formatOptions.setKey("gif",{}),i._formatOptions.setKey("svg",{}),i._formatOptions.setKey("pdf",{fontSize:14,imageFormat:"png",align:"left",addURL:!0,addColumnNames:!0}),i._formatOptions.setKey("json",{indent:2,useLocale:!0}),i._formatOptions.setKey("csv",{addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("xlsx",{addColumnNames:!0,useLocale:!0,emptyAs:""}),i._formatOptions.setKey("html",{addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("pdfdata",{fontSize:14,imageFormat:"png",addURL:!0,addColumnNames:!0,emptyAs:""}),i._formatOptions.setKey("print",{delay:500,printMethod:"iframe"}),i.adapter.add("options",(function(t){var e=i._formatOptions.getKey(t.type);return t.options?t.options=HC(e,t.options):t.options=e,t})),i.applyTheme(),i.dispatchImmediately("inited"),i}return uP(e,t),Object.defineProperty(e.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;this._menu&&this.removeDispose(this._menu),this._menu=t,this._menu.container=this.container,this._menu.language=this._language,this._menu.adapter.add("branch",(function(t){return t.branch.unsupported=!e.typeSupported(t.branch.type),t})),this._menu.events.on("hit",(function(t){e.export(t.branch.type,t.branch.options),e.menu.close()})),this._menu.events.on("enter",(function(t){e.export(t.branch.type,t.branch.options),e.menu.close()})),this._menu.events.on("over",(function(t){e._disablePointers()})),this._menu.events.on("out",(function(t){setTimeout((function(){e._releasePointers()}),10)})),this.dispatchImmediately("menucreated"),this._menu.adapter.add("classPrefix",(function(t){return t.classPrefix=TO.classNamePrefix+t.classPrefix,t})),this._disposers.push(this._menu)},enumerable:!0,configurable:!0}),e.prototype.typeSupported=function(t){var e=!0,i=this.getFormatOptions(t);return CP(i)&&i.disabled?e=!1:"pdf"===t||("xlsx"===t?e=!!this._hasData():("print"!=t||window.print)&&(-1===["json","csv","html","pdfdata"].indexOf(t)||this._hasData())||(e=!1)),this.adapter.apply("supported",{supported:e,type:t}).supported},e.prototype._hasData=function(){return this.data&&this.data.length},e.prototype._getFunction=function(t){switch(t){case"png":case"gif":case"jpg":return this.getImage;case"svg":return this.getSVG;case"pdf":case"pdfdata":return this.getPDF;case"xlsx":return this.getExcel;case"csv":return this.getCSV;case"json":return this.getJSON;case"html":return this.getHTML;case"print":return this.getPrint;default:return this.unsupported}},e.prototype.export=function(t,e){return hP(this,void 0,void 0,(function(){var i,n,r,s,o,a=this;return cP(this,(function(l){switch(l.label){case 0:return"custom"==t?(this.handleCustom(e),[2,!0]):(this._exportRunning=!0,this.events.isEnabled("exportstarted")&&(i={type:"exportstarted",target:this,format:t,options:e},this.events.dispatchImmediately("exportstarted",i)),this.showPreloader(),this.timeoutDelay&&(this.hideTimeout(),this._timeoutTimeout=this.setTimeout((function(){if(a.events.isEnabled("exporttimedout")){var i={type:"exporttimedout",target:a,format:t,options:e};a.events.dispatchImmediately("exporttimedout",i)}a.showTimeout()}),this.timeoutDelay)),this.hideNonExportableSprites(),n=this._getFunction(t),e=this.adapter.apply("options",{options:e,type:t}).options,[4,(n=this.adapter.apply("exportFunction",{func:n,type:t,options:e}).func).call(this,t,e)]);case 1:return r=l.sent(),this._exportRunning=!1,this._releasePointers(),this.restoreNonExportableSprites(),r?(this.events.isEnabled("exportfinished")&&(s={type:"exportfinished",target:this,format:t,options:e},this.events.dispatchImmediately("exportfinished",s)),this.hidePreloader(),this.hideTimeout(),this.menu&&this.menu.close(),"print"===t?[2,this.print(r,e,this.adapter.apply("title",{title:this.title,options:e}).title)]:"pdfdata"==t?[2,this.download(r,this.filePrefix+".pdf")]:[2,this.download(r,this.filePrefix+"."+t)]):(this.events.isEnabled("error")&&(o={type:"error",target:this,format:t,options:e},this.events.dispatchImmediately("error",o)),[2,!1])}}))}))},e.prototype.unsupported=function(t,e){return hP(this,void 0,void 0,(function(){return cP(this,(function(t){return[2,""]}))}))},e.prototype.handleCustom=function(t){CP(t)&&CP(t.callback)&&t.callback.call(t.callbackTarget||this,t)},e.prototype.getPrint=function(t,e){return hP(this,void 0,void 0,(function(){return cP(this,(function(t){return[2,this.getImage("png",e)]}))}))},e.prototype.getFontFamilies=function(){return hP(this,void 0,void 0,(function(){var t,e,i,n,r=this;return cP(this,(function(s){switch(s.label){case 0:return t=this.getDOMURL(),e=[],i=[],[4,$D((function(n,s){if(s.type===CSSRule.FONT_FACE_RULE){var o=s.cssText,a=zD.exec(o);if(null!==a){var l=a[1].split(/ *, */).map((function(i){return hP(r,void 0,void 0,(function(){var r,s,o,a,l,u;return cP(this,(function(h){switch(h.label){case 0:return null!==(r=/^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(i))?[3,1]:[2,i];case 1:s=r[2],o=fO(n,r[1]),h.label=2;case 2:return h.trys.push([2,7,,8]),[4,HD(o,void 0,{responseType:"blob"})];case 3:return a=h.sent(),null==window.navigator.msSaveOrOpenBlob?[3,4]:(l=t.createObjectURL(a.blob),e.push(l),[3,6]);case 4:return[4,(c=a.blob,new Promise((function(t,e){var i=new FileReader;i.onload=function(e){t(i.result)},i.onerror=function(t){e(t)},i.readAsDataURL(c)})))];case 5:l=h.sent(),h.label=6;case 6:return[2,'url("'+l+'")'+s];case 7:return u=h.sent(),console.error("Failed to load font",o,u),[2,null];case 8:return[2]}var c}))}))}));i.push(Promise.all(l).then((function(t){return 0===(t=t.filter((function(t){return null!=t}))).length?"":o.replace(zD,"src: "+t.join(", ")+";")})))}}}))];case 1:return s.sent(),[4,Promise.all(i)];case 2:return n=s.sent(),[2,{blobs:e,cssText:n.filter((function(t){return!!t})).join("\n")}]}}))}))},e.prototype.getImage=function(t,e,i){return hP(this,void 0,void 0,(function(){var n,r,s,o,a;return cP(this,(function(l){switch(l.label){case 0:return(n=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),CP(e)||(e=this.getFormatOptions(t)),[4,this.awaitValidSprites()];case 1:return l.sent(),[4,this.simplifiedImageExport()];case 2:if(!l.sent())return[3,10];l.label=3;case 3:return l.trys.push([3,7,,9]),[4,this.getCanvas(e)];case 4:return r=l.sent(),!1===i?[3,6]:[4,this.addExtras(r,e)];case 5:r=l.sent(),l.label=6;case 6:return s=r.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(r),n||this.restoreNonExportableSprites(),[2,s];case 7:return o=l.sent(),console.error(o.message+"\n"+o.stack),console.warn("Simple export failed, falling back to advanced export"),[4,this.getImageAdvanced(t,e,i)];case 8:return a=l.sent(),n||this.restoreNonExportableSprites(),[2,a];case 9:return[3,12];case 10:return[4,this.getImageAdvanced(t,e,i)];case 11:return a=l.sent(),n||this.restoreNonExportableSprites(),[2,a];case 12:return[2]}}))}))},e.prototype.addExtras=function(t,e,i){return hP(this,void 0,void 0,(function(){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,y=this;return cP(this,(function(v){switch(v.label){case 0:return this.extraSprites.length?(n=0,r=0,s=t.width,o=t.height,a=0,l=0,[4,Promise.all(aC(this.extraSprites,(function(t){return hP(y,void 0,void 0,(function(){var u,h,c,p;return cP(this,(function(d){switch(d.label){case 0:return(u=t instanceof qD?{sprite:t,position:"bottom"}:t).position=u.position||"bottom",u.marginTop=u.marginTop||0,u.marginRight=u.marginRight||0,u.marginBottom=u.marginBottom||0,u.marginLeft=u.marginLeft||0,i?[4,u.sprite.exporting.getCanvasAdvanced(e)]:[3,2];case 1:return h=d.sent(),[3,4];case 2:return[4,u.sprite.exporting.getCanvas(e)];case 3:h=d.sent(),d.label=4;case 4:return c=h.width+u.marginLeft+u.marginRight,p=h.height+u.marginTop+u.marginBottom,"top"==u.position?(s=u.crop?o:zP(s,c),r+=p):"right"==u.position?(o=u.crop?o:zP(o,p),a+=c):"left"==u.position?(o=u.crop?o:zP(o,p),n+=c):"bottom"===u.position&&(s=u.crop?o:zP(s,c),l+=p),[2,{canvas:h,position:u.position,left:u.marginLeft,top:u.marginTop,width:c,height:p}]}}))}))})))]):[3,2];case 1:return u=v.sent(),(h=this.getDisposableCanvas()).width=n+s+a,h.height=r+o+l,c=h.getContext("2d"),(p=this.backgroundColor||this.findBackgroundColor(this.sprite.dom))&&(c.fillStyle=p.toString(),c.fillRect(0,0,h.width,h.height)),g=(d=n)+s,m=(f=r)+o,lC(u,(function(t){"top"==t.position?(f-=t.height,c.drawImage(t.canvas,n+t.left,f+t.top)):"right"==t.position?(c.drawImage(t.canvas,g+t.left,r+t.top),g+=t.width):"left"==t.position?(d-=t.width,c.drawImage(t.canvas,d+t.left,r+t.top)):"bottom"===t.position&&(c.drawImage(t.canvas,n+t.left,m+t.top),m+=t.height),y.disposeCanvas(t.canvas)})),c.drawImage(t,n,r),[2,h];case 2:return[2,t]}}))}))},e.prototype.getCanvas=function(t){return hP(this,void 0,void 0,(function(){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m;return cP(this,(function(y){switch(y.label){case 0:CP(t)||(t={}),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),i=this.getDOMURL(),n=null,r=null,y.label=1;case 1:return y.trys.push([1,,4,5]),o=this.sprite.pixelWidth,a=this.sprite.pixelHeight,l=QO(this.sprite.dom),u=JO(this.sprite.dom),s=this.getDisposableCanvas(),h=this.getPixelRatio(t),s.style.width=o+"px",s.style.height=a+"px",s.width=o*h,s.height=a*h,c=s.getContext("2d"),1!=h&&c.setTransform(h,0,0,h,0,0),e&&(c.fillStyle=e.toString(),c.fillRect(0,0,o,a)),p=[],this.useWebFonts&&p.push(this.getFontFamilies().then((function(t){return r=t.blobs,t.cssText}))),p.push(this.imagesToDataURI(this.sprite.dom,t)),p.push(this.prepForeignObjects(this.sprite.dom,t)),[4,Promise.all(p)];case 2:return d=y.sent(),f=this.normalizeSVG("<style>"+d[0]+"</style>"+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,o,a,l,u),g=new Blob([f],{type:"image/svg+xml"}),n=i.createObjectURL(g),[4,this.loadNewImage(n,o,a,"anonymous")];case 3:return m=y.sent(),c.drawImage(m,0,0),[3,5];case 4:return null!==n&&i.revokeObjectURL(n),null!==r&&lC(r,(function(t){i.revokeObjectURL(t)})),this.restoreRemovedObjects(),[7];case 5:return[2,s]}}))}))},e.prototype.getCanvasAdvanced=function(t){return hP(this,void 0,void 0,(function(){var e,i,n,r,s,o,a,l,u,h;return cP(this,(function(c){switch(c.label){case 0:return CP(t)||(t={}),[4,this.imagesToDataURI(this.sprite.dom,t)];case 1:return c.sent(),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),[4,this.canvg];case 2:return i=c.sent(),n=this.sprite.pixelWidth,r=this.sprite.pixelHeight,s=QO(this.sprite.dom),o=JO(this.sprite.dom),a=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,n,r,s,o,e),l=this.getDisposableCanvas(),u=this.getPixelRatio(t),l.style.width=n*u+"px",l.style.height=r*u+"px",l.width=n*u,l.height=r*u,h={useCORS:!0},1!=u&&(h.ignoreDimensions=!0,h.scaleWidth=n*u,h.scaleHeight=r*u),[4,i.fromString(l.getContext("2d"),a,h).render()];case 3:return c.sent(),[2,l]}}))}))},e.prototype.getImageAdvanced=function(t,e,i){return hP(this,void 0,void 0,(function(){var n,r,s;return cP(this,(function(o){switch(o.label){case 0:return(n=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),CP(e)||(e=this.getFormatOptions(t)),[4,this.getCanvasAdvanced(e)];case 1:return r=o.sent(),!1===i?[3,3]:[4,this.addExtras(r,e,!0)];case 2:r=o.sent(),o.label=3;case 3:return s=r.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(r),n||this.restoreNonExportableSprites(),[2,s]}}))}))},e.prototype.getDisposableCanvas=function(){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",document.body.appendChild(t),t},e.prototype.disposeCanvas=function(t){document.body.removeChild(t)},e.prototype.getPixelRatio=function(t){var e=t&&t.scale?t.scale:1;return(this.useRetina&&window.devicePixelRatio||1)*e},e.prototype.imagesToDataURI=function(t,i){return hP(this,void 0,void 0,(function(){var n,r,s,o,a,l;return cP(this,(function(u){switch(u.label){case 0:if(!(n=t.querySelectorAll("image")).length)return[3,2];for(r=[],s=n.length,o=0;o<s;o++)a=n[o],(l=a.getAttributeNS(e.XLINK,"href"))&&(-1!==l.indexOf("data:image")||(-1!==l.indexOf(".svg")?r.push(this.svgToDataURI(a,i)):r.push(this.imageToDataURI(a,i))));return[4,Promise.all(r)];case 1:return u.sent(),[2];case 2:return[2]}}))}))},e.prototype.prepForeignObjects=function(t,e){return hP(this,void 0,void 0,(function(){var e,i,n;return cP(this,(function(r){if((e=t.querySelectorAll("foreignObject")).length)for(i=e.length,n=0;n<i;n++)this.temporarilyRemoveObject(e[n]);return[2]}))}))},e.prototype.imageToDataURI=function(t,i){return hP(this,void 0,void 0,(function(){var n,r,s;return cP(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.loadNewImage(t.getAttributeNS(e.XLINK,"href"),null,null,"anonymous")];case 1:n=o.sent(),(r=document.createElement("canvas")).width=n.width,r.height=n.height,r.getContext("2d").drawImage(n,0,0);try{return s=r.toDataURL(),t.setAttribute("href",s),[2,s]}catch(a){return!1!==i.keepTainted&&this.temporarilyRemoveObject(t),[2,void 0]}return[3,3];case 2:return o.sent(),i&&!1===i.keepTainted||this.temporarilyRemoveObject(t),[2,void 0];case 3:return[2]}}))}))},e.prototype.svgToDataURI=function(t,i){return hP(this,void 0,void 0,(function(){var n,r,s,o;return cP(this,(function(a){switch(a.label){case 0:n=t.getAttributeNS(e.XLINK,"href"),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,HD(n)];case 2:return r=a.sent(),s=this.adapter.apply("charset",{charset:"base64",type:"svg",options:i}).charset,o=this.adapter.apply("svgToDataURI",{data:"data:"+this.getContentType("svg")+";"+s+","+btoa(r.response),options:i}).data,t.setAttributeNS(e.XLINK,"href",o),[2,o];case 3:return a.sent(),i&&!1===i.keepTainted||this.temporarilyRemoveObject(t),[2,void 0];case 4:return[2]}}))}))},e.prototype.temporarilyRemoveObject=function(t,e){var i=t.parentElement||t.parentNode;e||(e=this.sprite.paper.add("g").node),i.insertBefore(e,t),t.textContent,i.removeChild(t),this._removedObjects.push({element:t,placeholder:e})},e.prototype.restoreRemovedObjects=function(){for(var t;t=this._removedObjects.pop();){(t.placeholder.parentElement||t.placeholder.parentNode).insertBefore(t.element,t.placeholder)}},e.prototype.simplifiedImageExport=function(){return hP(this,void 0,void 0,(function(){var t,e,i,n,r,s,o;return cP(this,(function(a){switch(a.label){case 0:if(!1===this.useSimplifiedExport)return[2,!1];if(!1===(t=rS.getCache("simplifiedImageExport"))||!0===t)return[2,t];a.label=1;case 1:a.trys.push([1,6,,7]),(e=document.createElement("canvas")).width=1,e.height=1,i=e.getContext("2d"),n=this.getDOMURL(),r=new Blob([this.normalizeSVG("<g></g>",{},1,1)],{type:"image/svg+xml"}),s=n.createObjectURL(r),o=void 0,a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.loadNewImage(s,1,1)];case 3:return o=a.sent(),[3,5];case 4:return a.sent(),[2,!1];case 5:i.drawImage(o,0,0),n.revokeObjectURL(s);try{return rS.setCache("simplifiedImageExport",!0),[2,!0]}catch(l){return rS.setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return a.sent(),rS.setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}}))}))},e.prototype.loadNewImage=function(t,e,i,n){return new Promise((function(r,s){var o;function a(){if(n){var e=o.src;o.onerror=function(){s(new Error('Loading image "'+t+'" failed'))},o.removeAttribute("crossorigin"),o.src="",o.src=e}else s(new Error('Loading image "'+t+'" failed'))}o=e&&i?new Image(e,i):new Image,n&&o.setAttribute("crossOrigin",n),o.onload=function(){r(o)},o.onabort=a,o.onerror=a,o.src=t}))},e.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},e.prototype.getSVG=function(t,e){return hP(this,void 0,void 0,(function(){var i,n,r,s,o,a,l,u;return cP(this,(function(h){switch(h.label){case 0:return(i=this._objectsAlreadyHidden)||this.hideNonExportableSprites(),[4,this.awaitValidSprites()];case 1:return h.sent(),n=this.sprite.pixelWidth,r=this.sprite.pixelHeight,s=QO(this.sprite.dom),o=JO(this.sprite.dom),a=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,n,r,s,o),l=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:e}).charset,u=this.adapter.apply("getSVG",{data:"data:"+this.getContentType(t)+";"+l+","+encodeURIComponent(a),options:e}).data,i||this.restoreNonExportableSprites(),[2,u]}}))}))},e.prototype.normalizeSVG=function(t,e,i,n,r,s,o){var a="";i&&(a+='width="'+i+'px" '),n&&(a+='height="'+n+'px" ');var l="";r&&(l+="font-family: "+r.replace(/"/g,"")+";"),s&&(l+="font-size: "+s+";");var u=[],h=t.match(/<foreignObject[\s\S]*<\/foreignObject>/gi);if(h)for(var c=0;c<h.length;c++)t=t.replace(h[c],"__\xa7\xa7\xa7__"),u.push(h[c]);t.match(/<svg/)?""!==a&&(t=(t=(t=t.replace(/(<svg[^>]*)width="[^"]*"/,"$1")).replace(/(<svg[^>]*)height="[^"]*"/,"$1")).replace(/(<svg)/,"$1"+a)):t='<?xml version="1.0" encoding="utf-8"?><svg '+a+' style="'+l+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+t+"</svg>",o&&(t=t.replace(/(<svg[^>]*>)/,'$1<rect width="100%" height="100%" fill="'+o.rgba+'"/>')),/MSIE |Trident\//.test(navigator.userAgent)&&(t=t.replace(/<feColorMatrix [^\/>]*\/>/gi,""));var p=new RegExp("url\\("+RS(FS()),"g");if(t=t.replace(p,"url(#"),u.length)for(c=0;c<u.length;c++)t=t.replace("__\xa7\xa7\xa7__",u[c]);return t=this.adapter.apply("normalizeSVG",{data:t,options:e}).data},e.prototype.serializeElement=function(t){return(new XMLSerializer).serializeToString(t)},e.prototype.getPDF=function(t,e){return hP(this,void 0,void 0,(function(){function i(t){var e={};e.normal=t.normal.path,d[t.normal.path]=t.normal.bytes,t.bold?(e.bold=t.bold.path,d[t.bold.path]=t.bold.bytes):e.bold=t.normal.path,t.italics?(e.italics=t.italics.path,d[t.italics.path]=t.italics.bytes):e.italics=t.normal.path,t.bolditalics?(e.bolditalics=t.bolditalics.path,d[t.bolditalics.path]=t.bolditalics.bytes):e.bolditalics=t.normal.path,p[t.name]=e}var n,r,s,o,a,l,u,h,c,p,d;return cP(this,(function(f){switch(f.label){case 0:return[4,this.getImage(e.imageFormat||"png",e)];case 1:return n=f.sent(),[4,this.pdfmake];case 2:return r=f.sent(),s=[30,30,30,30],o={pageSize:e.pageSize||"A4",pageOrientation:e.pageOrientation||"portrait",pageMargins:e.pageMargins||s,defaultStyle:{font:e.font?e.font.name:void 0},content:[]},a=this.adapter.apply("title",{title:this.title,options:e}).title,l=0,a&&(o.content.push({text:a,fontSize:e.fontSize,bold:!0,margin:[0,0,0,15]}),l+=50),e.addURL&&(o.content.push({text:this.language.translate("Saved from")+": "+document.location.href,fontSize:e.fontSize,margin:[0,0,0,15]}),l+=50),"pdfdata"!=t&&o.content.push({image:n,alignment:e.align||"left",fit:this.getPageSizeFit(o.pageSize,o.pageMargins,l)}),"pdfdata"==t||e.addData?(h=(u=o.content).push,c={},[4,this.getPDFData("pdf",e)]):[3,4];case 3:h.apply(u,[(c.table=f.sent(),c)]),f.label=4;case 4:return o=this.adapter.apply("pdfmakeDocument",{doc:o,options:e}).doc,p=null,d=null,e.font&&(p={},d={},i(e.font),e.extraFonts&&lC(e.extraFonts,i)),[4,new Promise((function(t,e){r.createPdf(o,null,p,d).getDataUrl((function(e){t(e)}))}))];case 5:return[2,f.sent()]}}))}))},e.prototype.getPDFData=function(t,e){return hP(this,void 0,void 0,(function(){var t,i,n,r,s,o,a=this;return cP(this,(function(l){if(t={body:[]},i=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"pdf"}).dataFields,n=this.data,e.pivot)r=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder,BC(i,(function(i,r){var s=[];e.addColumnNames&&s.push(r);for(var o=n.length,l=0;l<o;l++){var u=n[l][i];s.push(a.convertToSpecialFormat(i,u,e,!0))}t.body.push(a.getPDFDataRow(s,e,void 0,!0))}),(function(t,e){var i=r.indexOf(t),n=r.indexOf(e);return i>n?1:i<n?-1:0}));else for(e.addColumnNames&&(t.body.push(this.getPDFDataRow(i,e,void 0,!0)),t.headerRows=1),s=n.length,o=0;o<s;o++)t.body.push(this.getPDFDataRow(n[o],e,i));return[2,this.adapter.apply("pdfmakeTable",{table:t,options:e}).table]}))}))},e.prototype.getPDFDataRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var s=[];i||(i=t);var o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder;return BC(i,(function(i,o){var a=r.convertEmptyValue(i,t[i],e),l=n?a:r.convertToSpecialFormat(i,a,e);l=""+l,s.push(l)}),(function(t,e){var i=o.indexOf(t),n=o.indexOf(e);return i>n?1:i<n?-1:0})),s},e.prototype.getPageSizeFit=function(t,e,i){void 0===i&&(i=0);var n=[0,0,0,0];"number"==typeof e?n=[e,e,e,e]:2==e.length?n=[e[0],e[1],e[0],e[1]]:4==e.length&&(n=e);var r={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]}[t];return r[0]-=n[0]+n[2],r[1]-=n[1]+n[3]+i,r},e.prototype.getExcel=function(t,e){return hP(this,void 0,void 0,(function(){var i,n,r,s,o,a,l,u,h,c=this;return cP(this,(function(p){switch(p.label){case 0:return[4,this.xlsx];case 1:if(i=p.sent(),n=this.adapter.apply("xlsxWorkbookOptions",{options:{bookType:"xlsx",bookSST:!1,type:"base64"}}).options,r=this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName",{name:this.title||this.language.translate("Data")}).name),s={SheetNames:[r],Sheets:{}},o=[],a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"xslx"}).dataFields,e.pivot)l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder,BC(a,(function(t,i){var n=[];e.addColumnNames&&n.push(i);for(var r=c.data.length,s=0;s<r;s++){var a=c.data[s][t];n.push(c.convertToSpecialFormat(t,a,e,!0))}o.push(c.getExcelRow(n,e,void 0,!0))}),(function(t,e){var i=l.indexOf(t),n=l.indexOf(e);return i>n?1:i<n?-1:0}));else for(e.addColumnNames&&o.push(this.getExcelRow(a,e,void 0,!0)),u=this.data.length,h=0;h<u;h++)o.push(this.getExcelRow(this.data[h],e,a));return s.Sheets[r]=i.utils.aoa_to_sheet(o),[2,this.adapter.apply("getExcel",{data:"data:"+this.getContentType(t)+";base64,"+i.write(s,n),options:e}).data]}}))}))},e.prototype.normalizeExcelSheetName=function(t){return BS(t=t.replace(/([:\\\/?*\[\]]+)/g," "),31,"...",!0)},e.prototype.getExcelRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var s=[];i||(i=t);var o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder;return BC(i,(function(i,o){var a=r.convertEmptyValue(i,t[i],e),l=n?a:r.convertToSpecialFormat(i,a,e,!0);s.push(l)}),(function(t,e){var i=o.indexOf(t),n=o.indexOf(e);return i>n?1:i<n?-1:0})),s},e.prototype.getCSV=function(t,e){return hP(this,void 0,void 0,(function(){var i,n,r,s,o,a,l,u,h,c=this;return cP(this,(function(p){if(i="",n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,r="",s=this.data,e.pivot)o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder,BC(n,(function(t,n){var o=[];e.addColumnNames&&o.push(n);for(var a=s.length,l=0;l<a;l++){var u=s[l][t];o.push(c.convertToSpecialFormat(t,u,e,!0))}i+=r+c.getCSVRow(o,e,void 0,!0),r="\n"}),(function(t,e){var i=o.indexOf(t),n=o.indexOf(e);return i>n?-1:i<n?1:0}));else{for(a=s.length,l=0;l<a;l++)u=this.getCSVRow(s[l],e,n),e.reverse?i=u+r+i:i+=r+u,r="\n";e.addColumnNames&&(i=this.getCSVRow(n,e,void 0,!0)+r+i)}return h=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getCSV",{data:"data:"+this.getContentType(t)+";"+h+","+encodeURIComponent(i),options:e}).data]}))}))},e.prototype.getCSVRow=function(t,e,i,n){var r=this;void 0===n&&(n=!1);var s=e.separator||",",o=[];i||(i=t);var a=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder;return BC(i,(function(i,a){var l=r.convertEmptyValue(i,t[i],e),u=n?l:r.convertToSpecialFormat(i,l,e);u=(u=""+u).replace(/"/g,'""'),(e.forceQuotes||u.search(new RegExp('"|\n|'+s,"g"))>=0)&&(u='"'+u+'"'),o.push(u)}),(function(t,e){var i=a.indexOf(t),n=a.indexOf(e);return i>n?1:i<n?-1:0})),o.join(s)},e.prototype.getHTML=function(t,e){return hP(this,void 0,void 0,(function(){var i,n,r,s,o,a,l,u=this;return cP(this,(function(h){if(i="<table>",e.tableClass&&(i='<table class="'+e.tableClass+'">'),n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"html"}).dataFields,r=this.data,e.pivot)s=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,BC(n,(function(t,n){var s=[];e.addColumnNames&&s.push(n);for(var o=r.length,a=0;a<o;a++){var l=r[a][t];s.push(u.convertToSpecialFormat(t,l,e,!0))}i+="\n"+u.getHTMLRow(s,e,void 0,!0)}),(function(t,e){var i=s.indexOf(t),n=s.indexOf(e);return i>n?-1:i<n?1:0}));else for(e.addColumnNames&&(i+="\n"+this.getHTMLRow(n,e,void 0,!0,!0)),o=r.length,a=0;a<o;a++)i+="\n"+this.getHTMLRow(r[a],e,n);return i+="</table>",l=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getHTML",{data:"data:"+this.getContentType(t)+";"+l+","+encodeURIComponent(i),options:e}).data]}))}))},e.prototype.getHTMLRow=function(t,e,i,n,r){var s=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var o="\t<tr>";e.rowClass&&(o='\t<tr class="'+e.rowClass+'">'),i||(i=t);var a=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,l=r?"th":"td",u=!0;return BC(i,(function(i,r){var a=s.convertEmptyValue(i,t[i],e),h=n?a:s.convertToSpecialFormat(i,a,e);h=(h=""+h).replace(/[\u00A0-\u9999<>\&]/gim,(function(t){return"&#"+t.charCodeAt(0)+";"}));var c=l;e.pivot&&u&&(c="th"),e.cellClass?o+="\n\t\t<"+c+' class="'+e.cellClass+'">'+h+"</"+c+">":o+="\n\t\t<"+c+">"+h+"</"+c+">",u=!1}),(function(t,e){var i=a.indexOf(t),n=a.indexOf(e);return i>n?1:i<n?-1:0})),o+="\n\t</tr>"},e.prototype.getJSON=function(t,e){return hP(this,void 0,void 0,(function(){var i,n,r,s,o,a,l,u,h=this;return cP(this,(function(c){if(n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,this._dynamicDataFields)i=this.data;else for(i=[],r=this.data,s=function(t,s){var o=r[s];if("object"==typeof o){var a={};NC(o,(function(t,i){CP(n[t])&&(a[n[t]]=h.convertToSpecialFormat(t,i,e))})),i.push(a)}},o=r.length,a=0;a<o;a++)s(0,a);return l=JSON.stringify(i,(function(t,i){return"object"==typeof i&&NC(i,(function(t,n){i[t]=h.convertToSpecialFormat(t,n,e)})),i}),e.indent),u=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,[2,this.adapter.apply("getJSON",{data:"data:"+this.getContentType(t)+";"+u+","+encodeURIComponent(l),options:e}).data]}))}))},e.prototype.convertToSpecialFormat=function(t,e,i,n){if("number"==typeof e)if(this.isDateField(t))e=new Date(e);else{if(this.isDurationField(t))return this.durationFormatter.format(e,this.durationFormat);if(this.isNumberField(t)&&this.numberFormat)return this.numberFormatter.format(e,this.numberFormat)}return e instanceof Date?i.useTimestamps?e=e.getTime():i.useLocale?n||(e=e.toLocaleString()):e=this.dateFormatter.format(e,this.dateFormat):EP(e)&&this.isDateField(t)&&this.dateFormat&&(e=this.dateFormatter.format(this.dateFormatter.parse(e),this.dateFormat)),e},e.prototype.convertEmptyValue=function(t,e,i){return CP(e)?e:i.emptyAs},e.prototype.download=function(t,e){return hP(this,void 0,void 0,(function(){var i,n,r,s,o,a,l,u,h,c,p,d,f,g,m;return cP(this,(function(y){if(this.msBlobDownloadSupport()){if(d=t.split(";"),f=d.shift().replace(/data:/,""),t=decodeURIComponent(d.join(";").replace(/^[^,]*,/,"")),-1!=["image/svg+xml","application/json","text/csv"].indexOf(f))return i=new Blob([t],{type:f}),window.navigator.msSaveBlob(i,e),[2,!0];try{r=atob(t),t=r}catch(v){return[2,!1]}for(a=new Array(t.length),l=0;l<t.length;++l)u=t.charCodeAt(l),a[l]=u;h=new Blob([new Uint8Array(a)],{type:f}),window.navigator.msSaveBlob(h,e)}else if(this.blobDownloadSupport()){if((n=document.createElement("a")).download=e,document.body.appendChild(n),d=t.split(";"),f=d.shift().replace(/data:/,""),t=decodeURIComponent(d.join(";").replace(/^[^,]*,/,"")),-1!=["image/svg+xml","application/json","text/csv","text/html"].indexOf(f))return s=new Blob([t],{type:f}),o=window.URL.createObjectURL(s),n.href=o,n.download=e,n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(o)}),100),[2,!0];try{r=atob(t),t=r}catch(v){return[2,!1]}for(a=new Array(t.length),l=0;l<t.length;++l)u=t.charCodeAt(l),a[l]=u;h=new Blob([new Uint8Array(a)],{type:f}),c=window.URL.createObjectURL(h),n.href=c,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout((function(){window.URL.revokeObjectURL(c)}),100)}else this.linkDownloadSupport()?((p=document.createElement("a")).download=e,p.href=t,document.body.appendChild(p),p.click(),document.body.removeChild(p)):this.legacyIE()?4===(d=t.match(/^data:(.*);[ ]*([^,]*),(.*)$/)).length&&("base64"==d[2]?d[1].match(/^image\//)&&this.showModal('<img src="'+t+'" style="float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;" /><p>'+this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."')+'</p><p style="text-align: center;"><small>'+this.language.translate("(Press ESC to close this message)")+"</small></p>",this.language.translate("Image Export Complete")):(f=void 0,e.match(/\.svg$/)?f="image/svg+xml":(f="text/plain",e+=".txt"),(g=document.createElement("iframe")).width="1px",g.height="1px",g.style.display="none",document.body.appendChild(g),(m=g.contentDocument).open(f,"replace"),m.write(decodeURIComponent(d[3])),m.close(),m.execCommand("SaveAs",!0,e),document.body.removeChild(g))):window.location.href=t;return[2,!0]}))}))},e.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},e.prototype.linkDownloadSupport=function(){var t=rS.getCache("linkDownloadSupport");if(!1===t||!0===t)return t;var e=void 0!==document.createElement("a").download;return rS.setCache("linkDownloadSupport",e),e},e.prototype.blobDownloadSupport=function(){return CP(window.Blob)},e.prototype.msBlobDownloadSupport=function(){return CP(window.navigator.msSaveOrOpenBlob)},e.prototype.legacyIE=function(){var t=document.createElement("div");return t.innerHTML="\x3c!--[if lt IE 10]><i></i><![endif]--\x3e",1==t.getElementsByTagName("i").length},e.prototype.print=function(t,e,i){return hP(this,void 0,void 0,(function(){return cP(this,(function(n){return"css"==e.printMethod?[2,this.printViaCSS(t,e,i)]:[2,this.printViaIframe(t,e,i)]}))}))},e.prototype.printViaCSS=function(t,e,i){return hP(this,void 0,void 0,(function(){var n,r,s,o;return cP(this,(function(a){return n=document.documentElement.scrollTop||document.body.scrollTop,r=new XO(KO(this.container),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),i&&document&&document.title&&(s=document.title,document.title=i),(o=new Image).src=t,o.style.maxWidth="100%",o.style.display="block",o.style.position="relative",o.style.visibility="visible",o.style.opacity="1",o.style.clipPath="none",document.body.appendChild(o),this.setTimeout((function(){window.print()}),50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout((function(){document.body.removeChild(o),r.dispose(),s&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n}),e.delay||500),[2,!0]}))}))},e.prototype.printViaIframe=function(t,e,i){return hP(this,void 0,void 0,(function(){var n,r;return cP(this,(function(s){return(n=document.createElement("iframe")).style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close(),(r=new Image).src=t,r.style.maxWidth="100%",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(r),n.load=function(){n.contentWindow.document.body.appendChild(r)},this.setTimeout((function(){try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch(t){n.contentWindow.print()}}),e.delay||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout((function(){document.body.removeChild(n)}),e.delay+50||100),[2,!0]}))}))},e.prototype.findBackgroundColor=function(t){var e=1,i=WO(t,"background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||"transparent"==i)&&(e=0),0==e){var n=t.parentElement;return n?this.findBackgroundColor(n):DS("#fff")}return DS(i,e)},Object.defineProperty(e.prototype,"container",{get:function(){return this.adapter.apply("container",{container:this._container}).container},set:function(t){this._container=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sprite",{get:function(){return this.adapter.apply("sprite",{sprite:this._sprite}).sprite},set:function(t){this._sprite=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraSprites",{get:function(){return this.adapter.apply("extraSprites",{extraSprites:this._extraSprites}).extraSprites},set:function(t){this._extraSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validateSprites",{get:function(){return this.adapter.apply("validateSprites",{validateSprites:this._validateSprites}).validateSprites},set:function(t){this._validateSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.adapter.apply("data",{data:this._data}).data},set:function(t){this._data=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataFields",{get:function(){return this._dataFields||this.generateDataFields(),this.adapter.apply("dataFields",{dataFields:this._dataFields}).dataFields},set:function(t){this._dataFields=t,this._dynamicDataFields=!1},enumerable:!0,configurable:!0}),e.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0)},Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new jD,this._dateFormatter.language=this.language),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormat",{get:function(){return this.adapter.apply("dateFormat",{dateFormat:this._dateFormat}).dateFormat},set:function(t){this._dateFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new uS),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields},set:function(t){this._dateFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormatter",{get:function(){return this._numberFormatter||(this._numberFormatter=new AD,this._numberFormatter.language=this.language),this.adapter.apply("numberFormatter",{numberFormatter:this._numberFormatter}).numberFormatter},set:function(t){this._numberFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormat",{get:function(){return this.adapter.apply("numberFormat",{numberFormat:this._numberFormat}).numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFields",{get:function(){return this._numberFields||(this._numberFields=new uS),this.adapter.apply("numberFields",{numberFields:this._numberFields}).numberFields},set:function(t){this._numberFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new LD,this._durationFormatter.language=this.language),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(t){this._durationFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormat",{get:function(){return this.adapter.apply("durationFormat",{durationFormat:this._durationFormat}).durationFormat},set:function(t){this._durationFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new uS),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields},set:function(t){this._durationFields=t},enumerable:!0,configurable:!0}),e.prototype.generateDataFields=function(){var t=this;this._dataFields={},this.data.length&&lC(this.data,(function(e){NC(e,(function(e,i){CP(t._dataFields[e])||(t._dataFields[e]=t.adapter.apply("dataFieldName",{name:e,field:e}).name)}))}))},e.prototype.isDateField=function(t){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(t),field:t}).isDateField},e.prototype.isNumberField=function(t){return this.adapter.apply("isNumberField",{isNumberField:this.numberFields.contains(t),field:t}).isNumberField},e.prototype.isDurationField=function(t){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(t),field:t}).isDurationField},e.prototype.getContentType=function(t){var e="";switch(t){case"png":case"gif":e="image/"+t;break;case"jpg":e="image/jpeg";break;case"svg":e="image/svg+xml";break;case"csv":e="text/csv";break;case"json":e="application/json";break;case"html":e="text/html";break;case"pdf":case"pdfdata":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}return this.adapter.apply("contentType",{contentType:e,type:t}).contentType},Object.defineProperty(e.prototype,"filePrefix",{get:function(){return this.adapter.apply("filePrefix",{filePrefix:this._filePrefix}).filePrefix},set:function(t){this._filePrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this.adapter.apply("backgroundColor",{backgroundColor:this._backgroundColor}).backgroundColor},set:function(t){this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(t){this._title=t},enumerable:!0,configurable:!0}),e.prototype.showPreloader=function(){var t=this.preloader;t&&(t.progress=.5,t.label.text="...")},e.prototype.hidePreloader=function(){var t=this.preloader;t&&(t.progress=1)},Object.defineProperty(e.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),e.prototype.showTimeout=function(){this.showModal(this.adapter.apply("timeoutMessage",{message:this.language.translate("Export operation took longer than expected. Something might have gone wrong.")}).message)},e.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()},Object.defineProperty(e.prototype,"language",{get:function(){return this._language||(this._language=new ID),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modal",{get:function(){return this._modal||(this._modal=new gD,this._modal.adapter.add("classPrefix",(function(t){return t=TO.classNamePrefix+t}))),this._modal},enumerable:!0,configurable:!0}),e.prototype.showModal=function(t,e){this.hideModal(),this.hidePreloader();var i=this.modal;i.container=this.sprite.svgContainer.SVGContainer,i.content=t,i.readerTitle=e,i.open()},e.prototype.hideModal=function(){this._modal&&this.modal.close()},e.prototype._canvg=function(){return hP(this,void 0,void 0,(function(){var t;return cP(this,(function(e){switch(e.label){case 0:return[4,i.e(1).then(i.bind(null,"iJDN"))];case 1:return null!=(t=e.sent()).default?[2,t.default]:[2,t]}}))}))},Object.defineProperty(e.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfmake",{get:function(){return null==VD&&(VD=function(){return hP(this,void 0,void 0,(function(){var t,e,n,r;return cP(this,(function(s){switch(s.label){case 0:return[4,Promise.all([i.e(3).then(i.t.bind(null,"5JmO",7)),i.e(3).then(i.bind(null,"b0eU"))])];case 1:return t=s.sent(),e=t[0],n=t[1],(r=window).pdfMake=r.pdfMake||{},r.pdfMake.vfs=n.default,e.vfs=n.default,[2,e]}}))}))}()),VD},enumerable:!0,configurable:!0}),e.prototype._xlsx=function(){return hP(this,void 0,void 0,(function(){return cP(this,(function(t){switch(t.label){case 0:return[4,i.e(7).then(i.t.bind(null,"EUZL",7))];case 1:return[2,t.sent()]}}))}))},Object.defineProperty(e.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),e.prototype.setFormatOptions=function(t,e){this._formatOptions.setKey(t,e)},e.prototype.getFormatOptions=function(t){return this._formatOptions.getKey(t)},Object.defineProperty(e.prototype,"formatOptions",{get:function(){return this._formatOptions},enumerable:!0,configurable:!0}),e.prototype._disablePointers=function(){CP(this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},e.prototype._releasePointers=function(){CP(this._spriteInteractionsEnabled)&&!this._exportRunning&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},e.prototype.hideNonExportableSprites=function(){var t=this;if(!this._objectsAlreadyHidden){var e=this.sprite.svgContainer;e&&lC(e.nonExportableSprites,(function(e){e.isHidden||e.isHiding||!e.visible||t._hiddenObjects.push(e),e.hide(0)})),this._objectsAlreadyHidden=!0}},e.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(lC(this._hiddenObjects,(function(t){t.show(0)})),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},e.prototype.awaitValidSprites=function(){return hP(this,void 0,void 0,(function(){var t;return cP(this,(function(e){switch(e.label){case 0:return t=[],this.validateSprites.length&&lC(this.validateSprites,(function(e,i){e.invalid&&t.push(new Promise((function(t,i){e.events.once("validated",(function(e){t()}))})))})),t.length?[4,Promise.all(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.processConfig=function(e){rS.registeredClasses.ExportMenu=BD,e&&CP(e.menu)&&!CP(e.menu.type)&&(e.menu.type="ExportMenu"),t.prototype.processConfig.call(this,e)},e.XLINK="http://www.w3.org/1999/xlink",e}(ND),YD=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin"],qD=function(t){function e(){var e=t.call(this)||this;return e.properties={},e._eventDispatcher=new DO(e),e._bindings={},e._isTemplate=!1,e._isPath=!1,e._inited=!1,e._ready=!1,e.isHiding=!1,e._isHidden=!1,e.isShowing=!1,e.isStandaloneInstance=!1,e._isActive=!1,e._mask=new PC,e._positionPrecision=3,e._language=new PC,e._exporting=new PC,e._exportable=!0,e._bbox={x:0,y:0,width:0,height:0},e.invalid=!1,e.positionInvalid=!1,e.propertyFields={},e.applyOnClones=!1,e._measuredWidthSelf=0,e._measuredHeightSelf=0,e.maxLeft=0,e.maxRight=0,e.maxTop=0,e.maxBottom=0,e.maxLeftSelf=0,e.maxRightSelf=0,e.maxTopSelf=0,e.maxBottomSelf=0,e._isDragged=!1,e._isResized=!1,e._disabled=!1,e._internalDisabled=!1,e._updateDisabled=!1,e._internalDefaultsApplied=!1,e.rollOutDelay=0,e.isBaseSprite=!1,e.shouldClone=!0,e.appeared=!1,e.ex=0,e.ey=0,e.dragWhileResize=!1,e.measureFailed=!1,e.preventShow=!1,e.cloneTooltip=!0,e.className="Sprite",e._disposers.push(e._eventDispatcher),e.uid,e.group=e.paper.addGroup("g"),e.setPropertyValue("scale",1),e.setPropertyValue("rotation",0),e.setPropertyValue("align","none"),e.setPropertyValue("valign","none"),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("visible",!0),e.setPropertyValue("tooltipPosition","fixed"),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e.setPropertyValue("tooltipX",mP(50)),e.setPropertyValue("tooltipX",mP(50)),e.setPropertyValue("marginTop",0),e.setPropertyValue("marginBottom",0),e.setPropertyValue("marginLeft",0),e.setPropertyValue("marginRight",0),e.setPropertyValue("dx",0),e.setPropertyValue("dy",0),e.setPropertyValue("paddingTop",0),e.setPropertyValue("paddingBottom",0),e.setPropertyValue("paddingRight",0),e.setPropertyValue("paddingLeft",0),e.setPropertyValue("togglable",!1),e.setPropertyValue("hidden",!1),e.setPropertyValue("urlTarget","_self"),e.setPropertyValue("alwaysShowTooltip",!1),e.setPropertyValue("showTooltipOn","hover"),e._prevMeasuredWidth=0,e._prevMeasuredHeight=0,e._measuredWidth=0,e._measuredHeight=0,e._isMeasured=!0,e.invalidate(),e.applyTheme(),e._disposers.push(e.events),e._disposers.push(e.group),e._disposers.push(e._mask),e._disposers.push(e._language),e._disposers.push(e._exporting),e._disposers.push(new xC((function(){NC(e._bindings,(function(t,e){e.dispose()}))}))),e.setPropertyValue("interactionsEnabled",!0),e}return uP(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new vS(this)),this._adapterO},enumerable:!0,configurable:!0}),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),TO.autoSetClassName&&this.setClassName()},e.prototype.getCurrentThemes=function(){var t=this._themes;if(t)return t;var e=this._parent;return e?e.getCurrentThemes():rS.themes},e.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},e.prototype.invalidate=function(){this.disabled||this._isTemplate||this.invalid||(this.invalid=!0,rS.addToInvalidSprites(this),QD.requestFrame())},e.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,rS.removeFromInvalidSprites(this),this.afterDraw()},e.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,rS.addToInvalidPositions(this),QD.requestFrame())},e.prototype.validatePosition=function(){var t=this.pixelX,e=this.pixelY,i=this.dx,n=this.dy,r=t+i,s=e+n;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var o=this.measure(),a=this.group.transformString;this.group.moveTo({x:r,y:s}),this.group.rotation=this.rotation,this.nonScaling?this.group.scale=this.scale/this.globalScale:this.group.scale=this.scale,(a!=this.group.transformString||o)&&(null==a?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),"hit"!=this.showTooltipOn&&"always"!=this.showTooltipOn||this.updateTooltipPosition()),t+i==r&&e+n==s&&(rS.removeFromInvalidPositions(this),this.positionInvalid=!1);var l=this._maskRectangle;l&&this._clipElement.moveTo({x:l.x-t,y:l.y-e})},e.prototype.beforeDraw=function(){},e.prototype.draw=function(){},e.prototype.afterDraw=function(){var t,e;if((this.isMeasured||"none"!==this.horizontalCenter||"none"!==this.verticalCenter)&&this.measureElement(),this._inited)this.dispatch("validated");else{if(this._adapterO)try{for(var i=pP(this._adapterO.keys()),n=i.next();!n.done;n=i.next()){var r=n.value;switch(r){case"mask":case"fill":case"opacity":case"fillOpacity":case"stroke":case"strokeOpacity":case"strokeWidth":case"shapeRendering":case"strokeDasharray":case"strokeDashoffset":case"strokeLinecap":case"strokeLinejoin":case"textDecoration":case"fontSize":case"fontFamily":case"fontWeight":this[r]=this[r]}}}catch(s){t={error:s}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.applyFilters(),this.visible=this.visible,this.interactionsEnabled=this.getPropertyValue("interactionsEnabled"),this._inited=!0,this.showOnInit||(this.appeared=!0),this.hidden&&this.hide(0),this.applyMask(),this.dispatch("validated"),this.dispatch("inited"),this.dispatchReady()}"always"==this.showTooltipOn&&(!this.visible||this.disabled||this.__disabled?this.hideTooltip(0):this.showTooltip())},e.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},e.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},e.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},e.prototype.updateFilterScale=function(){var t=this;KC(this.filters.iterator(),(function(e){e.scale=t.globalScale}))},e.prototype.removeFromInvalids=function(){rS.removeFromInvalidSprites(this),rS.removeFromInvalidPositions(this)},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.isMeasured=e.isMeasured,this.states.copyFrom(e.states),e.filters.length>0&&e.filters.each((function(t){i.filters.push(t.clone())})),e._adapterO&&this.adapter.copyFrom(e._adapterO),e._interaction&&this.interactions.copyFrom(e.interactions),e._plugins&&this.plugins.copyFrom(e.plugins),this.configField=e.configField,this.applyOnClones=e.applyOnClones,this.disabled=e.disabled,this.virtualParent=e.virtualParent,this.exportable=e.exportable,e._tooltip&&(this._tooltip?this._tooltip.copyFrom(e.tooltip):e.cloneTooltip?this.tooltip=e.tooltip.clone():this._tooltip=e.tooltip),this._showSystemTooltip=e.showSystemTooltip,IS(e.propertyFields,this.propertyFields),IS(e.properties,this),e.fillModifier&&(this.fillModifier=e.fillModifier.clone()),e.strokeModifier&&(this.strokeModifier=e.strokeModifier.clone())},e.prototype.dispose=function(){if(!this.isDisposed()){if("always"==this.showTooltipOn&&this.tooltip&&this.tooltip.hide(),this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(t.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var e=this._clones.length-1;e>=0;e--){this._clones.getIndex(e).dispose()}this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var i=this.stroke;!i||i instanceof OS||!i.dispose||this.clonedFrom&&this.clonedFrom.stroke==i||i.dispose();var n=this.fill;if(!n||n instanceof OS||!n.dispose||this.clonedFrom&&this.clonedFrom.fill==n||n.dispose(),CP(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var r=this._filters.getIndex(0);r.dispose(),this._filters.removeValue(r)}this._alwaysShowDisposers=void 0}},Object.defineProperty(e.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(t){t=_P(t),this._isTemplate!=t&&(this._isTemplate=t,this instanceof ZD&&KC(this.children.iterator(),(function(e){e.isTemplate=t})),t?(this.parent=this._parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showSystemTooltip",{get:function(){return CP(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:!!this._parent&&this._parent.showSystemTooltip},set:function(t){t=_P(t),this._showSystemTooltip!=t&&(this._showSystemTooltip=t,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topParent",{get:function(){return this._topParent?this._topParent:this._parent?this._parent.topParent:void 0},set:function(t){this._topParent=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(t){if(!this._isTemplate){this.paper;var e=this._parent;e!=t&&(e&&e.children.removeValue(this),this._parent=t,t?(this.topParent=t.topParent,t.isTemplate&&(this.isTemplate=!0),this.baseId=t.baseId,t.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=t.tooltipContainer),this._dataItem||(this.dataItem=t.dataItem),this.handleAlwaysShowTooltip(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),e.prototype.handleAlwaysShow=function(){this.showTooltip()},e.prototype.handleAlwaysShowTooltip=function(){var t=this,e=this._alwaysShowDisposers;if(e&&lC(e,(function(t){t.dispose()})),this._alwaysShowDisposers=[],"always"==this.showTooltipOn)for(;null!=t;){var i=t.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(i),this._alwaysShowDisposers.push(i),t=t.parent}},Object.defineProperty(e.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(t){this._virtualParent=t},enumerable:!0,configurable:!0}),e.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var t=this.fill;t&&t.element&&this.paper.appendDef(t.element);var e=this.stroke;if(e&&e.element&&this.paper.appendDef(e.element),this.fillModifier&&this.fill instanceof OS){var i=this.fillModifier.modify(this.fill);i&&i.element&&this.paper.appendDef(i.element)}if(this.strokeModifier&&this.stroke instanceof OS){var n=this.strokeModifier.modify(this.stroke);n&&n.element&&this.paper.appendDef(n.element)}this._clipPath&&this.paper.appendDef(this._clipPath),!1===this._exportable&&(this.exportable=!1)},Object.defineProperty(e.prototype,"map",{get:function(){var t=this.topParent;return t?t.map:(this._map||(this._map=new eS),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delayedMap",{get:function(){var t=this.topParent;return t?t.delayedMap:(this._delayedMap||(this._delayedMap=new eS),this._delayedMap)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){if(this._id!=t){if(this._id=t,this.map.hasKey(t))throw Error("Duplicate id ("+t+") used on multiple objects.");this.map.setKey(t,this),TO.autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){if(this._paper)return this._paper;var t=this._parent;return t?t.paper:CD()},set:function(t){this.setPaper(t)},enumerable:!0,configurable:!0}),e.prototype.setPaper=function(t){return this._paper!=t&&(this._paper=t,this.appendDefs(),!0)},Object.defineProperty(e.prototype,"htmlContainer",{get:function(){if(this._htmlContainer)return this._htmlContainer;var t=this._parent;return t?t.htmlContainer:void 0},set:function(t){this._htmlContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters||(this._filters=new uS,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new aS(this._filters))),this._filters},enumerable:!0,configurable:!0}),e.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},e.prototype.setSVGAttribute=function(t){this.group.attr(t)},e.prototype.removeSVGAttribute=function(t){this.group.removeAttr(t)},e.prototype.setClassName=function(){var t=this.className,e=TO.classNamePrefix;this.element&&this.element.addClass(e+t),this.group.addClass(e+t+"-group"),CP(this.id)&&this.group.addClass(e+this.id),this.userClassName&&this.group.addClass(this.userClassName)},e.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},e.prototype.updateClipPath=function(){var t=this._clipElement;t&&t.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},e.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var t=rS.getUniqueId();this._clipPath.attr({id:t}),this.group.attr({"clip-path":'url("'+FS()+t+'")'})}},e.prototype.applyMask=function(){var t=this.mask;if(this._clipPath&&t)if(t instanceof ZD){this._clipElement.attr({width:zP(0,t.pixelWidth),height:zP(0,t.pixelHeight)});var e=sO({x:t.pixelX,y:t.pixelY},t.parent,this);this._clipPath.x=e.x,this._clipPath.y=e.y}else t.element&&t.element!=this._clipElement&&(this._clipElement=t.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=t.scale,this._clipPath.x=t.pixelX,this._clipPath.y=t.pixelY,this._clipPath.rotation=t.rotation},e.prototype.applyFilters=function(){var t=this;if(this._filters&&this._filters.length>0){var e=100,i=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var n="filter-"+this.uid;this.filterElement.attr({id:n}),KC(this.filters.iterator(),(function(n){n.sprite=t,n.paper=t.paper,t.filterElement.attr({filterUnits:n.filterUnits}),n.appendPrimitives(t.filterElement),n.width>e&&(e=n.width),n.height>i&&(i=n.height),n.scale=t.globalScale}));var r=e+"%",s=i+"%";this.filterElement.attr({width:r,height:s,x:-(e-100)/2+"%",y:-(i-100)/2+"%"}),this.group.attr({filter:'url("'+FS()+n+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},e.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},e.prototype.setElement=function(t){this.element=t,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this.removeElement(),this._element=t,this.group.add(t),t.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate(),TO.autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"svgContainer",{get:function(){return this._svgContainer?this._svgContainer:this._parent?this._parent.svgContainer:void 0},set:function(t){this._svgContainer=t},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var t=this.element.getBBox();this._bbox={x:t.x,y:t.y,width:t.width,height:t.height}}},e.prototype.updateCenter=function(){if(this.element){var t=this.element.transformString,e=this.bbox,i=0,n=0,r=e.x,s=e.y,o=e.width,a=e.height,l=this.pixelPaddingLeft,u=this.pixelPaddingRight,h=this.pixelPaddingTop,c=this.pixelPaddingBottom,p=zP(o+l+u,this.pixelWidth),d=zP(a+h+c,this.pixelHeight),f=e.x,g=e.x+p,m=e.y,y=e.y+d,v=this.horizontalCenter,b=this.verticalCenter;switch(v){case"none":i=r+l;break;case"left":i=l;break;case"middle":i=l-(o+u+l)/2;break;case"right":i=-u-o}switch(b){case"none":n=s+h;break;case"top":n=h;break;case"middle":n=h-(a+c+h)/2;break;case"bottom":n=-c-a}this._measuredHeight=d,this._measuredWidth=p;var _=VP(i-r,this._positionPrecision,!0),x=VP(n-s,this._positionPrecision,!0);this.ex=_-l,this.ey=x-h,this.maxLeft=f+_-l,this.maxRight=g+_-l,this.maxTop=m+x-h,this.maxBottom=y+x-h,this.pixelPerfect&&(_-=.5,x-=.5),this.element.moveTo({x:_,y:x}),t!=this.element.transformString&&this.dispatchImmediately("transformed")}},e.prototype.measure=function(){this.updateCenter();var t=this._measuredWidth,e=this._measuredHeight,i=this.maxLeft,n=this.maxRight,r=this.maxTop,s=this.maxBottom;this._measuredWidthSelf=t,this._measuredHeightSelf=e;var o=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,0!==this.rotation||1!==this.scale){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var a=this.paper.svg,l=a.createSVGMatrix(),u=this.rotation;l.a=HP(u)*this.scale,l.c=-BP(u)*this.scale,l.e=0,l.b=BP(u)*this.scale,l.d=HP(u)*this.scale,l.f=0;var h=a.createSVGPoint();h.x=i,h.y=r;var c=a.createSVGPoint();c.x=n,c.y=r;var p=a.createSVGPoint();p.x=n,p.y=s;var d=a.createSVGPoint();d.x=i,d.y=s;var f=h.matrixTransform(l),g=c.matrixTransform(l),m=p.matrixTransform(l),y=d.matrixTransform(l);i=Math.min(f.x,g.x,m.x,y.x),n=Math.max(f.x,g.x,m.x,y.x),r=Math.min(f.y,g.y,m.y,y.y),t=n-i,e=(s=Math.max(f.y,g.y,m.y,y.y))-r,this.maxLeft=VP(i,o,!0),this.maxRight=VP(n,o,!0),this.maxTop=VP(r,o,!0),this.maxBottom=VP(s,o,!0)}return this._measuredWidth=VP(t,o,!0),this._measuredHeight=VP(e,o,!0),(this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight)&&(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||"hit"==this.showTooltipOn||"always"==this.showTooltipOn)&&this.tooltip&&this.tooltip.visible&&(CP(this.tooltipText)||CP(this.tooltipHTML))&&this.updateTooltipPosition(),!0)},e.prototype.insertBefore=function(t){var e=this._parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i),e.sortChildren())}return this},e.prototype.insertAfter=function(t){var e=this._parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i+1),e.sortChildren())}return this},e.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},e.prototype.getRelativeX=function(t){return t instanceof gP?t.value:this._parent?t/this._parent.innerWidth:0},e.prototype.getRelativeY=function(t){return t instanceof gP?t.value:this._parent?t/this._parent.innerHeight:0},e.prototype.getPixelX=function(t){var e=0;if(TP(t))e=t;else if(t instanceof gP){var i=t.value;this._parent&&(e=VP(this._parent.innerWidth*i,this._positionPrecision,!0))}return e},e.prototype.getPixelY=function(t){var e=0;if(TP(t))e=t;else if(t instanceof gP){var i=t.value;this._parent&&(e=VP(this._parent.innerHeight*i,this._positionPrecision,!0))}return e},e.prototype.moveTo=function(t,e,i,n){this.isDragged&&!n||(t&&(TP(t.x)&&this.setPropertyValue("x",VP(t.x,this._positionPrecision,!0)),TP(t.y)&&this.setPropertyValue("y",VP(t.y,this._positionPrecision,!0))),TP(e)&&(this.rotation=e),TP(i)&&(this.scale=i),this.invalidatePosition())},Object.defineProperty(e.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(t){var e=this;this._mask.get()!==t&&(t?(this.createClipPath(),t instanceof ZD?this._clipElement=this.paper.add("rect"):(t.isMeasured=!1,t.element&&(this._clipElement=t.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(t,new wC([t.events.on("maxsizechanged",(function(){e.inited&&e.applyMask()}),void 0,!1),t.events.on("validated",this.applyMask,this,!1),t.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(t){t?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:t.width,height:t.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(t){(t=_P(t))||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=t&&(this._isMeasured=t,this.invalidatePosition())},enumerable:!0,configurable:!0}),e.prototype.hitTest=function(t){this.invalid&&this.validate(),t.invalid&&t.validate();var e=this.pixelX,i=this.pixelY,n=e+this.measuredWidth,r=i+this.measuredHeight,s=t.pixelX,o=t.pixelY,a=s+t.measuredWidth,l=o+t.measuredHeight;return!(s>n||a<e||o>r||l<i)},Object.defineProperty(e.prototype,"inited",{get:function(){return this._inited},enumerable:!0,configurable:!0}),e.prototype.isReady=function(){return this._ready},Object.defineProperty(e.prototype,"states",{get:function(){if(!this._states){var t=new OO;this._states=new iS(t),this._disposers.push(this._states.events.on("insertKey",this.processState,this,!1)),this._disposers.push(this._states.events.on("setKey",this.processState,this,!1)),this._disposers.push(new tS(this._states)),this._disposers.push(t)}return this._states},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenState",{get:function(){if(!this.states.getKey("hidden")){var t=this.states.create("hidden");t.properties.opacity=0,t.properties.visible=!1}return this.states.getKey("hidden")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultState",{get:function(){this.states.getKey("default")||(this.states.create("default").properties.opacity=1);return this.states.getKey("default")},enumerable:!0,configurable:!0}),e.prototype.processState=function(t){var e=t.newValue;if(e.sprite=this,e.name=t.key,(this.states.hasKey("hover")||"hover"==this.showTooltipOn&&(CP(this.tooltipHTML)||CP(this.tooltipText)))&&(this.hoverable=!0),(this.states.hasKey("down")||"hover"==this.showTooltipOn&&(CP(this.tooltipHTML)||CP(this.tooltipText)))&&(this.clickable=!0),this.states.hasKey("focus")&&(this.focusable=!0),this.applyOnClones)for(var i=this.clones.values,n=i.length,r=0;r<n;++r){var s=i[r];s.isDisposed()||s.states.setKey(e.name,e)}},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new jO(this._animations))),this._animations},enumerable:!0,configurable:!0}),e.prototype.getSvgPoint=function(t){try{var e=this.htmlContainer.getBoundingClientRect();return{x:t.x-e.left,y:t.y-e.top}}catch(i){return t}},e.prototype.animate=function(t,e,i){return new LO(this,t,e,i).start()},e.prototype.setState=function(t,e,i){var n;if(t instanceof OO)this.states.setKey(t.name,t),n=t;else if(!(n=this.states.getKey(t)))return;if("hover"==n.name){if(this.isHidden)return;this.isHover=!0}return"hidden"==n.name?this.isHiding=!0:this.visible||this.setVisibility(n.properties.visible||this.defaultState.properties.visible),"active"==n.name&&(this.isActive=!0),TP(e)||(e=n.transitionDuration),CP(i)||(i=n.transitionEasing),this.transitTo(n,e,i)},e.prototype.applyCurrentState=function(t){var e=this.setState(this.defaultState,t);return this.isHover&&(e=this.setState("hover",t)),this.isDown&&this.interactions.downPointers.length&&(e=this.setState("down",t)),this.isFocused=this.isFocused,this.isActive&&(e=this.setState("active",t),this.isHover&&this.states.hasKey("hoverActive")&&(e=this.setState("hoverActive",t))),e},e.prototype.transitTo=function(t,e,i){var n,r=this,s=[];if(NC(t.allValues,(function(t,e){var i=r[t];if(e!=i&&null==r.defaultState.properties[t]&&(r.defaultState.properties[t]=i),"__unset"!=e){var n={from:i,to:e,property:t};s.push(n)}})),s.length>0&&((n=this.animate(s,e,i))&&!n.isFinished()?this._disposers.push(n.events.on("animationended",(function(){r.dispatchImmediately("transitionended")}))):this.dispatchImmediately("transitionended")),t.filters.length>0){var o=[];KC(t.filters.iterator(),(function(t){var n=t.clone();o.push(n);var s=[];KC(r.filters.iterator(),(function(t){t.className==n.className&&(ZC(r.defaultState.filters.iterator(),(function(t){return t.className===n.className}))||r.defaultState.filters.push(t),NC(n.properties,(function(e,i){var n=t.properties[e];n!=i&&s.push({property:e,from:n,to:i})})))})),n.animate(s,e,i)})),this.filters.clear(),this.filters.pushAll(o)}return n},e.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(e.prototype,"isHover",{get:function(){return!!this.isInteractive()&&this.interactions.isHover},set:function(t){(t=_P(t))!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=t,t?this.handleOver():(this.interactions.isRealHover=!1,this.handleOut()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return!!this.isInteractive()&&this.interactions.isDown},set:function(t){t=_P(t),this.isInteractive()&&this.isDown!=t&&(this.interactions.isDown=t,t?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!!this.isInteractive()&&this.interactions.isFocused},set:function(t){t=_P(t),this.focusable&&this.isFocused!=t&&this.isInteractive()&&(this.interactions.isFocused=t,!0===t?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(t){this.setActive(t)},enumerable:!0,configurable:!0}),e.prototype.setActive=function(t){t=_P(t),this._isActive!==t&&(this._isActive=t,t&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(e.prototype,"disabled",{get:function(){var t=this.getPropertyValue("disabled");return CP(t)?t:this.virtualParent?this.virtualParent.disabled:!!this._parent&&this._parent.disabled},set:function(t){this.setDisabled(t)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(t){if(t=_P(t),this.getPropertyValue("disabled")!=t){if(this.setPropertyValue("disabled",t,!0),t)this.parent=this._parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this._parent){var e=this._parent.element;e.hasChild(this.group)||e.add(this.group)}this instanceof ZD?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),QD.requestFrame(),!0}return!1},Object.defineProperty(e.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(t){this._internalDisabled!=t&&(this._internalDisabled=t,this._updateDisabled=!0,this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.numberFormatter:this._parent?this._parent.numberFormatter:(this._numberFormatter=new AD,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(t){this._numberFormatter=t,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this._parent?this._parent.dateFormatter:(this._dateFormatter=new jD,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(t){this._dateFormatter=t,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this._parent?this._parent.durationFormatter:(this._durationFormatter=new LD,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(t){this._durationFormatter=t,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var t=this._language.get();return t||(this.virtualParent?this.virtualParent.language:this._parent?this._parent.language:(t=new ID,this.language=t,t))},set:function(t){var e=this;this._language.get()!==t&&this._language.set(t,t.events.on("localechanged",(function(t){if(e._numberFormatter&&(e._numberFormatter.language=e.language),e._dateFormatter&&(e._dateFormatter.language=e.language),e._durationFormatter&&(e._durationFormatter.language=e.language),e._exporting.get()){var i=e._exporting.get();i.numberFormatter.language=e.language,i.dateFormatter.language=e.language,i.durationFormatter.language=e.language,i.language=e.language}e instanceof ZD&&e.deepInvalidate()})))},enumerable:!0,configurable:!0}),e.prototype.populateString=function(t,e){if(CP(t)){t=bP(t);var i=(t=FD().escape(t)).match(/\{([^}]+)\}/g),n=void 0;if(i)for(n=0;n<i.length;n++){var r=i[n].replace(/\{([^}]+)\}/,"$1"),s=this.getTagValue(r,"",e);CP(s)||(s=""),t=t.split(i[n]).join(s)}t=FD().unescape(t)}else t="";return this._adapterO?this._adapterO.apply("populateString",t):t},e.prototype.getTagValue=function(t,e,i){var n;CP(i)||(i=this.dataItem);for(var r,s=[],o=/([^.]+)\(([^)]*)\)|([^.]+)/g;null!==(r=o.exec(t));)if(r[3])s.push({prop:r[3]});else{var a=[];if(""!=HS(r[2]))for(var l=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,u=void 0;null!==(u=l.exec(r[2]));)a.push(u[1]||u[2]||u[3]);s.push({method:r[1],params:a})}if(i){CP(n=this.getTagValueFromObject(s,i.values))&&!kP(n)||(n=this.getTagValueFromObject(s,i));var h=i.dataContext;!CP(n)&&h&&!CP(n=this.getTagValueFromObject(s,i.dataContext))&&h.dataContext&&(n=this.getTagValueFromObject(s,h.dataContext)),!CP(n)&&i.component&&i.component.dataItem!==i&&(n=i.component.getTagValue(t,e))}return CP(n)||(n=this.getTagValueFromObject(s,this.populateStringFrom||this)),!CP(n)&&this._parent&&(n=this._parent.getTagValue(t,e)),n},e.prototype.getTagValueFromObject=function(t,e,i){for(var n=e,r=!1,s=0,o=t.length;s<o;s++){var a=t[s];if(a.prop){if(!CP(n=n[a.prop]))return}else switch(a.method){case"formatNumber":var l=qS(n);CP(l)&&(n=this.numberFormatter.format(l,i||a.params[0]||void 0),r=!0);break;case"formatDate":var u=void 0;if(!DP(u=EP(n)?this.dateFormatter.parse(n):YS(n))||yP(u.getTime()))return;CP(u)&&(n=this.dateFormatter.format(u,i||a.params[0]||void 0),r=!0);break;case"formatDuration":var h=qS(n);CP(h)&&(n=this.durationFormatter.format(h,i||a.params[0]||void 0,a.params[1]||void 0),r=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[a.method]&&n[a.method].apply(this,a.params)}}if(!r){var c=[{method:"",params:i}];if(CP(i)){var p=function(t){if(void 0===t)return"string";var e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}(i);"number"===p?c[0].method="formatNumber":"date"===p?c[0].method="formatDate":"duration"===p&&(c[0].method="formatDuration")}else TP(n)?(c[0].method="formatNumber",c[0].params=""):DP(n)&&(c[0].method="formatDate",c[0].params="");c[0].method&&(n=this.getTagValueFromObject(c,n))}return n},Object.defineProperty(e.prototype,"dataItem",{get:function(){if(!this._dataItem){if(this.virtualParent)return this.virtualParent.dataItem;if(this._parent)return this._parent.dataItem}return this._dataItem},set:function(t){this.setDataItem(t)},enumerable:!0,configurable:!0}),e.prototype.setDataItem=function(t){var e=this;if(this._dataItem!=t){if(this._dataItem=t,t){if(this.configField){var i=t.dataContext;i&&(this.config=i[this.configField],!this.config&&i.dataContext&&(this.config=i.dataContext[this.configField]))}var n=t.dataContext;if(n){var r=n.dataContext;NC(this.propertyFields,(function(t,i){if(CP(n[i]))e[t]=n[i];else if(r){var s=r[i];if(CP(s))e[t]=s}}))}}this.invalidate()}},e.prototype.getPropertyValue=function(t){var e=this.properties[t];return this._isTemplate||this._adapterO&&(e=this._adapterO.apply(t,e)),e},e.prototype.setColorProperty=function(t,e,i){var n=this.properties[t];return!(e instanceof OS&&n instanceof OS&&e.toString()==n.toString())&&this.setPropertyValue(t,e,i)},e.prototype.setPercentProperty=function(t,e,i,n,r,s){if(TP(e=PP(e)))return e=VP(e,r,s),this.setPropertyValue(t,e,i,n);var o=this.properties[t];return!(e instanceof gP&&o instanceof gP&&e.value==o.value)&&this.setPropertyValue(t,e,i,n)},e.prototype.setPropertyValue=function(t,e,i,n){if(this.properties[t]!==e&&!this.isDisposed()){if(this.properties[t]=e,this.events.isEnabled("propertychanged")){var r={type:"propertychanged",target:this,property:t};this.events.dispatchImmediately("propertychanged",r)}if(i&&this.invalidate(),n&&this.invalidatePosition(),this.applyOnClones)for(var s=this.clones.values,o=s.length,a=0;a<o;++a){var l=s[a];l.isDisposed()||(l[t]=e)}return!0}return!1},e.prototype.bind=function(t,e,i,n){var r=this;void 0===i&&(i=t),CP(this._bindings[t])&&this._bindings[t].dispose(),this[t]=e[i],this._bindings[t]=e.events.on("propertychanged",(function(s){if(s.property===i){var o=e[i];n&&(o=n(o)),r[t]=o}}))},e.prototype.observe=function(t,e,i,n){var r=this;return new wC(aC(dC(t),(function(t){return r.events.on("propertychanged",(function(n){n.property===t&&e.call(i,n)}),i,n)})))},e.prototype.applyAccessibility=function(){var t=this.readerTitle,e=this.readerDescription,i=this.role,n=this.readerHidden,r=this.readerChecked,s=this.readerControls,o=this.readerLive,a=this.readerOrientation,l=this.readerValueNow,u=this.readerValueText,h=[],c=[],p=this.readerLabelledBy;p&&h.push(p);var d=this.readerDescribedBy;if(d&&c.push(d),!this.showSystemTooltip&&t&&(e=e?t+" -- "+e:t,t=void 0),!t||e||this.showSystemTooltip){if(t){var f=this.titleElement,g=this.uid+"-title";f.node.textContent!=t&&(f.node.textContent=t,f.attr({id:g})),h.push(g)}else this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0);var m=this.uid+"-description";if(e){var y=this.descriptionElement;y.node.textContent!=e&&(y.node.textContent=e,y.attr({id:m})),c.push(m)}else this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0,hC(c,m))}else this.setSVGAttribute({"aria-label":t}),this.removeSVGAttribute("aria-description"),this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0),this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0);h.length?this.setSVGAttribute({"aria-labelledby":h.join(" ")}):this.removeSVGAttribute("aria-labelledby"),c.length?this.setSVGAttribute({"aria-describedby":c.join(" ")}):this.removeSVGAttribute("aria-describedby"),i?this.setSVGAttribute({role:i}):this.removeSVGAttribute("role"),n?this.setSVGAttribute({"aria-hidden":"true"}):this.removeSVGAttribute("aria-hidden"),r?this.setSVGAttribute({"aria-checked":"true"}):!1===r?this.setSVGAttribute({"aria-checked":"false"}):this.removeSVGAttribute("aria-checked"),s?this.setSVGAttribute({"aria-controls":s}):this.removeSVGAttribute("aria-controls"),o?this.setSVGAttribute({"aria-live":o}):this.removeSVGAttribute("aria-live"),a?this.setSVGAttribute({"aria-orientation":a}):this.removeSVGAttribute("aria-orientation"),l?this.setSVGAttribute({"aria-valuenow":l}):this.removeSVGAttribute("aria-valuenow"),u?this.setSVGAttribute({"aria-valuetext":u}):this.removeSVGAttribute("aria-valuetext")},Object.defineProperty(e.prototype,"readerTitle",{get:function(){var t=this.getPropertyValue("readerTitle");return CP(t)&&this.dataItem?this.populateString(t):t},set:function(t){t=wP(t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerDescription",{get:function(){return this.getPropertyValue("readerDescription")},set:function(t){t=wP(t),this.setPropertyValue("readerDescription",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.getPropertyValue("role")},set:function(t){t=wP(t),this.setPropertyValue("role",t)&&(this.applyAccessibility(),"slider"==t&&(this.setSVGAttribute({"aria-valuemin":"0"}),this.setSVGAttribute({"aria-valuemax":"100"})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerHidden",{get:function(){return this.getPropertyValue("readerHidden")},set:function(t){t=_P(t),this.setPropertyValue("readerHidden",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerChecked",{get:function(){return this.getPropertyValue("readerChecked")},set:function(t){t=_P(t),this.setPropertyValue("readerChecked",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerControls",{get:function(){return this.getPropertyValue("readerControls")},set:function(t){t=wP(t),this.setPropertyValue("readerControls",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerLive",{get:function(){return this.getPropertyValue("readerLive")},set:function(t){t=wP(t),this.setPropertyValue("readerLive",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerLabelledBy",{get:function(){return this.getPropertyValue("readerLabelledBy")},set:function(t){t=wP(t),this.setPropertyValue("readerLabelledBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerDescribedBy",{get:function(){return this.getPropertyValue("readerDescribedBy")},set:function(t){t=wP(t),this.setPropertyValue("readerDescribedBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerOrientation",{get:function(){return this.getPropertyValue("readerOrientation")},set:function(t){t=wP(t),this.setPropertyValue("readerOrientation",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerValueNow",{get:function(){return this.getPropertyValue("readerValueNow")},set:function(t){t=wP(t),this.setPropertyValue("readerValueNow",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readerValueText",{get:function(){return this.getPropertyValue("readerValueText")},set:function(t){t=wP(t),this.setPropertyValue("readerValueText",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyboardOptions",{get:function(){if(!this.interactions.keyboardOptions){if(this.virtualParent)return this.virtualParent.keyboardOptions;if(this._parent)return this._parent.keyboardOptions}return this.interactions.keyboardOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mouseOptions",{get:function(){if(!this.interactions.mouseOptions){if(this.virtualParent)return this.virtualParent.mouseOptions;if(this._parent)return this._parent.mouseOptions}return this.interactions.mouseOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interactions",{get:function(){if(!this._interaction){var t=dD().getInteraction(this.dom);this._interaction=t,this._interaction.clickable=this.clickable,this._interaction.hoverable=this.hoverable,this._interaction.trackable=this.trackable,this._interaction.draggable=this.draggable,this._interaction.swipeable=this.swipeable,this._interaction.resizable=this.resizable,this._interaction.wheelable=this.wheelable,this._interaction.contextMenuDisabled=this.contextMenuDisabled,this._interaction.inert=this.inert,this._interaction.sprite=this,this._disposers.push(this._interaction)}return this._interaction},enumerable:!0,configurable:!0}),e.prototype.isInteractive=function(){return!!this._interaction},Object.defineProperty(e.prototype,"focusable",{get:function(){return this.getPropertyValue("focusable")},set:function(t){var e=this;t=_P(t),this.setPropertyValue("focusable",t)&&(t||this.isInteractive())&&(this.interactions.focusable=t,t?(this.setSVGAttribute({focusable:t}),this._tabindex||(this.tabindex=0)):(this.removeSVGAttribute("focusable"),this.tabindex=void 0),this.interactions.setEventDisposer("sprite-focusable",t,(function(){return new wC([e.events.on("blur",e.handleBlur,e,!1),e.events.on("focus",e.handleFocus,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleFocus=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!0),this.focusFilter&&this.filters.push(this.focusFilter),this.hoverOnFocus&&(this.isHover=!0,this.handleOver()))},e.prototype.handleBlur=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!1),this.focusFilter&&this.filters.removeValue(this.focusFilter),this.hoverOnFocus&&(this.isHover=!1,this.handleOut()))},Object.defineProperty(e.prototype,"focusFilter",{get:function(){var t=this._focusFilter;return t||(this.virtualParent?this.virtualParent.focusFilter:this._parent?this._parent.focusFilter:void 0)},set:function(t){this._focusFilter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOnFocus",{get:function(){return this.getPropertyValue("hoverOnFocus")},set:function(t){t!==this.hoverOnFocus&&this.setPropertyValue("hoverOnFocus",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){var t=this._tabindex;return null!=t?t:this.virtualParent?this.virtualParent.tabindex:this._parent?this._parent.tabindex:void 0},set:function(t){t=xP(t),this.setPropertyValue("tabindex",t)&&TP(t)&&(this.interactions.tabindex=t,this.setSVGAttribute({tabindex:t}),this._tabindex=t,this.focusable=t>-1||void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inertiaOptions",{get:function(){return!this.interactions.inertiaOptions&&this._parent?this._parent.inertiaOptions:this.interactions.inertiaOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this.getPropertyValue("draggable")},set:function(t){var e=this;t=_P(t),this.setPropertyValue("draggable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.draggable=t,this.interactions.setEventDisposer("sprite-draggable",t,(function(){return new wC([e.events.on("down",e.handleDown,e,!1),e.events.on("dragstart",e.handleDragStart,e,!1),e.events.on("drag",e.handleDragMove,e,!1),e.events.on("dragstop",e.handleDragStop,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleDragStart=function(t){this.interactions.isTouchProtected&&t.touch||(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this._isDragged=!0,this.hideTooltip(0))},e.prototype.dragStart=function(t){this._isDragged=!0,dD().dragStart(this.interactions,t)},e.prototype.handleDragStop=function(t){this.interactions.isTouchProtected&&t.touch||(this._isDragged=!1,this.showTooltip(),this.interactions.originalPosition=void 0)},e.prototype.dragStop=function(t,e){this._isDragged=!1,dD().dragStop(this.interactions,t,e)},e.prototype.handleDragMove=function(t){if(!this.interactions.isTouchProtected||!t.touch){var e=this.interactions.originalPosition;if(e&&this._isDragged){var i=this._parent.globalScale*this.svgContainer.cssScale;this.moveTo({x:e.x+t.shift.x/i,y:e.y+t.shift.y/i},void 0,void 0,!0)}this.dispatchImmediately("dragged",t)}},Object.defineProperty(e.prototype,"inert",{get:function(){return this.getPropertyValue("inert")},set:function(t){t=_P(t),this.setPropertyValue("inert",t)&&(t||this.isInteractive())&&(this.interactions.inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOptions",{get:function(){if(!this.interactions.hoverOptions){if(this.virtualParent)return this.virtualParent.hoverOptions;if(this._parent)return this._parent.hoverOptions}return this.interactions.hoverOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverable",{get:function(){return this.getPropertyValue("hoverable")},set:function(t){var e=this;t=_P(t),this.setPropertyValue("hoverable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.hoverable=t,this.interactions.setEventDisposer("sprite-hoverable",t,(function(){return new wC([e.events.on("over",e.handleOver,e,!1),e.events.on("out",e.handleOut,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleOver=function(t){if(this._outTimeout&&this._outTimeout.dispose(),this.isHover){this.states.hasKey("hover")&&(this.isHidden||this.applyCurrentState());var e=void 0;t&&t.pointer&&(e=aO(t.pointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale)),"hover"==this.showTooltipOn&&this.showTooltip(e)}else"hover"==this.showTooltipOn&&this.hideTooltip(),!this.isHidden&&this.states.hasKey("hover")&&this.applyCurrentState()},e.prototype.handleOut=function(t){var e=this;this.tooltip&&this.tooltip.targetSprite==this&&this.tooltip.keepTargetHover?this._outTimeout=this.setTimeout((function(){e.tooltip.isHover||(e.tooltip.targetSprite==e&&e.hideTooltip(),e._outTimeout=e.setTimeout(e.handleOutReal.bind(e),e.rollOutDelay))}),10):("hover"==this.showTooltipOn&&this.hideTooltip(),this._outTimeout=this.setTimeout(this.handleOutReal.bind(this),this.rollOutDelay))},e.prototype.handleOutReal=function(){this.isHidden||this.isHiding||!this.states.hasKey("hover")||this.applyCurrentState()},Object.defineProperty(e.prototype,"hitOptions",{get:function(){if(!this.interactions.hitOptions){if(this.virtualParent)return this.virtualParent.hitOptions;if(this._parent)return this._parent.hitOptions}return this.interactions.hitOptions},enumerable:!0,configurable:!0}),e.prototype.handleDown=function(t){1===this.interactions.downPointers.length&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this.interactions.originalAngle=this.rotation,this.interactions.originalScale=this.scale,this.states.hasKey("down")&&this.setState("down"))},e.prototype.handleUp=function(t){var e=this;this._isResized=!1,this.states.hasKey("down")&&this.applyCurrentState(),"hit"==this.showTooltipOn&&(this.updateTooltipPosition(t.pointer.point),this._disposers.push(rS.events.once("exitframe",(function(){e.showTooltip()}))),this._disposers.push(dD().body.events.once("down",(function(t){e.hideTooltip()}))))},Object.defineProperty(e.prototype,"clickable",{get:function(){return this.getPropertyValue("clickable")},set:function(t){var e=this;t=_P(t),this.setPropertyValue("clickable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.clickable=t,this.interactions.setEventDisposer("sprite-clickable",t,(function(){return new wC([e.events.on("down",e.handleDown,e,!1),e.events.on("up",e.handleUp,e,!1)])})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"togglable",{get:function(){return this.getPropertyValue("togglable")},set:function(t){var e=this;t=_P(t),this.setPropertyValue("togglable",t)&&(t||this.isInteractive())&&this.interactions.setEventDisposer("sprite-togglable",t,(function(){return e.events.on("hit",e.handleToggle,e,!1)}))},enumerable:!0,configurable:!0}),e.prototype.handleToggle=function(t){this.isActive=!this.isActive},Object.defineProperty(e.prototype,"contextMenuDisabled",{get:function(){return this.getPropertyValue("contextMenuDisabled")},set:function(t){t=_P(t),this.setPropertyValue("contextMenuDisabled",t)&&(this.interactions.contextMenuDisabled=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.getPropertyValue("url")},set:function(t){this.setPropertyValue("url",t)&&(this._urlDisposer&&this._urlDisposer.dispose(),jS(t)&&(this._urlDisposer=this.events.on("hit",this.urlHandler,this,!1),this.clickable=!0,this.cursorOverStyle=TD.pointer))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseId",{get:function(){return!this._baseId&&this._parent&&(this.baseId=this._parent.baseId),this._baseId},set:function(t){this.setBaseId(t)},enumerable:!0,configurable:!0}),e.prototype.setBaseId=function(t){t!=this._baseId&&(this.invalid&&(this.invalid=!1,rS.removeFromInvalidSprites(this),this.invalidate()),this._baseId=t)},Object.defineProperty(e.prototype,"baseSprite",{get:function(){return this.isBaseSprite?this:this._parent?this._parent.baseSprite:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlTarget",{get:function(){return this.getPropertyValue("urlTarget")},set:function(t){this.setPropertyValue("urlTarget",t)},enumerable:!0,configurable:!0}),e.prototype.urlHandler=function(t){if(jS(this.url)){var e=this.populateString(this.url);"_self"===this.urlTarget?window.location.href=e:window.open(e,this.urlTarget)}},Object.defineProperty(e.prototype,"swipeOptions",{get:function(){if(!this.interactions.swipeOptions){if(this.virtualParent)return this.virtualParent.swipeOptions;if(this._parent)return this._parent.swipeOptions}return this.interactions.swipeOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeable",{get:function(){return this.getPropertyValue("swipeable")},set:function(t){t=_P(t),this.setPropertyValue("swipeable",t)&&(this.applyCursorStyle(),(t||this.isInteractive())&&(this.interactions.swipeable=t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackable",{get:function(){return this.getPropertyValue("trackable")},set:function(t){t=_P(t),this.setPropertyValue("trackable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.trackable=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wheelable",{get:function(){return this.getPropertyValue("wheelable")},set:function(t){this.setPropertyValue("wheelable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.wheelable=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this.getPropertyValue("resizable")},set:function(t){var e=this;t=_P(t),this.setPropertyValue("resizable",t)&&(t||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.resizable=t,this.interactions.setEventDisposer("sprite-resizable",t,(function(){return new wC([e.events.on("down",e.handleDown,e,!1),e.events.on("resize",e.handleResize,e,!1)])})))},enumerable:!0,configurable:!0}),e.prototype.handleResize=function(t){if((!this.interactions.isTouchProtected||!t.touch)&&(this._isResized=!0,this.scale=this.interactions.originalScale*t.scale,this.validatePosition(),this.draggable||this.dragWhileResize)){this._isDragged=!1;var e=YP(aO(t.point1,this.htmlContainer,this.svgContainer.cssScale),aO(t.point2,this.htmlContainer,this.svgContainer.cssScale)),i=lO(t.startPoint1,this._parent),n=lO(t.startPoint2,this._parent),r=this.interactions.originalPosition,s=this.interactions.originalScale;if(r){var o=YP({x:(i.x-r.x)/s,y:(i.y-r.y)/s},{x:(n.x-r.x)/s,y:(n.y-r.y)/s}),a=nO(e,this._parent);this.moveTo({x:a.x-o.x*this.scale,y:a.y-o.y*this.scale},void 0,void 0,!0)}}},Object.defineProperty(e.prototype,"cursorOptions",{get:function(){if(!this.interactions.cursorOptions){if(this.virtualParent)return this.virtualParent.cursorOptions;if(this._parent)return this._parent.cursorOptions}return this.interactions.cursorOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorOverStyle",{set:function(t){this.cursorOptions.overStyle||(this.interactions.cursorOptions={defaultStyle:this.cursorOptions.defaultStyle}),this.cursorOptions.overStyle=t,dD().applyCursorOverStyle(this.interactions)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorDownStyle",{set:function(t){this.cursorOptions.downStyle=t},enumerable:!0,configurable:!0}),e.prototype.applyCursorStyle=function(){},Object.defineProperty(e.prototype,"interactionsEnabled",{get:function(){return!1!==this.getPropertyValue("interactionsEnabled")&&(this.virtualParent?this.virtualParent.interactionsEnabled:!this._parent||this._parent.interactionsEnabled)},set:function(t){if(t=_P(t),this.setPropertyValue("interactionsEnabled",t)){var e=null;t?this.group.node.style.pointerEvents="":e="none",this.group.node.style.pointerEvents=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exporting",{get:function(){return this.getExporting()},set:function(t){this._exporting.set(t,t)},enumerable:!0,configurable:!0}),e.prototype.getExporting=function(){var t=this._exporting.get();return t||(!this.isStandaloneInstance&&this._parent?this._parent.exporting:((t=new KD(this.svgContainer.SVGContainer)).sprite=this,t.language=this.language,t.numberFormatter=this.numberFormatter,t.dateFormatter=this.dateFormatter,t.durationFormatter=this.durationFormatter,this._exporting.set(t,t),t))},Object.defineProperty(e.prototype,"exportable",{get:function(){return this._exportable},set:function(t){var e=this.svgContainer;this._exportable=t,e&&(t?hC(e.nonExportableSprites,this):-1==sC(e.nonExportableSprites,this)&&e.nonExportableSprites.push(this))},enumerable:!0,configurable:!0}),e.prototype.modalPrefix=function(t){return t=TO.classNamePrefix+t},Object.defineProperty(e.prototype,"modal",{get:function(){var t=this.svgContainer;if(t){var e=t.modal;return e.adapter.has("classPrefix",this.modalPrefix)||e.adapter.add("classPrefix",this.modalPrefix),e}},enumerable:!0,configurable:!0}),e.prototype.openModal=function(t,e){var i=this.svgContainer;if(i)return i.openModal(t,e)},e.prototype.closeModal=function(){var t=this.svgContainer;t&&t.closeModal()},Object.defineProperty(e.prototype,"popups",{get:function(){var t=this.svgContainer;if(t){var e=t.popups;return e.template.sprite=this,e.template.adapter.has("classPrefix",this.modalPrefix)||e.template.adapter.add("classPrefix",this.modalPrefix),e}},enumerable:!0,configurable:!0}),e.prototype.openPopup=function(t,e){var i=this.svgContainer;if(i)return i.openPopup(t,e)},e.prototype.closeAllPopups=function(){var t=this.svgContainer;t&&t.closeAllPopups()},Object.defineProperty(e.prototype,"x",{get:function(){return this.getPropertyValue("x")},set:function(t){this.isDragged||this.setPercentProperty("x",t,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelX",{get:function(){var t=NP(this.getPixelX(this.x),this.minX,this.maxX);return this._adapterO?this._adapterO.apply("pixelX",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeX",{get:function(){return this._adapterO?this._adapterO.apply("relativeX",this.getRelativeX(this.x)):this.getRelativeX(this.x)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minX",{get:function(){return this.getPropertyValue("minX")},set:function(t){TP(t)&&(t=VP(t,this._positionPrecision,!0),this.setPropertyValue("minX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxX",{get:function(){return this.getPropertyValue("maxX")},set:function(t){TP(t)&&(t=VP(t,this._positionPrecision,!0),this.setPropertyValue("maxX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.getPropertyValue("y")},set:function(t){this.isDragged||this.setPercentProperty("y",t,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelY",{get:function(){var t=NP(this.getPixelY(this.y),this.minY,this.maxY);return this._adapterO?this._adapterO.apply("pixelY",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeY",{get:function(){return this._adapterO?this._adapterO.apply("relativeY",this.getRelativeX(this.y)):this.getRelativeX(this.y)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minY",{get:function(){return this.getPropertyValue("minY")},set:function(t){TP(t)&&(t=VP(t,this._positionPrecision,!0),this.setPropertyValue("minY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxY",{get:function(){return this.getPropertyValue("maxY")},set:function(t){TP(t)&&(t=VP(t,this._positionPrecision,!0),this.setPropertyValue("maxY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx",{get:function(){return this.getPropertyValue("dx")},set:function(t){TP(t)&&(t=VP(t,this._positionPrecision,!0),this.setPropertyValue("dx",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy",{get:function(){return this.getPropertyValue("dy")},set:function(t){TP(t)&&(t=VP(t,this._positionPrecision,!0),this.setPropertyValue("dy",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.getPropertyValue("rotation")},set:function(t){TP(t=xP(t))||(t=0),this.setPropertyValue("rotation",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this.getPropertyValue("align")},set:function(t){t=wP(t),this.setPropertyValue("align",t)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valign",{get:function(){return this.getPropertyValue("valign")},set:function(t){t=wP(t),this.setPropertyValue("valign",t)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalCenter",{get:function(){return this.getPropertyValue("horizontalCenter")},set:function(t){t=wP(t),this.setPropertyValue("horizontalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalCenter",{get:function(){return this.getPropertyValue("verticalCenter")},set:function(t){t=wP(t),this.setPropertyValue("verticalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){var t=this.getPropertyValue("maxWidth");if(!TP(t)&&this._parent){var e=this._parent.maxWidth;return"absolute"!=this._parent.layout&&"none"!=this.align&&null!=this.align&&(e=e-this.pixelMarginLeft-this.pixelMarginRight),e}return t},set:function(t){this.setMaxWidth(t)},enumerable:!0,configurable:!0}),e.prototype.setMaxWidth=function(t){var e=this.maxWidth,i=this.maxHeight;if(this.setPropertyValue("maxWidth",t)){TP(this.relativeWidth)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:i};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(e.prototype,"maxHeight",{get:function(){var t=this.getPropertyValue("maxHeight");if(!TP(t)&&this._parent){var e=this._parent.maxHeight;return"absolute"!=this._parent.layout&&"none"!=this.valign&&null!=this.valign&&(e=e-this.pixelMarginTop-this.pixelMarginBottom),e}return t},set:function(t){this.setMaxHeight(t)},enumerable:!0,configurable:!0}),e.prototype.setMaxHeight=function(t){var e=this.maxWidth,i=this.maxHeight;if(this.setPropertyValue("maxHeight",t)){TP(this.relativeHeight)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:i};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(t){this.setPercentProperty("width",t,!0,!1,this._positionPrecision,!0)&&(this.percentWidth=void 0,this.relativeWidth=void 0,t instanceof gP?(this.percentWidth=t.percent,TP(this._pixelWidth)&&(this.maxWidth=void 0),this._pixelWidth=void 0):(this._pixelWidth=Number(t),this.maxWidth=this._pixelWidth),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(t){this.setPercentProperty("height",t,!0,!1,this._positionPrecision,!0)&&(this.percentHeight=void 0,this._relativeHeight=void 0,t instanceof gP?(this.percentHeight=t.percent,TP(this._pixelHeight)&&(this.maxHeight=void 0),this._pixelHeight=void 0):(this._pixelHeight=Number(t),this.maxHeight=this._pixelHeight),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelWidth",{get:function(){var t;t=TP(this.percentWidth)?this.maxWidth:TP(this._pixelWidth)?this._pixelWidth:0;var e=this.minWidth;null!=e&&t<e&&(t=e);var i=VP(t,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelWidth",i):i},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){var t;t=TP(this.percentHeight)?this.maxHeight:TP(this._pixelHeight)?this._pixelHeight:0;var e=this.minHeight;null!=e&&t<e&&(t=e);var i=VP(t,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelHeight",i):i},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeWidth",{get:function(){var t=this._relativeWidth;if(TP(t))return this._adapterO?this._adapterO.apply("relativeWidth",t):t},set:function(t){this._relativeWidth!=t&&(this._relativeWidth=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeHeight",{get:function(){var t=this._relativeHeight;if(TP(t))return this._adapterO?this._adapterO.apply("relativeHeight",t):t},set:function(t){this._relativeHeight!=t&&(this._relativeHeight=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measuredWidth",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredWidth",this._measuredWidth):this._measuredWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measuredHeight",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredHeight",this._measuredHeight):this._measuredHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outerWidth",{get:function(){var t=this.pixelWidth+this.pixelMarginRight+this.pixelMarginLeft;return this._adapterO?this._adapterO.apply("outerWidth",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outerHeight",{get:function(){var t=this.pixelHeight+this.pixelMarginTop+this.pixelMarginBottom;return this._adapterO?this._adapterO.apply("outerHeight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerWidth",{get:function(){var t=Math.max(0,this.pixelWidth-this.pixelPaddingRight-this.pixelPaddingLeft);return this._adapterO?this._adapterO.apply("innerWidth",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerHeight",{get:function(){var t=Math.max(0,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom);return this._adapterO?this._adapterO.apply("innerHeight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalScale",{get:function(){var t=this.scale;return this._parent&&(t*=this._parent.globalScale),this._adapterO?this._adapterO.apply("globalScale",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.getPropertyValue("scale")},set:function(t){(t=xP(t))<0&&(t=0),t!=this.getPropertyValue("scale")&&(this.setPropertyValue("scale",t,!1,!0),this.handleGlobalScale())},enumerable:!0,configurable:!0}),e.prototype.margin=function(t,e,i,n){return this.marginTop=t,this.marginRight=e,this.marginBottom=i,this.marginLeft=n,this},Object.defineProperty(e.prototype,"marginLeft",{get:function(){return this.getPropertyValue("marginLeft")},set:function(t){this.setPercentProperty("marginLeft",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginRight",{get:function(){return this.getPropertyValue("marginRight")},set:function(t){this.setPercentProperty("marginRight",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginTop",{get:function(){return this.getPropertyValue("marginTop")},set:function(t){this.setPercentProperty("marginTop",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginBottom",{get:function(){return this.getPropertyValue("marginBottom")},set:function(t){this.setPercentProperty("marginBottom",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginRight",{get:function(){var t=this.getPixelX(this.marginRight);return this._adapterO?this._adapterO.apply("pixelMarginRight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginRight",{get:function(){var t=this.getRelativeX(this.marginRight);return this._adapterO?this._adapterO.apply("relativeMarginRight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginLeft",{get:function(){var t=this.getPixelX(this.marginLeft);return this._adapterO?this._adapterO.apply("pixelMarginLeft",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginLeft",{get:function(){var t=this.getRelativeX(this.marginLeft);return this._adapterO?this._adapterO.apply("relativeMarginLeft",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginTop",{get:function(){var t=this.getPixelY(this.marginTop);return this._adapterO?this._adapterO.apply("pixelMarginTop",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginTop",{get:function(){var t=this.getRelativeY(this.marginTop);return this._adapterO?this._adapterO.apply("relativeMarginTop",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelMarginBottom",{get:function(){var t=this.getPixelY(this.marginBottom);return this._adapterO?this._adapterO.apply("pixelMarginBottom",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeMarginBottom",{get:function(){var t=this.getRelativeY(this.marginBottom);return this._adapterO?this._adapterO.apply("relativeMarginBottom",t):t},enumerable:!0,configurable:!0}),e.prototype.padding=function(t,e,i,n){return this.paddingTop=t,this.paddingRight=e,this.paddingBottom=i,this.paddingLeft=n,this},Object.defineProperty(e.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft")},set:function(t){this.setPercentProperty("paddingLeft",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight")},set:function(t){this.setPercentProperty("paddingRight",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingTop",{get:function(){return this.getPropertyValue("paddingTop")},set:function(t){this.setPercentProperty("paddingTop",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingBottom",{get:function(){return this.getPropertyValue("paddingBottom")},set:function(t){this.setPercentProperty("paddingBottom",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingRight",{get:function(){return this.getPixelX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingRight",{get:function(){return this.getRelativeX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingLeft",{get:function(){return this.getPixelX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingLeft",{get:function(){return this.getRelativeX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingTop",{get:function(){return this.getPixelY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingTop",{get:function(){return this.getRelativeY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPaddingBottom",{get:function(){return this.getPixelY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativePaddingBottom",{get:function(){return this.getRelativeY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(t){this.setPath(t)},enumerable:!0,configurable:!0}),e.prototype.setPath=function(t){return!!this.setPropertyValue("path",t)&&(this._adapterO&&(t=this._adapterO.apply("path",t)),this._isPath||(this.element&&(!this.element.node||this.element.node instanceof SVGPathElement)||(this.element=this.paper.add("path")),this._isPath=!0),CP(t)?this.element.attr({d:t}):this.element.removeAttr("d"),this.invalidatePosition(),this.inited||this.events.once("inited",this.validatePosition,this,!1),!0)},Object.defineProperty(e.prototype,"fillModifier",{get:function(){return this.getPropertyValue("fillModifier")},set:function(t){this.setPropertyValue("fillModifier",t)&&this.setFill(this.fill)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeModifier",{get:function(){return this.getPropertyValue("strokeModifier")},set:function(t){this.setPropertyValue("strokeModifier",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this.getPropertyValue("fillOpacity")},set:function(t){t=LP(t,0,1),this.setPropertyValue("fillOpacity",t)&&this.setSVGAttribute({"fill-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this.getPropertyValue("fill")},set:function(t){this.setFill(t)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(t){if(kP(t)||(t=ES(t)),this.setColorProperty("fill",t)||this.fillModifier)if(t instanceof OS&&this.fillModifier&&(t=this.fillModifier.modify(t)),this.realFill=t,t instanceof OS)this.setSVGAttribute({fill:t.toString()});else if(CP(t)){if(t instanceof SD||t instanceof OD||t instanceof DD){var e=t;e.paper=this.paper,this.setSVGAttribute({fill:'url("'+FS()+e.id+'")'})}}else this.removeSVGAttribute("fill")},Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getPropertyValue("opacity")},set:function(t){t=LP(t,0,1),this.setPropertyValue("opacity",t)&&this.setSVGAttribute({opacity:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.getPropertyValue("stroke")},set:function(t){this.setStroke(t)},enumerable:!0,configurable:!0}),e.prototype.setStroke=function(t){if(kP(t)||(t=ES(t)),this.setColorProperty("stroke",t)||this.strokeModifier)if(t instanceof OS&&this.strokeModifier&&(t=this.strokeModifier.modify(t)),this.realStroke=t,t instanceof OS)"none"==t.hex?this.removeSVGAttribute("stroke"):this.setSVGAttribute({stroke:t.toString()});else if(CP(t)){if(t instanceof SD||t instanceof OD||t instanceof DD){var e=t;e.paper=this.paper,this.setSVGAttribute({stroke:'url("'+FS()+e.id+'")'})}}else this.removeSVGAttribute("stroke")},Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this.getPropertyValue("strokeOpacity")},set:function(t){t=LP(t,0,1),this.setPropertyValue("strokeOpacity",t)&&this.setSVGAttribute({"stroke-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScalingStroke",{get:function(){return this.getPropertyValue("nonScalingStroke")},set:function(t){t=_P(t),this.setPropertyValue("nonScalingStroke",t)&&(this.strokeWidth=this.strokeWidth)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScaling",{get:function(){return this.getPropertyValue("nonScaling")},set:function(t){t=_P(t),this.setPropertyValue("nonScaling",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.getPropertyValue("strokeWidth")},set:function(t){t=xP(t),this.setPropertyValue("strokeWidth",t,!0),this.nonScalingStroke&&(TP(t)||(t=1),t/=this.globalScale),this.setSVGAttribute({"stroke-width":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDasharray",{get:function(){return this.getPropertyValue("strokeDasharray")},set:function(t){t=wP(t),this.setPropertyValue("strokeDasharray",t)&&this.setSVGAttribute({"stroke-dasharray":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeDashoffset",{get:function(){return this.getPropertyValue("strokeDashoffset")},set:function(t){t=xP(t),this.setPropertyValue("strokeDashoffset",t)&&this.setSVGAttribute({"stroke-dashoffset":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeLinecap",{get:function(){return this.getPropertyValue("strokeLinecap")},set:function(t){this.setPropertyValue("strokeLinecap",t)&&this.setSVGAttribute({"stroke-linecap":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeLinejoin",{get:function(){return this.getPropertyValue("strokeLinejoin")},set:function(t){this.setPropertyValue("strokeLinejoin",t)&&this.setSVGAttribute({"stroke-linejoin":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shapeRendering",{get:function(){return this.getPropertyValue("shapeRendering")},set:function(t){t=wP(t),this.setPropertyValue("shapeRendering",t)&&this.setSVGAttribute({"shape-rendering":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelPerfect",{get:function(){return this.getPropertyValue("pixelPerfect")},set:function(t){t=_P(t),this._positionPrecision=t?0:3,this.setPropertyValue("pixelPerfect",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rtl",{get:function(){return CP(this._rtl)?this._rtl:!!this._topParent&&this._topParent.rtl},set:function(t){t=_P(t),this.isBaseSprite&&(this.topParent.rtl=t),this._rtl=t},enumerable:!0,configurable:!0}),e.prototype.show=function(t){return this.showReal(t)},e.prototype.showReal=function(t){var e=this;if(!this.preventShow){var i,n=this.defaultState.properties;if(!this.disabled&&(this.isHidden||!this.visible||this.isHiding||null!=n.opacity&&this.opacity<n.opacity&&!this.isShowing)&&!this.isDisposed()){this.invalid&&this.validate(),this.positionInvalid&&this.validatePosition(),TP(t)||(t=this.defaultState.transitionDuration),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this._showHideDisposer&&this.removeDispose(this._showHideDisposer),this._isHidden=!1,this.isHiding=!1,this.isShowing=!0,(i=this.applyCurrentState(t))&&!i.isFinished()?(this._showHideDisposer=i.events.on("animationended",(function(){e.isShowing=!1})),this._disposers.push(this._showHideDisposer)):this.isShowing=!1;var r=this.defaultState.properties.visible;CP(r)||(r=!0),this.visible=r,this.readerHidden=!1,this.dispatchImmediately("shown")}return i}},e.prototype.hide=function(t){return this.hideReal(t)},e.prototype.hideReal=function(t){var e,i=this;if(!this.isHiding&&this.visible&&!this.isDisposed()){this.tooltip&&this.tooltip.currentSprite==this&&this.hideTooltip(0),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this.isShowing=!1,this._showHideDisposer&&this.removeDispose(this._showHideDisposer);var n=this.hiddenState;n?(e=this.setState(n,t,void 0))&&!e.isFinished()?(this._hideAnimation=e,this._showHideDisposer=e.events.on("animationended",(function(){i.isHiding=!1,i._isHidden=!0}),this),this._disposers.push(this._showHideDisposer),this._disposers.push(e)):(this.isHiding=!1,this._isHidden=!0):(this.visible=!1,this.isHiding=!1,this._isHidden=!0),this.readerHidden=!0,this.dispatchImmediately("hidden"),this.invalidate()}return TP(t)||(t=this.hiddenState.transitionDuration),e},Object.defineProperty(e.prototype,"visible",{get:function(){return this.getVisibility()},set:function(t){t=_P(t),this.setVisibility(t)},enumerable:!0,configurable:!0}),e.prototype.getVisibility=function(){var t=this.getPropertyValue("visible");return CP(t)||(t=!0),t},e.prototype.setVisibility=function(t){if(this.setPropertyValue("visible",t)&&(t?this.group.removeAttr("visibility"):this.group.attr({visibility:"hidden"}),this.events.isEnabled("visibilitychanged"))){var e={type:"visibilitychanged",target:this,visible:t};this.events.dispatchImmediately("visibilitychanged",e)}},Object.defineProperty(e.prototype,"zIndex",{get:function(){return this.getPropertyValue("zIndex")},set:function(t){t=xP(t),this.setPropertyValue("zIndex",t)&&this.dispatch("zIndexChanged")},enumerable:!0,configurable:!0}),e.prototype.toFront=function(){var t=this._parent;t&&t.children.indexOf(this)!=t.children.length-1&&(t.children.moveValue(this,t.children.length-1),this.dispatch("zIndexChanged"))},e.prototype.toBack=function(){var t=this._parent;t&&0!=t.children.indexOf(this)&&(t.children.moveValue(this,0),this.dispatch("zIndexChanged"))},Object.defineProperty(e.prototype,"userClassName",{get:function(){return this.getPropertyValue("userClassName")},set:function(t){this.setPropertyValue("userClassName",t)&&(!t&&this.userClassName&&this.group.removeClass(this.userClassName),this.setClassName())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip?this._tooltip:this.virtualParent?this.virtualParent.tooltip:this._parent?this._parent.tooltip:void 0},set:function(t){this._tooltip&&this.removeDispose(this._tooltip),this._tooltip=t,t&&(t.parent=this.tooltipContainer)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDataItem",{get:function(){var t=this._tooltipDataItem;return t||this.dataItem},set:function(t){this._tooltipDataItem=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipColorSource",{get:function(){return this._tooltipColorSource},set:function(t){this._tooltipColorSource=t},enumerable:!0,configurable:!0}),e.prototype.showTooltip=function(t){"always"==this.showTooltipOn&&!this._tooltip&&this.tooltip&&(this._tooltip=this.tooltip.clone()),!t&&"pointer"==this.tooltipPosition&&this.isHover&&(t=aO(dD().lastPointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale));for(var e=this;null!=e;){if(!e.visible||e.disabled||e.__disabled)return void(this._tooltip&&this._tooltip.visible&&this._tooltip.hide(0));e=e.parent}if(CP(this.tooltipText)||CP(this.tooltipHTML)){var i=this.tooltip,n=this.tooltipDataItem;if(i){i.targetSprite=this;var r=this,s=this.tooltipColorSource;if((i.getStrokeFromObject||i.getFillFromObject)&&s&&(s.isTemplate?n&&uC(n.sprites,(function(t){return t.clonedFrom!=s||(r=t,!1)})):r=s),i.getStrokeFromObject){for(var o=this.stroke,a=r;null!=a.parent&&(null==(o=a.stroke)&&(a=a.parent),null==o););o instanceof OS?i.background.animate({property:"stroke",to:o},i.animationDuration):i.background.stroke=o}if(i.dataItem=n,i.label.populateStringFrom=this,i.getFillFromObject){var l=this.fill;for(a=r;null!=a.parent;)if(null==(l=a.fill)||l instanceof OS&&null==l.rgb)a=a.parent;else if(null!=l)break;null==l&&(l=DS("#000000")),l instanceof OS&&i.visible?i.background.animate({property:"fill",to:l},i.animationDuration):i.background.fill=l,i.autoTextColor&&l instanceof OS&&(i.label.fill=l.alternative)}var u="";if(this.tooltipHTML&&(i.html=this.tooltipHTML,u=this.tooltipHTML),this.tooltipText&&(i.text=this.tooltipText,u=this.tooltipText),this.updateTooltipPosition(t)){if(i.readerDescribedBy=this.uidAttr(),i.label.invalid&&i.label.validate(),null!=u&&""!=u&&""!=i.label.currentText){i&&!i.parent&&(i.parent=this.tooltipContainer);var h=i.defaultState.transitionDuration;return h<=0&&(h=1),i.show(h),i.currentSprite=this,!0}this.hideTooltip(0)}else this.hideTooltip(0)}}return!1},e.prototype.updateTooltipPosition=function(t){var e=this;if("pointer"!=this.tooltipPosition){var i=rO({x:this.getTooltipX(),y:this.getTooltipY()},this);return this.pointTooltipTo(i)}if(this._interactionDisposer&&this._interactionDisposer.dispose(),this._interactionDisposer=dD().body.events.on("track",(function(t){return e.pointTooltipTo(aO(t.point,e.svgContainer.SVGContainer,e.svgContainer.cssScale),!0)})),t)return this.pointTooltipTo(t,!0)},e.prototype.pointTooltipTo=function(t,e){var i=this.tooltip;if(i&&this.topParent){if(i.showInViewport)return i.pointTo(t,e),!0;if(function(t,e){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>e.y&&t.y<e.y+e.height}(t,{x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight}))return i.pointTo(t,e),!0}return!1},e.prototype.hideTooltip=function(t){if("always"!=this.showTooltipOn){var e=this.tooltip;e&&(e.targetSprite==this&&(e.targetSprite=void 0),e.hide(t),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0))}},Object.defineProperty(e.prototype,"tooltipHTML",{get:function(){return this.getPropertyValue("tooltipHTML")},set:function(t){t=wP(t),this.hoverable=!0,this.setPropertyValue("tooltipHTML",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipText",{get:function(){return this.getPropertyValue("tooltipText")},set:function(t){(t=wP(t))&&(this.hoverable=!0),this.setPropertyValue("tooltipText",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipContainer",{get:function(){return this._tooltipContainer?this._tooltipContainer:this._parent?this._parent.tooltipContainer:void 0},set:function(t){this._tooltipContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipX",{get:function(){return this.getTooltipX()},set:function(t){this.setPercentProperty("tooltipX",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alwaysShowTooltip",{get:function(){return"always"==this.getPropertyValue("showTooltipOn")},set:function(t){(t=_P(t))&&(this.showTooltipOn="always")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showTooltipOn",{get:function(){return this.getPropertyValue("showTooltipOn")},set:function(t){this.setPropertyValue("showTooltipOn",t)&&("hit"==t&&(this.clickable=!0),this.tooltip&&("always"==t?this.showTooltip():this.handleAlwaysShowTooltip()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipPosition",{get:function(){return this.getPropertyValue("tooltipPosition")},set:function(t){this.setPropertyValue("tooltipPosition",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipY",{get:function(){return this.getTooltipY()},set:function(t){this.setPercentProperty("tooltipY",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t,e=this.getPropertyValue("tooltipX");return CP(e)||(e=mP(50)),TP(e)&&(t=e),e instanceof gP&&(t=this.maxLeftSelf+this._measuredWidthSelf*e.value-this.pixelPaddingLeft-this.ex),TP(t)||(t=0),t},e.prototype.getTooltipY=function(){var t,e=this.getPropertyValue("tooltipY");return CP(e)||(e=mP(50)),TP(e)&&(t=e),e instanceof gP&&(t=this.maxTopSelf+this._measuredHeightSelf*e.value-this.pixelPaddingTop-this.ey),TP(t)||(t=0),t},e.prototype.raiseCriticalError=function(t,e){this.svgContainer&&(this._adapterO?this.modal.content=this._adapterO.apply("criticalError",t).message:this.modal.content=t.message,e?this.modal.closable=!0:this.disabled=!0,TO.suppressErrors||this.modal.open()),TO.verbose&&console.log(t)},e.prototype.processConfig=function(e){e&&(CP(e.tooltipColorSource)&&EP(e.tooltipColorSource)&&this.map.hasKey(e.tooltipColorSource)&&(e.tooltipColorSource=this.map.getKey(e.tooltipColorSource)),CP(e.cursorOverStyle)&&EP(e.cursorOverStyle)&&(e.cursorOverStyle=this.getCursorStyle(e.cursorOverStyle)),CP(e.cursorDowntyle)&&EP(e.cursorDowntyle)&&(e.cursorDowntyle=this.getCursorStyle(e.cursorDowntyle)),CP(e.cursorOptions)&&(CP(e.cursorOptions.overStyle)&&EP(e.cursorOptions.overStyle)&&(e.cursorOptions.overStyle=this.getCursorStyle(e.cursorOptions.overStyle)),CP(e.cursorOptions.downStyle)&&EP(e.cursorOptions.downStyle)&&(e.cursorOptions.downStyle=this.getCursorStyle(e.cursorOptions.downStyle)))),t.prototype.processConfig.call(this,e),this.processDelayedMap()},e.prototype.getCursorStyle=function(t){switch(t){case"grab":return TD.grab;case"grabbing":return TD.grabbing;case"pointer":return TD.pointer;case"horizontalResize":return TD.horizontalResize;case"verticalResize":return TD.verticalResize;default:return TD.default}},e.prototype.configOrder=function(e,i){return e==i?0:"tooltipColorSource"==e?1:"tooltipColorSource"==i?-1:t.prototype.configOrder.call(this,e,i)},Object.defineProperty(e.prototype,"isHidden",{get:function(){return this._isHidden?this._isHidden:!!this._parent&&this._parent.isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOnInit",{get:function(){return this.getPropertyValue("showOnInit")},set:function(t){t=_P(t),this.setShowOnInit(t)},enumerable:!0,configurable:!0}),e.prototype.setShowOnInit=function(t){this.setPropertyValue("showOnInit",t)&&(this.isTemplate||(!t||this.inited||this.hidden?this._showOnInitDisposer&&this._showOnInitDisposer.dispose():(this._showOnInitDisposer=new wC([rS.events.once("enterframe",this.hideInitially,this),this.events.once("beforevalidated",this.hideInitially,this,!1),this.events.on("inited",this.appear,this,!1)]),this._disposers.push(this._showOnInitDisposer))))},e.prototype.hideInitially=function(){this.isDisposed()||(this.appeared=!1,this.inited||this.hide(0))},e.prototype.appear=function(){var t=this;if(this.appeared=!1,this.hidden||this.isHidden||this.hide(0),this.hidden)this.appeared=!0,this.dispatch("appeared");else{var e=this.show();e&&!e.isFinished()?this.addDisposer(e.events.on("animationended",(function(){t.appeared=!0,t.dispatch("appeared")}))):(this.appeared=!0,this.dispatch("appeared"))}},Object.defineProperty(e.prototype,"hidden",{get:function(){return this.getPropertyValue("hidden")},set:function(t){t=_P(t),this.setPropertyValue("hidden",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this._bbox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"plugins",{get:function(){var t=this;return this._plugins||(this._plugins=new uS,this._disposers.push(this._plugins.events.on("inserted",(function(e){e.newValue.target=t,e.newValue.init()}))),this._disposers.push(new aS(this._plugins))),this._plugins},enumerable:!0,configurable:!0}),e.prototype._systemUpdate=function(t){this.validate()},e.prototype._systemCheckIfValidate=function(){return!0},e.prototype._systemValidatePositions=function(){this.validatePosition()},e.prototype._systemValidateLayouts=function(){},e}(kS);rS.registeredClasses.Sprite=qD;var XD=function(t){function e(){var e=t.call(this)||this;return e.className="Rectangle",e.element=e.paper.add("rect"),e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this._positionPrecision;this.pixelPerfect&&(e=0);var i=VP(this.innerWidth,e),n=VP(this.innerHeight,e);this.element.attr({width:i,height:n})},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),e}(qD);rS.registeredClasses.Rectangle=XD;var ZD=function(t){function e(){var e=t.call(this)||this;return e._childrenByLayout=[],e._childrenDisposers=new eS,e.hasFocused=!1,e.setStateOnSprites=[],e.layoutInvalid=!1,e._absoluteWidth=0,e._absoluteHeight=0,e._shouldBeReady=[],e._tapToActivate=!1,e.tapTimeout=3e3,e.className="Container",e._element=e.paper.addGroup("g"),e.group.add(e.element),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("layout","absolute"),e.setPropertyValue("fixedWidthGrid",!1),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e._positionPrecision=4,e._disposers.push(new tS(e._childrenDisposers)),e.children.events.on("inserted",e.handleChildAdded,e),e.children.events.on("removed",e.handleChildRemoved,e),e.applyTheme(),e}return uP(e,t),e.prototype.handleChildAdded=function(t){this.processChild(t.newValue)},e.prototype.processChild=function(t){try{this._childrenDisposers.insertKey(t.uid,new wC([t.events.on("transformed",this.handleChildTransform,this),t.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch(e){}this.element&&this.element.add(t.group);t.parent=this,t.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:t}),this.invalidate()},e.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},e.prototype.handleChildRemoved=function(t){var e=t.oldValue;(this._childrenDisposers.removeKey(e.uid),this.element)&&this.element.removeElement(e.group);e.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:e})},e.prototype.handleChildTransform=function(t){t.target.isMeasured&&this.invalidateLayout()},e.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||(this.layoutInvalid=!0,rS.addToInvalidLayouts(this),QD.requestFrame())},e.prototype.invalidate=function(){t.prototype.invalidate.call(this),this.invalidateLayout()},e.prototype.deepInvalidate=function(){t.prototype.invalidate.call(this),lC(this._childrenByLayout,(function(t){t instanceof e?t.deepInvalidate():t.invalidate()})),this.invalidateLayout()},Object.defineProperty(e.prototype,"children",{get:function(){return this._children||(this._children=new uS),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),e.prototype.removeElement=function(){},e.prototype.sortChildren=function(){var t=this;if(this._childrenByLayout=[],"none"!=this.layout&&"absolute"!=this.layout&&this.layout){var e=[],i=[];KC(this.children.iterator(),(function(n){"horizontal"==t.layout||"grid"==t.layout?TP(n.percentWidth)?i.push(n):e.push(n):"vertical"==t.layout&&TP(n.percentHeight)?i.push(n):e.push(n)})),this._childrenByLayout=e.concat(i)}else this._childrenByLayout=this.children.values;this.calculateRelativeSize()},e.prototype.calculateRelativeSize=function(){var t=this,e=0,i=0;lC(this._childrenByLayout,(function(t){t.isMeasured&&(TP(t.percentWidth)&&(e+=t.percentWidth),TP(t.percentHeight)&&(i+=t.percentHeight))})),lC(this._childrenByLayout,(function(n){n.isMeasured&&("horizontal"==t.layout&&(TP(n.percentWidth)&&(n.relativeWidth=n.percentWidth/e),TP(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100)),"vertical"==t.layout&&(TP(n.percentHeight)&&(n.relativeHeight=n.percentHeight/i),TP(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100)),"grid"==t.layout&&(TP(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100),TP(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100))),"absolute"!=t.layout&&n.isMeasured||(TP(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100),TP(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100))}))},e.prototype.addChildren=function(){if(this.element){var t=fC(this.children.values),e=t.map((function(t,e){return{idx:e,data:t}}));e.sort((function(t,e){var i=t.data.zIndex||0,n=e.data.zIndex||0;return i<n?-1:i>n?1:t.idx-e.idx})),t=e.map((function(t){return t.data}));var i=this.element,n=!0;if(i.node&&i.node.childNodes)for(var r=0,s=i.node.childNodes.length;r<s;r++)if(i.node.childNodes[r]!=t[r].group.node){n=!1;break}n||(lC(t,(function(t){t.group&&i.add(t.group)})),this._background&&this.group.addToBack(this._background.group),this.invalidateLayout())}},e.prototype.createChild=function(t){var e=new t;return e.parent=this,e},e.prototype.removeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.parent=void 0,this.children.removeValue(t)}},e.prototype.disposeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.dispose(),this.children.removeValue(t)}},Object.defineProperty(e.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(t){this._background&&this.background!=t&&this.removeDispose(this._background),t&&(this._background=t,this._disposers.push(t),this.processBackground())},enumerable:!0,configurable:!0}),e.prototype.handleGlobalScale=function(){t.prototype.handleGlobalScale.call(this),this.children.each((function(t){t.handleGlobalScale()}))},e.prototype.createBackground=function(){return new XD},e.prototype.processBackground=function(){var t=this._background;t&&(t.isMeasured=!1,this._background.fill=(new nD).getFor("background"),t.parent=this,t.isMeasured=!1,this.children.removeValue(t),this._disposers.push(t),this.group.addToBack(this._background.group))},e.prototype.validateLayout=function(){var t=this;rS.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var e=0,i=0,n=!0;this.children&&(this.sortChildren(),lC(this._childrenByLayout,(function(r){var s,o;if(TP(r.relativeWidth)?(s=VP(t._availableWidth*r.relativeWidth,2),"horizontal"==t.layout&&(s-=r.pixelMarginRight+r.pixelMarginLeft)):"horizontal"==t.layout&&r.invalid&&r.validate(),TP(r.relativeHeight)?(o=VP(t._availableHeight*r.relativeHeight,2),"vertical"==t.layout&&(o-=r.pixelMarginTop+r.pixelMarginBottom)):"vertical"==t.layout&&r.invalid&&r.validate(),0==r.invalid){if(TP(r.relativeWidth)&&(r.maxWidth=s),TP(r.relativeHeight)&&(r.maxHeight=o),r.isMeasured){"horizontal"==t.layout&&(TP(r.percentWidth)||r.measuredWidth>0&&(t._availableWidth-=r.measuredWidth+r.pixelMarginLeft+r.pixelMarginRight)),"vertical"==t.layout&&(TP(r.percentHeight)||r.measuredHeight>0&&(t._availableHeight-=r.measuredHeight+r.pixelMarginTop+r.pixelMarginBottom));var a=r.measuredWidth,l=r.measuredHeight;"none"!=r.align&&(a+=r.pixelMarginLeft+r.pixelMarginRight),"none"!=r.valign&&(l+=r.pixelMarginTop+r.pixelMarginBottom),e=Math.max(e,a),i=Math.max(i,l)}}else r.isMeasured&&(TP(r.relativeWidth)&&r.maxWidth!=s&&(r.maxWidth=s,n=!1),TP(r.relativeHeight)&&r.maxHeight!=o&&(r.maxHeight=o,n=!1))}))),this._absoluteWidth=e,this._absoluteHeight=i,n&&this.arrange()},e.prototype.arrange=function(){var t,e,i,n,r,s,o,a,l,u,h,c=this,p=this.children,d=0,f=0,g=zP(this.innerWidth,this._absoluteWidth),m=zP(this.innerHeight,this._absoluteHeight),y=this.pixelPaddingLeft,v=this.pixelPaddingRight,b=this.pixelPaddingTop,_=this.pixelPaddingBottom,x=0,w=0,P=0,C=0,S=[],O=[],D=this.maxWidth,E=this.maxHeight,T=this.minWidth,k=this.minHeight,I=fC(p.values);if(this.reverseOrder&&I.reverse(),"grid"==this.layout){s=D,r=1;for(var M=0,F=I.length;M<F;M++){if((j=I[M]).isMeasured&&!j.disabled&&!j.__disabled){var A=j.measuredWidth;A<s&&(s=A),A>r&&(r=A)}}s=NP(s,1,D),r=NP(r,1,D),o=this.fixedWidthGrid?D/r:D/s,o=zP(1,Math.floor(o)),o=UP(this.maxColumns,o),S=this.getColumnWidth(I,o,r)}for(M=0,F=I.length;M<F;M++){var j;if(!(j=I[M]).isMeasured||j.disabled||j.__disabled)j.validatePosition();else{var L=void 0,V=void 0,R=j.pixelMarginLeft,N=j.pixelMarginRight,B=j.pixelMarginTop,H=j.pixelMarginBottom,z=j.measuredWidth,U=j.measuredHeight,W=void 0,G=void 0,$=void 0,K=void 0;switch(this.layout){case"none":break;case"absolute":switch(j.align){case"left":L=R-j.maxLeft;break;case"center":L=(g-z)/2-j.maxLeft;break;case"right":L=g-N-j.maxRight;break;default:j.x instanceof gP||(L=j.pixelX)}switch(j.valign){case"top":V=B-j.maxTop;break;case"middle":V=(m-U)/2-j.maxTop;break;case"bottom":V=m-H-j.maxBottom;break;default:j.y instanceof gP||(V=j.pixelY)}break;case"vertical":switch(j.align){case"left":L=R-j.maxLeft;break;case"center":L=(g-z)/2-j.maxLeft;break;case"right":L=g-N-j.maxRight;break;default:L=j.pixelX}w=(V=w+B-j.maxTop)+j.maxBottom+H;break;case"horizontal":switch(j.valign){case"top":V=B-j.maxTop;break;case"middle":V=(m-U)/2-j.maxTop;break;case"bottom":V=m-H-j.maxBottom;break;default:V=j.pixelY}x=(L=x+R-j.maxLeft)+j.maxRight+N;break;case"grid":switch(L=x+R-j.maxLeft,j.valign){case"top":V=w+B-j.maxTop;break;case"middle":V=w+(m-U)/2-j.maxTop;break;case"bottom":V=w+m-H-j.maxBottom;break;default:V=w-j.maxTop}x+=S[C],O[P]=zP(O[P],U);var Y=S[++C];if(TP(Y)||(Y=r),x>UP(this.innerWidth,D)-Y+1&&C<o){o=C,x=0,w=0,P=0,C=0,S=this.getColumnWidth(I,o,r),O=[],M=-1;continue}C>=o&&(C=0,w+=O[P],P++,x=0)}"none"!==this.layout&&(j.moveTo({x:L,y:V}),W=L+j.maxLeft-R,G=L+j.maxRight+N,$=V+j.maxTop-B,K=V+j.maxBottom+H,(G>e||!TP(e))&&(e=G),(W<t||!TP(t))&&(t=W),($<i||!TP(i))&&(i=$),(K>n||!TP(n))&&(n=K),(G>l||!TP(l))&&(l=G),(W<a||!TP(a))&&(a=W),($<u||!TP(u))&&(u=$),(K>h||!TP(h))&&(h=h))}}if("none"==this.layout){var q=this.bbox;t=q.x,e=q.x+q.width,i=q.y,n=q.y+q.height}TP(t)||(t=0,a=0),TP(e)||(l=e=this._availableWidth),TP(i)||(i=0,u=0),TP(n)||(h=n=this._availableHeight),TP(u)||(u=0),TP(h)||(h=u),TP(a)||(a=0),TP(l)||(l=a),d=e-t,f=n-i,TP(this.relativeWidth)&&(t=0,e=d=D-y-v),TP(this.relativeHeight)&&(i=0,n=f=E-b-_),TP(this._pixelWidth)&&(t=0,d=this._pixelWidth-y-v),TP(T)&&d<T&&(t=0,d=this.minWidth-y-v),TP(this._pixelHeight)&&(i=0,f=this._pixelHeight-b-_),TP(k)&&f<k&&(i=0,f=k-b-_);var X=l-a,Z=h-u;if("none"!=this.layout&&(this.contentAlign||this.contentValign)&&p.length>0){var Q,J,tt=d,et=f;tt<X&&(tt=X),et<Z&&(et=Z),"center"==this.contentAlign&&(Q=(tt-X)/2),"right"==this.contentAlign&&(Q=tt-X),"middle"==this.contentValign&&(J=(et-Z)/2),"bottom"==this.contentValign&&(J=et-Z),TP(Q)&&KC(p.iterator(),(function(t){var e=t.maxLeft,i=Q;"horizontal"==c.layout&&(t.x=t.pixelX+i),"grid"==c.layout&&(t.x=t.pixelX+i),"vertical"==c.layout&&(i+=t.pixelMarginLeft,"none"==t.align&&(t.x=i-e)),"absolute"==c.layout&&(i+=t.pixelMarginLeft,"none"==t.align&&(t.x=i-e))})),TP(J)&&KC(p.iterator(),(function(t){var e=t.maxTop,i=J;"horizontal"==c.layout&&(i+=t.pixelMarginTop,"none"==t.valign&&(t.y=i-e)),"grid"==c.layout&&(i+=t.pixelMarginTop,t.y=i-e),"vertical"==c.layout&&(t.y=t.pixelY+i),"absolute"==c.layout&&(i+=t.pixelMarginTop,"none"==t.valign&&(t.y=i-e))}))}var it=this.bbox;d=zP(d,T),f=zP(f,k),this.contentWidth=d,this.contentHeight=f,d=UP(d,D),f=UP(f,E),this._bbox={x:t,y:i,width:d,height:f};var nt=this.maxLeft,rt=this.maxTop,st=this.maxBottom,ot=this.maxRight;if(this.measure(),(nt!=this.maxLeft||ot!=this.maxRight||rt!=this.maxTop||st!=this.maxBottom)&&this.events.isEnabled("transformed")){var at={type:"transformed",target:this};it&&(at.dummyData=it.width+" "+d+" "+it.height+" "+f),this.events.dispatchImmediately("transformed",at)}this.dispatchImmediately("layoutvalidated")},e.prototype.updateCenter=function(){t.prototype.updateCenter.call(this),this.updateBackground()},e.prototype.updateBackground=function(){var t=this._background;t&&(t.x=this.maxLeft,t.y=this.maxTop,t.width=this.maxRight-this.maxLeft,t.height=this.maxBottom-this.maxTop)},e.prototype.getColumnWidth=function(t,e,i){var n=this,r=[],s=0;return lC(t,(function(t){!t.isMeasured||t.disabled||t.__disabled||(n.fixedWidthGrid?r[s]=i:r[s]=zP(r[s],t.measuredWidth+t.pixelMarginRight+t.pixelMarginLeft),++s==e&&(s=0))})),r},Object.defineProperty(e.prototype,"layout",{get:function(){return this.getPropertyValue("layout")},set:function(t){this.setPropertyValue("layout",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentValign",{get:function(){return this.getPropertyValue("contentValign")},set:function(t){this.setPropertyValue("contentValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentAlign",{get:function(){return this.getPropertyValue("contentAlign")},set:function(t){this.setPropertyValue("contentAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedWidthGrid",{get:function(){return this.getPropertyValue("fixedWidthGrid")},set:function(t){this.setPropertyValue("fixedWidthGrid",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxColumns",{get:function(){return this.getPropertyValue("maxColumns")},set:function(t){this.setPropertyValue("maxColumns",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseOrder",{get:function(){return this.getPropertyValue("reverseOrder")},set:function(t){this.setPropertyValue("reverseOrder",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"setStateOnChildren",{get:function(){return this.getPropertyValue("setStateOnChildren")},set:function(t){this.setPropertyValue("setStateOnChildren",t,!0)},enumerable:!0,configurable:!0}),e.prototype.fitsToBounds=function(t){var e=t.x,i=t.y;return e>=-.5&&e<=this.pixelWidth+.5&&i>=-.5&&i<=this.pixelHeight+.5},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.layout=e.layout,this.setStateOnChildren=e.setStateOnChildren,e._background&&(this.background=e._background.clone(),this.background.copyFrom(e._background)),KC(e.children.iterator(),(function(t){t.shouldClone&&(t.clone().parent=i)}))},Object.defineProperty(e.prototype,"preloader",{get:function(){var t=this._preloader;return t||(this.parent?this.parent.preloader:void 0)},set:function(t){this._preloader&&this.removeDispose(this._preloader),this._preloader=t,t&&(t.parent=this.tooltipContainer,this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.setPaper=function(e){var i=this,n=t.prototype.setPaper.call(this,e);return n&&(this._background&&(this._background.paper=e,this._background.topParent=this.topParent),this.children.each((function(t){t.setPaper(e),t.topParent=i.topParent}))),n},e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),rS.removeFromInvalidLayouts(this)},e.prototype.setDataItem=function(e){this._dataItem!=e&&(KC(this.children.iterator(),(function(t){t.dataItem=e})),this._background&&(this._background.dataItem=e)),t.prototype.setDataItem.call(this,e)},e.prototype.measureElement=function(){this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||this.validateLayout()},Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(t){this.setPropertyValue("fontFamily",t,!0)&&(this.setSVGAttribute({"font-family":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(t){this.setPropertyValue("fontSize",t,!0)&&(this.setSVGAttribute({"font-size":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),e.prototype.invalidateLabels=function(){this.children.each((function(t){t.hardInvalidate?(t.hardInvalidate(),t.events.once("validated",t.handleValidate,t,!1)):t instanceof e&&t.invalidateLabels()}))},Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")},set:function(t){this.setPropertyValue("fontWeight",t),this.setSVGAttribute({"font-weight":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(t){this.setPropertyValue("textDecoration",t),this.setSVGAttribute({"text-decoration":t})},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),t.prototype.dispose.call(this)},e.prototype.setState=function(e,i,n){var r=e;return e instanceof OO&&(r=e.name),this.setStateOnChildren&&KC(this.children.iterator(),(function(t){t.setState(r,i,n),"active"!=r&&(t.isActive=!1)})),this._background&&this._background.setState(r),this.setStateOnSprites.length&&lC(this.setStateOnSprites,(function(t){t.setState(r,i,n)})),t.prototype.setState.call(this,e,i,n)},e.prototype.setActive=function(e){t.prototype.setActive.call(this,e),this._background&&(this._background.isActive=e)},e.prototype.dispatchReady=function(){var e=this;if(!this.isReady()&&!this.isDisposed()){var i=!0;$C(this.children.iterator(),(function(t){return!!(t.__disabled||t.disabled||t.isReady())||(i=!1,!1)})),uC(this._shouldBeReady,(function(t){return!!(t.__disabled||t.disabled||t.isReady())||(i=!1,!1)})),i?t.prototype.dispatchReady.call(this):rS.events.once("exitframe",(function(){e.dispatchReady(),QD.requestFrame()}),void 0,!1)}},e.prototype._systemUpdate=function(e){this.children.each((function(t){t.invalid&&(t._systemCheckIfValidate()?t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid?e.push(t):t.validate():e.push(t))})),t.prototype._systemUpdate.call(this,e)},e.prototype._systemValidatePositions=function(){this.children.each((function(t){t.positionInvalid&&t.validatePosition()})),t.prototype._systemValidatePositions.call(this)},e.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(e.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(t){this._tapToActivate!=t&&this.setTapToActivate(t)},enumerable:!0,configurable:!0}),e.prototype.setTapToActivate=function(t){var e=this;this._tapToActivate=t,this.interactions.isTouchProtected=t,t&&this.interactions.setEventDisposer("container-tapToActivate",t,(function(){return new wC([e.events.on("hit",e.handleTapToActivate,e,!1),e.events.on("down",e.initTapTimeout,e,!1),e.events.on("track",e.initTapTimeout,e,!1),dD().body.events.on("down",(function(t){dD().isLocalElement(t.pointer,e.paper.svg,e.uid)||e.handleTapToActivateDeactivation()}),e,!1)])})),dD()},e.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},e.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},e.prototype.initTapTimeout=function(){var t=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout((function(){t.handleTapToActivateDeactivation()}),this.tapTimeout))},e.prototype.hasLicense=function(){if(TO.commercialLicense)return!0;for(var t=0;t<TO.licenses.length;t++)if(TO.licenses[t].match(/^CH.{5,}/i))return!0;return!1},e}(qD);rS.registeredClasses.Container=ZD;var QD=new(function(){function t(){this._isPaused=!1,this.animations=[],this.uid=rS.getUniqueId(),this.dummyCounter=0,this._frameRequested=!1,this.updateStepDuration=45,this.time=Date.now()}return t.prototype.reportTime=function(t,e){this.dummyCounter,e&&(this.time=Date.now())},t.prototype.update=function(){var t=this;if(!this._isPaused){this._frameRequested=!1;var e=Date.now();rS.dispatchImmediately("enterframe");for(var i in rS.invalidDatas)if(VC(rS.invalidDatas,i)){for(var n=rS.invalidDatas[i];n.length>0;){var r=(s=n[0]).dataProvider;if(s.isDisposed())hC(n,s);else if(r&&r.dataInvalid)try{if(r.validateData(),r.dataValidationProgress<1)break}catch(u){hC(n,r),r.raiseCriticalError(u)}else try{if(s.validateData(),s.dataValidationProgress<1)break}catch(u){hC(n,s),s.raiseCriticalError(u)}}if(Date.now()-e>this.updateStepDuration)break}for(;rS.invalidRawDatas.length>0;){if((s=rS.invalidRawDatas[0]).isDisposed())hC(rS.invalidRawDatas,s);else try{s.validateRawData()}catch(u){hC(rS.invalidRawDatas,s),s.raiseCriticalError(u)}}for(;rS.invalidDataItems.length>0;){r=(s=rS.invalidDataItems[0]).dataProvider;if(s.isDisposed()||s.dataInvalid||r&&r.dataInvalid);else try{s.validateDataItems()}catch(u){hC(rS.invalidDataItems,s),s.raiseCriticalError(u)}hC(rS.invalidDataItems,s)}for(;rS.invalidDataRange.length>0;){var s;r=(s=rS.invalidDataRange[0]).dataProvider;if(s.isDisposed()||s.dataInvalid||r&&r.dataInvalid);else try{s.validateDataRange(),s.skipRangeEvent||s.dispatchImmediately("datarangechanged"),s.skipRangeEvent=!1}catch(u){hC(rS.invalidDataRange,s),s.raiseCriticalError(u)}hC(rS.invalidDataRange,s)}var o=[];NC(rS.invalidLayouts,(function(e){t.validateLayouts(e)})),NC(rS.invalidPositions,(function(e){t.validatePositions(e)}));var a=!1;if(e=Date.now(),NC(rS.invalidSprites,(function(i,n){for(var r=0;n.length>0;){if(t.validateLayouts(i),t.validatePositions(i),5==++r){if(Date.now()-e>t.updateStepDuration)break;r=0}var s=n[n.length-1];if(s&&!s.isDisposed()){if(s._systemCheckIfValidate())if(t.checkIfValidate2(s))try{s._systemUpdate(o)}catch(u){s.invalid=!1,hC(n,s),s.raiseCriticalError(u)}else o.push(s);else o.push(s);s.invalid=!1}hC(n,s)}rS.invalidSprites[i]=rS.invalidSprites[i].concat(o)})),NC(rS.invalidSprites,(function(t,e){e.length>0&&(a=!0)})),NC(rS.invalidDatas,(function(t,e){e.length>0&&(a=!0)})),lC(fC(this.animations),(function(t){t.update()})),NC(rS.invalidLayouts,(function(e){t.validateLayouts(e)})),NC(rS.invalidPositions,(function(e){t.validatePositions(e)})),function(){for(var t=Date.now(),e=TC.length,i=0;i<e;++i)TC.shift()(t)}(),NC(rS.invalidLayouts,(function(e){t.validateLayouts(e)})),NC(rS.invalidPositions,(function(e){t.validatePositions(e)})),rS.dispatchImmediately("exitframe"),(a||this.animations.length>0||[].length>0)&&this.requestFrame(),this.updateStepDuration<200){var l=!0;NC(rS.invalidDatas,(function(t,e){e.length>0&&(l=!1)})),NC(rS.invalidSprites,(function(t,e){e.length>0&&(l=!1)})),l&&(this.updateStepDuration=200)}}},t.prototype.checkIfValidate2=function(t){return!(t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid&&!t.dataItem.component.isTemplate)},t.prototype.requestFrame=function(){var t=this;this._frameRequested||(kC((function(){t.update()})),this._frameRequested=!0)},t.prototype.softInvalidate=function(t){var e=this;t.children.each((function(t){t instanceof ZD&&e.softInvalidate(t),t.measureFailed&&(sS(t,"Label")?t.hardInvalidate():t.invalidate(),t.measureFailed=!1)}))},t.prototype.validatePositions=function(t){for(var e=rS.invalidPositions[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())hC(e,i);else try{i._systemValidatePositions()}catch(n){i.positionInvalid=!1,hC(e,i),i.raiseCriticalError(n)}}},t.prototype.validateLayouts=function(t){for(var e=rS.invalidLayouts[t];e.length>0;){var i=e[e.length-1];if(i.isDisposed())hC(e,i);else try{i.children.each((function(t){t._systemValidateLayouts()})),i.validateLayout()}catch(n){i.layoutInvalid=!1,hC(e,i),i.raiseCriticalError(n)}}},t.prototype.log=function(t){!function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];TO.verbose&&console&&console.log.apply(console,fP(t))}(t)},Object.defineProperty(t.prototype,"isPaused",{get:function(){return this._isPaused},set:function(t){this._isPaused=t,t||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),t.VERSION="4.9.23",t}()),JD=function(){function t(){}return t.prototype.parse=function(t){return[]},Object.defineProperty(t.prototype,"parsableNumbers",{get:function(){return this.options.numberFields&&this.options.numberFields.length>0},enumerable:!0,configurable:!0}),t.prototype.maybeToNumber=function(t,e){return-1!==this.options.numberFields.indexOf(t)?qS(e):e},Object.defineProperty(t.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),t.prototype.maybeToDate=function(t,e){return-1!==this.options.dateFields.indexOf(t)?this.options.dateFormatter.parse(e,this.dateFormat):e},t.prototype.maybeToEmpty=function(t){return CP(t)&&""!=t||!CP(this.options.emptyAs)?t:this.options.emptyAs},Object.defineProperty(t.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new jD,this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),t}(),tE=[",",";","\t"],eE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentType="text/csv",e.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},e}return uP(e,t),e.isCSV=function(t){return!!e.getDelimiterFromData(t)},e.getDelimiterFromData=function(t){var e,i=t.split("\n"),n=i.length;return lC(tE,(function(t){for(var r=0,s=0,o=0;o<n;++o){if(!((r=i[o].split(t).length)>1)){s=0;break}if(0===s)s=r;else if(r!=s){s=0;break}}s&&(e=t)})),e},e.prototype.parse=function(t){this.options.delimiter||(this.options.delimiter=e.getDelimiterFromData(t));var i,n,r,s=this.CSVToArray(t,this.options.delimiter),o=CP(this.options.emptyAs),a=this.parsableNumbers,l=this.parsableDates,u=[],h=[];for(n=0;n<this.options.skipRows;n++)s.shift();if(this.options.useColumnNames){h=s.shift();for(var c=0;c<h.length;c++)""===(i=CP(h[c])?h[c].replace(/^\s+|\s+$/gm,""):"")&&(i="col"+c),h[c]=i}for(;r=this.options.reverse?s.pop():s.shift();)if(!this.options.skipEmpty||1!==r.length||""!==r[0]){var p={};for(n=0;n<r.length;n++)p[i=void 0===h[n]?"col"+n:h[n]]=""===r[n]?this.options.emptyAs:r[n],o&&(p[i]=this.maybeToEmpty(p[i])),a&&(p[i]=this.maybeToNumber(i,p[i])),l&&(p[i]=this.maybeToDate(i,p[i]));u.push(p)}return u},e.prototype.CSVToArray=function(t,e){e=e||",";for(var i=new RegExp("(\\"+e+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+e+"\\r\\n]*))","gi"),n=[[]],r=null;r=i.exec(t);){var s=r[1];s.length&&s!==e&&n.push([]);var o=void 0;o=r[2]?r[2].replace(new RegExp('""',"g"),'"'):r[3],n[n.length-1].push(o)}return n},e}(JD),iE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentType="application/json",e.options={},e}return uP(e,t),e.isJSON=function(t){try{return JSON.parse(t),!0}catch(e){return!1}},e.prototype.parse=function(t){var e,i=this;try{CP(JSON)&&(e=JSON.parse(t))}catch(u){return}var n=CP(this.options.emptyAs),r=this.parsableNumbers,s=this.parsableDates;if(Array.isArray(e)&&(r||s||n))for(var o=function(t,o){var a=e[t];NC(a,(function(t,e){n&&(a[t]=i.maybeToEmpty(a[t])),r&&(a[t]=i.maybeToNumber(t,a[t])),s&&(a[t]=i.maybeToDate(t,a[t]))}))},a=0,l=e.length;a<l;a++)o(a);return e},e}(JD),nE=new(function(){function t(){this.adapter=new vS(this)}return t.prototype.load=function(t){var e=aC(Array.isArray(t)?t:[t],(function(t){return t.dispatchImmediately("started"),t.dispatchImmediately("loadstarted"),HD(t.url,t,t.requestOptions)}));Promise.all(e).then((function(t){lC(t,(function(t){var e=t.target;e.dispatchImmediately("loadended"),t.error?e.events.isEnabled("error")&&e.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:e.language.translate("Unable to load file: %1",null,e.url),target:e}):e.processData(t.response,t.type),e.dispatchImmediately("ended")}))})).catch((function(t){t.target&&(t.target.dispatchImmediately("loadended"),t.target.events.isEnabled("error")&&t.target.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:t.target.language.translate("Unable to load file: %1",null,t.target.url),target:t.target}),t.target.dispatchImmediately("ended"))}))},t.prototype.getParserByType=function(t){var e=this.adapter.apply("getParserByType",{parser:null,type:t}).parser;return e||("csv"==t||"text/csv"==t||"application/vnd.ms-excel"==t?new eE:"json"==t||"application/json"==t?new iE:void 0)},t.prototype.getParserByData=function(t,e){var i=this.adapter.apply("getParserByData",{parser:null,data:t,type:e}).parser;if(!i){if(i=this.getParserByType(e))return i;if(iE.isJSON(t))return this.getParserByType("json");if(eE.isCSV(t))return this.getParserByType("csv")}return i},t}()),rE=function(t){function e(e,i){var n=t.call(this)||this;return n.adapter=new vS(n),n._requestOptions={},n._incremental=!1,n._incrementalParams={},n._keepCount=!1,n._updateCurrentData=!1,n.showPreloader=!0,n.className="DataSource",e&&(n.url=e),i&&(n.parser="string"==typeof i?nE.getParserByType(i):i),n}return uP(e,t),e.prototype.processData=function(t,e){if(this.dispatchImmediately("parsestarted"),this.parser||(this.parser=nE.getParserByData(t,e),this.parser)){if(this.parser.options=this.adapter.apply("parserOptions",this.parser.options),this.parser.options.dateFields=this.adapter.apply("dateFields",this.parser.options.dateFields||[]),this.parser.options.numberFields=this.adapter.apply("numberFields",this.parser.options.numberFields||[]),this.parser.options.dateFields&&!this.parser.options.dateFormatter&&(this.parser.options.dateFormatter=this.dateFormatter),this.data=this.adapter.apply("parsedData",this.parser.parse(this.adapter.apply("unparsedData",t))),!CP(this.data)&&this.events.isEnabled("parseerror")){var i={type:"parseerror",message:this.language.translate("Error parsing file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",i)}this.dispatchImmediately("parseended"),CP(this.data)&&this.dispatchImmediately("done",{data:this.data}),this.lastLoad=new Date}else{if(this.events.isEnabled("parseerror")){var n={type:"parseerror",message:this.language.translate("No parser available for file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",n)}this.dispatchImmediately("parseended")}},Object.defineProperty(e.prototype,"url",{get:function(){var t=this.disableCache?this.timestampUrl(this._url):this._url;return this.incremental&&this.component.data.length&&(t=this.addUrlParams(t,this.incrementalParams)),this.adapter.apply("url",t)},set:function(t){this._url=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"requestOptions",{get:function(){return this.adapter.apply("requestOptions",this._requestOptions)},set:function(t){this._requestOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser||(this._parser=new iE),this.adapter.apply("parser",this._parser)},set:function(t){this._parser=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reloadFrequency",{get:function(){return this.adapter.apply("reloadTimeout",this._reloadFrequency)},set:function(t){var e=this;this._reloadFrequency!=t&&(this._reloadFrequency=t,t?CP(this._reloadDisposer)||(this._reloadDisposer=this.events.on("ended",(function(t){e._reloadTimeout=setTimeout((function(){e.load()}),e.reloadFrequency)}))):CP(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incremental",{get:function(){return this.adapter.apply("incremental",this._incremental)},set:function(t){this._incremental=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incrementalParams",{get:function(){return this.adapter.apply("incrementalParams",this._incrementalParams)},set:function(t){this._incrementalParams=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepCount",{get:function(){return this.adapter.apply("keepCount",this._keepCount)},set:function(t){this._keepCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateCurrentData",{get:function(){return this.adapter.apply("updateCurrentData",this._updateCurrentData)},set:function(t){this._updateCurrentData=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){return this._language?this._language:this.component?(this._language=this.component.language,this._language):(this.language=new ID,this.language)},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.component?(this._dateFormatter=this.component.dateFormatter,this._dateFormatter):(this.dateFormatter=new jD,this.dateFormatter)},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),e.prototype.timestampUrl=function(t){var e={};return e[(new Date).getTime().toString()]="",this.addUrlParams(t,e)},e.prototype.dispose=function(){t.prototype.dispose.call(this),this._reloadTimeout&&clearTimeout(this._reloadTimeout),CP(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0)},e.prototype.load=function(){this.url&&(this._reloadTimeout&&clearTimeout(this._reloadTimeout),nE.load(this))},e.prototype.addUrlParams=function(t,e){var i=t.match(/\?/)?"&":"?",n=[];return NC(e,(function(t,e){""!=e?n.push(t+"="+encodeURIComponent(e)):n.push(t)})),n.length?t+i+n.join("&"):t},e.prototype.processConfig=function(e){rS.registeredClasses.json=iE,rS.registeredClasses.JSONParser=iE,rS.registeredClasses.csv=eE,rS.registeredClasses.CSVParser=eE,t.prototype.processConfig.call(this,e)},e}(kS),sE=function(t){function e(){var e=t.call(this)||this;return e._rules=new uS,e._appliedRules={},e._appliedTargets=[],e._useDefault=!0,e.adapter=new vS(e),e._enabled=!1,e._responsiveDisposers=[],e._noStates=[],e.className="Responsive",e.rules.events.on("inserted",(function(){e.checkRules()}),!0),e.rules.events.on("removed",(function(){e.checkRules()}),!0),e._disposers.push(e.rules.events),e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"component",{get:function(){return this._component},set:function(t){var e=this;t!=this._component&&(this.disposeResponsiveHandlers(),this._component=t,this._responsiveDisposers.push(SP(this.component).events.on("sizechanged",(function(){e.checkRules()}),this)),this._responsiveDisposers.push(SP(this.component).events.on("datavalidated",(function(){e._component.isReady()&&e.checkRules(!0)}),this)),this.enabled=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.adapter.apply("enabled",this._enabled)},set:function(t){this._enabled!=t&&(this._enabled=t,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useDefault",{get:function(){return this.adapter.apply("useDefault",this._useDefault)},set:function(t){this._useDefault!=t&&(this._useDefault=t,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this.adapter.apply("rules",this._rules)},set:function(t){this._rules=t,this._enabled=!0,this.applyRules()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultRules",{get:function(){return this.adapter.apply("defaultRules",oE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allRules",{get:function(){var t=new uS;return this.useDefault&&t.copyFrom(this.defaultRules),t.copyFrom(this.rules),this.adapter.apply("allRules",t)},enumerable:!0,configurable:!0}),e.prototype.isApplied=function(t){var e=this._appliedRules[t];return!!CP(e)&&e},e.prototype.checkRules=function(t){var e=this;void 0===t&&(t=!1);var i=this.allRules;if(i&&0!=i.length){var n=!1,r=SP(this.component);if(KC(i.iterator(),(function(t){t.id||(t.id=rS.getUniqueId());var i=t.relevant(r);(i&&!e.isApplied(t.id)||!i&&e.isApplied(t.id))&&(n=!0),e._appliedRules[t.id]=i})),t&&(n=!0),n){if(!this.component.isReady())return r.hidden=!0,void r.events.once("ready",(function(t){t.target.show(0),e.applyRules()}));this.dispatchImmediately("ruleschanged"),this.applyRules()}}},e.prototype.applyRules=function(t){var e,i,n,r,s=this,o=CP(t)?t:SP(this.component),a=!1;if(this.enabled){var l=!1;KC(this.allRules.iterator(),(function(t){var e=s.getState(t,o);e&&(a||(-1!==sC(s._appliedTargets,o.uid)&&o.setState(s.getDefaultState(o)),a=!0),s.isApplied(SP(t.id))&&(e.transitionDuration=0,s.setTargetState(o,e),s.dispatchImmediately("ruleapplied",{rule:t}),l=!0))})),l?(e=this._appliedTargets,i=o.uid,-1!==(r=e.indexOf(i))&&e.splice(r,1),TP(n)?e.splice(n,0,i):e.push(i)):hC(this._appliedTargets,o.uid)}o.children&&KC(o.children.iterator(),(function(t){s.applyRules(t)}))},e.prototype.getState=function(t,e){var i="responsive-"+t.id,n=e.uid+"_"+i;if(-1===sC(this._noStates,n)){if(e.states.hasKey(i))return e.states.getKey(i);var r=t.state(e,i);return r||this._noStates.push(n),r}},e.prototype.getDefaultState=function(t){return t.states.hasKey("responsive-default")?t.states.getKey("responsive-default"):t.states.create("responsive-default")},e.prototype.setTargetState=function(t,e){var i=this,n=this.getDefaultState(t);NC(e.properties,(function(e,r){CP(n.properties[e])||(n.properties[e]=i.getValue(t,e))})),t.setState(e)},e.prototype.getValue=function(t,e){var i=t.getPropertyValue(e);return!CP(i)&&CP(t[e])&&(i=t[e]),i},e.prototype.dispose=function(){this.disposeResponsiveHandlers(),t.prototype.dispose.call(this)},e.prototype.disposeResponsiveHandlers=function(){for(var t=this._responsiveDisposers.pop();t;)t.dispose(),t=this._responsiveDisposers.pop()},e}(kS),oE=new uS;oE.events.on("inserted",(function(t){t.newValue.id=rS.getUniqueId()}));var aE=function(){function t(){}return t.widthXXS=function(e){return e.pixelWidth<=t.XXS},t.widthXS=function(e){return e.pixelWidth<=t.XS},t.widthS=function(e){return e.pixelWidth<=t.S},t.widthM=function(e){return e.pixelWidth<=t.M},t.widthL=function(e){return e.pixelWidth<=t.L},t.widthXL=function(e){return e.pixelWidth<=t.XL},t.widthXXL=function(e){return e.pixelWidth<=t.XXL},t.heightXXS=function(e){return e.pixelHeight<=t.XXS},t.heightXS=function(e){return e.pixelHeight<=t.XS},t.heightS=function(e){return e.pixelHeight<=t.S},t.heightM=function(e){return e.pixelHeight<=t.M},t.heightL=function(e){return e.pixelHeight<=t.L},t.heightXL=function(e){return e.pixelHeight<=t.XL},t.heightXXL=function(e){return e.pixelHeight<=t.XXL},t.isXXS=function(e){return e.pixelWidth<=t.XXS&&e.pixelHeight<=t.XXS},t.isXS=function(e){return e.pixelWidth<=t.XS&&e.pixelHeight<=t.XS},t.isS=function(e){return e.pixelWidth<=t.S&&e.pixelHeight<=t.S},t.isM=function(e){return e.pixelWidth<=t.M&&e.pixelHeight<=t.M},t.isL=function(e){return e.pixelWidth<=t.L&&e.pixelHeight<=t.L},t.isXL=function(e){return e.pixelWidth<=t.XL&&e.pixelHeight<=t.XL},t.isXXL=function(e){return e.pixelWidth<=t.XXL&&e.pixelHeight<=t.XXL},t.maybeXXS=function(e){return e.pixelWidth<=t.XXS||e.pixelHeight<=t.XXS},t.maybeXS=function(e){return e.pixelWidth<=t.XS||e.pixelHeight<=t.XS},t.maybeS=function(e){return e.pixelWidth<=t.S||e.pixelHeight<=t.S},t.maybeM=function(e){return e.pixelWidth<=t.M||e.pixelHeight<=t.M},t.maybeL=function(e){return e.pixelWidth<=t.L||e.pixelHeight<=t.L},t.maybeXL=function(e){return e.pixelWidth<=t.XL||e.pixelHeight<=t.XL},t.maybeXXL=function(e){return e.pixelWidth<=t.XXL||e.pixelHeight<=t.XXL},t.XXS=100,t.XS=200,t.S=300,t.M=400,t.L=600,t.XL=800,t.XXL=1e3,t}(),lE=function(t){function e(){var e=t.call(this)||this;return e._disabled=!1,e.hasProperties=!1,e.values={},e.categories={},e.dates={},e.locations={},e.workingLocations={},e.properties={},e.sprites=[],e.isTemplate=!1,e._index=null,e._visible=!0,e._hidden=!1,e._ignoreMinMax=!1,e.hasChildren={},e.isHiding=!1,e._valueAnimations={},e._locationAnimations={},e.className="DataItem",e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new vS(this)),this._adapterO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.component&&null!=this._index?this._index:-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new jO(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return!this._hidden&&this._visible},set:function(t){t&&(this.hidden=!1),this._visible!=t&&this.setVisibility(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(t){this._hidden!=t&&(this._hidden=t,t?this.setVisibility(!1):this.setVisibility(!0,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,lC(this.sprites,(function(e){e.__disabled=t}))},enumerable:!0,configurable:!0}),e.prototype.setVisibility=function(t,e){if(lC(this.sprites,(function(e){t?e.visible=e.defaultState.properties.visible:e.hiddenState?e.visible=e.hiddenState.properties.visible:e.visible=!1})),this._visible=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("visibilitychanged")){var i={type:"visibilitychanged",target:this,visible:t};this.events.dispatchImmediately("visibilitychanged",i)}},e.prototype.show=function(t,e,i){var n,r=this;if(!this.hidden)return this.setVisibility(!0,!0),this.isHiding=!1,this._hideDisposer&&this.removeDispose(this._hideDisposer),i&&lC(i,(function(i){n=r.setWorkingValue(i,r.values[i].value,t,e)})),lC(this.sprites,(function(i){var n=i.show(t);null==n||n.isFinished()||(r._disposers.push(n),null!=e&&e>0&&n.delay(e))})),n},e.prototype.dispose=function(){t.prototype.dispose.call(this),lC(this.sprites,(function(t){t.dispose()})),this.sprites=[]},e.prototype.hide=function(t,e,i,n){var r=this;if(this.isHiding=!0,lC(this.sprites,(function(i){var n=i.hide(t);null==n||n.isFinished()||(r._disposers.push(n),null!=e&&e>0&&n.delay(e))})),TP(i)&&n){var s;if(lC(n,(function(n){var o=r.setWorkingValue(n,i,t,e);o&&(s=o)})),s&&!s.isFinished())return this._hideDisposer=s.events.on("animationended",(function(){r.setVisibility(!1,!0),r.isHiding=!1})),this._disposers.push(this._hideDisposer),s;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},e.prototype.getDuration=function(t){if(!TP(t)){var e=this.component;e&&(t=e.interpolationDuration)}if(null!=t)return this._adapterO?this._adapterO.apply("duration",t):t},e.prototype.getValue=function(t,e){if(t&&this.component){e||(e=this.component.dataFields[t+"Show"])||(e="value");var i=this.values[t][e];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:i,field:t}).value:i}},e.prototype.getWorkingValue=function(t){if(t&&this.component){var e=this.component.dataFields[t+"Show"];return e||(e="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[t][e],field:t}).workingValue:this.values[t][e]}},e.prototype.getActualWorkingValue=function(t){return this.values[t].workingValue},e.prototype.setValue=function(t,e,i,n){var r=this.values[t].value,s=this.getDuration(i);if(r!==(e=xP(e))){if(this.values[t].value=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")){var o={type:"valuechanged",target:this,property:t};this.events.dispatchImmediately("valuechanged",o)}this.component&&this.component.handleDataItemValueChange(this,t)}this.setWorkingValue(t,e,s,n)},e.prototype.setCalculatedValue=function(t,e,i){if(this.values[t][i]!==e&&TP(e)){if(this.values[t][i]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")){var n={type:"calculatedvaluechanged",target:this,property:t};this.events.dispatchImmediately("calculatedvaluechanged",n)}this.component&&this.component.handleDataItemCalculatedValueChange(this,t)}},e.prototype.setWorkingValue=function(t,e,i,n){if(TP(this.values[t].value)){var r=this.getDuration(i),s=this.values[t].workingValue;if(null!=r&&r>0&&TP(s)&&this.component){if(s!=e){var o=this.animate({childObject:this.values[t],property:"workingValue",from:s,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&o.delay(n),o.events.on("animationstarted",this.handleInterpolationProgress,this),o.events.on("animationprogress",this.handleInterpolationProgress,this),o.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[t]=o,o}(a=this._valueAnimations[t])&&a.stop(),this.values[t].workingValue=e}else{var a;if((a=this._valueAnimations[t])&&a.stop(),this.values[t].workingValue=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var l={type:"workingvaluechanged",target:this,property:t};this.events.dispatchImmediately("workingvaluechanged",l)}this.component&&this.component.handleDataItemWorkingValueChange(this,t)}}},e.prototype.setLocation=function(t,e,i,n){if(this.locations[t]!==e){if(this.locations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")){var r={type:"locationchanged",target:this,property:t};this.events.dispatchImmediately("locationchanged",r)}this.component&&this.component.handleDataItemValueChange(this,t),this.setWorkingLocation(t,e,i,n)}},e.prototype.setWorkingLocation=function(t,e,i,n){var r=this.getDuration(i),s=this.workingLocations[t];if(null!=r&&r>0&&TP(s)&&this.component){if(s!=e){var o=this.animate({childObject:this.workingLocations,property:t,from:s,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&o.delay(n),o.events.on("animationstarted",this.handleInterpolationProgress,this),o.events.on("animationprogress",this.handleInterpolationProgress,this),o.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[t]=o,o}(a=this._locationAnimations[t])&&a.stop(),this.workingLocations[t]=e}else{var a;if((a=this._locationAnimations[t])&&a.stop(),this.workingLocations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")){var l={type:"workinglocationchanged",target:this,property:t};this.events.dispatchImmediately("workinglocationchanged",l)}this.component&&this.component.handleDataItemWorkingLocationChange(this,t)}},e.prototype.setDate=function(t,e,i){!DP(e)&&this.component&&(e=this.component.dateFormatter.parse(e)),this.dates[t]!==e&&(this.dates[t]=e,this.setValue(t,e.getTime(),i))},e.prototype.getDate=function(t){return this._adapterO?this._adapterO.apply("date",{date:this.dates[t],field:t}).date:this.dates[t]},e.prototype.setProperty=function(t,e){if(this.properties[t]!==e){if(this.hasProperties=!0,this.properties[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var i={type:"propertychanged",target:this,property:t,value:e};this.events.dispatchImmediately("propertychanged",i)}this.component&&this.component.handleDataItemPropertyChange(this,t)}},e.prototype.setCategory=function(t,e){EP(e)||(e=bP(e)),this.categories[t]!==e&&(this.categories[t]=e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.dataContext&&(this.dataContext=function(t,e){return NC(t,(function(t,i){e[t]=i})),e}(e.dataContext,{})),IS(e.locations,this.locations),e._adapterO&&this.adapter.copyFrom(e._adapterO),this.component=e.component},Object.defineProperty(e.prototype,"opacity",{set:function(t){lC(this.sprites,(function(e){e.opacity=t}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){if(this._ignoreMinMax=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var e={type:"propertychanged",target:this,property:"ignoreMinMax",value:t};this.events.dispatchImmediately("propertychanged",e)}this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),e.prototype.animate=function(t,e,i){return new LO(this,t,e,i).start()},e.prototype.handleInterpolationProgress=function(t){var e=t.target.animationOptions[0];if(e){if(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var i={type:"workingvaluechanged",target:this,property:e.dummyData};this.events.dispatchImmediately("workingvaluechanged",i)}this.component&&this.component.handleDataItemWorkingValueChange(this,e.dummyData)}},e.prototype.hasValue=function(t){for(var e=0,i=t.length;e<i;e++){var n=this.values[t[e]];if(!n||!CP(n.value))return!1}return!0},Object.defineProperty(e.prototype,"depth",{get:function(){return this.parent?this.parent.depth+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataContext",{get:function(){return this._dataContext},set:function(t){this._dataContext=t},enumerable:!0,configurable:!0}),e.prototype.addSprite=function(t){t.dataItem&&t.dataItem!=this&&hC(t.dataItem.sprites,t),this.visible||t.hide(0),this.isHiding&&t.hide(),this.sprites.push(t),t.dataItem=this},e}(kS),uE=function(t){function e(){var e=t.call(this)||this;return e.dataFields={},e._dataSources={},e._parseDataFrom=0,e._dataDisposers=[],e._currentDataSetId="",e._start=0,e._end=1,e.skipRangeEvent=!1,e.rangeChangeDuration=0,e.rangeChangeEasing=xO,e.parsingStepDuration=50,e.dataInvalid=!1,e.rawDataInvalid=!1,e.dataRangeInvalid=!1,e.dataItemsInvalid=!1,e.interpolationDuration=0,e.interpolationEasing=xO,e.sequencedInterpolation=!0,e.sequencedInterpolationDelay=0,e.dataValidationProgress=0,e._addAllDataItems=!0,e._usesData=!0,e.className="Component",e.minZoomCount=1,e.maxZoomCount=0,e._dataItems=new dS(e.createDataItem()),e._dataItems.events.on("inserted",e.handleDataItemAdded,e,!1),e._dataItems.events.on("removed",e.handleDataItemRemoved,e,!1),e._disposers.push(new aS(e._dataItems)),e._disposers.push(e._dataItems.template),e.invalidateData(),e.dataUsers.events.on("inserted",e.handleDataUserAdded,e,!1),e._disposers.push(new wC(e._dataDisposers)),e._start=0,e._end=1,e.maxZoomDeclination=1,e.applyTheme(),e}return uP(e,t),e.prototype.createDataItem=function(){return new lE},e.prototype.handleDataUserAdded=function(t){t.newValue.dataProvider=this},e.prototype.handleDataItemValueChange=function(t,e){this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.handleDataItemWorkingValueChange=function(t,e){},e.prototype.handleDataItemWorkingLocationChange=function(t,e){},e.prototype.handleDataItemCalculatedValueChange=function(t,e){},e.prototype.handleDataItemPropertyChange=function(t,e){},e.prototype.processDataItem=function(t,e){var i=this;if(t){e||(e={}),t.dataContext=e;var n=!1;NC(this.dataFields,(function(r,s){var o=r,a=e[s];if(i._adapterO&&i._adapterO.isEnabled("dataContextValue")&&(a=i._adapterO.apply("dataContextValue",{field:o,value:a,dataItem:t}).value),CP(a))if(n=!0,t.hasChildren[o]){var l=i.createDataItem();l.copyFrom(i.mainDataSet.template);var u=new dS(l);u.events.on("inserted",i.handleDataItemAdded,i,!1),u.events.on("removed",i.handleDataItemRemoved,i,!1),i._dataDisposers.push(new aS(u));for(var h=a.length,c=0;c<h;c++){var p=a[c],d=u.create();d.parent=t,i.processDataItem(d,p)}t[o]=u}else t[o]=a})),NC(this.propertyFields,(function(i,r){var s=i,o=e[r];CP(o)&&(n=!0,t.setProperty(s,o))})),this._addAllDataItems||n||this.mainDataSet.remove(t)}},e.prototype.updateDataItem=function(t){var e=this;if(t){var i=t.dataContext;NC(this.dataFields,(function(n,r){var s=n,o=i[r];(e._adapterO&&(o=e._adapterO.apply("dataContextValue",{field:s,value:o,dataItem:t}).value),CP(o))&&(t.hasChildren[s]?t[s].each((function(t){e.updateDataItem(t)})):t[s]=o)})),NC(this.propertyFields,(function(e,n){var r=e,s=i[n];CP(s)&&t.setProperty(r,s)}))}},e.prototype.validateDataElements=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++){var i=this.dataItems.getIndex(e);i&&this.validateDataElement(i)}},e.prototype.validate=function(){this.validateDataElements(),t.prototype.validate.call(this)},e.prototype.validateDataElement=function(t){},e.prototype.addData=function(t,e,i){var n=this;if(!this.dataInvalid&&this.inited&&(this._parseDataFrom=this.data.length),i||(t instanceof Array?lC(t,(function(t){n.data.push(t)})):this.data.push(t)),this.inited)this.removeData(e,i);else if(TP(e))for(;e>0;)this.data.shift(),e--;this.invalidateData()},e.prototype.removeData=function(t,e){if(TP(t)&&t>0){for(;t>0;){var i=this.mainDataSet.getIndex(0);i&&this.mainDataSet.remove(i),this.dataUsers.each((function(t){if(!t.data||0==t.data.length){var e=t.mainDataSet.getIndex(0);e&&t.mainDataSet.remove(e)}})),e||this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,t--}this.invalidateDataItems()}},e.prototype.invalidateData=function(){this.disabled||this.isTemplate||(rS.addToInvalidComponents(this),QD.requestFrame(),this.dataInvalid=!0,KC(this.dataUsers.iterator(),(function(t){t.invalidateDataItems()})))},e.prototype.invalidateDataUsers=function(){KC(this.dataUsers.iterator(),(function(t){t.invalidate()}))},e.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(cC(rS.invalidDataItems,this),QD.requestFrame(),this.dataItemsInvalid=!0,KC(this.dataUsers.iterator(),(function(t){t.invalidateDataItems()})))},e.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,cC(rS.invalidDataRange,this),QD.requestFrame())},e.prototype.validateDataRange=function(){hC(rS.invalidDataRange,this),this.dataRangeInvalid=!1,this.startIndex==this._prevStartIndex&&this.endIndex==this._prevEndIndex||(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},e.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},e.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},e.prototype.appendDataItems=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++){(i=this.dataItems.getIndex(e))&&(i.__disabled=!1)}for(e=0;e<this.startIndex;e++){(i=this.dataItems.getIndex(e)).__disabled=!0}for(e=this.endIndex;e<this.dataItems.length;e++){var i;(i=this.dataItems.getIndex(e)).__disabled=!0}},e.prototype.invalidateRawData=function(){this.disabled||this.isTemplate||(cC(rS.invalidRawDatas,this),QD.requestFrame(),this.rawDataInvalid=!0,KC(this.dataUsers.iterator(),(function(t){t.invalidateRawData()})))},e.prototype.validateRawData=function(){var t=this;hC(rS.invalidRawDatas,this),KC(this.mainDataSet.iterator(),(function(e){e&&t.updateDataItem(e)}))},e.prototype.dispose=function(){var e=this;this.mainDataSet.template.clones.clear(),NC(this._dataSources,(function(t,i){e.removeDispose(i)})),t.prototype.dispose.call(this)},e.prototype.disposeData=function(){this.mainDataSet.template.clones.clear(),lC(this._dataDisposers,(function(t){t.dispose()})),KC(this.dataUsers.iterator(),(function(t){t.disposeData()})),this._dataDisposers.length=0,this._startIndex=void 0,this._endIndex=void 0,this.mainDataSet.clear(),this.mainDataSet.template.clones.clear(),this._dataSets&&this._dataSets.clear()},e.prototype.getDataItem=function(t){return this.mainDataSet.create()},e.prototype.validateData=function(){if(this.dispatchImmediately("beforedatavalidated"),this.dataInvalid=!1,rS.removeFromInvalidComponents(this),!this.__disabled){if(this.dataValidationProgress=0,this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.dataFields.data&&this.dataItem){var t=this.dataItem.dataContext;this._data=t[this.dataFields.data]}if(0===this._parseDataFrom&&this.data.length>0&&this.disposeData(),this.data.length>0){var e=this.preloader;KC(this.dataUsers.iterator(),(function(t){t._startIndex=void 0,t._endIndex=void 0}));for(var i=0,n=Date.now(),r=this._parseDataFrom,s=this.data.length,o=function(){var t=a.data[r];if(a._usesData){var s=a.getDataItem(t);a.processDataItem(s,t)}if((a.dataUsers.each((function(e){if(0==e.data.length){var i=e.getDataItem(t);e.processDataItem(i,t)}})),100==++i)&&(i=0,Date.now()-n>a.parsingStepDuration&&r<a.data.length-10))return a._parseDataFrom=r+1,e&&(r/a.data.length>.5&&!e.visible||(e.progress=r/a.data.length)),a.dataValidationProgress=r/a.data.length,r=a.data.length,a.invalidateData(),{value:void 0}},a=this;r<s;r++){var l=o();if("object"==typeof l)return l.value}e&&(e.progress=1),this.dataUsers.each((function(t){t.hidden&&t.hide(0)}))}this.dataValidationProgress=1,this._parseDataFrom=0,this.invalidateDataItems(),this._internalDefaultsApplied||this.applyInternalDefaults(),this.dispatch("datavalidated")}},e.prototype.validateDataItems=function(){hC(rS.invalidDataItems,this),this.dataItemsInvalid=!1,this.invalidateDataRange(),this.invalidate(),this.dispatch("dataitemsvalidated")},Object.defineProperty(e.prototype,"data",{get:function(){return this._data||(this._data=[]),this._adapterO?this._adapterO.apply("data",this._data):this._data},set:function(t){this.setData(t)},enumerable:!0,configurable:!0}),e.prototype.setData=function(t){this._parseDataFrom=0,this.disposeData(),this._data=t,t&&t.length>0?this.invalidateData():(this.dispatchImmediately("beforedatavalidated"),this.dispatch("datavalidated"))},e.prototype.getDataSource=function(t){var e=this;return CP(this._dataSources[t])||(this._dataSources[t]=new rE,this._dataSources[t].component=this,this.setDataSourceEvents(this._dataSources[t],t),this._dataSources[t].adapter.add("dateFields",(function(t){return e.dataSourceDateFields(t)})),this._dataSources[t].adapter.add("numberFields",(function(t){return e.dataSourceNumberFields(t)})),this.events.on("inited",(function(){e.loadData(t)}),this,!1)),this._dataSources[t]},Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSources.data||this.getDataSource("data"),this._dataSources.data},set:function(t){var e=this;this._dataSources.data&&this.removeDispose(this._dataSources.data),this._dataSources.data=t,this._dataSources.data.component=this,this.events.on("inited",(function(){e.loadData("data")}),this,!1),this.setDataSourceEvents(t,"data")},enumerable:!0,configurable:!0}),e.prototype.loadData=function(t){this._dataSources[t].load()},e.prototype.dataSourceDateFields=function(t){return t},e.prototype.dataSourceNumberFields=function(t){return t},e.prototype.populateDataSourceFields=function(t,e,i){return lC(i,(function(i){e[i]&&-1===sC(t,e[i])&&t.push(e[i])})),t},e.prototype.setDataSourceEvents=function(t,e){var i=this;t.events.on("started",(function(t){var e=i.preloader;e&&(e.progress=0)}),void 0,!1),t.events.on("loadstarted",(function(t){var e=i.preloader;e&&(e.progress=.25)}),void 0,!1),t.events.on("loadended",(function(t){var e=i.preloader;e&&(e.progress=.5)}),void 0,!1),t.events.on("parseended",(function(t){var e=i.preloader;e&&(e.progress=.75)}),void 0,!1),t.events.on("ended",(function(t){var e=i.preloader;e&&(e.progress=1)}),void 0,!1),t.events.on("error",(function(t){var e=i.preloader;e&&(e.progress=1),i.openModal(t.message)}),void 0,!1),e&&t.events.on("done",(function(n){var r=i.preloader;r&&(r.progress=1),"data"!=e||IP(n.data)||(n.data=[n.data]),t.incremental&&"data"==e&&i.data.length?i.addData(n.data,t.keepCount?n.data.length:0):t.updateCurrentData&&"data"==e&&i.data.length?(lC(i.data,(function(t,e){CP(n.data[e])&&NC(t,(function(i,r){CP(n.data[e][i])&&(t[i]=n.data[e][i])}))})),i.invalidateRawData()):i[e]=n.data}))},Object.defineProperty(e.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new sE,this._responsive.component=this),this._responsive},set:function(t){this._responsive=t,this._responsive.component=this},enumerable:!0,configurable:!0}),e.prototype.zoom=function(t,e,i,n){var r=this;void 0===e&&(e=!1),void 0===i&&(i=!1);var s=t.start,o=t.end,a=t.priority;if(t.start==t.end&&(t.start=t.start-.5/this.maxZoomFactor,t.end=t.end+.5/this.maxZoomFactor),"end"==a&&1==o&&0!=s&&s<this.start&&(a="start"),"start"==a&&0==s&&o>this.end&&(a="end"),TP(n)||(n=this.maxZoomDeclination),!TP(s)||!TP(o))return{start:this.start,end:this.end};if(this._finalStart!=s||this._finalEnd!=o){var l=this.maxZoomFactor/this.minZoomCount,u=this.maxZoomFactor/this.maxZoomCount;if("start"==a?(this.maxZoomCount>0&&1/(o-s)<u&&(o=s+1/u),1/(o-s)>l&&(o=s+1/l),o>1&&o-s<1/l&&(s=o-1/l)):(this.maxZoomCount>0&&1/(o-s)<u&&(s=o-1/u),1/(o-s)>l&&(s=o-1/l),s<0&&o-s<1/l&&(o=s+1/l)),s<-n&&(s=-n),1/(o-s)>l&&(o=s+1/l),o>1+n&&(o=1+n),1/(o-s)>l&&(s=o-1/l),this._finalEnd=o,this._finalStart=s,this.skipRangeEvent=e,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!i){var h=this.rangeChangeAnimation;if(h&&h.progress<1){var c=h.animationOptions;if(c.length>1){if(c[0].to==s&&c[1].to==o)return{start:s,end:o};h.isDisposed()||h.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),h=this.animate([{property:"start",to:s},{property:"end",to:o}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=h,h&&!h.isFinished()?h.events.on("animationended",(function(){r.dispatchImmediately("rangechangeended")})):this.dispatchImmediately("rangechangeended")}else this.start=s,this.end=o,this.dispatch("rangechangeended")}return{start:s,end:o}},e.prototype.zoomToIndexes=function(t,e,i,n){if(TP(t)&&TP(e)){var r=t/this.dataItems.length,s=e/this.dataItems.length;this.zoom({start:r,end:s},i,n)}},Object.defineProperty(e.prototype,"zoomFactor",{get:function(){return NP(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(t){this.setPropertyValue("maxZoomFactor",t)&&(1==t&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(t){this.setPropertyValue("maxZoomDeclination",t)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return TP(this._startIndex)||(this._startIndex=0),this._startIndex},set:function(t){this._startIndex=NP(Math.round(t),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),e.prototype.indexToPosition=function(t){return t/this.dataItems.length},Object.defineProperty(e.prototype,"endIndex",{get:function(){var t=this.dataItems.length;return(!TP(this._endIndex)||this._endIndex>t)&&(this._endIndex=t),this._endIndex},set:function(t){this._endIndex=NP(Math.round(t),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(t){if(this._start!=t){this._start=t;var e=Math.max(0,Math.floor(this.dataItems.length*t)||0);this._startIndex=Math.min(e,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(t){this._end!=t&&(this._end=t,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*t)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),rS.removeFromInvalidComponents(this),hC(rS.invalidDataItems,this),hC(rS.invalidDataRange,this),hC(rS.invalidRawDatas,this)},Object.defineProperty(e.prototype,"dataItems",{get:function(){if(""!=this._currentDataSetId){var t=this.dataSets.getKey(this._currentDataSetId);if(t)return t}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new eS),this._dataSets},enumerable:!0,configurable:!0}),e.prototype.setDataSet=function(t){if(this._currentDataSetId!=t){if(this.dataSets.getKey(t))return this.dataItems.each((function(t){t.__disabled=!0})),this._currentDataSetId=t,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(t){t.__disabled=!1})),!0;if(""!=this._currentDataSetId)return this.dataItems.each((function(t){t.__disabled=!0})),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(t){t.__disabled=!1})),!0}return!1},Object.defineProperty(e.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),e.prototype._updateDataItemIndexes=function(t){for(var e=this.mainDataSet.values,i=e.length,n=t;n<i;++n)e[n]._index=n},e.prototype.handleDataItemAdded=function(t){t.newValue.component=this,this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.handleDataItemRemoved=function(t){this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},e.prototype.bindDataField=function(t,e){this.dataFields[t]=e,this.invalidateDataRange()},e.prototype.invalidateProcessedData=function(){this.resetProcessedRange(),this.invalidateDataRange()},e.prototype.resetProcessedRange=function(){this._prevEndIndex=null,this._prevStartIndex=null},Object.defineProperty(e.prototype,"dataUsers",{get:function(){var t=this;return this._dataUsers||(this._dataUsers=new uS,this._disposers.push(new xC((function(){KC(t._dataUsers.iterator(),(function(t){t.dispose()}))})))),this._dataUsers},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.dataFields=IS(this.dataFields,{}),e},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.data=e.data,this.sequencedInterpolation=e.sequencedInterpolation,this.sequencedInterpolationDelay=e.sequencedInterpolationDelay,this.interpolationDuration=e.interpolationDuration,this.interpolationEasing=e.interpolationEasing},e.prototype.reinit=function(){this._inited=!1,this.deepInvalidate()},e.prototype.getExporting=function(){var e=t.prototype.getExporting.call(this);return e.adapter.has("data",this._exportData,-1,this)||(e.adapter.add("data",this._exportData,-1,this),this.events.on("datavalidated",(function(t){e.menu&&e.menu.invalidate(),e.handleDataUpdated()}))),e},e.prototype._exportData=function(t){return t.data=this.data,t},e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return i&&this.invalidateData(),i},e.prototype.setShowOnInit=function(e){e!=this.getPropertyValue("showOnInit")&&(!e||this.inited||this.hidden?this._showOnInitDisposer2&&this.removeDispose(this._showOnInitDisposer2):(this._showOnInitDisposer2=this.events.once("dataitemsvalidated",this.hideInitially,this,!1),this._disposers.push(this._showOnInitDisposer2))),t.prototype.setShowOnInit.call(this,e)},e.prototype.setBaseId=function(e){e!=this._baseId&&this.dataInvalid&&(this.dataInvalid=!1,rS.removeFromInvalidComponents(this),this._baseId=e,this.invalidateData()),t.prototype.setBaseId.call(this,e)},Object.defineProperty(e.prototype,"minZoomCount",{get:function(){return this.getPropertyValue("minZoomCount")},set:function(t){this.setPropertyValue("minZoomCount",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomCount",{get:function(){return this.getPropertyValue("maxZoomCount")},set:function(t){this.setPropertyValue("maxZoomCount",t)},enumerable:!0,configurable:!0}),e.prototype._systemCheckIfValidate=function(){return!(this.dataInvalid||this.dataProvider&&this.dataProvider.dataInvalid)},e.prototype.asFunction=function(e){return"interpolationEasing"==e||"rangeChangeEasing"==e||t.prototype.asIs.call(this,e)},e}(ZD);rS.registeredClasses.Component=uE;var hE=function(t){function e(){var e=t.call(this)||this;return e.isOversized=!1,e.className="Label",e.fill=(new nD).getFor("text"),e.wrap=!1,e.truncate=!1,e.fullWords=!0,e.ellipsis="\u2026",e.textAlign="start",e.textValign="top",e.layout="absolute",e.baseLineRatio=-.27,e._positionPrecision=1,e.events.on("maxsizechanged",(function(){e.inited&&e.handleMaxSize()}),e,!1),e.events.once("validated",e.handleValidate,e,!1),e.applyTheme(),e}return uP(e,t),e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.validatePosition()},e.prototype.setPaper=function(e){var i=t.prototype.setPaper.call(this,e);return i&&this.hardInvalidate(),i},e.prototype.handleValidate=function(){!this.currentText&&!this.text||0!=this.bbox.width&&0!=this.bbox.height||rS.events.once("exitframe",this.hardInvalidate,this)},e.prototype.handleMaxSize=function(){this.bbox.width>this.availableWidth||this.bbox.width<this.availableWidth&&(this.isOversized||this.truncate)||this.bbox.height>this.availableHeight||this.bbox.height<this.availableHeight&&this.isOversized?this.invalidate():this.alignSVGText()},e.prototype.arrange=function(){},e.prototype.updateCurrentText=function(){var t,e;jS(this.html)&&this.paper.supportsForeignObject()?(t="html",e=this.html):(t="svg",e=this.text),kP(e)&&(e=e.toString()),CP(e)&&""!==e&&(e=this.populateString(e,this.dataItem)),"html"==t?this._adapterO&&(e=this._adapterO.apply("htmlOutput",e)):this._adapterO&&(e=this._adapterO.apply("textOutput",e));var i=e!=this.currentText||t!=this._currentFormat;return this.currentText=e,this._currentFormat=t,i},e.prototype.hardInvalidate=function(){this._prevStatus="",this.invalidate()},e.prototype.getLineBBox=function(t){var e=t&&t.element,i=e&&e.node;i&&i.parentNode&&(t.bbox=e.getBBox())},e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.bbox.width,i=this.bbox.height,n=this.topParent;if(!n||n.maxWidth&&n.maxHeight){var r=zP(this.availableWidth-this.pixelPaddingLeft-this.pixelPaddingRight,0),s=zP(this.availableHeight-this.pixelPaddingTop-this.pixelPaddingBottom,0),o=s+","+r+this.wrap+this.truncate+this.fullWords+this.rtl+this.ellipsis;if(this.updateCurrentText()||!this.inited||this._prevStatus!=o){this._measuredWidth=0,this._measuredHeight=0,this.isOversized=!1;var a=this._currentFormat,l=this.currentText;if(CP(l)&&""!=l){var u=l.split("\n");this._prevStatus=o,this.textAlign=this.textAlign;var h=this.group.getAttr("display");if("none"==h&&this.group.removeAttr("display"),this.textPathElement&&this.textPathElement.removeChildren(),"svg"===a){this.element.removeAttr("display");var c=this.element;this.resetBBox();for(var p=0,d="",f=0;f<u.length;f++){var g=u[f];if(""!=g){var m=FD().chunk(g,null,this.ignoreFormatting),y=0,v=!0,b=!1,_=this.getLineInfo(f);_?(_.text="",_.element.textContent=""):(_={text:"",element:this.getSVGLineElement("",0),complex:!1},c.add(_.element)),_.element.removeAttr("display"),_.element.removeChildren(),this.textPathElement&&_.element.add(this.textPathElement);for(var x=0;x<m.length;x++){x&&(_.complex=!0);var w=m[x];if("format"===w.type)d=w.text;else{if(b)continue;_.text=w.text,_.style=FD().translateStyleShortcuts(d);var P=this.getSvgElement(_.text,_.style);if(this.textPathElement?this.textPathElement.add(P):_.element.add(P),this.getLineBBox(_),_.bbox.width=Math.ceil(_.bbox.width),y<_.bbox.height&&(y=_.bbox.height),(this.wrap||this.truncate)&&_.bbox.width>r){this.isOversized=!0;var C=_.element.textContent,S=_.bbox.width/C.length,O=UP(Math.ceil((_.bbox.width-r)/S),C.length);if(this.truncate){var D=!1,E=_.element.node;if(E&&E.childNodes)for(var T=_.element.node.childNodes.length-1;T>=0;T--){var k=_.element.node.childNodes[T];if(D&&_.bbox.width<=r&&(k.textContent+=" "+this.ellipsis,_.bbox=_.element.getBBox(),_.bbox.width=Math.floor(_.bbox.width),_.bbox.width<=r))break;D=!1;var I=k.textContent;for(C=_.element.textContent,O=UP(Math.ceil((_.bbox.width-r)/S),C.length);_.bbox.width>r&&O<=C.length&&O>0;){(A=zP(C.length-O-this.ellipsis.length,1))<=1&&(O=0,T>0&&(D=!0,_.element.node.removeChild(k))),(I=BS(I,A,this.ellipsis,this.fullWords,this.rtl)).length>A&&this.fullWords&&(I=BS(I,A,this.ellipsis,!1,this.rtl)),k.textContent=I,_.bbox=_.element.getBBox(),_.bbox.width=Math.floor(_.bbox.width),O=Math.ceil(1.1*O)}b=!0}}else{if(_.element.node){for(var M=_.element.node.lastChild,F=void 0;_.bbox.width>r&&O<=C.length&&O>0;){var A=zP(w.text.length-O,1);v?F=NS(w.text,A,!0,this.rtl):((F=NS(w.text,A,!0,this.rtl))[0].length>A||1===A)&&(_.element.node.removeChild(M),O=0),O>0&&(M.textContent=FD().cleanUp(HS(F.shift()))),_.bbox=_.element.getBBox(),_.bbox.width=Math.floor(_.bbox.width),O=Math.ceil(1.1*O)}if(F.length>0){var j="";CP(F)&&(this.rtl?j+=F.join("")+d:j+=d+F.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var L=x+1;L<m.length;L++)"value"==m[L].type?j+=m[L].text.replace(/([\[\]]{1})/g,"$1$1"):j+=m[L].text;u.splice(f+1,0,j)}b=!0}}}this.bbox.width<_.bbox.width&&(this.bbox.width=_.bbox.width),this.bbox.height=p+y,this.textPathElement?_.element.attr({dy:-this.paddingBottom.toString()}):_.element.attr({x:"0",y:p+y,dy:VP(this.baseLineRatio*y,3).toString()}),v=!1}}var V=_.element.node;if(V)(M=V.lastChild)&&(M.textContent=this.rtl?M.textContent.replace(/^[\s\uFEFF\xA0]+/g,""):zS(M.textContent));p+=y,this.addLineInfo(_,f)}else{var R=this.getSVGLineElement("",0);R.add(this.getSvgElement(".",FD().translateStyleShortcuts(d))),c.add(R);var N=Math.ceil(R.getBBox().height);N>0&&(p+=N),c.removeElement(R);var B=this.getLineInfo(f);B&&(B.text="",B.element.textContent="")}}this.maybeHideOversized(),this.measureFailed=!1,0!=this.bbox.width&&0!=this.bbox.height||(this.measureFailed=!0),this._measuredWidth=VP(zP(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=VP(zP(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,i==this._measuredHeight&&e==this._measuredWidth||this.dispatch("transformed"),this.hideUnused(u.length)}else{this.element.removeAttr("display"),this.resetBBox(),(c=this.element).removeChildren();var H=this.paper.foreignObject();c.add(H),this.maxWidth&&H.attr({width:this.maxWidth}),this.maxHeight&&H.attr({height:this.maxHeight});var z=this.getHTMLLineElement(l);H.node.appendChild(z),z.style.display="inline-block";var U=z.clientWidth,W=z.clientHeight;z.style.display="block",this._bbox={x:0,y:0,width:U,height:W},H.attr({width:U,height:W}),this.maybeHideOversized(),this._measuredWidth=zP(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=zP(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(z.style.overflow="hidden"),(U>r||W>s)&&(this.isOversized=!0)}this.setStyles(),this.updateCenter(),this.updateBackground(),"none"==h&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}else this.element.attr({display:"none"})}}else n.events.once("maxsizechanged",this.hardInvalidate,this,!1)},e.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth<this.bbox.width||this.availableHeight<this.bbox.height?(this.element.attr({display:"none"}),this.isOversized=!0):(this.element.removeAttr("display"),this.isOversized=!1))},e.prototype.alignSVGText=function(){var t=this.element,e=t.node.children||t.node.childNodes;if(e&&(!e||0!=e.length)){var i=this._measuredWidth,n=this._measuredHeight;this.pixelPaddingLeft,this.pixelPaddingRight,this.pixelPaddingTop,this.pixelPaddingBottom;for(var r=e.length-1;r>=0;r--){var s=e[r];if(s.setAttribute("text-anchor",this.textAlign),this.textPathElement)s.removeAttribute("x"),s.removeAttribute("y");else{switch(this.textAlign){case"middle":s.setAttribute("x",(i/2).toString()+"px");break;case"end":this.rtl||s.setAttribute("x",i.toString());break;default:this.rtl?s.setAttribute("x",i.toString()):s.removeAttribute("text-anchor")}var o=xP(s.getAttribute("y"));switch(this.textValign){case"middle":s.setAttribute("y",((o||0)+(n-this.bbox.height)/2).toString());break;case"bottom":s.setAttribute("y",((o||0)+n-this.bbox.height).toString());break;default:s.setAttribute("y",(o||0).toString())}}}}},e.prototype.getSVGLineElement=function(t,e){var i=this.paper.addGroup("text");return i.textContent=t,i.attr({x:"0"}),CP(e)&&i.attr({y:e.toString()}),(this.truncate||this.wrap)&&i.attr({overflow:"hidden"}),this.rtl&&i.attr({direction:"rtl"}),i},e.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},e.prototype.getHTMLLineElement=function(t){var e=document.createElement("div");switch(e.innerHTML=t,this.textAlign){case"middle":e.style.textAlign="center";break;case"end":e.style.textAlign="right"}return this.wrap?e.style.wordWrap="break-word":e.style.whiteSpace="nowrap",this.rtl&&(e.style.direction="rtl"),CP(this.fill)&&(e.style.color=this.fill.toString()),e},e.prototype.setStyles=function(){var t=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?t.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(t.removeStyle("webkitUserSelect"),t.removeStyle("msUserSelect"))},e.prototype.hideUnused=function(t){this.initLineCache();var e=this.getCache("lineInfo");if(e.length>=t)for(var i=t;i<e.length;i++){var n=e[i];n&&n.element&&n.element.attr({display:"none"})}},Object.defineProperty(e.prototype,"text",{get:function(){return this.getPropertyValue("text")},set:function(t){this.setPropertyValue("text",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(t){this.setPropertyValue("path",t,!0)&&(this.pathElement&&this.pathElement.dispose(),this.textPathElement&&this.textPathElement.dispose(),this.pathElement=this.paper.add("path"),this.pathElement.attr({d:t}),this.pathElement.attr({id:"text-path-"+this.uid}),this._disposers.push(this.pathElement),this.textPathElement=this.paper.addGroup("textPath"),this.textPathElement.attrNS(NO,"xlink:href","#text-path-"+this.uid),this.textPathElement.attr({path:t}),this._disposers.push(this.textPathElement),this.hardInvalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationOnPath",{get:function(){return this.getPropertyValue("locationOnPath")},set:function(t){this.setPropertyValue("locationOnPath",t),this.textPathElement&&this.textPathElement.attr({startOffset:100*t+"%"})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseLineRatio",{get:function(){return this.getPropertyValue("baseLineRatio")},set:function(t){this.setPropertyValue("baseLineRatio",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrap",{get:function(){return this.getPropertyValue("wrap")},set:function(t){this.resetBBox(),this.setPropertyValue("wrap",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"truncate",{get:function(){return this.getPropertyValue("truncate")},set:function(t){this.resetBBox(),this.setPropertyValue("truncate",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWords",{get:function(){return this.getPropertyValue("fullWords")},set:function(t){this.setPropertyValue("fullWords",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ellipsis",{get:function(){return this.getPropertyValue("ellipsis")},set:function(t){this.setPropertyValue("ellipsis",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this.getPropertyValue("selectable")},set:function(t){this.setPropertyValue("selectable",t,!0),this.setStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textAlign",{get:function(){return this.getPropertyValue("textAlign")},set:function(t){this.setPropertyValue("textAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textValign",{get:function(){return this.getPropertyValue("textValign")},set:function(t){this.setPropertyValue("textValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.getPropertyValue("html")},set:function(t){this.setPropertyValue("html",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideOversized",{get:function(){return this.getPropertyValue("hideOversized")},set:function(t){this.setPropertyValue("hideOversized",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreFormatting",{get:function(){return this.getPropertyValue("ignoreFormatting")},set:function(t){this.setPropertyValue("ignoreFormatting",t,!0)},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){},e.prototype.getLineInfo=function(t){this.initLineCache();var e=this.getCache("lineInfo");return e.length>t?e[t]:void 0},e.prototype.addLineInfo=function(t,e){this.initLineCache(),this.getCache("lineInfo")[e]=t},e.prototype.initLineCache=function(){CP(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},e.prototype.setDataItem=function(e){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),e&&(this._sourceDataItemEvents=new wC([e.events.on("valuechanged",this.invalidate,this,!1),e.events.on("workingvaluechanged",this.invalidate,this,!1),e.events.on("calculatedvaluechanged",this.invalidate,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),t.prototype.setDataItem.call(this,e)},Object.defineProperty(e.prototype,"availableWidth",{get:function(){return CP(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"availableHeight",{get:function(){return CP(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.getSvgElement=function(t,e){var i=this.paper.add("tspan");return i.textContent=t,e&&i.node.setAttribute("style",e),i},e.prototype.deepInvalidate=function(){t.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(e.prototype,"readerTitle",{get:function(){var t=this.getPropertyValue("readerTitle");return t||(t=this.populateString(KS(jS(this.html)?this.html:this.text))),t},set:function(t){t=wP(t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),e}(ZD);rS.registeredClasses.Label=hE,oE.push({relevant:aE.heightXS,state:function(t,e){if(t instanceof hE&&t.parent&&t.parent.isBaseSprite){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var cE=function(t){function e(){var e=t.call(this)||this;return e.className="RoundedRectangle",e.element=e.paper.add("path"),e.cornerRadius(3,3,3,3),e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight;if(TP(e)&&TP(i)){var n=UP(e,i)/2,r=LS(this.cornerRadiusTopLeft,n),s=LS(this.cornerRadiusTopRight,n),o=LS(this.cornerRadiusBottomRight,n),a=LS(this.cornerRadiusBottomLeft,n),l=UP(Math.abs(e/2),Math.abs(i/2)),u=NP(r,0,l),h=NP(s,0,l),c=NP(o,0,l),p=NP(a,0,l),d="M"+u+",0 L"+(e-h)+",0"+(" a"+h+","+h+" 0 0 1 "+h+","+h)+(" L"+e+","+(i-c))+(" a"+c+","+c+" 0 0 1 -"+c+","+c)+(" L"+p+","+i)+(" a"+p+","+p+" 0 0 1 -"+p+",-"+p)+(" L0,"+u)+(" a"+u+","+u+" 0 0 1 "+u+",-"+u)+" Z";this.path=d}},e.prototype.cornerRadius=function(t,e,i,n){this.cornerRadiusTopLeft=t,this.cornerRadiusTopRight=e,this.cornerRadiusBottomLeft=i,this.cornerRadiusBottomRight=n},Object.defineProperty(e.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(t){this.setPercentProperty("cornerRadiusTopLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")},set:function(t){this.setPercentProperty("cornerRadiusTopRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(t){this.setPercentProperty("cornerRadiusBottomRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(t){this.setPercentProperty("cornerRadiusBottomLeft",t,!0)},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),e}(qD);rS.registeredClasses.RoundedRectangle=cE;var pE=function(t){function e(){var e=t.call(this)||this;e.className="Button",e.tooltipY=0,e.iconPosition="left",e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0;var i=new nD,n=e.background;n.fill=i.getFor("secondaryButton"),n.stroke=i.getFor("secondaryButtonStroke"),n.fillOpacity=1,n.strokeOpacity=1,n.cornerRadius(3,3,3,3),e.label=new hE,e.label.fill=i.getFor("secondaryButtonText"),e.label.shouldClone=!1;var r=n.states.create("hover");r.properties.fillOpacity=1,r.properties.fill=i.getFor("secondaryButtonHover");var s=n.states.create("down");return s.transitionDuration=100,s.properties.fill=i.getFor("secondaryButtonDown"),s.properties.fillOpacity=1,e.role="button",e.focusable=!0,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"icon",{get:function(){return this._icon},set:function(t){var e=this._icon;e&&(e.parent=void 0),t&&(this._icon=t,t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this.iconPosition=this.iconPosition,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(t){this.setPropertyValue("iconPosition",t),this.icon&&("left"==t?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(t){this._label&&this.removeDispose(this._label),this._label=t,t&&(t.parent=this,t.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new cE},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.label&&this.label.copyFrom(e.label),e.icon&&(this.icon=e.icon.clone())},e}(ZD);rS.registeredClasses.Button=pE;var dE=function(t){function e(){var e=t.call(this)||this;return e.className="Circle",e.element=e.paper.add("circle"),e.setPercentProperty("radius",mP(100)),e.setPropertyValue("horizontalCenter","middle"),e.setPropertyValue("verticalCenter","middle"),e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return LS(this.radius,UP(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){var t=this.pixelRadius;this._bbox={x:-t,y:-t,width:2*t,height:2*t}},e}(qD);rS.registeredClasses.Circle=dE;var fE=function(t){function e(){var e=t.call(this)||this;return e.className="Ellipse",e.element=e.paper.add("ellipse"),e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(e.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(t){this.height=2*t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(t){this.width=2*t,this.invalidate()},enumerable:!0,configurable:!0}),e}(dE);rS.registeredClasses.Ellipse=fE;var gE=function(t){function e(){var e=t.call(this)||this;return e.className="Image",e.element=e.paper.add("image"),e.applyTheme(),e.width=50,e.height=50,e}return uP(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),this.href){var e=this.innerWidth,i=this.innerHeight;TP(this.widthRatio)&&(e=i*this.widthRatio,this.width=e),TP(this.heightRatio)&&(i=e*this.heightRatio,this.height=i),this.element.attr({width:e,height:i}),this.element.attrNS(NO,"xlink:href",this.href)}},Object.defineProperty(e.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(t){this.setPropertyValue("href",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(t){this.setPropertyValue("widthRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(t){this.setPropertyValue("heightRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),e}(qD);rS.registeredClasses.Image=gE;var mE=function(t){function e(){var e=t.call(this)||this;return e.className="Line",e.element=e.paper.add("line"),e.fill=DS(),e.x1=0,e.y1=0,e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.x1==this.x2||this.y1==this.y2?this.pixelPerfect=!0:this.pixelPerfect=!1,this.x1=this.x1,this.x2=this.x2,this.y1=this.y1,this.y2=this.y2},Object.defineProperty(e.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(t){TP(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof OD&&(e=1e-5),this.setPropertyValue("x1",t,!0),this.element.attr({x1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){var t=this.getPropertyValue("x2");return TP(t)||(t=this.pixelWidth),t},set:function(t){TP(t)||(t=0),this.setPropertyValue("x2",t,!0),this.element.attr({x2:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(t){TP(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof OD&&(e=1e-5),this.setPropertyValue("y1",t,!0),this.element.attr({y1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){var t=this.getPropertyValue("y2");return TP(t)||(t=this.pixelHeight),t},set:function(t){TP(t)||(t=0),this.setPropertyValue("y2",t,!0),this.element.attr({y2:t})},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.x2,y:this.y2},n=YP(e,i,t),r=qP(e,i);return{x:n.x,y:n.y,angle:r}},e}(qD);rS.registeredClasses.Line=mE;var yE=function(t){function e(){var e=t.call(this)||this;return e.className="PointedRectangle",e.element=e.paper.add("path"),e.cornerRadius=6,e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.cornerRadius,i=this.innerWidth,n=this.innerHeight;if(i>0&&n>0){var r,s,o=this.pointerX,a=this.pointerY,l=this.pointerBaseWidth/2,u=UP(i/2,n/2),h=NP(e,0,u),c=NP(e,0,u),p=NP(e,0,u),d=NP(e,0,u),f=void 0,g=void 0,m=void 0,y=void 0,v=(o-0)*(n-0)-(a-0)*(i-0),b=(o-0)*(0-n)-(a-n)*(i-0);if(v>0&&b>0)f="M"+h+",0 L"+((r=NP(o,h+l,i-l-c))-l)+",0 L"+o+","+(a=NP(a,-1/0,0))+" L"+(r+l)+",0 L"+(i-c)+",0";else f="M"+h+",0 L"+(i-c)+",0";if(v<0&&b<0)m=" L"+(i-p)+","+n+" L"+((r=NP(o,d+l,i-l-p))+l)+","+n+" L"+o+","+(a=NP(a,n,1/0))+" L"+(r-l)+","+n+" L"+d+","+n;else m=" L"+d+","+n;if(v<0&&b>0)y=" L0,"+(n-d)+" L0,"+((s=NP(a,h+l,n-d-l))+l)+" L"+(o=NP(o,-1/0,0))+","+a+" L0,"+(s-l)+" L0,"+h;else y=" L0,"+h;if(v>0&&b<0)g=" L"+i+","+c+" L"+i+","+((s=NP(a,c+l,n-l-p))-l)+" L"+(o=NP(o,i,1/0))+","+a+" L"+i+","+(s+l)+" L"+i+","+(n-p);else g=" L"+i+","+(n-p);var _=" a"+c+","+c+" 0 0 1 "+c+","+c,x=" a"+p+","+p+" 0 0 1 -"+p+","+p,w=" a"+d+","+d+" 0 0 1 -"+d+",-"+d,P=" a"+h+","+h+" 0 0 1 "+h+",-"+h;this.path=f+_+g+x+m+w+y+P}},Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(function(t){function e(){var e=t.call(this)||this;return e.className="PointedShape",e.pointerBaseWidth=15,e.pointerLength=10,e.pointerY=0,e.pointerX=0,e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),TP(this.pointerX)||(this.pointerX=this.pixelWidth/2),TP(this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(e.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(t){this.setPropertyValue("pointerBaseWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(t){this.setPropertyValue("pointerLength",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(t){this.setPropertyValue("pointerX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(t){this.setPropertyValue("pointerY",t,!0)},enumerable:!0,configurable:!0}),e}(qD));function vE(t){return" M"+VP(t.x,4)+","+VP(t.y,4)+" "}function bE(t){return" L"+VP(t.x,4)+","+VP(t.y,4)+" "}function _E(t,e,i){return" C"+VP(e.x,4)+","+VP(e.y,4)+" "+VP(i.x,4)+","+VP(i.y,4)+" "+VP(t.x,4)+","+VP(t.y,4)}function xE(t,e,i,n){if(0==e)return"";TP(n)||(n=i);var r="",s=",",o=Math.ceil(Math.abs(e)/180),a=1;e<0&&(a=0);var l=0,u=0,h=-HP(t)*i,c=-BP(t)*n;if(e<.5&&i>3e3)return bE({x:f=VP(HP(d=t+e)*i,4),y:g=VP(BP(d)*n,4)});for(var p=0;p<o;p++){var d,f,g;r+=" a"+i+s+n+s+0+s+0+s+a+s+(f=VP(HP(d=t+e/o*(p+1))*i+h-l,4))+s+(g=VP(BP(d)*n+c-u,4)),l=f,u=g}return r}function wE(t,e,i,n,r,s){if(0==e)return"";var o=",";return" A"+e+o+i+o+(s=s||0)+o+ +(r=Boolean(r))+o+ +(n=Boolean(n))+o+VP(t.x,4)+o+VP(t.y,4)}function PE(t,e){var i=",",n=" L";return e?"M"+t.x+i+t.y+n+t.x+i+(t.y+t.height)+n+(t.x+t.width)+i+(t.y+t.height)+n+(t.x+t.width)+i+t.y+n+t.x+i+t.y:"M"+t.x+i+t.y+n+(t.x+t.width)+i+t.y+n+(t.x+t.width)+i+(t.y+t.height)+n+t.x+i+(t.y+t.height)+n+t.x+i+t.y}var CE=function(t){function e(){var e=t.call(this)||this;return e._distance=0,e.className="Polyline",e.element=e.paper.add("path"),e.shapeRendering="auto",e.fill=DS(),e.strokeOpacity=1,e.applyTheme(),e}return uP(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){for(var e="",i=0,n=t.length;i<n;i++){var r=t[i];if(r.length>0){e+=vE(r[0]);for(var s=1;s<r.length;s++){var o=r[s];e+=bE(o),this._distance+=GP(r[s-1],o)}}}this.path=e}this._realSegments=t},Object.defineProperty(e.prototype,"segments",{get:function(){return this.getPropertyValue("segments")},set:function(t){this.setPropertyValue("segments",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e=0;t<0&&(t=Math.abs(t),e=180);var i=this._realSegments;if(i){for(var n=this.distance,r=0,s=0,o=0,a=void 0,l=void 0,u=0;u<i.length;u++){var h=i[u];if(h.length>1){for(var c=1;c<h.length;c++)if(s=r/n,o=(r+=GP(a=h[c-1],l=h[c]))/n,s<=t&&o>t){u=i.length;break}}else 1==h.length&&(a=h[0],l=h[0],s=0,o=1)}if(a&&l){var p=YP(a,l,(t-s)/(o-s));return{x:p.x,y:p.y,angle:e+qP(a,l)}}}return{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"realSegments",{get:function(){return this._realSegments},enumerable:!0,configurable:!0}),e}(qD);rS.registeredClasses.Polyline=CE;var SE=function(t){function e(){var e=t.call(this)||this;return e.className="Polyarc",e.controlPointDistance=.5,e.controlPointPosition=.5,e.applyTheme(),e}return uP(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){var e="";this._realSegments=[];for(var i=0,n=t.length;i<n;i++){var r=t[i],s=[];if(this._realSegments.push(s),r.length>0){e+=vE(r[0]);for(var o=1;o<r.length;o++){var a=r[o-1],l=r[o],u=GP(l,a),h=u*this.controlPointDistance,c=this.controlPointPosition,p=-qP(a,l),d={x:a.x+(l.x-a.x)*c*.5-h*BP(p),y:a.y+(l.y-a.y)*c*.5-h*HP(p)},f={x:a.x+(l.x-a.x)*c*1.5-h*BP(p),y:a.y+(l.y-a.y)*c*1.5-h*HP(p)};e+=_E(l,d,f);var g=Math.ceil(u),m=a;if(g>0)for(var y=0;y<=g;y++){var v=QP(a,l,d,f,y/g);s.push(v),this._distance+=GP(m,v),m=v}else s.push(a)}}}this.path=e}},Object.defineProperty(e.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(t){this.setPropertyValue("controlPointPosition",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t),this.makePath()},enumerable:!0,configurable:!0}),e}(CE);rS.registeredClasses.Polyarc=SE;var OE=function(t){function e(e){var i=t.call(this)||this;return i._bboxes=[],i.morphDuration=800,i.morphEasing=xO,i.morphToSingle=!0,i.scaleRatio=1,i.className="Morpher",i.morphable=e,i.applyTheme(),i}return uP(e,t),e.prototype.morphToPolygon=function(t,e,i){var n=this.morphable.currentPoints;if(n&&t){this.sortPoints(n),this.sortPoints(t),this._morphFromPointsReal=[],this._morphToPointsReal=[],CP(e)||(e=this.morphDuration),CP(i)||(i=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(t,n),this._morphToPointsReal=this.normalizePoints(n,t),this.morphable.currentPoints=this._morphFromPointsReal;var r=new LO(this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(r),r.start(),r}},e.prototype.normalizePoints=function(t,e){for(var i=0,n=t.length;i<n;i++){var r=t[i][0],s=t[i][1],o=SP(XP(r)),a=o.x+o.width,l=o.y+o.height;if(e[i]||(e[i]=[]),r&&!e[i][0]&&(e[i][0]=[{x:a,y:l},{x:a,y:l}]),e[i][0]){e[i][0]=this.addPoints(e[i][0],r.length);for(var u=1/0,h=0,c=0;c<e[i][0].length;c++){var p=GP(e[i][0][c],r[0]);p<u&&(h=c,u=p)}var d=e[i][0].slice(0,h),f=e[i][0].slice(h);e[i][0]=f.concat(d)}s&&(e[i][1]||(e[i][1]=[{x:a,y:l},{x:a,y:l}]),e[i][1]=this.addPoints(e[i][1],s.length))}return e},e.prototype.sortPoints=function(t){t.sort((function(t,e){var i=SP(XP(t[0])),n=SP(XP(e[0]));return i.width*i.height>n.width*n.height?-1:1}));for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i][0];r&&e.push(SP(XP(r)))}return ZP(e)},e.prototype.morphToCircle=function(t,e,i){var n=this.morphable.points,r=this.sortPoints(n);this._morphFromPointsReal=[],this._morphToPointsReal=[],CP(e)||(e=this.morphDuration),CP(i)||(i=this.morphEasing);for(var s=0,o=n.length;s<o;s++){var a=n[s][0],l=n[s][1];if(this._morphFromPointsReal[s]=[],this._morphToPointsReal[s]=[],a){var u=a,h=a,c=SP(XP(h));this.morphToSingle&&(c=SP(r));var p=c.x+c.width/2,d=c.y+c.height/2,f=t;TP(f)||(f=Math.min(c.width/2,c.height/2)),u=[];var g=qP({x:p,y:d},a[0]),m=100;a.length>m&&(m=a.length);for(var y=360/((m=(h=this.addPoints(a,m)).length)-1),v=0;v<m;v++){var b=y*v+g,_={x:p+f*HP(b),y:d+f*BP(b)};u[v]=_}if(l&&l.length>0)for(var x=0,w=l.length;x<w;x++)u.push({x:p,y:d});this._morphFromPointsReal[s][0]=h,this._morphToPointsReal[s][0]=u}}this.morphable.currentPoints=this._morphFromPointsReal;var P=new LO(this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(P),P.start(),P},e.prototype.addPoints=function(t,e){for(var i=Math.round(e/t.length),n=[],r=0,s=t.length;r<s;r++){var o=t[r],a=void 0;a=r==t.length-1?t[0]:t[r+1],n.push(o);for(var l=1;l<i;l++){var u=l/i,h={x:o.x+(a.x-o.x)*u,y:o.y+(a.y-o.y)*u};n.push(h)}n.length+t.length-r==e&&(i=0)}if(n.length<e&&t.length>0){var c=t[t.length-1];for(l=n.length;l<e;l++)n.push({x:c.x,y:c.y})}return n},e.prototype.morphToRectangle=function(t,e,i,n){var r=this.morphable.points;this.sortPoints(r),this._morphFromPointsReal=[],this._morphToPointsReal=[],CP(i)||(i=this.morphDuration),CP(n)||(n=this.morphEasing);for(var s=0,o=r.length;s<o;s++){var a=r[s][0],l=r[s][1];if(this._morphFromPointsReal[s]=[],this._morphToPointsReal[s]=[],a){var u=a,h=a,c=this._bboxes[s];this.morphToSingle;var p=c.x,d=c.y,f=t,g=e;if(TP(f)||(f=c.width),TP(g)||(g=c.height),u=[{x:p,y:d},{x:p+f,y:d},{x:p+f,y:d+g},{x:p,y:d+g}],u=this.addPoints(u,a.length),a.length<4)for(var m=a.length;m<4;m++)u.push({x:a[m].x,y:a[m].y});if(l&&l.length>0)for(var y=c.x+c.width/2,v=c.y+c.height/2,b=0,_=l.length;b<_;b++)u.push({x:y,y:v});this._morphFromPointsReal[s][0]=h,this._morphToPointsReal[s][0]=u}}this.morphable.currentPoints=this._morphFromPointsReal;var x=new LO(this,{property:"morphProgress",from:0,to:1},i,n);return this._disposers.push(x),x.start(),x},Object.defineProperty(e.prototype,"morphProgress",{get:function(){return this._morphProgress},set:function(t){this._morphProgress=t;var e=[];if(null!=t){var i=this._morphFromPointsReal,n=this._morphToPointsReal;if(null!=i&&null!=n)for(var r=0,s=i.length;r<s;r++){var o=[];e.push(o);var a=i[r][0],l=i[r][1],u=n[r][0],h=n[r][1];if(a&&a.length>0&&u&&u.length>0){for(var c=[],p=0,d=a.length;p<d;p++){var f=a[p],g=u[p],m={x:f.x+(g.x*this.scaleRatio-f.x)*t,y:f.y+(g.y*this.scaleRatio-f.y)*t};c.push(m)}o[0]=c}if(l&&l.length>0&&h&&h.length>0){for(var y=[],v=0,b=l.length;v<b;v++){f=l[v],g=h[v],m={x:f.x+(g.x*this.scaleRatio-f.x)*t,y:f.y+(g.y*this.scaleRatio-f.y)*t};y.push(m)}o[1]=y}}}this.morphable.currentPoints=e},enumerable:!0,configurable:!0}),e.prototype.morphBack=function(t,e){this._morphToPointsReal=this._morphFromPointsReal,this._morphFromPointsReal=this.morphable.currentPoints,CP(t)||(t=this.morphDuration),CP(e)||(e=this.morphEasing);var i=new LO(this,{property:"morphProgress",from:0,to:1},t,e);return this._disposers.push(i),i.start(),i},Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new jO(this._animations))),this._animations},enumerable:!0,configurable:!0}),e}(TS),DE=function(t){function e(){var e=t.call(this)||this;return e.className="Polygon",e.element=e.paper.add("path"),e.shapeRendering="auto",e._currentPoints=[],e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"points",{get:function(){var t=this.getPropertyValue("points"),e=this.path;if(e&&(!t||0==t.length)){for(var i=e.slice(1,e.length-1).split("ZM"),n=0;n<i.length;n++){var r=i[n];if(r.length>0){var s=r.split("M"),o=s[0],a=s[1];if(o&&o.length>0){var l=o.split("L");if(l.length>0){var u=[],h=[u];t.push(h);for(var c=0;c<l.length;c++){var p=l[c].split(",");u.push({x:+p[0],y:+p[1]})}if(a&&a.length>0){var d=a.split("L");if(d.length>0){var f=[];h.push(f);for(c=d.length-1;c>=0;c--){p=d[c].split(",");f.push({x:+p[0],y:+p[1]})}}}}}}}this.setPropertyValue("points",t),this._currentPoints=t}return t},set:function(t){this.setPropertyValue("points",t,!0),this._currentPoints=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentPoints",{get:function(){return this._currentPoints&&0!=this._currentPoints.length||!this.path||(this._currentPoints=this.points),this._currentPoints},set:function(t){this._currentPoints!=t&&(this._currentPoints=t,this.draw())},enumerable:!0,configurable:!0}),e.prototype.draw=function(){var e,i,n,r,s="",o=this._currentPoints;if(o.length>0){for(var a=0,l=o.length;a<l;a++){var u=o[a][0],h=o[a][1];if(u&&u.length>0){s+=vE(p=u[0]);for(var c=0;c<u.length;c++)s+=bE(p=u[c]),(!TP(i)||i<p.x)&&(i=p.x),(!TP(e)||e>p.x)&&(e=p.x),(!TP(n)||n>p.y)&&(n=p.y),(!TP(r)||r<p.y)&&(r=p.y)}if(h&&h.length>0){var p;s+=vE(p=h[0]);for(var d=0,f=h.length;d<f;d++)s+=bE(p=h[d])}}s&&(s+=" Z"),this.bbox.x=e,this.bbox.y=n,this.bbox.width=i-e,this.bbox.height=r-n,t.prototype.setPath.call(this,s)}},e.prototype.setPath=function(e){return!!t.prototype.setPath.call(this,e)&&(this.points=[],this._bbox=this.group.getBBox(),!0)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"centerPoint",{get:function(){return{x:this.bbox.x+this.bbox.width/2,y:this.bbox.y+this.bbox.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"morpher",{get:function(){return this._morpher||(this._morpher=new OE(this),this._disposers.push(this._morpher)),this._morpher},enumerable:!0,configurable:!0}),e}(qD);rS.registeredClasses.Polygon=DE;var EE=function(t){function e(){var e=t.call(this)||this;return e.className="Polyspline",e.tensionX=.5,e.tensionY=.5,e.applyTheme(),e}return uP(e,t),e.prototype.makePath=function(){this._distance=0;var t=this.segments,e=this.tensionX,i=this.tensionY;if(this.allPoints=[],t&&t.length>0){var n="";this._realSegments=[];for(var r=0,s=t.length;r<s;r++){var o=t[r],a=[];if(this._realSegments.push(a),o.length>0){var l=o[0],u=o[o.length-1],h=!1;VP(l.x,3)==VP(u.x)&&VP(l.y)==VP(u.y)&&(h=!0),n+=vE(o[0]);for(var c=0;c<o.length-1;c++){var p=o[c-1],d=o[c],f=o[c+1],g=o[c+2];0===c?p=o[c]:c==o.length-2&&(g=o[c+1]),g||(g=f),0===c?p=h?o[o.length-2]:o[r]:c==o.length-2&&(g=h?o[1]:o[c+1]);var m=JP(p,d,f,0,e,i),y=tC(0,d,f,g,e,i);n+=_E(f,m,y);var v=1.2*Math.ceil($P(d,f,m,y,20)),b=d;if(v>0)for(var _=0;_<=v;_++){var x=QP(d,f,m,y,_/v);if(x.x!=b.x||x.y!=b.y){a.push(x);var w=VP(qP(b,x),5);this._distance+=GP(b,x),this.allPoints[Math.floor(this._distance)]={x:x.x,y:x.y,angle:w},b=x}}else a.push(p)}}var P=this.allPoints;if(P.length>1)for(var C=0;C<P.length;C++)if(!P[C])if(C>1)P[C]=P[C-1];else for(var S=1;S<P.length;S++)if(P[S]){P[C]=P[S];break}}this.path=n}},e.prototype.getClosestPointIndex=function(t){var e,i=this.allPoints,n=1/0;if(i.length>1)for(var r=1;r<i.length;r++){var s=GP(t,i[r]);s<n&&(e=r,n=s)}return e},Object.defineProperty(e.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0),this.makePath()},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){var i=0,n=this.allPoints,r=n.length;if(TP(t)||(t=0),r>1){if(e&&r>3){if(t<0){t<-.01&&(t=-.01);var s=n[0],o=n[1];return{x:a=s.x-(s.x-o.x)*r*t,y:l=s.y-(s.y-o.y)*r*t,angle:qP(s,o)}}if(t>1){t>1.01&&(t=1.01);var a,l;s=n[n.length-2],o=n[n.length-3];return{x:a=s.x+(s.x-o.x)*r*(t-1),y:l=s.y+(s.y-o.y)*r*(t-1),angle:qP(s,{x:a,y:l})}}if(1==t){var u=n[n.length-1];return{x:u.x,y:u.y,angle:u.angle}}}else t<0&&(t=Math.abs(t),i=180),t>=1&&(t=.9999999999999);var h;return{x:(h=n[Math.floor(t*r)]).x,y:h.y,angle:h.angle+i}}return 1==r?{x:(h=n[0]).x,y:h.y,angle:h.angle}:{x:0,y:0,angle:0}},e}(CE);rS.registeredClasses.Polyspline=EE;var TE=function(t){function e(){var e=t.call(this)||this;return e.className="Slice",e.setPropertyValue("cornerRadius",0),e.setPropertyValue("startAngle",0),e.setPercentProperty("innerRadius",0),e.setPercentProperty("radius",0),e.setPropertyValue("arc",0),e.setPropertyValue("shiftRadius",0),e.strokeOpacity=1,e.setPropertyValue("layout","none"),e.slice=e.createChild(qD),e.slice.isMeasured=!1,e._disposers.push(e.slice),e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.radiusY;this.radius>0&&0==e&&(e=.01),this.slice.path=function(t,e,i,n,r,s,o){if(0==e)return"";if(TP(n)||(n=0),0==i&&n<=0)return"";if(i<n){var a=i;i=n,n=a,TP(r)&&(r=r/n*i)}360==(e=UP(e,360))&&(s=0,o=0);var l=t+e,u=BP(UP(e,45)/2),h=(r=TP(r)?r:i)/i*n,c=r/i*(s=s||0),p=r/i*(o=TP(o)?o:s);s=NP(s,0,(i-n)/2),c=NP(c,0,(r-h)/2),o=NP(o,0,(i-n)/2),p=NP(p,0,(r-h)/2),s=VP(NP(s,0,i*u),4),c=VP(NP(c,0,r*u),4),o=VP(NP(o,0,n*u),4),p=VP(NP(p,0,h*u),4);var d=Math.asin(s/i/2)*jP*2,f=Math.asin(c/r/2)*jP*2;n<o&&(n=o),h<p&&(h=p);var g=Math.asin(o/n/2)*jP*2,m=Math.asin(p/h/2)*jP*2;TP(g)||(g=0),TP(m)||(m=0);var y=t+e/2,v={x:VP(HP(y)*n,4),y:BP(y)*h},b={x:HP(t)*(n+o),y:BP(t)*(h+p)},_={x:HP(t)*(i-s),y:BP(t)*(r-c)},x={x:HP(l)*(i-s),y:BP(l)*(r-c)},w={x:HP(l)*(n+o),y:BP(l)*(h+p)},P={x:HP(t+d)*i,y:BP(t+f)*r},C={x:HP(l-g)*n,y:BP(l-m)*h};o+=o*BP(g/2),p+=p*BP(m/2),g>(l-t)/2&&(C=v);var S="";return 360==e?S=vE(_):(S=vE(b),S+=bE(_),S+=wE(P,s,c,!0)),S+=xE(t+d,e-2*d,i,r),TP(n)&&0!=n?(360==e&&0==s?S+=vE(w):(S+=wE(x,s,c,!0),S+=bE(w),S+=wE(C,o,p,!0)),S+=xE(l-g,-(e-2*g),n,h),(e<360||s>0)&&(S+=wE(b,o,p,!0)),S+=bE(b)):(S+=wE(x,s,c,!0),e<360&&(S+=bE(b))),S}(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,e,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof DD&&this.updateGradient(this.realFill),this.realStroke instanceof DD&&this.updateGradient(this.realStroke)},e.prototype.updateGradient=function(t){t.element.attr({gradientUnits:"userSpaceOnUse"}),t.element.attr({r:this.radius}),t.cx=0,t.cy=0,t.element.attr({radius:this.radius})},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?ZP([nC(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),nC(this.startAngle,this.startAngle+this.arc,this.radius)]):{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",iC(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){TP(t)||(t=0),this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){var t=this.getPropertyValue("radius");return TP(t)||(t=0),t},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return TP(t)||(t=this.radius),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return LS(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(t){this.setPropertyValue("innerCornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(t){this.setPropertyValue("shiftRadius",t),this.dx=t*this.radius*this.ix,this.dy=t*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ix",{get:function(){return HP(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iy",{get:function(){return this.radius,BP(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");if(TP(t))return t;var e=.5;t instanceof gP&&(e=t.value);var i=LS(this.innerRadius,this.radius);return this.ix*(i+(this.radius-i)*e)},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");if(TP(t))return t;var e=.5;t instanceof gP&&(e=t.value);var i=LS(this.innerRadius,this.radius);return this.iy*(i+(this.radius-i)*e)+this.slice.dy},e}(ZD);rS.registeredClasses.Slice=TE;var kE=function(t){function e(){var e=t.call(this)||this;e.className="Preloader",e.width=mP(100),e.height=mP(100);var i=new nD,n=e.createChild(ZD);n.shouldClone=!1;var r=n.createChild(TE);r.shouldClone=!1,r.radius=53,r.arc=360,r.fill=i.getFor("fill"),r.fillOpacity=.8,r.innerRadius=42,r.isMeasured=!1,e.backgroundSlice=r;var s=n.createChild(TE);s.shouldClone=!1,s.radius=50,s.innerRadius=45,s.fill=i.getFor("alternativeBackground"),s.fillOpacity=.2,s.isMeasured=!1,e.progressSlice=s;var o=n.createChild(hE);return o.shouldClone=!1,o.horizontalCenter="middle",o.verticalCenter="middle",o.isMeasured=!1,o.fill=i.getFor("text"),o.align="center",o.valign="middle",o.textAlign="middle",o.fillOpacity=.4,e.label=o,e.background.opacity=1,e.background.fill=i.getFor("background"),e.contentAlign="center",e.contentValign="middle",e.delay=300,e.states.create("hidden").properties.opacity=0,e.visible=!1,e.hide(0),e.__disabled=!0,e._disposers.push(e.backgroundSlice),e._disposers.push(e.progressSlice),e._disposers.push(e.label),e._disposers.push(n),e}return uP(e,t),Object.defineProperty(e.prototype,"progress",{get:function(){return this.getPropertyValue("progress")},set:function(t){var e=this;this.__disabled=!1,this.validateLayout(),this.setPropertyValue("progress",t),this.progressSlice.arc=360*t,this.label&&(this.label.text=Math.round(100*t)+"%"),t>=1?(this._started&&(this._started=void 0),rS.events.once("enterframe",(function(){var t=e.hide();t&&!t.isFinished()?t.events.once("animationended",(function(){e.__disabled=!0})):e.__disabled=!0})),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):t>0&&(this.delay?this._started?this._started+this.delay<=(new Date).getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=(new Date).getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(t){this.setPropertyValue("delay",t)},enumerable:!0,configurable:!0}),e}(ZD);rS.registeredClasses.Preloader=kE;var IE=function(t){function e(){var e=t.call(this)||this;e.className="ResizeButton",e.orientation="horizontal",e.layout="absolute",e.horizontalCenter="middle",e.verticalCenter="middle",e.draggable=!0,e.padding(8,8,8,8),e.background.cornerRadius(20,20,20,20);var i=new qD;i.element=e.paper.add("path");var n=vE({x:-2,y:-6});return n+=bE({x:-2,y:6}),n+=vE({x:2,y:-6}),n+=bE({x:2,y:6}),i.path=n,i.pixelPerfect=!0,i.padding(0,4,0,4),i.stroke=(new nD).getFor("alternativeText"),i.strokeOpacity=.7,e.icon=i,e.label.dispose(),e.label=void 0,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"orientation",{set:function(t){var e=this.icon;e&&(e.rotation="horizontal"==t?0:-90)},enumerable:!0,configurable:!0}),e}(pE);rS.registeredClasses.ResizeButton=IE;var ME=function(t){function e(){var e=t.call(this)||this;e.className="CloseButton",e.padding(8,8,8,8),e.showSystemTooltip=!0,e.width=30,e.height=30;var i=new nD;e.cursorOverStyle=TD.pointer;var n=e.background;n.cornerRadius(20,20,20,20);var r=i.getFor("background");n.fill=r,n.stroke=i.getFor("primaryButton"),n.strokeOpacity=1,n.strokeWidth=1;var s=i.getFor("primaryButtonActive"),o=n.states.getKey("hover");o.properties.strokeWidth=3,o.properties.fill=r;var a=n.states.getKey("down");a.properties.stroke=s,a.properties.fill=r;var l=new qD;return l.element=e.paper.add("path"),l.stroke=n.stroke,e.icon=l,e.applyTheme(),e}return uP(e,t),e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.pixelWidth/3,i=this.pixelHeight/3,n=vE({x:-e/2,y:-i/2});n+=bE({x:e/2,y:i/2}),n+=vE({x:e/2,y:-i/2}),n+=bE({x:-e/2,y:i/2}),this.icon.path=n,this.invalidateLayout()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),CP(this.readerTitle)||(this.readerTitle=this.language.translate("Close"))},e}(pE);rS.registeredClasses.CloseButton=ME;var FE=function(t){function e(){var e=t.call(this)||this;e.className="SwitchButton",e.tooltipY=0,e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0,e.states.create("active");var i=new nD,n=new hE;n.fillOpacity=.3,n.states.create("active").properties.fillOpacity=1,n.isActive=!0,e.leftLabel=n;var r=new pE,s=new dE;r.contentValign="none",r.padding(0,0,0,0),s.radius=10,r.icon=s,r.icon.valign="middle",r.label=void 0;var o=mP(100);r.background.cornerRadius(o,o,o,o),r.width=3.5*s.radius,r.height=2.1*s.radius,r.marginLeft=8,r.marginRight=8,r.togglable=!0,s.dx=.7*-s.radius,s.fill=i.getFor("primaryButton"),s.states.create("hover").properties.fill=i.getFor("primaryButtonHover");var a=s.states.create("active");a.properties.fill=i.getFor("primaryButtonActive"),a.properties.dx=.7*s.radius,e.switchButton=r,e.events.on("toggled",(function(){e.leftLabel.isActive=!e.isActive,e.rightLabel.isActive=e.isActive}));var l=new hE;return l.fillOpacity=.3,l.states.create("active").properties.fillOpacity=1,e.rightLabel=l,e.role="button",e.focusable=!0,l.valign="middle",n.valign="middle",r.valign="middle",e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"leftLabel",{get:function(){return this._leftLabel},set:function(t){this._leftLabel&&this.removeDispose(this._leftLabel),this._leftLabel=t,t&&(t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this._disposers.push(this._leftLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightLabel",{get:function(){return this._rightLabel},set:function(t){this._rightLabel&&this.removeDispose(this._rightLabel),this._rightLabel=t,t&&(t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this._disposers.push(this._rightLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"switch",{get:function(){return this._switchButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"switchButton",{set:function(t){this._switchButton&&this.removeDispose(this._switchButton),this._switchButton=t,t&&(t.parent=this,t.shouldClone=!1,this._disposers.push(this._switchButton))},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.leftLabel&&this.leftLabel.copyFrom(e.leftLabel),e.rightLabel&&this.rightLabel.copyFrom(e.rightLabel),e.switchButton&&this.switchButton.copyFrom(e.switchButton)},e}(ZD);rS.registeredClasses.SwitchButton=FE;var AE=function(t){function e(){var e=t.call(this)||this;e._previousStart=0,e._previousEnd=1,e._prevStart=0,e._prevEnd=1,e._isBusy=!1,e._skipRangeEvents=!1,e.updateWhileMoving=!0,e.className="Scrollbar",e.minHeight=12,e.minWidth=12,e.animationDuration=0,e.animationEasing=xO,e.margin(10,10,10,10);var i=new nD,n=e.background;return n.cornerRadius(10,10,10,10),n.fill=i.getFor("fill"),n.fillOpacity=.5,e.showSystemTooltip=!0,e.startGrip=new IE,e.endGrip=new IE,e.events.on("transformed",e.updateThumb,e,!1),e.start=0,e.end=1,e.role="scrollbar",e.thumb.role="slider",e.thumb.readerLive="polite",e.startGrip.role="slider",e.endGrip.role="slider",e.events.once("inited",(function(){e._previousStart=void 0,e.dispatchRangeChange()}),void 0,!1),e.hideGrips=!1,e.orientation="horizontal",e.setSVGAttribute({"aria-valuemin":"0"}),e.setSVGAttribute({"aria-valuemax":"100"}),e.applyTheme(),e}return uP(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),"horizontal"===this.orientation?(CP(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),CP(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),CP(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),CP(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection")),this.readerOrientation="horizontal"):(CP(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),CP(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),CP(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),CP(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")),this.readerOrientation="vertical"),this.readerControls=this.baseSprite.uidAttr()},e.prototype.validateLayout=function(){this.updateSize(),t.prototype.validateLayout.call(this),this.updateExtremes()},e.prototype.processBackground=function(){t.prototype.processBackground.call(this);var e=this.background;e.clickable=!0,e.events.on("hit",this.handleBgHit,this,void 0)},e.prototype.handleBgHit=function(t){this.makeBusy();var e=t.spritePoint;e=sO(e,this.background,this);var i=this.thumb;if("horizontal"==this.orientation){var n=e.x-i.pixelWidth/2;n=NP(n,0,this.innerWidth-i.pixelWidth),this._thumbAnimation=i.animate({property:"x",to:n},this.animationDuration,this.animationEasing)}else{var r=e.y-i.pixelHeight/2;r=NP(r,0,this.innerHeight-i.pixelHeight),this._thumbAnimation=i.animate({property:"y",to:r},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},e.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},e.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},e.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),1.1*this.animationDuration)},e.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},e.prototype.dispatchRangeChange=function(){this._previousEnd==this.end&&this._previousStart==this.start||(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},e.prototype.updateThumb=function(){if(this.parent){var t=this.thumb,e=this.start,i=this.end,n=this.startGrip,r=this.endGrip;if("horizontal"==this.orientation){var s=this.innerWidth;t.width=s*(i-e),t.maxX=s-t.pixelWidth,t.x=e*s,n.moveTo({x:t.pixelX,y:0},void 0,void 0,!0),r.moveTo({x:t.pixelX+t.pixelWidth,y:0},void 0,void 0,!0),n.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*e)+"%",position:e}).value),n.readerValueNow=""+Math.round(100*e),n.readerValueText=n.readerTitle,r.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*i)+"%",position:i}).value),r.readerValueNow=""+Math.round(100*i),r.readerValueText=r.readerTitle}else{var o=this.innerHeight;t.height=o*(i-e),t.maxY=o-t.pixelHeight,t.y=(1-i)*o,n.moveTo({x:0,y:t.pixelY+t.pixelHeight},void 0,void 0,!0),r.moveTo({x:0,y:t.pixelY},void 0,void 0,!0),n.readerTitle=this.language.translate("To %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-e))+"%",position:1-e}).value),n.readerValueNow=""+Math.round(100*e),n.readerValueText=n.readerTitle,r.readerTitle=this.language.translate("From %1",void 0,this.adapter.apply("positionValue",{value:Math.round(100*(1-i))+"%",position:1-i}).value),r.readerValueNow=""+Math.round(100*i),r.readerValueText=r.readerTitle}t.readerTitle=this.language.translate("From %1 to %2",void 0,this.adapter.apply("positionValue",{value:Math.round(100*e)+"%",position:e}).value,this.adapter.apply("positionValue",{value:Math.round(100*i)+"%",position:i}).value),t.readerValueNow=""+Math.round(100*e),t.readerValueText=t.readerTitle,this.readerValueNow=""+Math.round(100*e),this.readerValueText=t.readerTitle,!this._skipRangeEvents&&this.updateWhileMoving&&this.dispatchRangeChange()}},e.prototype.updateExtremes=function(){var t=0,e=0,i=0,n=0;"horizontal"==this.orientation?(i=this.innerWidth,e=n=this.innerHeight/2):(n=this.innerHeight,t=i=this.innerWidth/2);var r=this.startGrip;r.minX=t,r.maxX=i,r.minY=e,r.maxY=n;var s=this.endGrip;s.minX=t,s.maxX=i,s.minY=e,s.maxY=n;var o=this.thumb;o.minX=t,o.maxX=i,o.minY=e,o.maxY=n},e.prototype.updateSize=function(){var t=this.orientation,e=this.startGrip;e&&(e.orientation=t),this.endGrip&&(this.endGrip.orientation=t);var i=this.thumb;i&&("horizontal"==t?(TP(this._pixelWidth)||this.width instanceof gP||(this.width=mP(100)),CP(this.percentHeight)&&(this.height=this.minHeight),i.height=this.innerHeight,i.verticalCenter="middle",i.horizontalCenter="left"):(TP(this._pixelHeight)||this.height instanceof gP||(this.height=mP(100)),CP(this.percentWidth)&&(this.width=this.minWidth),i.width=this.innerWidth,i.verticalCenter="top",i.horizontalCenter="middle"))},Object.defineProperty(e.prototype,"isBusy",{get:function(){return this._isBusy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return Math.min(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__start",{get:function(){return this._start},set:function(t){this._start=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return Math.max(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__end=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__end",{get:function(){return this._end},set:function(t){this._end=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),e.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},e.prototype.fixRange=function(t){t.start==VP(this._start,2)&&t.end==VP(this._end,2)||(this._start=t.start,this._end=t.end,this._skipRangeEvents=!0,this.updateThumb(),this._skipRangeEvents=!1,this.thumb.validate(),this.thumb.background.validate())},e.prototype.getPosition=function(t){return NP(VP(t,4),0,1)},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&("horizontal"===t?(this.startGrip.cursorOverStyle=TD.horizontalResize,this.endGrip.cursorOverStyle=TD.horizontalResize):(this.startGrip.cursorOverStyle=TD.verticalResize,this.endGrip.cursorOverStyle=TD.verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.updateByOrientation=function(){},Object.defineProperty(e.prototype,"startGrip",{get:function(){return this._startGrip},set:function(t){this._startGrip&&this.removeDispose(this._startGrip),this._startGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endGrip",{get:function(){return this._endGrip},set:function(t){this._endGrip&&this.removeDispose(this._endGrip),this._endGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),e.prototype.processGrip=function(t){t.parent=this,t.isMeasured=!1,t.focusable=!0,t.shouldClone=!1,t.zIndex=100,t.events.on("drag",this.handleGripDrag,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("down",this.makeBusy,this,!1),this._disposers.push(t)},e.prototype.handleGripDrag=function(t){this.makeBusy(),t.target===this._startGrip?this._usingGrip="start":this._usingGrip="end","horizontal"==this.orientation?(this._start=this.startGrip.pixelX/this.innerWidth,this._end=this.endGrip.pixelX/this.innerWidth):(this._start=1-this.startGrip.pixelY/this.innerHeight,this._end=1-this.endGrip.pixelY/this.innerHeight),this.updateThumb()},Object.defineProperty(e.prototype,"thumb",{get:function(){if(!this._thumb){var t=new pE;t.background.cornerRadius(10,10,10,10),t.padding(0,0,0,0),this.thumb=t}return this._thumb},set:function(t){var e=this;t&&(this._thumb&&this.removeDispose(this._thumb),this._thumb=t,t.parent=this,t.isMeasured=!1,t.inert=!0,t.draggable=!0,t.clickable=!0,t.hoverable=!0,t.focusable=!0,t.shouldClone=!1,t.zIndex=0,t.cursorOverStyle=TD.grab,t.cursorDownStyle=TD.grabbing,t.events.on("dragstart",this.makeBusy,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("positionchanged",this.handleThumbPosition,this,!1),t.events.on("sizechanged",this.handleThumbPosition,this,!1),t.events.on("doublehit",this.handleDoubleClick,this,!1),this._disposers.push(dD().body.events.on("keyup",(function(t){uD.isKey(t.event,["space","enter"])&&e.thumb.isFocused&&(t.event.preventDefault(),e.handleDoubleClick())}))),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),e.prototype.handleDoubleClick=function(){this.makeBusy();var t=0,e=1;0!=this.start||1!=this.end?(this._prevStart=this.start,this._prevEnd=this.end):(t=this._prevStart,e=this._prevEnd);var i=this.animate([{property:"__start",to:t},{property:"__end",to:e}],this.animationDuration,this.animationEasing);i&&!i.isFinished()?(i.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=i):this.makeUnbusy()},e.prototype.handleThumbPosition=function(){var t=this.thumb;if("horizontal"==this.orientation){var e=this.innerWidth,i=t.innerWidth,n=t.pixelX;this._start=n/e,this._end=(n+i)/e,this.updateThumb()}else{var r=this.innerHeight,s=t.innerHeight,o=t.pixelY;this._start=1-(o+s)/r,this._end=1-o/r,this.updateThumb()}},e.prototype.createBackground=function(){return new cE},Object.defineProperty(e.prototype,"hideGrips",{get:function(){return this._hideGrips},set:function(t){var e=this;this._hideGrips=t,this._overDisposer&&this.removeDispose(this._overDisposer),this._outDisposer&&this.removeDispose(this._outDisposer),t?(this._overDisposer=this.events.on("over",(function(){e.startGrip.show(),e.endGrip.show()}),void 0,!1),this._outDisposer=this.events.on("out",(function(){e.startGrip.hide(),e.endGrip.hide()}),void 0,!1),this.startGrip.hide(),this.endGrip.hide()):(this.startGrip.show(),this.endGrip.show())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),e.prototype.asFunction=function(e){return"animationEasing"==e||t.prototype.asIs.call(this,e)},e}(ZD);rS.registeredClasses.Scrollbar=AE;var jE=function(t){function e(){var e=t.call(this)||this;return e.className="Slider",e.thumb.opacity=0,e.thumb.interactionsEnabled=!1,e.endGrip.opacity=0,e.endGrip.interactionsEnabled=!1,e.startGrip.events.on("drag",(function(){e.endGrip.x=e.startGrip.x,e.endGrip.y=e.startGrip.y})),e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"__end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),e}(AE);rS.registeredClasses.Slider=jE;var LE=function(t){function e(){var e=t.call(this)||this;e.className="TextLink",e.selectable=!0;var i=new nD;return e.fill=i.getFor("primaryButton").brighten(.3),e.states.create("hover").properties.fill=i.getFor("primaryButtonHover").brighten(.3),e.states.create("down").properties.fill=i.getFor("primaryButtonDown").brighten(.3),e.cursorOverStyle=TD.pointer,e.applyTheme(),e}return uP(e,t),e}(hE);rS.registeredClasses.TextLink=LE;var VE=function(t){function e(){var e=t.call(this)||this;return e.properties={},e.isTemplate=!1,e._scale=1,e._nonScaling=!0,e.className="Filter",e.filterPrimitives=new uS,e.properties.filterUnits="objectBoundingBox",e.filterPrimitives.events.on("inserted",(function(t){e._disposers.push(t.newValue)})),e.width=120,e.height=120,e.applyTheme(),e}return uP(e,t),e.prototype.appendPrimitives=function(t){KC(this.filterPrimitives.iterator(),(function(e){t.add(e)}))},e.prototype.animate=function(t,e,i){return new LO(this,t,e,i).start()},Object.defineProperty(e.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),NC(e.properties,(function(t,e){i[t]=e}))},Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:CD()},set:function(t){this._paper!=t&&(this._paper=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new jO(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale=t,this.updateScale()},enumerable:!0,configurable:!0}),e.prototype.updateScale=function(){},Object.defineProperty(e.prototype,"filterUnits",{get:function(){return this.properties.filterUnits},set:function(t){this.properties.filterUnits=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScaling",{get:function(){return this._nonScaling},set:function(t){this._nonScaling=t,t||(this._scale=1),this.updateScale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sprite",{set:function(t){this.setSprite(t)},enumerable:!0,configurable:!0}),e.prototype.setSprite=function(t){this._sprite&&this._sprite!=t&&this._sprite.filters.removeValue(this),this._sprite=t},e}(TS),RE=function(t){function e(){var e=t.call(this)||this;return e.className="DropShadowFilter",e.color=DS("#000"),e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.feOffset=e.paper.add("feOffset"),e.feOffset.attr({result:"offsetBlur"}),e.filterPrimitives.push(e.feOffset),e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":e.color}),e.filterPrimitives.push(e.feFlood),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({in2:"offsetBlur",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feMerge=e.paper.addGroup("feMerge"),e.feMerge.add(e.paper.add("feMergeNode")),e.feMerge.add(e.paper.add("feMergeNode").attr({in:"SourceGraphic"})),e.filterPrimitives.push(e.feMerge),e.width=200,e.height=200,e.blur=1.5,e.dx=3,e.dy=3,e.opacity=.5,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.feFlood&&this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(t){this.properties.opacity=t,this.feFlood.attr({"flood-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx",{get:function(){return this.properties.dx},set:function(t){this.properties.dx=t,this.feOffset.attr({dx:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy",{get:function(){return this.properties.dy},set:function(t){this.properties.dy=t,this.feOffset.attr({dy:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),e.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},e}(VE);rS.registeredClasses.DropShadowFilter=RE;var NE=function(t){function e(){var e=t.call(this)||this;e._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},e._pointTo={x:0,y:0},e.fitPointerToBounds=!1,e._verticalOrientation="up",e.className="Tooltip",e.isMeasured=!1,e.getFillFromObject=!0,e.margin(5,5,5,5),e.defaultState.transitionDuration=1,e.hiddenState.transitionDuration=1;var i=e.background;i.interactionsEnabled=!1,i.fillOpacity=.9,i.strokeWidth=1,i.strokeOpacity=1,i.stroke=DS("#ffffff"),i.cornerRadius=3,i.pointerLength=6,i.pointerBaseWidth=10;var n=new RE;n.dy=1,n.dx=1,n.opacity=.5,i.filters.push(n),e.autoTextColor=!0;var r=e.createChild(hE);return r.shouldClone=!1,e.label=r,r.padding(7,12,4,12),r.interactionsEnabled=!1,r.horizontalCenter="middle",r.fill=DS("#ffffff"),e._disposers.push(r),e.label.events.on("sizechanged",e.drawBackground,e),e.label.zIndex=1,e.pointerOrientation="vertical",e.animationDuration=0,e.animationEasing=xO,e.setPropertyValue("showInViewport",!1),e.role="tooltip",e.visible=!1,e.opacity=0,e.x=0,e.y=0,e.events.on("visibilitychanged",e.handleVisibility,e),e.applyTheme(),e}return uP(e,t),e.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(e.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(t){this.setPropertyValue("getStrokeFromObject",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")},set:function(t){this.setPropertyValue("autoTextColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepTargetHover",{get:function(){return this.getPropertyValue("keepTargetHover")},set:function(t){var e=this;this.setPropertyValue("keepTargetHover",t,!0)&&t&&(this.hoverable=!0,this.background.interactionsEnabled=!0,this._disposers.push(this.events.on("over",(function(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!0)}))),this._disposers.push(this.events.on("out",(function(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!1)}))))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(t){this.setPropertyValue("showInViewport",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(t){this.setPropertyValue("getFillFromObject",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new yE},Object.defineProperty(e.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(t){this.setPropertyValue("pointerOrientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.label.html},set:function(t){this.label.html!=t&&(this.label.html=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.label.text},set:function(t){this.label.text!=t&&(this.label.text=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.label;e.invalid&&e.validate();var i,n,r=this._pointTo.x,s=this._pointTo.y,o=this._boundingRect,a=e.measuredWidth,l=e.measuredHeight,u=this.background.pointerLength;if(a>o.width){uO({x:o.x,y:o.y},this.parent);var h=uO({x:o.x+o.width,y:o.y+o.height},this.parent),c=document.body.offsetWidth;document.body.offsetHeight,h.x>c/2?o.x=o.width-a:o.width=o.x+a}var p=this.pointerOrientation;"horizontal"==p||"left"==p||"right"==p?(n=-l/2,i="horizontal"==p?r>o.x+o.width/2?-a/2-u:a/2+u:"left"==p?a/2+u:-a/2-u):(i=NP(0,o.x-r+a/2,o.x-r+o.width-a/2),"vertical"==p?s>o.y+l+u?(n=-l-u,this._verticalOrientation="up"):(n=u,this._verticalOrientation="down"):"down"==p?(n=-l-u,this._verticalOrientation="up"):(n=u,this._verticalOrientation="down")),n=NP(n,o.y-s,o.y+o.height-l-s),e.x=i,e.y=n,this.drawBackground()},e.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},e.prototype.drawBackground=function(){var t=this.label,e=this.background,i=t.measuredWidth,n=t.measuredHeight,r=this._boundingRect,s=i,o=t.pixelX-i/2,a=n,l=t.pixelY,u=this._pointTo.x,h=this._pointTo.y,c=r.x-u,p=c+r.width,d=r.y-h,f=d+r.height;e.x=o,e.y=l,e.width=s,e.height=a,this.fitPointerToBounds?(e.pointerX=NP(-e.x,c-e.x,p-e.x),e.pointerY=NP(-e.y,d-e.y,f-e.y)):(e.pointerX=-e.x,e.pointerY=-e.y),e.validate()},e.prototype.delayedPointTo=function(t,e){var i=this;this._pointToDisposer&&this._pointToDisposer.dispose(),this._pointToDisposer=rS.events.once("exitframe",(function(){i.pointTo(t,e)})),this.addDisposer(this._pointToDisposer)},e.prototype.pointTo=function(t,e){this._pointTo.x==t.x&&this._pointTo.y==t.y||(this._pointTo=t,this.invalidate(),!this.visible||e?(this.moveTo(this._pointTo),this._animation&&this._animation.kill()):0==this.pixelX&&0==this.pixelY?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new LO(this,[{property:"x",to:t.x,from:this.pixelX},{property:"y",to:t.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},e.prototype.setBounds=function(t){var e=this._boundingRect;e.x==t.x&&e.y==t.y&&e.width==t.width&&e.height==t.height||(this._boundingRect=t,this.invalidate())},Object.defineProperty(e.prototype,"boundingContainer",{set:function(t){this._boundingContainer=t,t.events.on("sizechanged",this.updateBounds,this),t.events.on("positionchanged",this.updateBounds,this)},enumerable:!0,configurable:!0}),e.prototype.updateBounds=function(){var t=this._boundingContainer,e=oO({x:t.pixelX,y:t.pixelY,width:t.maxWidth,height:t.maxHeight},t);this.setBounds(e)},Object.defineProperty(e.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),e._boundingRect&&(this._boundingRect=e._boundingRect)},e.prototype.asFunction=function(e){return"animationEasing"==e||t.prototype.asIs.call(this,e)},e}(ZD);rS.registeredClasses.Tooltip=NE;var BE=function(t){function e(){var e=t.call(this)||this;return e.className="Trapezoid",e.element=e.paper.add("path"),e.topSide=mP(100),e.bottomSide=mP(100),e.leftSide=mP(100),e.rightSide=mP(100),e.isMeasured=!1,e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight,n=LS(this.topSide,e),r=LS(this.bottomSide,e),s=LS(this.leftSide,i),o=LS(this.rightSide,i),a=(e-n)/2,l=(i-s)/2,u=e-(e-n)/2,h=(i-o)/2,c=e-(e-r)/2,p=i-(i-o)/2,d=(e-r)/2,f=i-(i-s)/2,g="",m="",y="",v="";if(CP(this.horizontalNeck)){var b=this.horizontalNeck.value;g=bE({x:e*b,y:Math.max(l,h)}),y=bE({x:e*b,y:Math.min(p,f)})}if(CP(this.verticalNeck)){var _=this.verticalNeck.value;m=bE({x:Math.min(u,c),y:i*_}),v=bE({x:Math.max(a,d),y:i*_})}var x=vE({x:a,y:l})+g+bE({x:u,y:h})+m+bE({x:c,y:p})+y+bE({x:d,y:f})+v;this.path=x},Object.defineProperty(e.prototype,"topSide",{get:function(){return this.getPropertyValue("topSide")},set:function(t){this.setPercentProperty("topSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomSide",{get:function(){return this.getPropertyValue("bottomSide")},set:function(t){this.setPercentProperty("bottomSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftSide",{get:function(){return this.getPropertyValue("leftSide")},set:function(t){this.setPercentProperty("leftSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightSide",{get:function(){return this.getPropertyValue("rightSide")},set:function(t){this.setPercentProperty("rightSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalNeck",{get:function(){return this.getPropertyValue("horizontalNeck")},set:function(t){this.setPropertyValue("horizontalNeck",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalNeck",{get:function(){return this.getPropertyValue("verticalNeck")},set:function(t){this.setPropertyValue("verticalNeck",t,!0)},enumerable:!0,configurable:!0}),e}(qD);rS.registeredClasses.Trapezoid=BE;var HE=function(t){function e(){var e=t.call(this)||this;return e.className="Triangle",e.element=e.paper.add("path"),e.direction="top",e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.pixelWidth,n=this.pixelHeight;switch(this.direction){case"right":e=vE({x:0,y:0})+bE({x:i,y:n/2})+bE({x:0,y:n})+" Z";break;case"left":e=vE({x:i,y:0})+bE({x:0,y:n/2})+bE({x:i,y:n})+" Z";break;case"bottom":e=vE({x:0,y:0})+bE({x:i,y:0})+bE({x:i/2,y:n})+" Z";break;case"top":e=vE({x:i/2,y:0})+bE({x:i,y:n})+bE({x:0,y:n})+" Z"}this.path=e},Object.defineProperty(e.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(t){this.setPropertyValue("direction",t,!0)},enumerable:!0,configurable:!0}),e}(qD);rS.registeredClasses.Triangle=HE;var zE=function(){function t(t,e){this._tensionX=t,this._tensionY=e}return t.prototype.smooth=function(t){for(var e=t.length-1;e>0;e--){var i=t[e],n=t[e-1];Math.abs(i.x-n.x)<.1&&Math.abs(i.y-n.y)<.1&&t.splice(e,1)}var r=this._tensionX,s=this._tensionY;if(t.length<3||r>=1&&s>=1)return function(t){var e=bE(t[0]),i={x:0,y:0},n=TO.minPolylineStep;TP(n)||(n=.5);for(var r=0,s=t.length;r<s;r++){var o=t[r];GP(o,i)>n&&(e+=bE(o),i=o)}return e}(t);var o=t[0],a=t[t.length-1],l=!1;VP(o.x,3)==VP(a.x)&&VP(o.y)==VP(a.y)&&(l=!0);for(var u="",h=(e=0,t.length-1);e<h;e++){i=t[e-1],n=t[e];var c=t[e+1],p=t[e+2];0===e?i=l?t[t.length-2]:t[e]:e==t.length-2&&(p=l?t[1]:t[e+1]),u+=_E(c,JP(i,n,c,0,r,s),tC(0,n,c,p,r,s))}return u},t}();function UE(t,e,i,n,r,s){var o=t.x,a=t.y,l=e.x,u=e.y,h=GP(t,e);s&&(i=h/Math.round(h/i));var c=rS.getCache(VS(["wavedLine",t.x,e.x,t.y,e.y,i,n]));if(!c){if(h>0){var p=Math.atan2(u-a,l-o),d=Math.cos(p),f=Math.sin(p),g=i*d,m=i*f;if(i<=1||n<=1)c=bE(e);else{var y=Math.round(2*h/i),v=[],b=1;l<o&&(b*=-1),u<a&&(b*=-1);for(var _=0;_<=y;_++){var x=o+_*g/2+(b*=-1)*n/2*f,w=a+_*m/2-b*n/2*d;v.push({x,y:w})}c=new zE(r,r).smooth(v)}}else c="";rS.setCache(VS(["wavedLine",t.x,e.x,t.y,e.y,i,n]),c)}return c}!function(){function t(t){this._closed=t.closed}t.prototype.smooth=function(t){var e=this,i=NaN,n=NaN,r=NaN,s=NaN,o=NaN,a=NaN,l=NaN,u=NaN,h=NaN,c=NaN,p=0,d="",f=function(t,e){d+=_E({x:(i+4*n+t)/6,y:(a+4*l+e)/6},{x:(2*i+n)/3,y:(2*a+l)/3},{x:(i+2*n)/3,y:(a+2*l)/3})},g=function(t){var g=t.x,m=t.y;switch(p){case 0:p=1,e._closed?(r=g,u=m):d+=bE({x:g,y:m});break;case 1:p=2,e._closed&&(s=g,h=m);break;case 2:if(p=3,e._closed){o=g,c=m,d+=vE({x:(i+4*n+g)/6,y:(a+4*l+m)/6});break}d+=bE({x:(5*i+n)/6,y:(5*a+l)/6});default:f(g,m)}i=n,n=g,a=l,l=m};if(lC(t,g),this._closed)switch(p){case 1:d+=vE({x:r,y:u}),d+=" Z";break;case 2:d+=vE({x:(r+2*s)/3,y:(u+2*h)/3}),d+=bE({x:(s+2*r)/3,y:(h+2*u)/3}),d+=" Z";break;case 3:g({x:r,y:u}),g({x:s,y:h}),g({x:o,y:c})}else{switch(p){case 3:f(n,l);case 2:d+=bE({x:n,y:l})}d+=" Z"}return d}}();var WE=function(t){function e(){var e=t.call(this)||this;return e.className="WavedCircle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.fill=void 0,e.fillOpacity=0,e.tension=.8,e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){var t="",e=this.pixelRadius;e>0&&(t=vE((i=this.getPoints(e))[0])+new zE(this.tension,this.tension).smooth(i));var i,n=this.pixelInnerRadius;n>0&&((i=this.getPoints(n)).reverse(),t+=vE(i[0])+new zE(this.tension,this.tension).smooth(i));this.path=t},e.prototype.getPoints=function(t){for(var e=t*Math.PI*2,i=this.waveHeight/2,n=e/Math.round(e/this.waveLength),r=n/2,s=[],o=e/n,a=0;a<=o;a++){var l=a*n/e*360,u=(a*n+r)/e*360;s.push({x:(t-i)*HP(l),y:(t-i)*BP(l)}),s.push({x:(t+i)*HP(u),y:(t+i)*BP(u)})}return s.pop(),s},Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return LS(this.innerRadius,UP(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(dE);rS.registeredClasses.WavedCircle=WE;var GE=function(t){function e(){var e=t.call(this)||this;return e.className="WavedLine",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.pixelPerfect=!1,e.fill=DS(),e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2};this.path=vE(t)+UE(t,e,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(mE),$E=function(t){function e(){var e=t.call(this)||this;return e.className="WavedRectangle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.setPropertyValue("wavedLeft",!0),e.setPropertyValue("wavedRight",!0),e.setPropertyValue("wavedTop",!0),e.setPropertyValue("wavedBottom",!0),e.applyTheme(),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight;if(e>0&&i>0){var n={x:0,y:0},r={x:e,y:0},s={x:e,y:i},o={x:0,y:i},a=Math.min(e,this.waveLength),l=Math.min(i,this.waveHeight),u=Math.min(i,this.waveLength),h=Math.min(e,this.waveHeight),c="",p="",d="",f="";this.wavedTop&&(c=UE(n,r,a,l,this.tension,!0)),this.wavedRight&&(p=UE(r,s,u,h,this.tension,!0)),this.wavedBottom&&(d=UE(s,o,a,l,this.tension,!0)),this.wavedLeft&&(f=UE(o,n,u,h,this.tension,!0)),this.path=vE(n)+c+bE(r)+p+bE(s)+d+bE(o)+f+"z"}},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.setWavedSides=function(t,e,i,n){this.wavedTop=t,this.wavedRight=e,this.wavedBottom=i,this.wavedLeft=n},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")},set:function(t){this.setPropertyValue("wavedRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(t){this.setPropertyValue("wavedLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(t){this.setPropertyValue("wavedTop",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(t){this.setPropertyValue("wavedBottom",t,!0)},enumerable:!0,configurable:!0}),e}(XD),KE=function(t){function e(){var e=t.call(this)||this;e.className="ZoomOutButton",e.padding(9,9,9,9),e.showSystemTooltip=!0;var i=new nD,n=e.background;n.cornerRadius(20,20,20,20),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new qD;r.element=e.paper.add("path");var s=vE({x:0,y:0});return s+=bE({x:11,y:0}),r.path=s,r.pixelPerfect=!0,r.padding(8,3,8,3),r.stroke=i.getFor("primaryButtonText"),e.icon=r,e.applyTheme(),e}return uP(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),CP(this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},e}(pE);rS.registeredClasses.ZoomOutButton=KE;var YE=function(t){function e(){var e=t.call(this)||this;e.className="PlayButton",e.padding(12,12,12,12),e.showSystemTooltip=!0;var i=new nD,n=e.background;n.cornerRadius(25,25,25,25),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new HE;r.direction="right",r.width=9,r.height=11,r.marginLeft=1,r.marginRight=1,r.horizontalCenter="middle",r.verticalCenter="middle",r.stroke=i.getFor("primaryButtonText"),r.fill=r.stroke,e.icon=r;var s=new cE;s.width=11,s.height=11,s.horizontalCenter="middle",s.verticalCenter="middle",s.cornerRadius(0,0,0,0),s.stroke=i.getFor("primaryButtonText"),s.fill=r.stroke,e.togglable=!0;var o=e.states.create("active");return o.transitionDuration=0,o.properties.icon=s,e.defaultState.transitionDuration=0,e.applyTheme(),e}return uP(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),CP(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},e}(pE);rS.registeredClasses.PlayButton=YE;var qE=function(t){function e(){var e=t.call(this)||this;return e.className="ColorModifier",e.applyTheme(),e}return uP(e,t),e.prototype.modify=function(t){return t},e}(TS);rS.registeredClasses.ColorModifier=qE;var XE=function(t){function e(){var e=t.call(this)||this;return e.lightnesses=[],e.brightnesses=[],e.opacities=[],e.offsets=[],e.className="GradientModifier",e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"lightnesses",{get:function(){return this._lightnesses},set:function(t){this._lightnesses=t,this._brightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brightnesses",{get:function(){return this._brightnesses},set:function(t){this._brightnesses=t,this._lightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacities",{get:function(){return this._opacities},set:function(t){this._opacities=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsets",{get:function(){return this._offsets},set:function(t){this._offsets=t},enumerable:!0,configurable:!0}),e.prototype.modify=function(t){this.gradient.clear();var e=0;this.opacities&&(e=zP(e,this.opacities.length)),this.lightnesses&&(e=zP(e,this.lightnesses.length)),this.brightnesses&&(e=zP(e,this.brightnesses.length));for(var i,n,r=1,s=0;s<e;s++){var o=t;this.opacities&&TP(this.opacities[s])&&(r=this.opacities[s]),this.lightnesses&&TP(this.lightnesses[s])&&(i=this.lightnesses[s],n=void 0),this.brightnesses&&TP(this.brightnesses[s])&&(n=this.brightnesses[s],i=void 0),TP(n)?o=t.brighten(this.brightnesses[s]):TP(i)&&(o=t.lighten(this.lightnesses[s]));var a=this.offsets[s];this.gradient.addColor(o,r,a)}return this.gradient},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this._offsets=e.offsets,this._brightnesses=e.brightnesses,this._lightnesses=e.lightnesses,this._opacities=e.opacities},e}(qE);rS.registeredClasses.GradientModifier=XE;var ZE=function(t){function e(){var e=t.call(this)||this;return e.className="LinearGradientModifier",e.gradient=new OD,e.applyTheme(),e}return uP(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},e}(XE);rS.registeredClasses.LinearGradientModifier=ZE;!function(t){function e(){var e=t.call(this)||this;return e.className="Cone",e.angle=30,e.radius=mP(100),e.topRadius=mP(100),e.top=e.createChild(fE),e.top.shouldClone=!1,e.bottom=e.createChild(fE),e.bottom.shouldClone=!1,e.body=e.createChild(qD),e.body.shouldClone=!1,e.body.setElement(e.paper.add("path")),e.layout="none",e.bodyFillModifier=new ZE,e.bodyFillModifier.lightnesses=[0,-.25,0],e.body.fillModifier=e.bodyFillModifier,e.applyTheme(),e}uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),zC(this,this.top,YD),zC(this,this.bottom,YD),zC(this,this.body,YD);var e,i,n,r=this.innerWidth,s=this.innerHeight,o=this.bottom,a=this.top,l=this.angle;"horizontal"==this.orientation?(e=s/2,o.y=s/2,a.y=s/2,a.x=r,i=(90-l)/90,n=0,this.bodyFillModifier.gradient.rotation=90):(i=0,n=(90-l)/90,e=r/2,o.y=s,o.x=r/2,a.x=r/2,this.bodyFillModifier.gradient.rotation=0);var u,h=this.radius.value*e,c=this.topRadius.value*e;o.radius=h-h*i,o.radiusY=h-h*n,a.radius=c-c*i,a.radiusY=c-c*n,u="horizontal"==this.orientation?vE({x:0,y:s/2-o.radiusY})+xE(-90,-180,o.radius,o.radiusY)+bE({x:r,y:s/2+a.radiusY})+xE(90,180,a.radius,a.radiusY)+" Z":vE({x:r/2-a.radius,y:0})+xE(180,-180,a.radius,a.radiusY)+bE({x:r/2+o.radius,y:s})+xE(0,180,o.radius,o.radiusY)+" Z",this.body.path=u},Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRadius",{get:function(){return this.getPropertyValue("topRadius")},set:function(t){this.setPropertyValue("topRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0})}(ZD);var QE=function(t){function e(){var e=t.call(this)||this;return e.className="LightenFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.lightness=0,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"lightness",{get:function(){return this.properties.lightness},set:function(t){this.properties.lightness=t;var e=t+1;this.feColorMatrix.attr({values:e+" 0 0 0 0 0 "+e+" 0 0 0 0 0 "+e+" 0 0 0 0 0 1 0"})},enumerable:!0,configurable:!0}),e}(VE);rS.registeredClasses.LightenFilter=QE;(function(t){function e(){var e=t.call(this)||this;e.angle=30,e.depth=30,e.className="Rectangle3D",e.layout="none";var i=e.createChild(qD);i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e.sideBack=i,e._disposers.push(e.sideBack);var n=e.createChild(qD);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.isMeasured=!1,e.sideBottom=n,e._disposers.push(e.sideBottom);var r=e.createChild(qD);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.isMeasured=!1,e.sideLeft=r,e._disposers.push(e.sideLeft);var s=e.createChild(qD);s.shouldClone=!1,s.setElement(e.paper.add("path")),s.isMeasured=!1,e.sideRight=s,e._disposers.push(e.sideRight);var o=e.createChild(qD);o.shouldClone=!1,o.setElement(e.paper.add("path")),o.isMeasured=!1,e.sideTop=o,e._disposers.push(e.sideTop);var a=e.createChild(qD);return a.shouldClone=!1,a.setElement(e.paper.add("path")),a.isMeasured=!1,e.sideFront=a,e._disposers.push(e.sideFront),e.applyTheme(),e}uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight,n=this.depth,r=this.angle,s=BP(r),o=HP(r),a={x:0,y:0},l={x:e,y:0},u={x:e,y:i},h={x:0,y:i},c={x:n*o,y:-n*s},p={x:n*o+e,y:-n*s},d={x:n*o+e,y:-n*s+i},f={x:n*o,y:-n*s+i};this.sideFront.path=vE(a)+bE(l)+bE(u)+bE(h)+" Z",this.sideBack.path=vE(c)+bE(p)+bE(d)+bE(f)+" Z",this.sideLeft.path=vE(a)+bE(c)+bE(f)+bE(h)+" Z",this.sideRight.path=vE(l)+bE(p)+bE(d)+bE(u)+" Z",this.sideBottom.path=vE(h)+bE(f)+bE(d)+bE(u)+" Z",this.sideTop.path=vE(a)+bE(c)+bE(p)+bE(l)+" Z"},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),EP(e)&&(e=ES(e)),e instanceof OS)i=e.hex;else if(e instanceof OD||e instanceof DD)i=e.stops.getIndex(0).color.hex;else{var n=new QE;n.lightness=-.2,this.sideBack.filters.push(n);var r=n.clone();r.lightness=-.4,this.sideLeft.filters.push(r);var s=n.clone();s.lightness=-.2,this.sideRight.filters.push(s);var o=n.clone();o.lightness=-.1,this.sideTop.filters.push(o);var a=n.clone();a.lightness=-.5,this.sideBottom.filters.push(a)}i&&(this.sideBack.fill=DS(i).lighten(-.2),this.sideLeft.fill=DS(i).lighten(-.4),this.sideRight.fill=DS(i).lighten(-.2),this.sideTop.fill=DS(i).lighten(-.1),this.sideBottom.fill=DS(i).lighten(-.5))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.sideBack.copyFrom(e.sideBack),this.sideLeft.copyFrom(e.sideLeft),this.sideRight.copyFrom(e.sideRight),this.sideTop.copyFrom(e.sideTop),this.sideBottom.copyFrom(e.sideBottom)}})(ZD),function(t){function e(){var e=t.call(this)||this;e.className="Slice3D",e.layout="none";var i=e.createChild(qD);e.edge=i,i.shouldClone=!1,i.isMeasured=!1,i.toBack(),e.angle=30,e.depth=20;var n=e.createChild(qD);e.sideA=n,n.shouldClone=!1,n.isMeasured=!1;var r=e.createChild(qD);return e.sideB=r,r.shouldClone=!1,r.isMeasured=!1,e.applyTheme(),e}uP(e,t),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),e instanceof OS)i=e.hex;else if(e instanceof OD||e instanceof DD)i=e.stops.getIndex(0).color.hex;else{var n=new QE;n.lightness=-.25,this.edge.filters.push(n),this.sideA.filters.push(n.clone()),this.sideB.filters.push(n.clone())}if(i){var r=DS(i).lighten(-.25);this.edge.fill=r,this.sideA.fill=r,this.sideB.fill=r,this.edge.stroke=r,this.sideA.stroke=r,this.sideB.stroke=r}},e.prototype.draw=function(){if(this.cornerRadius=0,this.innerCornerRadius=0,t.prototype.draw.call(this),0!==this.arc&&this.radius>0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var e=this.startAngle,i=this.arc,n=this.pixelInnerRadius||0,r=this.radiusY||0,s=this.radius,o=e+i,a=r/s*n,l={x:HP(e)*n,y:BP(e)*a},u={x:HP(e)*s,y:BP(e)*r},h={x:HP(o)*s,y:BP(o)*r},c={x:HP(o)*n,y:BP(o)*a},p=this.depth,d={x:l.x,y:l.y-p},f={x:u.x,y:u.y-p},g={x:h.x,y:h.y-p},m={x:c.x,y:c.y-p},y="",v=Math.ceil(i/5),b=i/v,_=e,x=f,w=0;w<v;w++)if((_+=b)>0&&_<180){y+=vE(x);var P={x:HP(_)*s,y:BP(_)*r-p};y+=bE({x:x.x,y:x.y+p}),y+=wE({x:P.x,y:P.y+p},s,r,!0),y+=bE(P),y+=wE(x,s,r),y+="z",x=P}else{y+=vE(x),y+=wE(P={x:HP(_)*s,y:BP(_)*r-p},s,r,!0),y+=bE({x:P.x,y:P.y+p}),y+=wE({x:x.x,y:x.y+p},s,r),y+=bE(x),y+="z",x=P}x=d,_=e;for(w=0;w<v;w++)if((_+=b)>0&&_<180){y+=vE(x);P={x:HP(_)*n,y:BP(_)*a-p};y+=bE({x:x.x,y:x.y+p}),y+=wE({x:P.x,y:P.y+p},n,a,!0),y+=bE(P),y+=wE(x,n,a),y+="z",x=P}else{y+=vE(x),y+=wE(P={x:HP(_)*n,y:BP(_)*a-p},n,a,!0),y+=bE({x:P.x,y:P.y+p}),y+=wE({x:x.x,y:x.y+p},n,a),y+=bE(x),y+="z",x=P}this.edge.path=y,this.sideA.path=vE(l)+bE(u)+bE(f)+bE(d)+" Z",this.sideB.path=vE(h)+bE(c)+bE(m)+bE(g)+" Z",this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-p}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){var t=this.getPropertyValue("angle");return TP(t)||(t=0),t},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return TP(t)||(t=this.radius-this.radius*this.angle/90),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.edge.copyFrom(e.edge),this.sideA.copyFrom(e.sideA),this.sideB.copyFrom(e.sideB)}}(TE);var JE=function(t){function e(){var e=t.call(this)||this;return e.className="RadialGradientModifier",e.gradient=new DD,e.applyTheme(),e}return uP(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},e}(XE);rS.registeredClasses.RadialGradientModifier=JE;var tT=function(t){function e(){var e=t.call(this)||this;return e.properties.gap=0,e._line=e.paper.add("path"),e.addElement(e._line),e}return uP(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties.shapeRendering="auto"),this._line){var e=this.width,i=this.height,n="";if(this.gap)for(var r=this.gap+this.strokeWidth,s=this.height/r,o=-s/2;o<1.5*s;o++)Math.round(this.rotation/90)!=this.rotation/90?(n+=vE({x:-e,y:(o+.5)*r})+bE({x:2*e,y:(o+.5)*r}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):n+=vE({x:-e,y:o*r})+bE({x:2*e,y:o*r});else Math.round(this.rotation/90)!=this.rotation/90?(n=vE({x:-e,y:i/2})+bE({x:2*e,y:i/2}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):n=vE({x:0,y:0})+bE({x:e,y:0});this._line.attr({d:n})}},Object.defineProperty(e.prototype,"gap",{get:function(){return this.properties.gap},set:function(t){this.properties.gap=t,this.draw()},enumerable:!0,configurable:!0}),e}(SD);rS.registeredClasses.LinePattern=tT;var eT=function(t){function e(){var e=t.call(this)||this;return e.properties.radius=2,e._circle=e.paper.add("circle"),e.addElement(e._circle),e.shapeRendering="auto",e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(e.prototype,"radius",{get:function(){return this.properties.radius},set:function(t){this.properties.radius=t,this.draw()},enumerable:!0,configurable:!0}),e}(SD);rS.registeredClasses.CirclePattern=eT;var iT=function(t){function e(){var e=t.call(this)||this;return e.rectHeight=1,e.rectWidth=1,e._rect=e.paper.add("rect"),e.addElement(e._rect),e}return uP(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(e.prototype,"rectWidth",{get:function(){return this.properties.rectWidth},set:function(t){this.properties.rectWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(t){this.properties.rectHeight=t,this.draw()},enumerable:!0,configurable:!0}),e}(SD);rS.registeredClasses.RectPattern=iT;var nT=function(t){function e(){var e=t.call(this)||this;return e.className="ColorizeFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.intensity=1,e.applyTheme(),e}return uP(e,t),e.prototype.applyFilter=function(){var t,e,i,n=this.intensity,r=1-n,s=this.color;s&&s.rgb?(t=s.rgb.r/255*n,e=s.rgb.g/255*n,i=s.rgb.b/255*n):(t=0,e=0,i=0),this.feColorMatrix.attr({values:r+" 0 0 0 "+t+" 0 "+r+" 0 0 "+e+" 0 0 "+r+" 0 "+i+" 0 0 0 1 0"})},Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(t){this.properties.intensity=t,this.applyFilter()},enumerable:!0,configurable:!0}),e}(VE);rS.registeredClasses.ColorizeFilter=nT;var rT=function(t){function e(){var e=t.call(this)||this;return e.className="DesaturateFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"saturate"}),e.filterPrimitives.push(e.feColorMatrix),e.width=120,e.height=120,e.saturation=0,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"saturation",{get:function(){return this.properties.saturation},set:function(t){this.properties.saturation=t,this.feColorMatrix.attr({values:t.toString()})},enumerable:!0,configurable:!0}),e}(VE);rS.registeredClasses.DesaturateFilter=rT;var sT=function(t){function e(){var e=t.call(this)||this;return e.className="BlurFilter",e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.width=200,e.height=200,e.blur=1.5,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),e}(VE);rS.registeredClasses.BlurFilter=sT;var oT=function(t){function e(){var e=t.call(this)||this;return e.className="FocusFilter",e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":(new nD).getFor("primaryButtonHover"),result:"base"}),e.filterPrimitives.push(e.feFlood),e.feMorphology=e.paper.add("feMorphology"),e.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),e.filterPrimitives.push(e.feMorphology),e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),e.filterPrimitives.push(e.feColorMatrix),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feBlend=e.paper.add("feBlend"),e.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),e.filterPrimitives.push(e.feBlend),e.width=130,e.height=130,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(t){this.properties.stroke=t,this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(t){this.properties.strokeWidth=t,this.feMorphology.attr({radius:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(t){this.properties.opacity=t,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+t+" 0"})},enumerable:!0,configurable:!0}),e.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.group.removeStyle("outline"),e.group.addStyle({outline:"none"}),t.prototype.setSprite.call(this,e)},e}(VE),aT=function(t){function e(){var e=t.call(this)||this;return e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new OS({r:103,g:183,b:220}),e.stepOptions={},e.passOptions={brighten:-.2},e.step=1,e.minColors=20,e.minLightness=.2,e.maxLightness=.9,e.shuffle=!1,e.wrap=!0,e.reuse=!1,e.saturation=1,e.className="ColorSet",e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"list",{get:function(){return this._list||this.generate(this.minColors),this._list},set:function(t){this._list=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.getReusableColor=function(t){if(0==this._list.length)return this.generate(1),this.list[0];var e=t-Math.floor(t/this._list.length)*this.list.length;return this.list[e]},e.prototype.next=function(){var t;return this.list.length<=this._currentStep?this.reuse?t=this.getReusableColor(this._currentStep):(this.generate(this.minColors),t=this.list[this._currentStep]):t=this.list[this._currentStep],this._currentStep+=this.step,t.saturate(this.saturation)},e.prototype.getIndex=function(t){var e;return this.list.length<=t?this.reuse?e=this.getReusableColor(t):(this.generate(this.minColors),e=this.getIndex(t)):e=this.list[t],e.saturate(this.saturation)},e.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(e.prototype,"currentStep",{get:function(){return this._currentStep},set:function(t){this._currentStep=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return this._startIndex},set:function(t){this._startIndex=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.generate=function(t){var e=SS(SP(this.currentColor.rgb)),i=CP(this.stepOptions.hue)?this.stepOptions.hue:1/t,n={brighten:0,lighten:0,hue:e.h,lightness:e.l,saturation:e.s},r=[],s=0==this.list.length?0:1;if(this.reuse)for(var o=s;o<=t;o++)r.push(SS(SP(this._list[o].rgb)).h);else for(o=s;o<=t;o++){var a=e.h+i*o;this.wrap&&a>1&&(a-=1),r.push(a)}this.shuffle&&r.sort((function(t,e){return Math.random()-.5}));for(o=0;o<t;o++){this.reuse?e=SS(SP(this._list[o].rgb)):e.h=r.shift(),this.applyStepOptions(e,n,o,this._currentPass);var l=DS(CS(e)),u=(this.stepOptions.brighten||0)*o+(this.passOptions.brighten||0)*this._currentPass;0!=u&&(u=this.wrap?iO(u,this.minLightness,this.maxLightness):eO(u,this.minLightness,this.maxLightness),l=l.brighten(u));var h=(this.stepOptions.lighten||0)*o+(this.passOptions.lighten||0)*this._currentPass;0!=h&&(h=this.wrap?iO(h,this.minLightness,this.maxLightness):eO(h,this.minLightness,this.maxLightness),l=l.lighten(h)),this._list.push(l)}this._currentPass++},Object.defineProperty(e.prototype,"currentColor",{get:function(){return 0==this._list.length?this.baseColor.saturate(this.saturation):this._list[this._list.length-1].saturate(this.saturation)},enumerable:!0,configurable:!0}),e.prototype.applyStepOptions=function(t,e,i,n){t.l=e.lightness+(this.stepOptions.lightness||0)*i+(this.passOptions.lightness||0)*n,this.wrap?(t.l>1?t.l=t.l-Math.floor(t.l):t.l<0&&(t.l=-(t.l-Math.floor(t.l))),t.l=iO(t.l,this.minLightness,this.maxLightness)):(t.l>1?t.l=1:t.l<0&&(t.l=0),t.l=eO(t.l,this.minLightness,this.maxLightness))},e.prototype.processConfig=function(e){if(e&&CP(e.list)&&IP(e.list))for(var i=0,n=e.list.length;i<n;i++)e.list[i]instanceof OS||(e.list[i]=DS(e.list[i]));t.prototype.processConfig.call(this,e)},e}(TS);rS.registeredClasses.ColorSet=aT;var lT=function(t){function e(){var e=t.call(this)||this;e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new OS({r:103,g:183,b:220}),e.className="PatternSet";var i=new nD;return e.list=[e.getLinePattern(1e3,45,1,6),e.getRectPattern(10,0,4),e.getLinePattern(1e3,-45,1,6),e.getCirclePattern(11,2,!0),e.getLinePattern(6,90,1),e.getRectPattern(12,45,6,!0),e.getLinePattern(6,0,1),e.getRectPattern(7,0,4),e.getLinePattern(1e3,45,2,3,"4,2"),e.getCirclePattern(9,3,!1),e.getLinePattern(1e3,-45,2,3,"4,2"),e.getRectPattern(10,45,Math.sqrt(50)),e.getLinePattern(1e3,-45,2,1),e.getRectPattern(10,0,9),e.getLinePattern(1e3,45,2,1),e.getLinePattern(1e3,0,3,1),e.getRectPattern(10,45,10),e.getLinePattern(1e3,90,3,1)],e.baseColor=i.getFor("stroke"),e.applyTheme(),e}return uP(e,t),e.prototype.getLinePattern=function(t,e,i,n,r){var s=new tT;return s.width=t,s.height=t,s.stroke=this.baseColor,s.gap=n,s.strokeDasharray=r,s.strokeWidth=i,s.rotation=e,s},e.prototype.getRectPattern=function(t,e,i,n){var r=new iT;return r.width=t,r.height=t,r.rectWidth=i,r.rectHeight=i,n?(r.stroke=this.baseColor,r.strokeWidth=1,r.fillOpacity=0):(r.fill=this.baseColor,r.strokeWidth=0),0!=e&&(r.shapeRendering="auto"),r.rotation=e,r},e.prototype.getCirclePattern=function(t,e,i){var n=new eT;return n.width=t,n.height=t,n.shapeRendering="auto",n.radius=e,i?(n.stroke=this.baseColor,n.strokeWidth=1,n.fillOpacity=0):(n.fill=this.baseColor,n.strokeWidth=0),n},Object.defineProperty(e.prototype,"list",{get:function(){return this._list},set:function(t){this._list=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.next=function(){var t=this.getIndex(this.currentStep);return this._currentStep++,t},e.prototype.getIndex=function(t){for(;this.list.length<=t;)this.generatePatterns();return this.list[t].clone()},e.prototype.generatePatterns=function(){var t=this.list.length/(this._currentPass+1);this._currentPass++;for(var e=0;e<t;e++)this.list.push(this.list[e].clone())},e.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(e.prototype,"currentStep",{get:function(){return this._currentStep},set:function(t){this._currentStep=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return this._startIndex},set:function(t){this._startIndex=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){t.prototype.processConfig.call(this,e)},e}(TS);rS.registeredClasses.PatternSet=lT;!function(){function t(){this._disposed=!1,this._disposers=[]}t.prototype.init=function(){},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._disposers;for(this._disposers=null;0!==t.length;){t.shift().dispose()}}}}();var uT=function(t){function e(){var e=t.call(this)||this;e.className="AmChartsLogo",e.valign="bottom";var i=.3;e.opacity=.3,e.defaultState.properties.opacity=.4,e.url="https://www.amcharts.com/",e.urlTarget="_blank",e.showSystemTooltip=!0,e.readerTitle="Chart created using amCharts library",e.width=66,e.height=21,e.background.opacity=0;var n=DS("#474758");"#ffffff"==(new nD).getFor("background").alternative.hex&&(n=DS("#ffffff"));var r=new OD;r.addColor(n),r.addColor(n,1,.75),r.addColor(DS("#3cabff"),1,.755),r.rotation=-10;var s=r,o=e.createChild(EE);o.shouldClone=!1,o.isMeasured=!1,o.segments=[[{x:15,y:15},{x:27,y:15},{x:36,y:6},{x:40.5,y:10.5},{x:45,y:6},{x:54,y:15},{x:60,y:15}]],o.strokeWidth=6*i,o.tensionX=.8,o.tensionY=1,o.stroke=DS("#3cabff");var a=e.createChild(EE);a.shouldClone=!1,a.isMeasured=!1,a.segments=[[{x:6,y:15},{x:15,y:15},{x:27,y:12*i},{x:39.9,y:15},{x:51,y:15},{x:60,y:15}]],a.strokeWidth=6*i,a.tensionX=.75,a.tensionY=1,a.stroke=s,e._disposers.push(a);var l=new rT;e.filters.push(l);var u=new rT;u.saturation=1;var h=e.states.create("hover");return h.properties.opacity=1,h.filters.push(u),e.applyTheme(),e}return uP(e,t),e}(ZD);function hT(t,e){var i=function(t){if(EP(t)){var e=document.getElementById(t);if(null==e&&(e=document.getElementsByClassName(t)[0]),e instanceof HTMLElement)return e}else if(t instanceof HTMLElement)return t}(t);if(i){i.innerHTML="";var n=new xD(i),r=new wD(n.SVGContainer,"svg-"+(_D.length-1)),s=new ZD;s.htmlContainer=i,s.svgContainer=n,s.width=mP(100),s.height=mP(100),s.background.fillOpacity=0,s.paper=r,r.append(s.group),s.relativeWidth=1,s.relativeHeight=1,n.container=s;var o=s.createChild(e);o.topParent=s;var a=o.uid;rS.invalidSprites[a]=[],rS.invalidDatas[a]=[],rS.invalidPositions[a]=[],rS.invalidLayouts[a]=[],s.baseId=a,o.isBaseSprite=!0,o.focusFilter=new oT,rS.baseSprites.push(o),rS.baseSpritesByUid[a]=o,o.maskRectangle={x:0,y:0,width:Math.max(n.width,0),height:Math.max(n.height,0)},s.events.on("maxsizechanged",(function(t){0!=t.previousWidth&&0!=t.previousHeight||s.deepInvalidate(),o.maskRectangle&&(o.maskRectangle={x:0,y:0,width:Math.max(n.width,0),height:Math.max(n.height,0)})}));var l=null,u=function(){o.isDisposed()?l=null:null==YO(o.dom)?(!function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];console&&console.warn.apply(console,fP(t))}("Chart was not disposed",o.uid),l=null):l=window.setTimeout(u,1e3)};u(),o.addDisposer(new xC((function(){null!==l&&clearTimeout(l),hC(rS.baseSprites,o),rS.baseSpritesByUid[o.uid]=void 0}))),o.addDisposer(s);var h=s.createChild(ZD);h.topParent=s,h.width=mP(100),h.height=mP(100),h.isMeasured=!1,s.tooltipContainer=h,o.tooltip=new NE,o.tooltip.hide(0),o.tooltip.setBounds({x:0,y:0,width:h.maxWidth,height:h.maxHeight}),h.events.on("maxsizechanged",(function(){SP(o.tooltip).setBounds({x:0,y:0,width:h.maxWidth,height:h.maxHeight})}),void 0,!1);var c=new kE;if(c.events.on("inited",(function(){c.__disabled=!0}),void 0,!1),s.preloader=c,o instanceof ZD&&!o.hasLicense()){var p=h.createChild(uT);h.events.on("maxsizechanged",(function(t){h.maxWidth<=100||h.maxHeight<=50?p.hide():(p.isHidden||p.isHiding)&&p.show()}),void 0,!1),o.logo=p,p.align="left",p.valign="bottom"}if(o.numberFormatter,s.isStandaloneInstance=!0,TO.onlyShowOnViewport)if(tD(i,TO.viewportTarget))TO.queue&&cT(o);else{o.__disabled=!0,o.tooltipContainer.__disabled=!0;var d=[BO(window,"DOMContentLoaded",(function(){dT(o)})),BO(window,"load",(function(){dT(o)})),BO(window,"resize",(function(){dT(o)})),BO(window,"scroll",(function(){dT(o)}))];if(TO.viewportTarget)for(var f=IP(TO.viewportTarget)?TO.viewportTarget:TO.viewportTarget?[TO.viewportTarget]:[],g=0;g<f.length;g++){var m=f[g];d.push(BO(m,"resize",(function(){dT(o)}))),d.push(BO(m,"scroll",(function(){dT(o)})))}var y=new wC(d);o.addDisposer(y),o.vpDisposer=y}else TO.queue&&cT(o);return o}throw QD.log("html container not found"),new Error("html container not found")}function cT(t){-1==rS.queue.indexOf(t)&&(t.__disabled=!0,t.tooltipContainer.__disabled=!0,t.events.disableType("appeared"),0==rS.queue.length&&(rS.events.once("exitframe",(function(){fT(t)})),QD.requestFrame()),t.addDisposer(new xC((function(){pT(t)}))),rS.queue.push(t))}function pT(t){var e=rS.queue.indexOf(t);if(e>=0){rS.queue.splice(rS.queue.indexOf(t),1);var i=rS.queue[e];i&&fT(i)}}function dT(t){t.__disabled&&tD(t.htmlContainer,TO.viewportTarget)&&(t.vpDisposer&&t.vpDisposer.dispose(),cT(t))}function fT(t){t.__disabled=!1,t.tooltipContainer.__disabled=!1,t.events.enableType("appeared"),t.dispatch("removedfromqueue"),t.showOnInit&&t.events.on("appeared",(function(){pT(t)})),t.vpDisposer&&t.vpDisposer.dispose(),t instanceof ZD&&t.invalidateLabels(),t.tooltipContainer&&t.tooltipContainer.invalidateLayout(),t instanceof uE?(t.invalidateData(),t.reinit(),t.events.once("datavalidated",(function(){t.showOnInit?t.appear():pT(t)}))):(t.reinit(),t.events.once("inited",(function(){pT(t)})),t.showOnInit&&t.appear())}function gT(t,e){var i;EP(e)&&(CP(rS.registeredClasses[e])?e=rS.registeredClasses[e]:(e=rS.registeredClasses.Container,i=new Error("Class ["+e+"] is not loaded.")));var n=hT(t,e);return i&&n.raiseCriticalError(i),n}function mT(t){-1===rS.themes.indexOf(t)&&rS.themes.push(t)}var yT=function(t){function e(){var e=t.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this._label=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new xC((function(){CP(t.component)&&t.component.labels.removeValue(e)})))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueLabel",{get:function(){var t=this;if(!this._valueLabel){var e=this.component.valueLabels.create();this._valueLabel=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new xC((function(){CP(t.component)&&t.component.valueLabels.removeValue(e)})))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemContainer",{get:function(){var t=this;if(!this._itemContainer){var e=this.component,i=e.itemContainers.create();i.parent=e,this._itemContainer=i,this.addSprite(i),this._disposers.push(i),i.togglable&&i.events.on("toggled",(function(t){e.toggleDataItem(t.target.dataItem)}),void 0,!1),i.focusable&&(i.events.on("hit",(function(t){e.focusedItem=void 0}),void 0,!1),i.events.on("focus",(function(t){e.focusedItem=t.target.dataItem}),void 0,!1),i.events.on("blur",(function(t){e.focusedItem=void 0}),void 0,!1)),this._disposers.push(new xC((function(){CP(t.component)&&t.component.itemContainers.removeValue(i)}))),this.dataContext.uidAttr&&(i.readerControls=this.dataContext.uidAttr(),i.readerLabelledBy=this.dataContext.uidAttr());var n=this.dataContext;if((n instanceof lE||n instanceof qD)&&!n.isDisposed()){var r=function(t){i.readerChecked=t.visible,i.events.disableType("toggled"),i.isActive=!t.visible,i.events.enableType("toggled")};n.addDisposer(new xC((function(){t.component&&t.component.dataItems.remove(t)}))),n instanceof qD?(i.addDisposer(n.events.on("visibilitychanged",r,void 0,!1)),i.addDisposer(n.events.on("hidden",(function(t){i.readerChecked=!1,i.events.disableType("toggled"),i.isActive=!0,i.events.enableType("toggled")}),void 0,!1)),i.addDisposer(n.events.on("shown",(function(t){i.readerChecked=!0,i.events.disableType("toggled"),i.isActive=!1,i.events.enableType("toggled")}),void 0,!1))):i.addDisposer(n.events.on("visibilitychanged",r,void 0,!1))}}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marker",{get:function(){var t=this;if(!this._marker){var e=this.component.markers.create();this._marker=e,e.parent=this.itemContainer,this.addSprite(e),this._disposers.push(e),this._disposers.push(new xC((function(){CP(t.component)&&t.component.markers.removeValue(e)})))}return this._marker},enumerable:!0,configurable:!0}),e}(lE),vT=function(){this.createMarker=!0},bT=function(t){function e(){var e=t.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("scrollable",!1),e.setPropertyValue("contentAlign","center");var i=new ZD;i.applyOnClones=!0,i.padding(8,0,8,0),i.margin(0,10,0,10),i.layout="horizontal",i.clickable=!0,i.focusable=!0,i.role="switch",i.togglable=!0,i.cursorOverStyle=TD.pointer,i.background.fillOpacity=0,e.itemContainers=new hS(i),e._disposers.push(new aS(e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(dD().body.events.on("keyup",(function(t){if(uD.isKey(t.event,"enter")&&e.focusedItem){var i=e.focusedItem,n=i.itemContainer;n.togglable?e.toggleDataItem(i):n.clickable&&n.events.isEnabled("hit")&&(n.dispatchImmediately("hit",{event:t}),e.focusedItem=i)}}),e));var n=new nD,r=new ZD;r.width=23,r.height=23,r.interactionsEnabled=!1,r.applyOnClones=!0,r.setStateOnChildren=!0,r.background.fillOpacity=0,r.background.strokeOpacity=0,r.propertyFields.fill="fill",r.valign="middle";var s=n.getFor("disabledBackground");r.events.on("childadded",(function(t){var e=t.newValue.states.create("active");e.properties.stroke=s,e.properties.fill=s})),e.markers=new hS(r),e._disposers.push(new aS(e.markers)),e._disposers.push(e.markers.template);var o=r.createChild(cE);o.width=mP(100),o.height=mP(100),o.applyOnClones=!0,o.propertyFields.fill="fill",o.strokeOpacity=0;var a=new hE;a.text="{name}",a.margin(0,5,0,5),a.valign="middle",a.applyOnClones=!0,a.states.create("active").properties.fill=n.getFor("disabledBackground"),e.labels=new hS(a),e._disposers.push(new aS(e.labels)),e._disposers.push(e.labels.template),a.interactionsEnabled=!1,a.truncate=!0,a.fullWords=!1;var l=new hE;return l.margin(0,5,0,0),l.valign="middle",l.width=50,l.align="right",l.textAlign="end",l.applyOnClones=!0,l.states.create("active").properties.fill=n.getFor("disabledBackground"),l.interactionsEnabled=!1,e.valueLabels=new hS(l),e._disposers.push(new aS(e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",i.states.create("active"),i.setStateOnChildren=!0,e.role="group",e.events.on("layoutvalidated",e.handleScrollbar,e,!1),e.applyTheme(),e}return uP(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),CP(this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},e.prototype.createDataItem=function(){return new yT},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e);var i=e.itemContainer,n=e.marker;e.label;var r=e.valueLabel;i.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var s=e.label.maxWidth;e.label.width=void 0,s>0&&(e.label.maxWidth=s),"right"==r.align&&(r.width=void 0);var o=e.dataContext.legendSettings,a=e.dataContext;!a.createLegendMarker||this.useDefaultMarker&&a instanceof qD||e.childrenCreated||(a.createLegendMarker(n),e.childrenCreated=!0),a.updateLegendValue&&a.updateLegendValue(),a.component&&a.component.updateLegendValue&&a.component.updateLegendValue(a),r.invalid&&r.validate(),""==r.text||null==r.text?r.__disabled=!0:r.__disabled=!1,!o||null==o.itemValueText&&null==o.valueText||(r.__disabled=!1);var l=e.dataContext.visible;void 0===l&&(l=!0),l=_P(l),e.dataContext.visible=l,i.events.disableType("toggled"),i.isActive=!l,i.isActive?i.setState("active",0):i.setState("default",0),i.events.enableType("toggled")},e.prototype.afterDraw=function(){var e=this,i=this.getPropertyValue("maxWidth"),n=0;this.labels.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>n&&(n=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var r=0;this.valueLabels.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>r&&(r=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var s=0;this.markers.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>s&&(s=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var o,a=this.itemContainers.template,l=a.pixelMarginRight+a.pixelMarginLeft,u=n+r+s;TP(i)?((i-=l)>u&&(i=u),o=i-s-r):o=n,this.labels.each((function(t){("right"==e.valueLabels.template.align||t.measuredWidth>o)&&(t.width=Math.min(t.maxWidth,o-t.pixelMarginLeft-t.pixelMarginRight))})),"right"==this.valueLabels.template.align&&this.valueLabels.each((function(t){t.width=r-t.pixelMarginRight-t.pixelMarginLeft})),t.prototype.afterDraw.call(this)},e.prototype.handleScrollbar=function(){var t=this.scrollbar;this.scrollable&&t&&(t.height=this.measuredHeight,t.x=this.measuredWidth-t.pixelWidth-t.pixelMarginLeft,this.contentHeight>this.measuredHeight?(t.visible=!0,t.thumb.height=t.height*this.measuredHeight/this.contentHeight,this.paddingRight=t.pixelWidth+t.pixelMarginLeft+ +t.pixelMarginRight):t.visible=!1,this.updateMasks())},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t)&&("left"==t||"right"==t?(this.margin(10,5,10,10),this.valign="middle",this.contentAlign="none",this.valueLabels.template.align="right",TP(this.maxColumns)||(this.maxColumns=1),this.width=void 0,this.maxWidth=220):(this.maxColumns=void 0,this.width=mP(100),this.valueLabels.template.align="left"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(t){this.setPropertyValue("useDefaultMarker",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollable",{get:function(){return this.getPropertyValue("scrollable")},set:function(t){if(this.setPropertyValue("scrollable",t,!0))if(t){var e=this.createChild(AE);this.scrollbar=e,e.isMeasured=!1,e.orientation="vertical",e.endGrip.__disabled=!0,e.startGrip.__disabled=!0,e.visible=!1,e.marginLeft=5,this._mouseWheelDisposer=this.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer),this._disposers.push(e.events.on("rangechanged",this.updateMasks,this,!1))}else this._mouseWheelDisposer&&(this._mouseWheelDisposer.dispose(),this.scrollbar&&(this.scrollbar.dispose(),this.scrollbar=void 0))},enumerable:!0,configurable:!0}),e.prototype.handleWheel=function(t){var e=t.shift.y,i=this.scrollbar;if(i){var n=e/1e3*this.measuredHeight/this.contentHeight,r=i.end-i.start;e>0?(i.start=zP(0,i.start-n),i.end=i.start+r):(i.end=UP(1,i.end-n),i.start=i.end-r)}},e.prototype.updateMasks=function(){var t=this;this.scrollbar&&this.itemContainers.each((function(e){e.dy=-t.scrollbar.thumb.pixelY*t.contentHeight/t.measuredHeight,e.maskRectangle={x:0,y:-e.dy,width:t.measuredWidth,height:t.measuredHeight}}))},e.prototype.toggleDataItem=function(t){var e=t.dataContext;!e.visible||e.isHiding||e instanceof qD&&e.isHidden?(t.color=t.colorOrig,t.itemContainer.isActive=!1,!0===e.hidden&&(e.hidden=!1),e.show?e.show():e.visible=!0,this.svgContainer.readerAlert(this.language.translate("%1 shown",this.language.locale,t.label.readerTitle))):(t.itemContainer.isActive=!0,e.hide?e.hide():e.visible=!1,this.svgContainer.readerAlert(this.language.translate("%1 hidden",this.language.locale,t.label.readerTitle)),t.color=(new nD).getFor("disabledBackground"))},Object.defineProperty(e.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.handleDataItemPropertyChange=function(t,e){t.valueLabel.invalidate(),t.label.invalidate()},e}(uE);rS.registeredClasses.Legend=bT,oE.push({relevant:aE.widthXS,state:function(t,e){if(t instanceof bT&&("left"==t.position||"right"==t.position)){var i=t.states.create(e);return i.properties.position="bottom",i}return null}}),oE.push({relevant:aE.heightXS,state:function(t,e){if(t instanceof bT&&("top"==t.position||"bottom"==t.position)){var i=t.states.create(e);return i.properties.position="right",i}return null}}),oE.push({relevant:aE.isXS,state:function(t,e){if(t instanceof bT){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var _T=function(t){function e(){var e=t.call(this)||this;e._axis=new PC,e.dataItems=new uS,e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var i=new nD,n=new GE;n.fill=i.getFor("background"),n.stroke=DS(),n.fillOpacity=.9,n.zIndex=0,e._fillShape=n;var r=new GE;r.fill=DS(),r.stroke=i.getFor("grid"),r.strokeOpacity=.3,r.zIndex=1,e._startLine=r;var s=new GE;return s.fill=DS(),s.stroke=DS("#000000"),s.strokeOpacity=.3,s.zIndex=2,e._endLine=s,e._disposers.push(e._axis),e.applyTheme(),e}return uP(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(e.prototype,"startLine",{get:function(){return this._startLine},set:function(t){this._startLine&&this._startLine.dispose(),this._startLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLine",{get:function(){return this._endLine},set:function(t){this._endLine&&this._endLine.dispose(),this._endLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillShape",{get:function(){return this._fillShape},set:function(t){this._fillShape&&this._fillShape.dispose(),this._fillShape=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),e.prototype.addBreakSprite=function(t){t.parent=this,t.isMeasured=!1,this._disposers.push(t)},Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this._axis.get()!==t){this._axis.set(t,t.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),t.renderer.createBreakSprites(this);var e=t.axisBreaks.template;this.startLine.copyFrom(e.startLine),this.endLine.copyFrom(e.endLine),this.fillShape.copyFrom(e.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(t){this.setPropertyValue("breakSize",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.draw=function(){(t.prototype.draw.call(this),this.axis)&&this.axis.renderer.updateBreakElement(this)},Object.defineProperty(e.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e}(ZD);rS.registeredClasses.AxisBreak=_T;var xT,wT=function(t){function e(){var e=t.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.grid).disabled)return;e=i.clone()}else{if((i=t.renderer.grid.template).disabled)return;e=t.renderer.grid.create(),this._disposers.push(new xC((function(){t.renderer.grid.removeValue(e)})))}this.grid=e,e.shouldClone=!1,this._disposers.push(e),e.axis=this.component}}return this._grid},set:function(t){this._grid&&this._grid!=t&&(hC(this.sprites,this._grid),this._grid.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(hC(t.dataItem.sprites,t),t.dataItem.grid=void 0),this.addSprite(t)),this._grid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){if(!this._tick){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.tick).disabled)return;e=i.clone()}else{if((i=t.renderer.ticks.template).disabled)return;e=t.renderer.ticks.create(),this._disposers.push(new xC((function(){t.renderer.ticks.removeValue(e)})))}this.tick=e,e.axis=this.component,e.shouldClone=!1,this._disposers.push(e)}}return this._tick},set:function(t){this._tick&&this._tick!=t&&(hC(this.sprites,this._tick),this._tick.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(hC(t.dataItem.sprites,t),t.dataItem.tick=void 0),this.addSprite(t)),this._tick=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){if(!this._label){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if((i=t.axisRanges.template.label).disabled)return;e=i.clone()}else{if((i=t.renderer.labels.template).disabled)return;e=t.renderer.labels.create(),this._disposers.push(new xC((function(){t.renderer.labels.removeValue(e)})))}this._disposers.push(e),this.label=e,e.shouldClone=!1,e.axis=this.component,e.virtualParent=t}}return this._label},set:function(t){this._label&&this._label!=t&&(hC(this.sprites,this._label),this._label.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(hC(t.dataItem.sprites,t),t.dataItem.label=void 0),this.addSprite(t)),this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisFill",{get:function(){if(!this._axisFill){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.axisFill,!this.isTemplate&&i.disabled)return;e=i.clone()}else{if((i=t.renderer.axisFills.template).disabled)return;e=t.renderer.axisFills.create(),this._disposers.push(new xC((function(){t.renderer.axisFills.removeValue(e)})))}this.axisFill=e,e.shouldClone=!1,this._disposers.push(e)}}return this._axisFill},set:function(t){this._axisFill&&this._axisFill!=t&&(hC(this.sprites,this._axisFill),this._axisFill.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(hC(t.dataItem.sprites,t),t.dataItem.axisFill=void 0),t.axis=this.component,this.addSprite(t)),this._axisFill=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t,this._label&&(this._label.text=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contents",{get:function(){if(!this._contents){var t=new ZD;this.addSprite(t),t.isMeasured=!1,this._contents=t;var e=this.component;if(e){var i=e.renderer.createFill(this.component);i.disabled=!1,i.axis=e,this.addSprite(i),this._mask=i,t.mask=i}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(t){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),t&&t.dataItems.push(this),this._axisBreak=t},enumerable:!0,configurable:!0}),e.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},e.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},e.prototype.configOrder=function(t,e){return t==e?0:"language"==t?-1:"language"==e?1:"component"==t?-1:"component"==e?1:0},e.prototype.hasProperty=function(e){return"component"==e||t.prototype.hasProperty.call(this,e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},e.prototype.setVisibility=function(e,i){t.prototype.setVisibility.call(this,e,i),this._contents&&(this._contents.visible=e)},Object.defineProperty(e.prototype,"bullet",{get:function(){return this._bullet},set:function(t){this._bullet&&this._bullet!=t&&(hC(this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=t,t&&this.addSprite(t)},enumerable:!0,configurable:!0}),e}(lE);!function(t){t[t.Start=0]="Start",t[t.Middle=.5]="Middle",t[t.End=1]="End"}(xT||(xT={}));var PT=function(t){function e(){var i=t.call(this)||this;if(i._gridCount=10,i._series=new uS,i.autoDispose=!0,i._axisItemCount=0,i.constructor===e)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");i.hideTooltipWhileZooming=!0,i.minWidth=1e-4,i.minHeight=1e-4,i.className="Axis",i.shouldClone=!1,i.setPropertyValue("cursorTooltipEnabled",!0),i.toggleZoomOutButton=!0;var n=new nD;i.title=new hE,i.title.shouldClone=!1,i._disposers.push(i.title),i.setPropertyValue("startLocation",0),i.setPropertyValue("endLocation",1),i._dataItemsIterator=new QC(i.dataItems,(function(){return i.dataItems.create()})),i._dataItemsIterator.createNewItems=!0;var r=new NE;i._disposers.push(r),r.label.padding(5,10,5,10),r.background.pointerLength=5,r.fitPointerToBounds=!0,r.background.filters.clear(),r.virtualParent=i;var s=r.background;return s.cornerRadius=0,s.fill=n.getFor("alternativeBackground"),s.stroke=s.fill,s.strokeWidth=1,s.fillOpacity=1,r.label.fill=n.getFor("alternativeText"),i.tooltip=r,i.readerHidden=!0,i.events.on("rangechangestarted",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!0)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!0)}),void 0,!1),i.events.on("rangechangeended",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!1)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!1)}),void 0,!1),i.applyTheme(),i}return uP(e,t),e.prototype.fillRule=function(t,e){TP(e)||(e=t.index),e/2==Math.round(e/2)?(t.axisFill.__disabled=!0,t.axisFill.opacity=0):(t.axisFill.opacity=1,t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new wT},e.prototype.invalidateLayout=function(){t.prototype.invalidateLayout.call(this),KC(this.series.iterator(),(function(t){t.invalidateLayout()}))},e.prototype.invalidateSeries=function(){KC(this.series.iterator(),(function(t){t.invalidate()}))},e.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},e.prototype.updateGridCount=function(){if(this.renderer){var t=this.axisLength/this.renderer.minGridDistance;t!=this._gridCount&&(this._gridCount=t,this.clearCache())}},e.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),t.prototype.validateLayout.call(this),this.updateGridCount();var e=this.renderer;e&&(e.updateAxisLine(),e.updateTooltip(),e.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},e.prototype.initRenderer=function(){},e.prototype.appendDataItem=function(t){var e=this.renderer,i=t.tick;i&&(i.above?i.parent=e.bulletsContainer:i.parent=e.gridContainer),t.label&&(t.label.parent=e);var n=t.axisFill;n&&(n.above?n.parent=e.bulletsContainer:n.parent=e.gridContainer);var r=t.grid;r&&(r.above?r.parent=e.bulletsContainer:r.parent=e.gridContainer),t.bullet&&(t.bullet.parent=e.bulletsContainer)},e.prototype.validate=function(){t.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},e.prototype.validateAxisRanges=function(){var t=this;KC(this.axisRanges.iterator(),(function(e){t.appendDataItem(e),t.validateDataElement(e),e.grid&&e.grid.validate(),e.tick&&e.tick.validate(),e.axisFill&&e.axisFill.validate(),e.label&&e.label.validate()}))},e.prototype.validateBreaks=function(){this._axisBreaks&&KC(this._axisBreaks.iterator(),(function(t){t.invalidate()}))},e.prototype.processBreak=function(t){var e=t.newValue;e.parent=this.renderer.breakContainer,e.axis=this},e.prototype.registerSeries=function(t){var e=this;return this.series.moveValue(t),new wC([new xC((function(){e.series.removeValue(t)})),this.events.on("lengthchanged",t.invalidate,t,!1),this.events.on("lengthchanged",t.createMask,t,!1),this.events.on("startchanged",t.invalidate,t,!1),this.events.on("endchanged",t.invalidate,t,!1)])},Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){if(t!=this._renderer){this._renderer=t,t.chart=this.chart,t.axis=this,t.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(t.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var e=this.renderer.labels.create();this._disposers.push(e),e.dataItem=this.dataItems.template.clone(),e.text="L",e.parent=this.renderer,e.shouldClone=!1,e.fillOpacity=0,e.opacity=0,e.strokeOpacity=0,e.interactionsEnabled=!1,e.validate(),this.ghostLabel=e,this.events.on("beforedatavalidated",(function(){e.text="L"}),void 0,!1)}},enumerable:!0,configurable:!0}),e.prototype.positionToAngle=function(t){return this.renderer.positionToAngle(t)},e.prototype.pointToPosition=function(t){return this.renderer.pointToPosition(t)},e.prototype.positionToCoordinate=function(t){return this.renderer.positionToCoordinate(t)},e.prototype.getAnyRangePath=function(t,e){return this.renderer.getPositionRangePath(t,e)},e.prototype.anyToPosition=function(t){return 0},e.prototype.anyToPoint=function(t){return{x:0,y:0,angle:0}},e.prototype.getPositionRangePath=function(t,e){return this.renderer?this.renderer.getPositionRangePath(t,e):""},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)&&(t&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(t){this.setPropertyValue("toggleZoomOutButton",t)},enumerable:!0,configurable:!0}),e.prototype.hideTooltip=function(e){t.prototype.hideTooltip.call(this,e),this._tooltipPosition=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i=this._tooltip;if(!i||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(e||(t=this.toAxisPosition(t)),!TP(t)||t<this.start||t>this.end)return i.hide(0),void(this._tooltipPosition=void 0);var n=this.renderer;i.parent||(i.parent=this.tooltipContainer);var r=n.tooltipLocation,s=this.getCellStartPosition(t),o=this.getCellEndPosition(t);if("fixed"==this.tooltipPosition&&(t=RP(s+(o-s)*r,4)),t=NP(t,this.start,this.end),this._tooltipPosition!=t){this._tooltipPosition=t;var a=n.tooltipLocation2,l=n.positionToPoint(s,a),u=n.positionToPoint(o,a);this.currentItemStartPoint=l,this.currentItemEndPoint=u,n.fullWidthTooltip&&(i.width=u.x-l.x,i.height=u.y-l.y);var h=rO(n.positionToPoint(t,a),this.renderer.line);i.text=this.getTooltipText(t),i.text&&(i.delayedPointTo(h),i.show())}this.cursorTooltipEnabled&&!this.tooltip.disabled||i.hide(0)}},e.prototype.toAxisPosition=function(t){if(null!=(t=this.renderer.toAxisPosition(t)))return t*=this.end-this.start,t=this.renderer.inversed?this.end-t:this.start+t},e.prototype.toGlobalPosition=function(t){return this.renderer.inversed?t=this.end-t:t-=this.start,t/(this.end-this.start)},e.prototype.getTooltipText=function(t){},e.prototype.updateTooltip=function(t,e){var i=this._tooltip;i&&(i.pointerOrientation=t,i.setBounds(oO(e,this.renderer.line)))},e.prototype.roundPosition=function(t,e,i){return t},e.prototype.getCellStartPosition=function(t){return t},e.prototype.getCellEndPosition=function(t){return t},Object.defineProperty(e.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var t=this.createDataItem();t.isRange=!0,t.axisFill=this.renderer.axisFills.template.clone(),t.grid=this.renderer.grid.template.clone(),t.tick=this.renderer.ticks.template.clone(),t.label=this.renderer.labels.template.clone(),t.isTemplate=!0,t.component=this,t.axisFill.disabled=!1,t.tick.disabled=!1,t.grid.disabled=!1,t.label.disabled=!1,this._axisRanges=new hS(t),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new aS(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),e.prototype.processAxisRange=function(t){var e=t.newValue;e.component=this,e.isRange=!0},Object.defineProperty(e.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new fS(this.createAxisBreak(),(function(t,e){return gS(t.adjustedStartValue,e.adjustedStartValue)})),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new aS(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),e.prototype.createAxisBreak=function(){return new _T},Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new uS),this._series},enumerable:!0,configurable:!0}),e.prototype.processSeriesDataItems=function(){},e.prototype.processSeriesDataItem=function(t,e){},e.prototype.postProcessSeriesDataItems=function(t){},e.prototype.postProcessSeriesDataItem=function(t){},e.prototype.updateAxisBySeries=function(){},e.prototype.hideUnusedDataItems=function(){var t=this,e=this._dataItemsIterator;e.createNewItems=!1,KC(e.iterator(),(function(e){t.validateDataElement(e),e.__disabled=!0})),e.clear(),e.createNewItems=!0},e.prototype.getSeriesDataItem=function(t,e,i){},e.prototype.getAngle=function(t,e,i,n,r){},e.prototype.getX=function(t,e,i,n,r){},e.prototype.getPositionX=function(t,e,i,n,r){},e.prototype.getY=function(t,e,i,n,r){},e.prototype.getPositionY=function(t,e,i,n,r){},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.dataChangeUpdate=function(){},e.prototype.seriesDataChangeUpdate=function(t){},e.prototype.adjustDifference=function(t,e){var i=e-t;if(TP(i))return this._axisBreaks&&$C(this._axisBreaks.iterator(),(function(n){var r,s,o,a,l,u,h,c,p=n.adjustedStartValue,d=n.adjustedEndValue;if(TP(p)&&TP(d)){if(p>e)return!1;if(d>=t&&TP(p)&&TP(d)){var f=n.breakSize,g=(s={start:t,end:e},o=SP((r={start:p,end:d}).start),a=SP(s.start),l=SP(r.end),u=SP(s.end),h=Math.max(o,a),(c=Math.min(l,u))<h?void 0:{start:h,end:c});g&&(i-=(g.end-g.start)*(1-f))}return!0}})),i},e.prototype.isInBreak=function(t){if(this._axisBreaks)return XC(this._axisBreaks.iterator(),(function(e){return t>=e.adjustedStartValue&&t<=e.adjustedEndValue}))},e.prototype.fixAxisBreaks=function(){var t=this;if(this._axisBreaks){var e=this._axisBreaks;if(e.length>0){lC(GC(e.iterator()),(function(e){var i=UP(e.startValue,e.endValue),n=zP(e.startValue,e.endValue);e.adjustedStartValue=i,e.adjustedEndValue=n,t._axisBreaks.update(e)}));var i=e.first,n=Math.min(i.startValue,i.endValue);KC(e.iterator(),(function(t){var e=t.adjustedStartValue,i=t.adjustedEndValue;e<n&&(e=n,i<n&&(i=n)),t.adjustedStartValue=e,t.adjustedEndValue=i}))}}},Object.defineProperty(e.prototype,"startIndex",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this.dataItems.length},set:function(t){},enumerable:!0,configurable:!0}),e.prototype.getPositionLabel=function(t){return Math.round(100*t)+"%x"},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.createSeriesRange=function(t){var e=this.axisRanges.create();return e.component=this,e.axisFill=this.renderer.axisFills.template.clone(),e.axisFill.disabled=!1,e.axisFill.fillOpacity=0,e.grid=this.renderer.grid.template.clone(),e.grid.disabled=!0,e.tick=this.renderer.ticks.template.clone(),e.tick.disabled=!0,e.label=this.renderer.labels.template.clone(),e.label.disabled=!0,e.addDisposer(new xC((function(){t.axisRanges.removeValue(e)}))),t.axisRanges.push(e),e},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.renderer?this.renderer.copyFrom(e.renderer):e.renderer&&(this.renderer=e.renderer.clone(),this._disposers.push(this.renderer)),e.title&&(this.title?this.title.copyFrom(e.title):(this.title=e.title.clone(),this.title.parent=this),this._disposers.push(this.title))},e.prototype.resetIterators=function(){this._dataItemsIterator.reset()},e.prototype.processConfig=function(e){if(e&&CP(e.axisRanges)&&IP(e.axisRanges))for(var i=0,n=e.axisRanges.length;i<n;i++){var r=e.axisRanges[i];CP(r.series)&&EP(r.series)&&this.map.hasKey(r.series)&&(e.axisRanges[i]=this.createSeriesRange(this.map.getKey(r.series)),delete r.series,e.axisRanges[i].config=r)}t.prototype.processConfig.call(this,e)},Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.renderer&&(this.renderer.gridContainer.disabled=e),i},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(t){this._title&&this._title!=t&&this._title.dispose(),t&&(this._title=t,t.parent=this,t.shouldClone=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(t){this.setPropertyValue("hideTooltipWhileZooming",t)},enumerable:!0,configurable:!0}),e}(uE);rS.registeredClasses.Axis=PT,rS.registeredClasses.AxisDataItem=wT,oE.push({relevant:aE.maybeXS,state:function(t,e){if(t instanceof PT&&t.tooltip){var i=t.states.create(e);return i.properties.cursorTooltipEnabled=!1,i}return null}});var CT=function(t){function e(){var e=t.call(this)||this;e.className="AxisLine",e.element=e.paper.add("path");var i=new nD;return e.stroke=i.getFor("grid"),e.strokeOpacity=.15,e.pixelPerfect=!0,e.fill=DS(),e.applyTheme(),e.interactionsEnabled=!1,e}return uP(e,t),e}(qD);rS.registeredClasses.AxisLine=CT;var ST=function(t){function e(e){var i=t.call(this)||this;i.axis=e,i.element=i.paper.add("path"),i.className="AxisFill",i.isMeasured=!1,i.location=0,i.above=!1;var n=new nD;return i.fill=n.getFor("alternativeBackground"),i.fillOpacity=0,i.applyTheme(),i}return uP(e,t),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e.prototype.draw=function(){t.prototype.draw.call(this),this.__disabled||this.disabled||this.axis&&TP(this.startPosition)&&TP(this.endPosition)&&(this.fillPath=this.axis.getPositionRangePath(this.startPosition,this.endPosition),this.path=this.fillPath,this.isMeasured&&this.measure())},Object.defineProperty(e.prototype,"startPosition",{get:function(){return this.getPropertyValue("startPosition")},set:function(t){this.setPropertyValue("startPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){return this.getPropertyValue("endPosition")},set:function(t){this.setPropertyValue("endPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setPath=function(t){return!!this.setPropertyValue("path",t)&&(this.element.attr({d:t}),!0)},Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e}(qD);rS.registeredClasses.AxisFill=ST;var OT=function(t){function e(){var e=t.call(this)||this;e.className="Grid",e.element=e.paper.add("path"),e.location=.5,e.isMeasured=!1,e.above=!1;var i=new nD;return e.stroke=i.getFor("grid"),e.pixelPerfect=!0,e.strokeOpacity=.15,e.fill=DS(),e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(qD);rS.registeredClasses.Grid=OT,oE.push({relevant:aE.maybeXS,state:function(t,e){if(t instanceof OT){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var DT=function(t){function e(){var e=t.call(this)||this;return e.className="AxisLabel",e.isMeasured=!1,e.padding(10,10,10,10),e.location=.5,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(hE);rS.registeredClasses.AxisLabel=DT;var ET=function(t){function e(){var e=t.call(this)||this;e.className="Tick";var i=new nD;return e.fillOpacity=0,e.length=6,e.strokeOpacity=.2,e.stroke=i.getFor("grid"),e.isMeasured=!1,e.nonScalingStroke=!0,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"length",{get:function(){return this.disabled?0:this.getPropertyValue("length")},set:function(t){this.setPropertyValue("length",t,!0)},enumerable:!0,configurable:!0}),e}(qD);rS.registeredClasses.Tick=ET;var TT=function(t){function e(){var e=t.call(this)||this;return e.className="AxisTick",e.element=e.paper.add("path"),e.location=.5,e.above=!1,e.isMeasured=!1,e.pixelPerfect=!0,e.strokeOpacity=0,e.length=5,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(ET);rS.registeredClasses.AxisTick=TT;var kT=function(t){function e(){var e=t.call(this)||this;e._chart=new PC,e.className="AxisRenderer",e.minGridDistance=50,e.inside=!1,e.inversed=!1,e.tooltipLocation=.5,e.fullWidthTooltip=!1,e.cellStartLocation=0,e.cellEndLocation=1,e.minLabelPosition=0,e.maxLabelPosition=1,e.shouldClone=!1;var i=e.createChild(ZD);i.shouldClone=!1,i.layout="none",i.virtualParent=e,i.width=mP(100),i.height=mP(100),e.gridContainer=i,i.events.on("maxsizechanged",(function(){e.inited&&e.invalidateAxisItems()}),e,!1);var n=e.createChild(ZD);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",n.width=mP(100),n.height=mP(100),e.breakContainer=n;var r=e.createChild(ZD);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",r.width=mP(100),r.height=mP(100),e.bulletsContainer=r,e.line=e.createChild(CT),e.line.shouldClone=!1,e.line.strokeOpacity=0;var s=e.createChild(OT);s.shouldClone=!1,e.baseGrid=s;var o=e._disposers;return o.push(s),o.push(e.line),o.push(i),o.push(n),o.push(r),o.push(e._chart),e.ticks.template.disabled=!0,e.axisFills.template.disabled=!0,e.axisFills.template.interactionsEnabled=!1,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis},set:function(t){this.setAxis(t)},enumerable:!0,configurable:!0}),e.prototype.setAxis=function(t){this._axis=t,this.baseGrid.parent=t,this.line.parent=t,this.gridContainer.bind("opacity",t)},e.prototype.processRenderer=function(){this.events.on("sizechanged",this.updateTooltip,this,!1),this.events.on("positionchanged",this.updateTooltip,this,!1),this.labels.template.inside=this.inside,this.ticks.template.inside=this.inside},e.prototype.updateTooltip=function(){},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 0},enumerable:!0,configurable:!0}),e.prototype.positionItem=function(t,e){t&&t.moveTo(e)},e.prototype.positionToPoint=function(t,e){return{x:0,y:0}},e.prototype.positionToAngle=function(t){return 0},e.prototype.positionToCoordinate=function(t){var e=this.axis,i=e.axisFullLength;return e.renderer.inversed?(e.end-t)*i:(t-e.start)*i},e.prototype.updateGridContainer=function(){},e.prototype.getHeight=function(){var t=this.gridContainer;return t.parent?t.parent.pixelHeight:this.gridContainer.pixelHeight||0},e.prototype.getWidth=function(){var t=this.gridContainer;return t.parent?t.parent.pixelWidth:this.gridContainer.pixelWidth||0},e.prototype.coordinateToPosition=function(t,e){var i=this.axis,n=i.axisFullLength;return VP(i.renderer.inversed?i.end-t/n:t/n+i.start,5)},e.prototype.pointToPosition=function(t){return 0},e.prototype.getPositionRangePath=function(t,e){return""},e.prototype.invalidateAxisItems=function(){var t=this.axis;t&&t.invalidateDataItems()},e.prototype.updateGridElement=function(t,e,i){},e.prototype.updateTickElement=function(t,e,i){},e.prototype.updateBullet=function(t,e,i){},e.prototype.updateLabelElement=function(t,e,i,n){},e.prototype.updateFillElement=function(t,e,i){t.startPosition=e,t.endPosition=i},e.prototype.updateAxisLine=function(){},e.prototype.updateBaseGridElement=function(){},e.prototype.updateBreakElement=function(t){this.positionItem(t.startLine,t.startPoint),this.toggleVisibility(t.startLine,t.startPosition,0,1),this.positionItem(t.endLine,t.endPoint),this.toggleVisibility(t.endLine,t.endPosition,0,1)},Object.defineProperty(e.prototype,"minGridDistance",{get:function(){return this.getPropertyValue("minGridDistance")},set:function(t){this.setPropertyValue("minGridDistance",t)&&this.axis&&this.axis.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e.prototype.toggleVisibility=function(t,e,i,n){var r=this.axis,s=t.dataItem;s&&s instanceof wT&&(TP(s.minPosition)&&(i=s.minPosition),TP(s.maxPosition)&&(n=s.maxPosition));var o=r.start+(r.end-r.start)*(i-1e-4),a=r.start+(r.end-r.start)*(n+1e-4);t.disabled||(t.__disabled=e<o||e>a)},e.prototype.createBreakSprites=function(t){},Object.defineProperty(e.prototype,"axisFills",{get:function(){if(!this._axisFills){var t=this.createFill(this.axis);this._axisFills=new hS(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new aS(this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),e.prototype.createFill=function(t){return new ST(t)},Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.createGrid();this._grid=new hS(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new aS(this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),e.prototype.createGrid=function(){return new OT},Object.defineProperty(e.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,t.isMeasured=!1,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new hS(t),this._disposers.push(new aS(this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),e.prototype.createTick=function(){return new TT},Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();this._labels=new hS(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new aS(this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createLabel=function(){return new DT},Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t)&&this.axis&&this.axis.invalidate(),t?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(t){this.setPropertyValue("opposite",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(t){this.setPropertyValue("fullWidthTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(t){this.setPropertyValue("tooltipLocation2",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(t){this.setPropertyValue("cellStartLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(t){this.setPropertyValue("cellEndLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(t){this.setPropertyValue("inversed",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(t){this.setPropertyValue("minLabelPosition",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(t){this.setPropertyValue("maxLabelPosition",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},e.prototype.toAxisPosition=function(t){return t},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(ZD);rS.registeredClasses.AxisRenderer=kT;var IT=function(t){function e(){var e=t.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(ZD);rS.registeredClasses.AxisBullet=IT;var MT=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=mP(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return uP(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="horizontal"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.y=t.pixelY,e.height=t.axisLength}},e.prototype.toAxisPosition=function(t){var e=this.axis;if(e){var i=1-t,n=e.relativePositionSprite,r=e.pixelY;if(n?r=sO({x:0,y:this.pixelY},this.parent,n).y:n=e.parent,n)return 1-(i-r/n.innerHeight)/(e.axisLength/n.innerHeight)}return t},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){var i=e.title;i.valign="middle",e.height instanceof gP||(e.height=mP(100)),this.opposite?(i.rotation=90,this.line.toBack(),i.toFront()):(i.rotation=-90,i.toBack(),this.line.toFront())}},e.prototype.updateTooltip=function(){if(this.axis){var t=0,e=2e3,i=this.axisLength;this.opposite?this.inside&&(t=-2e3,e=2e3):this.inside||(t=-2e3,e=2e3),this.axis.updateTooltip("horizontal",{x:t,y:0,width:e,height:i})}},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredHeight-t.pixelPaddingTop-t.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:0,y:this.positionToCoordinate(t)}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.y,t.x)},e.prototype.coordinateToPosition=function(t,e){var i=this.axis,n=i.axisFullLength;return VP(i.renderer.inversed?1-i.start-t/n:t/n+(1-i.end),5)},e.prototype.getPositionRangePath=function(t,e){var i=NP(this.positionToCoordinate(t),0,this.axisLength),n=NP(this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),s=this.getWidth();return PE({x:0,y:Math.min(i,n),width:s,height:r},!0)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=vE({x:0,y:0})+bE({x:this.getWidth(),y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;try{this.axis.title.measuredWidth}catch(s){}n.x=sO({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?r*=t.inside?-1:1:r*=t.inside?1:-1,t.path=vE({x:0,y:0})+bE({x:r,y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=vE({x:0,y:0})+bE({x:0,y:this.axisLength})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getWidth(),n=this.axisLength,r=e.basePoint.y,s=this.baseGrid;if(r<-.2||r>n+.2)s.hide(0);else{var o=sO({x:0,y:0},this.gridContainer,s.parent).x;s.path=vE({x:0,y:0})+bE({x:i,y:0}),s.moveTo({x:o,y:r}),s.show(0)}},e.prototype.updateLabelElement=function(t,e,i,n){CP(n)||(n=t.location),e+=(i-e)*n,t.isMeasured=!t.inside;var r,s=this.positionToPoint(e),o=0,a=this.gridContainer.maxWidth;this.opposite?(t.inside?(r="right","left"==t.align&&(o=-a,r="left"),"center"==t.align&&(o=-a/2,r="middle")):r="left",s.x=0+o):(t.inside?(r="left","right"==t.align&&(o=a,r="right"),"center"==t.align&&(o=a/2,r="middle")):r="right",s.x=this.measuredWidth+o),0==t.rotation&&(t.horizontalCenter=r),this.positionItem(t,s),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,s=e.startPoint,o=e.endPoint,a=e.pixelMarginLeft,l=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;s.y=NP(s.y,-1,this.axisLength+1),o.y=NP(o.y,-1,this.axisLength+1),s.y==o.y&&(s.y<0||s.y>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1;var u=Math.abs(l-a);i.x=a,i.height=0,i.width=u,n.x=a,n.height=0,n.width=u,r.width=u,r.height=Math.abs(o.y-s.y),r.x=a,r.y=o.y},e.prototype.createBreakSprites=function(t){t.startLine=new GE,t.endLine=new GE;var e=new $E;e.setWavedSides(!0,!1,!0,!1),t.fillShape=e},e.prototype.positionToCoordinate=function(t){var e=this.axis,i=e.axisFullLength;return VP(e.renderer.inversed?(t-e.start)*i:(e.end-t)*i,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof IT&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.x=sO({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(kT);rS.registeredClasses.AxisRendererY=MT,oE.push({relevant:aE.widthS,state:function(t,e){if(t instanceof MT){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),oE.push({relevant:aE.widthXS,state:function(t,e){if(t instanceof MT){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var FT=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),e}(_T);rS.registeredClasses.ValueAxisBreak=FT;var AT=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(t){this.setValue("endValue",t)},enumerable:!0,configurable:!0}),e}(wT),jT=function(t){function e(){var e=t.call(this)||this;return e._stepDecimalPlaces=0,e._prevStepDecimalPlaces=0,e._adjustLabelPrecision=!0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.setPropertyValue("adjustLabelPrecision",!0),e.setPropertyValue("extraTooltipPrecision",0),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return uP(e,t),e.prototype.fillRule=function(t){var e=t.value,i=t.component;t.axisFill.disabled||(VP(e/i.step/2,5)==Math.round(e/i.step/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new AT},e.prototype.createAxisBreak=function(){return new FT},e.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(0!=this._start&&this.dispatchImmediately("startchanged"),1!=this._end&&this.dispatchImmediately("endchanged"),0==this._start&&1==this._end||this.dispatchImmediately("startendchanged")):0==this._start&&1==this._end||(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},e.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var t=this.series.getIndex(0),e=t.startIndex;if(t.dataItems.length>0){e>0&&e--;var i=t.endIndex;i<t.dataItems.length&&i++;for(var n=function(t){var e={},i={};r.series.each((function(n){if(!n.excludeFromTotal){var r=n.dataItems.getIndex(t);r&&NC(r.values,(function(t){var n=r.values[t].workingValue;TP(n)&&(TP(e[t])?e[t]+=Math.abs(n):e[t]=Math.abs(n),TP(i[t])?i[t]+=n:i[t]=n)}))}})),r.series.each((function(n){if(!n.excludeFromTotal){var r=n.dataItems.getIndex(t);r&&NC(r.values,(function(t){var n=r.values[t].workingValue;TP(n)&&(r.setCalculatedValue(t,e[t],"total"),r.setCalculatedValue(t,100*n/e[t],"totalPercent"),r.setCalculatedValue(t,i[t],"sum"))}))}}))},r=this,s=e;s<i;++s)n(s)}}},e.prototype.validate=function(){this.axisLength<=0||(t.prototype.validate.call(this),this.getMinMax(),this.fixAxisBreaks(),this.calculateZoom(),this.validateAxisElements(),this.validateAxisRanges(),this.validateBreaks(),this.hideUnusedDataItems(),this.renderer.invalidateLayout())},e.prototype.calculateZoom=function(){if(TP(this.min)&&TP(this.max)){var t=this.positionToValue(this.start),e=this.positionToValue(this.end),i=this.adjustDifference(t,e),n=this.adjustMinMax(t,e,i,this._gridCount,!0),r=function(t){var e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(n.step);this._stepDecimalPlaces=r,t=VP(t,r),e=VP(e,r);var s=(n=this.adjustMinMax(t,e,i,this._gridCount,!0)).step;if(this.syncWithAxis){var o=this.getCache(t+"-"+e);TP(o)&&(s=o)}else t=n.min,e=n.max;this._minZoomed==t&&this._maxZoomed==e&&this._step==s||(this._minZoomed=t,this._maxZoomed=e,this._step=s,this.dispatchImmediately("selectionextremeschanged"))}},e.prototype.validateAxisElements=function(){var t=this;if(TP(this.max)&&TP(this.min)){var e=this.minZoomed-2*this._step;if(this.logarithmic)Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E):0==(e=Math.floor(this.minZoomed/this._step)*this._step)&&(e=this.minZoomed);else e=Math.floor(e/this._step)*this._step;var i=this._maxZoomed+this._step;this.resetIterators();var n=this._dataItemsIterator,r=0,s=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;for(this._prevStepDecimalPlaces=this._stepDecimalPlaces;e<=i;){if(!this.isInBreak(e)){var o=n.find((function(t){return t.value===e}));o.__disabled&&(o.__disabled=!1),this.appendDataItem(o),o.axisBreak=void 0,(o.value!=e||s)&&(o.value=e,o.text=this.formatLabel(e),o.label&&o.label.invalid&&o.label.validate(),o.value>=this.min&&o.value<=this.max&&o.label&&("Y"==this.axisLetter&&o.label.measuredWidth>this.ghostLabel.measuredWidth||"X"==this.axisLetter&&o.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=o.label.currentText,this.ghostLabel.validate())),this.validateDataElement(o)}if(r++,this.logarithmic)Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E+r):e+=this._step;else e+=this._step;var a=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(a<1){var l=Math.round(Math.abs(Math.log(Math.abs(a))*Math.LOG10E))+2;e=VP(e,l)}}var u=this._axisBreaks;if(u){var h=this.renderer;KC(u.iterator(),(function(e){if(e.breakSize>0&&GP(e.startPoint,e.endPoint)>h.minGridDistance)for(var i=e.adjustedMin;i<=e.adjustedMax;){if(i>=e.adjustedStartValue&&i<=e.adjustedEndValue){var r=n.find((function(t){return t.value===i}));r.__disabled&&(r.__disabled=!1),t.appendDataItem(r),r.axisBreak=e,r.value!=i&&(r.value=i,r.text=t.formatLabel(i),r.label&&r.label.invalid&&r.label.validate()),t.validateDataElement(r)}i+=e.adjustedStep}}))}}},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var i=this.renderer,n=e.value,r=e.endValue,s=this.valueToPosition(n);e.position=s;var o=s,a=this.valueToPosition(n+this._step);TP(r)&&(a=o=this.valueToPosition(r)),e.point=i.positionToPoint(s);var l=e.tick;l&&!l.disabled&&i.updateTickElement(l,s,o);var u=e.grid;u&&!u.disabled&&i.updateGridElement(u,s,o);var h=e.label;h&&!h.disabled&&i.updateLabelElement(h,s,o);var c=e.axisFill;c&&!c.disabled&&(i.updateFillElement(c,s,a),e.isRange||this.fillRule(e)),e.bullet&&i.updateBullet(e.bullet,s,o);var p=e.mask;p&&i.updateFillElement(p,s,a)},e.prototype.formatLabel=function(t){return this.adjustLabelPrecision&&0!=t?this.numberFormatter.format(t,void 0,this._stepDecimalPlaces):this.numberFormatter.format(t)},Object.defineProperty(e.prototype,"basePoint",{get:function(){var t=this.baseValue,e=this.valueToPosition(t);return this.renderer.positionToPoint(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseValue",{get:function(){var t=this._baseValue;return this.logarithmic&&(t=this.min),this._adapterO?this._adapterO.apply("baseValue",t):t},set:function(t){this._baseValue=t,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),e.prototype.anyToPosition=function(t){return this.valueToPosition(t)},e.prototype.valueToPoint=function(t){var e=this.valueToPosition(t),i=this.renderer.positionToPoint(e),n=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:n}},e.prototype.anyToPoint=function(t){return this.valueToPoint(t)},e.prototype.valueToPosition=function(t){if(TP(t)){var e=this.min,i=this.max;if(TP(e)&&TP(i)){var n=this._difference,r=this._axisBreaks;r&&r.length>0&&$C(r.iterator(),(function(n){var r=n.adjustedStartValue,s=n.adjustedEndValue;if(TP(r)&&TP(s)){if(t<r)return!1;if(WP({start:r,end:s},{start:e,end:i})){r=Math.max(r,e),s=Math.min(s,i);var o=n.breakSize;t>s?e+=(s-r)*(1-o):t<r||(t=r+(t-r)*o)}}return!0}));return this.logarithmic?(Math.log(t)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)/(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E):(t-e)/n}}return 0},e.prototype.invalidateLabels=function(){t.prototype.invalidateLabels.call(this),this.dataItems&&(this.dataItems.each((function(t){t.value=void 0})),this.invalidate())},e.prototype.positionToValue=function(t){t=VP(t,10);var e=this.min,i=this.max;if(TP(e)&&TP(i)){var n=i-e,r=null,s=this._axisBreaks;return s&&s.length>0&&$C(s.iterator(),(function(s){var o=s.startPosition,a=s.endPosition,l=s.adjustedStartValue,u=s.adjustedEndValue;if(TP(l)&&TP(u)){if(l>i)return!1;if(WP({start:l,end:u},{start:e,end:i})){l=zP(l,e),u=UP(u,i);var h=s.breakSize;if(n-=(u-l)*(1-h),t>a)e+=(u-l)*(1-h);else if(!(t<o))return r=l+(t-o)/(a-o)*(u-l),!1}return!0}})),TP(r)||(r=this.logarithmic?Math.pow(Math.E,(t*(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)+Math.log(this.min)*Math.LOG10E)/Math.LOG10E):t*n+e),r}},e.prototype.xToValue=function(t){return this.positionToValue(this.pointToPosition({x:t,y:0}))},e.prototype.yToValue=function(t){return this.positionToValue(this.pointToPosition({x:0,y:t}))},e.prototype.pointToPosition=function(t){return this.renderer instanceof MT?1-this.renderer.pointToPosition(t):this.renderer.pointToPosition(t)},e.prototype.animateMinMax=function(t,e){return this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:t},{property:"_maxAdjusted",from:this._maxAdjusted,to:e}],this.rangeChangeDuration,this.rangeChangeEasing)},e.prototype.getMinMax=function(){var t=this;this.updateGridCount();var e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;if(TP(this._minDefined)&&TP(this._maxDefined)||(this.series.each((function(n){if(!n.ignoreMinMax){var r=n.min(t);TP(r)&&r<e&&(e=r);var s=n.max(t);TP(s)&&s>i&&(i=s)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(t){if(!t.ignoreMinMax){var n=UP(t.value,t.endValue),r=zP(t.value,t.endValue);(n<e||!TP(e))&&(e=n),(r>i||!TP(i))&&(i=r)}}))),this.logarithmic&&e<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0),0==e&&0==i&&(i=.9,e=-.9),TP(this._minDefined)&&(e=this._minDefined),TP(this._maxDefined)&&(i=this._maxDefined),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),TP(e)&&TP(i)){this._minReal=e,this._maxReal=i,e==Number.POSITIVE_INFINITY&&(e=void 0),i==Number.NEGATIVE_INFINITY&&(i=void 0);var n=this.adjustDifference(e,i);if(e=this.fixMin(e),(i=this.fixMax(i))-e<=1/Math.pow(10,15)){if(i-e!=0)this._deltaMinMax=(i-e)/2;else{var r=Math.log(Math.abs(i))*Math.LOG10E,s=Math.pow(10,Math.floor(r));s/=10,this._deltaMinMax=s}e-=this._deltaMinMax,i+=this._deltaMinMax}e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax;var o=this.strictMinMax;TP(this._maxDefined)&&(o=!0);var a=this.adjustMinMax(e,i,n,this._gridCount,o);if(e=a.min,n=(i=a.max)-e,a=this.adjustMinMax(e,i,i-e,this._gridCount,!0),e=a.min,i=a.max,this.strictMinMax&&(e=TP(this._minDefined)?this._minDefined:this._minReal,(i=TP(this._maxDefined)?this._maxDefined:this._maxReal)-e<=1e-8&&(e-=this._deltaMinMax,i+=this._deltaMinMax),e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),this._step=a.step,(this._minAdjusted!=e||this._maxAdjusted!=i)&&TP(e)&&TP(i)){var l=this._minMaxAnimation;if(this._extremesChanged&&TP(this._minAdjusted)&&TP(this._maxAdjusted)&&this.inited){if(l&&!l.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._finalMin=e,this._finalMax=i,(l=this.animateMinMax(e,i))&&!l.isFinished()?(l.events.on("animationprogress",this.validateDataItems,this),l.events.on("animationended",(function(){t.series.each((function(t){t.validate()})),t.validateDataItems(),t.handleSelectionExtremesChange()})),this._minMaxAnimation=l):this.series.each((function(t){t.validate()})),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(l&&!l.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._minAdjusted=e,this._maxAdjusted=i,this._finalMin=e,this._finalMax=i,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged")}}this._extremesChanged=!1,this._difference=this.adjustDifference(e,i)}},e.prototype.fixMin=function(t){return t},e.prototype.fixMax=function(t){return t},e.prototype.adjustMinMax=function(t,e,i,n,r){n<=1&&(n=1),n=Math.round(n);var s=t,o=e;0===i&&(i=Math.abs(e));var a=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(a)),u=l/=10;r&&(u=0),this.logarithmic?(t<=0&&(t=this.baseValue),t==1/0&&(t=1),e==-1/0&&(e=10),t=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),e=Math.pow(10,Math.ceil(Math.log(Math.abs(e))*Math.LOG10E))):(r?(t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l):(t=Math.ceil(t/l)*l-u,e=Math.floor(e/l)*l+u),t<0&&s>=0&&(t=0),e>0&&o<=0&&(e=0)),a=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(a)),l/=10;var h=Math.ceil(i/n/l)*l,c=Math.pow(10,Math.floor(Math.log(Math.abs(h))*Math.LOG10E)),p=Math.ceil(h/c);p>5?p=10:p<=5&&p>2&&(p=5),h=Math.ceil(h/(c*p))*c*p,this.maxPrecision<Number.MAX_VALUE&&h!=RP(h,this.maxPrecision)&&(h=RP(h,this.maxPrecision));var d=0;if(c<1&&(h=VP(h,d=Math.round(Math.abs(Math.log(Math.abs(c))*Math.LOG10E))+1)),!this.logarithmic){var f=Math.floor(t/h);t=VP(h*f,d);var g=void 0;(g=r?Math.floor(e/h):Math.ceil(e/h))==f&&g++,(e=VP(h*g,d))<o&&(e+=h),t>s&&(t-=h)}return{min:t,max:e,step:h}},Object.defineProperty(e.prototype,"min",{get:function(){var t=this._minAdjusted;return TP(t)||(t=this._minDefined),t},set:function(t){this._minDefined!=t&&(this._minDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(t){this.setPropertyValue("extraMin",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(t){this.setPropertyValue("extraMax",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){var t=this._maxAdjusted;return TP(t)||(t=this._maxDefined),t},set:function(t){this._maxDefined!=t&&(this._maxDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(t){this.setPropertyValue("adjustLabelPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.registerSeries=function(e){return new wC([t.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},e.prototype.handleSelectionExtremesChange=function(){var t,e,i=this,n=!0;if(KC(this.series.iterator(),(function(r){if(!r.ignoreMinMax&&!r.isHidden){r.visible&&!r.isHiding&&(n=!1);var s=r.selectionMin(i),o=r.selectionMax(i);TP(s)&&(!TP(t)||s<t)&&(t=s),TP(o)&&(!TP(e)||o>e)&&(e=o)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(t){if(!t.ignoreMinMax){var i=UP(t.value,t.endValue),n=zP(t.value,t.endValue);i<e&&(e=i),n>e&&(e=n)}})),TP(this._minDefined)?t=this.strictMinMax?this._minDefined:this.min:this.strictMinMax&&(t=this._minReal),TP(this._maxDefined)?e=this.strictMinMax?this._maxDefined:this.max:this.strictMinMax&&(e=this._maxReal),t==e){t-=this._deltaMinMax,e+=this._deltaMinMax;var r=this.adjustMinMax(t,e,0,this._gridCount,this.strictMinMax);t=r.min,e=r.max}var s=this.adjustDifference(t,e),o=this.adjustMinMax(t,e,s,this._gridCount);t=o.min,e=o.max,t-=(e-t)*this.extraMin,e+=(e-t)*this.extraMax,t=NP(t,this.min,this.max),e=NP(e,this.min,this.max),s=this.adjustDifference(t,e),o=this.adjustMinMax(t,e,s,this._gridCount,!0),t=o.min,e=o.max,this.strictMinMax&&(t=zP(t,this._minDefined),e=UP(e,this._maxDefined));var a=o.step;this.syncWithAxis&&(o=this.syncAxes(t,e,a),t=o.min,e=o.max,this.invalidate()),a=o.step,this._difference=this.adjustDifference(this.min,this.max);var l=this.valueToPosition(t),u=this.valueToPosition(e);n&&!this.syncWithAxis&&(l=0,u=1);var h=0;this.syncWithAxis?(h=5,this.setCache(t+"-"+e,a)):(this._step=a,this._minZoomed=t,this._maxZoomed=e),this.keepSelection||this.zoom({start:l,end:u},!1,!1,h)},Object.defineProperty(e.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(t){this.setPropertyValue("strictMinMax",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(t){this.setPropertyValue("logarithmic",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(t){this.setPropertyValue("keepSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(t){this.setPropertyValue("includeRangesInMinMax",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(t){this.setPropertyValue("maxPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(t){this.setPropertyValue("extraTooltipPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.handleExtremesChange=function(){var t=this;if(this._extremesChanged=!0,this.getMinMax(),this.ghostLabel){this.dataItems.each((function(e){e.label&&e.label.pixelWidth>0&&(t.ghostLabel.text=e.label.currentText)}))}},e.prototype.getX=function(t,e,i,n,r){return this.renderer.positionToPoint(this.getPositionX(t,e,i,n,r)).x},e.prototype.getPositionX=function(t,e,i,n,r){var s=t.getWorkingValue(e);CP(n)||(n="valueX");var o=t.getValue(n,"stack");TP(s)||(s=this.baseValue,this.logarithmic&&o>0&&(s=0));var a=this.valueToPosition(s+o);return r&&(a=NP(a,r.start,r.end)),a},e.prototype.getY=function(t,e,i,n,r){return this.renderer.positionToPoint(this.getPositionY(t,e,i,n,r)).y},e.prototype.getPositionY=function(t,e,i,n,r){var s=t.getWorkingValue(e);CP(n)||(n="valueY");var o=t.getValue(n,"stack");TP(s)||(s=this.baseValue,this.logarithmic&&o>0&&(s=0));var a=this.valueToPosition(s+o);return r&&(a=NP(a,r.start,r.end)),a},e.prototype.getAngle=function(t,e,i,n,r){var s=t.getWorkingValue(e),o=t.getValue(n,"stack");TP(s)||(s=this.baseValue);var a=this.valueToPosition(s+o);return r&&(a=NP(a,r.start,r.end)),this.positionToAngle(a)},e.prototype.getAnyRangePath=function(t,e,i){var n=this.valueToPosition(t),r=this.valueToPosition(e);return this.getPositionRangePath(n,r)},e.prototype.getTooltipText=function(t){var e=VP(this.positionToValue(t),this._stepDecimalPlaces+this.extraTooltipPrecision),i=this.tooltip.numberFormatter.format(e);return this._adapterO?this._adapterO.apply("getTooltipText",i):i},e.prototype.zoomToValues=function(t,e,i,n){var r=(t-this.min)/(this.max-this.min),s=(e-this.min)/(this.max-this.min);this.zoom({start:r,end:s},i,n)},Object.defineProperty(e.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:zP(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:UP(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;i&&i.length>0&&i.each((function(t){var i=t.adjustedStartValue,n=t.adjustedEndValue,r=n-i,s=Math.ceil(r*t.breakSize)*e._gridCount/(e.max-e.min),o=e.adjustMinMax(i,n,r,s,!0);t.adjustedStep=o.step,t.adjustedMin=o.min,t.adjustedMax=o.max})),this._difference=this.adjustDifference(this.min,this.max)},e.prototype.getPositionLabel=function(t){var e=this.positionToValue(t);return this.numberFormatter.format(e)},e.prototype.showTooltipAt=function(t){this.showTooltipAtPosition(this.valueToPosition(t))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},Object.defineProperty(e.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(t){var e=this;this.setPropertyValue("syncWithAxis",t,!0)&&t&&(this._disposers.push(t.events.on("extremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(t.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",(function(){e.clearCache(),e._disposers.push(rS.events.once("exitframe",(function(){e.handleSelectionExtremesChange()})))}),this,!1))},enumerable:!0,configurable:!0}),e.prototype.syncAxes=function(t,e,i){var n=this.syncWithAxis;if(n){TP(t)||(t=this.min),TP(e)||(e=this.max),TP(i)||(i=this._step);var r=Math.round((n.maxZoomed-n.minZoomed)/n.step),s=Math.round((e-t)/i);if(TP(r)&&TP(s))for(var o=!1,a=0,l=.01*(e-t),u=t,h=e,c=i;1!=o;)if(o=this.checkSync(u,h,c,r),++a>1e3&&(o=!0),o)t=u,e=h,i=c;else{a/3==Math.round(a/3)?(u=t-l*a,t>=0&&u<0&&(u=0)):(h=e+l*a)<=0&&h>0&&(h=0);var p=this.adjustMinMax(u,h,h-u,this._gridCount,!0);u=p.min,h=p.max,c=p.step}}return{min:t,max:e,step:i}},e.prototype.checkSync=function(t,e,i,n){for(var r=(e-t)/i,s=1;s<n;s++)if(VP(r/s,1)==n||r*s==n)return!0;return!1},e.prototype.processConfig=function(e){e&&CP(e.syncWithAxis)&&EP(e.syncWithAxis)&&(this.map.hasKey(e.syncWithAxis)?e.syncWithAxis=this.map.getKey(e.syncWithAxis):(this.processingErrors.push('[ValueAxis] No axis with id "'+e.syncWithAxis+'" found for `syncWithAxis`'),delete e.xAxis)),t.prototype.processConfig.call(this,e)},e}(PT);rS.registeredClasses.ValueAxis=jT,rS.registeredClasses.ValueAxisDataItem=AT;var LT=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=mP(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return uP(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="vertical"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.x=t.pixelX,e.width=t.axisLength}},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof gP||(e.width=mP(100)),this.line;var i=e.title;i.rotation=0,i.align="center",this.opposite?(this.line.toFront(),i.toBack()):(i.toFront(),this.toBack(),this.line.toBack())}},e.prototype.updateTooltip=function(){if(this.axis){var t=this.line.pixelX,e=this.line.pixelY,i=this.axisLength,n=1e3;this.opposite?this.inside||(e=-1e3,n=1e3):this.inside&&(e=-1e3,n=1e3),this.axis.updateTooltip("vertical",{x:t,y:e,width:i,height:n})}},e.prototype.updateLabelElement=function(t,e,i,n){CP(n)||(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);t.isMeasured=!t.inside;var s,o=0,a=this.gridContainer.maxHeight;this.opposite?(t.inside?(s="top","bottom"==t.valign&&(o=a,s="bottom"),"middle"==t.valign&&(o=a/2,s="middle")):s="bottom",r.y=o):(t.inside?(s="bottom","top"==t.valign&&(o=-a,s="top"),"middle"==t.valign&&(o=-a/2,s="middle")):s="top",r.y+=o),0==t.rotation&&(t.verticalCenter=s),this.positionItem(t,r),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredWidth-t.pixelPaddingRight-t.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:this.positionToCoordinate(t),y:0}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.x,t.y)},e.prototype.getPositionRangePath=function(t,e){var i=NP(this.positionToCoordinate(t),0,this.axisLength),n=NP(this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),s=this.getHeight();return PE({x:Math.min(i,n),y:0,width:r,height:s},!0)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,s=e.startPoint,o=e.endPoint,a=e.pixelMarginLeft,l=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;s.x=NP(s.x,-1,this.axisLength+1),o.x=NP(o.x,-1,this.axisLength+1),s.x==o.x&&(s.x<0||s.x>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1,i.y=a,i.width=0,i.height=l,n.y=a,n.width=0,n.height=l,r.height=l,r.width=Math.abs(o.x-s.x),r.y=a,r.x=s.x},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=vE({x:0,y:0})+bE({x:0,y:this.getHeight()}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;n.y=sO({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?r*=t.inside?1:-1:r*=t.inside?-1:1,t.path=vE({x:0,y:0})+bE({x:0,y:r}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=vE({x:0,y:0})+bE({x:this.axisLength,y:0})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getHeight(),n=this.axisLength,r=this.baseGrid,s=e.basePoint.x;if(s<-.2||s>n+.2)r.hide(0);else{var o=sO({x:0,y:0},this.gridContainer,r.parent).y;r.path=vE({x:0,y:0})+bE({x:0,y:i}),r.moveTo({x:s,y:o}),r.show(0)}},e.prototype.createBreakSprites=function(t){t.startLine=new GE,t.endLine=new GE;var e=new $E;e.setWavedSides(!1,!0,!1,!0),t.fillShape=e},e.prototype.toAxisPosition=function(t){var e=t,i=this.axis;if(i){var n=i.relativePositionSprite,r=i.pixelX;if(n?r=sO({x:this.pixelX,y:0},this.parent,n).x:n=i.parent,n)return(e-r/n.innerWidth)/(i.axisLength/n.innerWidth)}return t},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof IT&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.y=sO({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(kT);rS.registeredClasses.AxisRendererX=LT,oE.push({relevant:aE.heightXS,state:function(t,e){if(t instanceof LT){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),oE.push({relevant:aE.heightXXS,state:function(t,e){if(t instanceof LT){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var VT=function(t){function e(){var e=t.call(this)||this;e.className="HeatLegend",e.markerContainer=e.createChild(ZD),e.markerContainer.shouldClone=!1,e.markerCount=1;var i=new cE;return i.minHeight=20,i.minWidth=20,i.interactionsEnabled=!1,i.fillOpacity=1,i.cornerRadius(0,0,0,0),e.markerContainer.minHeight=20,e.markerContainer.minWidth=20,e.orientation="horizontal",e.markers=new hS(i),e._disposers.push(new aS(e.markers)),e._disposers.push(e.markers.template),e.applyTheme(),e}return uP(e,t),e.prototype.getMinFromRules=function(t){var e,i=this.series;if(i)return $C(i.heatRules.iterator(),(function(i){return i.property!=t||(e=i.min,!1)})),e},e.prototype.getMaxFromRules=function(t){var e,i=this.series;if(i)return KC(i.heatRules.iterator(),(function(i){return i.property!=t||(e=i.max,!1)})),e},e.prototype.validate=function(){t.prototype.validate.call(this),this.valueAxis.renderer.inversed=this.reverseOrder;var e=this.series,i=this.minColor,n=this.maxColor;if(CP(i)||(i=ES(this.getMinFromRules("fill"))),CP(n)||(n=ES(this.getMaxFromRules("fill"))),e){var r=e.fill;!CP(i)&&r instanceof OS&&(i=r),!CP(n)&&r instanceof OS&&(n=r)}CP(n)||(n=ES(this.getMaxFromRules("fill")));var s=xP(this.getMinFromRules("fillOpacity"));TP(s)||(s=1);var o=xP(this.getMaxFromRules("fillOpacity"));TP(o)||(o=1);var a=xP(this.getMinFromRules("strokeOpacity"));TP(a)||(a=1);var l=xP(this.getMaxFromRules("strokeOpacity"));TP(l)||(l=1);for(var u=ES(this.getMinFromRules("stroke")),h=ES(this.getMaxFromRules("stroke")),c=0;c<this.markerCount;c++){var p=this.markers.getIndex(c);if(p||((p=this.markers.create()).parent=this.markerContainer,p.height=mP(100),p.width=mP(100)),1==this.markerCount){var d=new OD;if(this.reverseOrder?(d.addColor(n,o),d.addColor(i,s)):(d.addColor(i,s),d.addColor(n,o)),"vertical"==this.orientation&&(d.rotation=-90),p.fill=d,CP(u)&&CP(h)){var f=new OD;this.reverseOrder?(f.addColor(h,l),f.addColor(u,a)):(f.addColor(u,a),f.addColor(h,l)),"vertical"==this.orientation&&(f.rotation=-90),p.stroke=f}}else{var g=c;this.reverseOrder&&(g=this.markerCount-c-1);var m=new OS(wS(i.rgb,n.rgb,g/this.markerCount));p.fill=m;var y=s+(o-s)*g/this.markerCount;if(p.fillOpacity=y,CP(u)&&CP(h)){var v=new OS(wS(u.rgb,h.rgb,g/this.markerCount));p.stroke=v;var b=a+(l-a)*g/this.markerCount;p.strokeOpacity=b}}}var _=this.valueAxis.renderer;this.markerCount>1&&("horizontal"==this.orientation?_.minGridDistance=this.measuredWidth/this.markerCount:_.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate();c=this.markerCount;for(var x=this.markers.length;c<x;c++)this.markers.getIndex(c).parent=void 0},Object.defineProperty(e.prototype,"minColor",{get:function(){return this.getPropertyValue("minColor")},set:function(t){t instanceof OS||(t=ES(t)),this.setColorProperty("minColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxColor",{get:function(){return this.getPropertyValue("maxColor")},set:function(t){kP(t)||(t=ES(t)),this.setColorProperty("maxColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerCount",{get:function(){return this.getPropertyValue("markerCount")},set:function(t){this.setPropertyValue("markerCount",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(t){this.setPropertyValue("minValue",t),this.valueAxis.min=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(t){this.setPropertyValue("maxValue",t),this.valueAxis.max=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.markerContainer,i=this.valueAxis;"horizontal"==t?(CP(this.width)||(this.width=200),this.height=void 0,i.width=mP(100),i.height=void 0,i.tooltip.pointerOrientation="vertical",this.layout="vertical",e.width=mP(100),e.height=void 0,i.renderer instanceof LT||(i.renderer=new LT)):(CP(this.height)||(this.height=200),this.width=void 0,this.layout="horizontal",e.width=void 0,e.height=mP(100),i.height=mP(100),i.width=void 0,i.tooltip.pointerOrientation="horizontal",i.renderer instanceof MT||(i.renderer=new MT),i.renderer.inside=!0,i.renderer.labels.template.inside=!0,this.markerContainer.reverseOrder=!0);var n=i.renderer;n.grid.template.disabled=!0,n.axisFills.template.disabled=!0,n.baseGrid.disabled=!0,n.labels.template.padding(2,3,2,3),n.minHeight=void 0,n.minWidth=void 0,this.markerContainer.layout=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueAxis",{get:function(){return this._valueAxis||(this.valueAxis=this.createChild(jT),this.valueAxis.shouldClone=!1),this._valueAxis},set:function(t){this._valueAxis=t,t.parent=this,t.strictMinMax=!0,this.orientation=this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},set:function(t){var e=this;this._series=t;var i="value";try{var n=t.heatRules.getIndex(0).dataField;n&&(i=n)}catch(r){}this.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].high),t.dataItem.events.on("calculatedvaluechanged",(function(n){e.updateMinMax(t.dataItem.values[i].low,t.dataItem.values[i].high)}),void 0,!1),t.heatRules.events.on("inserted",this.invalidate,this,!1),t.heatRules.events.on("removed",this.invalidate,this,!1)},enumerable:!0,configurable:!0}),e.prototype.updateMinMax=function(t,e){var i=this.valueAxis;TP(this.minValue)||(i.min=t,i.invalidate()),TP(this.maxValue)||(i.max=e,i.invalidate())},e.prototype.processConfig=function(e){if(e&&CP(e.series)&&EP(e.series)&&EP(e.series))if(this.map.hasKey(e.series))e.series=this.map.getKey(e.series);else{var i=e.series,n=this.map.events.on("insertKey",(function(t){t.key==i&&(this.series=t.newValue,n.dispose())}),this);this._disposers.push(n),delete e.series}t.prototype.processConfig.call(this,e)},e}(ZD);rS.registeredClasses.HeatLegend=VT;var RT=function(t){function e(){var e=t.call(this)||this;e.className="Grip";var i=new nD;e.layout="absolute",e.padding(10,10,10,10),e.margin(3,3,3,3),e.background.fillOpacity=.3,e.background.cornerRadius(10,10,10,10);var n=new qD;n.element=e.paper.add("path");var r=vE({x:-6,y:0});return r+=bE({x:6,y:0}),r+=vE({x:-8,y:-6}),r+=bE({x:0,y:-12}),r+=bE({x:8,y:-6}),r+=vE({x:-8,y:6}),r+=bE({x:0,y:12}),r+=bE({x:8,y:6}),n.path=r,n.strokeWidth=2,n.fillOpacity=0,n.pixelPerfect=!0,n.padding(0,4,0,4),n.stroke=i.getFor("text"),n.strokeOpacity=.7,n.align="center",n.valign="middle",e.icon=n,e.label.dispose(),e.label=void 0,e.position="right",e.autoHideDelay=3e3,e.events.on("shown",(function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose(),e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout((function(){e.hide()}),e.autoHideDelay))})),e.events.on("down",(function(t){e._autoHideTimeout&&e._autoHideTimeout.dispose()})),e.events.on("out",(function(t){e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout((function(){e.hide()}),e.autoHideDelay))})),e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){if(this.setPropertyValue("position",t))switch(t){case"left":this.align="left",this.valign="middle",this.horizontalCenter="left",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=mP(30);break;case"right":this.align="right",this.valign="middle",this.horizontalCenter="right",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=mP(30);break;case"top":this.align="center",this.valign="top",this.horizontalCenter="middle",this.verticalCenter="top",this.icon.rotation=90,this.width=mP(30),this.height=void 0;break;case"bottom":this.align="center",this.valign="bottom",this.horizontalCenter="middle",this.verticalCenter="bottom",this.icon.rotation=90,this.width=mP(30),this.height=void 0;break;default:this.align="center",this.valign="middle",this.horizontalCenter="middle",this.verticalCenter="middle",this.icon.rotation=90,this.width=mP(30),this.height=void 0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoHideDelay",{get:function(){return this.getPropertyValue("autoHideDelay")},set:function(t){this.setPropertyValue("autoHideDelay",t)},enumerable:!0,configurable:!0}),e}(pE);rS.registeredClasses.Grip=RT;var NT=function(t){function e(){var e=t.call(this)||this;return e.className="ChartDataItem",e.applyTheme(),e}return uP(e,t),e}(lE),BT=function(t){function e(){var i=t.call(this)||this;if(i._legend=new PC,i.constructor===e)throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");i.className="Chart";var n=new hE;i.titles=new hS(n),i._disposers.push(new aS(i.titles)),i._disposers.push(n),i.width=mP(100),i.height=mP(100),i.layout="vertical";var r=i.createChild(ZD);r.shouldClone=!1,r.layout="vertical",r.width=mP(100),r.height=mP(100),i.chartAndLegendContainer=r;var s=r.createChild(ZD);return s.shouldClone=!1,s.width=mP(100),s.height=mP(100),i.chartContainer=s,i.showOnInit=!0,i._disposers.push(i._legend),i.titles.events.on("inserted",(function(t){i.processTitle(t),i.updateReaderTitleReferences()}),i,!1),i.titles.events.on("removed",(function(t){i.updateReaderTitleReferences()}),i,!1),i.role="region",i.defaultState.transitionDuration=1,i.applyTheme(),i}return uP(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),CP(this.readerTitle)||(this.readerTitle=this.language.translate("Chart"))},e.prototype.draw=function(){this.fixLayout(),t.prototype.draw.call(this)},e.prototype.fixLayout=function(){var t=this.legend;if(t){var e=this.chartAndLegendContainer,i=this.chartContainer;switch(i.x=void 0,i.y=void 0,t.x=void 0,t.y=void 0,t.position){case"left":e.layout="horizontal",t.toBack();break;case"right":e.layout="horizontal",t.toFront();break;case"top":e.layout="vertical",t.toBack();break;case"bottom":e.layout="vertical",t.toFront()}}},e.prototype.feedLegend=function(){},e.prototype.processTitle=function(t){var e=t.newValue;return e.parent=this,e.toBack(),e.shouldClone=!1,e.align="center",e.uidAttr(),e},e.prototype.updateReaderTitleReferences=function(){if(this.titles.length){var t=[];KC(this.titles.iterator(),(function(e){t.push(e.uid)})),this.setSVGAttribute({"aria-labelledby":t.join(" ")})}else this.removeSVGAttribute("aria-labelledby")},Object.defineProperty(e.prototype,"legend",{get:function(){return this._legend.get()},set:function(t){this.setLegend(t)},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(t){var e=this;this._legend.get()!==t&&(t?(t.maxWidth=200,t.parent=this.chartAndLegendContainer,this._legend.set(t,t.events.on("propertychanged",(function(t){"position"==t.property&&e.fixLayout()}),void 0,!1))):this._legend.reset(),this.feedLegend())},e.prototype.dispose=function(){this.legend&&this.legend.dispose(),t.prototype.dispose.call(this)},e.prototype.processConfig=function(e){e&&CP(e.legend)&&!CP(e.legend.type)&&(e.legend.type="Legend"),t.prototype.processConfig.call(this,e)},e.prototype.copyFrom=function(e){this.titles.copyFrom(e.titles),this.chartContainer.copyFrom(e.chartContainer),e.legend&&(this.legend=e.legend.clone(),this.legend.removeChildren()),t.prototype.copyFrom.call(this,e)},Object.defineProperty(e.prototype,"dragGrip",{get:function(){var t=this;if(!this._dragGrip){var e=this.tooltipContainer.createChild(RT);e.align="right",e.valign="middle",e.hide(0),e.events.on("down",(function(e){e.touch&&(t.interactionsEnabled=!1)})),e.events.on("up",(function(e){t.interactionsEnabled=!0})),this.events.on("down",(function(t){t.touch&&e.show()})),this._dragGrip=e}return this._dragGrip},set:function(t){this._dragGrip=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this.parent.focusable},set:function(t){this.parent.focusable=!0},enumerable:!0,configurable:!0}),e}(uE);rS.registeredClasses.Chart=BT,oE.push({relevant:aE.widthXS,state:function(t,e){if(t instanceof BT){var i=t.states.create(e);return t.pixelPaddingLeft>10&&(i.properties.paddingLeft=10),t.pixelPaddingRight>10&&(i.properties.paddingRight=10),i}return null}}),oE.push({relevant:aE.heightXS,state:function(t,e){if(t instanceof BT){var i=t.states.create(e);return t.pixelPaddingTop>10&&(i.properties.paddingTop=10),t.pixelPaddingBottom>10&&(i.properties.paddingBottom=10),i}return null}}),oE.push({relevant:aE.widthXXS,state:function(t,e){if(t instanceof BT){var i=t.states.create(e);return i.properties.paddingLeft=0,i.properties.paddingRight=0,i}return null}}),oE.push({relevant:aE.heightXXS,state:function(t,e){if(t instanceof BT){var i=t.states.create(e);return i.properties.paddingTop=0,i.properties.paddingBottom=0,i}return null}});var HT=function(t){function e(){var e=t.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){if(this.setPropertyValue("locationX",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){if(this.setPropertyValue("locationY",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(t){this.setPropertyValue("xField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(t){this.setPropertyValue("yField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(t){this.setPropertyValue("isDynamic",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(t){this.setPropertyValue("copyToLegendMarker",t)},enumerable:!0,configurable:!0}),e}(ZD);rS.registeredClasses.Bullet=HT,oE.push({relevant:aE.isXS,state:function(t,e){if(t instanceof HT){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var zT=function(t){function e(){var e=t.call(this)||this;return e.className="SeriesDataItem",e.values.value={},e.values.value={},e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new eS,this._disposers.push(new tS(this._bullets))),this._bullets},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.bullets.clear(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),e}(lE),UT=function(t){function e(){var i=t.call(this)||this;if(i._ignoreMinMax=!1,i._showBullets=!0,i.legendSettings=new vT,i._tmin=new eS,i._tmax=new eS,i._smin=new eS,i._smax=new eS,i.dataItemsByAxis=new eS,i.skipFocusThreshold=20,i._itemReaderTextChanged=!1,i.calculatePercent=!1,i.usePercentHack=!0,i.autoDispose=!0,i.simplifiedProcessing=!1,i.constructor===e)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");i.className="Series",i.isMeasured=!1,i.layout="none",i.shouldClone=!1,i.setPropertyValue("hidden",!1),i.axisRanges=new uS,i.axisRanges.events.on("inserted",i.processAxisRange,i,!1),i.minBulletDistance=0,i.mainContainer=i.createChild(ZD),i.mainContainer.shouldClone=!1,i.mainContainer.mask=i.createChild(qD),i._disposers.push(i.mainContainer);var n=i.mainContainer.createChild(ZD);return i._shouldBeReady.push(n),n.shouldClone=!1,n.layout="none",n.virtualParent=i,i._disposers.push(n),i.bulletsContainer=n,i.tooltip=new NE,i.tooltip.virtualParent=i,i._disposers.push(i.tooltip),i.hiddenState.transitionEasing=_O,i.dataItem=i.createDataItem(),i._disposers.push(i.dataItem),i.dataItem.component=i,i.role="group",i.applyTheme(),i}return uP(e,t),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),TO.autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),CP(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},e.prototype.createDataItem=function(){return new zT},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){},e.prototype.processBullet=function(t){var e=this,i=t.newValue;i.isTemplate=!0,this.events.once("datavalidated",(function(t){e.itemsFocusable()&&(i.focusable=!0)}))},e.prototype.removeBullet=function(t){var e=t.oldValue;this.dataItems.each((function(t){var i=t.bullets.getKey(e.uid);i&&i.dispose()})),this.invalidate()},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.processValues(!1)},e.prototype.getFirstValue=function(t,e){e>0&&e<this.dataItems.length-1&&e++;for(var i=e;i>=0;i--){var n=this.dataItems.getIndex(i).getActualWorkingValue(t);if(TP(n))return n}return null},e.prototype.getAbsoluteFirstValue=function(t){for(var e=0;e<this.dataItems.length;e++){var i=this.dataItems.getIndex(e).values[t].value;if(TP(i))return i}return null},e.prototype.rangeChangeUpdate=function(){t.prototype.rangeChangeUpdate.call(this),this.processValues(!0)},e.prototype.processValues=function(t){var e=this;if(!this.simplifiedProcessing){var i=this.dataItems,n={},r={},s={},o={},a={},l={},u={},h={},c={},p={},d=zP(0,this._workingStartIndex);d=UP(d,this.dataItems.length);var f=UP(this._workingEndIndex,this.dataItems.length);if(TP(d)||(d=0),TP(f)||(f=this.dataItems.length),d>0){var g=i.getIndex(d-1);NC(g.values,(function(t,e){var i=g.getActualWorkingValue(t);TP(i)&&(h[t]=i)}))}for(var m=function(t){var f=i.getIndex(t);NC(f.values,(function(t,i){var g=f.getActualWorkingValue(t);if(TP(g)){TP(n[t])||(n[t]=0),n[t]++,TP(r[t])||(r[t]=0),r[t]+=g,TP(s[t])||(s[t]=0),s[t]+=Math.abs(g),TP(l[t])||(l[t]=g),u[t]=g,TP(o[t])?o[t]>g&&(o[t]=g):o[t]=g,TP(a[t])?a[t]<g&&(a[t]=g):a[t]=g,TP(c[t])||(c[t]=e.getFirstValue(t,d)),TP(p[t])||(p[t]=e.getAbsoluteFirstValue(t)),f.setCalculatedValue(t,g-c[t],"change"),f.setCalculatedValue(t,(g-c[t])/c[t]*100,"changePercent"),f.setCalculatedValue(t,g-p[t],"startChange"),f.setCalculatedValue(t,(g-p[t])/p[t]*100,"startChangePercent");var m=h[t];TP(m)||(m=g),f.setCalculatedValue(t,g-m,"previousChange"),f.setCalculatedValue(t,(g-m)/m*100,"previousChangePercent"),h[t]=g}}))},y=d;y<f;y++)m(y);if(this.calculatePercent){var v=function(t){var n=i.getIndex(t);NC(n.values,(function(t){var i=s[t],r=n.getActualWorkingValue(t);if(TP(r))if(i>0){e.usePercentHack&&r==i&&(i=n.values[t].value);var o=r/i*100;n.setCalculatedValue(t,o,"percent")}else n.setCalculatedValue(t,0,"percent")}))};for(y=d;y<f;y++)v(y)}if(d>0){var b=i.getIndex(d-1);NC(b.values,(function(t){var e=b.values[t].value;b.setCalculatedValue(t,e-l[t],"change"),b.setCalculatedValue(t,(e-l[t])/l[t]*100,"changePercent")}))}var _=this.dataItem;NC(_.values,(function(t){_.setCalculatedValue(t,r[t],"sum"),_.setCalculatedValue(t,s[t],"absoluteSum"),_.setCalculatedValue(t,r[t]/n[t],"average"),_.setCalculatedValue(t,l[t],"open"),_.setCalculatedValue(t,u[t],"close"),_.setCalculatedValue(t,o[t],"low"),_.setCalculatedValue(t,a[t],"high"),_.setCalculatedValue(t,n[t],"count")}))}},e.prototype.validate=function(){window.MSInputMethodContext&&document.documentMode&&this.filters.clear(),KC(this.axisRanges.iterator(),(function(t){t.validate()})),t.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var i=0;i<this.startIndex;i++){(n=this.dataItems.getIndex(i))&&n.bullets.each((function(t,e){e.__disabled=!0}))}for(i=this.dataItems.length-1;i>this.endIndex;i--){var n;(n=this.dataItems.getIndex(i))&&n.bullets.each((function(t,e){e.__disabled=!0}))}}else this.bulletsContainer.children.each((function(t){t.__disabled=!0}));this.updateTooltipBounds()},e.prototype.updateTooltipBounds=function(){if(this.topParent){var t={x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight};this.tooltip.setBounds(t)}},e.prototype.shouldCreateBullet=function(t,e){return!0},e.prototype.validateDataElement=function(e){var i=this;t.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each((function(t){var n=e.bullets.getKey(t.uid);if(i.shouldCreateBullet(e,t)){if(!n){var r=t.propertyFields.disabled,s=e.dataContext;r&&s&&!1===s[r]?(t.applyOnClones=!1,t.disabled=!1,n=t.clone(),t.disabled=!0,t.applyOnClones=!0):n=t.clone(),n.shouldClone=!1,e.addSprite(n),i.visible&&!i.isHiding||n.hide(0)}var o=n.dataItem;if(o!=e){o&&o.bullets.setKey(t.uid,void 0);var a=i.itemReaderText;n instanceof HT&&(a||(a="{"+n.xField+"}: {"+n.yField+"}"),n.isDynamic&&(e.events.on("workingvaluechanged",n.deepInvalidate,n,!1),i.dataItem.events.on("workingvaluechanged",n.deepInvalidate,n,!1)),n.deepInvalidate()),n.focusable&&(n.events.on("focus",(function(t){n.readerTitle=i.populateString(a,n.dataItem)}),void 0,!1),n.events.on("blur",(function(t){n.readerTitle=""}),void 0,!1)),n.hoverable&&(n.events.on("over",(function(t){n.readerTitle=i.populateString(a,n.dataItem)}),void 0,!1),n.events.on("out",(function(t){n.readerTitle=""}),void 0,!1))}n.parent=i.bulletsContainer,e.bullets.setKey(t.uid,n),n.maxWidth=e.itemWidth,n.maxHeight=e.itemHeight,n.__disabled=!1,i.positionBullet(n)}else n&&(n.__disabled=!0)}))):this.bulletsContainer.visible=!1},e.prototype.handleDataItemWorkingValueChange=function(t,e){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){this._ignoreMinMax=t,this.invalidateDataItems()},enumerable:!0,configurable:!0}),e.prototype.createMask=function(){},e.prototype.processAxisRange=function(t){this.rangesContainer||(this.rangesContainer=this.createChild(ZD),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var e=t.newValue;e&&(e.contents.parent=this.rangesContainer,e.isRange=!0,e.events.on("valuechanged",this.invalidateDataItems,this,!1))},e.prototype.getAxisField=function(t){},e.prototype.showTooltipAtPosition=function(t,e){},Object.defineProperty(e.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(t){this.setPropertyValue("minBulletDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new hS(new HT),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new aS(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){},Object.defineProperty(e.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(t){this.setPropertyValue("hiddenInLegend",t)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t);var e=this.legendDataItem;e&&(e.component.invalidate(),e.component.invalidateRawData()),this.readerTitle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemReaderText",{get:function(){var t=this._itemReaderText;return t||(this.tooltipText?t=KS(this.tooltipText):this.tooltipHTML&&(t=KS(this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",t):t},set:function(t){this._itemReaderText=t,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),e.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(t,e){if(this.legendDataItem){var i=this.legendSettings,n=this.legendDataItem,r=n.label,s=n.valueLabel;t||e?(s&&(i.itemValueText&&(s.text=i.itemValueText),s.dataItem=t),r&&(i.itemLabelText&&(r.text=i.itemLabelText),r.dataItem=t)):(r&&((i.labelText||null!=i.itemLabelText)&&(r.text=i.labelText),r.dataItem=this.dataItem),s&&((i.valueText||null!=i.itemValueText)&&(s.text=i.valueText),s.dataItem=this.dataItem))}},e.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.usePercentHack=e.usePercentHack,this.simplifiedProcessing=e.simplifiedProcessing,t.prototype.copyFrom.call(this,e)},e.prototype.raiseCriticalError=function(t){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",t).message,this._chart.modal.closable=!1,TO.suppressErrors||this._chart.modal.open(),this._chart.disabled=!0),TO.verbose&&console.log(t)},e.prototype.applyFilters=function(){var e=this;t.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),KC(this.filters.iterator(),(function(t){e.bulletsContainer.filters.push(t.clone())}))},Object.defineProperty(e.prototype,"heatRules",{get:function(){var t=this;return this._heatRules||(this._heatRules=new uS,this._heatRules.events.on("inserted",(function(e){var i=e.newValue,n=i.target;if(n){var r=i.dataField;CP(r)||(r="value");var s=t.dataItem,o=i.property,a=xP(i.minValue),l=xP(i.maxValue);TP(a)||TP(l)||t.dataItem.events.on("calculatedvaluechanged",(function(e){e.property==r&&KC(t.dataItems.iterator(),(function(t){var e=!1;lC(t.sprites,(function(t){if(t.clonedFrom==n){var i=t;i[o]=i[o],e=!0}})),e||lC(t.sprites,(function(t){t instanceof ZD&&KC(t.children.iterator(),(function(t){if(t.className==n.className){var e=t;e[o]=e[o]}else t instanceof ZD&&t.deepInvalidate()}))}))}))})),t.dataItems.template.events.on("workingvaluechanged",(function(t){if(t.property==r){var e=t.target,i=!1;lC(e.sprites,(function(t){if(t.clonedFrom==n){var e=t;e[o]=e[o],i=!0}})),i||lC(e.sprites,(function(t){t instanceof ZD&&KC(t.children.iterator(),(function(t){if(t.className==n.className){var e=t;e[o]=e[o]}else t instanceof ZD&&t.deepInvalidate()}))}))}})),n.adapter.add(o,(function(t,e,n){var o=xP(i.minValue),a=xP(i.maxValue),l=i.min,u=i.max;if(e instanceof qD){var h=e.propertyFields[n];if(h&&e.dataItem){var c=e.dataItem.dataContext;if(c&&CP(c[h]))return t}}var p=e.dataItem;if((TP(o)||(o=s.values[r].low),TP(a)||(a=s.values[r].high),p)&&p.values[r]){var d=p.getActualWorkingValue(r);if(CP(l)&&CP(u)&&TP(o)&&TP(a)&&TP(d)){var f=void 0;if(f=i.logarithmic?(Math.log(d)*Math.LOG10E-Math.log(o)*Math.LOG10E)/(Math.log(a)*Math.LOG10E-Math.log(o)*Math.LOG10E):(d-o)/(a-o),TP(d)&&!TP(f)&&(f=.5),TP(l))return l+(u-l)*f;if(l instanceof OS)return new OS(wS(l.rgb,u.rgb,f))}}return t}))}}))),this._heatRules},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){var i;if(e){if(CP(e.bullets)&&IP(e.bullets))for(var n=0,r=e.bullets.length;n<r;n++){var s=e.bullets[n];CP(s.type)||(s.type="Bullet")}CP(e.heatRules)&&IP(e.heatRules)&&(i=e.heatRules,delete e.heatRules)}if(t.prototype.processConfig.call(this,e),i){for(n=0,r=i.length;n<r;n++){var o=i[n],a=this;if(CP(o.target)&&EP(o.target))if(this.map.hasKey(o.target))a=this.map.getKey(o.target);else for(var l=o.target.split("."),u=0;u<l.length;u++)if(a instanceof uS){var h=a.getIndex(xP(l[u]));a=h||a[l[u]]}else a=a[l[u]];o.target=a,CP(o.min)&&(o.min=this.maybeColorOrPercent(o.min)),CP(o.max)&&(o.max=this.maybeColorOrPercent(o.max))}t.prototype.processConfig.call(this,{heatRules:i})}},e.prototype.configOrder=function(e,i){return e==i?0:"heatRules"==e?1:"heatRules"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(uE);rS.registeredClasses.Series=UT,rS.registeredClasses.SeriesDataItem=zT;var WT=function(t){function e(){var e=t.call(this)||this;return e.className="SerialChartDataItem",e.applyTheme(),e}return uP(e,t),e}(NT),GT=function(t){function e(){var e=t.call(this)||this;e.className="SerialChart",e.colors=new aT,e._usesData=!1;var i=e.chartContainer.createChild(ZD);i.shouldClone=!1,i.width=mP(100),i.height=mP(100),i.isMeasured=!1,i.layout="none",i.zIndex=2,e.seriesContainer=i;var n=e.chartContainer.createChild(ZD);return n.shouldClone=!1,n.width=mP(100),n.height=mP(100),n.isMeasured=!1,n.zIndex=3,n.layout="none",e.bulletsContainer=n,e.applyTheme(),e}return uP(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.colors&&this.colors.dispose(),this.patterns&&this.patterns.dispose()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),CP(this.readerTitle)||(this.readerTitle=this.language.translate("Serial chart"))},Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new hS(this.createSeries()),this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1),this._disposers.push(new aS(this._series,!1)),this._disposers.push(this._series.template)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesRemoved=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),this.dataUsers.each((function(t){t.invalidateDataItems()})),e.autoDispose?e.dispose():(e.parent=void 0,e.bulletsContainer.parent=void 0);var i=this.legend;if(i){for(var n=this.legend.dataItems,r=n.length-1;r>=0;r--){var s=n.getIndex(r);s&&s.dataContext==e&&i.dataItems.remove(s)}for(r=i.data.length-1;r>=0;r--){var o=i.data[r];o&&o==e&&hC(i.data,o)}}},e.prototype.handleSeriesAdded=function(t){var e=this,i=t.newValue;i.isDisposed()||(i.chart=this,i.parent=this.seriesContainer,i.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(i),i.addDisposer(new xC((function(){e.dataUsers.removeValue(i)}))),this.handleSeriesAdded2(i),i.hiddenInLegend||this.legend&&this.legend.addData(i))},e.prototype.handleSeriesAdded2=function(t){var e=this;this.dataInvalid||this._disposers.push(rS.events.once("exitframe",(function(){t.data&&0!=t.data.length||(t.data=e.data,t.showOnInit&&(t.reinit(),t.setPropertyValue("showOnInit",!1),t.showOnInit=!0),t.events.once("datavalidated",(function(){t.data==e.data&&(t._data=[])})))})))},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];KC(this.series.iterator(),(function(t){t.hiddenInLegend||e.push(t)})),t.dataFields.name="name",t.data=e}},e.prototype.createSeries=function(){return new UT},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},e.prototype.appear=function(){t.prototype.appear.call(this),this.series.each((function(t){t.showOnInit&&t.inited&&t.appear()}))},e}(BT);rS.registeredClasses.SerialChart=GT;var $T=function(){return new KT};function KT(){this.reset()}KT.prototype={constructor:KT,reset:function(){this.s=this.t=0},add:function(t){qT(YT,t,this.t),qT(this,YT.s,this.s),this.s?this.t+=YT.t:this.s=YT.t},valueOf:function(){return this.s}};var YT=new KT;function qT(t,e,i){var n=t.s=e+i,r=n-e,s=n-r;t.t=e-s+(i-r)}var XT=1e-6,ZT=Math.PI,QT=ZT/2,JT=ZT/4,tk=2*ZT,ek=180/ZT,ik=ZT/180,nk=Math.abs,rk=Math.atan,sk=Math.atan2,ok=Math.cos,ak=Math.ceil,lk=Math.exp,uk=(Math.floor,Math.log),hk=(Math.pow,Math.sin),ck=Math.sign||function(t){return t>0?1:t<0?-1:0},pk=Math.sqrt,dk=Math.tan;function fk(t){return t>1?QT:t<-1?-QT:Math.asin(t)}function gk(t){return(t=hk(t/2))*t}function mk(){}function yk(t,e){t&&bk.hasOwnProperty(t.type)&&bk[t.type](t,e)}var vk={Feature:function(t,e){yk(t.geometry,e)},FeatureCollection:function(t,e){for(var i=t.features,n=-1,r=i.length;++n<r;)yk(i[n].geometry,e)}},bk={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)t=i[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){_k(t.coordinates,e,0)},MultiLineString:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)_k(i[n],e,0)},Polygon:function(t,e){xk(t.coordinates,e)},MultiPolygon:function(t,e){for(var i=t.coordinates,n=-1,r=i.length;++n<r;)xk(i[n],e)},GeometryCollection:function(t,e){for(var i=t.geometries,n=-1,r=i.length;++n<r;)yk(i[n],e)}};function _k(t,e,i){var n,r=-1,s=t.length-i;for(e.lineStart();++r<s;)n=t[r],e.point(n[0],n[1],n[2]);e.lineEnd()}function xk(t,e){var i=-1,n=t.length;for(e.polygonStart();++i<n;)_k(t[i],e,1);e.polygonEnd()}var wk,Pk,Ck,Sk,Ok,Dk=function(t,e){t&&vk.hasOwnProperty(t.type)?vk[t.type](t,e):yk(t,e)},Ek=$T(),Tk=$T(),kk={point:mk,lineStart:mk,lineEnd:mk,polygonStart:function(){Ek.reset(),kk.lineStart=Ik,kk.lineEnd=Mk},polygonEnd:function(){var t=+Ek;Tk.add(t<0?tk+t:t),this.lineStart=this.lineEnd=this.point=mk},sphere:function(){Tk.add(tk)}};function Ik(){kk.point=Fk}function Mk(){Ak(wk,Pk)}function Fk(t,e){kk.point=Ak,wk=t,Pk=e,Ck=t*=ik,Sk=ok(e=(e*=ik)/2+JT),Ok=hk(e)}function Ak(t,e){var i=(t*=ik)-Ck,n=i>=0?1:-1,r=n*i,s=ok(e=(e*=ik)/2+JT),o=hk(e),a=Ok*o,l=Sk*s+a*ok(r),u=a*n*hk(r);Ek.add(sk(u,l)),Ck=t,Sk=s,Ok=o}function jk(t){return[sk(t[1],t[0]),fk(t[2])]}function Lk(t){var e=t[0],i=t[1],n=ok(i);return[n*ok(e),n*hk(e),hk(i)]}function Vk(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Rk(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Nk(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Bk(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Hk(t){var e=pk(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var zk,Uk,Wk,Gk,$k,Kk,Yk,qk,Xk,Zk,Qk=$T(),Jk={point:tI,lineStart:iI,lineEnd:nI,polygonStart:function(){Jk.point=rI,Jk.lineStart=sI,Jk.lineEnd=oI,Qk.reset(),kk.polygonStart()},polygonEnd:function(){kk.polygonEnd(),Jk.point=tI,Jk.lineStart=iI,Jk.lineEnd=nI,Ek<0?(zk=-(Wk=180),Uk=-(Gk=90)):Qk>XT?Gk=90:Qk<-XT&&(Uk=-90),Zk[0]=zk,Zk[1]=Wk},sphere:function(){zk=-(Wk=180),Uk=-(Gk=90)}};function tI(t,e){Xk.push(Zk=[zk=t,Wk=t]),e<Uk&&(Uk=e),e>Gk&&(Gk=e)}function eI(t,e){var i=Lk([t*ik,e*ik]);if(qk){var n=Rk(qk,i),r=Rk([n[1],-n[0],0],n);Hk(r),r=jk(r);var s,o=t-$k,a=o>0?1:-1,l=r[0]*ek*a,u=nk(o)>180;u^(a*$k<l&&l<a*t)?(s=r[1]*ek)>Gk&&(Gk=s):u^(a*$k<(l=(l+360)%360-180)&&l<a*t)?(s=-r[1]*ek)<Uk&&(Uk=s):(e<Uk&&(Uk=e),e>Gk&&(Gk=e)),u?t<$k?aI(zk,t)>aI(zk,Wk)&&(Wk=t):aI(t,Wk)>aI(zk,Wk)&&(zk=t):Wk>=zk?(t<zk&&(zk=t),t>Wk&&(Wk=t)):t>$k?aI(zk,t)>aI(zk,Wk)&&(Wk=t):aI(t,Wk)>aI(zk,Wk)&&(zk=t)}else Xk.push(Zk=[zk=t,Wk=t]);e<Uk&&(Uk=e),e>Gk&&(Gk=e),qk=i,$k=t}function iI(){Jk.point=eI}function nI(){Zk[0]=zk,Zk[1]=Wk,Jk.point=tI,qk=null}function rI(t,e){if(qk){var i=t-$k;Qk.add(nk(i)>180?i+(i>0?360:-360):i)}else Kk=t,Yk=e;kk.point(t,e),eI(t,e)}function sI(){kk.lineStart()}function oI(){rI(Kk,Yk),kk.lineEnd(),nk(Qk)>XT&&(zk=-(Wk=180)),Zk[0]=zk,Zk[1]=Wk,qk=null}function aI(t,e){return(e-=t)<0?e+360:e}function lI(t,e){return t[0]-e[0]}function uI(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var hI=function(t){var e,i,n,r,s,o,a;if(Gk=Wk=-(zk=Uk=1/0),Xk=[],Dk(t,Jk),i=Xk.length){for(Xk.sort(lI),e=1,s=[n=Xk[0]];e<i;++e)uI(n,(r=Xk[e])[0])||uI(n,r[1])?(aI(n[0],r[1])>aI(n[0],n[1])&&(n[1]=r[1]),aI(r[0],n[1])>aI(n[0],n[1])&&(n[0]=r[0])):s.push(n=r);for(o=-1/0,e=0,n=s[i=s.length-1];e<=i;n=r,++e)r=s[e],(a=aI(n[1],r[0]))>o&&(o=a,zk=r[0],Wk=n[1])}return Xk=Zk=null,zk===1/0||Uk===1/0?[[NaN,NaN],[NaN,NaN]]:[[zk,Uk],[Wk,Gk]]},cI=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeriesDataItem",e.values.value={},e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.properties.zoomLevel},set:function(t){this.setProperty("zoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){return this.properties.zoomGeoPoint},set:function(t){this.setProperty("zoomGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return this._east},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return this._west},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return this._south},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return this._north},enumerable:!0,configurable:!0}),e.prototype.updateExtremes=function(){var t=this.getFeature().geometry;if(t){var e=hI(t),i=e[0][0],n=e[0][1],r=e[1][1],s=e[1][0],o=!1;r!=this.north&&(this._north=VP(r,6),o=!0),n!=this.south&&(this._south=VP(n,6),o=!0),s!=this.east&&(this._east=VP(s,6),o=!0),i!=this.west&&(this._west=VP(i,6),o=!0),this._east<this._west&&(this._east=180,this._west=-180),o&&this.component.invalidateDataItems()}},e.prototype.getFeature=function(){return{}},e}(zT),pI=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeries",e.isMeasured=!1,e.nonScalingStroke=!0,e.dataFields.value="value",e.ignoreBounds=!1,e.tooltip&&(e.tooltip.showInViewport=!0),e.applyTheme(),e}return uP(e,t),e.prototype.createDataItem=function(){return new cI},e.prototype.checkInclude=function(t,e,i){if(t){if(0==t.length)return!1;if(-1==t.indexOf(i))return!1}return!(e&&e.length>0&&-1!=e.indexOf(i))},Object.defineProperty(e.prototype,"useGeodata",{get:function(){return this.getPropertyValue("useGeodata")},set:function(t){this.setPropertyValue("useGeodata",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"include",{get:function(){return this.getPropertyValue("include")},set:function(t){this.setPropertyValue("include",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.processIncExc=function(){this.invalidateData()},Object.defineProperty(e.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(t){this.setPropertyValue("ignoreBounds",t)&&this.chart&&this.chart.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exclude",{get:function(){return this.getPropertyValue("exclude")},set:function(t){this.setPropertyValue("exclude",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.handleObjectAdded=function(t){var e=t.newValue;e.parent=this,e.series=this,e.strokeWidth=e.strokeWidth},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){if(t!=this._geodata){this._geodata=t;for(var e=this.data.length-1;e>=0;e--)1==this.data[e].madeFromGeoData&&this.data.splice(e,1);this.disposeData(),this.invalidateData()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",(function(){e.loadData("geodata")}),void 0,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.getFeatures=function(){},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,i,n;this.dataItems.each((function(r){(r.north>t||!TP(t))&&(t=r.north),(r.south<e||!TP(e))&&(e=r.south),(r.west<n||!TP(n))&&(n=r.west),(r.east>i||!TP(i))&&(i=r.east)})),this._mapObjects&&this._mapObjects.each((function(r){(r.north>t||!TP(t))&&(t=r.north),(r.south<e||!TP(e))&&(e=r.south),(r.west<n||!TP(n))&&(n=r.west),(r.east>i||!TP(i))&&(i=r.east)})),this.north==t&&this.east==i&&this.south==e&&this.west==n||(this._north=t,this._east=i,this._west=n,this._south=e,this.dispatch("geoBoundsChanged"),this.ignoreBounds||this.chart.updateExtremes())},Object.defineProperty(e.prototype,"north",{get:function(){return TP(this._northDefined)?this._northDefined:this._north},set:function(t){this._northDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return TP(this._southDefined)?this._southDefined:this._south},set:function(t){this._southDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return TP(this._westDefined)?this._westDefined:this._west},set:function(t){this._westDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return TP(this._eastDefined)?this._eastDefined:this._east},set:function(t){this._eastDefined=t},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(CP(e.geodata)&&EP(e.geodata)){var i=e.geodata;if(CP(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(n){throw Error("MapChart error: Geodata `"+i+"` is not loaded or is incorrect.")}}t.prototype.processConfig.call(this,e)},e.prototype.asIs=function(e){return"geodata"==e||t.prototype.asIs.call(this,e)},e.prototype.updateTooltipBounds=function(){this.tooltip&&this.topParent&&this.tooltip.setBounds({x:10,y:10,width:this.topParent.maxWidth-20,height:this.topParent.maxHeight-20})},e}(UT);rS.registeredClasses.MapSeries=pI,rS.registeredClasses.MapSeriesDataItem=cI;var dI=function(t){function e(){var e=t.call(this)||this;return e.className="MapObject",e.isMeasured=!1,e.layout="none",e.clickable=!0,e.applyTheme(),e}return uP(e,t),e.prototype.validate=function(){this.series&&(this.readerTitle=this.series.itemReaderText),t.prototype.validate.call(this)},e.prototype.updateExtremes=function(){var t=this.getFeature();if(t){var e=t.geometry;if(e){var i=hI(e),n=i[0][0],r=i[0][1],s=i[1][1],o=i[1][0],a=!1;s!=this.north&&(this._north=VP(s,8),a=!0),r!=this.south&&(this._south=VP(r),a=!0),o!=this.east&&(this._east=VP(o),a=!0),n!=this.west&&(this._west=VP(n),a=!0),a&&(this.dispatch("geoBoundsChanged"),this.series&&this.series.invalidateDataItems())}}},e.prototype.getFeature=function(){return{}},Object.defineProperty(e.prototype,"east",{get:function(){return TP(this._east)?this._east:this.dataItem?this.dataItem.east:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return TP(this._west)?this._west:this.dataItem?this.dataItem.west:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return TP(this._south)?this._south:this.dataItem?this.dataItem.south:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return TP(this._north)?this._north:this.dataItem?this.dataItem.north:void 0},enumerable:!0,configurable:!0}),e.prototype.showTooltip=function(e){var i=t.prototype.showTooltip.call(this,e);return i&&"always"==this.showTooltipOn&&!this.series.chart.events.has("mappositionchanged",this.handleTooltipMove,this)&&this.addDisposer(this.series.chart.events.on("mappositionchanged",this.handleTooltipMove,this)),i},e.prototype.handleTooltipMove=function(t){this.tooltip.isHidden||this.showTooltip()},e}(ZD);rS.registeredClasses.MapObject=dI;var fI=function(t){function e(){var e=t.call(this)||this;return e.className="MapImage",e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"latitude",{get:function(){var t=this.getPropertyValue("latitude");return!TP(t)&&this.dataItem&&this.dataItem.geoPoint&&(t=this.dataItem.geoPoint.latitude),t},set:function(t){this.setPropertyValue("latitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){var t=this.getPropertyValue("longitude");return!TP(t)&&this.dataItem&&this.dataItem.geoPoint&&(t=this.dataItem.geoPoint.longitude),t},set:function(t){this.setPropertyValue("longitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),e.prototype.validatePosition=function(){if(TP(this.latitude)&&TP(this.longitude)){var e=this.series.chart.projection.d3Projection([this.longitude,this.latitude]),i=this.series.chart.projection.d3Path({type:"Point",coordinates:[this.longitude,this.latitude]});this.__disabled=!i,this.moveTo({x:e[0],y:e[1]})}t.prototype.validatePosition.call(this)},e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:[this.longitude,this.latitude]}}},e}(dI);rS.registeredClasses.MapImage=fI;var gI=i("lcx6"),mI=i.n(gI),yI=function(t,e){function i(i,n){return i=t(i,n),e(i[0],i[1])}return t.invert&&e.invert&&(i.invert=function(i,n){return(i=e.invert(i,n))&&t.invert(i[0],i[1])}),i};function vI(t,e){return[nk(t)>ZT?t+Math.round(-t/tk)*tk:t,e]}function bI(t,e,i){return(t%=tk)?e||i?yI(xI(t),wI(e,i)):xI(t):e||i?wI(e,i):vI}function _I(t){return function(e,i){return[(e+=t)>ZT?e-tk:e<-ZT?e+tk:e,i]}}function xI(t){var e=_I(t);return e.invert=_I(-t),e}function wI(t,e){var i=ok(t),n=hk(t),r=ok(e),s=hk(e);function o(t,e){var o=ok(e),a=ok(t)*o,l=hk(t)*o,u=hk(e),h=u*i+a*n;return[sk(l*r-h*s,a*i-u*n),fk(h*r+l*s)]}return o.invert=function(t,e){var o=ok(e),a=ok(t)*o,l=hk(t)*o,u=hk(e),h=u*r-l*s;return[sk(l*r+u*s,a*i+h*n),fk(h*i-a*n)]},o}vI.invert=vI;function PI(t,e,i,n,r,s){if(i){var o=ok(e),a=hk(e),l=n*i;null==r?(r=e+n*tk,s=e-l/2):(r=CI(o,r),s=CI(o,s),(n>0?r<s:r>s)&&(r+=n*tk));for(var u,h=r;n>0?h>s:h<s;h-=l)u=jk([o,-a*ok(h),-a*hk(h)]),t.point(u[0],u[1])}}function CI(t,e){(e=Lk(e))[0]-=t,Hk(e);var i,n=(i=-e[1])>1?0:i<-1?ZT:Math.acos(i);return((-e[2]<0?-n:n)+tk-XT)%tk}function SI(t){return aC(t,(function(t){return OI(t)}))}function OI(t){return aC(t,(function(t){return EI(t)}))}function DI(t){return aC(t,TI)}function EI(t){return{longitude:t[0],latitude:t[1]}}function TI(t){return[t.longitude,t.latitude]}function kI(t){return aC(t,(function(t){return aC(t,TI)}))}function II(t){return aC(t,(function(t){var e=t[0],i=t[1],n=[];return e&&n.push(DI(e)),i&&n.push(DI(i)),n}))}var MI=function(t){function e(){var e=t.call(this)||this;e.className="MapPolygon",e.polygon=e.createChild(DE),e.polygon.shouldClone=!1,e.polygon.applyOnClones=!0,e.setPropertyValue("precision",.5);var i=new nD;return e.fill=i.getFor("secondaryButton"),e.stroke=i.getFor("secondaryButtonStroke"),e.strokeOpacity=1,e.tooltipPosition="pointer",e.nonScalingStroke=!0,e.applyTheme(),e}return uP(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){var t=this.getPropertyValue("multiGeoPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiGeoPolygon),t},set:function(t){this.setPropertyValue("multiGeoPolygon",t,!0),this.multiPolygon=II(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){var t=this.getPropertyValue("multiPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiPolygon),t},set:function(t){this.setPropertyValue("multiPolygon",t)&&(this.updateExtremes(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.validate=function(){if(this.series){var e=this.series.chart.projection,i=e.d3Path;if(this.multiPolygon){if(this.series){var n={type:"MultiPolygon",coordinates:this.multiPolygon};e.d3Projection.precision(this.precision),this.polygon.path=i(n)}if(this.series.calculateVisualCenter){var r=0,s=this.multiPolygon[0];if(this.multiPolygon.length>1)for(var o=0;o<this.multiPolygon.length;o++){var a=this.multiPolygon[o],l=(h={type:"Polygon",coordinates:a},Tk.reset(),Dk(h,kk),2*Tk);l>r&&(s=a,r=l)}var u=mI()(s);this._visualLongitude=u[0],this._visualLatitude=u[1]}else this._visualLongitude=this.longitude,this._visualLatitude=this.latitude}}var h;t.prototype.validate.call(this)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLatitude",{get:function(){var t=this.getPropertyValue("visualLatitude");return TP(t)?t:this._adapterO?this._adapterO.apply("visualLatitude",this._visualLatitude):this._visualLatitude},set:function(t){this.setPropertyValue("visualLatitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLongitude",{get:function(){var t=this.getPropertyValue("visualLongitude");return TP(t)?t:this._adapterO?this._adapterO.apply("visualLongitude",this._visualLongitude):this._visualLongitude},set:function(t){this.setPropertyValue("visualLongitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelWidth",{get:function(){return this.polygon.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){return this.polygon.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.polygon.copyFrom(e.polygon)},e.prototype.updateExtremes=function(){t.prototype.updateExtremes.call(this)},Object.defineProperty(e.prototype,"boxArea",{get:function(){return(this.north-this.south)*(this.east-this.west)},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).x},e.prototype.getTooltipY=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).y},Object.defineProperty(e.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(t){this.setPropertyValue("precision",t,!0)},enumerable:!0,configurable:!0}),e}(dI);rS.registeredClasses.MapPolygon=MI;var FI=function(t){function e(){var e=t.call(this)||this;return e.className="MapPolygonSeriesDataItem",e.applyTheme(),e}return uP(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"mapPolygon",{get:function(){var t=this;if(!this._mapPolygon){var e=this.component.mapPolygons.create();this._mapPolygon=e,this.addSprite(e),this._disposers.push(new xC((function(){t.component&&t.component.mapPolygons.removeValue(e)}))),this.mapObject=e}return this._mapPolygon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polygon",{get:function(){return this._polygon},set:function(t){this._polygon=t,this.multiPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){return this._multiPolygon},set:function(t){this._multiPolygon=t,this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPolygon",{get:function(){return this._geoPolygon},set:function(t){this._geoPolygon=t,this.multiGeoPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){return this._multiGeoPolygon},set:function(t){this._multiGeoPolygon=t,this.multiPolygon=II(t)},enumerable:!0,configurable:!0}),e}(cI),AI=function(t){function e(){var e=t.call(this)||this;return e.calculateVisualCenter=!1,e.className="MapPolygonSeries",e.dataFields.multiPolygon="multiPolygon",e.dataFields.polygon="polygon",e.dataFields.geoPolygon="geoPolygon",e.dataFields.multiGeoPolygon="multiGeoPolygon",e.applyTheme(),e}return uP(e,t),e.prototype.createDataItem=function(){return new FI},e.prototype.processIncExc=function(){this.mapPolygons.clear(),t.prototype.processIncExc.call(this)},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this._dataSources.geodata?void 0:this.chart.geodata;if(this.geodata&&(e=this.geodata),e){var i=void 0;if("FeatureCollection"==e.type?i=e.features:"Feature"==e.type?i=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?i=[{geometry:e}]:console.log("nothing found in geoJSON"),i)for(var n=function(t,e){var n=i[t],s=n.geometry;if(s){var o=s.type,a=n.id;if(r.chart.geodataNames&&r.chart.geodataNames[a]&&(n.properties.name=r.chart.geodataNames[a]),"Polygon"==o||"MultiPolygon"==o){if(!r.checkInclude(r.include,r.exclude,a))return"continue";var l=s.coordinates;l&&"Polygon"==o&&(l=[l]);var u=bC(r.data,(function(t,e){return t.id==a}));u?u.multiPolygon||(u.multiPolygon=l):(u={multiPolygon:l,id:a,madeFromGeoData:!0},r.data.push(u)),AS(n.properties,u)}}},r=this,s=0,o=i.length;s<o;s++)n(s)}}t.prototype.validateData.call(this)},e.prototype.validate=function(){t.prototype.validate.call(this),this.dataItems.each((function(t){t.mapPolygon})),this.mapPolygons.each((function(t){t.validate(),t.zIndex||t.propertyFields.zIndex||(t.zIndex=1e6-t.boxArea)}))},Object.defineProperty(e.prototype,"mapPolygons",{get:function(){if(!this._mapPolygons){var t=new MI,e=new hS(t);this._disposers.push(new aS(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapPolygons=e,this._mapObjects=e}return this._mapPolygons},enumerable:!0,configurable:!0}),e.prototype.getPolygonById=function(t){return XC(this.mapPolygons.iterator(),(function(e){return e.dataItem.dataContext.id==t}))},e.prototype.copyFrom=function(e){this.mapPolygons.template.copyFrom(e.mapPolygons.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each((function(t){var i=t.getFeature();i&&e.push(i)})),this.mapPolygons.each((function(i){if(-1==t.dataItems.indexOf(i._dataItem)){var n=i.getFeature();n&&e.push(n)}})),e},e}(pI);rS.registeredClasses.MapPolygonSeries=AI,rS.registeredClasses.MapPolygonSeriesDataItem=FI;var jI=function(){var t,e=[];return{point:function(e,i){t.push([e,i])},lineStart:function(){e.push(t=[])},lineEnd:mk,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var i=e;return e=[],t=null,i}}},LI=function(t,e){return nk(t[0]-e[0])<XT&&nk(t[1]-e[1])<XT};function VI(t,e,i,n){this.x=t,this.z=e,this.o=i,this.e=n,this.v=!1,this.n=this.p=null}var RI=function(t,e,i,n,r){var s,o,a=[],l=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,i,n=t[0],o=t[e];if(LI(n,o)){for(r.lineStart(),s=0;s<e;++s)r.point((n=t[s])[0],n[1]);r.lineEnd()}else a.push(i=new VI(n,t,null,!0)),l.push(i.o=new VI(n,null,i,!1)),a.push(i=new VI(o,t,null,!1)),l.push(i.o=new VI(o,null,i,!0))}})),a.length){for(l.sort(e),NI(a),NI(l),s=0,o=l.length;s<o;++s)l[s].e=i=!i;for(var u,h,c=a[0];;){for(var p=c,d=!0;p.v;)if((p=p.n)===c)return;u=p.z,r.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(s=0,o=u.length;s<o;++s)r.point((h=u[s])[0],h[1]);else n(p.x,p.n.x,1,r);p=p.n}else{if(d)for(u=p.p.z,s=u.length-1;s>=0;--s)r.point((h=u[s])[0],h[1]);else n(p.x,p.p.x,-1,r);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);r.lineEnd()}}};function NI(t){if(e=t.length){for(var e,i,n=0,r=t[0];++n<e;)r.n=i=t[n],i.p=r,r=i;r.n=i=t[0],i.p=r}}var BI=$T();function HI(t){return nk(t[0])<=ZT?t[0]:ck(t[0])*((nk(t[0])+ZT)%tk-ZT)}var zI=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN};var UI,WI,GI=(1===(UI=zI).length&&(WI=UI,UI=function(t,e){return zI(WI(t),e)}),{left:function(t,e,i,n){for(null==i&&(i=0),null==n&&(n=t.length);i<n;){var r=i+n>>>1;UI(t[r],e)<0?i=r+1:n=r}return i},right:function(t,e,i,n){for(null==i&&(i=0),null==n&&(n=t.length);i<n;){var r=i+n>>>1;UI(t[r],e)>0?n=r:i=r+1}return i}});GI.right,GI.left;var $I=Array.prototype,KI=($I.slice,$I.map,function(t,e,i){t=+t,e=+e,i=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+i;for(var n=-1,r=0|Math.max(0,Math.ceil((e-t)/i)),s=new Array(r);++n<r;)s[n]=t+n*i;return s});Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var YI=function(t){for(var e,i,n,r=t.length,s=-1,o=0;++s<r;)o+=t[s].length;for(i=new Array(o);--r>=0;)for(e=(n=t[r]).length;--e>=0;)i[--o]=n[e];return i};var qI=function(t,e,i,n){return function(r){var s,o,a,l=e(r),u=jI(),h=e(u),c=!1,p={point:d,lineStart:g,lineEnd:m,polygonStart:function(){p.point=y,p.lineStart=v,p.lineEnd=b,o=[],s=[]},polygonEnd:function(){p.point=d,p.lineStart=g,p.lineEnd=m,o=YI(o);var t=function(t,e){var i=HI(e),n=e[1],r=hk(n),s=[hk(i),-ok(i),0],o=0,a=0;BI.reset(),1===r?n=QT+XT:-1===r&&(n=-QT-XT);for(var l=0,u=t.length;l<u;++l)if(c=(h=t[l]).length)for(var h,c,p=h[c-1],d=HI(p),f=p[1]/2+JT,g=hk(f),m=ok(f),y=0;y<c;++y,d=b,g=x,m=w,p=v){var v=h[y],b=HI(v),_=v[1]/2+JT,x=hk(_),w=ok(_),P=b-d,C=P>=0?1:-1,S=C*P,O=S>ZT,D=g*x;if(BI.add(sk(D*C*hk(S),m*w+D*ok(S))),o+=O?P+C*tk:P,O^d>=i^b>=i){var E=Rk(Lk(p),Lk(v));Hk(E);var T=Rk(s,E);Hk(T);var k=(O^P>=0?-1:1)*fk(T[2]);(n>k||n===k&&(E[0]||E[1]))&&(a+=O^P>=0?1:-1)}}return(o<-XT||o<XT&&BI<-XT)^1&a}(s,n);o.length?(c||(r.polygonStart(),c=!0),RI(o,ZI,t,i,r)):t&&(c||(r.polygonStart(),c=!0),r.lineStart(),i(null,null,1,r),r.lineEnd()),c&&(r.polygonEnd(),c=!1),o=s=null},sphere:function(){r.polygonStart(),r.lineStart(),i(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function d(e,i){t(e,i)&&r.point(e,i)}function f(t,e){l.point(t,e)}function g(){p.point=f,l.lineStart()}function m(){p.point=d,l.lineEnd()}function y(t,e){a.push([t,e]),h.point(t,e)}function v(){h.lineStart(),a=[]}function b(){y(a[0][0],a[0][1]),h.lineEnd();var t,e,i,n,l=h.clean(),p=u.result(),d=p.length;if(a.pop(),s.push(a),a=null,d)if(1&l){if((e=(i=p[0]).length-1)>0){for(c||(r.polygonStart(),c=!0),r.lineStart(),t=0;t<e;++t)r.point((n=i[t])[0],n[1]);r.lineEnd()}}else d>1&&2&l&&p.push(p.pop().concat(p.shift())),o.push(p.filter(XI))}return p}};function XI(t){return t.length>1}function ZI(t,e){return((t=t.x)[0]<0?t[1]-QT-XT:QT-t[1])-((e=e.x)[0]<0?e[1]-QT-XT:QT-e[1])}var QI=qI((function(){return!0}),(function(t){var e,i=NaN,n=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(s,o){var a=s>0?ZT:-ZT,l=nk(s-i);nk(l-ZT)<XT?(t.point(i,n=(n+o)/2>0?QT:-QT),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(a,n),t.point(s,n),e=0):r!==a&&l>=ZT&&(nk(i-r)<XT&&(i-=r*XT),nk(s-a)<XT&&(s-=a*XT),n=function(t,e,i,n){var r,s,o=hk(t-i);return nk(o)>XT?rk((hk(e)*(s=ok(n))*hk(i)-hk(n)*(r=ok(e))*hk(t))/(r*s*o)):(e+n)/2}(i,n,s,o),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(a,n),e=0),t.point(i=s,n=o),r=a},lineEnd:function(){t.lineEnd(),i=n=NaN},clean:function(){return 2-e}}}),(function(t,e,i,n){var r;if(null==t)r=i*QT,n.point(-ZT,r),n.point(0,r),n.point(ZT,r),n.point(ZT,0),n.point(ZT,-r),n.point(0,-r),n.point(-ZT,-r),n.point(-ZT,0),n.point(-ZT,r);else if(nk(t[0]-e[0])>XT){var s=t[0]<e[0]?ZT:-ZT;r=i*s/2,n.point(-s,r),n.point(0,r),n.point(s,r)}else n.point(e[0],e[1])}),[-ZT,-QT]);var JI=function(t){var e=ok(t),i=6*ik,n=e>0,r=nk(e)>XT;function s(t,i){return ok(t)*ok(i)>e}function o(t,i,n){var r=[1,0,0],s=Rk(Lk(t),Lk(i)),o=Vk(s,s),a=s[0],l=o-a*a;if(!l)return!n&&t;var u=e*o/l,h=-e*a/l,c=Rk(r,s),p=Bk(r,u);Nk(p,Bk(s,h));var d=c,f=Vk(p,d),g=Vk(d,d),m=f*f-g*(Vk(p,p)-1);if(!(m<0)){var y=pk(m),v=Bk(d,(-f-y)/g);if(Nk(v,p),v=jk(v),!n)return v;var b,_=t[0],x=i[0],w=t[1],P=i[1];x<_&&(b=_,_=x,x=b);var C=x-_,S=nk(C-ZT)<XT;if(!S&&P<w&&(b=w,w=P,P=b),S||C<XT?S?w+P>0^v[1]<(nk(v[0]-_)<XT?w:P):w<=v[1]&&v[1]<=P:C>ZT^(_<=v[0]&&v[0]<=x)){var O=Bk(d,(-f+y)/g);return Nk(O,p),[v,jk(O)]}}}function a(e,i){var r=n?t:ZT-t,s=0;return e<-r?s|=1:e>r&&(s|=2),i<-r?s|=4:i>r&&(s|=8),s}return qI(s,(function(t){var e,i,l,u,h;return{lineStart:function(){u=l=!1,h=1},point:function(c,p){var d,f=[c,p],g=s(c,p),m=n?g?0:a(c,p):g?a(c+(c<0?ZT:-ZT),p):0;if(!e&&(u=l=g)&&t.lineStart(),g!==l&&(!(d=o(e,f))||LI(e,d)||LI(f,d))&&(f[0]+=XT,f[1]+=XT,g=s(f[0],f[1])),g!==l)h=0,g?(t.lineStart(),d=o(f,e),t.point(d[0],d[1])):(d=o(e,f),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(r&&e&&n^g){var y;m&i||!(y=o(f,e,!0))||(h=0,n?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||e&&LI(e,f)||t.point(f[0],f[1]),e=f,l=g,i=m},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return h|(u&&l)<<1}}}),(function(e,n,r,s){PI(s,t,i,r,e,n)}),n?[0,-t]:[-ZT,t-ZT])};function tM(t,e,i,n){function r(r,s){return t<=r&&r<=i&&e<=s&&s<=n}function s(r,s,a,u){var h=0,c=0;if(null==r||(h=o(r,a))!==(c=o(s,a))||l(r,s)<0^a>0)do{u.point(0===h||3===h?t:i,h>1?n:e)}while((h=(h+a+4)%4)!==c);else u.point(s[0],s[1])}function o(n,r){return nk(n[0]-t)<XT?r>0?0:3:nk(n[0]-i)<XT?r>0?2:1:nk(n[1]-e)<XT?r>0?1:0:r>0?3:2}function a(t,e){return l(t.x,e.x)}function l(t,e){var i=o(t,1),n=o(e,1);return i!==n?i-n:0===i?e[1]-t[1]:1===i?t[0]-e[0]:2===i?t[1]-e[1]:e[0]-t[0]}return function(o){var l,u,h,c,p,d,f,g,m,y,v,b=o,_=jI(),x={point:w,lineStart:function(){x.point=P,u&&u.push(h=[]);y=!0,m=!1,f=g=NaN},lineEnd:function(){l&&(P(c,p),d&&m&&_.rejoin(),l.push(_.result()));x.point=w,m&&b.lineEnd()},polygonStart:function(){b=_,l=[],u=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,i=0,r=u.length;i<r;++i)for(var s,o,a=u[i],l=1,h=a.length,c=a[0],p=c[0],d=c[1];l<h;++l)s=p,o=d,c=a[l],p=c[0],d=c[1],o<=n?d>n&&(p-s)*(n-o)>(d-o)*(t-s)&&++e:d<=n&&(p-s)*(n-o)<(d-o)*(t-s)&&--e;return e}(),i=v&&e,r=(l=YI(l)).length;(i||r)&&(o.polygonStart(),i&&(o.lineStart(),s(null,null,1,o),o.lineEnd()),r&&RI(l,a,e,s,o),o.polygonEnd());b=o,l=u=h=null}};function w(t,e){r(t,e)&&b.point(t,e)}function P(s,o){var a=r(s,o);if(u&&h.push([s,o]),y)c=s,p=o,d=a,y=!1,a&&(b.lineStart(),b.point(s,o));else if(a&&m)b.point(s,o);else{var l=[f=Math.max(-1e9,Math.min(1e9,f)),g=Math.max(-1e9,Math.min(1e9,g))],_=[s=Math.max(-1e9,Math.min(1e9,s)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,e,i,n,r,s){var o,a=t[0],l=t[1],u=0,h=1,c=e[0]-a,p=e[1]-l;if(o=i-a,c||!(o>0)){if(o/=c,c<0){if(o<u)return;o<h&&(h=o)}else if(c>0){if(o>h)return;o>u&&(u=o)}if(o=r-a,c||!(o<0)){if(o/=c,c<0){if(o>h)return;o>u&&(u=o)}else if(c>0){if(o<u)return;o<h&&(h=o)}if(o=n-l,p||!(o>0)){if(o/=p,p<0){if(o<u)return;o<h&&(h=o)}else if(p>0){if(o>h)return;o>u&&(u=o)}if(o=s-l,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>u&&(u=o)}else if(p>0){if(o<u)return;o<h&&(h=o)}return u>0&&(t[0]=a+u*c,t[1]=l+u*p),h<1&&(e[0]=a+h*c,e[1]=l+h*p),!0}}}}}(l,_,t,e,i,n)?a&&(b.lineStart(),b.point(s,o),v=!1):(m||(b.lineStart(),b.point(l[0],l[1])),b.point(_[0],_[1]),a||b.lineEnd(),v=!1)}f=s,g=o,m=a}return x}}var eM=function(t){return t};function iM(t){return function(e){var i=new nM;for(var n in t)i[n]=t[n];return i.stream=e,i}}function nM(){}nM.prototype={constructor:nM,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var rM=1/0,sM=rM,oM=-rM,aM=oM;var lM={point:function(t,e){t<rM&&(rM=t);t>oM&&(oM=t);e<sM&&(sM=e);e>aM&&(aM=e)},lineStart:mk,lineEnd:mk,polygonStart:mk,polygonEnd:mk,result:function(){var t=[[rM,sM],[oM,aM]];return oM=aM=-(sM=rM=1/0),t}};function uM(t,e,i){var n=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=n&&t.clipExtent(null),Dk(i,t.stream(lM)),e(lM.result()),null!=n&&t.clipExtent(n),t}function hM(t,e,i){return uM(t,(function(i){var n=e[1][0]-e[0][0],r=e[1][1]-e[0][1],s=Math.min(n/(i[1][0]-i[0][0]),r/(i[1][1]-i[0][1])),o=+e[0][0]+(n-s*(i[1][0]+i[0][0]))/2,a=+e[0][1]+(r-s*(i[1][1]+i[0][1]))/2;t.scale(150*s).translate([o,a])}),i)}function cM(t,e,i){return hM(t,[[0,0],e],i)}function pM(t,e,i){return uM(t,(function(i){var n=+e,r=n/(i[1][0]-i[0][0]),s=(n-r*(i[1][0]+i[0][0]))/2,o=-r*i[0][1];t.scale(150*r).translate([s,o])}),i)}function dM(t,e,i){return uM(t,(function(i){var n=+e,r=n/(i[1][1]-i[0][1]),s=-r*i[0][0],o=(n-r*(i[1][1]+i[0][1]))/2;t.scale(150*r).translate([s,o])}),i)}var fM=ok(30*ik),gM=function(t,e){return+e?function(t,e){function i(n,r,s,o,a,l,u,h,c,p,d,f,g,m){var y=u-n,v=h-r,b=y*y+v*v;if(b>4*e&&g--){var _=o+p,x=a+d,w=l+f,P=pk(_*_+x*x+w*w),C=fk(w/=P),S=nk(nk(w)-1)<XT||nk(s-c)<XT?(s+c)/2:sk(x,_),O=t(S,C),D=O[0],E=O[1],T=D-n,k=E-r,I=v*T-y*k;(I*I/b>e||nk((y*T+v*k)/b-.5)>.3||o*p+a*d+l*f<fM)&&(i(n,r,s,o,a,l,D,E,S,_/=P,x/=P,w,g,m),m.point(D,E),i(D,E,S,_,x,w,u,h,c,p,d,f,g,m))}}return function(e){var n,r,s,o,a,l,u,h,c,p,d,f,g={point:m,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=_},polygonEnd:function(){e.polygonEnd(),g.lineStart=y}};function m(i,n){i=t(i,n),e.point(i[0],i[1])}function y(){h=NaN,g.point=v,e.lineStart()}function v(n,r){var s=Lk([n,r]),o=t(n,r);i(h,c,u,p,d,f,h=o[0],c=o[1],u=n,p=s[0],d=s[1],f=s[2],16,e),e.point(h,c)}function b(){g.point=m,e.lineEnd()}function _(){y(),g.point=x,g.lineEnd=w}function x(t,e){v(n=t,e),r=h,s=c,o=p,a=d,l=f,g.point=v}function w(){i(h,c,u,p,d,f,r,s,n,o,a,l,16,e),g.lineEnd=b,b()}return g}}(t,e):function(t){return iM({point:function(e,i){e=t(e,i),this.stream.point(e[0],e[1])}})}(t)};var mM=iM({point:function(t,e){this.stream.point(t*ik,e*ik)}});function yM(t,e,i,n,r){function s(s,o){return[e+t*(s*=n),i-t*(o*=r)]}return s.invert=function(s,o){return[(s-e)/t*n,(i-o)/t*r]},s}function vM(t,e,i,n,r,s){var o=ok(s),a=hk(s),l=o*t,u=a*t,h=o/t,c=a/t,p=(a*i-o*e)/t,d=(a*e+o*i)/t;function f(t,s){return[l*(t*=n)-u*(s*=r)+e,i-u*t-l*s]}return f.invert=function(t,e){return[n*(h*t-c*e+p),r*(d-c*t-h*e)]},f}function bM(t){return _M((function(){return t}))()}function _M(t){var e,i,n,r,s,o,a,l,u,h,c=150,p=480,d=250,f=0,g=0,m=0,y=0,v=0,b=0,_=1,x=1,w=null,P=QI,C=null,S=eM,O=.5;function D(t){return l(t[0]*ik,t[1]*ik)}function E(t){return(t=l.invert(t[0],t[1]))&&[t[0]*ek,t[1]*ek]}function T(){var t=vM(c,0,0,_,x,b).apply(null,e(f,g)),n=(b?vM:yM)(c,p-t[0],d-t[1],_,x,b);return i=bI(m,y,v),a=yI(e,n),l=yI(i,a),o=gM(a,O),k()}function k(){return u=h=null,D}return D.stream=function(t){return u&&h===t?u:u=mM(function(t){return iM({point:function(e,i){var n=t(e,i);return this.stream.point(n[0],n[1])}})}(i)(P(o(S(h=t)))))},D.preclip=function(t){return arguments.length?(P=t,w=void 0,k()):P},D.postclip=function(t){return arguments.length?(S=t,C=n=r=s=null,k()):S},D.clipAngle=function(t){return arguments.length?(P=+t?JI(w=t*ik):(w=null,QI),k()):w*ek},D.clipExtent=function(t){return arguments.length?(S=null==t?(C=n=r=s=null,eM):tM(C=+t[0][0],n=+t[0][1],r=+t[1][0],s=+t[1][1]),k()):null==C?null:[[C,n],[r,s]]},D.scale=function(t){return arguments.length?(c=+t,T()):c},D.translate=function(t){return arguments.length?(p=+t[0],d=+t[1],T()):[p,d]},D.center=function(t){return arguments.length?(f=t[0]%360*ik,g=t[1]%360*ik,T()):[f*ek,g*ek]},D.rotate=function(t){return arguments.length?(m=t[0]%360*ik,y=t[1]%360*ik,v=t.length>2?t[2]%360*ik:0,T()):[m*ek,y*ek,v*ek]},D.angle=function(t){return arguments.length?(b=t%360*ik,T()):b*ek},D.reflectX=function(t){return arguments.length?(_=t?-1:1,T()):_<0},D.reflectY=function(t){return arguments.length?(x=t?-1:1,T()):x<0},D.precision=function(t){return arguments.length?(o=gM(a,O=t*t),k()):pk(O)},D.fitExtent=function(t,e){return hM(D,t,e)},D.fitSize=function(t,e){return cM(D,t,e)},D.fitWidth=function(t,e){return pM(D,t,e)},D.fitHeight=function(t,e){return dM(D,t,e)},function(){return e=t.apply(this,arguments),D.invert=e.invert&&E,T()}}function xM(t,e){return[t,e]}xM.invert=xM;var wM,PM,CM,SM,OM=$T(),DM=$T(),EM={point:mk,lineStart:mk,lineEnd:mk,polygonStart:function(){EM.lineStart=TM,EM.lineEnd=MM},polygonEnd:function(){EM.lineStart=EM.lineEnd=EM.point=mk,OM.add(nk(DM)),DM.reset()},result:function(){var t=OM/2;return OM.reset(),t}};function TM(){EM.point=kM}function kM(t,e){EM.point=IM,wM=CM=t,PM=SM=e}function IM(t,e){DM.add(SM*t-CM*e),CM=t,SM=e}function MM(){IM(wM,PM)}var FM,AM,jM,LM,VM=EM,RM=0,NM=0,BM=0,HM=0,zM=0,UM=0,WM=0,GM=0,$M=0,KM={point:YM,lineStart:qM,lineEnd:QM,polygonStart:function(){KM.lineStart=JM,KM.lineEnd=tF},polygonEnd:function(){KM.point=YM,KM.lineStart=qM,KM.lineEnd=QM},result:function(){var t=$M?[WM/$M,GM/$M]:UM?[HM/UM,zM/UM]:BM?[RM/BM,NM/BM]:[NaN,NaN];return RM=NM=BM=HM=zM=UM=WM=GM=$M=0,t}};function YM(t,e){RM+=t,NM+=e,++BM}function qM(){KM.point=XM}function XM(t,e){KM.point=ZM,YM(jM=t,LM=e)}function ZM(t,e){var i=t-jM,n=e-LM,r=pk(i*i+n*n);HM+=r*(jM+t)/2,zM+=r*(LM+e)/2,UM+=r,YM(jM=t,LM=e)}function QM(){KM.point=YM}function JM(){KM.point=eF}function tF(){iF(FM,AM)}function eF(t,e){KM.point=iF,YM(FM=jM=t,AM=LM=e)}function iF(t,e){var i=t-jM,n=e-LM,r=pk(i*i+n*n);HM+=r*(jM+t)/2,zM+=r*(LM+e)/2,UM+=r,WM+=(r=LM*t-jM*e)*(jM+t),GM+=r*(LM+e),$M+=3*r,YM(jM=t,LM=e)}var nF=KM;function rF(t){this._context=t}rF.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,tk)}},result:mk};var sF,oF,aF,lF,uF,hF=$T(),cF={point:mk,lineStart:function(){cF.point=pF},lineEnd:function(){sF&&dF(oF,aF),cF.point=mk},polygonStart:function(){sF=!0},polygonEnd:function(){sF=null},result:function(){var t=+hF;return hF.reset(),t}};function pF(t,e){cF.point=dF,oF=lF=t,aF=uF=e}function dF(t,e){lF-=t,uF-=e,hF.add(pk(lF*lF+uF*uF)),lF=t,uF=e}var fF=cF;function gF(){this._string=[]}function mF(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}gF.prototype={_radius:4.5,_circle:mF(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=mF(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var yF,vF,bF,_F=$T(),xF={sphere:mk,point:mk,lineStart:function(){xF.point=PF,xF.lineEnd=wF},lineEnd:mk,polygonStart:mk,polygonEnd:mk};function wF(){xF.point=xF.lineEnd=mk}function PF(t,e){yF=t*=ik,vF=hk(e*=ik),bF=ok(e),xF.point=CF}function CF(t,e){t*=ik;var i=hk(e*=ik),n=ok(e),r=nk(t-yF),s=ok(r),o=n*hk(r),a=bF*i-vF*n*s,l=vF*i+bF*n*s;_F.add(sk(pk(o*o+a*a),l)),yF=t,vF=i,bF=n}var SF=[null,null],OF={type:"LineString",coordinates:SF},DF=function(t,e){return SF[0]=t,SF[1]=e,i=OF,_F.reset(),Dk(i,xF),+_F;var i},EF=function(){function t(){this.d3Projection=bM(xM).scale(152.63)}return Object.defineProperty(t.prototype,"d3Projection",{get:function(){return this._d3Projection},set:function(t){this._d3Projection=t,t.precision(.1),this._d3Path=function(t,e){var i,n,r=4.5;function s(t){return t&&("function"==typeof r&&n.pointRadius(+r.apply(this,arguments)),Dk(t,i(n))),n.result()}return s.area=function(t){return Dk(t,i(VM)),VM.result()},s.measure=function(t){return Dk(t,i(fF)),fF.result()},s.bounds=function(t){return Dk(t,i(lM)),lM.result()},s.centroid=function(t){return Dk(t,i(nF)),nF.result()},s.projection=function(e){return arguments.length?(i=null==e?(t=null,eM):(t=e).stream,s):t},s.context=function(t){return arguments.length?(n=null==t?(e=null,new gF):new rF(e=t),"function"!=typeof r&&n.pointRadius(r),s):e},s.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(n.pointRadius(+t),+t),s):r},s.projection(t).context(e)}().projection(t),this.chart&&this.chart.invalidateProjection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"d3Path",{get:function(){return this._d3Path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this.d3Projection.scale()/100},enumerable:!0,configurable:!0}),t.prototype.convert=function(t){var e=this.d3Projection([t.longitude,t.latitude]);if(e)return{x:e[0],y:e[1]}},t.prototype.invert=function(t){var e=this.d3Projection.invert([t.x,t.y]);if(e)return{longitude:e[0],latitude:e[1]}},t.prototype.project=function(t,e){return this.convert({longitude:t*jP,latitude:e*jP})},t.prototype.unproject=function(t,e){return this.invert({x:t,y:e})},t.prototype.rotate=function(t,e,i,n){var r=e*AP,s=i*AP;n*=AP;var o=t.longitude*AP+r,a=t.latitude*AP,l=Math.cos(s),u=Math.sin(s),h=Math.cos(n),c=Math.sin(n),p=Math.cos(a),d=Math.cos(o)*p,f=Math.sin(o)*p,g=Math.sin(a),m=g*l+d*u;return{longitude:jP*Math.atan2(f*h-m*c,d*l-g*u),latitude:jP*Math.asin(m*h+f*c)}},t.prototype.unrotate=function(t,e,i,n){var r=e*AP,s=i*AP;n*=AP;var o=t.longitude*AP-r,a=t.latitude*AP,l=Math.cos(s),u=Math.sin(s),h=Math.cos(n),c=Math.sin(n),p=Math.cos(a),d=Math.cos(o)*p,f=Math.sin(o)*p,g=Math.sin(a),m=g*h-f*c;return{longitude:jP*Math.atan2(f*h+g*c,d*l+m*u),latitude:jP*Math.asin(m*l-d*u)}},t.prototype.intermediatePoint=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,y,v,b,_=(n=[t.longitude,t.latitude],r=[e.longitude,e.latitude],s=n[0]*ik,o=n[1]*ik,a=r[0]*ik,l=r[1]*ik,u=ok(o),h=hk(o),c=ok(l),p=hk(l),d=u*ok(s),f=u*hk(s),g=c*ok(a),m=c*hk(a),y=2*fk(pk(gk(l-o)+u*c*gk(a-s))),v=hk(y),(b=y?function(t){var e=hk(t*=y)/v,i=hk(y-t)/v,n=i*d+e*g,r=i*f+e*m,s=i*h+e*p;return[sk(r,n)*ek,sk(s,pk(n*n+r*r))*ek]}:function(){return[s*ek,o*ek]}).distance=y,b)(i);return{longitude:_[0],latitude:_[1]}},t.prototype.multiDistance=function(t){for(var e=0,i=0;i<t.length;i++){var n=t[i];if(n.length>1)for(var r=1;r<n.length;r++){var s=n[r-1],o=n[r];e+=this.distance(s,o)}}return e},t.prototype.distance=function(t,e){return DF([t.longitude,t.latitude],[e.longitude,e.latitude])},t.prototype.positionToPoint=function(t,e){if(t){var i=this.positionToGeoPoint(t,e),n=this.positionToGeoPoint(t,e-.01),r=this.positionToGeoPoint(t,e+.01);if(n&&r){var s=this.convert(i),o=this.convert(n),a=this.convert(r);return{x:s.x,y:s.y,angle:qP(o,a)}}}return{x:0,y:0,angle:0}},t.prototype.positionToGeoPoint=function(t,e){if(t){for(var i=this.multiDistance(t),n=0,r=0,s=0,o=void 0,a=void 0,l=0;l<t.length;l++){var u=t[l];if(u.length>1){for(var h=1;h<u.length;h++)if(o=u[h-1],a=u[h],r=n/i,s=(n+=this.distance(o,a))/i,r<=e&&s>e){l=t.length;break}}else 1==u.length&&(o=u[0],a=u[0],r=0,s=1)}if(o&&a){var c=(e-r)/(s-r);return this.intermediatePoint(o,a,c)}}return{longitude:0,latitude:0}},t}();rS.registeredClasses.Projection=EF;var TF=function(t){function e(){var e=t.call(this)||this;e._chart=new PC,e.className="SmallMap",e.align="left",e.valign="bottom",e.percentHeight=20,e.percentWidth=20,e.margin(5,5,5,5);var i=new nD;e.background.fillOpacity=.9,e.background.fill=i.getFor("background"),e.events.on("hit",e.moveToPosition,e,!1),e.events.on("maxsizechanged",e.updateMapSize,e,!1),e.seriesContainer=e.createChild(ZD),e.seriesContainer.shouldClone=!1;var n=e.createChild(XD);return n.shouldClone=!1,n.stroke=i.getFor("alternativeBackground"),n.strokeWidth=1,n.strokeOpacity=.5,n.fill=DS(),n.verticalCenter="middle",n.horizontalCenter="middle",n.isMeasured=!1,n.visible=!1,e.rectangle=n,e._disposers.push(e._chart),e.applyTheme(),e}return uP(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new uS,this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=t.newValue;if(this.chart.series.contains(e)){var i=e.clone();this._series.removeValue(e),this._series.push(i),e=i,this.chart.dataUsers.push(i)}e.chart=this.chart,e.parent=this.seriesContainer,e.interactionsEnabled=!1,e.events.on("inited",this.updateMapSize,this,!1),e.hidden=!1},e.prototype.handleSeriesRemoved=function(t){this.invalidate()},e.prototype.moveToPosition=function(t){var e=sO(t.spritePoint,this,this.seriesContainer),i=this.chart.seriesPointToGeo(e);this.chart.zoomToGeoPoint(i,this.chart.zoomLevel,!0)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this.chart!=t&&this._chart.set(t,new wC([t.events.on("mappositionchanged",this.updateRectangle,this,!1),t.events.on("scaleratiochanged",this.updateMapSize,this,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateRectangle=function(){var t=this.chart,e=t.zoomLevel,i=this.rectangle;i.width=this.pixelWidth/e,i.height=this.pixelHeight/e;var n=Math.min(this.percentWidth,this.percentHeight)/100,r=t.seriesContainer;i.x=Math.ceil(-r.pixelX*n/e)+this.seriesContainer.pixelX,i.y=Math.ceil(-r.pixelY*n/e)+this.seriesContainer.pixelY,i.validate()},e.prototype.updateMapSize=function(){if(this.chart){var t=this.chart.scaleRatio*Math.min(this.percentWidth,this.percentHeight)/100;this.seriesContainer.scale=t;var e={width:0,height:0,x:0,y:0};try{e=this.seriesContainer.group.node.getBBox()}catch(i){}e.width>0&&(this.rectangle.visible=!0),this.seriesContainer.x=this.pixelWidth/2-e.x*t-e.width/2*t,this.seriesContainer.y=this.pixelHeight/2-e.y*t-e.height/2*t,this.updateRectangle(),this.afterDraw()}},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.rectangle.maskRectangle={x:-1,y:-1,width:Math.ceil(this.pixelWidth+2),height:Math.ceil(this.pixelHeight+2)}},e.prototype.processConfig=function(e){if(e&&CP(e.series)&&IP(e.series))for(var i=0,n=e.series.length;i<n;i++){var r=e.series[i];CP(r)&&EP(r)&&this.map.hasKey(r)&&(e.series[i]=this.map.getKey(r))}t.prototype.processConfig.call(this,e)},e}(ZD);function kF(t){return lC(t,(function(t){lC(t,(function(t){var e,i,n,r;i=IF((e=t).longitude),n=Math.asin(Math.sin(e.latitude*AP))*jP,r=IF(e.latitude),Math.abs(r)>90&&(i=IF(i+180)),e.longitude=i,e.latitude=n}))})),t}function IF(t){return(t%=360)>180&&(t-=360),t<-180&&(t+=360),t}rS.registeredClasses.SmallMap=TF;var MF=function(t){function e(){var e=t.call(this)||this;return e.adjustRotation=!0,e.className="MapLineObject",e.isMeasured=!1,e.layout="none",e.applyTheme(),e}return uP(e,t),e.prototype.validatePosition=function(){var e=this.mapLine;if(e){var i=e.positionToPoint(this.position);if(this.x=i.x,this.y=i.y,this.adjustRotation&&(this.rotation=i.angle),this.mapLine.dataItem){var n=this.mapLine.dataItem.component;this.scale=1/n.scale}if(e.shortestDistance){var r=this.mapLine.series.chart.projection,s=r.positionToGeoPoint(e.multiGeoLine,this.position),o=r.d3Path({type:"Point",coordinates:[s.longitude,s.latitude]});this.__disabled=!o}}t.prototype.validatePosition.call(this)},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustRotation",{get:function(){return this.getPropertyValue("adjustRotation")},set:function(t){this.setPropertyValue("adjustRotation",t,!1,!0)},enumerable:!0,configurable:!0}),e}(ZD);rS.registeredClasses.MapLineObject=MF;var FF=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeriesDataItem",e.applyTheme(),e}return uP(e,t),e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:this.point}}},Object.defineProperty(e.prototype,"mapImage",{get:function(){var t=this;if(!this._mapImage){var e=this.component.mapImages.create();this.addSprite(e),this._mapImage=e,this._disposers.push(e),this._disposers.push(new xC((function(){t.component&&t.component.mapImages.removeValue(e)}))),this.mapObject=e}return this._mapImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"point",{get:function(){return this._point},set:function(t){this._point=t,this._geoPoint=EI(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPoint",{get:function(){return[this._point]},set:function(t){this._point=t[0],this._geoPoint=EI(this._point),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPoint",{get:function(){return this._geoPoint},set:function(t){this._geoPoint=t,this.point=[t.longitude,t.latitude]},enumerable:!0,configurable:!0}),e}(cI),AF=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeries",e.dataFields.multiPoint="multiPoint",e.dataFields.point="point",e.dataFields.geoPoint="geoPoint",e.dataFields.multiGeoPoint="multiGeoPoint",e.ignoreBounds=!0,e.applyTheme(),e}return uP(e,t),e.prototype.createDataItem=function(){return new FF},e.prototype.validateData=function(){var e=this;if(this.data.length>0&&0==this._parseDataFrom&&this.mapImages.clear(),this.useGeodata&&(this.useGeodata||this.geodata)){var i=this.chart.geodata,n=void 0;if("FeatureCollection"==i.type?n=i.features:"Feature"==i.type?n=[i]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(i.type)?n=[{geometry:i}]:console.log("nothing found in geoJSON"),n)for(var r=function(t,e){var i=n[t],r=i.geometry;if(r){var o=r.type,a=i.id;if("Point"==o||"MultiPoint"==o){if(!s.checkInclude(s.include,s.exclude,a))return"continue";var l=r.coordinates;"Point"==o&&(l=[l]);var u=bC(s.data,(function(t,e){return t.id==a}));u?u.multiPoint||(u.multiPoint=l):(u={multiPoint:l,id:a,madeFromGeoData:!0},s.data.push(u)),AS(i.properties,u)}}},s=this,o=0,a=n.length;o<a;o++)r(o)}t.prototype.validateData.call(this),KC(this.dataItems.iterator(),(function(t){var i=t.mapImage;i.isDisposed()||(e.mapImages.moveValue(i),TP(i.latitude)&&TP(i.latitude)&&(t.geoPoint={latitude:i.latitude,longitude:i.longitude}))}))},Object.defineProperty(e.prototype,"mapImages",{get:function(){if(!this._mapImages){var t=new fI,e=new hS(t);this._disposers.push(new aS(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapImages=e,this._mapObjects=e}return this._mapImages},enumerable:!0,configurable:!0}),e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.mapImage.invalidate()},e.prototype.validate=function(){t.prototype.validate.call(this),KC(this.mapImages.iterator(),(function(t){t.validatePosition()}))},e.prototype.copyFrom=function(e){this.mapImages.template.copyFrom(e.mapImages.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each((function(t){var i=t.getFeature();i&&e.push(i)})),this.mapImages.each((function(i){if(-1==t.dataItems.indexOf(i._dataItem)){var n=i.getFeature();n&&e.push(n)}})),e},e.prototype.getImageById=function(t){return XC(this.mapImages.iterator(),(function(e){var i=e.dataItem.dataContext;if(e.id==t||i&&i.id==t)return!0}))},e}(pI);rS.registeredClasses.MapImageSeries=AF,rS.registeredClasses.MapImageSeriesDataItem=FF;var jF=function(t){function e(){var e=t.call(this)||this;e._imageListeners={},e.className="MapLine",e.createLine(),e.line.stroke=DS(),e.line.parent=e,e.strokeOpacity=1,e.setPropertyValue("precision",.1);var i=new nD;return e.stroke=i.getFor("grid"),e.shortestDistance=!0,e.applyTheme(),e}return uP(e,t),e.prototype.createLine=function(){this.line=new CE},e.prototype.positionToPoint=function(t){return this.shortestDistance?this.series.chart.projection.positionToPoint(this.multiGeoLine,t):this.line?this.line.positionToPoint(t):{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){var t=this.getPropertyValue("multiGeoLine");return!t&&this.dataItem&&this.dataItem.multiGeoLine&&(t=this.dataItem.multiGeoLine),t},set:function(t){if(t&&t.length>0){this.setPropertyValue("multiGeoLine",kF(t),!0);var e=kI(t);this.setPropertyValue("multiLine",e),this.updateExtremes()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){var t=this.getPropertyValue("multiLine");return!t&&this.dataItem&&this.dataItem.multiLine&&(t=this.dataItem.multiLine),t},set:function(t){this.setPropertyValue("multiLine",t),this.multiGeoLine=SI(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imagesToConnect",{get:function(){return this.getPropertyValue("imagesToConnect")},set:function(t){var e=this;if(this.setPropertyValue("imagesToConnect",t,!0),this.handleImagesToConnect(),this.series){var i=this.series.chart;i&&i.series.each((function(t){t instanceof AF&&(t.isReady()||e._disposers.push(t.events.on("ready",e.handleImagesToConnect,e,!1)))}))}},enumerable:!0,configurable:!0}),e.prototype.handleImagesToConnect=function(){var t,e,i=this;if(this.imagesToConnect){var n=[],r=[n],s=function(t){if(EP(t)){var e=o.series.chart;e&&e.series.each((function(e){if(e instanceof AF){var i=e.getImageById(t);i&&(t=i)}}))}if(t instanceof fI&&(n.push({longitude:t.longitude,latitude:t.latitude}),!o._imageListeners[t.uid])){var r=t.events.on("propertychanged",(function(t){"longitude"!=t.property&&"latitude"!=t.property||(i.handleImagesToConnect(),i.invalidate())}),o,!1);o._imageListeners[t.uid]=r,o._disposers.push(r)}},o=this;try{for(var a=pP(this.imagesToConnect),l=a.next();!l.done;l=a.next()){s(l.value)}}catch(u){t={error:u}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}this.multiGeoLine=r}},e.prototype.validate=function(){var e=this.series.chart;if(this.multiLine){if(this.shortestDistance)e.projection.d3Projection.precision(this.precision),this.line.path=e.projection.d3Path(this.getFeature());else{for(var i=[],n=0,r=this.multiLine.length;n<r;n++){for(var s=this.multiLine[n],o=[],a=0,l=s.length;a<l;a++){var u=s[a],h=this.series.chart.projection.convert({longitude:u[0],latitude:u[1]});o.push(h)}i.push(o)}this.line.segments=i}this._arrow&&this._arrow.validatePosition(),KC(this.lineObjects.iterator(),(function(t){t.validatePosition()})),this.handleGlobalScale()}else this.imagesToConnect&&this.handleImagesToConnect();t.prototype.validate.call(this)},e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0&&this.multiLine[0]&&this.multiLine[0].length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return this.getPropertyValue("shortestDistance")},set:function(t){this.setPropertyValue("shortestDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineObjects",{get:function(){return this._lineObjects||(this._lineObjects=new hS(new MF),this._lineObjects.events.on("inserted",this.handleLineObjectAdded,this,!1),this._disposers.push(new aS(this._lineObjects)),this._disposers.push(this._lineObjects.template)),this._lineObjects},enumerable:!0,configurable:!0}),e.prototype.handleLineObjectAdded=function(t){var e=t.newValue;e.mapLine=this,e.shouldClone=!1,e.parent=this},Object.defineProperty(e.prototype,"arrow",{get:function(){if(!this._arrow){var t=this.createChild(MF);t.shouldClone=!1,t.width=8,t.height=10,t.mapLine=this,t.position=.5;var e=t.createChild(HE);e.fillOpacity=1,e.width=mP(100),e.height=mP(100),e.rotation=90,e.horizontalCenter="middle",e.verticalCenter="middle",this._arrow=t}return this._arrow},set:function(t){this._arrow=t,t.mapLine=this,t.parent=this},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.line.copyFrom(e.line),this.lineObjects.copyFrom(e.lineObjects),e._arrow&&(this.arrow=e.arrow.clone())},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return t instanceof gP||(t=mP(50)),t instanceof gP?this.positionToPoint(t.value).x:0},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");return t instanceof gP||(t=mP(50)),t instanceof gP?this.positionToPoint(t.value).y:0},Object.defineProperty(e.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(t){this.setPropertyValue("precision",t,!0)},enumerable:!0,configurable:!0}),e}(dI);rS.registeredClasses.MapLine=jF;var LF=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeriesDataItem",e.applyTheme(),e}return uP(e,t),e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},Object.defineProperty(e.prototype,"mapLine",{get:function(){var t=this;if(!this._mapLine){var e=this.component.mapLines.create();this._mapLine=e,this.addSprite(e),this._disposers.push(e),this._disposers.push(new xC((function(){t.component&&t.component.mapLines.removeValue(e)}))),this.mapObject=e}return this._mapLine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t,this.multiLine=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){return this._multiLine},set:function(t){this._multiLine=t,this._multiGeoLine=SI(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoLine",{get:function(){return this._geoLine},set:function(t){this._geoLine=t,this.multiLine=kI([t])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){return this._multiGeoLine},set:function(t){this._multiGeoLine=t,this.multiLine=kI(t)},enumerable:!0,configurable:!0}),e}(cI),VF=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeries",e.dataFields.multiLine="multiLine",e.dataFields.line="line",e.dataFields.geoLine="geoLine",e.dataFields.multiGeoLine="multiGeoLine",e.ignoreBounds=!0,e.applyTheme(),e}return uP(e,t),e.prototype.createDataItem=function(){return new LF},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this.chart.geodata;if(e){var i=void 0;if("FeatureCollection"==e.type?i=e.features:"Feature"==e.type?i=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?i=[{geometry:e}]:console.log("nothing found in geoJSON"),i)for(var n=function(t,e){var n=i[t],s=n.geometry;if(s){var o=s.type,a=n.id;if("LineString"==o||"MultiLineString"==o){if(!r.checkInclude(r.include,r.exclude,a))return"continue";var l=s.coordinates,u=bC(r.data,(function(t,e){return t.id==a}));"LineString"==o&&(l=[l]),u?u.multiLine||(u.multiLine=l):(u={multiLine:l,id:a,madeFromGeoData:!0},r.data.push(u)),AS(n.properties,u)}}},r=this,s=0,o=i.length;s<o;s++)n(s)}}t.prototype.validateData.call(this)},Object.defineProperty(e.prototype,"mapLines",{get:function(){if(!this._mapLines){var t=this.createLine(),e=new hS(t);this._disposers.push(new aS(e)),this._disposers.push(e.template),e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapLines=e,this._mapObjects=e}return this._mapLines},enumerable:!0,configurable:!0}),e.prototype.createLine=function(){return new jF},e.prototype.validate=function(){this.dataItems.each((function(t){t.mapLine})),t.prototype.validate.call(this),this.mapLines.each((function(t){t.validate()}))},e.prototype.copyFrom=function(e){this.mapLines.template.copyFrom(e.mapLines.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each((function(t){var i=t.getFeature();i&&e.push(i)})),this.mapLines.each((function(i){if(-1==t.dataItems.indexOf(i._dataItem)){var n=i.getFeature();n&&e.push(n)}})),e},e.prototype.getLineById=function(t){return XC(this.mapLines.iterator(),(function(e){return e.dataItem.dataContext.id==t}))},e}(pI);rS.registeredClasses.MapLineSeries=VF,rS.registeredClasses.MapLineSeriesDataItem=LF;var RF=function(t){function e(){var e=t.call(this)||this;return e.className="Graticule",e.applyTheme(),e.shortestDistance=!0,e}return uP(e,t),e}(jF);function NF(t,e,i){var n=KI(t,e-XT,i).concat(e);return function(t){return n.map((function(e){return[t,e]}))}}function BF(t,e,i){var n=KI(t,e-XT,i).concat(e);return function(t){return n.map((function(e){return[e,t]}))}}function HF(){var t,e,i,n,r,s,o,a,l,u,h,c,p=10,d=p,f=90,g=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return KI(ak(n/f)*f,i,f).map(h).concat(KI(ak(a/g)*g,o,g).map(c)).concat(KI(ak(e/p)*p,t,p).filter((function(t){return nk(t%f)>XT})).map(l)).concat(KI(ak(s/d)*d,r,d).filter((function(t){return nk(t%g)>XT})).map(u))}return y.lines=function(){return v().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[h(n).concat(c(o).slice(1),h(i).reverse().slice(1),c(a).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(n=+t[0][0],i=+t[1][0],a=+t[0][1],o=+t[1][1],n>i&&(t=n,n=i,i=t),a>o&&(t=a,a=o,o=t),y.precision(m)):[[n,a],[i,o]]},y.extentMinor=function(i){return arguments.length?(e=+i[0][0],t=+i[1][0],s=+i[0][1],r=+i[1][1],e>t&&(i=e,e=t,t=i),s>r&&(i=s,s=r,r=i),y.precision(m)):[[e,s],[t,r]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(f=+t[0],g=+t[1],y):[f,g]},y.stepMinor=function(t){return arguments.length?(p=+t[0],d=+t[1],y):[p,d]},y.precision=function(p){return arguments.length?(m=+p,l=NF(s,r,90),u=BF(e,t,m),h=NF(a,o,90),c=BF(n,i,m),y):m},y.extentMajor([[-180,-90+XT],[180,90-XT]]).extentMinor([[-180,-80-XT],[180,80+XT]])}rS.registeredClasses.Graticule=RF;var zF=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeriesDataItem",e.applyTheme(),e}return uP(e,t),e}(LF),UF=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeries",e.longitudeStep=10,e.latitudeStep=10,e.north=90,e.south=-90,e.east=-180,e.west=180,e.fitExtent=!0,e.singleSprite=!0,e.events.disableType("geoBoundsChanged"),e.mapLines.template.line.strokeOpacity=.08,e.ignoreBounds=!1,e.hiddenInLegend=!0,e.applyTheme(),e}return uP(e,t),e.prototype.createDataItem=function(){return new zF},e.prototype.validateData=function(){var e=this;t.prototype.validateData.call(this),this.mapLines.clear();var i=HF();if(i){i.stepMinor([this.longitudeStep,this.latitudeStep]),i.stepMajor([360,360]);var n=this.chart;if(this.fitExtent?i.extent([[n.east,n.north],[n.west,n.south]]):i.extent([[this.east,this.north],[this.west,this.south]]),this.singleSprite)this.mapLines.create().multiLine=i().coordinates;else lC(i.lines(),(function(t){e.mapLines.create().multiLine=[t.coordinates]}))}},e.prototype.createLine=function(){return new RF},Object.defineProperty(e.prototype,"latitudeStep",{get:function(){return this.getPropertyValue("latitudeStep")},set:function(t){this.setPropertyValue("latitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitudeStep",{get:function(){return this.getPropertyValue("longitudeStep")},set:function(t){this.setPropertyValue("longitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitExtent",{get:function(){return this.getPropertyValue("fitExtent")},set:function(t){this.setPropertyValue("fitExtent",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"singleSprite",{get:function(){return this.getPropertyValue("singleSprite")},set:function(t){this.setPropertyValue("singleSprite",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e}(VF);rS.registeredClasses.GraticuleSeries=UF,rS.registeredClasses.GraticuleSeriesDataItem=zF;!function(t){function e(){var e=t.call(this)||this;return e.className="MapChartDataItem",e.applyTheme(),e}uP(e,t)}(WT);var WF=function(t){function e(){var e=t.call(this)||this;e.scaleRatio=1,e.zoomDuration=1e3,e.zoomEasing=xO,e.minZoomLevel=1,e.maxZoomLevel=32,e._prevZoomGeoPoint={latitude:0,longitude:0},e.className="MapChart",e.projection=new EF,e.setPropertyValue("deltaLatitude",0),e.setPropertyValue("deltaLongitude",0),e.setPropertyValue("deltaGamma",0),e.maxPanOut=.7,e.homeZoomLevel=1,e.zoomStep=2,e.layout="absolute",e.centerMapOnZoomOut=!0,e.padding(0,0,0,0),e.backgroundSeries,e.minWidth=10,e.minHeight=10,e.events.once("inited",e.handleAllInited,e,!1);var i=e.seriesContainer;i.visible=!1,i.inert=!0,i.resizable=!0,i.events.on("transformed",e.handleMapTransform,e,!1),i.events.on("doublehit",e.handleDoubleHit,e,!1),i.events.on("dragged",e.handleDrag,e,!1),i.zIndex=0,i.dragWhileResize=!0,e.events.on("maxsizechanged",(function(t){0!=t.previousWidth&&0!=t.previousHeight||(e.updateExtremes(),e.updateCenterGeoPoint())}),void 0,!1);var n=e.chartContainer;n.parent=e,n.zIndex=-1,e._disposers.push(e.events.on("maxsizechanged",(function(){if(e.inited){e._mapAnimation&&e._mapAnimation.stop();var t=!0;e.series.each((function(e){e.updateTooltipBounds(),e.inited&&!e.dataInvalid||(t=!1)})),t&&e.updateScaleRatio(),e.zoomToGeoPoint(e._zoomGeoPointReal,e.zoomLevel,!0,0)}}),void 0,!1));var r=n.background;r.fillOpacity=0,r.events.on("down",(function(t){e.seriesContainer.dragStart(t.target.interactions.downPointers.getIndex(0))}),e),r.events.on("up",(function(t){e.seriesContainer.dragStop()}),e),r.events.on("doublehit",e.handleDoubleHit,e),r.focusable=!0,n.events.on("down",e.handleMapDown,e,!1),e.background.fillOpacity=0,e._disposers.push(dD().body.events.on("keyup",(function(t){if(e.topParent.hasFocused&&(!e._zoomControl||!e._zoomControl.thumb.isFocused))switch(uD.getEventKey(t.event)){case"up":e.pan({x:0,y:.1});break;case"down":e.pan({x:0,y:-.1});break;case"left":e.pan({x:.1,y:0});break;case"right":e.pan({x:-.1,y:0})}}),e)),e.mouseWheelBehavior="zoom";var s=dD();e._disposers.push(s.body.events.on("down",e.handlePanDown,e)),e._disposers.push(s.body.events.on("up",e.handlePanUp,e));var o=e.seriesContainer.createChild(dE);return o.radius=10,o.inert=!0,o.isMeasured=!1,o.events.on("transformed",e.handlePanMove,e,!1),o.interactionsEnabled=!1,o.opacity=0,o.x=0,o.y=0,e.panSprite=o,e.panBehavior="move",e.applyTheme(),e}return uP(e,t),e.prototype.handlePanDown=function(t){var e=aO(t.pointer.point,this.htmlContainer);e.x>0&&e.y>0&&e.x<this.svgContainer.width&&e.y<this.svgContainer.height&&(this._downPointOrig=lO(t.pointer.point,this.seriesContainer),this.panSprite.moveTo(this._downPointOrig),this.panSprite.dragStart(t.pointer),this._downDeltaLongitude=this.deltaLongitude,this._downDeltaLatitude=this.deltaLatitude)},e.prototype.handlePanUp=function(t){this._downPointOrig&&this.panSprite.dragStop(t.pointer,!0),this._downPointOrig=void 0},e.prototype.handlePanMove=function(){if(!this.seriesContainer.isResized){if(dD().areTransformed([this.panSprite.interactions,this.seriesContainer.interactions]))return;var t=this.projection.d3Projection,e=this.panBehavior;if("move"!=e&&"none"!=e&&this._downPointOrig&&t.rotate){var i=t.rotate(),n=i[0],r=i[1],s=i[2];t.rotate([0,0,0]);var o=this.projection.invert(this._downPointOrig),a={x:this.panSprite.pixelX,y:this.panSprite.pixelY},l=void 0;a&&(l=this.projection.invert(a)),t.rotate([n,r,s]),l&&("rotateLat"!=e&&"rotateLongLat"!=e||(this.deltaLatitude=this._downDeltaLatitude+l.latitude-o.latitude),"rotateLong"!=e&&"rotateLongLat"!=e||(this.deltaLongitude=this._downDeltaLongitude+l.longitude-o.longitude))}}},e.prototype.handleAllInited=function(){var t=this,e=!0;if(this.seriesContainer.visible=!0,this.series.each((function(t){t.inited&&!t.dataInvalid||(e=!1)})),e)this.updateCenterGeoPoint(),this.updateScaleRatio(),this.goHome(0);else{var i=rS.events.once("exitframe",(function(){t.removeDispose(i),t.handleAllInited()}),this,!1);this.addDisposer(i)}},e.prototype.updateZoomGeoPoint=function(){var t=nO({x:this.innerWidth/2+this.pixelPaddingLeft,y:this.innerHeight/2+this.pixelPaddingTop},this.series.getIndex(0)),e=this.projection.invert(t);this._zoomGeoPointReal=e},e.prototype.updateCenterGeoPoint=function(){var t,e,i,n;if(this.backgroundSeries){var r=this.backgroundSeries.getFeatures();if(r.length>0){var s=this.projection.d3Path.bounds(r[0].geometry);t=s[0][0],i=s[0][1],e=s[1][0],n=s[1][1]}}else this.series.each((function(r){var s=r.group.node.getBBox();(t>s.x||!TP(t))&&(t=s.x),(e<s.x+s.width||!TP(e))&&(e=s.x+s.width),(i>s.y||!TP(i))&&(i=s.y),(n<s.y+s.height||!TP(n))&&(n=s.y+s.height)}));this.seriesMaxLeft=t,this.seriesMaxRight=e,this.seriesMaxTop=i,this.seriesMaxBottom=n,this.seriesWidth=e-t,this.seriesHeight=n-i,this.seriesWidth>0&&this.seriesHeight>0?(this.chartContainer.visible=!0,this._centerGeoPoint=this.projection.invert({x:t+(e-t)/2,y:i+(n-i)/2}),this._zoomGeoPointReal&&TP(this._zoomGeoPointReal.latitude)||(this._zoomGeoPointReal=this._centerGeoPoint)):this.chartContainer.visible=!1},e.prototype.handleDrag=function(){var t=this.zoomLevel*this.scaleRatio,e=this.seriesWidth*t,i=this.seriesHeight*t,n=this.seriesContainer,r=this.seriesMaxLeft*t,s=this.seriesMaxRight*t,o=this.seriesMaxTop*t,a=this.seriesMaxBottom*t,l=n.pixelX,u=n.pixelY,h=this.maxPanOut,c=Math.min(this.maxWidth*(1-h)-e-r,-r);l<c&&(l=c);var p=Math.max(this.maxWidth*h-r,this.maxWidth-s);l>p&&(l=p);var d=Math.min(this.maxHeight*(1-h)-i-o,-o);u<d&&(u=d);var f=Math.max(this.maxHeight*h-o,this.maxHeight-a);u>f&&(u=f),n.moveTo({x:l,y:u},void 0,void 0,!0),this._zoomGeoPointReal=this.zoomGeoPoint},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),CP(this.readerTitle)||(this.readerTitle=this.language.translate("Map")),CP(this.background.readerTitle)||(this.background.readerTitle=this.language.translate("Use plus and minus keys on your keyboard to zoom in and out"))},e.prototype.handleMapDown=function(){this._mapAnimation&&this._mapAnimation.stop()},e.prototype.handleDoubleHit=function(t){var e=aO(t.point,this.htmlContainer,this.svgContainer.cssScale),i=this.svgPointToGeo(e);this.zoomIn(i)},e.prototype.handleWheel=function(t){var e=this.seriesContainer.interactions.inertias.getKey("move");e&&e.done();var i=aO(t.point,this.htmlContainer,this.svgContainer.cssScale),n=this.svgPointToGeo(i);t.shift.y<0?this.zoomIn(n,void 0,this.interactions.mouseOptions.sensitivity):this.zoomOut(n,void 0,this.interactions.mouseOptions.sensitivity)},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.chartContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):(this._mouseWheelDisposer&&this._mouseWheelDisposer.dispose(),this.chartContainer.wheelable=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"panBehavior",{get:function(){return this.getPropertyValue("panBehavior")},set:function(t){if(this.setPropertyValue("panBehavior",t)){var e=this.seriesContainer;switch(this.panSprite.draggable=!1,e.draggable=!1,t){case"move":e.draggable=!0;break;default:this.panSprite.draggable=!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerMapOnZoomOut",{get:function(){return this.getPropertyValue("centerMapOnZoomOut")},set:function(t){this.setPropertyValue("centerMapOnZoomOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"projection",{get:function(){return this.getPropertyValue("projection")},set:function(t){var e=this;this.setPropertyValue("projection",t)&&(this.invalidateProjection(),t.chart=this,this._backgroundSeries&&this._backgroundSeries.invalidate(),this.inited&&this.updateExtremes(),this.series.each((function(t){t.events.once("validated",(function(){e.updateCenterGeoPoint(),e.updateScaleRatio(),e.goHome(0)}))})))},enumerable:!0,configurable:!0}),e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,i,n;this.series.each((function(r){r.ignoreBounds||r instanceof UF&&r.fitExtent||((r.north>e||!TP(e))&&(e=r.north),(r.south<n||!TP(n))&&(n=r.south),(r.west<i||!TP(i))&&(i=r.west),(r.east>t||!TP(t))&&(t=r.east))}));var r=[],s=!1;this.series.each((function(t){t instanceof UF&&!t.fitExtent&&(r=t.getFeatures(),s=!0)})),s||this.series.each((function(t){t.ignoreBounds||t instanceof UF&&t.fitExtent||(r=r.concat(t.getFeatures()))}));var o=zP(50,this.innerWidth),a=zP(50,this.innerHeight),l=this.projection.d3Projection;if(r.length>0&&l&&(this.east!=t||this.west!=i||this.north!=e||this.south!=n)){if(this.east=t,this.west=i,this.north=e,this.south=n,l.rotate){var u=l.rotate(),h=u[0],c=u[1],p=u[2];this.deltaLongitude=h,this.deltaLatitude=c,this.deltaGamma=p}var d={type:"FeatureCollection",features:r},f=l.scale();if(l.fitSize([o,a],d),l.scale()!=f&&this.invalidateDataUsers(),this.series.each((function(t){t instanceof UF&&t.invalidateData()})),this._backgroundSeries){var g=this._backgroundSeries.mapPolygons.getIndex(0);g&&(g.multiPolygon=function(t,e,i,n){var r=[];-180==n&&(n=-179.9999),-90==i&&(i=-89.9999),90==t&&(t=89.9999),180==e&&(e=179.9999);for(var s=Math.min(90,(e-n)/Math.ceil((e-n)/90)),o=(t-i)/Math.ceil((t-i)/90),a=n;a<e;a+=s){var l=[];r.push([l]),a+s>e&&(s=e-a);for(var u=a;u<=a+s;u+=5)l.push([u,t]);for(var h=t;h>=i;h-=o)l.push([a+s,h]);for(u=a+s;u>=a;u-=5)l.push([u,i]);for(h=i;h<=t;h+=o)l.push([a,h])}return r}(this.north,this.east,this.south,this.west))}this._fitWidth=o,this._fitHeight=a}this._zoomGeoPointReal&&TP(this._zoomGeoPointReal.latitude)||this.goHome(0)},e.prototype.updateScaleRatio=function(){var t;this.updateCenterGeoPoint();var e=this.innerWidth/this.seriesWidth,i=this.innerHeight/this.seriesHeight;(yP(t=UP(e,i))||t==1/0)&&(t=1),t!=this.scaleRatio&&(this.scaleRatio=t,KC(this.series.iterator(),(function(e){e.scale=t,e.updateTooltipBounds()})),this.backgroundSeries.scale=t,this.dispatch("scaleratiochanged"))},e.prototype.svgPointToGeo=function(t){var e=this.series.getIndex(0);if(e){var i=nO(t,e);return this.seriesPointToGeo(i)}},e.prototype.geoPointToSVG=function(t){var e=this.series.getIndex(0);if(e)return rO(this.geoPointToSeries(t),e)},e.prototype.seriesPointToGeo=function(t){return this.projection.invert(t)},e.prototype.geoPointToSeries=function(t){return this.projection.convert(t)},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){t!=this._geodata&&(this._geodata=t,this.invalidateData(),this.dataUsers.each((function(t){for(var e=t.data.length-1;e>=0;e--)1==t.data[e].madeFromGeoData&&t.data.splice(e,1);t.disposeData(),t.invalidateData()})))},enumerable:!0,configurable:!0}),e.prototype.zoomToGeoPoint=function(t,e,i,n,r){var s=this;if(t||(t=this.zoomGeoPoint),t&&TP(t.longitude)&&TP(t.latitude)){this._zoomGeoPointReal=t,e=NP(e,this.minZoomLevel,this.maxZoomLevel);var o=this.projection.convert(t);if(o){var a=nO(this.geoPointToSVG(t),this);i&&(a={x:this.innerWidth/2,y:this.innerHeight/2}),TP(n)||(n=this.zoomDuration);var l=a.x-o.x*e*this.scaleRatio,u=a.y-o.y*e*this.scaleRatio;return!r&&e<this.zoomLevel&&this.centerMapOnZoomOut&&e<1.5&&(l=this.innerWidth/2-(this.seriesMaxLeft+(this.seriesMaxRight-this.seriesMaxLeft)/2)*e*this.scaleRatio,u=this.innerHeight/2-(this.seriesMaxTop+(this.seriesMaxBottom-this.seriesMaxTop)/2)*e*this.scaleRatio),this._mapAnimation=this.seriesContainer.animate([{property:"scale",to:e},{property:"x",from:this.seriesContainer.pixelX,to:l},{property:"y",from:this.seriesContainer.pixelY,to:u}],n,this.zoomEasing),this._disposers.push(this._mapAnimation.events.on("animationended",(function(){s._zoomGeoPointReal=s.zoomGeoPoint}))),this.seriesContainer.validatePosition(),this._mapAnimation}}},e.prototype.zoomToMapObject=function(t,e,i,n){null==i&&(i=!0);var r=this.seriesContainer.interactions.inertias.getKey("move");if(r&&r.done(),t instanceof fI)return yP(e)&&(e=5),this.zoomToGeoPoint({latitude:t.latitude,longitude:t.longitude},e,i,n,!0);var s=t.dataItem;if(s&&TP(s.zoomLevel)&&(e=s.zoomLevel),t instanceof MI){var o=t.dataItem,a=t.polygon.bbox;0!=a.width&&0!=a.height||(a=t.polygon.group.getBBox()),TP(e)||(e=Math.min(this.seriesWidth/a.width,this.seriesHeight/a.height));var l=void 0;if(o&&CP(o.zoomGeoPoint))l=o.zoomGeoPoint;else{var u=sO({x:a.x+a.width/2,y:a.y+a.height/2},t.polygon,t.series);l=this.seriesPointToGeo(u)}return this.zoomToGeoPoint(l,e,!0,n,!0)}},e.prototype.zoomToRectangle=function(t,e,i,n,r,s,o){yP(r)&&(r=1);var a=r*Math.min((this.south-this.north)/(i-t),(this.west-this.east)/(n-e));return this.zoomToGeoPoint({latitude:t+(i-t)/2,longitude:n+(e-n)/2},a,s,o,!0)},e.prototype.zoomIn=function(t,e,i){void 0===i&&(i=1);var n=1+(this.zoomStep-1)*i;return n<1&&(n=1),this.zoomToGeoPoint(t,this.zoomLevel*n,!1,e)},e.prototype.zoomOut=function(t,e,i){void 0===i&&(i=1);var n=1+(this.zoomStep-1)*i;return n<1&&(n=1),this.zoomToGeoPoint(t,this.zoomLevel/n,!1,e)},e.prototype.pan=function(t,e){var i=this.geoPointToSVG(this.zoomGeoPoint);i.x+=this.pixelWidth*t.x,i.y+=this.pixelHeight*t.y,this.zoomToGeoPoint(this.svgPointToGeo(i),this.zoomLevel,!0,e,!0)},Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){var t=rO({x:this.pixelWidth/2,y:this.pixelHeight/2},this);return this.svgPointToGeo(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.seriesContainer.scale},set:function(t){this.seriesContainer.scale=t},enumerable:!0,configurable:!0}),e.prototype.handleMapTransform=function(){this.zoomLevel!=this._prevZoomLevel&&(this.dispatch("zoomlevelchanged"),this._prevZoomLevel=this.zoomLevel,this.svgContainer.readerAlert(this.language.translate("Zoom level changed to %1",this.language.locale,bP(this.zoomLevel)))),!this.zoomGeoPoint||this._prevZoomGeoPoint.latitude==this.zoomGeoPoint.latitude&&this._prevZoomGeoPoint.longitude==this.zoomGeoPoint.longitude||this.dispatch("mappositionchanged")},Object.defineProperty(e.prototype,"smallMap",{get:function(){if(!this._smallMap){var t=new TF;this.smallMap=t}return this._smallMap},set:function(t){this._smallMap&&this.removeDispose(this._smallMap),this._smallMap=t,this._smallMap.chart=this,t.parent=this.chartContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomControl",{get:function(){return this._zoomControl},set:function(t){this._zoomControl&&this.removeDispose(this._zoomControl),this._zoomControl=t,t.chart=this,t.parent=this.chartContainer,t.plusButton.exportable=!1,t.minusButton.exportable=!1},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new pI},Object.defineProperty(e.prototype,"deltaLongitude",{get:function(){return this.getPropertyValue("deltaLongitude")},set:function(t){t=VP(t,3),this.setPropertyValue("deltaLongitude",IF(t))&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaLatitude",{get:function(){return this.getPropertyValue("deltaLatitude")},set:function(t){t=VP(t,3),this.setPropertyValue("deltaLatitude",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaGamma",{get:function(){return this.getPropertyValue("deltaGamma")},set:function(t){t=VP(t,3),this.setPropertyValue("deltaGamma",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),e.prototype.rotateMap=function(){this.projection.d3Projection&&this.projection.d3Projection.rotate&&(this.projection.d3Projection.rotate([this.deltaLongitude,this.deltaLatitude,this.deltaGamma]),this.invalidateProjection())},Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeGeoPoint",{get:function(){return this.getPropertyValue("homeGeoPoint")},set:function(t){this.setPropertyValue("homeGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeZoomLevel",{get:function(){return this.getPropertyValue("homeZoomLevel")},set:function(t){this.setPropertyValue("homeZoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomStep",{get:function(){return this.getPropertyValue("zoomStep")},set:function(t){this.setPropertyValue("zoomStep",t)},enumerable:!0,configurable:!0}),e.prototype.invalidateProjection=function(){this.east=void 0,this.invalidateDataUsers(),this.updateCenterGeoPoint()},Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",(function(){e.loadData("geodata")}),this,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(CP(e.geodata)&&EP(e.geodata)){var i=e.geodata;if(CP(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(n){this.raiseCriticalError(Error("MapChart error: Geodata `"+i+"` is not loaded or is incorrect."),!0)}}CP(e.projection)&&EP(e.projection)&&(e.projection=this.createClassInstance(e.projection)),CP(e.smallMap)&&!CP(e.smallMap.type)&&(e.smallMap.type="SmallMap"),CP(e.zoomControl)&&!CP(e.zoomControl.type)&&(e.zoomControl.type="ZoomControl"),t.prototype.processConfig.call(this,e)},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e);var i=e.newValue;i.scale=this.scaleRatio,i.events.on("validated",this.updateCenterGeoPoint,this,!1)},e.prototype.configOrder=function(e,i){return e==i?0:"smallMap"==e?1:"smallMap"==i?-1:"series"==e?1:"series"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.asIs=function(e){return"projection"==e||"geodata"==e||t.prototype.asIs.call(this,e)},Object.defineProperty(e.prototype,"centerGeoPoint",{get:function(){return this._centerGeoPoint},enumerable:!0,configurable:!0}),e.prototype.goHome=function(t){var e=this.homeGeoPoint;e||(e=this.centerGeoPoint),e&&this.zoomToGeoPoint(e,this.homeZoomLevel,!0,t,!0)},e.prototype.setPaper=function(e){return this.svgContainer&&(this.svgContainer.hideOverflow=!0),t.prototype.setPaper.call(this,e)},Object.defineProperty(e.prototype,"backgroundSeries",{get:function(){var t=this;if(!this._backgroundSeries){var e=new AI;e.parent=this.seriesContainer,e.chart=this,e.hiddenInLegend=!0,e.addDisposer(new xC((function(){t._backgroundSeries=void 0}))),this._disposers.push(e);var i=(new nD).getFor("background"),n=e.mapPolygons.template.polygon;n.stroke=i,n.fill=i,n.fillOpacity=0,n.strokeOpacity=0,e.mapPolygons.create(),this._backgroundSeries=e}return this._backgroundSeries},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e.parent=this},e.prototype.setTapToActivate=function(e){t.prototype.setTapToActivate.call(this,e),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.handleTapToActivate=function(){t.prototype.handleTapToActivate.call(this),this.seriesContainer.interactions.isTouchProtected=!1,this.panSprite.interactions.isTouchProtected=!1},e.prototype.handleTapToActivateDeactivation=function(){t.prototype.handleTapToActivateDeactivation.call(this),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.asFunction=function(e){return"zoomEasing"==e||t.prototype.asIs.call(this,e)},e}(GT);rS.registeredClasses.MapChart=WF;var GF=function(t){function e(){var e=t.call(this)||this;return e.className="MapSpline",e.applyTheme(),e}return uP(e,t),e.prototype.createLine=function(){this.line=new EE,this.line.tensionX=.8,this.line.tensionY=.8},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(jF);rS.registeredClasses.MapSpline=GF;var $F=function(t){function e(){var e=t.call(this)||this;return e.className="MapArc",e.applyTheme(),e}return uP(e,t),e.prototype.createLine=function(){this.line=new SE},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(jF);rS.registeredClasses.MapArc=$F;var KF=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeriesDataItem",e.applyTheme(),e}return uP(e,t),e}(LF),YF=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeries",e.applyTheme(),e}return uP(e,t),e.prototype.createDataItem=function(){return new KF},e.prototype.createLine=function(){return new GF},e}(VF);rS.registeredClasses.MapSplineSeries=YF,rS.registeredClasses.MapSplineSeriesDataItem=KF;var qF=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeriesDataItem",e.applyTheme(),e}return uP(e,t),e}(LF),XF=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeries",e.applyTheme(),e}return uP(e,t),e.prototype.createDataItem=function(){return new qF},e.prototype.createLine=function(){return new $F},e}(VF);rS.registeredClasses.MapArcSeries=XF,rS.registeredClasses.MapArcSeriesDataItem=qF;var ZF=function(t){function e(){var e=t.call(this)||this;e._chart=new PC,e.className="ZoomControl",e.align="right",e.valign="bottom",e.layout="vertical",e.padding(5,5,5,5);var i=new nD,n=e.createChild(pE);n.shouldClone=!1,n.label.text="+",e.plusButton=n;var r=e.createChild(ZD);r.shouldClone=!1,r.background.fill=i.getFor("alternativeBackground"),r.background.fillOpacity=.05,r.background.events.on("hit",e.handleBackgroundClick,e,!1),r.events.on("sizechanged",e.updateThumbSize,e,!1),e.slider=r;var s=r.createChild(pE);s.shouldClone=!1,s.padding(0,0,0,0),s.draggable=!0,s.events.on("drag",e.handleThumbDrag,e,!1),e.thumb=s;var o=e.createChild(pE);return o.shouldClone=!1,o.label.text="-",e.minusButton=o,e.thumb.role="slider",e.thumb.readerLive="polite",e.thumb.readerTitle=e.language.translate("Use arrow keys to zoom in and out"),e.minusButton.readerTitle=e.language.translate("Press ENTER to zoom in"),e.plusButton.readerTitle=e.language.translate("Press ENTER to zoom out"),e.applyTheme(),e.events.on("propertychanged",(function(t){"layout"==t.property&&e.fixLayout()}),void 0,!1),e._disposers.push(e._chart),e.fixLayout(),e}return uP(e,t),e.prototype.fixLayout=function(){var t=this.plusButton,e=this.minusButton,i=this.thumb,n=this.slider;t.x=void 0,t.y=void 0,e.x=void 0,e.y=void 0,i.x=void 0,i.y=void 0,n.x=void 0,n.y=void 0,t.padding(6,10,6,10),e.padding(6,10,6,10),e.label.align="center",e.label.valign="middle",t.label.align="center",t.label.valign="middle","vertical"==this.layout?(this.width=40,this.height=void 0,e.width=mP(100),e.height=void 0,i.width=mP(100),i.height=void 0,t.width=mP(100),t.height=void 0,n.width=mP(100),e.marginTop=1,t.marginBottom=2,n.height=0,e.toFront(),t.toBack(),i.minX=0,i.maxX=0,i.minY=0):"horizontal"==this.layout&&(this.height=40,this.width=void 0,e.height=mP(100),e.width=void 0,t.height=mP(100),t.width=void 0,i.height=mP(100),i.width=void 0,i.minX=0,i.minY=0,i.maxY=0,n.height=mP(100),n.width=0,e.toBack(),t.toFront())},e.prototype.handleBackgroundClick=function(t){var e=t.target,i=t.spritePoint.y,n=this.chart,r=Math.log(n.maxZoomLevel)/Math.LN2,s=Math.log(n.minZoomLevel)/Math.LN2,o=(e.pixelHeight-i)/e.pixelHeight*(s+(r-s)),a=Math.pow(2,o);n.zoomToGeoPoint(n.zoomGeoPoint,a)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){var e=this;this._chart.set(t,new wC([t.events.on("maxsizechanged",this.updateThumbSize,this,!1),t.events.on("zoomlevelchanged",this.updateThumb,this,!1),this.minusButton.events.on("hit",(function(){t.zoomOut(t.zoomGeoPoint)}),t,!1),dD().body.events.on("keyup",(function(i){e.topParent.hasFocused&&(uD.isKey(i.event,"enter")?e.minusButton.isFocused?t.zoomOut():e.plusButton.isFocused&&t.zoomIn():uD.isKey(i.event,"plus")?t.zoomIn():uD.isKey(i.event,"minus")&&t.zoomOut())}),t),this.plusButton.events.on("hit",(function(){t.zoomIn(t.zoomGeoPoint)}),t,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateThumbSize=function(){if(this.chart){var t=this.slider,e=this.thumb;"vertical"==this.layout?(e.minHeight=Math.min(this.slider.pixelHeight,20),e.height=t.pixelHeight/this.stepCount,e.maxY=t.pixelHeight-e.pixelHeight,e.pixelHeight<=1?e.visible=!1:e.visible=!0):(e.minWidth=Math.min(this.slider.pixelWidth,20),e.width=t.pixelWidth/this.stepCount,e.maxX=t.pixelWidth-e.pixelWidth,e.pixelWidth<=1?e.visible=!1:e.visible=!0)}},e.prototype.updateThumb=function(){var t=this.slider,e=this.chart,i=this.thumb;if(!i.isDown){var n=(Math.log(e.zoomLevel)-Math.log(this.chart.minZoomLevel))/Math.LN2;"vertical"==this.layout?i.y=t.pixelHeight-(t.pixelHeight-i.pixelHeight)*n/this.stepCount-i.pixelHeight:i.x=t.pixelWidth*n/this.stepCount}},e.prototype.handleThumbDrag=function(){var t,e=this.slider,i=this.chart,n=this.thumb;t=Math.log(this.chart.minZoomLevel)/Math.LN2+(t="vertical"==this.layout?this.stepCount*(e.pixelHeight-n.pixelY-n.pixelHeight)/(e.pixelHeight-n.pixelHeight):this.stepCount*n.pixelX/e.pixelWidth);var r=Math.pow(2,t);i.zoomToGeoPoint(void 0,r,!1,0)},Object.defineProperty(e.prototype,"stepCount",{get:function(){return Math.log(this.chart.maxZoomLevel)/Math.LN2-Math.log(this.chart.minZoomLevel)/Math.LN2},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new cE},e}(ZD);function QF(t,e){return[t,uk(dk((QT+e)/2))]}rS.registeredClasses.ZoomControl=ZF,QF.invert=function(t,e){return[t,2*rk(lk(e))-QT]};var JF=function(){return function(t){var e,i,n,r=bM(t),s=r.center,o=r.scale,a=r.translate,l=r.clipExtent,u=null;function h(){var s=ZT*o(),a=r(function(t){function e(e){return(e=t(e[0]*ik,e[1]*ik))[0]*=ek,e[1]*=ek,e}return t=bI(t[0]*ik,t[1]*ik,t.length>2?t[2]*ik:0),e.invert=function(e){return(e=t.invert(e[0]*ik,e[1]*ik))[0]*=ek,e[1]*=ek,e},e}(r.rotate()).invert([0,0]));return l(null==u?[[a[0]-s,a[1]-s],[a[0]+s,a[1]+s]]:t===QF?[[Math.max(a[0]-s,u),e],[Math.min(a[0]+s,i),n]]:[[u,Math.max(a[1]-s,e)],[i,Math.min(a[1]+s,n)]])}return r.scale=function(t){return arguments.length?(o(t),h()):o()},r.translate=function(t){return arguments.length?(a(t),h()):a()},r.center=function(t){return arguments.length?(s(t),h()):s()},r.clipExtent=function(t){return arguments.length?(null==t?u=e=i=n=null:(u=+t[0][0],e=+t[0][1],i=+t[1][0],n=+t[1][1]),h()):null==u?null:[[u,e],[i,n]]},h()}(QF).scale(961/tk)};var tA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=JF(),e}return uP(e,t),e}(EF);rS.registeredClasses.Mercator=tA;var eA=Math.abs,iA=Math.atan,nA=(Math.atan2,Math.ceil,Math.cos),rA=Math.exp,sA=(Math.floor,Math.log),oA=(Math.max,Math.min,Math.pow,Math.round,Math.sign,Math.sin),aA=Math.tan,lA=Math.PI,uA=lA/2,hA=lA/4;Math.SQRT1_2,pA(2),pA(lA);function cA(t){return t>1?uA:t<-1?-uA:Math.asin(t)}function pA(t){return t>0?Math.sqrt(t):0}function dA(t,e){return[t,1.25*sA(aA(hA+.4*e))]}dA.invert=function(t,e){return[t,2.5*iA(rA(.8*e))-.625*lA]};var fA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=bM(dA).scale(108.318),e}return uP(e,t),e}(EF);function gA(t,e){for(var i=(1+uA)*oA(e),n=0,r=1/0;n<10&&eA(r)>1e-6;n++)e-=r=(e+oA(e)-i)/(1+nA(e));return i=pA(2+lA),[t*(1+nA(e))/i,2*e/i]}rS.registeredClasses.Miller=fA,gA.invert=function(t,e){var i=1+uA,n=pA(i/2);return[2*t*n/(1+nA(e*=n)),cA((e+oA(e))/i)]};var mA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=bM(gA).scale(173.044),e}return uP(e,t),e}(EF);function yA(t){return function(e,i){var n=pk(e*e+i*i),r=t(n),s=hk(r),o=ok(r);return[sk(e*s,n*o),fk(n&&i*s/n)]}}function vA(t,e){return[ok(e)*hk(t),hk(e)]}rS.registeredClasses.Eckert6=mA,vA.invert=yA(fk);var bA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=bM(vA).scale(249.5).clipAngle(90+XT),e}return uP(e,t),e}(EF);function _A(t,e){var i=ok(e),n=1+ok(t)*i;return[i*hk(t)/n,hk(e)/n]}rS.registeredClasses.Orthographic=bA,_A.invert=yA((function(t){return 2*rk(t)}));var xA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=bM(_A).scale(250).clipAngle(142),e}return uP(e,t),e}(EF);function wA(t,e){var i=hk(t),n=(i+hk(e))/2;if(nk(n)<XT)return function(t){var e=ok(t);function i(t,i){return[t*e,hk(i)/e]}return i.invert=function(t,i){return[t/e,fk(i*e)]},i}(t);var r=1+i*(2*n-i),s=pk(r)/n;function o(t,e){var i=pk(r-2*n*hk(e))/n;return[i*hk(t*=n),s-i*ok(t)]}return o.invert=function(t,e){var i=s-e,o=sk(t,nk(i))*ck(i);return i*n<0&&(o-=ZT*ck(t)*ck(i)),[o/n,fk((r-(t*t+i*i)*n*n)/(2*n))]},o}rS.registeredClasses.Stereographic=xA;var PA=function(){return(t=wA,e=0,i=ZT/3,n=_M(t),r=n(e,i),r.parallels=function(t){return arguments.length?n(e=t[0]*ik,i=t[1]*ik):[e*ek,i*ek]},r).scale(155.424).center([0,33.6442]);var t,e,i,n,r},CA=function(){return PA().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},SA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=CA(),e}return uP(e,t),e}(EF);rS.registeredClasses.Albers=SA;var OA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=function(){var t,e,i,n,r,s,o=CA(),a=PA().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=PA().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){s=[t,e]}};function h(t){var e=t[0],o=t[1];return s=null,i.point(e,o),s||(n.point(e,o),s)||(r.point(e,o),s)}function c(){return t=e=null,h}return h.invert=function(t){var e=o.scale(),i=o.translate(),n=(t[0]-i[0])/e,r=(t[1]-i[1])/e;return(r>=.12&&r<.234&&n>=-.425&&n<-.214?a:r>=.166&&r<.234&&n>=-.214&&n<-.115?l:o).invert(t)},h.stream=function(i){return t&&e===i?t:(n=[o.stream(e=i),a.stream(i),l.stream(i)],r=n.length,t={point:function(t,e){for(var i=-1;++i<r;)n[i].point(t,e)},sphere:function(){for(var t=-1;++t<r;)n[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)n[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)n[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)n[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)n[t].polygonEnd()}});var n,r},h.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),l.precision(t),c()):o.precision()},h.scale=function(t){return arguments.length?(o.scale(t),a.scale(.35*t),l.scale(t),h.translate(o.translate())):o.scale()},h.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),s=+t[0],h=+t[1];return i=o.translate(t).clipExtent([[s-.455*e,h-.238*e],[s+.455*e,h+.238*e]]).stream(u),n=a.translate([s-.307*e,h+.201*e]).clipExtent([[s-.425*e+XT,h+.12*e+XT],[s-.214*e-XT,h+.234*e-XT]]).stream(u),r=l.translate([s-.205*e,h+.212*e]).clipExtent([[s-.214*e+XT,h+.166*e+XT],[s-.115*e-XT,h+.234*e-XT]]).stream(u),c()},h.fitExtent=function(t,e){return hM(h,t,e)},h.fitSize=function(t,e){return cM(h,t,e)},h.fitWidth=function(t,e){return pM(h,t,e)},h.fitHeight=function(t,e){return dM(h,t,e)},h.scale(1070)}(),e}return uP(e,t),e}(EF);function DA(t,e){var i=e*e,n=i*i;return[t*(.8707-.131979*i+n*(n*(.003971*i-.001529*n)-.013791)),e*(1.007226+i*(.015085+n*(.028874*i-.044475-.005916*n)))]}rS.registeredClasses.AlbersUsa=OA,DA.invert=function(t,e){var i,n=e,r=25;do{var s=n*n,o=s*s;n-=i=(n*(1.007226+s*(.015085+o*(.028874*s-.044475-.005916*o)))-e)/(1.007226+s*(.045255+o*(.259866*s-.311325-.005916*11*o)))}while(nk(i)>XT&&--r>0);return[t/(.8707+(s=n*n)*(s*(s*s*s*(.003971-.001529*s)-.013791)-.131979)),n]};var EA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=bM(DA).scale(175.295),e}return uP(e,t),e}(EF);rS.registeredClasses.NaturalEarth1=EA;var TA,kA=(TA=function(t){return pk(2/(1+t))},function(t,e){var i=ok(t),n=ok(e),r=TA(i*n);return[r*n*hk(t),r*hk(e)]});kA.invert=yA((function(t){return 2*fk(t/2)}));var IA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=bM(kA).scale(124.75).clipAngle(179.999),e}return uP(e,t),e}(EF);rS.registeredClasses.AzimuthalEqualArea=IA;var MA=1.340264,FA=-.081106,AA=893e-6,jA=.003796,LA=pk(3)/2;function VA(t,e){var i=fk(LA*hk(e)),n=i*i,r=n*n*n;return[t*ok(i)/(LA*(MA+3*FA*n+r*(7*AA+9*jA*n))),i*(MA+FA*n+r*(AA+jA*n))]}VA.invert=function(t,e){for(var i,n=e,r=n*n,s=r*r*r,o=0;o<12&&(s=(r=(n-=i=(n*(MA+FA*r+s*(AA+jA*r))-e)/(MA+3*FA*r+s*(7*AA+9*jA*r)))*n)*r*r,!(nk(i)<1e-12));++o);return[LA*t*(MA+3*FA*r+s*(7*AA+9*jA*r))/ok(n),fk(hk(n)/LA)]};var RA=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=bM(VA).scale(177.158),e}return uP(e,t),e}(EF);rS.registeredClasses.EqualEarth=RA;var NA={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[136.2013,-13.86],[136.1725,-13.7692],[136.1051,-13.8153],[136.114,-13.732],[136.2018,-13.6646],[136.2446,-13.6721],[136.2889,-13.7303],[136.2419,-13.8466],[136.2013,-13.86]]],[[[130.4936,-11.8386],[130.3277,-11.7759],[130.0963,-11.8336],[130.0405,-11.8229],[130.0175,-11.7725],[130.0726,-11.6737],[130.1566,-11.7029],[130.1936,-11.6672],[130.1908,-11.5281],[130.1739,-11.485],[130.2557,-11.3441],[130.344,-11.3255],[130.491,-11.6886],[130.5617,-11.7067],[130.6366,-11.7729],[130.6138,-11.8225],[130.4936,-11.8386]]],[[[136.5034,-11.4564],[136.5072,-11.4099],[136.6431,-11.2164],[136.7287,-11.0452],[136.7739,-11.0212],[136.7249,-11.207],[136.5622,-11.4325],[136.5034,-11.4564]]],[[[136.5247,-15.6461],[136.4988,-15.6333],[136.5195,-15.5497],[136.6055,-15.5249],[136.5877,-15.6347],[136.5247,-15.6461]]],[[[130.9589,-11.9389],[130.8613,-11.8588],[130.678,-11.7847],[130.4934,-11.642],[130.4186,-11.4486],[130.3647,-11.253],[130.3927,-11.1634],[130.5319,-11.2833],[130.5733,-11.3495],[130.705,-11.3903],[130.8451,-11.3578],[130.8996,-11.3078],[131.0042,-11.3522],[131.1215,-11.2635],[131.2051,-11.2421],[131.2715,-11.1903],[131.4184,-11.2483],[131.5286,-11.3919],[131.5371,-11.4669],[131.2819,-11.7308],[131.2495,-11.7354],[131.1264,-11.8133],[130.9589,-11.9389]]],[[[132.5961,-11.3447],[132.5667,-11.3136],[132.5316,-11.2181],[132.5022,-11.0514],[132.5789,-11.0225],[132.6264,-11.1778],[132.6246,-11.2763],[132.5961,-11.3447]]],[[[136.9088,-14.1793],[136.9673,-14.1517],[136.9416,-14.2778],[136.8892,-14.2978],[136.7507,-14.2617],[136.6322,-14.2786],[136.378,-14.2164],[136.4131,-14.0445],[136.4054,-13.9705],[136.4572,-13.8389],[136.5921,-13.8136],[136.624,-13.7896],[136.5949,-13.7269],[136.6789,-13.6581],[136.7144,-13.7067],[136.6756,-13.7331],[136.7129,-13.8379],[136.808,-13.8542],[136.8305,-13.7861],[136.8813,-13.7528],[136.9184,-13.8096],[136.82,-13.9083],[136.7673,-13.9417],[136.7061,-14.0756],[136.708,-14.1678],[136.7366,-14.1917],[136.8704,-14.2117],[136.9088,-14.1793]]],[[[137.0545,-15.83],[136.9972,-15.7892],[136.9344,-15.6989],[136.953,-15.6475],[137.0102,-15.5931],[137.0556,-15.6475],[137.093,-15.7664],[137.0545,-15.83]]],[[[136.1828,-11.6908],[136.1826,-11.6444],[136.2737,-11.5722],[136.3488,-11.5686],[136.4812,-11.4672],[136.4721,-11.5172],[136.3733,-11.5925],[136.1828,-11.6908]]],[[[138.0003,-16.5547],[138.0005,-25.9995],[131.2333,-26],[129.9006,-25.9994],[129.0059,-26.0049],[129,-17.2664],[129,-15.3992],[129,-14.8711],[129.0894,-14.8994],[129.1855,-14.98],[129.1744,-15.1625],[129.2564,-15.1041],[129.2184,-14.8614],[129.2296,-14.8392],[129.3327,-14.8672],[129.462,-14.9306],[129.6686,-15.1547],[129.6634,-15.0955],[129.6265,-15.0217],[129.6139,-14.9469],[129.6473,-14.8378],[129.8015,-14.864],[129.8647,-14.843],[129.9444,-14.7678],[129.7658,-14.8227],[129.6754,-14.7661],[129.6036,-14.6744],[129.5866,-14.6281],[129.6599,-14.5722],[129.5401,-14.5503],[129.4549,-14.503],[129.3585,-14.4137],[129.3702,-14.3333],[129.4306,-14.2222],[129.4925,-14.1422],[129.7328,-13.9947],[129.7875,-13.7442],[129.7823,-13.6985],[129.8288,-13.5169],[129.8999,-13.445],[129.9095,-13.5079],[129.9441,-13.5273],[130.0412,-13.5099],[130.1641,-13.4292],[130.2644,-13.3253],[130.192,-13.204],[130.1158,-13.1476],[130.1246,-12.9703],[130.1822,-12.9079],[130.2257,-12.9467],[130.3276,-12.894],[130.353,-12.8388],[130.344,-12.7061],[130.3544,-12.6726],[130.509,-12.6044],[130.6041,-12.6767],[130.5755,-12.5709],[130.6023,-12.5068],[130.6285,-12.3851],[130.7704,-12.4296],[130.8966,-12.6075],[130.9541,-12.5364],[130.8158,-12.4447],[130.8472,-12.3731],[130.8858,-12.3542],[131.0269,-12.3583],[131.0264,-12.2407],[130.9985,-12.1868],[131.0243,-12.1496],[131.1141,-12.1537],[131.2133,-12.2175],[131.3441,-12.2236],[131.4364,-12.2892],[131.4926,-12.2972],[131.9315,-12.2681],[132.0627,-12.3091],[132.2236,-12.2],[132.3609,-12.2024],[132.4173,-12.3072],[132.4447,-12.3021],[132.4245,-12.1856],[132.4443,-12.1503],[132.6385,-12.0786],[132.6276,-12.0328],[132.635,-11.745],[132.6915,-11.6582],[132.5403,-11.5475],[132.4899,-11.477],[132.3727,-11.4378],[132.2295,-11.4613],[132.0868,-11.5247],[131.9902,-11.4297],[131.9706,-11.3644],[131.8652,-11.3092],[131.7643,-11.3067],[131.8741,-11.1772],[131.9843,-11.1274],[132.0902,-11.23],[132.1659,-11.4064],[132.205,-11.4098],[132.2355,-11.3553],[132.1924,-11.2222],[132.1467,-11.14],[132.1812,-11.1318],[132.2761,-11.1636],[132.3405,-11.1301],[132.5034,-11.2645],[132.5136,-11.3085],[132.672,-11.5082],[132.7264,-11.5195],[132.7725,-11.4839],[132.8747,-11.3334],[132.918,-11.337],[132.9965,-11.4197],[133.1462,-11.6878],[133.2514,-11.737],[133.3075,-11.6994],[133.3567,-11.7014],[133.4072,-11.7742],[133.5489,-11.8328],[133.6168,-11.8346],[133.7622,-11.7676],[133.7994,-11.7183],[133.9083,-11.7361],[133.9194,-11.7672],[133.8501,-11.8061],[133.8394,-11.8542],[133.9427,-11.9123],[134.0504,-11.8445],[134.1855,-11.9464],[134.1877,-12.0461],[134.2066,-12.0617],[134.37,-12.0378],[134.4211,-12.0588],[134.5161,-12.0667],[134.5986,-12.0564],[134.6727,-12.0012],[134.7714,-11.9958],[134.8707,-12.1317],[134.9972,-12.1964],[135.0839,-12.2666],[135.2261,-12.2755],[135.2669,-12.1719],[135.3283,-12.1117],[135.3797,-12.0903],[135.4378,-12.1153],[135.5861,-12.0983],[135.6627,-12.0372],[135.5724,-12.033],[135.5932,-11.9577],[135.6858,-11.9333],[135.7536,-11.935],[135.8805,-11.835],[135.8764,-11.7648],[135.9466,-11.8042],[135.9164,-11.8525],[135.746,-11.9945],[135.7883,-12.0436],[135.6735,-12.1595],[135.6887,-12.2375],[135.7355,-12.2809],[135.7863,-12.2587],[135.8012,-12.2183],[135.8836,-12.1518],[136.023,-12.112],[135.9381,-12.2172],[135.9718,-12.2677],[136.0459,-12.2341],[136.0635,-12.2641],[135.9832,-12.3779],[136.0397,-12.4716],[136.081,-12.4455],[136.1568,-12.4376],[136.2401,-12.455],[136.2937,-12.4143],[136.3639,-12.2397],[136.3374,-12.2057],[136.2429,-12.2172],[136.1778,-12.1669],[136.2817,-12.0655],[136.4511,-11.9542],[136.5622,-11.9344],[136.5392,-12.0097],[136.6019,-12.1831],[136.6732,-12.2845],[136.7185,-12.2834],[136.754,-12.2343],[136.694,-12.1915],[136.7754,-12.1717],[136.8764,-12.2227],[136.9784,-12.3582],[136.8039,-12.4775],[136.7452,-12.5442],[136.6436,-12.7041],[136.6208,-12.8253],[136.4944,-12.7792],[136.4843,-12.846],[136.5461,-12.958],[136.5453,-13.055],[136.5283,-13.15],[136.4488,-13.2205],[136.3677,-13.2472],[136.3718,-13.0692],[136.3255,-13.0613],[136.2861,-13.1664],[136.2002,-13.2391],[136.0972,-13.1847],[135.9933,-13.2247],[135.9272,-13.2778],[135.8915,-13.3385],[135.935,-13.3969],[135.9086,-13.4558],[135.8642,-13.4917],[135.8458,-13.6039],[135.889,-13.7287],[135.9826,-13.7358],[136.0203,-13.7625],[135.9886,-13.8666],[135.9247,-13.9619],[135.8969,-14.1428],[135.8692,-14.1946],[135.7528,-14.2711],[135.6214,-14.4375],[135.5405,-14.5736],[135.5383,-14.6467],[135.4133,-14.7294],[135.3727,-14.7289],[135.434,-14.9024],[135.4764,-14.9646],[135.5429,-15.0193],[135.6705,-15.0644],[135.8519,-15.1775],[135.9445,-15.2595],[136.2122,-15.3945],[136.2411,-15.4184],[136.2651,-15.5404],[136.32,-15.6031],[136.5686,-15.7183],[136.6711,-15.8003],[136.7658,-15.9044],[137.0306,-15.9147],[137.1366,-15.9686],[137.3691,-16.1276],[137.4883,-16.1764],[137.5437,-16.1749],[137.7377,-16.2517],[137.8588,-16.4381],[138.0003,-16.5547]]]]},properties:{name:"Northern Territory",id:"AU-NT",CNTRY_NAME:"Australia",TYPE:"Territory"},id:"AU-NT"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[129,-14.8711],[129,-15.3992],[129,-17.2664],[129.0059,-26.0049],[129.0003,-31.6926],[128.793,-31.7694],[128.5544,-31.8883],[128.1827,-32.0317],[128.0124,-32.0896],[127.7375,-32.1347],[127.3347,-32.2669],[127.125,-32.2985],[126.6872,-32.3159],[126.3994,-32.2922],[126.1797,-32.2385],[126.0693,-32.285],[125.9723,-32.2668],[125.8065,-32.3436],[125.515,-32.5468],[125.4443,-32.5733],[125.3023,-32.5988],[124.9955,-32.7422],[124.8795,-32.8299],[124.7466,-32.8978],[124.4028,-32.9456],[124.2819,-32.9856],[124.1901,-33.0492],[124.1064,-33.1394],[124.0025,-33.3936],[123.9559,-33.5596],[123.86,-33.6158],[123.7697,-33.6953],[123.735,-33.7797],[123.6908,-33.8206],[123.5408,-33.9058],[123.369,-33.8952],[123.2827,-33.9712],[123.1681,-34.0186],[123.1007,-33.8869],[123.0178,-33.8575],[122.845,-33.9069],[122.7303,-33.8933],[122.5938,-33.898],[122.5757,-33.9133],[122.4333,-33.9258],[122.3545,-33.913],[122.2623,-33.9659],[122.2514,-34.0167],[122.1183,-34.0286],[122.0715,-33.8932],[122.0137,-33.8311],[121.9168,-33.8364],[121.8617,-33.8805],[121.781,-33.8995],[121.5226,-33.8215],[121.3361,-33.8156],[121.0516,-33.857],[120.8625,-33.8567],[120.7914,-33.888],[120.5403,-33.9172],[120.417,-33.9739],[120.253,-33.9397],[120.005,-33.9289],[119.8129,-33.9781],[119.7389,-34.0458],[119.6161,-34.1],[119.5636,-34.1497],[119.4809,-34.2704],[119.4675,-34.3318],[119.3255,-34.447],[119.2086,-34.5044],[119.0789,-34.4661],[118.9116,-34.4531],[118.7397,-34.55],[118.7542,-34.607],[118.6379,-34.6804],[118.477,-34.7237],[118.418,-34.7741],[118.3877,-34.8403],[118.2816,-34.9055],[118.0817,-34.9939],[117.8379,-35.0302],[117.8585,-35.114],[117.7266,-35.048],[117.6328,-35.0694],[117.6097,-35.1383],[117.5334,-35.0883],[117.3325,-35.0189],[116.9483,-35.0158],[116.873,-35.0567],[116.7244,-35.0169],[116.6019,-35.033],[116.4605,-34.9996],[116.2169,-34.8662],[115.9736,-34.8195],[115.9133,-34.7032],[115.8142,-34.6078],[115.648,-34.4678],[115.4957,-34.3836],[115.314,-34.3049],[115.1683,-34.3128],[115.1222,-34.3628],[115.0089,-34.2625],[115.0103,-34.1759],[114.9577,-33.8661],[114.9537,-33.6923],[114.9971,-33.5241],[115.0397,-33.5338],[115.1013,-33.6112],[115.2206,-33.6533],[115.3155,-33.646],[115.4297,-33.6051],[115.7126,-33.264],[115.6694,-32.982],[115.5944,-32.6707],[115.6176,-32.6028],[115.6727,-32.7458],[115.716,-32.7156],[115.7619,-32.5725],[115.7325,-32.3209],[115.7553,-32.1918],[115.7378,-32.0953],[115.7433,-31.8933],[115.7058,-31.7164],[115.6817,-31.6606],[115.4378,-31.2796],[115.3686,-31.1022],[115.3103,-30.9866],[115.1675,-30.772],[115.0472,-30.5047],[115.0545,-30.4772],[115.0236,-30.2742],[114.9572,-30.0756],[114.9372,-30.0603],[114.9419,-29.6706],[114.978,-29.4878],[114.9282,-29.3356],[114.9028,-29.2992],[114.8873,-29.2058],[114.8349,-29.0965],[114.6193,-28.8711],[114.5917,-28.7975],[114.5841,-28.6331],[114.5028,-28.488],[114.3075,-28.2299],[114.2317,-28.1889],[114.1543,-28.091],[114.0947,-27.8516],[114.141,-27.7072],[114.1214,-27.6033],[114.0728,-27.4511],[113.9369,-27.1989],[113.7992,-26.9674],[113.5858,-26.6908],[113.2811,-26.3994],[113.2244,-26.2392],[113.2705,-26.1564],[113.3341,-26.2786],[113.3655,-26.1189],[113.5143,-26.2842],[113.5346,-26.338],[113.5464,-26.5081],[113.5697,-26.5697],[113.6435,-26.6543],[113.7419,-26.5942],[113.784,-26.6035],[113.8558,-26.5075],[113.8614,-26.3365],[113.7892,-26.2506],[113.6522,-26.1695],[113.5512,-26.075],[113.4927,-25.8588],[113.3911,-25.7105],[113.4086,-25.6282],[113.4695,-25.5409],[113.4977,-25.5603],[113.5911,-25.7122],[113.6974,-25.7952],[113.7341,-25.889],[113.7099,-26.0076],[113.6819,-26.0349],[113.6843,-26.1196],[113.714,-26.1969],[113.7986,-26.1683],[113.8789,-26.0289],[113.9312,-26.2636],[113.9589,-26.3278],[114.0693,-26.4616],[114.1949,-26.3729],[114.2214,-26.2925],[114.1719,-26.1826],[114.2064,-25.9891],[114.2569,-25.9705],[114.2581,-25.8478],[114.0343,-25.6337],[113.9151,-25.4317],[113.8066,-25.1813],[113.7011,-25.1224],[113.6111,-24.8892],[113.6141,-24.7537],[113.5516,-24.66],[113.4257,-24.5253],[113.3897,-24.4294],[113.3841,-24.2308],[113.4244,-24.1345],[113.4464,-24.0114],[113.5322,-23.7573],[113.6012,-23.6303],[113.743,-23.5272],[113.7683,-23.4417],[113.782,-23.3267],[113.7603,-23.1939],[113.8183,-23.0306],[113.8075,-22.9333],[113.753,-22.7939],[113.6711,-22.6861],[113.6564,-22.6047],[113.7997,-22.3342],[113.9333,-21.9761],[114.0303,-21.8416],[114.0893,-21.8108],[114.176,-21.8228],[114.1266,-21.9102],[114.0778,-22.1742],[114.1419,-22.3014],[114.1103,-22.4865],[114.1539,-22.5278],[114.3725,-22.4425],[114.4,-22.3356],[114.4608,-22.1903],[114.6254,-21.9229],[114.6511,-21.84],[114.9427,-21.6887],[115.0527,-21.6811],[115.2455,-21.5919],[115.4519,-21.5178],[115.6194,-21.3319],[115.68,-21.2875],[115.8065,-21.2365],[115.9252,-21.069],[116.1598,-20.9658],[116.1855,-20.9019],[116.4755,-20.8061],[116.6063,-20.7301],[116.7075,-20.6491],[116.7885,-20.6656],[116.8757,-20.7175],[117.0667,-20.6217],[117.1652,-20.6538],[117.2679,-20.7176],[117.4062,-20.7299],[117.6854,-20.6764],[117.8503,-20.6084],[118.0691,-20.41],[118.1785,-20.3487],[118.235,-20.3742],[118.5452,-20.3253],[118.6578,-20.3311],[118.8011,-20.2859],[118.95,-20.1169],[118.9799,-20.0413],[119.0803,-19.9688],[119.1889,-19.9594],[119.4341,-20.0169],[119.5818,-20.0708],[119.7855,-19.9716],[120.2395,-19.9087],[120.3372,-19.8785],[120.8786,-19.6652],[121.0275,-19.5922],[121.2767,-19.395],[121.4886,-19.1231],[121.6394,-18.8139],[121.7774,-18.6368],[121.765,-18.5561],[121.8241,-18.4584],[121.8899,-18.4737],[122.0136,-18.3922],[122.0667,-18.3175],[122.1286,-18.2886],[122.3375,-18.1314],[122.3676,-18.0605],[122.3322,-17.9795],[122.2528,-17.9584],[122.2111,-17.8936],[122.1998,-17.7046],[122.1408,-17.558],[122.1439,-17.363],[122.175,-17.2433],[122.2566,-17.1078],[122.3791,-16.9961],[122.4474,-16.9542],[122.5743,-16.9534],[122.5239,-16.8447],[122.5665,-16.7899],[122.6397,-16.7997],[122.7522,-16.7622],[122.7366,-16.6974],[122.7605,-16.6006],[122.8414,-16.5587],[122.8943,-16.5023],[122.9203,-16.4146],[122.9917,-16.3897],[123.0603,-16.4556],[122.9895,-16.476],[122.9562,-16.5868],[123.0197,-16.6703],[123.0961,-16.7161],[123.1164,-16.7928],[123.3078,-17.1375],[123.5534,-17.515],[123.5636,-17.3672],[123.619,-17.2061],[123.574,-17.0729],[123.5926,-16.9967],[123.6558,-16.9948],[123.7825,-17.1425],[123.8558,-17.2064],[123.7964,-16.998],[123.8917,-16.8934],[123.8583,-16.8764],[123.7664,-16.8882],[123.7177,-16.7881],[123.6078,-16.6733],[123.6136,-16.5642],[123.5014,-16.566],[123.4933,-16.4972],[123.6411,-16.5295],[123.7089,-16.4303],[123.7075,-16.3402],[123.5958,-16.3191],[123.5602,-16.2883],[123.5709,-16.1716],[123.7262,-16.1386],[123.8064,-16.199],[123.7839,-16.2461],[123.7327,-16.2595],[123.8391,-16.368],[123.8928,-16.3399],[123.9644,-16.2455],[124.0862,-16.2625],[124.1664,-16.3025],[124.2298,-16.4042],[124.333,-16.4099],[124.3844,-16.3528],[124.4758,-16.3958],[124.5786,-16.4056],[124.7291,-16.3849],[124.6973,-16.3469],[124.5624,-16.3242],[124.48,-16.3475],[124.4005,-16.3294],[124.3761,-16.2219],[124.4305,-16.1025],[124.4708,-16.0933],[124.5187,-16.1636],[124.593,-16.1142],[124.5853,-16.0228],[124.6147,-15.9186],[124.7267,-15.809],[124.6701,-15.7869],[124.6162,-15.8023],[124.5347,-15.9364],[124.4878,-15.9372],[124.4002,-15.8643],[124.3719,-15.6683],[124.4572,-15.4783],[124.4889,-15.4652],[124.5818,-15.5168],[124.6741,-15.455],[124.6633,-15.263],[124.7053,-15.2533],[124.9125,-15.3561],[124.9938,-15.4318],[125.0764,-15.4304],[125.1186,-15.3232],[125.0973,-15.3018],[125.0114,-15.3005],[124.9121,-15.336],[124.9007,-15.2789],[124.9375,-15.2284],[125.0043,-15.2282],[125.0128,-15.1536],[124.8817,-15.2374],[124.8544,-15.2361],[124.8249,-15.1603],[124.9005,-15.1004],[124.9592,-15.1172],[125.0329,-15.0747],[125.0183,-15.0408],[125.0783,-14.9997],[125.1472,-15.1514],[125.1746,-15.1195],[125.1616,-15.0339],[125.2793,-15.1012],[125.3216,-15.156],[125.4148,-15.1515],[125.3602,-15.0987],[125.39,-15.0708],[125.2811,-14.9955],[125.1829,-14.9483],[125.2431,-14.902],[125.136,-14.7474],[125.2433,-14.5981],[125.3361,-14.523],[125.3883,-14.545],[125.5889,-14.5494],[125.5994,-14.427],[125.58,-14.3089],[125.6183,-14.2224],[125.7287,-14.2732],[125.7228,-14.4043],[125.843,-14.4649],[125.825,-14.5725],[125.9028,-14.6436],[125.991,-14.5472],[126.0376,-14.5152],[126.0664,-14.3442],[126.1433,-14.1925],[126.1467,-14.13],[126.0675,-13.9155],[126.148,-13.9275],[126.2175,-13.9619],[126.2089,-14.0373],[126.1572,-14.0591],[126.1917,-14.1684],[126.2341,-14.1797],[126.2878,-14.2331],[126.3133,-14.1936],[126.2946,-14.1406],[126.3342,-14.0504],[126.4313,-13.975],[126.5025,-13.9647],[126.4553,-14.0775],[126.5683,-14.2206],[126.6005,-14.2297],[126.7039,-14.1238],[126.7891,-13.9714],[126.7459,-13.7954],[126.8579,-13.751],[126.9559,-13.7282],[127.0177,-13.7764],[127.0747,-13.8486],[127.0576,-13.8863],[127.1284,-13.9715],[127.1542,-13.9],[127.2419,-13.8964],[127.4252,-13.954],[127.5211,-14.0861],[127.658,-14.176],[127.9572,-14.5817],[128.0001,-14.5607],[128.1694,-14.7028],[128.1883,-14.8003],[128.1399,-14.8677],[128.0694,-15.1008],[128.0797,-15.2061],[128.069,-15.4718],[128.0971,-15.4343],[128.1321,-15.214],[128.1817,-15.2334],[128.2576,-15.306],[128.2919,-15.3038],[128.2244,-15.1905],[128.1921,-15.0652],[128.3063,-14.9128],[128.3263,-14.9165],[128.353,-15.0443],[128.4483,-15.0471],[128.4582,-15.0017],[128.4186,-14.932],[128.3877,-14.8],[128.536,-14.7585],[129,-14.8711]]],[[[113.2056,-26.1448],[113.1761,-26.1231],[113.0275,-25.9203],[112.9525,-25.7845],[112.9072,-25.6275],[112.9139,-25.5397],[112.9538,-25.4878],[113.0032,-25.499],[112.9872,-25.5708],[113.1053,-25.8764],[113.207,-26.0428],[113.2271,-26.1088],[113.2056,-26.1448]]],[[[125.1383,-14.6486],[125.086,-14.621],[125.1153,-14.4866],[125.1622,-14.439],[125.208,-14.4891],[125.1853,-14.5989],[125.1383,-14.6486]]],[[[115.3689,-20.8808],[115.3028,-20.816],[115.4052,-20.6861],[115.45,-20.6737],[115.4597,-20.7728],[115.3689,-20.8808]]],[[[124.5225,-15.4453],[124.4605,-15.3691],[124.4943,-15.2862],[124.5597,-15.26],[124.6465,-15.4007],[124.5225,-15.4453]]]]},properties:{name:"Western Australia",id:"AU-WA",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-WA"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[149.051,-35.9172],[148.9267,-35.8728],[148.7935,-35.7115],[148.7672,-35.6522],[148.7689,-35.5133],[148.8172,-35.3203],[149.0797,-35.1617],[149.1966,-35.216],[149.2488,-35.2672],[149.4024,-35.3275],[149.358,-35.3603],[149.2648,-35.3499],[149.1895,-35.3792],[149.1417,-35.4341],[149.0851,-35.6209],[149.1069,-35.8275],[149.051,-35.9172]]]},properties:{name:"Australian Capital Territory",id:"AU-ACT",CNTRY_NAME:"Australia",TYPE:"Territory"},id:"AU-ACT"},{type:"Feature",geometry:{type:"Polygon",coordinates:[[[149.9777,-37.5126],[148.2049,-36.7974],[148.115,-36.7914],[148.1963,-36.679],[148.2061,-36.6071],[148.114,-36.4551],[148.051,-36.3895],[147.999,-36.0596],[147.8906,-36.0036],[147.7233,-35.945],[147.6372,-35.9719],[147.4965,-35.9499],[147.4031,-35.9624],[147.3102,-36.0564],[147.2197,-36.0633],[147.0523,-36.1111],[146.9175,-36.1037],[146.6941,-36.0469],[146.6045,-35.99],[146.5011,-35.9771],[146.2985,-36.0508],[146.0916,-36.0361],[145.8058,-35.9923],[145.7359,-35.9683],[145.5457,-35.8302],[145.445,-35.8414],[145.3572,-35.8805],[145.2362,-35.8515],[145.1133,-35.8514],[144.9876,-35.878],[144.9341,-35.9995],[144.9494,-36.1011],[144.7727,-36.1414],[144.6103,-36.0749],[144.4,-35.875],[144.3489,-35.7791],[144.2688,-35.745],[144.1674,-35.671],[144.0902,-35.5842],[143.9191,-35.5095],[143.7655,-35.4136],[143.653,-35.4003],[143.5748,-35.3412],[143.5974,-35.2835],[143.5587,-35.2347],[143.478,-35.2182],[143.403,-35.18],[143.3572,-35.0968],[143.3309,-34.9715],[143.3545,-34.872],[143.3429,-34.7929],[143.1302,-34.6972],[142.9814,-34.6892],[142.8636,-34.6497],[142.7878,-34.588],[142.7133,-34.6248],[142.6808,-34.7425],[142.6355,-34.7899],[142.5508,-34.7763],[142.4652,-34.6054],[142.3783,-34.5392],[142.3738,-34.3955],[142.2344,-34.2012],[142.1541,-34.1557],[142.0388,-34.1123],[141.8825,-34.1391],[141.7344,-34.107],[141.6464,-34.1351],[141.5906,-34.1994],[141.5233,-34.2006],[141.4115,-34.1436],[141.2474,-34.0803],[141.0748,-34.0698],[140.9978,-34.0241],[141.0027,-29.0002],[141.1219,-28.9991],[143.1302,-29],[144.6869,-29],[145.9567,-29],[148.9528,-29],[149.0294,-28.9664],[149.1461,-28.8378],[149.466,-28.598],[149.5764,-28.5714],[149.6176,-28.6049],[149.7055,-28.6278],[150.0137,-28.6043],[150.157,-28.5551],[150.3205,-28.5459],[150.397,-28.6161],[150.4661,-28.6573],[150.6333,-28.6614],[150.7843,-28.6338],[151.0371,-28.7355],[151.2925,-28.9293],[151.3047,-29.0817],[151.3454,-29.1612],[151.4166,-29.1591],[151.4649,-29.1147],[151.5555,-28.9531],[151.7279,-28.8861],[151.7647,-28.9488],[151.8268,-28.9751],[152.0181,-28.8937],[152.0506,-28.7305],[151.9606,-28.5501],[152.0575,-28.4822],[152.1695,-28.4332],[152.3685,-28.3754],[152.4866,-28.263],[152.5306,-28.2685],[152.5963,-28.3281],[152.7601,-28.3601],[152.9469,-28.3427],[153.1122,-28.3529],[153.1889,-28.2632],[153.3221,-28.2413],[153.4317,-28.2036],[153.506,-28.1501],[153.5776,-28.2079],[153.5915,-28.2739],[153.5597,-28.4916],[153.5785,-28.6055],[153.6242,-28.661],[153.606,-28.8622],[153.4481,-29.0437],[153.3377,-29.3283],[153.3655,-29.3984],[153.2539,-29.9525],[153.205,-30.1147],[153.0186,-30.5686],[153.0055,-30.8353],[153.0571,-30.8877],[153.075,-30.9487],[152.973,-31.2433],[152.9542,-31.3594],[152.8488,-31.6566],[152.7602,-31.8106],[152.5575,-32.0291],[152.5118,-32.1311],[152.5414,-32.2636],[152.5297,-32.4036],[152.3557,-32.5283],[152.2809,-32.6014],[152.1274,-32.6822],[152.1448,-32.7705],[151.9527,-32.827],[151.8122,-32.8888],[151.6689,-33.07],[151.5741,-33.2672],[151.4546,-33.3168],[151.4447,-33.3622],[151.4868,-33.3936],[151.4547,-33.5007],[151.3402,-33.6286],[151.297,-33.8975],[151.2728,-33.9695],[151.1783,-33.9875],[151.1952,-34.0568],[151.1141,-34.1664],[151.0238,-34.222],[150.9342,-34.3317],[150.8405,-34.5583],[150.8814,-34.5992],[150.8313,-34.786],[150.767,-34.8196],[150.7469,-34.8775],[150.7819,-34.9617],[150.7754,-35.012],[150.6852,-35.0422],[150.7033,-35.127],[150.6475,-35.1786],[150.5403,-35.2267],[150.4067,-35.5278],[150.3558,-35.595],[150.1624,-35.9405],[150.1375,-36.1117],[150.1356,-36.3282],[150.0772,-36.3889],[150.0234,-36.6281],[149.9664,-36.7947],[149.9025,-36.9233],[149.9067,-37.0692],[150.0065,-37.1618],[150.0198,-37.2314],[149.9479,-37.2819],[149.9494,-37.3984],[149.9777,-37.5126]],[[148.9267,-35.8728],[149.051,-35.9172],[149.1069,-35.8275],[149.0851,-35.6209],[149.1417,-35.4341],[149.1895,-35.3792],[149.2648,-35.3499],[149.358,-35.3603],[149.4024,-35.3275],[149.2488,-35.2672],[149.1966,-35.216],[149.0797,-35.1617],[148.8172,-35.3203],[148.7689,-35.5133],[148.7672,-35.6522],[148.7935,-35.7115],[148.9267,-35.8728]]]},properties:{name:"New South Wales",id:"AU-NSW",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-NSW"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[137.9109,-35.7294],[138.0628,-35.7632],[138.1119,-35.8175],[138.1127,-35.8697],[138.0403,-35.9227],[137.9211,-35.8756],[137.761,-35.866],[137.6197,-35.9199],[137.6144,-36.0095],[137.4555,-36.0853],[137.3575,-36.0045],[137.226,-35.984],[137.1501,-36.0442],[137.0317,-36.0355],[136.8997,-36.0522],[136.7122,-36.0567],[136.6803,-36.0132],[136.5385,-35.9174],[136.5339,-35.8822],[136.5811,-35.7694],[136.9475,-35.6808],[137.1205,-35.6622],[137.3172,-35.5907],[137.5261,-35.6047],[137.585,-35.6508],[137.5979,-35.747],[137.6933,-35.7575],[137.7915,-35.8032],[137.8507,-35.8067],[137.9109,-35.7294]]],[[[129.0003,-31.6926],[129.0059,-26.0049],[129.9006,-25.9994],[131.2333,-26],[138.0005,-25.9995],[141.0005,-25.9997],[141.0027,-29.0002],[140.9978,-34.0241],[140.9719,-33.9954],[140.9681,-38.0642],[140.8506,-38.0547],[140.6986,-38.0719],[140.53,-38.0004],[140.3559,-37.8617],[140.2383,-37.6719],[140.1213,-37.5307],[140.0498,-37.4904],[139.9938,-37.4925],[139.8144,-37.2997],[139.7514,-37.1997],[139.7803,-37.1078],[139.7337,-37.0143],[139.7519,-36.9216],[139.8229,-36.8746],[139.8618,-36.7947],[139.8608,-36.6608],[139.8235,-36.5546],[139.648,-36.2097],[139.3719,-35.9106],[139.4039,-35.8872],[139.584,-36.0885],[139.6041,-36.0414],[139.448,-35.8842],[139.0996,-35.6125],[139.0976,-35.524],[139.1597,-35.5039],[139.2351,-35.5572],[139.2261,-35.6826],[139.3358,-35.6914],[139.3613,-35.6039],[139.3731,-35.4704],[139.3566,-35.3745],[139.2125,-35.3167],[139.1347,-35.379],[138.97,-35.4085],[138.9594,-35.4756],[139.0358,-35.5099],[138.9911,-35.5574],[138.7215,-35.5388],[138.6505,-35.563],[138.5363,-35.6535],[138.175,-35.6696],[138.0932,-35.6192],[138.153,-35.5329],[138.2856,-35.479],[138.4388,-35.3438],[138.4675,-35.2117],[138.465,-35.1131],[138.5142,-35.025],[138.4811,-34.8629],[138.4961,-34.7289],[138.4352,-34.6422],[138.275,-34.4801],[138.2197,-34.3149],[138.0922,-34.135],[138.0681,-34.1397],[138.0069,-34.2572],[138.019,-34.3442],[137.9245,-34.4255],[137.8891,-34.5252],[137.8755,-34.7111],[137.7491,-35.0497],[137.7482,-35.1328],[137.6744,-35.1816],[137.5322,-35.1289],[137.4211,-35.12],[137.2336,-35.1782],[137.1668,-35.2482],[137.0276,-35.2307],[136.9499,-35.2866],[136.8923,-35.3041],[136.8315,-35.2518],[136.9367,-35.1472],[136.9604,-35.0998],[136.977,-34.9589],[137.024,-34.902],[137.1077,-34.9296],[137.2815,-34.9064],[137.3847,-34.9608],[137.4541,-34.8969],[137.4985,-34.6586],[137.4811,-34.4717],[137.4933,-34.2864],[137.4517,-34.1604],[137.5148,-34.1433],[137.5949,-33.9558],[137.6029,-33.884],[137.7778,-33.6973],[137.9486,-33.5593],[137.9161,-33.4414],[137.8143,-33.278],[137.8449,-33.202],[137.955,-33.1494],[138.0469,-33.1294],[138.0089,-33.0288],[137.9541,-33.0091],[137.8964,-32.7872],[137.8438,-32.688],[137.8163,-32.5669],[137.763,-32.5325],[137.7551,-32.6958],[137.8012,-32.741],[137.8076,-32.8479],[137.7748,-32.9928],[137.5955,-33.0297],[137.4883,-33.1278],[137.3852,-33.3003],[137.3611,-33.4293],[137.2099,-33.6661],[137.142,-33.7137],[137.0203,-33.7173],[136.9497,-33.681],[136.8638,-33.807],[136.5799,-33.9319],[136.4134,-34.041],[136.3565,-34.0902],[136.3061,-34.1989],[136.2066,-34.3321],[136.1259,-34.362],[136.0403,-34.4836],[135.9369,-34.5369],[135.875,-34.6383],[135.8038,-34.8152],[135.8729,-34.8199],[136.0066,-34.7425],[136.02,-34.7952],[136.0046,-34.9918],[135.9564,-35.0083],[135.8466,-34.8903],[135.7867,-34.8603],[135.724,-34.8678],[135.6797,-34.9538],[135.6061,-34.893],[135.4747,-34.7511],[135.3263,-34.6248],[135.2159,-34.5651],[135.1123,-34.5948],[135.1517,-34.5039],[135.2132,-34.4981],[135.3444,-34.6142],[135.3965,-34.644],[135.3931,-34.4953],[135.3491,-34.2892],[135.2726,-34.1203],[135.2611,-34.0065],[135.1938,-33.9194],[135.0336,-33.7686],[134.8407,-33.6378],[134.8684,-33.5415],[134.858,-33.472],[134.8086,-33.3528],[134.7075,-33.1772],[134.5935,-33.14],[134.4086,-33.1645],[134.3295,-33.2028],[134.2693,-33.12],[134.1957,-32.9545],[134.0745,-32.7209],[134.1547,-32.7259],[134.2082,-32.8076],[134.2765,-32.7287],[134.2971,-32.6775],[134.2764,-32.5886],[134.2055,-32.5036],[134.1141,-32.4534],[133.9555,-32.4958],[133.8907,-32.5482],[133.8529,-32.5418],[133.8544,-32.4604],[133.8833,-32.4047],[133.9508,-32.3983],[133.8263,-32.2508],[133.7255,-32.2006],[133.6059,-32.0981],[133.5667,-32.1657],[133.4851,-32.2098],[133.1666,-32.1908],[133.0655,-32.1199],[132.9736,-32.0917],[132.8329,-31.9779],[132.7852,-31.9562],[132.5844,-31.9359],[132.4889,-31.9525],[132.4141,-32.0117],[132.3278,-32.0378],[132.1959,-32.0269],[132.0269,-31.8819],[131.7691,-31.7222],[131.365,-31.5434],[131.1486,-31.474],[131.1152,-31.4775],[131.0125,-31.5489],[130.844,-31.6047],[130.7936,-31.6103],[130.2633,-31.5762],[129.9358,-31.5934],[129.8383,-31.6144],[129.2319,-31.6583],[129.0003,-31.6926]]]]},properties:{name:"South Australia",id:"AU-SA",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-SA"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[145.3541,-38.57],[145.2714,-38.5209],[145.117,-38.5311],[145.1903,-38.467],[145.3097,-38.466],[145.3541,-38.57]]],[[[140.9681,-38.0642],[140.9719,-33.9954],[140.9978,-34.0241],[141.0748,-34.0698],[141.2474,-34.0803],[141.4115,-34.1436],[141.5233,-34.2006],[141.5906,-34.1994],[141.6464,-34.1351],[141.7344,-34.107],[141.8825,-34.1391],[142.0388,-34.1123],[142.1541,-34.1557],[142.2344,-34.2012],[142.3738,-34.3955],[142.3783,-34.5392],[142.4652,-34.6054],[142.5508,-34.7763],[142.6355,-34.7899],[142.6808,-34.7425],[142.7133,-34.6248],[142.7878,-34.588],[142.8636,-34.6497],[142.9814,-34.6892],[143.1302,-34.6972],[143.3429,-34.7929],[143.3545,-34.872],[143.3309,-34.9715],[143.3572,-35.0968],[143.403,-35.18],[143.478,-35.2182],[143.5587,-35.2347],[143.5974,-35.2835],[143.5748,-35.3412],[143.653,-35.4003],[143.7655,-35.4136],[143.9191,-35.5095],[144.0902,-35.5842],[144.1674,-35.671],[144.2688,-35.745],[144.3489,-35.7791],[144.4,-35.875],[144.6103,-36.0749],[144.7727,-36.1414],[144.9494,-36.1011],[144.9341,-35.9995],[144.9876,-35.878],[145.1133,-35.8514],[145.2362,-35.8515],[145.3572,-35.8805],[145.445,-35.8414],[145.5457,-35.8302],[145.7359,-35.9683],[145.8058,-35.9923],[146.0916,-36.0361],[146.2985,-36.0508],[146.5011,-35.9771],[146.6045,-35.99],[146.6941,-36.0469],[146.9175,-36.1037],[147.0523,-36.1111],[147.2197,-36.0633],[147.3102,-36.0564],[147.4031,-35.9624],[147.4965,-35.9499],[147.6372,-35.9719],[147.7233,-35.945],[147.8906,-36.0036],[147.999,-36.0596],[148.051,-36.3895],[148.114,-36.4551],[148.2061,-36.6071],[148.1963,-36.679],[148.115,-36.7914],[148.2049,-36.7974],[149.9777,-37.5126],[149.8994,-37.5521],[149.7855,-37.5605],[149.6728,-37.6963],[149.4571,-37.7833],[149.3094,-37.7953],[148.8262,-37.7978],[148.6586,-37.8166],[148.4939,-37.8116],[148.3091,-37.8216],[147.964,-37.9024],[147.7592,-37.9825],[147.5411,-38.1134],[147.213,-38.3631],[146.9694,-38.5853],[146.8736,-38.6517],[146.6499,-38.6738],[146.4311,-38.7172],[146.3527,-38.6979],[146.2193,-38.716],[146.1847,-38.7574],[146.2965,-38.9166],[146.4693,-38.8057],[146.4837,-39.0763],[146.4251,-39.1347],[146.3469,-39.1301],[146.247,-38.9489],[146.1423,-38.846],[146.0652,-38.82],[146.0027,-38.8635],[145.9044,-38.857],[145.8236,-38.7286],[145.8161,-38.6523],[145.7279,-38.6414],[145.6586,-38.6772],[145.5662,-38.6652],[145.416,-38.5458],[145.4322,-38.4522],[145.5203,-38.4231],[145.5552,-38.3743],[145.4855,-38.2481],[145.4443,-38.227],[145.2555,-38.2376],[145.213,-38.3492],[145.0304,-38.4974],[144.9013,-38.5059],[144.7611,-38.3778],[144.8804,-38.3778],[144.985,-38.3405],[145.1313,-38.137],[145.0992,-38.043],[144.9755,-37.892],[144.9177,-37.8686],[144.8247,-37.9025],[144.6912,-38.0039],[144.5269,-38.1011],[144.386,-38.1131],[144.3745,-38.1628],[144.513,-38.1816],[144.6371,-38.134],[144.7063,-38.1492],[144.7105,-38.2225],[144.6339,-38.2997],[144.5486,-38.2838],[144.3951,-38.3096],[144.0617,-38.4846],[143.8423,-38.6966],[143.7319,-38.7203],[143.6732,-38.7839],[143.5429,-38.8593],[143.3874,-38.7684],[143.18,-38.7161],[143.0482,-38.6371],[142.9717,-38.6293],[142.8033,-38.576],[142.5352,-38.4128],[142.3793,-38.3639],[142.1604,-38.4001],[141.9647,-38.2921],[141.8214,-38.2675],[141.6794,-38.2829],[141.6202,-38.3219],[141.6502,-38.3998],[141.5714,-38.4172],[141.4541,-38.3725],[141.3675,-38.2894],[141.1931,-38.1606],[141.1036,-38.1139],[140.9681,-38.0642]]],[[[145.3559,-38.4311],[145.2838,-38.409],[145.2957,-38.2987],[145.4556,-38.3248],[145.3559,-38.4311]]]]},properties:{name:"Victoria",id:"AU-VIC",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-VIC"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[153.0816,-25.7959],[153.038,-25.7873],[152.9977,-25.7378],[152.943,-25.5583],[152.9966,-25.4394],[153.0643,-25.3386],[153.0495,-25.2308],[153.0908,-25.1523],[153.1945,-25.0755],[153.2402,-24.993],[153.2377,-24.9142],[153.1781,-24.8247],[153.1961,-24.7508],[153.2816,-24.6992],[153.29,-24.9042],[153.371,-25.0141],[153.1271,-25.5364],[153.0828,-25.6678],[153.0974,-25.7486],[153.0816,-25.7959]]],[[[153.506,-28.1501],[153.4317,-28.2036],[153.3221,-28.2413],[153.1889,-28.2632],[153.1122,-28.3529],[152.9469,-28.3427],[152.7601,-28.3601],[152.5963,-28.3281],[152.5306,-28.2685],[152.4866,-28.263],[152.3685,-28.3754],[152.1695,-28.4332],[152.0575,-28.4822],[151.9606,-28.5501],[152.0506,-28.7305],[152.0181,-28.8937],[151.8268,-28.9751],[151.7647,-28.9488],[151.7279,-28.8861],[151.5555,-28.9531],[151.4649,-29.1147],[151.4166,-29.1591],[151.3454,-29.1612],[151.3047,-29.0817],[151.2925,-28.9293],[151.0371,-28.7355],[150.7843,-28.6338],[150.6333,-28.6614],[150.4661,-28.6573],[150.397,-28.6161],[150.3205,-28.5459],[150.157,-28.5551],[150.0137,-28.6043],[149.7055,-28.6278],[149.6176,-28.6049],[149.5764,-28.5714],[149.466,-28.598],[149.1461,-28.8378],[149.0294,-28.9664],[148.9528,-29],[145.9567,-29],[144.6869,-29],[143.1302,-29],[141.1219,-28.9991],[141.0027,-29.0002],[141.0005,-25.9997],[138.0005,-25.9995],[138.0003,-16.5547],[138.1948,-16.7074],[138.2908,-16.7425],[138.4869,-16.7878],[138.6396,-16.7793],[138.6873,-16.8126],[138.8433,-16.8758],[139.0105,-16.8991],[139.1413,-17.0742],[139.1628,-17.2031],[139.213,-17.2971],[139.2605,-17.3425],[139.3367,-17.3678],[139.4372,-17.3792],[139.5354,-17.4418],[139.6165,-17.5208],[139.8142,-17.5753],[139.8827,-17.6142],[139.9794,-17.6972],[140.1322,-17.7192],[140.3966,-17.6733],[140.5342,-17.6244],[140.6199,-17.58],[140.758,-17.4778],[140.8333,-17.4519],[140.8858,-17.3597],[140.9422,-17.1511],[140.9569,-17.0011],[141.1945,-16.7039],[141.2861,-16.5033],[141.3155,-16.3575],[141.4266,-16.0744],[141.4005,-15.9058],[141.4605,-15.5361],[141.6346,-15.1493],[141.6655,-15.0265],[141.5665,-14.7636],[141.521,-14.4813],[141.5361,-14.3986],[141.5932,-14.2556],[141.6001,-14.1438],[141.5781,-14.0654],[141.4775,-13.9485],[141.4689,-13.8281],[141.5419,-13.5328],[141.6887,-13.254],[141.6309,-13.1595],[141.5856,-12.9864],[141.6068,-12.9346],[141.7086,-12.871],[141.7477,-12.8244],[141.7969,-12.6913],[141.8567,-12.7093],[141.8894,-12.7635],[141.89,-12.8436],[141.9404,-12.865],[141.8838,-12.7041],[141.8394,-12.6725],[141.7178,-12.4934],[141.6622,-12.4511],[141.6269,-12.5696],[141.5942,-12.5317],[141.6883,-12.3319],[141.7758,-12.2136],[141.7599,-12.1789],[141.8054,-12.0517],[141.8491,-11.9885],[141.8924,-11.969],[141.9169,-12.0889],[142.0237,-12.0678],[142.0316,-12.0435],[141.9506,-11.9654],[141.9689,-11.8085],[142.1228,-11.3726],[142.1589,-11.1494],[142.1382,-10.9736],[142.1846,-10.9229],[142.343,-10.8954],[142.3996,-10.822],[142.4445,-10.7097],[142.5188,-10.7067],[142.6132,-10.7508],[142.5163,-10.8582],[142.609,-10.8725],[142.7448,-10.9865],[142.7883,-11.0805],[142.8659,-11.3913],[142.84,-11.5112],[142.8675,-11.7158],[142.8598,-11.8332],[142.9687,-11.9274],[143.0375,-11.9328],[143.1033,-11.9036],[143.1992,-11.9875],[143.1022,-12.1403],[143.082,-12.225],[143.0775,-12.3343],[143.1602,-12.3408],[143.2758,-12.4131],[143.2794,-12.5176],[143.43,-12.6168],[143.3751,-12.7428],[143.3623,-12.8489],[143.4058,-12.8704],[143.5044,-12.8592],[143.5141,-12.8792],[143.4983,-13.0986],[143.5286,-13.3405],[143.5947,-13.432],[143.5867,-13.5261],[143.5308,-13.7564],[143.6014,-13.9361],[143.6857,-14.0233],[143.6985,-14.1854],[143.737,-14.3192],[143.7822,-14.4133],[143.8876,-14.4872],[144.0119,-14.4877],[144.1536,-14.38],[144.4351,-14.2541],[144.4762,-14.163],[144.5159,-14.1717],[144.5786,-14.2632],[144.567,-14.3585],[144.6145,-14.4847],[144.6768,-14.5574],[144.8282,-14.6139],[144.8966,-14.6182],[144.9593,-14.7538],[145.2064,-14.8625],[145.3158,-14.9456],[145.3097,-15.0045],[145.2343,-15.1345],[145.2377,-15.1931],[145.2769,-15.257],[145.2894,-15.3311],[145.2486,-15.4464],[145.3049,-15.5547],[145.3595,-15.7343],[145.3592,-15.9154],[145.4099,-15.9647],[145.4623,-16.0831],[145.4462,-16.2875],[145.4088,-16.3382],[145.4021,-16.441],[145.4644,-16.5022],[145.8061,-16.9131],[145.8389,-16.8862],[145.9318,-16.8711],[145.9554,-16.8991],[145.8781,-17.0404],[145.8828,-17.0717],[145.9539,-17.1886],[146.0319,-17.3644],[146.0855,-17.5528],[146.1042,-17.6917],[146.0861,-17.7872],[146.1008,-17.8897],[146.094,-17.9559],[146.0017,-18.1422],[146.0094,-18.2381],[146.2119,-18.4917],[146.3336,-18.5356],[146.3262,-18.6474],[146.2811,-18.7472],[146.2682,-18.8536],[146.3357,-18.9604],[146.4235,-19.0255],[146.448,-19.0711],[146.5652,-19.1436],[146.6544,-19.1839],[146.7636,-19.1868],[146.8858,-19.303],[146.9535,-19.3058],[147.0722,-19.3428],[147.1394,-19.4028],[147.2534,-19.4258],[147.4319,-19.4124],[147.4588,-19.37],[147.5552,-19.5354],[147.5949,-19.7272],[147.6695,-19.8247],[147.7701,-19.8263],[147.7614,-19.71],[147.8512,-19.7402],[147.8636,-19.8508],[147.9718,-19.9186],[148.0969,-19.913],[148.22,-19.9472],[148.2988,-20.0379],[148.2747,-20.0766],[148.3339,-20.1453],[148.4134,-20.2064],[148.4664,-20.1845],[148.453,-20.0636],[148.5222,-20.088],[148.673,-20.2161],[148.7689,-20.2324],[148.8033,-20.2767],[148.8667,-20.4448],[148.8786,-20.5214],[148.7903,-20.4569],[148.7411,-20.4758],[148.6672,-20.5617],[148.7291,-20.7175],[148.8497,-20.8361],[148.9214,-20.8831],[149.0284,-20.9186],[149.1606,-21.0153],[149.2147,-21.08],[149.2049,-21.1544],[149.24,-21.2786],[149.2894,-21.3186],[149.3285,-21.4378],[149.3855,-21.5314],[149.443,-21.5825],[149.43,-21.7732],[149.5208,-22.0772],[149.5899,-22.2333],[149.6533,-22.3181],[149.6966,-22.3506],[149.6994,-22.4525],[149.7363,-22.4633],[149.8147,-22.3839],[150.0383,-22.641],[149.9864,-22.4756],[149.9208,-22.3506],[149.9214,-22.3033],[149.9599,-22.2083],[149.9995,-22.1603],[150.0789,-22.1628],[150.1553,-22.2722],[150.2004,-22.3917],[150.3219,-22.4375],[150.48,-22.5386],[150.593,-22.5861],[150.5353,-22.4587],[150.5344,-22.3835],[150.5619,-22.3311],[150.6345,-22.343],[150.7055,-22.4414],[150.6758,-22.5049],[150.6836,-22.5536],[150.8191,-22.7319],[150.7558,-23.1303],[150.8122,-23.238],[150.8004,-23.3807],[150.8671,-23.505],[150.9485,-23.5462],[151.0231,-23.5565],[151.0521,-23.6172],[151.1202,-23.6651],[151.1681,-23.7925],[151.3183,-23.8583],[151.4242,-23.9786],[151.5466,-24.036],[151.6142,-24.0528],[151.616,-23.9983],[151.6839,-23.9889],[151.7881,-24.0989],[151.9334,-24.2179],[152.01,-24.4264],[152.1318,-24.6082],[152.2771,-24.71],[152.4183,-24.7603],[152.468,-24.8122],[152.4977,-24.8773],[152.5077,-24.9978],[152.6715,-25.2451],[152.8089,-25.2826],[152.9079,-25.2889],[152.9466,-25.4364],[152.9343,-25.5248],[152.8934,-25.5624],[152.8986,-25.6792],[152.9205,-25.7354],[152.9841,-25.7718],[153.0379,-25.8906],[153.182,-25.9494],[153.1375,-26.0678],[153.072,-26.3085],[153.0902,-26.3733],[153.1152,-26.6695],[153.1431,-26.73],[153.1572,-27.0827],[153.0957,-27.1004],[153.0346,-27.1767],[153.0648,-27.3133],[153.1747,-27.3889],[153.256,-27.4797],[153.3188,-27.6712],[153.4033,-27.7773],[153.4328,-27.8483],[153.4103,-27.9819],[153.4603,-28.0927],[153.506,-28.1501]]],[[[153.4253,-27.3628],[153.3587,-27.1967],[153.3583,-27.0615],[153.4445,-27.0193],[153.4664,-27.0342],[153.4144,-27.2089],[153.4253,-27.3628]]],[[[146.29,-18.4939],[146.2205,-18.4683],[146.2016,-18.3766],[146.1575,-18.3194],[146.1111,-18.2981],[146.1275,-18.245],[146.2697,-18.3083],[146.3522,-18.4229],[146.29,-18.4939]]],[[[139.4283,-17.1461],[139.4001,-17.0888],[139.5027,-16.9967],[139.5541,-17.0318],[139.5703,-17.105],[139.4528,-17.1028],[139.4283,-17.1461]]],[[[139.1483,-16.7608],[139.1386,-16.7025],[139.165,-16.6006],[139.2225,-16.5239],[139.3067,-16.4625],[139.4797,-16.4422],[139.5344,-16.4139],[139.7273,-16.4443],[139.7329,-16.5028],[139.6238,-16.5358],[139.5808,-16.5025],[139.4891,-16.5381],[139.5036,-16.5692],[139.442,-16.6678],[139.3303,-16.7089],[139.1853,-16.735],[139.1483,-16.7608]]],[[[151.2271,-23.7867],[151.1725,-23.7403],[151.1336,-23.6613],[151.0661,-23.6053],[151.0277,-23.5258],[151.0184,-23.4564],[151.0628,-23.4471],[151.203,-23.5289],[151.2871,-23.6725],[151.299,-23.7505],[151.2271,-23.7867]]],[[[142.1833,-10.7703],[142.1206,-10.7206],[142.1158,-10.6575],[142.2169,-10.6103],[142.2658,-10.6836],[142.1833,-10.7703]]],[[[153.4069,-27.7311],[153.3952,-27.6114],[153.4336,-27.4161],[153.5409,-27.4181],[153.4749,-27.6139],[153.454,-27.7263],[153.4069,-27.7311]]],[[[142.2799,-10.2656],[142.2105,-10.2368],[142.1894,-10.2042],[142.2286,-10.1455],[142.2841,-10.1357],[142.34,-10.1914],[142.2799,-10.2656]]]]},properties:{name:"Queensland",id:"AU-QLD",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-QLD"},{type:"Feature",geometry:{type:"MultiPolygon",coordinates:[[[[146.9166,-43.6178],[146.6864,-43.6033],[146.5995,-43.5561],[146.5144,-43.5428],[146.296,-43.5347],[146.2315,-43.4888],[146.1103,-43.5154],[146.0383,-43.498],[145.9327,-43.3763],[145.9919,-43.3458],[146.1026,-43.358],[146.2325,-43.391],[146.2345,-43.3252],[146.1633,-43.2823],[146.1247,-43.3333],[145.8589,-43.3087],[145.8369,-43.2973],[145.7269,-43.1333],[145.5953,-42.9792],[145.5116,-42.9656],[145.4232,-42.8467],[145.3539,-42.6585],[145.26,-42.6124],[145.1976,-42.3134],[145.2501,-42.2748],[145.4263,-42.3746],[145.4694,-42.5231],[145.552,-42.3511],[145.4583,-42.3264],[145.2802,-42.1812],[145.2479,-42.0349],[145.1846,-41.9383],[145.0549,-41.8467],[144.955,-41.7133],[144.6858,-41.2166],[144.6677,-41.0752],[144.6372,-41.032],[144.6187,-40.9311],[144.6997,-40.8755],[144.7013,-40.7592],[144.7622,-40.7281],[144.986,-40.7487],[145.1164,-40.8224],[145.275,-40.8028],[145.3357,-40.8422],[145.5391,-40.8928],[145.8722,-41.0428],[146.1932,-41.1569],[146.4054,-41.1717],[146.5819,-41.1515],[146.6604,-41.0888],[146.7844,-41.0823],[146.8638,-41.0284],[147.0171,-40.9761],[147.1474,-41.0089],[147.3561,-40.9764],[147.4165,-41.0178],[147.4884,-40.985],[147.5891,-40.853],[147.6749,-40.8308],[147.8032,-40.8928],[147.9018,-40.8632],[147.9511,-40.7613],[148.0142,-40.746],[148.0794,-40.7689],[148.221,-40.849],[148.2734,-40.9011],[148.3283,-40.9954],[148.2643,-41.1673],[148.3135,-41.2593],[148.3169,-41.3347],[148.2738,-41.4541],[148.2804,-41.5392],[148.3143,-41.613],[148.2647,-41.8146],[148.298,-42.035],[148.3587,-42.1087],[148.3638,-42.2224],[148.2753,-42.2555],[148.3097,-42.1406],[148.2388,-41.9982],[148.1952,-41.9454],[148.0791,-42.1172],[148.004,-42.5225],[147.9438,-42.6139],[147.9549,-42.7175],[147.8832,-42.7723],[147.9109,-42.8408],[147.9742,-42.8695],[148.0048,-42.9769],[147.967,-42.9955],[147.9515,-43.0823],[148.0047,-43.1709],[147.9708,-43.2291],[147.8995,-43.1834],[147.7897,-43.247],[147.6972,-43.1636],[147.619,-43.0177],[147.6739,-42.9451],[147.7818,-43.0511],[147.8995,-43.0268],[147.8258,-42.932],[147.5916,-42.8267],[147.5021,-42.8608],[147.5527,-42.9789],[147.5256,-43.0184],[147.4272,-43.0418],[147.408,-42.8897],[147.3486,-42.9047],[147.3261,-43.0086],[147.2682,-43.0604],[147.2419,-43.1336],[147.2625,-43.2039],[147.2475,-43.2692],[147.1782,-43.2822],[147.0983,-43.2445],[146.9701,-43.1371],[146.9693,-43.2043],[147.0954,-43.2887],[147.0023,-43.4226],[146.9166,-43.6178]]],[[[148.1289,-40.2745],[148.0386,-40.2363],[148.0183,-40.1402],[147.9039,-39.9756],[147.7608,-39.878],[147.8819,-39.7542],[147.9677,-39.7255],[148.1655,-39.9294],[148.2794,-39.9658],[148.3352,-40.1922],[148.3033,-40.239],[148.1289,-40.2745]]],[[[143.9216,-40.1364],[143.8864,-40.1168],[143.8919,-39.9847],[143.8348,-39.9275],[143.8553,-39.7119],[143.9336,-39.667],[143.9354,-39.583],[143.9775,-39.5738],[144.0668,-39.6161],[144.1086,-39.6625],[144.1222,-39.825],[144.1464,-39.9294],[144.1061,-40.0364],[143.9216,-40.1364]]],[[[148.3391,-40.5034],[148.3183,-40.4353],[148.0866,-40.4581],[147.997,-40.4282],[147.9986,-40.3898],[148.0652,-40.3482],[148.2027,-40.3613],[148.343,-40.3067],[148.4791,-40.4307],[148.3391,-40.5034]]],[[[147.3027,-43.5134],[147.1755,-43.5016],[147.1231,-43.422],[147.3002,-43.2628],[147.365,-43.3858],[147.3027,-43.5134]]],[[[158.8797,-54.7539],[158.8339,-54.6689],[158.8911,-54.52],[158.9455,-54.5764],[158.8883,-54.6875],[158.8797,-54.7539]]],[[[147.3617,-43.2631],[147.293,-43.1571],[147.3572,-43.075],[147.3965,-43.1197],[147.4327,-43.242],[147.3617,-43.2631]]],[[[148.0142,-42.7531],[148.0187,-42.6197],[148.128,-42.5902],[148.1729,-42.6553],[148.0977,-42.6661],[148.0142,-42.7531]]],[[[144.8889,-40.7294],[144.8659,-40.6711],[144.9263,-40.6173],[145.0161,-40.6955],[144.8889,-40.7294]]]]},properties:{name:"Tasmania",id:"AU-TAS",CNTRY_NAME:"Australia",TYPE:"State"},id:"AU-TAS"}]},BA=function(t){sS(t,"SpriteState")&&(t.transitionDuration=400),sS(t,"Component")&&(t.rangeChangeDuration=500,t.interpolationDuration=500,t.sequencedInterpolation=!1,sS(t,"SankeyDiagram")&&(t.sequencedInterpolation=!0),sS(t,"FunnelSeries")&&(t.sequencedInterpolation=!0)),sS(t,"Chart")&&(t.defaultState.transitionDuration=2e3,t.hiddenState.transitionDuration=1e3),sS(t,"Tooltip")&&(t.animationDuration=400,t.defaultState.transitionDuration=400,t.hiddenState.transitionDuration=400),sS(t,"Scrollbar")&&(t.animationDuration=500),sS(t,"Series")&&(t.defaultState.transitionDuration=1e3,t.hiddenState.transitionDuration=700,t.hiddenState.properties.opacity=1,t.showOnInit=!0),sS(t,"MapSeries")&&(t.hiddenState.properties.opacity=0),sS(t,"PercentSeries")&&(t.hiddenState.properties.opacity=0),sS(t,"FunnelSlice")&&(t.defaultState.transitionDuration=800,t.hiddenState.transitionDuration=1e3,t.hiddenState.properties.opacity=1),sS(t,"Slice")&&(t.defaultState.transitionDuration=700,t.hiddenState.transitionDuration=1e3,t.hiddenState.properties.opacity=1),sS(t,"Preloader")&&(t.hiddenState.transitionDuration=2e3),sS(t,"Column")&&(t.defaultState.transitionDuration=700,t.hiddenState.transitionDuration=1e3,t.hiddenState.properties.opacity=1),sS(t,"Column3D")&&(t.hiddenState.properties.opacity=0)};mT(BA);class HA{constructor(t,e){this.zone=t,this.http=e,this.loading=0,this._jsonURL="assets/results.json"}ngOnInit(){this.http.get(this._jsonURL).subscribe(t=>this.paintMap(t),t=>console.error(t),()=>console.log("done")),this.colorSet=new aT}mapColors(t){if("Labor"==t)return DS("#F05C5C");DS("#5C5CFF")}paintMap(t){this.VICLab=t.VIC.Labor,this.VICLib=t.VIC.Liberal,this.NSWLab=t.NSW.Labor,this.NSWLib=t.NSW.Liberal,this.ACTLab=t.ACT.Labor,this.ACTLib=t.ACT.Liberal,this.WALab=t.WA.Labor,this.WALib=t.WA.Liberal,this.NTLab=t.NT.Labor,this.NTLib=t.NT.Liberal,this.QLDLab=t.QLD.Labor,this.QLDLib=t.QLD.Liberal,this.TASLab=t.TAS.Labor,this.TASLib=t.TAS.Liberal,this.SALab=t.SA.Labor,this.SALib=t.SA.Liberal,this.zone.runOutsideAngular(()=>{let e=gT("chartdivmap",WF);e.homeZoomLevel=1,e.homeGeoPoint={latitude:-32,longitude:135},e.geodata=NA,e.projection=new n.Miller;var i=e.series.push(new AI);i.useGeodata=!0,i.exclude=["antarctica"];var r=i.mapPolygons.template;r.tooltipText="{name}",r.propertyFields.fill="color",r.polygon.fillOpacity=.6,r.states.create("hover").properties.fill=DS("#367B25"),console.log("Changing");var s=this.mapColors(t.NSW.Labor>t.NSW.Liberal?"Labor":"Liberal");console.log(JSON.stringify(s)),i.data=[{id:"AU-VIC",color:"Liberal"==t.VIC.winner?DS("#004C99"):DS("red")},{id:"AU-NSW",color:"Liberal"==t.NSW.winner?DS("#004C99"):DS("red")},{id:"AU-QLD",color:"Liberal"==t.QLD.winner?DS("#004C99"):DS("red")},{id:"AU-NT",color:"Liberal"==t.NT.winner?DS("#004C99"):DS("red")},{id:"AU-WA",color:"Liberal"==t.WA.winner?DS("#004C99"):DS("red")},{id:"AU-SA",color:"Liberal"==t.SA.winner?DS("#004C99"):DS("red")},{id:"AU-TAS",color:"Liberal"==t.TAS.winner?DS("#004C99"):DS("red")}]})}ngAfterViewInit(){console.log("executed")}}HA.\u0275fac=function(t){return new(t||HA)(Kl(sg),Kl(tb))},HA.\u0275cmp=Ve({type:HA,selectors:[["app-nectar-map-tweets"]],decls:89,vars:16,consts:[[1,"row"],[1,"col-4"],["id","chartdivmap",2,"width","100%","height","500px"],[1,"row","legend"],[1,"col","labor"],[1,"col","liberal"],[1,"col-8"],[1,"table","table-hover","table-dark"],["scope","col"],["scope","row"]],template:function(t,e){1&t&&(Jl(0,"h2"),oh(1," Political Popularity "),tu(),Jl(2,"h3"),oh(3," 2019 Australian Federal Elections "),tu(),eu(4,"br"),Jl(5,"div",0),Jl(6,"div",1),eu(7,"div",2),Jl(8,"div",3),Jl(9,"div",4),oh(10,"\u2022Labor"),tu(),Jl(11,"div",5),oh(12,"\u2022Liberal"),tu(),tu(),tu(),Jl(13,"div",6),Jl(14,"p"),oh(15," This was how Australia voted for the 2019 Federal Elections "),eu(16,"br"),eu(17,"br"),oh(18," This data has been sourced from Aurin. Booth level election data has been concatenated to State Level. "),eu(19,"br"),oh(20," Here we attempt to measure the popularity of the two main australian political parties across the states, "),eu(21,"br"),oh(22," just before Coronavirus engulfed the world. "),tu(),Jl(23,"table",7),Jl(24,"thead"),Jl(25,"tr"),Jl(26,"th",8),oh(27,"State"),tu(),Jl(28,"th",8),oh(29,"Votes for Labour"),tu(),Jl(30,"th",8),oh(31,"Votes for Liberal"),tu(),tu(),tu(),Jl(32,"tbody"),Jl(33,"tr"),Jl(34,"th",9),oh(35,"Victoria"),tu(),Jl(36,"td"),oh(37),tu(),Jl(38,"td"),oh(39),tu(),tu(),Jl(40,"tr"),Jl(41,"th",9),oh(42,"Northern Territory"),tu(),Jl(43,"td"),oh(44),tu(),Jl(45,"td"),oh(46),tu(),tu(),Jl(47,"tr"),Jl(48,"th",9),oh(49,"Australian Capital Territory"),tu(),Jl(50,"td"),oh(51),tu(),Jl(52,"td"),oh(53),tu(),tu(),Jl(54,"tr"),Jl(55,"th",9),oh(56,"New South Wales"),tu(),Jl(57,"td"),oh(58),tu(),Jl(59,"td"),oh(60),tu(),tu(),Jl(61,"tr"),Jl(62,"th",9),oh(63,"Queensland"),tu(),Jl(64,"td"),oh(65),tu(),Jl(66,"td"),oh(67),tu(),tu(),Jl(68,"tr"),Jl(69,"th",9),oh(70,"Western Australia"),tu(),Jl(71,"td"),oh(72),tu(),Jl(73,"td"),oh(74),tu(),tu(),Jl(75,"tr"),Jl(76,"th",9),oh(77,"Southern Australia"),tu(),Jl(78,"td"),oh(79),tu(),Jl(80,"td"),oh(81),tu(),tu(),Jl(82,"tr"),Jl(83,"th",9),oh(84,"Tasmania"),tu(),Jl(85,"td"),oh(86),tu(),Jl(87,"td"),oh(88),tu(),tu(),tu(),tu(),tu(),tu()),2&t&&(ms(37),ah(e.VICLab),ms(2),ah(e.VICLib),ms(5),ah(e.NTLab),ms(2),ah(e.NTLib),ms(5),ah(e.ACTLab),ms(2),ah(e.ACTLib),ms(5),ah(e.NSWLab),ms(2),ah(e.NSWLib),ms(5),ah(e.QLDLab),ms(2),ah(e.QLDLib),ms(5),ah(e.WALab),ms(2),ah(e.WALib),ms(5),ah(e.SALab),ms(2),ah(e.SALib),ms(5),ah(e.TASLab),ms(2),ah(e.TASLib))},styles:[""]}),mT(BA);class zA{constructor(t,e){this.zone=t,this.http=e,this.loading=0,this._jsonURLVICLab="http://172.26.129.164:5984/tweets/_design/analysis/_view/daniel_positive",this._jsonURLVICLib="http://172.26.129.164:5984/tweets/_design/analysis/_view/daniel_negative",this._jsonURLQLDLab="http://172.26.129.164:5984/tweets/_design/analysis/_view/annastacia_positive",this._jsonURLQLDLib="http://172.26.129.164:5984/tweets/_design/analysis/_view/annastacia_negative",this._jsonURLNSWLib="http://172.26.129.164:5984/tweets/_design/analysis/_view/gladys_positive",this._jsonURLNSWLab="http://172.26.129.164:5984/tweets/_design/analysis/_view/gladys_negative",this._jsonURLWALab="http://172.26.129.164:5984/tweets/_design/analysis/_view/mark_positive",this._jsonURLWALib="http://172.26.129.164:5984/tweets/_design/analysis/_view/mark_negative",this._jsonURLSALib="http://172.26.129.164:5984/tweets/_design/analysis/_view/steven_positive",this._jsonURLSALab="http://172.26.129.164:5984/tweets/_design/analysis/_view/steven_negative",this._jsonURLTASLib="http://172.26.129.164:5984/tweets/_design/analysis/_view/peter_positive",this._jsonURLTASLab="http://172.26.129.164:5984/tweets/_design/analysis/_view/peter_negative"}ngOnInit(){var t=0;this.http.get(this._jsonURLVICLab).subscribe(e=>{this.VICLab=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLVICLib).subscribe(e=>{this.VICLib=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLQLDLab).subscribe(e=>{this.QLDLab=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLQLDLib).subscribe(e=>{this.QLDLib=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLNSWLib).subscribe(e=>{this.NSWLib=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLNSWLab).subscribe(e=>{this.NSWLab=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLWALab).subscribe(e=>{this.WALab=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLWALib).subscribe(e=>{this.WALib=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLSALib).subscribe(e=>{this.SALib=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLSALab).subscribe(e=>{this.SALab=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLTASLab).subscribe(e=>{this.TASLab=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),this.http.get(this._jsonURLTASLib).subscribe(e=>{this.TASLib=e.rows[0].value,t++},t=>console.log(t),()=>{12==t&&this.paintMap()}),console.log(this.VICLab+":"+this.VICLib+":"+this.QLDLab+";"+this.QLDLib+";"+this.NSWLab+";"+this.NSWLib),this.colorSet=new aT}mapColors(t,e){return console.log("Comparing : "+t+" and "+e),t>e?DS("red"):e>=t?DS("#004C99"):void 0}paintMap(){this.totalTweets=this.VICLib+this.VICLab+this.WALab+this.WALib+this.SALab+this.SALib+this.TASLab+this.TASLib+this.NSWLib+this.NSWLab+this.QLDLab+this.QLDLib,this.zone.runOutsideAngular(()=>{let t=gT("chartdivtwittermap",WF);t.homeZoomLevel=1,t.homeGeoPoint={latitude:-32,longitude:135},t.geodata=NA,t.projection=new n.Miller;var e=t.series.push(new AI);e.useGeodata=!0,e.exclude=["antarctica"];var i=e.mapPolygons.template;i.tooltipText="{name}",i.propertyFields.fill="color",i.polygon.fillOpacity=.6,i.states.create("hover").properties.fill=DS("#367B25"),console.log("Changing"),e.data=[{id:"AU-VIC",color:this.mapColors(this.VICLab,this.VICLib)},{id:"AU-NSW",color:this.mapColors(this.NSWLab,this.NSWLib)},{id:"AU-QLD",color:this.mapColors(this.QLDLab,this.QLDLib)},{id:"AU-WA",color:this.mapColors(this.WALab,this.WALib)},{id:"AU-SA",color:this.mapColors(this.SALab,this.SALib)},{id:"AU-TAS",color:this.mapColors(this.TASLab,this.TASLib)},{id:"AU-NT",color:DS("red")}]})}ngAfterViewInit(){}}zA.\u0275fac=function(t){return new(t||zA)(Kl(sg),Kl(tb))},zA.\u0275cmp=Ve({type:zA,selectors:[["app-nectar-map-twitter"]],decls:104,vars:13,consts:[[1,"row"],[1,"col-4"],["id","chartdivtwittermap",2,"width","100%","height","500px"],[1,"row","legend"],[1,"col","labor"],[1,"col","liberal"],[1,"col-8"],[1,"table","table-hover","table-dark"],["scope","col"],["scope","row"],[1,"card","bg-light","mb-3","textblack",2,"width","18rem"],[1,"card-body"],[1,"card-title","text-center"],[1,"card-text","text-muted"]],template:function(t,e){1&t&&(Jl(0,"h3"),oh(1," 2020 - Post Coronavirus Twitter Trends "),tu(),eu(2,"br"),Jl(3,"div",0),Jl(4,"div",1),eu(5,"div",2),Jl(6,"div",3),Jl(7,"div",4),oh(8,"\u2022Labor"),tu(),Jl(9,"div",5),oh(10,"\u2022Liberal"),tu(),tu(),tu(),Jl(11,"div",6),Jl(12,"p"),oh(13," Political popularity of premiers has been calculated using sentiment analysis on more than 80000 tweets. "),eu(14,"br"),oh(15," The sentiment analyzer characterises tweets from various tweet as follows:"),eu(16,"br"),tu(),Jl(17,"table",7),Jl(18,"thead"),Jl(19,"tr"),Jl(20,"th",8),oh(21,"State"),tu(),Jl(22,"th",8),oh(23,"Premier"),tu(),Jl(24,"th",8),oh(25,"Positive Tweets"),tu(),Jl(26,"th",8),oh(27,"Negative Tweets"),tu(),Jl(28,"th",8),oh(29,"Twitter Handle"),tu(),tu(),tu(),Jl(30,"tbody"),Jl(31,"tr"),Jl(32,"th",9),oh(33,"Victoria"),tu(),Jl(34,"th",9),oh(35,"Daniel Andrews"),tu(),Jl(36,"td"),oh(37),tu(),Jl(38,"td"),oh(39),tu(),Jl(40,"td"),oh(41,"@DanielAndrewsMP"),tu(),tu(),Jl(42,"tr"),Jl(43,"th",9),oh(44,"New South Wales"),tu(),Jl(45,"th",9),oh(46,"Gladys Berejiklian"),tu(),Jl(47,"td"),oh(48),tu(),Jl(49,"td"),oh(50),tu(),Jl(51,"td"),oh(52,"@GladysB"),tu(),tu(),Jl(53,"tr"),Jl(54,"th",9),oh(55,"Queensland"),tu(),Jl(56,"th",9),oh(57,"Annastacia Palaszczuk"),tu(),Jl(58,"td"),oh(59),tu(),Jl(60,"td"),oh(61),tu(),Jl(62,"td"),oh(63,"@AnnastaciaMP"),tu(),tu(),Jl(64,"tr"),Jl(65,"th",9),oh(66,"Western Australia"),tu(),Jl(67,"th",9),oh(68,"Mark McGowan"),tu(),Jl(69,"td"),oh(70),tu(),Jl(71,"td"),oh(72),tu(),Jl(73,"td"),oh(74,"@MarkMcGowanMP"),tu(),tu(),Jl(75,"tr"),Jl(76,"th",9),oh(77,"Southern Australia"),tu(),Jl(78,"th",9),oh(79,"Steven Marshall"),tu(),Jl(80,"td"),oh(81),tu(),Jl(82,"td"),oh(83),tu(),Jl(84,"td"),oh(85,"@marshall_steven"),tu(),tu(),Jl(86,"tr"),Jl(87,"th",9),oh(88,"Tasmania"),tu(),Jl(89,"th",9),oh(90,"Peter Gutwein"),tu(),Jl(91,"td"),oh(92),tu(),Jl(93,"td"),oh(94),tu(),Jl(95,"td"),oh(96,"@PeterGutwein"),tu(),tu(),tu(),tu(),Jl(97,"div",10),Jl(98,"div",11),Jl(99,"h5",12),oh(100),tu(),eu(101,"hr"),Jl(102,"p",13),oh(103,"These represent only the tweets that were seen to contain any sentiment - positive or negative. Total number of tweets harvested have a large number of neutral tweets."),tu(),tu(),tu(),tu(),tu()),2&t&&(ms(37),ah(e.VICLab),ms(2),ah(e.VICLib),ms(9),ah(e.NSWLib),ms(2),ah(e.NSWLab),ms(9),ah(e.QLDLab),ms(2),ah(e.QLDLib),ms(9),ah(e.WALab),ms(2),ah(e.WALib),ms(9),ah(e.SALib),ms(2),ah(e.SALab),ms(9),ah(e.TASLib),ms(2),ah(e.TASLab),ms(6),lh("Total Tweets (Positive/ Negative) : ",e.totalTweets,""))},styles:[""]});class UA{constructor(){}ngOnInit(){}}UA.\u0275fac=function(t){return new(t||UA)},UA.\u0275cmp=Ve({type:UA,selectors:[["app-credits"]],decls:12,vars:0,consts:[["id","credits"],[1,"card","text-white","bg-dark","mb-3","text-center"],[1,"card-header"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[1,"card-footer","text-muted"]],template:function(t,e){1&t&&(oh(0,"\xa0\xa0\xa0\xa0\n"),eu(1,"div",0),Jl(2,"div",1),Jl(3,"div",2),oh(4," Credits "),tu(),Jl(5,"div",3),Jl(6,"h5",4),oh(7,"Cluster and Cloud - Group"),tu(),Jl(8,"p",5),oh(9,"Shekher Mudgal | Vishal Juneja | Sagar Chaudhari | Rudolph Almeida | Sharath Chandran "),tu(),tu(),Jl(10,"div",6),oh(11," University of Melbourne "),tu(),tu())},styles:[""]});class WA{constructor(){this.title="cloudproject"}}WA.\u0275fac=function(t){return new(t||WA)},WA.\u0275cmp=Ve({type:WA,selectors:[["app-root"]],decls:11,vars:0,consts:[[1,"container-fluid"],[1,"container-lg"]],template:function(t,e){1&t&&(eu(0,"app-jumbotron"),eu(1,"router-outlet"),Jl(2,"div",0),Jl(3,"div",1),eu(4,"app-nectar-map-tweets"),tu(),tu(),Jl(5,"div",0),Jl(6,"div",1),eu(7,"app-nectar-map-twitter"),tu(),tu(),Jl(8,"div",0),Jl(9,"div",1),eu(10,"app-credits"),tu(),tu())},directives:[aP,Hw,HA,zA,UA],styles:[""]});class GA{}GA.\u0275mod=ze({type:GA,bootstrap:[WA]}),GA.\u0275inj=wt({factory:function(t){return new(t||GA)},providers:[],imports:[[Sv,oP,_b]]}),function(){if(ur)throw new Error("Cannot enable prod mode after platform setup.");lr=!1}(),Pv().bootstrapModule(GA).catch(t=>console.error(t))},zn8P:function(t,e){function i(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,0]]]);