-
Notifications
You must be signed in to change notification settings - Fork 0
/
bonsai-0.3.1.min.js
276 lines (270 loc) · 124 KB
/
bonsai-0.3.1.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
/*
(The MIT License)
Copyright 2012 uxebu Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
External libraries (each with their own license):
- requirejs: https://github.com/jrburke/requirejs/blob/master/LICENSE
- jasmine: https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE
- closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING
- qc.js: https://github.com/darrint/qc.js/blob/master/COPYING
*/
(function(){function sa(a){if(!(this instanceof sa))return new sa(a);this.name="ParserError";this.message=a[0]}function X(a,b){this.x=a||0;this.y=b||0}function Fb(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function af(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function bf(a){var b=this.type,c=cf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function df(){this._isStopped=
!0}function gd(a,b){var c,d,e,f=[],g=!0,h=[],i=a&&a.length||0,b=b||N;if(0===i)return[];for(var k,l,m=0;m<i;m++){l=a[m];if(g){g=!1;f=[];c=b[l];if("undefined"===typeof c){if("undefined"===typeof k)throw new La.ParserError(['Unknown command: "'+l+'"']);c=b[k];m--}else k=l;f.push(k);d=c.attributes.slice(0)}else switch(c=d.shift(),e=+l,c){case "B":if(0!=e&&1!=e)throw new La.ParserError(['Invalid parameter for command "'+k+'", expected 0 or 1 but got "'+l+'".']);f.push(e);break;case "N":if(isNaN(e))throw new La.ParserError(['Invalid parameter for command "'+
k+'", expected numeric but got "'+l+'".']);f.push(e);break;case "P":if(isNaN(e))throw new La.ParserError(['Could not create Point from String for command "'+k+'", expected numeric but got "'+l+'".']);f.push(e);e=+a[++m];if(isNaN(e))throw new La.ParserError(['Could not create Point from String for command "'+k+'", expected numeric but got "'+a[m]+'".']);f.push(e)}0===d.length&&(g=!0,h.push(f))}return h}function Y(a,b){a=Y.parse(a,b);return null===a?a:new Gb(a>>24&255,a>>16&255,a>>8&255,(a>>0&255)/
255)}function Gb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,i,k,l,m=ga(e,f,g);i=ha(e,f,g);k=(i+m)/2;if(m==i)h=i=0;else{l=m-i;i=0.5<k?l/(2-m-i):l/(m+i);switch(m){case e:h=(f-g)/l+(f<g?6:0);break;case f:h=(g-e)/l+2;break;case g:h=(e-f)/l+4}h/=6}this._properties={r:a||0,g:b||0,b:c||0,a:null==d?1:d,h:h,s:i,l:k}}function ia(a){return function(b){return 0<arguments.length?this.set(a,b):this.get(a)}}function nc(a,b,c){c=0>c?c+1:1<c?c-1:c;return 1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function hd(a,
b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*nc(d,b,a+1/3),e=255*nc(d,b,a),a=255*nc(d,b,a-1/3);return ja(c)<<24|ja(e)<<16|ja(a)<<8}function oc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function id(a){this.pendingAssets=a}function jd(a,b){this.disconnect=b;this.notifyRenderer=a}function R(a){return ef.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function kd(a){return{setup:function(b){var c=
ld(b[a]);b[a+"_r"]=c.r();b[a+"_g"]=c.g();b[a+"_b"]=c.b();b[a+"_a"]=c.a();delete b[a]},step:function(b){b[a]=""+new ld.RGBAColor(b[a+"_r"],b[a+"_g"],b[a+"_b"],b[a+"_a"]);delete b[a+"_r"];delete b[a+"_g"];delete b[a+"_b"];delete b[a+"_a"]}}}function md(a){return{setup:function(b){var c=b[a].stops,d;this[a]=b[a].clone();b[a].matrix&&(b[a+"MatrixA"]=b[a].matrix.a,b[a+"MatrixB"]=b[a].matrix.b,b[a+"MatrixC"]=b[a].matrix.c,b[a+"MatrixD"]=b[a].matrix.d,b[a+"MatrixTX"]=b[a].matrix.tx,b[a+"MatrixTY"]=b[a].matrix.ty);
"linear-gradient"===b[a].type?isNaN(b[a].direction)||(b[a+"Direction"]=b[a].direction):(this[a+"RadiusUnit"]=((""+b[a].radius).match(/\D$/)||[""])[0],b[a+"Radius"]=parseFloat(b[a].radius));for(var e=0,f=c.length;e<f;++e)d=nd(c[e][0]),b[a+"Stop_"+e+"r"]=d.r(),b[a+"Stop_"+e+"g"]=d.g(),b[a+"Stop_"+e+"b"]=d.b(),b[a+"Stop_"+e+"a"]=d.a(),isNaN(c[e][1])||(b[a+"Stop_"+e+"_pos"]=c[e][1]);delete b[a]},step:function(b){this[a].matrix&&(this[a].matrix.a=b[a+"MatrixA"],this[a].matrix.b=b[a+"MatrixB"],this[a].matrix.c=
b[a+"MatrixC"],this[a].matrix.d=b[a+"MatrixD"],this[a].matrix.tx=b[a+"MatrixTX"],this[a].matrix.ty=b[a+"MatrixTY"]);"linear-gradient"===this[a].type?(isNaN(b[a+"Direction"])||(this[a].direction=b[a+"Direction"]),delete b[a+"Direction"]):(this[a].radius=b[a+"Radius"]+this[a+"RadiusUnit"],delete b[a+"Radius"]);for(var c=this[a].stops,d=0,e=c.length;d<e;++d)c[d][0]=+new nd.RGBAColor(b[a+"Stop_"+d+"r"],b[a+"Stop_"+d+"g"],b[a+"Stop_"+d+"b"],b[a+"Stop_"+d+"a"]),c[d][1]=b[a+"Stop_"+d+"_pos"],delete b[a+
"Stop_"+d+"r"],delete b[a+"Stop_"+d+"g"],delete b[a+"Stop_"+d+"b"],delete b[a+"Stop_"+d+"a"],delete b[a+"Stop_"+d+"_pos"];b[a]=this[a]}}}function od(a,b,c){if(null!=a)if(a instanceof ff.BaseFilter)if(pd.isArray(a.value))for(var d=0,e=a.value.length;d<e;++d)if(("dropShadowByOffset"===a.type||"dropShadowByAngle"===a.type)&&3===d){var f=qd(a.value[d]);c[t+b+"_"+d+"_r"]=f.r();c[t+b+"_"+d+"_g"]=f.g();c[t+b+"_"+d+"_b"]=f.b();c[t+b+"_"+d+"_a"]=f.a()}else c[t+b+"_"+d]=a.value[d];else c[t+b]=a.value;else c[t+
b]=a}function q(a){return a instanceof q.LinearGradient||a instanceof q.RadialGradient?a:q.parse(a)}function K(){this._segments=[];this.requiredCurves=0;this.currentPoint=new v(0,0);this.lastMoveTo=new v(0,0)}function pc(a,b,c,d,e,f,g,h,i){var f=!!f,g=!!g,k=e*Z/180,l=Hb(k),m=ka(c,2),O=ka(d,2),k=Ib(k),j=(a-h)/2,n=(b-i)/2,o=l*j+k*n,ta=-k*j+l*n,p;p=ka(o,2);var q=ka(ta,2),j=ka(j,2)/m+ka(n,2)/O;if(1<j)return c*=Jb(j),d*=Jb(j),pc(a,b,c,d,e,f,g,h,i);e=(m*O-m*q-O*p)/(m*q+O*p);0>e?(c/=d,e=q+p/ka(c,2),d=Jb(e),
c*=d,ta=f=0):(p=(f===g?-1:1)*Jb(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*l-ta*k+(a+h)/2;l=f*k+ta*l+(b+i)/2;b=rd((b-l)/d);i=rd((i-l)/d);b=a<o?Z-b:b;i=h<o?Z-i:i;0>b&&(b=2*Z+b);0>i&&(i=2*Z+i);g&&b>i&&(b-=2*Z);!g&&i>b&&(i-=2*Z);return{cx:o,cy:l,rx:c,ry:d,startAngle:b,endAngle:i}}function sd(a,b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,
e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:hf[e];this.clock=a;this.duration=Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Ma.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);
this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function qc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b);this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);
this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function jf(){var a=this._matrix,b=td(a.b,a.a),a=-td(a.c,a.d);return b>a?b:a}function kf(a){if(rc(a)){var a=+a%(2*lf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-=d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function mf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=
a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function nf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function of(){return this.matrix.tx}function pf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix=!0}function qf(){return this.matrix.ty}function rf(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function sf(){return this._scaleX}function tf(a){rc(a)&&
(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function uf(){return this._scaleY}function vf(a){rc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function wf(){return(this.scaleX+this.scaleY)/2}function xf(a){this.scaleX=this.scaleY=a}function yf(a){this._opacity=1<a?1:0>a?0:+a}function zf(){return this._origin.clone()}function Af(a){var b=this._origin;b.x=a.x;b.y=a.y}function Bf(){return this._cursor}function Cf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=
a):this._cursor=null}function Df(){return this._filters.slice(0)}function Ef(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof ud.BaseFilter?a:new ud[a]})):this._filters.length=0}function Ff(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&E.registerOffStageObj(b,a,b.stage,"clip");
this._clipId=a.id;this._clip=a}else this._clip&&E.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Gf(){return this._clip}function Hf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&E.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&E.unregisterOffStageObj(b,
this._mask),this._maskId=this._mask=null}function If(){return this._mask}function E(){Object.defineProperty(this,"id",{value:Jf++});this._attributes=Object.create(null,{_owner:C(this),_matrix:C(new Kf),matrix:F(mf,nf,!0),_filters:C([],!0),filters:F(Df,Ef,!0),_opacity:C(1,!0),opacity:F(Lf,yf,!0),_origin:C(new Mf),origin:F(zf,Af,!0),rotation:F(jf,kf,!0),_scaleX:C(1,!0),_scaleY:C(1,!0),scale:F(wf,xf,!0),scaleX:F(sf,tf,!0),scaleY:F(uf,vf,!0),x:F(of,pf,!0),y:F(qf,rf,!0),clip:F(Gf,Ff,!0),_clip:C(null,!0),
_clipId:C(null,!0),mask:F(If,Hf,!0),_mask:C(null,!0),_maskId:C(null,!0),cursor:F(Bf,Cf,!0),_cursor:C(null,!0),fillRule:C("inherit",!0),visible:C(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule",visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function sc(){vd.call(this)}function wd(a,b,c){tc.call(this);this.nodeName=a||"";this._domAttributes=
{};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=xd.mixin({},this._domAttributes);this._mutatedCssStyles=xd.mixin({},this._cssStyles)})}function yd(a,b,c){zd.call(this);c&&this.bindAssetCallback(c);this.root=a;this._children=[];var d=this;b&&a.loadSubMovie(b,function(a){a?d.emitAsync("error",a,d):d.emitAsync("load",d)},this)}function Nf(){return this._textFillColor}
function Of(a){this._textFillColor=Ad(a,this._textFillColor)}function Pf(){return this._textFillGradient}function Qf(a){a&&(this._textFillGradient=Rf(a))}function Sf(){return this._fontFamily}function Tf(a){this._fontFamily=a?a.fontId||a:null}function Uf(){return this._glyphx}function Vf(a){Na.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function Wf(){return this._glyphy}function Xf(a){Na.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function Yf(a){this._textLineColor=Ad(a,this._textLineColor)}
function Bd(a){Cd.call(this);Object.defineProperties(this._attributes,{text:D(a||"",!0,!0),fontSize:D(null,!0,!0),fontFamily:wa(Sf,Tf,!0),_fontFamily:D(null,!0),fontStyle:D(null,!0,!0),fontWeight:D(null,!0,!0),_textFillColor:D(null,!0),textFillColor:wa(Nf,Of,!0),_textFillGradient:D(null,!0),textFillGradient:wa(Pf,Qf,!0),textFillOpacity:D(1,!0,!0),_glyphx:D(null,!0),_glyphy:D(null,!0),glyphx:wa(Uf,Vf,!0),glyphy:wa(Wf,Xf,!0),textLineOpacity:D(1,!0,!0),_textLineColor:D(null,!0),textLineColor:wa(Zf,Yf,
!0),textLineWidth:D(0,!0,!0),selectable:D(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",lineOpacity:"textLineOpacity",lineColor:"_textLineColor",lineWidth:"textLineWidth",opacity:"_opacity",text:"text",selectable:"selectable"};a&&this.attr("text",a)}function $f(){return this._textFillColor}
function ag(a){this._textFillColor=Dd(a,this._textFillColor)}function bg(){return this._textFillGradient}function cg(a){a&&(this._textFillGradient=dg(a))}function eg(){return this._fontFamily}function fg(a){this._fontFamily=a?a.fontId||a:null}function gg(a){this._textLineColor=Dd(a,this._textLineColor)}function hg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function ig(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function jg(a){1<=a&&(this._miterLimit=+a)}function kg(a){this._owner.clear();
this._owner.addChild(new uc(a))}function lg(){for(var a=this._owner.children(),b=[],c=0,d=a.length;c<d;++c)b.push(a[c].attr("text"));return b.join("")}function Ed(a){Fd.call(this);Object.defineProperties(this._attributes,{fontSize:A(16,!0,!0),fontFamily:$(eg,fg,!0),_fontFamily:A("monospace",!0),fontStyle:A("normal",!0,!0),fontWeight:A("normal",!0,!0),_cap:A("butt",!0),cap:$(mg,hg,!0),_textFillColor:A(255,!0),textFillColor:$($f,ag,!0),_textFillGradient:A(null,!0),textFillGradient:$(bg,cg,!0),textFillOpacity:A(1,
!0,!0),textLineOpacity:A(1,!0,!0),_join:A("miter",!0),join:$(ng,ig,!0),_textLineColor:A(255,!0),textLineColor:$(og,gg,!0),textLineWidth:A(0,!0,!0),_miterLimit:A(4,!0),miterLimit:$(pg,jg,!0),text:$(lg,kg,!0),textOrigin:A(null,!0,!0),selectable:A(!0,!0,!0)});var b=this._renderAttributes;b.fontSize="fontSize";b.fontFamily="_fontFamily";b.fontStyle="fontStyle";b.fontWeight="fontWeight";b.cap="_cap";b.fillColor="_textFillColor";b.lineColor="_textLineColor";b.fillGradient="_textFillGradient";b.fillOpacity=
"textFillOpacity";b.lineOpacity="textLineOpacity";b.join="_join";b.lineWidth="textLineWidth";b.miterLimit="_miterLimit";b.selectable="selectable";b.textOrigin="textOrigin";a&&this.attr("text",a)}function S(a,b,c,d,e){this.scheme=a||void 0;this.authority=b||void 0;this.path=c||"";this.query=d||"";this.fragment=e||""}function Kb(a,b,c){this.timeoutDuration=c||Kb.DEFAULT_TIMEOUT;this.request=a instanceof Gd?a:new Gd(a);this.resources=this.request.resources;this.resourcesExpectedLength=this.resources.length;
this.resourcesLoaded=0;this.id=b;this.assetData={};this.resourceLoadSuccess=xa.hitch(this,"resourceLoadSuccess");this.resourceLoadError=xa.hitch(this,"resourceLoadError")}function Hd(){Id.apply(this,arguments)}function vc(){Jd.apply(this,arguments)}function P(){Kd.apply(this,arguments);var a=this.request.id;this.fontFormats=[];this.fontId=P.fontIDs[a]=P.prefix+a;this.on("resourcesLoaded",function(){this.applyFontFace()})}function wc(){Ld.apply(this,arguments)}function la(){}function Md(a,b,c){this.runnerUrl=
a;this.baseUrl=c}function Nd(a,b,c,d){this.renderer=a;this.assetController=b;this.runnerContext=c;this._movieOptions=this._cleanOptions(d);this.baseUrl=qg.parse(d.baseUrl);c.on("message",this,this.handleEvent);b.on("assetLoadSuccess",this,function(a){this.post("assetLoadSuccess",a)});b.on("assetLoadError",this,function(a){this.post("assetLoadError",a)});this.renderer.on("userevent",this,function(a,b){this.post("userevent",{event:a,targetId:b})});this.renderer.on("canRender",Oa.hitch(this,this.postAsync,
"canRender"));c.init(d)}function u(a,b){if(!a)throw TypeError("Invalid tag name: "+a);var c=(Od[a]||(Od[a]=document.createElementNS("http://www.w3.org/2000/svg",a))).cloneNode(!1);(b||0===b)&&c.setAttribute("data-bs-id",b);return c}function xc(a,b,c){var d=this.root=this[0]=u("svg",0);b&&d.setAttribute("width",b);c&&d.setAttribute("height",c);ya.cssClasses.add(d,"nonSelectable");this.viewBox(b,c);this.defs=this.root.appendChild(u("defs"));a.appendChild(d)}function yc(a,b,c,d,e){this.width=b;this.height=
c;this.allowEventDefaults=!!d;var f=this.svg=new xc(a,b,c);this.definitions=Object.create(null);Pd.forEach(function(a){f.root.addEventListener(a,this,!1)},this);document.addEventListener("touchmove",Boolean,!1);document.addEventListener("keyup",this,!1);document.addEventListener("keydown",this,!1);document.addEventListener("keypress",this,!1);this._setupFPSLog(e)}function rg(a){this._source=a;var b=this._owner;b.request.call(b,a)}function zc(a,b,c){this._loader=a;Qd.call(this);c&&this.bindAssetCallback(c);
this.type="Bitmap";Object.defineProperties(this._attributes,{height:Lb(null,!0,!0),width:Lb(null,!0,!0),source:sg(tg,rg,!0),_naturalWidth:Lb(0,!0,!0),_naturalHeight:Lb(0,!0,!0)});a=this._renderAttributes;a.height="height";a.width="width";a.naturalHeight="_naturalHeight";a.naturalWidth="_naturalWidth";a.source="_source";this.attr("source",b)}function Rd(a,b,c){Object.defineProperty(this,"id",{value:"font_"+ug++});this._loader=a;this.fontId=b;this.resources=c;this._load()}function vg(){return this._fillColor}
function wg(a){this._fillColor=Sd(a,this._fillColor)}function xg(){return this._fillGradient}function yg(a){this._fillGradient=a?za(a):null}function zg(){return this._fillImage}function Ag(a){var b=this._owner;b._mutatedAttributes.fillImageId=!0;if(a){if(!(a instanceof Td))throw Error("img is not instance of Bitmap.");b.stage&&Pa.registerOffStageObj(b,a,b.stage,"fillImage");this._fillImageId=a.id;this._fillImage=a}else this._fillImage&&Pa.unregisterOffStageObj(b,this._fillImage),this._fillImageId=
this._fillImage=null}function Bg(){return this._fillRepeat}function Cg(a){var b=Aa.isArray(a);a||(a=1);if(b&&!isNaN(a[0])&&!isNaN(a[1])||!isNaN(a))this._fillRepeat=b?a:[a,a];else throw Error("repeat argument must be a number or an array [n, n].");}function Dg(a){this._lineColor=Sd(a,this._lineColor)}function Eg(){return this._lineGradient}function Fg(a){this._lineGradient=a?za(a):null}function Gg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function Hg(a){if("miter"===a||"round"===a||
"bevel"===a)this._join=""+a}function Ig(a){1<=a&&(this._miterLimit=+a)}function Jg(){return this._owner._segments}function Kg(a){this._owner._segments=a;this._owner.markUpdate("shapeData")}function Mb(a){Pa.call(this);Object.defineProperties(this._attributes,{_cap:G("butt",!0),cap:Q(Lg,Gg,!0),_fillColor:G(0,!0),fillColor:Q(vg,wg,!0),_fillGradient:G(void 0,!0),fillGradient:Q(xg,yg,!0),_fillImage:G(null,!0),_fillImageId:G(null,!0),fillImage:Q(zg,Ag,!0),_fillRepeat:G([1,1],!0),fillRepeat:Q(Bg,Cg,!0),
fillOpacity:G(1,!0,!0),lineOpacity:G(1,!0,!0),_join:G("miter",!0),join:Q(Mg,Hg,!0),_lineColor:G(255,!0),lineColor:Q(Ng,Dg,!0),_lineGradient:G(void 0,!0),lineGradient:Q(Eg,Fg,!0),lineWidth:G(0,!0,!0),_miterLimit:G(4,!0),miterLimit:Q(Og,Ig,!0),segments:Q(Jg,Kg,!0)});var b=this._renderAttributes;b.cap="_cap";b.fillColor="_fillColor";b.lineColor="_lineColor";b.lineGradient="_lineGradient";b.fillGradient="_fillGradient";b.fillImageId="_fillImageId";b.fillRepeat="_fillRepeat";b.fillOpacity="fillOpacity";
b.lineOpacity="lineOpacity";b.join="_join";b.lineWidth="lineWidth";b.miterLimit="_miterLimit";this.morphableAttributes={x:1,y:1,segments:1,fillColor:1,lineColor:1,lineWidth:1,fillOpacity:1,lineOpacity:1,opacity:1,fillGradient:1,scale:1,scaleX:1,scaleY:1,rotation:1,filters:1};this._segments=[];this._curve=new Qa;this._mutatedAttributes=Aa.mixin({},this._renderAttributes);if(a){b=Ra(a)?Ra(a[0])?a[0][0]:a[0]:a;if(-1!=Pg.indexOf(b))return this.segments.apply(this,arguments);if("number"==typeof b)return this.points.apply(this,
arguments);if("string"==typeof a)return this.path(a);throw TypeError('Expected array of segments or points, or SVG path string. Got "'+a+" instead.");}}function Qg(a,b){var c=b;return Rg.descriptorAccessor(function(){return c},function(a){c=a;this._owner._isProcessingPathAttribute||(this._owner._isProcessingPathAttribute=!0,this._owner.clear(),this._owner._make(),this._owner._isProcessingPathAttribute=!1)},!0)}function Ud(a){Ac.call(this);this._isProcessingPathAttribute=!1;for(var b in a)Object.defineProperty(this._attributes,
b,Qg(b,a[b]))}function Bc(a,b,c,d,e,f){Vd.call(this,{radius:0,startAngle:0,endAngle:0,antiClockwise:!1});this.attr({x:a,y:b,radius:c,startAngle:d,endAngle:e,antiClockwise:f})}function Cc(a,b,c){Wd.call(this,{radius:0});this.attr({x:a,y:b,radius:c})}function Dc(a,b,c,d){Xd.call(this,{radiusX:0,radiusY:0});this.attr({x:a,y:b,radiusX:c,radiusY:d})}function Ec(a,b,c,d){Yd.call(this,{radius:0,sides:3});this.attr({x:a,y:b,sides:d,radius:c})}function Fc(a,b,c,d,e){Zd.call(this,{height:0,width:0,cornerRadius:0});
this.attr({x:a,y:b,width:c,height:d,cornerRadius:e,origin:{x:c/2,y:d/2}})}function Gc(a,b,c,d,e){$d.call(this,{radius:0,rays:0,factor:0});this.attr({x:a,y:b,radius:c,rays:d,factor:e})}function ae(a,b,c){Hc.call(this);this._loader=a;this.sources=b;this.currentBitmapIndex=0;c&&this.bindAssetCallback(c);Object.defineProperties(this._attributes,{height:be(0,!0,!0),width:be(0,!0,!0)});this._load()}function Ic(a,b,c,d){d||(d={});this._loader=a;ce.call(this);c&&this.bindAssetCallback(c);this.type="Video";
Object.defineProperties(this._attributes,{height:Jc(d.height,!0,!0),width:Jc(d.width,!0,!0),autoplay:Jc(d.autoplay||!1,!0,!0)});a=this._renderAttributes;a.height="height";a.width="width";a.autoplay="autoplay";this.request(b)}function Nb(a,b,c){for(var d,e=[],f=0,g=a.length;f<g;f+=1)d=a[f],b.call(c,d,f,a)&&e.push(d);return e}function ma(a,b){function c(){b.length=d;b.push.apply(b,arguments);return a.apply(this,b)}var d=b.length,b=b.slice();c.prototype=a.prototype;return c}function de(a){var a=a._children,
b=[];if(a)for(var c=0,d=a.length;c<d;++c)a[c]&&(b.push(a[c].id),b.push.apply(b,de(a[c])));return b}function Kc(a){var b=this.registry=new Sg,b=this.assetLoader=(new ee(b.pendingAssets)).on("request",Lc(this,this.loadAsset,null));this.env=new fe(this,b);this.stage=this.root=this;this._canRender=!0;Object.defineProperties(this,{id:{value:0}});this._queuedFramesById={};this._queuedFrames=[];this.messageChannel=a;a.on("message",this,this.handleEvent)}function Tg(a,b,c){var d=new XMLHttpRequest;d.open("GET",
a);d.onload=function(){200<=d.status&&300>d.status||304==d.status?b(this.responseText):c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Ob={},Ob={png:"Bitmap",jpg:"Bitmap",jpeg:"Bitmap",gif:"Bitmap",bmp:"Bitmap",svg:"Bitmap",css:"Raw",json:"Raw",xml:"Raw",html:"Raw",txt:"Raw"};Ob.module$exports&&(Ob=Ob.module$exports);var Pb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||
this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;a<c;++a)this.waitingCallbacks[a](null);this.queue.length&&this.load.apply(this,this.queue.shift())}}}};Pb.module$exports&&(Pb=Pb.module$exports);var Sa={},ge={aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,
aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,
darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,
green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,
lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,
navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,
seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,transparent:0,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};Object.defineProperty(ge,"random",{get:function(){return 16777215*Math.random()<<8|255}});
Sa.module$exports=ge;Sa.module$exports&&(Sa=Sa.module$exports);var Ta={};sa.prototype=Error();sa.prototype.constructor=sa;Ta.module$exports={ParserError:sa};Ta.module$exports&&(Ta=Ta.module$exports);var T={},he=Math.sqrt,H=X.prototype;H.add=function(a){this.x+=a.x;this.y+=a.y;return this};H.equals=function(a){return this.x==a.x&&this.y==a.y};H.clone=function(){return new X(this.x,this.y)};H.normalize=function(a){he(this.x*this.x+this.y*this.y);a/=this.length;this.x*=a;this.y*=a;return this};H.offset=
function(a,b){this.x+=a;this.y+=b;return this};H.subtract=function(a){this.x-=a.x;this.y-=a.y;return this};H.divide=function(a){this.x/=a;this.y/=a;return this};H.multiply=function(a){this.x*=a;this.y*=a;return this};H.toString=function(){return this.x+","+this.y+" "};H.toObject=function(){return Object.create(null,{x:{value:this.x},y:{value:this.y}})};H.toArray=function(){return[this.x,this.y]};H.distance=function(a){var b=this.x-a.x,a=this.y-a.y;return he(b*b+a*a)};X.interpolate=function(a,b,c){return new X(a.x+
c*(a.x-b.x),a.y+c*(a.y-b.y))};X.polar=function(a,b){return new X(a*Math.cos(b),a*Math.sin(b))};X.lerp=function(a,b,c){return a.clone().multiply(1-c).add(b.clone().multiply(c))};T.module$exports=X;T.module$exports&&(T=T.module$exports);var Ua={},Ug={}.hasOwnProperty,Mc={filterToSignature:function(a){return a.type+"("+a.value+")"},gradientToSignature:function(a){switch(a.type){case "linear-gradient":return"linear-gradient"+[a.direction,a.stops,Mc.matrixToString(a.matrix),a.spreadMethod].join(":");case "radial-gradient":return"radial-gradient"+
[a.cx,a.cy,a.radius,a.stops,Mc.matrixToString(a.matrix),a.spreadMethod].join(":")}},valueFromSignatureForType:function(a,b){var c=RegExp(b+"\\((.+)\\)").exec(a);return c&&c[1]},matrixToString:function(a){return a?"matrix("+[a.a,a.b,a.c,a.d,a.tx,a.ty].join()+")":""},cssClasses:function(){if("undefined"!=typeof document){var a={nonSelectable:"-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-moz-user-select: -moz-none;-ms-user-select: none;-o-user-select: none;user-select: none;",
selectable:"-webkit-touch-callout: default;-webkit-user-select: text;-khtml-user-select: text;-moz-user-select: text;-ms-user-select: text;-o-user-select: text;user-select: text;"},b={},c=0,d=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")),e=[],f;for(f in a)b[f]="bs-"+ +new Date+"-"+ ++c,Ug.call(a,f)&&e.push("."+b[f]+"{"+a[f]+"}\n");d.appendChild(document.createTextNode(e.join("")));return{add:function(a,c){a.setAttribute("class",(a.getAttribute("class")||
"")+" "+b[c])},remove:function(a,c){a.setAttribute("class",(a.getAttribute("class")||"").replace(b[c],""))}}}}()};Ua.module$exports=Mc;Ua.module$exports&&(Ua=Ua.module$exports);var Qb={module$exports:{cornerRadius:{setup:function(a){var b=a.cornerRadius,b=b||0;a.cornerRadius0=b[0]||b;a.cornerRadius1=b[1]||b;a.cornerRadius2=b[2]||b;a.cornerRadius3=b[3]||b},step:function(a){a.cornerRadius=[a.cornerRadius0,a.cornerRadius1,a.cornerRadius2,a.cornerRadius3];delete a.cornerRadius0;delete a.cornerRadius1;
delete a.cornerRadius2;delete a.cornerRadius3}}}};Qb.module$exports&&(Qb=Qb.module$exports);var Ba={},Rb={linear:function(a){return a},quadIn:function(a){return Math.pow(a,2)},quadOut:function(a){return-1*a*(a-2)},quadInOut:function(a){a*=2;return 1>a?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*
(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a-1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===
a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*
(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0===a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*
(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Rb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a,2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Rb.bounceIn(2*a)/2:Rb.bounceOut(2*a-1)/2+0.5}};Ba.module$exports=Rb;Ba.module$exports&&(Ba=Ba.module$exports);var Va={},ie={BaseFilter:function(a,
b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){ie[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d?d:a}}};Va.module$exports=ie;Va.module$exports&&(Va=Va.module$exports);var aa={},je=T,Vg=Math.cos,Wg=Math.sin;Fb.prototype={clone:function(){return new Fb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=
d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d,e)},deltaTransformPoint:function(a){return new je(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=
b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=Vg(a),a=Wg(a);return this.concat(new Fb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new je(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Fb;aa.module$exports&&(aa=aa.module$exports);var Wa={},Xg=aa;Wa.module$exports={matrix:{setupTo:function(a){var b=
a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new Xg},setupFrom:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c;
delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Sb={module$exports:function(){return{displayObjects:Object.create(null),loadingDisplayObjects:Object.create(null),movies:new af,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Sb.module$exports&&(Sb=Sb.module$exports);var Xa={},cf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,
"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=bf;a.stop=df;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Ca={},La=Ta,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},
lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"],shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P",
"P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]},smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},ke={},I;for(I in N)N.hasOwnProperty(I)&&N[I].shorthands.forEach(function(a){ke[a]=I});var le={};for(I in N)N.hasOwnProperty(I)&&(le[I]=N[I].shorthands[0]);var Tb=[];for(I in N)N.hasOwnProperty(I)&&
(Tb.push(I),Tb=Tb.concat(N[I].shorthands));Ca.module$exports={validTokens:Tb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,function(a,d,e){b.push(ke[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return gd(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++){c=a[f];for(var h=0,i=c.length;h<i;h++)d=c[h],e.push("string"==typeof d?le[d]:d)}e=e.join(" ");return b&&"M"!==e.slice(0,1)?"M 0 0 "+
e:e},parseCommandList:gd};Ca.module$exports&&(Ca=Ca.module$exports);var n={},me={}.hasOwnProperty,Yg=[].indexOf,ne=function(){},Zg=[].push,$g=[].slice,ah={}.toString,Ub={baseUri:function(a){var b=a.baseURI;if(void 0!==b)return b.replace(/[/]+[^/]*$/,"/");a=a.createElement("a");a.href=".";return a.href},beget:function(a){ne.prototype=a;return new ne},descriptorAccessor:function(a,b,c,d){return{get:a,set:b,enumerable:!!c,configurable:!!d}},descriptorData:function(a,b,c,d){return{value:a,writable:!!b,
enumerable:!!c,configurable:!!d}},forEach:function(a,b,c){var d=a.length;c&&(b=Ub.hitch(c,b));for(c=0;c<d&&!1!==b(a[c],c,a);c+=1);return a},forOwn:function(a,b,c){c&&(b=Ub.hitch(c,b));for(var d in a)if(me.call(a,d)&&!1===b(a[d],d,a))break;return a},getter:function(a){return function(){return this[a]}},hitch:function(a,b,c){if(2<arguments.length)var c=$g.call(arguments,2),d=c.length;"string"==typeof b&&(b=a[b]);return c?function(){c.length=d;Zg.apply(c,arguments);return b.apply(a,c)}:function(){return b.apply(a,
arguments)}},indexOf:function(a,b,c){return Yg.call(a,b,c)},isArray:Array.isArray||function(a){return"[object Array]"==ah.call(a)},keys:Object.keys||function(a){if(a!==Object(a))throw TypeError();var b=[],c;for(c in a)me.call(a,c)&&b.push(c);return b},map:function(a,b,c){var d=a.length,e=Array(d);c&&(b=Ub.hitch(c,b));for(c=0;c<d;c+=1)e[c]=b(a[c],c,a);return e},mixin:function(a,b){var c,d,e=arguments.length;for(c=1;c<e;c+=1)for(d in b=arguments[c]||{},b)a[d]=b[d];return a},offset:function(a){var b=
0,c=0;do b+=a.offsetLeft,c+=a.offsetTop;while(a=a.offsetParent);return{left:b,top:c}},reduce:function(a,b,c){var d=3>arguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;d<e;d+=1)c=b(c,a[d],d,a);return c},removeValueFromArray:function(a,b){for(var c,d=0,e=0,f=a.length;e<f;e+=1)c=a[e],c===b?d+=1:d&&(a[e-d]=c);a.length-=d;return a}};n.module$exports=Ub;n.module$exports&&(n=n.module$exports);var z={},oe=Sa,ga=Math.max,ha=Math.min,bh=Math.random,ja=Math.round;Y.RGBAColor=Gb;var r=Gb.prototype;r.red=r.r=
ia("r");r.green=r.g=ia("g");r.blue=r.b=ia("b");r.alpha=r.a=ia("a");r.hue=r.h=ia("h");r.saturation=r.s=ia("s");r.lightness=r.l=ia("l");r.set=function(a,b){var c,d=this._properties;if(null==b){if(a)for(c in a)this.set(c,a[c]);return this}b=+b;a=a.charAt(0);switch(a){case "r":case "g":case "b":case "a":d[a]=b;break;case "h":case "s":case "l":if(1<b||0>b)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=hd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+
a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ja(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=Y(a);return new Gb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/
2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ha(255,ga(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ha(255,ga(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ha(255,ga(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ha(1,ga(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,
c?ga(0,ha(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ga(0,ha(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(),d=a.length;d--;)c._setPointAlongRange(a[d],bh(),b);return c};r.clone=function(a){return a?Y(+this).set(a):Y(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ja(360*
this.h()),ja(100*this.s())+"%",ja(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};Y.parse=function(a,b){var c,a=""+a;a in oe&&(a=oe[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),
16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0,-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=hd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==
b?null:Y.parse(b)};z.module$exports=Y;z.module$exports&&(z=z.module$exports);var w={},ch=n,Nc="".split,Oc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof oc,e=typeof c;if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new oc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Nc.call(a," "),g=f.length;++e<g;)a=":"+f[e],(d[a]||(d[a]=[])).push(c);return this},emitAsync:function(a){var b=this,c=arguments;setTimeout(function(){b.emit.apply(b,
c)},1)},emit:function(a){var b=this._events,c=b&&b[":"+a],d=c&&c.length;if(!c||!d)return this;for(var e=arguments.length,f=Array(e-1),b=1;b<e;b+=1)f[b-1]=arguments[b];e=Array(d);for(b=0;b<d;b+=1)e[b]=c[b];for(var g,b=0;e[b];b+=1)d=e[b],c=d.context,g=d.listener,"string"===typeof g&&(g=c[g]),g.apply(c||this,f),g=d.times-=1,0>=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&
(c=b,b=null);return this.addListener(a,new oc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{},i=-1,k=Nc.call(a," "),l=k.length;++i<l;){d=!1;g=h[":"+k[i]]||[];for(f=0;e=g[f];f+=1)d?g[f-1]=e:d=e.listener===c&&e.context===b;d&&(g.length-=1)}return this},removeAllListeners:function(a){for(var b=this._events||{},c=!0,d=-1,a=a&&Nc.call(a," ")||(c=!1,ch.keys(b)),e=a.length;++d<e;)(b[c?":"+a[d]:a[d]]||[]).length=0;return this}};Oc.on=Oc.addListener;
w.module$exports=Oc;w.module$exports&&(w=w.module$exports);var Ya={},dh=w,eh=n,fh=id.prototype={handleEvent:function(a,b,c){var d=this.pendingAssets,e;b in d&&(e=d[b],e.notify(a,c),delete d[b])},request:function(a,b,c){this.pendingAssets[a.id]=a;this.emit("request",a.id,b,c)}};eh.mixin(fh,dh);Ya.module$exports=id;Ya.module$exports&&(Ya=Ya.module$exports);var Za={};jd.prototype=n.mixin({destroy:function(){this.removeAllListeners();this.disconnect();this.disconnect=this.notifyRenderer=null},notify:function(a){this.emit("message",
a)}},w);Za.module$exports=jd;Za.module$exports&&(Za=Za.module$exports);var $a={},ef=n,gh="undefined"==typeof document?!1:"createTouch"in document;$a.module$exports={handleSingleTouch:function(a,b,c){var d=this._getBasicEventData(a),e=d.clientX,f=d.clientY,c=c?"multi:":"",g=this._getTarget(a),h=this._getIdOfTarget(g),i=a.type,k=document.elementFromPoint(a.pageX,a.pageY),l=k?this._getIdOfTarget(k):0;d.touchId=a.identifier;d.touchIndex=a.index;switch(i){case "touchstart":b.startX=e;b.startY=f;d=R(d);
d.type=c+"pointerdown";this.emit("userevent",d,h);break;case "touchmove":d.diffX=e-b.startX;d.diffY=f-b.startY;b.touchMoveHappened=!0;d=R(d);d.type=c+"drag";this.emit("userevent",d,h);d=R(d);d.type=c+"pointermove";this.emit("userevent",d,l);break;case "touchend":if(d=R(d),d.type=c+"pointerup",this.emit("userevent",d,h),g!==k&&(d=R(d),this.emit("userevent",d,l)),!b.touchMoveHappened)d=R(d),d.type="click",this.emit("userevent",d,h)}},handleTouchEvent:function(a){var b=[].slice.call(a.touches),c=a.changedTouches,
d=this.touchData||(this.touchData={}),e=a.type;b&&b.length?(b[0].type=e,this.handleSingleTouch(b[0],d[b[0].identifier]||(d[b[0].identifier]={}),!1)):"touchend"===e&&(this.handleSingleTouch(a,{}),this.touchData={});if(c&&c.length)for(var f=0,g=c.length;f<g;++f)a=c[f],a.type=e,a.index=b.indexOf(a),this.handleSingleTouch(a,d[a.identifier]||(d[a.identifier]={}),!0)},handleEvent:function(a){var b=a.target;!this.allowEventDefaults&&(b.ownerSVGElement||"svg"===b.nodeName)&&a.preventDefault();var b=this._getTarget(a),
c=this._getIdOfTarget(b),d=a.type;if(b&&b instanceof HTMLElement)for(;!b._isBSDOMElement;)b=b.parentNode;var c=c||0,e=this._getBasicEventData(a),f=e.clientX,g=e.clientY,h=this._lastEventPos||[f,g],i=this._startEventPos||[f,g];if(/^touch/.test(a.type))this.handleTouchEvent(a);else{switch(d){case "dblclick":d="doubleclick";break;case "mousewheel":e.delta=a.wheelDelta;break;case "touchend":case "mouseup":c=this._dragId;delete this._currentTouch;delete this._dragId;delete this._startEventPos;delete this._lastEventPos;
d="pointerup";break;case "touchstart":if(this._currentTouch)return;this._currentTouch=a.touches[0].identifier;case "mousedown":this._dragId=c;this._startEventPos=[f,g];d="pointerdown";break;case "touchmove":if(a.touches[0].identifier!==this._currentTouch)return;case "mousemove":(e=R(e)).type="pointermove";this.emit("userevent",e,c);(e=R(e)).type="multi:pointermove";this.emit("userevent",e,c);c=this._dragId;d="drag";e.diffX=f-i[0];e.diffY=g-i[1];e.deltaX=f-h[0];e.deltaY=g-h[1];break;case "keypress":d=
"key";case "keyup":case "keydown":if(b&&!b._isBSDOMElement&&document.activeElement!==document.body)return;e.keyCode=a.keyCode;e.ctrlKey=a.ctrlKey;e.altKey=a.altKey;e.metaKey=a.metaKey;e.inputValue=a.target.value}this._lastEventPos=[f,g];e.type=d;this.emit("userevent",e,c);!gh&&/drag|pointerup|pointerdown|pointermove/.test(d)&&(e=R(e),e.type="multi:"+d,this.emit("userevent",e,c))}},_getTarget:function(a){for(a=a.target;a&&null==this._getIdOfTarget(a);)a=a.parentNode;return a},_getIdOfTarget:function(a){a=
a&&a.getAttribute&&a.getAttribute("data-bs-id");return null==a?null:+a},_getBasicEventData:function(a){var b=this.getOffset(),c=a.clientX||a.touches&&a.touches.length&&a.touches[0].clientX||0,a=a.clientY||a.touches&&a.touches.length&&a.touches[0].clientY||0,d=c-b.left,b=a-b.top;return{stageX:d,stageY:b,x:d,y:b,clientX:c,clientY:a}}};$a.module$exports&&($a=$a.module$exports);var ab={},hh=z,pe={blur:function(a){return s("feGaussianBlur",{stdDeviation:a})},brightness:function(a){var b=s("feComponentTransfer");
["R","G","B"].forEach(function(c){s("feFunc"+c,{type:"linear",slope:a},b)});return b},contrast:function(a){var b=-(0.5*a+0.5),c=s("feComponentTransfer");["R","G","B"].forEach(function(d){s("feFunc"+d,{type:"linear",slope:a,intercept:b},c)});return c},dropShadowByAngle:function(a){var b=a[0],c=a[1];return this.dropShadowByOffset([c*Math.cos(b),c*Math.sin(b),a[2],a[3]])},dropShadowByOffset:function(a){var b=a[0],c=a[1],d=a[2],e=hh(a[3]),a=[],d=s("feGaussianBlur",{stdDeviation:d});a.push(d);b=s("feOffset",
{dx:b,dy:c,result:"offsetblur"});a.push(b);b=s("feFlood",{"flood-color":e.rgb(),"flood-opacity":e.alpha(),result:"flood"});a.push(b);b=s("feComposite",{in2:"offsetblur",operator:"in"});a.push(b);b=s("feMerge");s("feMergeNode",null,b);s("feMergeNode",{"in":"SourceGraphic"},b);a.push(b);return a},grayscale:function(a){a=Math.min(1,Math.max(0,a));return pe.saturate(a)},hueRotate:function(a){a=Math.min(360,Math.max(0,a));return s("feColorMatrix",{type:"hueRotate",values:a})},invert:function(a){var a=
Math.min(1,Math.max(0,a)),b=1-a,c=s("feComponentTransfer");["R","G","B"].forEach(function(d){s("feFunc"+d,{type:"table",tableValues:a+" "+b},c)});return c},opacity:function(a){var a=Math.min(1,Math.max(0,a)),b=s("feComponentTransfer");s("feFuncA",{type:"table",tableValues:"0 "+a},b);return b},saturate:function(a){return s("feColorMatrix",{type:"saturate",values:1-a})},sepia:function(a){a=Math.min(1,Math.max(0,a));a=1-a;return s("feColorMatrix",{type:"matrix",values:[0.393+0.607*a,0.769-0.769*a,0.189-
0.189*a,0,0,0.349-0.349*a,0.686+0.314*a,0.168-0.168*a,0,0,0.272-0.272*a,0.534-0.534*a,0.131+0.869*a,0,0,0,0,0,1,0].join(" ")})},colorMatrix:function(a){return s("feColorMatrix",{type:"matrix",values:a.join(" ")})}};ab.module$exports={create:function(a,b){return pe[a](b)},isFEColorMatrixEnabled:"undefined"!==typeof window&&"SVGFEColorMatrixElement"in window};ab.module$exports&&(ab=ab.module$exports);var bb={},ld=z;bb.module$exports={lineColor:kd("lineColor"),fillColor:kd("fillColor")};bb.module$exports&&
(bb=bb.module$exports);var cb={},nd=z;cb.module$exports={fillGradient:md("fillGradient"),lineGradient:md("lineGradient")};cb.module$exports&&(cb=cb.module$exports);var Vb={module$exports:{segments:{setupTo:function(a){for(var b=a.segments,c=0,d=b.length;c<d;++c)for(var e=b[c],f=0,g=e.length;f<g;++f)isNaN(e[f])||(a["segment_"+c+"_"+f]=e[f])},setupFrom:function(a){var b=a.segments;this._segments=b;for(var c=0,d=b.length;c<d;++c)for(var e=b[c],f=0,g=e.length;f<g;++f)isNaN(e[f])||(a["segment_"+c+"_"+
f]=e[f]);delete a.segments},step:function(a){for(var b=this._segments,c=0,d=b.length;c<d;++c)for(var e=b[c],f=0,g=e.length;f<g;++f)isNaN(a["segment_"+c+"_"+f])||(e[f]=a["segment_"+c+"_"+f],delete a["segment_"+c+"_"+f]);a.segments=b}}}};Vb.module$exports&&(Vb=Vb.module$exports);var ba={},ih=n;ba.module$exports={bindAssetCallback:function(a){function b(){d();a.call(this,null,this)}function c(b){d();a.call(this,b,this)}var d=ih.hitch(this,function(){this.removeListener("load",b);this.removeListener("error",
c)});this.on("load",b);this.on("error",c);return this}};ba.module$exports&&(ba=ba.module$exports);var na={},db=n,Pc=Math.max,Qc=Math.min,qe=db.removeValueFromArray;na.module$exports={addChild:function(a,b){var c=0<=b;if(db.isArray(a))return c&&a.reverse(),db.forEach(a,function(a){c?this.addChild(a,b):this.addChild(a)},this),this;var d=this.stage;a.parent&&a.parent.removeChild(a);var e=!a.stage&&d;a.parent=this;var f=this._children||(this._children=[]),g=f.length;c?f[b]?(f.splice(b,0,a),g+=1):f[b]=
a:(b=f.push(a)-1,g+=1);var h,i,k;for(h=b-1;0<=h&&!(k=f[h]);h-=1);if(k)i=k.next,k.next=a;else for(h=b+1;h<g&&!(i=f[h]);h+=1);i&&(a.next=i);h=(g=d&&d.registry)&&g.displayObjects;i=g&&g.movies.add;k=g&&g.needsInsertion;if(e){var e=a,l=[],m=l.push,O=0;do{e._activate(d);e.markUpdate();if(g){var j=e.id;h[j]=e;k[j]=e;"function"==typeof e.emitFrame&&i(e)}(f=e._children)&&m.apply(l,qe(f.slice()))}while(e=l[O++])}else a._activate(d),k&&(k[a.id]=a),a.markUpdate();return this},children:function(a,b){if(!a){var c=
this._children;return c?c.slice():[]}this.clear();return this.addChild.apply(this,arguments)},clear:function(){var a=this._children;a&&a.slice(0).map(this.removeChild,this);return this},getComputed:function(a){var b=this._children||(this._children=[]),c=!0;if("top"===a||"right"===a||"bottom"===a||"left"===a){var d="top"===a||"bottom"===a?"y":"x",e="top"===a||"left"===a?Qc:Pc;return db.reduce(b,function(b,g){if(!g)return b;var h=g.attr(d)+g.getComputed(a);return c?(c=!1,h):e(b,h)},0)}b=db.reduce(b,
function(a,b){if(!b)return a;var d=b.getComputed("size"),e=b.attr("x"),k=b.attr("y"),l=k+d.top;a.top=c?l:Qc(a.top,l);l=e+d.right;a.right=c?l:Pc(a.right,l);k+=d.bottom;a.bottom=c?k:Pc(a.bottom,k);d=e+d.left;a.left=c?d:Qc(a.left,d);c=!1;return a},{top:0,right:0,bottom:0,left:0,width:0,height:0});b.height=b.bottom-b.top;b.width=b.right-b.left;return"size"===a?b:b[a]},getIndexOfChild:function(a){var b=this._children;return b?b.indexOf(a):-1},removeChild:function(a,b){var c=this._children,d=c?c.indexOf(a):
-1;if(-1==d)return this;for(var e=d-1;0<=e;e-=1){var f=c[e];if(f){f.next=a.next;break}}a.next?"keepIndexes"===b?delete c[d]:c.splice(d,1):c.length=d;delete a.parent;delete a.next;var g,f=(e=(d=a.stage)&&d.registry)&&e.displayObjects,h=e&&e.movies.remove,i=e&&e.needsInsertion,k=a,l=[],m=l.push;if(d){a.markUpdate();d=0;do e&&(h(k),g=k.id,delete f[g],delete i[g]),k._deactivate(),(c=k._children)&&m.apply(l,qe(c.slice()));while(k=l[d++])}return this}};na.module$exports&&(na=na.module$exports);var oa={},
j=Va,jh=z;j.Blur=function(a){return new j.BaseFilter("blur",a,1)};j.createFactory("blur",j.Blur);j.Brightness=function(a){return new j.BaseFilter("brightness",a,2)};j.createFactory("brightness",j.Brightness);j.ColorMatrix=function(a){return new j.BaseFilter("colorMatrix",a,[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0])};j.createFactory("colorMatrix",j.ColorMatrix);j.Contrast=function(a){return new j.BaseFilter("contrast",a,2)};j.createFactory("contrast",j.Contrast);j.DropShadow=function(a,b,c,d){d=jh.parse(d,
0);return/deg$/.test(a)?(a=Math.PI/180*parseFloat(a),new j.BaseFilter("dropShadowByAngle",[a,b,c,d],[0,0,0,255])):new j.BaseFilter("dropShadowByOffset",[a,b,c,d],[0,0,0,255])};j.createFactory("dropShadow",j.DropShadow);j.Grayscale=function(a){return new j.BaseFilter("grayscale",a,1)};j.createFactory("grayscale",j.Grayscale);j.HueRotate=function(a){return new j.BaseFilter("hueRotate",a,90)};j.createFactory("hueRotate",j.HueRotate);j.Invert=function(a){return new j.BaseFilter("invert",a,1)};j.createFactory("invert",
j.Invert);j.Opacity=function(a){return new j.BaseFilter("opacity",a,0.5)};j.createFactory("opacity",j.Opacity);j.Saturate=function(a){return new j.BaseFilter("saturate",a,5)};j.createFactory("saturate",j.Saturate);j.Sepia=function(a){return new j.BaseFilter("sepia",a,1)};j.createFactory("sepia",j.Sepia);oa.module$exports=j;oa.module$exports&&(oa=oa.module$exports);var eb={},pd=n,ff=oa,qd=z,t="filter_";eb.module$exports={filters:{setupTo:function(a){pd.isArray(a.filters)||(a.filters=[a.filters]);for(var b=
0,c=a.filters.length;b<c;b++)od(a.filters[b],b,a);this._to=a.filters;delete a.filters},setupFrom:function(a){for(var b=0,c=this._to.length;b<c;b++)od(a.filters[b],b,a);this._filters=a.filters;delete a.filters},step:function(a){for(var b=0,c=this._to.length;b<c;b++)if(null!=this._to[b])if(null!=a[t+b])this._filters[b].value=a[t+b],delete a[t+b];else for(var d=0,e=this._to[b].value.length;d<e;++d)if(("dropShadowByOffset"===this._to[b].type||"dropShadowByAngle"===this._to[b].type)&&3===d){var f=Number(new qd.RGBAColor(a[t+
b+"_"+d+"_r"],a[t+b+"_"+d+"_g"],a[t+b+"_"+d+"_b"],a[t+b+"_"+d+"_a"]));delete a[t+b+"_"+d+"_r"];delete a[t+b+"_"+d+"_g"];delete a[t+b+"_"+d+"_b"];delete a[t+b+"_"+d+"_a"];this._filters[b].value[d]=f}else this._filters[b].value[d]=a[t+b+"_"+d],delete a[t+b+"_"+d];a.filters=this._filters}}};eb.module$exports&&(eb=eb.module$exports);var ca={},fb=n,Wb=z,kh=aa,re={}.hasOwnProperty;q.DEFAULT_UNITS="boundingBox";q.LinearGradient=function(a,b,c,d){this.type="linear-gradient";this.stops=b;this.matrix=c;this.direction=
a;this.units=d};q.LinearGradient.prototype.clone=function(){var a=[];this.stops.forEach(function(b){a.push([b[0],b[1]])});return new q.LinearGradient(this.direction,a,this.matrix&&this.matrix.clone(),this.units)};q.RadialGradient=function(a,b,c,d,e,f){this.type="radial-gradient";this.stops=a;this.radius=b;this.matrix=c;this.units=d;this.fx=e;this.fy=f};q.RadialGradient.prototype.clone=function(){var a=[];this.stops.forEach(function(b){a.push([b[0],b[1]])});return new q.RadialGradient(a,this.radius,
this.matrix&&this.matrix.clone(),this.units,this.fx,this.fy)};q._repeat=function(a,b){for(var c=a.length,d,e,f=[],g=0;g<b;++g)for(var h=0;h<c;++h)e=a[h].slice(0),d=100/b*g,e[1]=e[1]/b+d,f.push(e);return f};q._fillOffsets=function(a){var b,c,d=a.length-1;if(a&&a.length){a[0][1]=a[0][1]||0;a[d][1]=null==a[d][1]?100:a[d][1];b=a[0][1];for(var e=1;e<d;++e)if(a[e][1])b=parseFloat(a[e][1]);else{c=b;b=null;for(var f=e+1;f<d;++f)if(a[f][1]){b=a[f][1];break}(b=parseFloat(b))||(b=a[d][1]);for(var g=(b-c)/(f-
e+1);e<f;++e)c+=g,a[e][1]=c}return a}};q.linear=function(a,b,c){return q.advancedLinear(a,b,null,c)};q.radial=function(a,b,c,d,e){return q.advancedRadial(a,(b||50)+"%",new kh(1,0,0,1,null==c?0.5:c/100,null==d?0.5:d/100),e)};q.advancedLinear=function(a,b,c,d,e){var e=e||q.DEFAULT_UNITS,f=parseFloat(a);fb.isArray(a)?f=a:isNaN(f)&&(f=lh[a]);if(!fb.isArray(b)){var a=[],g;for(g in b)re.call(b,g)&&a.push([b[g],parseFloat(g)]);b=a;b.sort(function(a,b){return a[1]-b[1]})}b=b.map(function(a){return fb.isArray(a)?
[Wb.parse(a[0]),a[1]]:[Wb.parse(a)]});q._fillOffsets(b);d&&(b=q._repeat(b,d));return new q.LinearGradient(f,b,c,e)};q.advancedRadial=function(a,b,c,d,e,f,g){e=e||q.DEFAULT_UNITS;f=f||0;g=g||0;b=null==b?"50%":b;if(!fb.isArray(a)){var h=[],i;for(i in a)re.call(a,i)&&h.push([a[i],parseFloat(i)]);a=h;a.sort(function(a,b){return a[1]-b[1]})}a=a.map(function(a){return fb.isArray(a)?[Wb.parse(a[0]),a[1]]:[Wb.parse(a)]});q._fillOffsets(a);d&&(a=q._repeat(a,d));return new q.RadialGradient(a,b,c,e,f,g)};q.parse=
function(a){var b=a.match(/(linear)-gradient\((.+)\)$/);if(b&&"linear"===b[1])return q.parseLinearGradient(b[2]);throw Error("Invalid gradient: "+a);};var lh={top:0,right:90,bottom:180,left:270,"top left":315,"top right":45,"bottom left":225,"bottom right":135};q.parseLinearGradient=function(a){for(var b=a.match(/^\s*(?:(-?(?:[0-9]+\.)?[0-9]+)deg|to\s+((?:(?:top|bottom)\s*)?(?:left|right)|(?:top|bottom)))/)||["",,"bottom"],c=b[1],d=b[2],e=/(?:,|^)\s*(#[0-9a-f]{3,8}|(?:hsl|rgb)a?\(.+?\)|\w+)\s*((?:[0-9]+\.)?[0-9]+%|)?/ig,
f=[],a=a.slice(b[0].length);b=e.exec(a);)f.push([b[1],parseFloat(b[2])||null]);return q.linear(c||d,f)};ca.module$exports=q;ca.module$exports&&(ca=ca.module$exports);var gb={},v=T,se=n,Rc=Math.abs,rd=Math.asin,mh=Math.ceil,Hb=Math.cos,Z=Math.PI,ka=Math.pow,Jb=Math.sqrt,Ib=Math.sin,nh=Math.tan,B=K.prototype;B.clear=function(){this._segments.length=0};B._push=function(){var a=[].slice.call(arguments);a.from=this.currentPoint.clone();a.lastMoveTo=this.lastMoveTo.clone();this._segments.push(a);return this};
B.moveTo=function(a,b){this._push("moveTo",a,b);this.currentPoint=new v(a,b);this.lastMoveTo=new v(a,b);return this};B.moveBy=function(a,b){var c=this.currentPoint;return this.moveTo(c.x+a,c.y+b)};B.closePath=function(){this._push("closePath");this.currentPoint=this.lastMoveTo.clone();return this};B.lineTo=function(a,b){var c=this.currentPoint;this._push("curveTo",c.x,c.y,a,b,a,b);this.currentPoint=new v(a,b);return this};B.lineBy=function(a,b){var c=this.currentPoint;return this.lineTo(c.x+a,c.y+
b)};B.curveTo=function(a,b,c,d,e,f){this._push("curveTo",a,b,c,d,e,f);this.currentPoint=new v(e,f);return this};B.curveBy=function(a,b,c,d,e,f){var g=this.currentPoint.x,h=this.currentPoint.y;return this.curveTo(g+a,h+b,g+c,h+d,g+e,h+f)};B.arcTo=function(a,b,c,d,e,f,g){var h,i,k=this.currentPoint.x,l=this.currentPoint.y,b=pc(k,l,a,b,c,d,e,f,g),c=b.cx,d=b.cy,e=b.startAngle;h=b.endAngle-e;a=b.rx;b=b.ry;i=mh(Rc(h)/(Z/2));h/=i;for(var m=0;m<i;++m){var O=O||k,j=j||l,n=e+h*m,o=n+h,p=4/3*nh((o-n)/4),q=c+
a*Hb(o),r=d+b*Ib(o),s=O+p*a*-Ib(n),n=j+p*b*Hb(n),t=q+p*a*Ib(o),o=r+p*b*-Hb(o),O=q,j=r;this._push("curveTo",s,n,t,o,q,r)}this.currentPoint=new v(f,g);return this};B.arcBy=function(a,b,c,d,e,f,g){var h=this.currentPoint;return this.arcTo(a,b,c,d,e,f+h.x,g+h.y)};B.quadraticCurveTo=function(a,b,c,d){var e=1/3,f=2/3,g=this.currentPoint;this._push("curveTo",e*g.x+f*a,e*g.y+f*b,e*c+f*a,e*d+f*b,c,d);this.currentPoint=new v(c,d);return this};B.quadraticCurveBy=function(a,b,c,d){var e=this.currentPoint;return this.quadraticCurveTo(a+
e.x,b+e.y,c+e.x,d+e.y)};B.nullCurve=function(a){var a=null==a?this._segments.length-1:a,b,c,d,e=this._segments[a];e?(c=e[e.length-2],d=e[e.length-1]):c=d=0;b=["curveTo",c,d,c,d,c,d];b.from=new v(c,d);b.lastMoveTo=e?e.lastMoveTo.clone():new v(0,0);this._segments.splice(a+1,0,b);return this};B.splitCurve=function(a){var b,c,d=this._segments[a],e=[];if(!d||7>d.length)return this;c=sd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,
b[2].x,b[2].y,b[3].x,b[3].y];f.from=b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};K.propertiesFromAbsoluteArc=pc;K.splitAbsoluteCubicBezier=sd;K.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;d<e;++d)"closePath"===a[d][0]||d===e-1?(b.push(c+1),c=0):++c;return b};K.subPathToCurves=function(a,b){var c=new K,d=c._segments,
e,f,g,h=!1;if(!a)return[];!a.length&&b&&(a=[["moveTo",0,0],["closePath"]]);e=0;for(h=a.length;e<h;++e)f=a[e],(g=f[0])&&c[g].apply(c,f.slice(1));h=(e=d.length)&&"closePath"===d[e-1][0];if(e<b){b-=e;h&&e--;g=Math.ceil(e/b);f=Math.ceil(1/(e/b));e-=1;a:for(;0<=e;e-=g)for(var i=f;i--;)if(b--)c.nullCurve(e);else break a;for(e=d.length;0<b--;)c.nullCurve(h?e-2:e-1)}return d};K.toCurves=function(a,b){if(!se.isArray(a))return[];se.isArray(b)||(b=[b]);for(var c=K.countSubPaths(a),d=[],e=0,f=Math.max(c.length,
b.length);e<f;++e)d=d.concat(K.subPathToCurves(a.splice(0,c[e]),b[e]));return d};K.fromArc=function(a,b,c,d,e,f,g,h,i){if(!(a===h&&b===i)){if(0===c||0===d)return["lineTo",x,y];Rc(c);Rc(d)}};gb.module$exports=K;gb.module$exports&&(gb=gb.module$exports);var Da={},te=Math.round;Da.module$exports=n.mixin({currentFrame:0,isPlaying:!0,incrementFrame:function(){this.isPlaying&&(this.currentFrame=(this.currentFrame+1)%(null==this._length?Infinity:this._length)||0)},emitFrame:function(){var a=this.currentFrame,
b=this.skipFrame;this.emit("tick",this,a);if(this.isPlaying){if(null==this.skipFrame||this.skipFrame!=a)this.emit(""+a,this,a),this.emit("advance",this,a);this.skipFrame===b&&(this.skipFrame=null)}},frames:function(a){var b,c,d=0;for(c in a)b=this.toFrameNumber(c),b>d&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=
1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&a<this.length()&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},toFrameNumber:function(a){if(a==+a)return+a;if("from"==a||"start"==a)return 0;if("to"==a||"end"==a)return this._length;a=/^([\d.]+)(\D+)$/.exec(a)||[];switch(a[2]){case "ms":a[1]/=1E3;case "s":return te(a[1]*(this.framerate||this.root.framerate));case "%":return te(this._length*
a[1]/100)||0;default:throw Error("Unknown frame format: "+a[2]);}}},w);Da.module$exports&&(Da=Da.module$exports);var pa={},hf=Ba,Ma=n,oh=w,ph=bb,qh=cb,rh=eb,sh=Vb,th=Wa,uh=Qb,da=Ma.mixin,U=ua.propertyTranslations={};da(U,ph);da(U,qh);da(U,rh);da(U,sh);da(U,th);da(U,uh);ua.prototype={_cleanProperties:function(){var a=this.properties,b;for(b in a)isNaN(a[b])&&(!a[b]||!(b in U))&&delete a[b]},_bind:function(){var a=this,b=this.delay,c=this.options;this.frame=0;var d;this.onStep=function(c,f,g){if(!(0<
b&&b--)){d=d||f;var c=a.duration,h=a.frame=a.isTimelineBound?a.frame+(f-d||1):a.frame+1;a.step(h/c);a.isTimelineBound&&g||h===c?(d=0,b=a.delay,a.reset(),0<a.repeat--?a.play():a.emit("end",a.subject,a)):d=f}};c.subjects&&this.setSubjects(c.subjects,c.strategy)},_getTranslations:function(){for(var a=this.propertyNames,b,c=0,d=a.length;c<d;c++)if(a[c]in U){b=U[a[c]];if(!("function"==typeof b.step&&"function"==typeof b.setupFrom&&"function"==typeof b.setupTo||"function"==typeof b.setup))throw Error("Translation does not implement setup (or setupFrom & setupTo) and step methods.");
this.translations.push({methods:b,data:this._translationData[a[c]]={}})}},_runTranslations:function(a,b){for(var c,d,e=this.translations.length;e--;)c=this.translations[e],d="setupFrom"===b||"setupTo"===b?c.methods[b]||c.methods.setup:c.methods[b],d.call(c.data,a)},play:function(a,b){a&&this.addSubjects(a,b);if(!this.subjects)throw Error("Unspecified subjects.");if(this.isPlaying)return this;this.clock.on(this.isTimelineBound?"advance":"tick",this.onStep);0===this.frame&&this.emit("beforebegin",this);
this.emit("play",this);this.isPlaying=!0;return this},pause:function(){this.clock.removeListener(this.isTimelineBound?"advance":"tick",this.onStep);this.emit("pause",this);this.isPlaying=!1},clone:function(){var a={clock:this.clock,duration:this.duration,easing:this.easing,isTimelineBound:this.isTimelineBound};return new ua(this.clock,this.duration,da({},this.properties),a)},_parseEventProps:function(a){var b,c;for(b in a)0==b.indexOf("on")&&(c=b.slice(2).toLowerCase(),this.on(c,a[b]),delete a[b])},
reset:function(){this.frame=0;this.isPlaying=!1;this.clock.removeListener(this.isTimelineBound?"advance":"tick",this.onStep);return this},addSubject:function(a,b){var c=this.propertyNames,d,b=b||this.strategy||"attr";switch(b){case "attr":d=a.attr();break;case "prop":d={};for(var e=0,f;f=c[e++];)d[f]=a[f];break;default:d=b.get(a,this.propertyNames)}this._runTranslations(d,"setupFrom");a.id in this.subjectsById||(this.subjectsById[a.id]=!0,this.subjects.push({subject:a,strategy:b,values:d}));return this},
addSubjects:function(a,b){var c=this,a=Ma.isArray(a)?a:[a];a.forEach(function(a){c.addSubject(a,b)});return this},removeSubject:function(a){if(a.id in this.subjectsById){for(var b=0,c=this.subjects.length;b<c;++b)if(this.subjects[b].subject===a){this.subjects.splice(b,1);break}delete this.subjectsById[a.id]}},removeSubjects:function(a){a.forEach(Ma.hitch(this,"removeSubject"));return this},setSubjects:function(a,b){a=Ma.isArray(a)?a:[a];this.removeSubjects(this.subjects.map(function(a){return a.subject}));
this.addSubjects(a,b);return this},setSubject:function(a,b){this.removeSubjects(this.subjects.map(function(a){return a.subject}));this.addSubject(a,b);return this},step:function(a){var b,c,d,e,f,g,h,i=!!this.translations.length;b=this.easing;var k=this.properties,l=this.propertyNames,m=l.length,j=this.subjects,n={};b&&(a=b(a));for(var o=0,p=j.length;o<p;++o){e=j[o].values;c=j[o].subject;b=j[o].strategy;h="attr"===b;for(var q=c._attributes,r=c._mutatedAttributes,s=0;s<m;++s)f=l[s],d=e[f],g=k[f],!i&&
h?(q[f]=d+(g-d)*a,r[f]=!0):n[f]=d+(g-d)*a;if(!i&&h)c.markUpdate();else if(this._runTranslations(n,"step"),"attr"===b)c.attr(n);else if("prop"===b)for(f in n)c[f]=n[f];else b.set(c,n)}return this}};da(ua.prototype,oh);pa.module$exports=ua;pa.module$exports&&(pa=pa.module$exports);var Ea={},vh=pa,Xb=n,wh=w,Sc={}.hasOwnProperty;qc.prototype={play:function(a,b){a&&this.setSubjects(a,b);if(0>this.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1<
this.currentAnimation&&(this.animations[this.currentAnimation].isPlaying=!1);return this},reset:function(){this.animations.forEach(function(a){a.reset()});this.currentAnimation=-1;return this},begin:function(){var a=this.keyframes[0],b=this.subjects,c,d;if(a&&b.length)for(var e=0,f=b.length;e<f;++e)switch(d=b[e],c=d.strategy,d=d.subject,c){case "attr":d.attr(a);break;case "prop":for(e in a)d[e]=a[e];break;default:c.set(d,a)}this.currentAnimation=0;this.subjects.forEach(function(a){this.animations[0].addSubject(a.subject,
a.strategy)},this);this.animations[0].play();return this},addSubject:function(a,b){b=b||this.strategy||"attr";if(null==this.initialValues)switch(b){case "attr":this.initialValues=a.attr();break;case "prop":var c=Object.keys(a);this.initialValues={};for(var d=0,e;e=c[d++];)this.initialValues[e]=a[e];break;default:this.initialValues=b.get(a,this.propertyNames)}this.subjects.push({subject:a,strategy:b});if(this.animations.length){c=0;for(d=this.animations.length;c<d;++c)this.animations[c].addSubject(a,
b)}else this._fillInProperties(),this._createAnimations();return this},addSubjects:function(a,b){var c=this,a=Xb.isArray(a)?a:[a];a.forEach(function(a){c.addSubject(a,b)});return this},removeSubject:function(a){for(var b=0,c=this.subjects.length;b<c;++b)if(this.subjects[b].subject===a){this.subjects.splice(b,1);for(var d=0,e=this.animations.length;d<e;++d)this.animations[d].removeSubject(a)}},removeSubjects:function(a){a.forEach(Xb.hitch(this,"removeSubject"));return this},setSubjects:function(a,
b){a=Xb.isArray(a)?a:[a];this.removeSubjects(this.subjects.map(function(a){return a.subject}));this.addSubjects(a,b);return this},setSubject:function(a,b){this.removeSubjects(this.subjects.map(function(a){return a.subject}));this.addSubject(a,b);return this},_createAnimations:function(){var a,b=0,c,d=this.animations,e=this.keyframes;this.keys.forEach(function(f,g){var h;if(0!==f){a=f-b;b+=a;h=new vh(this.clock,a,e[f],{easing:this.easing,strategy:this.strategy});if(c)c.on("end",this,function(){this.currentAnimation++;
this.subjects.forEach(function(a){h.addSubject(a.subject,a.strategy)},this);h.play()});d.push(h);c=h;if(g==this.keys.length-1)h.on("end",this,function(){Infinity===this.repeat||0<--this.repeat?(this.reset(),this.play()):this.emit("end",this.subjects)})}},this)},_fillInProperties:function(){var a=this.initialValues,b=this.duration,c=this.keys,d=this.keyframes,e,f={};c.forEach(function(a){e=d[a];for(var b in e)e.hasOwnProperty(b)&&(f[b]=!0)});c.forEach(function(g,h){var i,k,l,m,j;e=d[g];for(j in f)if(!Sc.call(e,
j)){a:{i=j;for(k=h;k--;)if(Sc.call(d[c[k]],i)){i=c[k];break a}i=null}a:{k=j;l=h;for(m=c.length;l<m;++l)if(Sc.call(d[c[l]],k)){k=c[l];break a}k=null}l=i&&d[i][j]||a[j];m=k&&d[k][j];if(null==l)throw Error("No initial value specified for property: "+j);null==m&&(m=l,k=b);e[j]=m*(g-i)/(k-i)}})},_convertKeysToFrames:function(a){for(var b,c,d=0,e=this.clock,f=this.duration,g=Object.keys(a),h=Object.create(null),i=0,k=g.length;i<k;i++)b=g[i],c=b==+b?b:/^(?:from|start)$/.test(b)?0:/^(?:to|end)$/.test(b)?
f:/^\d+%$/.test(b)?f*parseFloat(b)/100:e.toFrameNumber(b),h[c]=a[b],c>d&&(d=c);d>this.duration&&(this.duration=d);return h}};Xb.mixin(qc.prototype,wh);Ea.module$exports=qc;Ea.module$exports&&(Ea=Ea.module$exports);var L={},xh=w,va=n,Kf=aa,Mf=T,ue=pa,yh=Ea,ud=oa,F=va.descriptorAccessor,C=va.descriptorData,zh=va.getter,Jf=1,td=Math.atan2,lf=Math.PI,rc=isFinite,Lf=zh("_opacity");E.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,
c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?E.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),b._children))for(var e=0,f=b._children.length;e<f;++e){var g=b._children[e];g&&E.registerOffStageObj(a,g,c,d,!0)}};E.unregisterOffStageObj=function(a,b,c){if(!c){if(0<--b._offStageUseCount)return;
delete b._offStageUseCount}if(c=b.stage)if(b.emit("removedFromStage"),c.registry.needsDraw[b.id]=b,delete c.registry.needsInsertion[b.id],delete c.registry.displayObjects[b.id],delete b.stage,b.markUpdate("shapeData"),delete b._offStageType,b._isOffStage=!1,b._children)for(var c=0,d=b._children.length;c<d;++c){var e=b._children[c];e&&E.unregisterOffStageObj(a,e,!0)}};var Ah=E.prototype={parent:null,type:"DisplayObject",_activate:function(a){this.stage=a;this._mutatedAttributes=va.mixin({},this._renderAttributes);
var b=this._attributes,c=b._clip;c&&E.registerOffStageObj(this,c,a,"clip");(b=b._mask)&&E.registerOffStageObj(this,b,a,"mask");this.parent._isOffStage&&(this._offStageType=this.parent._offStageType,this._isOffStage=!0);this.emit("addedToStage")},_deactivate:function(){delete this.stage;this.emit("removedFromStage")},attr:function(a,b){var c,d,e=this._attributes;switch(arguments.length){case 0:c={};for(d in e)"_"!=d.charAt(0)&&(c[d]=e[d]);return c;case 1:if("string"==typeof a)return a in e&&"_"!=a.charAt(0)?
e[a]:void 0;for(d in a)d in e&&"_"!=d.charAt(0)&&(e[d]=a[d],this._mutatedAttributes[d]=!0);break;case 2:a in e&&"_"!=a.charAt(0)&&(e[a]=b,this._mutatedAttributes[a]=!0)}this.markUpdate();return this},getComputed:function(a){var b={top:0,right:0,bottom:0,left:0,width:0,height:0};return"size"===a?b:b[a]},destroy:function(){return this.removeAllListeners().remove()},mask:function(){},blendMode:function(){},markUpdate:function(){var a=this.stage;a&&(a.registry.needsDraw[this.id]=this);return this},addTo:function(a,
b){a.addChild(this,b);return this},addAfter:function(a){var b=a.parent;b.addChild(this,b.getIndexOfChild(a)+1);return this},addBefore:function(a){var b=a.parent;b.addChild(this,b.getIndexOfChild(a));return this},remove:function(a){var b=this.parent;b&&b.removeChild(this,a);return this},setOrigin:function(a,b){return this.attr("origin",{x:a,y:b})},composeRenderMessage:function(a){a||(a={attributes:{},id:this.id});var b=a.attributes||{},c=this._mutatedAttributes,d=this._renderAttributes,e=this._attributes,
f;for(f in c)f in d&&(b[f]=e[d[f]]);this._mutatedAttributes={};a.attributes=b;a.data=this._getRenderData&&this._getRenderData();a.type=this.type;a.offStageType=this._offStageType;return a},animate:function(a,b,c){var d=a;if(!(d instanceof ue||d instanceof yh)){d=c&&c.clock||this.stage;c||(c={});if(!d)for(d=this;d&&!d.emitFrame;)d=d.parent;if(!d)return this.once("addedToStage",function(){this.animate(a,b,c)}),this;d=new ue(d,a,b,c)}d.play(this);return this}};va.mixin(Ah,xh);L.module$exports=E;L.module$exports&&
(L=L.module$exports);var ea={},vd=L,Bh=na,Ch=n,Tc=sc.prototype=Object.create(vd.prototype);Ch.mixin(Tc,Bh);Tc.type="Group";Tc.clone=function(a){var b=new sc;a.attributes&&b.attr(this.attr());this.children().forEach(function(c){c.clone&&b.addChild(c.clone(a))},this);return b};ea.module$exports=sc;ea.module$exports&&(ea=ea.module$exports);var hb={},tc=ea,xd=n,qa=wd.prototype=Object.create(tc.prototype);qa.getAttribute=function(a){return this._domAttributes[a]};qa.getStyle=function(a){return this._cssStyles[a]};
qa.setAttribute=function(a,b){this._domAttributes[a]=b;this._mutatedDomAttributes[a]=!0;this.markUpdate();return this};qa.setAttributes=function(a){for(var b in a)this.setAttribute(b,a[b]);return this};qa.setStyles=function(a){for(var b in a)this.setStyle(b,a[b]);return this};qa.setStyle=function(a,b){this._cssStyles[a]=b;this._mutatedCssStyles[a]=!0;this.markUpdate();return this};qa.composeRenderMessage=function(a){var a=tc.prototype.composeRenderMessage.call(this,a),b,a=a.attributes,c=this._cssStyles,
d=this._domAttributes,e=this._mutatedDomAttributes,f=this._mutatedCssStyles;a.nodeName=this.nodeName;for(b in e)a["dom_"+b]=d[b];for(b in f)a["css_"+b]=c[b];this._mutatedCssStyles={};this._mutatedDomAttributes={};return{id:this.id,attributes:a,data:this._getRenderData&&this._getRenderData(),type:this.type,offStageType:this._offStageType}};hb.module$exports=wd;hb.module$exports&&(hb=hb.module$exports);var ib={},zd=L,Dh=ba,Eh=na,Fh=Da,ve=yd.prototype=n.mixin(Object.create(zd.prototype),Fh,Eh,Dh);ve.loadSubMovie=
function(){return this.root.loadSubMovie.apply(this.root,arguments)};ve.type="Movie";ib.module$exports=yd;ib.module$exports&&(ib=ib.module$exports);var Fa={},Cd=L,Rf=ca,Na=n,wa=Na.descriptorAccessor,D=Na.descriptorData,Gh=Na.getter,Ad=z.parse,Zf=Gh("_textLineColor"),Uc=Bd.prototype=Object.create(Cd.prototype);Uc.type="TextSpan";Uc.setText=function(a){return this.attr("text",a)};Uc.getText=function(){return this.attr("text")};Fa.module$exports=Bd;Fa.module$exports&&(Fa=Fa.module$exports);var jb={},
Fd=ea,uc=Fa,dg=ca,Yb=n,$=Yb.descriptorAccessor,A=Yb.descriptorData,Zb=Yb.getter,Dd=z.parse,og=Zb("_textLineColor"),mg=Zb("_cap"),ng=Zb("_join"),pg=Zb("_miterLimit"),we=Fd.prototype,$b=Ed.prototype=Object.create(we);$b.addChild=function(a,b){if(!(Yb.isArray(a)?a.every(function(a){return a instanceof uc}):a instanceof uc))throw TypeError("child is not a TextSpan instance/an array of TextSpans");return we.addChild.apply(this,arguments)};$b.type="Text";$b.setText=function(a){return this.attr("text",a)};
$b.getText=function(){return this.attr("text")};jb.module$exports=Ed;jb.module$exports&&(jb=jb.module$exports);var V={};S.parse=function(a){a=/^(?:([a-z][a-z0-9+.-]*):)?(?:\/\/([^/#?]*))?([^?#]*)(?:[?]([^#]*))?(?:#(.*))?/.exec(a);return!a?a:new S(a[1],a[2],a[3],a[4],a[5])};S.prototype={isAbsolute:function(){return void 0!==this.authority||"/"===this.path.charAt(0)},resolvePath:function(a){a="/"===a.charAt(0)?a:this.path.replace(/[/]+[^/]*$/,"/")+a;return(new S(this.scheme,this.authority,a)).toString()},
resolveUri:function(a){a instanceof S||(a=S.parse(a));if("data"===a.scheme)return new S(a.scheme,"",a.path);var b=a.scheme||this.scheme,c=a.authority||this.authority,d="/"===a.path.charAt(0)?a.path:this.path.replace(/[/]+[^/]*$/,"/")+a.path;return new S(b,c,d,a.query,a.fragment)},toString:function(){var a=this.path;this.authority&&(a="//"+this.authority+a);this.scheme&&(a=this.scheme+":"+a);this.query&&(a+="?"+this.query);this.fragment&&(a+="#"+this.fragment);return a}};V.module$exports=S;V.module$exports&&
(V=V.module$exports);var kb={},Hh=V;kb.module$exports=function(a){var b,c;if(!a)throw Error("AssetResource needs at least a valid url as parameter.");"string"==typeof a?b=a:(b=a.src,c=a.type);if(!b||"string"!=typeof b)throw Error("AssetResource: src parameter invalid: "+b);this.src=b;c&&"string"===typeof c?this.type=c:(a=Hh.parse(b),this.type=(a.path.match("data"===a.scheme?/^(\w+\/\w+);/:/\.([^.]+)$/)||[,null])[1]);if(!this.type)throw Error("Cannot determine type of resource with src: "+b);};kb.module$exports&&
(kb=kb.module$exports);var W={},ac=kb,Vc=n,xe=Vc.isArray;W.module$exports=function(a){var b,c;if(!a)throw Error("AssetRequest needs at least a valid url.");c=a.resources;b=a.loadLevel;if("string"===typeof a)c=[new ac(a)];else if(xe(a))c=Vc.map(a,function(a){return new ac(a)});else if(c&&c.src||"string"===typeof c)c=[new ac(c)];else if(xe(c)&&c.length)c=Vc.map(c,function(a){return new ac(a)});else throw Error("resources are not valid.");this.resources=c;this.id=a.id;this.loadLevel=b||null};W.module$exports&&
(W=W.module$exports);var fa={},Gd=W,Ih=w,xa=n;Kb.DEFAULT_TIMEOUT=1E4;var Jh=Kb.prototype={load:function(){this.initTimeout();xa.forEach(this.resources,function(a){this.loadResource(a,this.resourceLoadSuccess,this.resourceLoadError)},this)},initTimeout:function(){this._timeoutID=setTimeout(xa.hitch(this,function(){this.resourcesLoaded<this.resourcesExpectedLength&&this.resourceLoadError("Timeout error when trying to load resources")}),this.timeoutDuration)},registerElement:function(a){this.emit("registerElement",
a)},resourceLoadSuccess:function(a){xa.mixin(this.assetData,a);if((this.resourcesLoaded+=1)===this.resourcesExpectedLength)clearTimeout(this._timeoutID),this.emit("resourcesLoaded"),this.emit("load",this.assetData)},resourceLoadError:function(a){clearTimeout(this._timeoutID);this.emit("error",a)}};xa.mixin(Jh,Ih);fa.module$exports=Kb;fa.module$exports&&(fa=fa.module$exports);var lb={},Id=fa;(Hd.prototype=Object.create(Id.prototype)).loadResource=function(a,b,c){var d=new Image;this.registerElement(d);
d.onload=function(){b({width:d.width,height:d.height})};d.onerror=function(){c("Could not load image")};d.src=a.src;if(d.complete)d.onload()};lb.module$exports=Hd;lb.module$exports&&(lb=lb.module$exports);var Ga={},Jd=fa;vc.prototype=Object.create(Jd.prototype);vc.prototype.loadResource=function(a,b,c){var d=new XMLHttpRequest;d.open("GET",a.src,!0);d.send(null);d.onreadystatechange=function(){4==d.readyState&&(200<=d.status||300>d.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}};
Ga.module$exports=vc;Ga.module$exports&&(Ga=Ga.module$exports);var mb={},Kd=fa,Kh=Ga,Lh=n,ye=P.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg",
"application/vnd.ms-fontobject":"eot"};P.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Wc;P.fontIDs={};P.prefix="bs_"+(new Date).getTime()+"_";P.prototype=Object.create(Kd.prototype);P.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Kh(e)).on("load",function(){var c;a.type in ye?c=ye[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler"));
d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};P.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Wc||(Wc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Lh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Wc.appendChild(document.createTextNode('@font-face {font-family: "'+
a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};mb.module$exports=P;mb.module$exports&&(mb=mb.module$exports);var nb={},Ld=fa,Mh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Nh={"start-with-nothing":"loadstart",metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};wc.prototype=Object.create(Ld.prototype);wc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,
height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Mh.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type",h),e.src=a,this.registerElement(e),e.addEventListener(Nh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause",
function(){},!1))};nb.module$exports=wc;nb.module$exports&&(nb=nb.module$exports);var Ha={},Xc=n,Oh=w,Ph=W,Qh=mb,Rh=nb,Sh=lb,Th=Ga;la.assets={};la.hasVideoSupport=function(){return!!domVideo.canPlayType};var ze=la.handlers={Bitmap:Sh,Font:Qh,Video:Rh,Raw:Th};la.prototype={load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in ze)(new ze[d](a.request,a.id)).on("registerElement",function(b){la.assets[a.id]=b}).on("load",this,function(c){this.emit(b,Xc.mixin(a,c))}).on("error",
this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);},preload:function(a,b){a=Xc.isArray(a)?a:[a];a.length||b();var c,d,e,f,g=0,h=0,i=this.preloadID?++this.preloadID:this.preloadID=1;this.on("_preloadedAssetLoadSuccess",function(a){0==a.id.indexOf(i+"__")&&h++;h==g&&b()});this.on("_preloadedAssetLoadError",function(){});c=0;for(d=a.length;c<d;c++)if(f=a[c],e=new Ph(f),f=e.type||f.type)g++,this.load({request:e,type:f,id:i+"__"+c},"_preloadedAssetLoadSuccess",
"_preloadedAssetLoadError")}};Xc.mixin(la.prototype,Oh);Ha.module$exports=la;Ha.module$exports&&(Ha=Ha.module$exports);var ob={},Uh=V,Ae=Md.prototype=n.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},init:function(a){var b=Uh.parse(this.runnerUrl);b.fragment=encodeURIComponent(JSON.stringify(a));var c=this;(this._worker=new Worker(b)).onmessage=function(a){a=a.data;c.emit("message",a);"scriptLoaded"===a.command&&c.emit("scriptLoaded",a.url)}},notifyRunner:function(a){this._worker.postMessage(a)},
run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript",url:a})}},w);Ae.notifyRunnerAsync=Ae.notifyRunner;ob.module$exports=Md;ob.module$exports&&(ob=ob.module$exports);var pb={},Oa=n,Vh=w,qg=V,Wh=Nd.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;Oa.forEach(a,function(a){d.load(c.baseUrl.resolveUri(a).toString())});d.on("scriptLoaded",function(){++h===g&&b()})}var b=this._movieOptions,c=this,d=this.runnerContext;
b.url&&(b.urls||(b.urls=[])).push(b.url);b.plugins&&b.plugins.length?a(b.plugins,function(){d.notifyRunner({command:"exposePluginExports"});b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)}):b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)},initRenderer:function(){this._sendOptions();return this},_cleanOptions:function(a){a||(a={});var b=this.renderer;a.framerate=+a.framerate||void 0;a.width=b.width;a.height=b.height;return a},
destroy:function(){this.renderer.destroy();delete this.renderer;this.runnerContext.destroy();delete this.runnerContext;return this},debug:function(a){console.log.apply(console,["WORKER DEBUG:"].concat(a))},freeze:function(){return this.post("freeze")},handleEvent:function(a){var b=a.data;switch(a.command){case "render":this.currentFrame=a.frame;this.renderer.render(b);break;case "renderConfig":this.renderer.config(b);break;case "play":case "stop":case "freeze":case "unfreeze":this.emit(a.command,
b);break;case "debug":this.debug(b);break;case "loadAsset":this.assetController.load(b);break;case "message":this.emit("message",b);break;case "isReady":this.isRunnerListening=!0,this._sendOptions(),this._onRunnerContextReady(),this.emit("start")}},_sendOptions:function(){if(this.isRunnerListening){this.isReady||(this._sendEnvData(),this.isReady=!0);var a=Oa.mixin({},this._movieOptions);a.baseUrl=a.baseUrl&&a.baseUrl.toString();a.assetBaseUrl=a.assetBaseUrl&&a.assetBaseUrl.toString();this.post("options",
a)}return this},play:function(a){return this.post("play",a)},post:function(a,b){this.runnerContext.notifyRunner({command:a,data:b});return this},postAsync:function(a,b){this.runnerContext.notifyRunnerAsync({command:a,data:b});return this},_sendEnvData:function(){if(!this._isEnvSenderSetup){if("undefined"!==typeof window){var a=Oa.hitch(this,this._sendEnvData);window.addEventListener("resize",a,!1);window.addEventListener("scroll",a,!1)}this._isEnvSenderSetup=!0}a=this.renderer.getOffset();"undefined"!==
typeof window&&this.post("env",{windowHeight:window.innerHeight,windowWidth:window.innerWidth,windowScrollX:Math.max(document.body.scrollLeft,document.documentElement.scrollLeft),windowScrollY:Math.max(document.body.scrollTop,document.documentElement.scrollTop),offsetX:a.left,offsetY:a.top})},sendMessage:function(a){return this.post("message",a)},stop:function(a){return this.post("stop",a)},unfreeze:function(){return this.post("unfreeze")}};Oa.mixin(Wh,Vh);pb.module$exports=Nd;pb.module$exports&&
(pb=pb.module$exports);var qb={},Xh=w,Yc=n,Ia=z,Yh=Ca,Be=ab,ya=Ua,Zh=$a,bc=Ha,Od={},$h=/Version\/5\.1(\.[0-4])? /.test(navigator.appVersion),cc=ya.cssClasses,dc=ya.matrixToString,ai=ya.gradientToSignature,bi=ya.filterToSignature,Ce=ya.valueFromSignatureForType,ci=Yh.exportToPath,ec=Be.isFEColorMatrixEnabled,di=bc.handlers.Font.fontIDs,De=bc.handlers.Font.prefix,Zc={cap:"stroke-linecap",join:"stroke-linejoin",miterLimit:"stroke-miterlimit",opacity:"opacity",fillOpacity:"fill-opacity",lineOpacity:"stroke-opacity",
fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",textAnchor:"text-anchor",text:"text",cursor:"cursor",fillRule:"fill-rule"},Pd="dblclick click mouseenter mouseleave mouseover mouseout mouseup mousedown touchstart touchend mousemove touchmove mousewheel".split(" ");xc.prototype={viewBox:function(a,b){a&&b&&this.root.setAttribute("viewBox","-0.5 -0.5 "+a+" "+b)},attr:function(a,b){var c,d;for(d in b)if(c=b[d],d in Zc)null!=c?a.setAttribute(Zc[d],c):null===c&&a.removeAttribute(Zc[d]);
else switch(d){case "fontFamily":c=di[c]||c;null!=c?a.setAttribute("font-family",c):null===c&&a.removeAttribute("font-family");break;case "lineWidth":a.setAttribute("stroke-width",c);0>=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"lineColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",dc(c)):null===c&&a.removeAttribute("transform")}}};var p=yc.prototype=Yc.mixin({},Xh,Zh),ei={Bitmap:"image",Group:"g",
Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ia(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,i=this,k=this.svg,l={},m={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=k[b],!c&&
!f.detach&&("DOMElement"===h?(c=k[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=k[b]=u(ei[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete k[b],b=f[h],c=k[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(m[g]||(m[g]=[])).push(b),l[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!ec&&"Group"===h&&function gf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&gf(c,c._filterSignature),c._fillColorSignature&&i.applyFillColor(c,
c._fillColorSignature,b),c._strokeColorSignature&&i.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&i.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&k.attr(c._root||c,f.attributes)}for(g in m){c=m[g];a=[];for(e=0;b=c[e++];)f=l[b],(b=l[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=k[f.parent]){h=f.prev;c=k[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=k[h.id],
c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,k[f.next])}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.fillColor,f=d.fillGradient,g=d.filters||[];!ec&&!e&&g&&b._fillColorSignature&&(e=b._fillColorSignature);g.length?this.applyFilters(b,g):null===g&&b._filterSignature&&this.removeFilters(b);"clip"===c.offStageType&&(d.fillImage=null,f=d.fillGradient=null,e=d.fillColor=4294967295);
d.clipId?(g=d.clipId+"_offStageParent",(b._clip=this.svg[g])?b._clip!==this.svg[g]&&b._clip.n++:(b._clip=this.svg[g]=this.svg.defs.appendChild(u("mask")),b._clip.id=this._genDefUID(),b._clip._clipId=g,b._clip.n=1),b.setAttribute("mask","url(#"+b._clip.id+")")):null===d.clipId&&this.removeClip(b);d.maskId?this.applyMask(b,d):null===d.maskId&&this.removeMask(b);null!=d.visible&&(b.style.visibility=d.visible?"":"hidden");if("Path"===a||"Text"===a||"TextSpan"===a)d.fillImageId||f&&(e||d.fillRepeat&&"1,1"!==
d.fillRepeat.join())?$h?this.applyWebkitFills(b,c):this.applyFills(b,c.attributes):f?this.applyFillGradient(b,f,d.matrix):null!=e&&this.applyFillColor(b,e),"fillImageId"in d&&!d.fillImageId&&this.removeFillImage(b),"lineColor"in d&&this.applyStrokeColor(b,d.lineColor,"",d.lineWidth),"lineGradient"in d&&this.applyStrokeGradient(b,d.lineGradient,"",d.lineWidth)};p.drawPath=function(a,b){var c=b.data;c&&a.setAttribute("d",ci(c,!0))};p.drawBitmap=function(a,b){var c=b.attributes;a.setAttribute("preserveAspectRatio",
"none");var d=c.naturalWidth,e=c.naturalHeight,f=e/d;null!=c.source&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",bc.assets[b.id].src);null==c.width&&null==c.height&&(c.width=d,c.height=e);null==c.height&&(c.height=(c.width||0)*f);null==c.width&&(c.width=(c.height||0)/f);c.height&&a.setAttribute("height",c.height);c.width&&a.setAttribute("width",c.width)};p.drawTextSpan=function(a,b){var c=b.attributes;a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");a.setAttribute("alignment-baseline",
"inherit");!1!==c.selectable?cc.add(a,"selectable"):cc.remove(a,"selectable");c.glyphx?a.setAttribute("x",c.glyphx.join(" ")):null===c.glyphx&&a.removeAttribute("x");c.glyphy?a.setAttribute("y",c.glyphy.join(" ")):null===c.glyphy&&a.removeAttribute("y");if(a._text!==c.text){for(;a.firstChild;)a.removeChild(a.firstChild);a._text=c.text;a.appendChild(document.createTextNode(c.text))}};p.drawText=function(a,b){var c=b.attributes;!1!==c.selectable?cc.add(a,"selectable"):cc.remove(a,"selectable");a.setAttributeNS("http://www.w3.org/1999/xlink",
"text-anchor","start");null!=c.textOrigin&&a.setAttribute("alignment-baseline","top"===c.textOrigin?"hanging":"");a.style.textAnchor="start"};p.drawVideo=function(a,b){var c=b.attributes,d=b.id,e=bc.assets[d];if("undefined"===typeof e)throw Error("asset <"+d+"> is unkown.");var d=c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");
e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml","body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&
a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,De):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,De));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&
!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);a._filterSignature&&this.removeFilters(a)};p.removeFilters=function(a){var b=
a._filterSignature,c=this.definitions[b];c&&(1<c.n?c.n--:(this.svg.defs.removeChild(c.element),delete this.definitions[b]),delete a._filterSignature)};p.removeFillImage=function(a){if((a=a._pattern)&&a._fillImage)a.removeChild(a._fillImage),delete this.svg[a._fillImage._fillImageId],delete a._fillImage};p.removeGradient=function(a,b){var c=a["_"+b+"GradientSignature"],d=this.definitions[c];d&&(1<d.n?d.n--:(this.svg.defs.removeChild(d.element),delete this.definitions[c]),delete a["_"+b+"GradientSignature"])};
p.removeClip=function(a){var b=a._clip;b&&(1<b.n?b.n--:(this.svg.defs.removeChild(b),delete this.svg[b._clipId]),a.removeAttribute("mask"),delete a._clip)};p.removeMask=function(a){var b=a._mask;b&&(1<b.n?b.n--:(this.svg.defs.removeChild(b),delete this.svg[b._maskId]),a.removeAttribute("mask"),delete a._mask)};p.destroy=function(){var a=this.svg;Pd.forEach(function(b){a.root.removeEventListener(b,this,!1)},this);document.removeEventListener("keyup",this,!1);document.removeEventListener("keydown",
this,!1);document.removeEventListener("keypress",this,!1);clearInterval(this._fpsInterval);a.root.parentNode&&a.root.parentNode.removeChild(a.root);delete this.svg};p._genDefUID=function(){return"def-"+ +new Date+"-"+(this.__defID=this.__defID?this.__defID+1:1)};p.applyFillColor=function(a,b,c){return this.applyColor("fill",a,b,c)};p.applyStrokeColor=function(a,b,c,d){null!=b?0<d||+a.getAttribute("stroke-width")?this.applyColor("stroke",a,b,c):this.applyColor("data-stroke",a,b,c):null===b&&(a.removeAttribute("stroke"),
a.removeAttribute("data-stroke"))};p.applyStrokeGradient=function(a,b,c,d){null!=b?0<d||+a.getAttribute("stroke-width")?this.applyGradient("stroke",a,b,b.matrix,c):this.applyGradient("data-stroke",a,b,b.matrix,c):null===b&&(a.removeAttribute("stroke"),a.removeAttribute("data-stroke"))};p.applyColor=function(a,b,c,d){d=b._filterSignature||d;b["_"+a+"ColorSignature"]=c;c=Ia(c);!ec&&d&&(d=Ce(d,"colorMatrix"))&&c.setColorMatrix(d.split(","));b.setAttribute(a,c.rgba())};p.applyFillGradient=function(a,
b,c,d){return this.applyGradient("fill",a,b,c,d)};p.applyGradient=function(a,b,c,d,e){var e=b._filterSignature||e,f,g,h,i,k,l,d=c.stops,m=ai(c),j="_"+a+"GradientSignature";!ec&&e&&(e=Ce(e,"colorMatrix"))&&(f=e.split(","));if(!f&&m in this.definitions)e=this.definitions[m],b[j]!==m&&(e.n++,b[j]=m,b.setAttribute(a,"url(#"+e.element.id+")"));else{if(b[j])if(e=this.definitions[b[j]],1<e.n)e.n--;else{delete this.definitions[b[j]];for(g=e.element;e=g.firstChild;)g.removeChild(e)}b[j]=m;switch(c.type){case "linear-gradient":if(isNaN(c.direction))j=
c.direction;else if(e=360-c.direction-270,0>e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform",dc(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());k=0;for(l=d.length;k<l;++k)h=d[k],e=u("stop"),
i=f?Ia(h[0]).setColorMatrix(f):Ia(h[0]),e.setAttribute("offset",h[1]+"%"),e.setAttribute("stop-color",i.rgb()),e.setAttribute("stop-opacity",i.a()),g.appendChild(e);g.setAttribute("x1",j[0]);g.setAttribute("y1",j[1]);g.setAttribute("x2",j[2]);g.setAttribute("y2",j[3]);break;case "radial-gradient":g||(g=u("radialGradient"),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());g.setAttribute("gradientTransform",
dc(c.matrix));k=0;for(l=d.length;k<l;++k)h=d[k],e=u("stop"),i=f?Ia(h[0]).setColorMatrix(f):Ia(h[0]),e.setAttribute("offset",h[1]+"%"),e.setAttribute("stop-color",i.rgb()),e.setAttribute("stop-opacity",i.a()),g.appendChild(e);g.setAttribute("cx","0%");g.setAttribute("cy","0%");g.setAttribute("r",c.radius);g.setAttribute("fx",c.fx);g.setAttribute("fy",c.fy)}this.svg.defs.appendChild(g);b.setAttribute(a,"url(#"+g.id+")");this.definitions[m]={n:1,element:g}}};p.applyWebkitFills=function(a,b){var c,d,
e=b.attributes,f=this.svg,g=f.defs,h=e.fillColor,i=e.fillGradient,k=(d=a._friend)&&d._fillImage,l=d&&d._fillGradient,j=d&&d._fillColor,n=!(d&&d._pattern);f.root.appendChild(a);n&&(c=a.getBBox(),d=function(a,b,c,d){var e=u("g",a);b[a]=e;d.tx+=c.x;d.ty+=c.y;e.setAttribute("transform",dc(d));return e}(b.id,f,c,e.matrix),function(b,c,e){b=u("mask");b.id=c;e.appendChild(b);d._pattern=b;d.setAttribute("mask","url(#"+c+")");b.appendChild(a)}(d,this._genDefUID(),g),a._friend=d,e.matrix.tx=-1*c.x,e.matrix.ty=
-1*c.y,a.setAttribute("fill","rgba(255, 255, 255, 1)"),a._friend=d);!k&&e.fillImageId&&(k=d._fillImage=u("g"),k._fillImageId=e.fillImageId+"_offStageParent",f[k._fillImageId]=k);!l&&i&&(c||(c=a.getBBox()),l=d._fillGradient=u("rect"),l.setAttribute("x",0),l.setAttribute("y",0),l.setAttribute("width",c.width),l.setAttribute("height",c.height));h&&(j=d._fillColor=u("rect"),j.setAttribute("x",0),j.setAttribute("y",0),j.setAttribute("width",c.width),j.setAttribute("height",c.height),j._fillColorSignature!==
h?this.applyFillColor(j,h):0!==j._fillColorSignature&&this.applyFillColor(j,0));i&&(this.applyFillGradient(l,i,e.matrix),d._fillGradientSignature=l._fillGradientSignature);n&&(j&&d.appendChild(j),l&&d.appendChild(l),k&&d.appendChild(k))};p.applyFills=function(a,b){var c,d=this.svg.defs,e=b.fillRepeat,f=e&&e[0]||1,e=e&&e[1]||1,g=b.fillColor,h=b.fillGradient,i=a._pattern,k=i&&i._fillImage,j=i&&i._fillGradient,m=i&&i._fillColor,n=!i;this.svg.root.appendChild(a);n&&(c=a.getBBox(),i=a._pattern=u("pattern"),
m=i._fillColor=u("rect"),i.setAttribute("patternUnits","objectBoundingBox"),i.setAttribute("patternContentUnits","userSpaceOnUse"),i.setAttribute("width",1/f),i.setAttribute("height",1/e),i.setAttribute("x",0),i.setAttribute("y",0),m.setAttribute("width",c.width/f),m.setAttribute("height",c.height/e),m.setAttribute("x",0),m.setAttribute("y",0));!j&&h&&(c||(c=a.getBBox()),j=i._fillGradient=u("rect"),j.setAttribute("width",c.width/f),j.setAttribute("height",c.height/e),j.setAttribute("x",0),j.setAttribute("y",
0));!k&&b.fillImageId&&(k=i._fillImage=u("g"),k._fillImageId=b.fillImageId+"_offStageParent",this.svg[k._fillImageId]=k);g?m._fillColorSignature!==g&&this.applyFillColor(m,g):0!==m._fillColorSignature&&this.applyFillColor(m,0);h&&(this.applyFillGradient(j,h,b.matrix),i._fillGradientSignature=j._fillGradientSignature);n&&(i.appendChild(m),j&&i.appendChild(j),k&&i.appendChild(k),i.id=this._genDefUID(),a.setAttribute("fill","url(#"+i.id+")"),d.appendChild(i))};p.applyFilters=function(a,b){var c,d;d=
"filter:"+b.map(function(a){return bi(a)}).join();if(d in this.definitions)c=this.definitions[d],a._filterSignature!==d&&(c.n++,a._filterSignature=d,a.setAttribute("filter","url(#"+c.element.id+")"));else{a._filterSignature&&(c=this.definitions[a._filterSignature],1<c.n?c.n--:(c.element.parentNode.removeChild(c.element),a.removeAttribute("filter"),delete this.definitions[a._filterSignature]));var e=u("filter");e.id=this._genDefUID();b.forEach(function(a){e.setAttribute("height",10);e.setAttribute("width",
10);e.setAttribute("x",-5);e.setAttribute("y",-5);a=Be.create(a.type,a.value);if(Yc.isArray(a))for(var b=0,c=a.length;b<c;b++)e.appendChild(a[b]);else e.appendChild(a)});this.svg.defs.appendChild(e);a.setAttribute("filter","url(#"+e.id+")");a._filterSignature=d;this.definitions[d]={n:1,element:e}}};p.applyMask=function(a,b){var c=b.maskId+"_offStageParent",d=this.svg;(a._mask=d[c])?a._mask!==d[c]&&a._mask.n++:(a._mask=d[c]=d.defs.appendChild(u("mask")),a._mask.id=this._genDefUID(),a._mask._maskId=
c,a._mask.n=1);a.setAttribute("mask","url(#"+a._mask.id+")")};p.getOffset=function(){var a,b=this.svg.root.getBoundingClientRect();if(isNaN(b.left)||isNaN(b.top))a=this.svg.root.getScreenCTM(),b.left=a.e,b.top=a.f;return b};p._setupFPSLog=function(a){var b="function"===typeof a;!0!==a||b||(b||this.render([{parent:0,id:0.5,type:"Text",attributes:{matrix:{a:1,b:0,c:0,d:1,tx:10,ty:20}}}]),this._fpsInterval=setInterval(Yc.hitch(this,function(){var c=this.getFPS();b?a(c):(this.render([{id:0.6,parent:0.5,
type:"TextSpan",attributes:{text:c+"FPS",textFillColor:255,fontFamily:"Arial"}}]),this.svg.root.appendChild(this.svg[0.5]))}),1E3))};p._logFrame=function(){(this._frameTimes||(this._frameTimes=[])).push(+new Date)};p.getFPS=function(){for(var a=this._frameTimes,b=0,c=+new Date-1E3,d=a.length;d--&&!(a[d]<c);)++b;this._frameTimes=a.slice(d);return b};yc.Svg=xc;qb.module$exports=yc;qb.module$exports&&(qb=qb.module$exports);var ra={},Qd=L,fi=ba,gi=W,fc=n,Lb=fc.descriptorData,sg=fc.descriptorAccessor,
tg=fc.getter("_source"),gc=zc.prototype=fc.mixin(Object.create(Qd.prototype),fi);gc.request=function(a){if("undefined"===typeof a)return this._request;this._loader.request(this,this._request=new gi(a),this.type)};gc.clone=function(){return new zc(this._loader,this.attr("source"))};gc.notify=function(a,b){switch(a){case "load":this._attributes._naturalWidth=b.width;this._attributes._naturalHeight=b.height;this._mutatedAttributes.naturalWidth=!0;this._mutatedAttributes.naturalHeight=!0;this.emitAsync("load",
this);this.markUpdate();break;case "error":this.emitAsync("error",Error(b.error),this)}return this};gc.getComputed=function(a){var b,c="size"===a&&{top:0,right:0,bottom:0,left:0},d=this._attributes._naturalWidth,e=this._attributes._naturalHeight,f=this.attr("width"),g=this.attr("height"),h=d/e,d=f||(null!=g?h*g:d)||0,e=g||(null!=f?f/h:e)||0;"width"===a||"right"===a?b=d:c&&(c.right=c.width=d);"height"===a||"bottom"===a?b=e:c&&(c.bottom=c.height=e);if("top"===a||"left"===a)b=0;return c||b};ra.module$exports=
zc;ra.module$exports&&(ra=ra.module$exports);var rb={},hi=W,ug=0,Ee=Rd.prototype=Object.create(w);Ee._load=function(){this._loader.request(this,new hi({id:this.fontId,resources:this.resources}),"Font")};Ee.notify=function(a,b){switch(a){case "load":this.emitAsync("load",this);break;case "error":this.emitAsync("error",Error(b.error),this)}return this};rb.module$exports=Rd;rb.module$exports&&(rb=rb.module$exports);var J={},ii=T,Qa=gb,hc=Ca,Pa=L,Aa=n,$c=z,za=ca,Td=ra,Q=Aa.descriptorAccessor,G=Aa.descriptorData,
ic=Aa.getter,Ra=Aa.isArray,Sd=$c.parse,ji=hc.exportToPath,Pg=hc.validTokens,ki=hc.parsePath,li=hc.parseCommandList,mi=Math.abs,Fe=Math.cos,Ge=Math.PI,He=2*Ge,Ie=Math.sin,Ng=ic("_lineColor"),Lg=ic("_cap"),Mg=ic("_join"),Og=ic("_miterLimit"),ad=Pa.prototype,o=Mb.prototype=Object.create(ad);o._activate=function(a){var b=ad._activate.apply(this,arguments),c=this._attributes._fillImage;c&&Pa.registerOffStageObj(this,c,a,"fillImage");this.markUpdate("shapeData");return b};o.markUpdate=function(a){"shapeData"===
a&&(this._isPathDataMutated=!0);return ad.markUpdate.call(this)};o.clone=function(a){for(var b=-1,c=this._segments,d=c.length,e=Array(d),f=new Mb;++b<d;)e[b]=c[b].slice();a&&a.attributes&&f.attr(this.attr());return f.segments(e)};o.segments=function(a){if(0===arguments.length)return this._segments.slice().map(function(a){return a.slice()});if(Ra(a)){if(Ra(a[0]))var b=a.concat,a=b.call.apply(b,a)}else if("string"==typeof a)a=arguments;else throw new TypeError("Invalid parameter: "+a);this._segments=
li(a);this.markUpdate("shapeData");return this};o.points=function(a){if("undefined"==typeof a)return this._segments.map(function(a){return a.slice(-2)}).filter(Boolean);for(var a=Ra(a)?a:arguments,b=0,c,d,e=a.length;b<e;b+=2)c=a[b],d=a[b+1],b?this.lineTo(c,d):this.clear().moveTo(c,d);this.markUpdate("shapeData");return this};o.path=function(a){var b=this._segments;if("undefined"==typeof a)return ji(b);if("string"==typeof a)return this._segments=ki(a),this.markUpdate("shapeData"),this;throw new TypeError("Invalid parameter: "+
a);};o.moveTo=function(a,b){if(!isFinite(a)||!isFinite(b))throw TypeError("moveTo needs two finite arguments");this._segments.push(["moveTo",a,b]);this.markUpdate("shapeData");return this};o.moveBy=function(a,b){if(!isFinite(a)||!isFinite(b))throw TypeError("moveBy needs two finite arguments");this._segments.push(["moveBy",a,b]);this.markUpdate("shapeData");return this};o.closePath=function(){this._segments.push(["closePath"]);this.markUpdate("shapeData");return this};o.lineTo=function(a,b){if(!isFinite(a)||
!isFinite(b))throw TypeError("lineTo needs two finite arguments");this._segments.push(["lineTo",a,b]);this.markUpdate("shapeData");return this};o.lineBy=function(a,b){if(!isFinite(a)||!isFinite(b))throw TypeError("lineBy needs two finite arguments");this._segments.push(["lineBy",a,b]);this.markUpdate("shapeData");return this};o.verticalLineTo=function(a){return this.lineTo(this.lastPoint()[0],a)};o.verticalLineBy=function(a){return this.lineBy(0,a)};o.horizontalLineTo=function(a){var b=this.lastPoint();
return this.lineTo(a,b[1])};o.horizontalLineBy=function(a){return this.lineBy(a,0)};o.curveTo=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.curveBy=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");
this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a,b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");
return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?He-d:e;e=mi(f-g);d=a+c*Fe(g);g=b+c*Ie(g);e<He?(a+=c*Fe(f),b+=c*Ie(f)):(a=d,b=g-1.0E-4);return this[this._segments.length?"lineTo":"moveTo"](d,g).arcTo(c,c,0,e<Ge?0:1,1,a,b)};o.boundingBox=function(){throw"Not implemented";};o.pointAtLength=function(){throw"Not implemented";};o.clear=function(){this._segments.length=0;this._curve.clear();return this};o.fill=function(a){if("string"===typeof a||"number"===typeof a||a instanceof $c.RGBAColor)return this.attr("fillColor",
a);if(a instanceof za.LinearGradient||a instanceof za.RadialGradient)return this.attr("fillGradient",a);if(a instanceof Td)return this.attr("fillImage",a);throw Error('A fill of "'+a+'" is not supported');};o.line=function(a,b){b&&this.attr("lineWidth",b);if("string"===typeof a||"number"===typeof a||a instanceof $c.RGBAColor)return this.attr("lineColor",a);if(a instanceof za.LinearGradient||a instanceof za.RadialGradient)return this.attr("lineGradient",a);throw Error('A fill of "'+fill+'" is not supported');
};o.lastSegment=function(){var a=this._segments.slice(-1);if("undefined"!=typeof a[0])return a};o.lastPoint=function(){var a,b,c,d,e,f,g,h=0,i=0,k=!1;a=this._segments.slice(-1)[0];if(/To/.test(a[0]))return a.slice(-2);f=this._segments;for(g=f.length;0<g--;){a=f[g];b=a[0];c=a.length;d=k?/moveTo/:/To/;e=k?/moveBy/:/By/;if(d.test(b))return[a[c-2]+h,a[c-1]+i];/close/.test(b)?k=!0:e.test(b)&&(h+=a[c-2],i+=a[c-1])}throw Error("Could not find a point.");};o.type="Path";o._getRenderData=function(){if(this._isPathDataMutated){for(var a,
b,c,d=[],e=this._segments,f=0,g=e.length;f<g;f++){b=e[f];c=[];for(var h=0,i=b.length;h<i;h++)a=b[h],c.push(h&&a instanceof ii?[a.x,a.y]:a);d.push(c)}this._isPathDataMutated=!1;return d}};o.toCurves=function(a){this._segments=Qa.toCurves(this._segments,a)};o.morphTo=function(a,b,c){this.toCurves();a.toCurves();var d=Qa.countSubPaths(this._segments),e=Qa.countSubPaths(a._segments),f=d.length>e.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),
h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Mb.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var i,k,j,m=f;m<
b;m++){e.push(f=[]);i=a[m];j=i.length;k=i[0];if(/By/.test(k))switch(f[0]=k.replace(/By/,"To"),k){case "arcBy":f[1]=i[1];f[2]=i[2];f[3]=i[3];f[4]=i[4];f[5]=i[5];f[6]=i[6]+g;f[7]=i[7]+h;break;case "verticalLineBy":f[1]=i[1]+h;break;case "horizontalLineBy":f[1]=i[1]+g;break;case "moveBy":c=i[1]+g,d=i[2]+h;default:for(k=1;k<j;k++)f[k]=i[k]+(k%2?g:h)}else for(k=0;k<j;k++)f[k]=i[k];switch(f[0]){case "closePath":g=c;h=d;break;case "horizontalLineTo":g=f[1];break;case "verticalLineTo":h=f[1];break;case "moveTo":c=
f[f.length-2],d=f[f.length-1];default:g=f[f.length-2],h=f[f.length-1]}}return e};o.getComputed=function(a){for(var b={top:0,right:0,bottom:0,left:0,width:0,height:0},c=Qa.toCurves(this.attr("segments").slice()),d=!0,e=Math.max,f=Math.min,g=0,h;h=c[g];g+=1)if("closePath"!==h[0])for(var i=1,k=h.length;i<k;i+=2){var j=h[i],m=h[i+1];b.top=d?m:f(b.top,m);b.right=d?j:e(b.right,j);b.bottom=d?m:e(b.bottom,m);b.left=d?j:f(b.left,j);d=!1}j=this.attr("x");m=this.attr("y");b.top+=m;b.right+=j;b.bottom+=m;b.left+=
j;b.width=b.right-b.left;b.height=b.bottom-b.top;return"size"===a?b:b[a]};J.module$exports=Mb;J.module$exports&&(J=J.module$exports);var M={},Ac=J,Rg=n,bd=Ud.prototype=Object.create(Ac.prototype),Je=Ac.prototype.attr;bd.attr=function(a,b){var c=arguments.length;return!this._isProcessingPathAttribute&&1===c&&"string"!==typeof a?(this._isProcessingPathAttribute=!0,Je.call(this,a),this.clear(),this._make(),this._isProcessingPathAttribute=!1,this):Je.apply(this,arguments)};bd.morphTo=function(){throw Error("SpecialAttrPath's are not morphable");
};bd._make=function(){};M.module$exports=Ud;M.module$exports&&(M=M.module$exports);var sb={},Ke=J,Vd=M;Ke.arc=function(a,b,c,d,e,f){return(new Ke((new Bc(a,b,c,d,e,f)).segments())).attr({x:a,y:b})};var Le=Math.PI,Me=2*Le,Ne=Math.sin,Oe=Math.cos,ni=Math.abs;(Bc.prototype=Object.create(Vd.prototype))._make=function(){var a=this._attributes,b=a.radius,c=a.startAngle,d=a.endAngle,e=a.antiClockwise,e=!!e,f,a=e?d:c;f=e?Me-c:d;d=ni(f-a);c=b*Oe(a);a=b*Ne(a);d<Me?(e=b*Oe(f),f=b*Ne(f)):(e=c,f=a-1.0E-4);return this.moveTo(c,
a).arcTo(b,b,0,d<Le?0:1,1,e,f)};sb.module$exports=Bc;sb.module$exports&&(sb=sb.module$exports);var tb={},Pe=J,Wd=M;Pe.circle=function(a,b,c){return(new Pe((new Cc(a,b,c)).segments())).attr({x:a,y:b})};(Cc.prototype=Object.create(Wd.prototype))._make=function(){var a=this._attributes.radius;this.moveTo(a,0).arcTo(a,a,0,0,0,-a,0).arcTo(a,a,0,0,0,a,0)};tb.module$exports=Cc;tb.module$exports&&(tb=tb.module$exports);var ub={},Qe=J,Xd=M;Qe.ellipse=function(a,b,c,d){return(new Qe((new Dc(a,b,c,d)).segments())).attr({x:a,
y:b})};(Dc.prototype=Object.create(Xd.prototype))._make=function(){var a=this._attributes,b=a.radiusX,a=a.radiusY;this.moveTo(b,0).arcTo(b,a,0,0,0,-b,0).arcTo(b,a,0,0,0,b,0)};ub.module$exports=Dc;ub.module$exports&&(ub=ub.module$exports);var Ja={},Re=J,Yd=M;Re.polygon=function(a,b,c,d){return(new Re((new Ec(a,b,c,d)).segments())).attr({x:a,y:b})};var oi=2*Math.PI,pi=Math.sin,qi=Math.cos;(Ec.prototype=Object.create(Yd.prototype))._make=function(){var a=this._attributes,b=a.x,c=a.y,d=a.sides,a=a.radius;
if(!(3<=d))throw RangeError("A polygon needs at least 3 sides.");d>>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;b<d;b++)c=oi*b/d,this.lineTo(pi(c)*a,-qi(c)*a);this.closePath()};Ja.module$exports=Ec;Ja.module$exports&&(Ja=Ja.module$exports);var vb={},Se=J,Zd=M;Se.rect=function(a,b,c,d,e){return(new Se((new Fc(a,b,c,d,e)).segments())).attr({x:a,y:b})};(Fc.prototype=Object.create(Zd.prototype))._make=function(){var a=this._attributes,b=a.width,c=a.height,d=a.cornerRadius,e,f;d?(e=d[0]||d,f=d[1]||
d,a=d[2]||d,d=d[3]||d,this.moveTo(0,e).arcBy(e,e,0,0,1,e,-e).lineBy(b-e-f,0).arcBy(f,f,0,0,1,f,f).lineBy(0,c-f-a).arcBy(a,a,0,0,1,-a,a).lineBy(-(b-d-a),0).arcBy(d,d,0,0,1,-d,-d)):this.moveTo(0,0).lineBy(b,0).lineBy(0,c).lineBy(-b,0);this.closePath()};vb.module$exports=Fc;vb.module$exports&&(vb=vb.module$exports);var wb={},Te=J,$d=M,ri=Ja;Te.star=function(a,b,c,d,e){return(new Te((new Gc(a,b,c,d,e)).segments())).attr({x:a,y:b})};(Gc.prototype=Object.create($d.prototype))._make=function(){var a=this._attributes,
b=a.x,c=a.y,d=0|a.rays,e=a.factor,a=a.radius;if(!(3<=d))throw RangeError("A star needs at least 3 rays.");this.segments((new ri(b,c,a,d)).segments());var b=this.segments(),c=b[0],f,g=[c.slice()];if(!(0<=e||0>e)){f=b[d/2-0.5|0];var e=c[2],h=f[1],i=f[2];f=b[1];var j=(0+f[1])/2,e=j*h*-a/((e+f[2])/2*h-j*i+j*e)/j}for(a=0;a<d;a++)f=b[(a+1)%d],g.push(["lineTo",(c[1]+f[1])/2*e,(c[2]+f[2])/2*e],f),c=f;f[0]="closePath";f.length=1;this.segments(g)};wb.module$exports=Gc;wb.module$exports&&(wb=wb.module$exports);
var xb={},si=ra,Hc=ea,ti=ba,Ue=n,be=Ue.descriptorData,cd=ae.prototype=Ue.mixin(Object.create(Hc.prototype),ti);cd._load=function(){for(var a=this,b=this.sources,c=0,d=b.length;c<d;++c)new si(this._loader,b[c],function(b,c){b?a.emit("error",c):a._bitmapLoaded(this)})};cd._bitmapLoaded=function(a){this.addChild(a);this._children.length==this.sources.length&&this.emit("load",this._children)};cd.composeRenderMessage=function(a){var a=Hc.prototype.composeRenderMessage.call(this,a),b=this._children[this.currentBitmapIndex];
this._children.forEach(function(a){a.type="bitmap_hidden"});a.attributes=this.attr();a.attributes.source=b.attr("source");a.attributes.height=b.getComputed("height");a.attributes.width=b.getComputed("width");a.type="Bitmap";a.id=b.id;return a};xb.module$exports=ae;xb.module$exports&&(xb=xb.module$exports);var yb={},ce=L,ui=ba,vi=W,Ve=n,Jc=Ve.descriptorData,jc=Ic.prototype=Ve.mixin(Object.create(ce.prototype),ui);jc.request=function(a){if("undefined"===typeof a)return this._request;this._loader.request(this,
this._request=new vi(a),this.type)};jc.clone=function(){return new Ic(this._loader,this._request)};jc.notify=function(a,b){switch(a){case "load":this.attr({width:b.width,height:b.height});this.emitAsync("load",this);break;case "error":this.emitAsync("error",Error(b.error))}return this};jc.getComputed=function(a){var b,c="size"===a&&{top:0,right:0,bottom:0,left:0};"width"===a||"right"===a?b=this.attr("width")||0:c&&(c.right=c.width=this.attr("width")||0);"height"===a||"bottom"===a?b=this.attr("height")||
0:c&&(c.bottom=c.height=this.attr("height")||0);if("top"===a||"left"===a)b=0;return c||b};yb.module$exports=Ic;yb.module$exports&&(yb=yb.module$exports);var Ka={module$exports:"0.3.1"};Ka.module$exports&&(Ka=Ka.module$exports);var zb={},dd=n,We=V;zb.module$exports={version:Ka,AssetController:Ha,RendererController:pb,defaultRunnerOptions:{},_addDefaultRunnerOptions:function(a){var b=this.defaultRunnerOptions,c;for(c in b)c in a||(a[c]=b[c])},_baseUrl:null,baseUrl:function(){return this._baseUrl||(this._baseUrl=
We.parse(dd.baseUri(document)))},createRenderer:function(a,b,c,d){d||(d={});this._addDefaultRunnerOptions(d);var e=this.baseUrl();d.baseUrl="baseUrl"in d?e.resolveUri(d.baseUrl).toString():e.toString();"assetBaseUrl"in d&&(d.assetBaseUrl=e.resolveUri(d.assetBaseUrl).toString());"url"in d&&(d.url=e.resolveUri(d.url).toString());dd.isArray(d.urls)&&(d.urls=dd.forEach(d.urls,function(a,b,c){c[b]=e.resolveUri(a).toString()}));var f=new this.RunnerContext(this.runnerUrl,"undefined"===typeof document?null:
document,d.baseUrl),a=new this.Renderer(a,b,c,d.allowEventDefaults,d.fpsLog),b=new this.AssetController;return new this.RendererController(a,b,f,d)},run:function(a,b,c){b&&"string"!=typeof b?c=b:(c||(c={}),c.url=b);b=this._getSize(a,c.width,c.height);a=this.createRenderer(a,b.width,b.height,c);a.initRenderer();return a},setup:function(a){"runnerContext"in a&&(this.RunnerContext=a.runnerContext);"runnerUrl"in a&&(this.runnerUrl=a.runnerUrl);"baseUrl"in a&&(this._baseUrl=We.parse(a.baseUrl));return this},
_getSize:function(a,b,c){var d;if(!b||!c)a?(d=a.ownerDocument.defaultView,d=d.getComputedStyle(a,null),b||(b=a.clientWidth-parseInt(d.paddingLeft)-parseInt(d.paddingRight)),c||(c=a.clientWidth-parseInt(d.paddingLeft)-parseInt(d.paddingRight))):b=c=0;return{width:b,height:c}}};zb.module$exports&&(zb=zb.module$exports);var Ab={},wi=RegExp("\\b"+Ka.replace(/[\\^$*+?.()|{}[\]]/g,"\\$1")+"\\b"),kc=RegExp.prototype.test;Ab.module$exports={chooseRunnerUrl:function(a,b){var a=Nb(a,kc,/(?:^|\/)bonsai.*\.js(?:$|\?|#)/i),
c=0,d=0,e=Nb(a,kc,wi);b&&(c=Nb(a,kc,b),d=Nb(e,kc,b));return d[0]||c[0]||e[0]||a[0]}};Ab.module$exports&&(Ab=Ab.module$exports);var Bb={},Xe=n,xi=w,yi=ib,zi=T,Ai=J,Bi=M,Ci=vb,Di=Ja,Ei=wb,Fi=ub,Gi=tb,Hi=sb,Ii=ra,Ji=L,Ki=ea,Li=pa,Mi=Ea,Ni=Ba,Oi=rb,Pi=aa,Qi=xb,Ri=z,Si=ca,Ti=jb,Ui=Fa,Vi=yb,Wi=oa,Xi=hb,Yi=Ka;Bb.module$exports=function(a,b){var c=this.exports={DOMElement:Xi,DisplayObject:Ji,Group:Ki,Matrix:Pi,Point:zi,Path:Ai,SpecialAttrPath:Bi,Rect:Ci,Polygon:Di,Star:Ei,Ellipse:Fi,Circle:Gi,Arc:Hi,Text:Ti,
TextSpan:Ui,color:Ri,tools:Xe,gradient:Si,easing:Ni,filter:Wi,stage:a,version:Yi};this.assetLoader=b;c.Animation=ma(Li,[a]);c.KeyframeAnimation=ma(Mi,[a]);c.Bitmap=ma(Ii,[b]);c.FontFamily=ma(Oi,[b]);c.Movie=ma(yi,[a]);c.Sprite=ma(Qi,[b]);c.Video=ma(Vi,[b]);c.bonsai=c;c.env=c.environment=Xe.mixin({windowHeight:0,windowWidth:0,windowScrollX:0,windowScrollY:0,offsetX:0,offsetY:0},xi)};Bb.module$exports&&(Bb=Bb.module$exports);var Cb={},Zi=w,$i=na,aj=z,bj=Da,Db=n,Sg=Sb,ee=Ya,fe=Bb,cj=Xa,lc=V,Lc=Db.hitch;
Kc.prototype={_isFrozen:!0,assetBaseUrl:new lc(null,null,""),height:Infinity,width:Infinity,destroy:function(){clearInterval(this._interval);return this},freeze:function(){clearInterval(this._interval);this._isFrozen=!0;return this},handleEvent:function(a){var b=a.command,a=a.data;switch(b){case "options":this.setOptions(a);break;case "play":case "stop":case "freeze":case "unfreeze":this[b](a);break;case "assetLoadSuccess":this.assetLoader.handleEvent("load",a.id,a);break;case "assetLoadError":this.assetLoader.handleEvent("error",
a.id,a);break;case "userevent":if(b=a.targetId?this.registry.displayObjects[a.targetId]:this)a=a.event,a.target=b,cj(a).emitOn(b);break;case "env":Db.mixin(this.env.exports.env,a);this.env.exports.env.emit("change",a);break;case "message":this.emit("message",a);break;case "canRender":this._canRender=!0,this.postFrames()}},loadAsset:function(a,b,c,d){a||(a=this.assetBaseUrl);Db.forEach(c.resources,function(b){var c=lc.parse(b.src);"data"!==c.scheme&&(b.src=a.resolveUri(c).toString())});this.post({command:"loadAsset",
data:{id:b,type:d,request:c}})},loadSubMovie:function(){},getSubMovieEnvironment:function(a,b){b=this.assetBaseUrl.resolveUri(b);a.url=b.toString();return new fe(a,(new ee(this.registry.pendingAssets)).on("request",Lc(this,this.loadAsset,b)))},loop:function(){this.emitFrame();for(var a=this.registry,b=Db.removeValueFromArray(a.movies.movies),c=[this],d,e,f=0;f<d||f<(d=b.length);){if(e=b[f])e.emitFrame(),c.push(e);f+=1}this.emit("subMoviesAdvanced");f=0;for(d=c.length;f<d;++f)c[f].incrementFrame();
b=this._queuedFramesById;c=this._queuedFrames;d=a.displayObjects;e=a.needsDraw;var f=a.needsInsertion,g;for(g in e){var h=e[g],i=b[g];if(d[g]){a=h.composeRenderMessage?h.composeRenderMessage(c[i]):a={id:+g};if(g in f){delete f[g];var j=h.next;a.next=j&&j.id;a.parent=h.parent.id}h.emit("render");delete a.detach}else h=de(h),a={id:+g,detach:!0},h.length&&(a.children=h);delete e[g];0<=i?c[i]=a:b[g]=c.push(a)-1}this.emit("exitFrame");this.postFrames()},post:function(a){this.messageChannel.notifyRenderer(a);
return this},postFrames:function(){var a=this._queuedFrames;this._canRender&&a.length&&(this._canRender=!1,this._queuedFramesById={},this._queuedFrames=[],this.post({command:"render",data:a,frame:this.currentFrame}))},sendMessage:function(a){return this.post({command:"message",data:a})},setFramerate:function(a){if(a){var b=this._isFrozen;this.freeze();this.framerate=Math.abs(a|0);b||this.unfreeze()}},setOptions:function(a){this.options=a;this.baseUrl=lc.parse(a.baseUrl);this.assetBaseUrl=lc.parse(a.assetBaseUrl||
a.url||a.urls&&a.urls[0]||a.baseUrl);this.setFramerate(a.framerate||30);this.width=+a.width||Infinity;this.height=+a.height||Infinity;return this},setRendering:function(a){"crispEdges"===a&&this.post({command:"renderConfig",data:{item:"crispEdges",value:!0}})},setBackgroundColor:function(a){this.post({command:"renderConfig",data:{item:"backgroundColor",value:aj.parse(a)}})},unfreeze:function(){this._isFrozen&&(this._interval=setInterval(Lc(this,this.loop),1E3/this.framerate),this._isFrozen=!1)}};
Db.mixin(Kc.prototype,Zi,$i,bj);Cb.module$exports=Kc;Cb.module$exports&&(Cb=Cb.module$exports);var Eb={},dj=Cb,ej=Pb,Ye=n;Eb.module$exports=function(a){"console"in self||(self.console={log:function(){try{a.notifyRenderer({command:"debug",data:[].map.call(arguments,function(a){return"function"==typeof a?""+a:a})})}catch(b){a.notifyRenderer({command:"debug",data:"Error logging argument: ("+b+")"})}}});var b=ej(function(a,b){try{importScripts(a),b(null)}catch(c){console.log(">>ERROR WORKER",c)}});self.load=
function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new dj(a),d=c.env.exports;Ye.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,Ye.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a=
this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,i=[],j=[];h.root=this;for(var l in g)i.push(l),j.push(g[l]);Tg(a,function(a){i.push(a);Function.apply(null,i).apply(h,j);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Eb.module$exports&&(Eb=Eb.module$exports);var ed={},fd=zb,fj=Za,gj=Eb,hj=ob,ij=qb,Ze=n,jj=Ab;if("undefined"!=typeof importScripts){var mc,$e=function(a){mc.notify(a.data)};mc=new fj(function(a){postMessage(a)},
function(){removeEventListener("message",$e);mc=null});addEventListener("message",$e);gj(mc)}else{window.bonsai=fd;var kj=Ze.map(document.getElementsByTagName("script"),function(a){return a.src});fd.Renderer=ij;fd.setup({baseUrl:Ze.baseUri(document),runnerContext:hj,runnerUrl:jj.chooseRunnerUrl(kj)||"bonsai.js"})}ed.module$exports&&(ed=ed.module$exports)})();