-
Notifications
You must be signed in to change notification settings - Fork 0
/
bonsai-0.4.0.min.js
300 lines (291 loc) · 133 KB
/
bonsai-0.4.0.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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
/*
(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
- phantom-jasmine: Apache 2 - https://github.com/jcarver989/phantom-jasmine/issues/8
- closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING
- qc.js: https://github.com/darrint/qc.js/blob/master/COPYING
External resources (each with their own license):
- cinematicBoomNorm(ogg/mp3/m4a): http://creativecommons.org/licenses/by/3.0/
http://www.freesound.org/people/HerbertBoland/sounds/33637/
*/
(function __bonsaiRunnerCode__(){function ua(a){if(!(this instanceof ua))return new ua(a);this.name="ParserError";this.message=a[0]}function Z(a,b){this.x=a||0;this.y=b||0}function Pb(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 If(){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 Jf(a){var b=this.type,c=Kf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&
a)}function Lf(){this._isStopped=!0}function od(a,b){var c,d,e,f=[],g=!0,h=[],j=a&&a.length||0,b=b||O;if(0===j)return[];for(var i,k,l=0;l<j;l++){k=a[l];if(g){g=!1;f=[];c=b[k];if("undefined"===typeof c){if("undefined"===typeof i)throw new Oa.ParserError(['Unknown command: "'+k+'"']);c=b[i];l--}else i=k;f.push(i);d=c.attributes.slice(0)}else switch(c=d.shift(),e=+k,c){case "B":if(0!=e&&1!=e)throw new Oa.ParserError(['Invalid parameter for command "'+i+'", expected 0 or 1 but got "'+k+'".']);f.push(e);
break;case "N":if(isNaN(e))throw new Oa.ParserError(['Invalid parameter for command "'+i+'", expected numeric but got "'+k+'".']);f.push(e);break;case "P":if(isNaN(e))throw new Oa.ParserError(['Could not create Point from String for command "'+i+'", expected numeric but got "'+k+'".']);f.push(e);e=+a[++l];if(isNaN(e))throw new Oa.ParserError(['Could not create Point from String for command "'+i+'", expected numeric but got "'+a[l]+'".']);f.push(e)}0===d.length&&(g=!0,h.push(f))}return h}function $(a,
b){a=$.parse(a,b);return null===a?a:new Qb(a>>24&255,a>>16&255,a>>8&255,(a>>0&255)/255)}function Qb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,j,i,k,l=ka(e,f,g);j=la(e,f,g);i=(j+l)/2;if(l==j)h=j=0;else{k=l-j;j=0.5<i?k/(2-l-j):k/(l+j);switch(l){case e:h=(f-g)/k+(f<g?6:0);break;case f:h=(g-e)/k+2;break;case g:h=(e-f)/k+4}h/=6}this._properties={r:a||0,g:b||0,b:c||0,a:null==d?1:d,h:h,s:j,l:i}}function ma(a){return function(b){return 0<arguments.length?this.set(a,b):this.get(a)}}function wc(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 pd(a,b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*wc(d,b,a+1/3),e=255*wc(d,b,a),a=255*wc(d,b,a-1/3);return na(c)<<24|na(e)<<16|na(a)<<8}function xc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function qd(a){this.pendingAssets=a}function rd(a,b){this.disconnect=b;this.notifyRenderer=a}function sd(a,b){this.runnerUrl=a;this.doc=b}function S(a){return Mf.mixin({},a)}function t(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 td(a){for(var a=a||[],b,c=0,d=a.length;c<d;c+=1)if(b=a[c],Nf&&b instanceof window.SVGFEMergeElement||Of&&b instanceof window.SVGFEBlendElement||Pf&&b instanceof window.SVGFECompositeElement)return!0;return!1}function ud(a){return{setup:function(b){var c=vd(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 vd.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 wd(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=xd(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 xd.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 yd(a,b,c){if(null!=
a)if(a instanceof Qf.BaseFilter)if(zd.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=Ad(a.value[d]);c[u+b+"_"+d+"_r"]=f.r();c[u+b+"_"+d+"_g"]=f.g();c[u+b+"_"+d+"_b"]=f.b();c[u+b+"_"+d+"_a"]=f.a()}else c[u+b+"_"+d]=a.value[d];else c[u+b]=a.value;else c[u+b]=a}function r(a){return a instanceof r.LinearGradient||a instanceof r.RadialGradient?a:r.parse(a)}function M(){this._segments=[];this.requiredCurves=0;this.currentPoint=
new w(0,0);this.lastMoveTo=new w(0,0)}function yc(a,b,c,d,e,f,g,h,j){var f=!!f,g=!!g,i=e*aa/180,k=Rb(i),l=oa(c,2),m=oa(d,2),i=Sb(i),n=(a-h)/2,o=(b-j)/2,p=k*n+i*o,q=-i*n+k*o,r;r=oa(p,2);var s=oa(q,2),n=oa(n,2)/l+oa(o,2)/m;if(1<n)return c*=Tb(n),d*=Tb(n),yc(a,b,c,d,e,f,g,h,j);e=(l*m-l*s-m*r)/(l*s+m*r);0>e?(c/=d,e=s+r/oa(c,2),d=Tb(e),c*=d,q=f=0):(r=(f===g?-1:1)*Tb(e),f=r*c*q/d,q=-r*d*p/c);p=f*k-q*i+(a+h)/2;k=f*i+q*k+(b+j)/2;b=Bd((b-k)/d);j=Bd((j-k)/d);b=a<p?aa-b:b;j=h<p?aa-j:j;0>b&&(b=2*aa+b);0>j&&(j=
2*aa+j);g&&b>j&&(b-=2*aa);!g&&j>b&&(j-=2*aa);return{cx:p,cy:k,rx:c,ry:d,startAngle:b,endAngle:j}}function Cd(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=w.lerp(a,b,e),g=w.lerp(b,c,e),c=w.lerp(c,d,e),b=w.lerp(f,g,e),g=w.lerp(g,c,e),e=w.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function va(a,b,c,d){if(b instanceof va)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:Sf[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=Ub.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 zc(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.delay=d.delay&&a.toFrameNumber(d.delay)||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.addSubjects(d.subjects,d.strategy)}function Tf(){var a=this._matrix,
b=Dd(a.b,a.a),a=-Dd(a.c,a.d);return b>a?b:a}function Uf(a){if(Ac(a)){var a=+a%(2*Vf)||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 Wf(){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 Xf(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 Yf(){return this.matrix.tx}function Zf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix=!0}function $f(){return this.matrix.ty}function ag(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function bg(){return this._scaleX}function cg(a){Ac(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function dg(){return this._scaleY}function eg(a){Ac(a)&&
(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function fg(){return(this.scaleX+this.scaleY)/2}function gg(a){this.scaleX=this.scaleY=a}function hg(a){this._opacity=1<a?1:0>a?0:+a}function ig(){return this._origin.clone()}function jg(a){var b=this._origin;b.x=a.x;b.y=a.y}function kg(){return this._cursor}function lg(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function mg(){return this._filters.slice(0)}function ng(a){a?(a=[].concat(a),this._filters=
a=a.map(function(a){return a instanceof Ed.BaseFilter?a:new Ed[a]})):this._filters.length=0}function og(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&&F.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&F.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=
null}function pg(){return this._clip}function qg(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&&F.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&F.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function rg(){return this._mask}function F(){Object.defineProperty(this,
"id",{value:sg++});this._attributes=Object.create(null,{_owner:D(this),_matrix:D(new tg),matrix:G(Wf,Xf,!0),_filters:D([],!0),filters:G(mg,ng,!0),_opacity:D(1,!0),opacity:G(ug,hg,!0),_origin:D(new vg),origin:G(ig,jg,!0),rotation:G(Tf,Uf,!0),_scaleX:D(1,!0),_scaleY:D(1,!0),scale:G(fg,gg,!0),scaleX:G(bg,cg,!0),scaleY:G(dg,eg,!0),x:G(Yf,Zf,!0),y:G($f,ag,!0),clip:G(pg,og,!0),_clip:D(null,!0),_clipId:D(null,!0),mask:G(rg,qg,!0),_mask:D(null,!0),_maskId:D(null,!0),cursor:G(kg,lg,!0),_cursor:D(null,!0),
fillRule:D("inherit",!0),visible:D(!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=wa.mixin({},this._renderAttributes)}function wg(a){return-1!==this.indexOf(a)}function Fd(a){this.children=[];this.owner=a}function Gd(a){Hd.prototype._activate.call(this,a);for(var b=this.displayList.children,c=0,d=b.length;c<d;c+=1)b[c]._activate(a)}
function Id(){Hd.prototype._deactivate.call(this);for(var a=this.displayList.children,b=0,c=a.length;b<c;b+=1)a[b]._deactivate()}function Bc(a){a||(a=new xg);a.owner=this;this.displayList=a;Jd.call(this)}function Kd(a,b,c){Cc.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=Ld.mixin({},this._domAttributes);
this._mutatedCssStyles=Ld.mixin({},this._cssStyles)})}function yg(){return this._textFillColor}function zg(a){this._textFillColor=Md(a,this._textFillColor)}function Ag(){return this._textFillGradient}function Bg(a){a&&(this._textFillGradient=Cg(a))}function Dg(){return this._fontFamily}function Eg(a){this._fontFamily=a?a.fontId||a:null}function Fg(){return this._glyphx}function Gg(a){Pa.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function Hg(){return this._glyphy}function Ig(a){Pa.isArray(a)&&
(this._glyphy=a);a||(this._glyphy=null)}function Jg(a){this._textStrokeColor=Md(a,this._textStrokeColor)}function Nd(a){Od.call(this);a=""+a;Object.defineProperties(this._attributes,{text:E("",!0,!0),fontSize:E(null,!0,!0),fontFamily:xa(Dg,Eg,!0),_fontFamily:E(null,!0),fontStyle:E(null,!0,!0),fontWeight:E(null,!0,!0),_textFillColor:E(null,!0),textFillColor:xa(yg,zg,!0),_textFillGradient:E(null,!0),textFillGradient:xa(Ag,Bg,!0),textFillOpacity:E(1,!0,!0),_glyphx:E(null,!0),_glyphy:E(null,!0),glyphx:xa(Fg,
Gg,!0),glyphy:xa(Hg,Ig,!0),textLineOpacity:E(1,!0,!0),_textStrokeColor:E(null,!0),textStrokeColor:xa(Kg,Jg,!0),textStrokeWidth:E(null,!0,!0),selectable:E(!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",strokeOpacity:"textLineOpacity",strokeColor:"_textStrokeColor",strokeWidth:"textStrokeWidth",
opacity:"_opacity",text:"text",selectable:"selectable"};null!=a&&this.attr("text",a)}function Lg(){return this._textFillColor}function Mg(a){this._textFillColor=Pd(a,this._textFillColor)}function Ng(){return this._textFillGradient}function Og(a){a&&(this._textFillGradient=Pg(a))}function Qg(){return this._fontFamily}function Rg(a){this._fontFamily=a?a.fontId||a:null}function Sg(a){this._textStrokeColor=Pd(a,this._textStrokeColor)}function Tg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+
a}function Ug(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function Vg(a){1<=a&&(this._miterLimit=+a)}function Wg(a){this._owner.clear();this._owner.addChild(new Dc(a))}function Xg(){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 Qd(a){Rd.call(this);Object.defineProperties(this._attributes,{fontSize:B(16,!0,!0),fontFamily:ba(Qg,Rg,!0),_fontFamily:B("monospace",!0),fontStyle:B("normal",!0,!0),fontWeight:B("normal",!0,
!0),_cap:B("butt",!0),cap:ba(Yg,Tg,!0),_textFillColor:B(255,!0),textFillColor:ba(Lg,Mg,!0),_textFillGradient:B(null,!0),textFillGradient:ba(Ng,Og,!0),textFillOpacity:B(1,!0,!0),textLineOpacity:B(1,!0,!0),_join:B("miter",!0),join:ba(Zg,Ug,!0),_textStrokeColor:B(255,!0),textStrokeColor:ba($g,Sg,!0),textStrokeWidth:B(0,!0,!0),_miterLimit:B(4,!0),miterLimit:ba(ah,Vg,!0),text:ba(Xg,Wg,!0),textOrigin:B("top",!0,!0),selectable:B(!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.strokeColor="_textStrokeColor";b.fillGradient="_textFillGradient";b.fillOpacity="textFillOpacity";b.strokeOpacity="textLineOpacity";b.join="_join";b.strokeWidth="textStrokeWidth";b.miterLimit="_miterLimit";b.selectable="selectable";b.textOrigin="textOrigin";null!=a&&this.attr("text",a)}function T(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 Qa(a,b,c){this.timeoutDuration=c||Qa.DEFAULT_TIMEOUT;this.request=a instanceof Sd?a:new Sd(a);this.resources=this.request.resources;this.resourcesExpectedLength=this.resources.length;this.resourcesLoaded=0;this.id=b;this.assetData={};this.resourceLoadSuccess=Ra.hitch(this,"resourceLoadSuccess");this.resourceLoadError=Ra.hitch(this,"resourceLoadError")}function Vb(){Ec.apply(this,arguments)}function Td(){Ud.apply(this,arguments)}function Fc(){Vd.apply(this,arguments)}function P(){Wd.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 Gc(){Xd.apply(this,arguments)}function ca(){}function Yd(a,b,c){this.runnerUrl=a;this.baseUrl=c}function Zd(a,b,c,d){this.renderer=a;this.assetController=b;this.runnerContext=c;this._movieOptions=this._cleanOptions(d);this.baseUrl=bh.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",Sa.hitch(this,this.postAsync,"canRender"));c.init(d)}function v(a,b){if(!a)throw TypeError("Invalid tag name: "+a);var c=($d[a]||($d[a]=document.createElementNS("http://www.w3.org/2000/svg",a))).cloneNode(!1);(b||0===b)&&c.setAttribute("data-bs-id",b);return c}function Hc(a,b,c){var d=this.root=this[0]=
v("svg",0),e=this.rootContainer=document.createElement("div");e.style.paddingLeft="0";e.style.paddingTop="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(v("defs"));e.appendChild(d);a.appendChild(e)}function Ic(a,b,c,d,e){this.width=b;this.height=c;this.allowEventDefaults=!!d;var f=this.svg=new Hc(a,b,c);this.definitions=Object.create(null);ae.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 be(a,b,c){a&&(this._loader=a);this._request=null;ce.call(this);c&&this.bindAssetCallback(c)}function ch(){return this._time}function dh(a){a=+a;"number"===typeof a&&!isNaN(a)&&isFinite(a)&&(this._time=a)}function eh(){return this._volume}function fh(a){null!=a&&(this._volume=Math.min(Math.max(+a,
0),1))}function Jc(a,b,c,d){d||(d={});de.call(this,a,b,c);this.type="Audio";Object.defineProperties(this._attributes,{playing:Wb(!!d.autoplay,!0,!0),prepareUserEvent:Wb(!1,!0,!0),volume:ee(eh,fh,!0),_volume:Wb(1,!0,!0),time:ee(ch,dh,!0),_time:Wb(0,!0,!0)});a=this._renderAttributes;a.playing="playing";a.volume="_volume";a.time="_time";a.prepareUserEvent="prepareUserEvent";this.request(b)}function gh(a){this._source=a;this._owner.request(a)}function Kc(a,b,c){fe.call(this,a,b,c);this.type="Bitmap";
Object.defineProperties(this._attributes,{height:za(null,!0,!0),width:za(null,!0,!0),_naturalWidth:za(0,!0,!0),_naturalHeight:za(0,!0,!0),source:hh(ih,gh,!0),_source:za("",!0,!0),_absoluteUrl:za("",!0,!0)});a=this._renderAttributes;a.height="height";a.width="width";a.naturalHeight="_naturalHeight";a.naturalWidth="_naturalWidth";a.absoluteUrl="_absoluteUrl";this.attr("source",b)}function ge(a,b,c){Object.defineProperty(this,"id",{value:"font_"+jh++});this._loader=a;this.fontId=b;this.resources=c;this._load()}
function he(a,b,c,d){ie.call(this,null,b,c);d||(d=new kh);d.owner=this;this.displayList=d;this.root=a;var e=this;b&&a.loadSubMovie(b,function(a){a?e.emitAsync("error",a,e):e.emitAsync("load",e)},this)}function lh(){return this._fillColor}function mh(a){this._fillColor=je(a,this._fillColor)}function nh(){return this._fillGradient}function oh(a){this._fillGradient=a?Aa(a):null}function ph(){return this._fillImage}function qh(a){var b=this._owner;b._mutatedAttributes.fillImageId=!0;a?(b.stage&&Ta.registerOffStageObj(b,
a,b.stage,"fillImage"),this._fillImageId=a.id,this._fillImage=a):(this._fillImage&&Ta.unregisterOffStageObj(b,this._fillImage),this._fillImageId=this._fillImage=null)}function rh(){return this._fillRepeat}function sh(a){var b=Ba.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 th(a){this._strokeColor=je(a,this._strokeColor)}function uh(){return this._strokeGradient}function vh(a){this._strokeGradient=
a?Aa(a):null}function wh(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function xh(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function yh(a){1<=a&&(this._miterLimit=+a)}function zh(){return this._owner._segments}function Ah(a){this._owner._segments=a;this._owner.markUpdate("shapeData")}function Xb(a){Ta.call(this);Object.defineProperties(this._attributes,{_cap:H("butt",!0),cap:Q(Bh,wh,!0),_fillColor:H(0,!0),fillColor:Q(lh,mh,!0),_fillGradient:H(void 0,!0),fillGradient:Q(nh,
oh,!0),_fillImage:H(null,!0),_fillImageId:H(null,!0),fillImage:Q(ph,qh,!0),_fillRepeat:H([1,1],!0),fillRepeat:Q(rh,sh,!0),fillOpacity:H(1,!0,!0),strokeOpacity:H(1,!0,!0),_join:H("miter",!0),join:Q(Ch,xh,!0),_strokeColor:H(255,!0),strokeColor:Q(Dh,th,!0),_strokeGradient:H(void 0,!0),strokeGradient:Q(uh,vh,!0),strokeWidth:H(0,!0,!0),_miterLimit:H(4,!0),miterLimit:Q(Eh,yh,!0),segments:Q(zh,Ah,!0)});var b=this._renderAttributes;b.cap="_cap";b.fillColor="_fillColor";b.strokeColor="_strokeColor";b.strokeGradient=
"_strokeGradient";b.fillGradient="_fillGradient";b.fillImageId="_fillImageId";b.fillRepeat="_fillRepeat";b.fillOpacity="fillOpacity";b.strokeOpacity="strokeOpacity";b.join="_join";b.strokeWidth="strokeWidth";b.miterLimit="_miterLimit";this.morphableAttributes={x:1,y:1,segments:1,fillColor:1,strokeColor:1,strokeWidth:1,fillOpacity:1,strokeOpacity:1,opacity:1,fillGradient:1,scale:1,scaleX:1,scaleY:1,rotation:1,filters:1};this._segments=[];this._curve=new Ua;this._mutatedAttributes=Ba.mixin({},this._renderAttributes);
if(a){b=Va(a)?Va(a[0])?a[0][0]:a[0]:a;if(-1!=Fh.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 Gh(a,b){var c=b;return Hh.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 ke(a){Lc.call(this);this._isProcessingPathAttribute=!1;for(var b in a)Object.defineProperty(this._attributes,b,Gh(b,a[b]))}function Mc(a,b,c,d,e,f){le.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 Nc(a,b,c){me.call(this,{radius:0});this.attr({x:a,y:b,radius:c})}function Oc(a,b,c,d){ne.call(this,{radiusX:0,radiusY:0});this.attr({x:a,y:b,radiusX:c,
radiusY:d})}function Pc(a,b,c,d){oe.call(this,{radius:0,sides:3});this.attr({x:a,y:b,sides:d,radius:c})}function Qc(a,b,c,d,e){pe.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 Rc(a,b,c,d,e){qe.call(this,{radius:0,rays:0,factor:0});this.attr({x:a,y:b,radius:c,rays:d,factor:e})}function re(a,b,c){se.call(this);this._loader=a;this._callback=c;this.sources=b;this.currentBitmapIndex=0;c&&Ih.prototype.bindAssetCallback.call(this,
c);Object.defineProperties(this._attributes,{height:te(0,!0,!0),width:te(0,!0,!0)});this._load()}function Sc(a,b,c,d){d||(d={});ue.call(this,a,b,c);this.type="Video";Object.defineProperties(this._attributes,{height:Tc(d.height,!0,!0),width:Tc(d.width,!0,!0),autoplay:Tc(d.autoplay||!1,!0,!0)});a=this._renderAttributes;a.height="height";a.width="width";a.autoplay="autoplay";this.request(b)}function da(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 ve(a){var b=[];if(a)for(var a=a.children,c,d=0;c=a[d];++d)b.push(c.id),(c=c.displayList)&&b.push.apply(b,ve(c));return b}function we(a,b){var c=this.registry=new Jh;b||(b=new Kh);b.owner=this;this.displayList=b;c=this.assetLoader=(new xe(c.pendingAssets)).on("request",Yb(this,this.loadAsset,null)).on("destroy",Yb(this,this.destroyAsset));this.env=new ye(this,c);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 Lh(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 Wa={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())}}}};Wa.module$exports&&(Wa=Wa.module$exports);var Xa={},ze={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(ze,"random",{get:function(){return 16777215*Math.random()<<8|255}});Xa.module$exports=ze;Xa.module$exports&&(Xa=Xa.module$exports);
var Ya={};ua.prototype=Error();ua.prototype.constructor=ua;Ya.module$exports={ParserError:ua};Ya.module$exports&&(Ya=Ya.module$exports);var U={},Ae=Math.sqrt,I=Z.prototype;I.add=function(a){this.x+=a.x;this.y+=a.y;return this};I.equals=function(a){return this.x==a.x&&this.y==a.y};I.clone=function(){return new Z(this.x,this.y)};I.normalize=function(a){Ae(this.x*this.x+this.y*this.y);a/=this.length;this.x*=a;this.y*=a;return this};I.offset=function(a,b){this.x+=a;this.y+=b;return this};I.subtract=function(a){this.x-=
a.x;this.y-=a.y;return this};I.divide=function(a){this.x/=a;this.y/=a;return this};I.multiply=function(a){this.x*=a;this.y*=a;return this};I.toString=function(){return this.x+","+this.y+" "};I.toObject=function(){return Object.create(null,{x:{value:this.x},y:{value:this.y}})};I.toArray=function(){return[this.x,this.y]};I.distance=function(a){var b=this.x-a.x,a=this.y-a.y;return Ae(b*b+a*a)};Z.interpolate=function(a,b,c){return new Z(a.x+c*(a.x-b.x),a.y+c*(a.y-b.y))};Z.polar=function(a,b){return new Z(a*
Math.cos(b),a*Math.sin(b))};Z.lerp=function(a,b,c){return a.clone().multiply(1-c).add(b.clone().multiply(c))};U.module$exports=Z;U.module$exports&&(U=U.module$exports);var Za={},Mh={}.hasOwnProperty,Uc={filterToSignature:function(a){return a.type+"("+a.value+")"},gradientToSignature:function(a){switch(a.type){case "linear-gradient":return"linear-gradient"+[a.direction,a.stops,Uc.matrixToString(a.matrix),a.spreadMethod].join(":");case "radial-gradient":return"radial-gradient"+[a.cx,a.cy,a.radius,a.stops,
Uc.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,Mh.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],""))}}}}()};Za.module$exports=Uc;Za.module$exports&&(Za=Za.module$exports);var Zb={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}}}};Zb.module$exports&&(Zb=Zb.module$exports);var Ca={},$b={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-$b.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?$b.bounceIn(2*a)/2:$b.bounceOut(2*a-1)/2+0.5}};Ca.module$exports=$b;Ca.module$exports&&(Ca=Ca.module$exports);var $a={},Be={BaseFilter:function(a,
b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){Be[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d?d:a}}};$a.module$exports=Be;$a.module$exports&&($a=$a.module$exports);var ea={},Ce=U,Nh=Math.cos,Oh=Math.sin;Pb.prototype={clone:function(){return new Pb(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 Ce(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=Nh(a),a=Oh(a);return this.concat(new Pb(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 Ce(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}};ea.module$exports=Pb;ea.module$exports&&(ea=ea.module$exports);var ab={},Ph=ea;ab.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 Ph},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}}};ab.module$exports&&(ab=ab.module$exports);var ac={module$exports:function(){return{displayObjects:Object.create(null),loadingDisplayObjects:Object.create(null),movies:new If,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};ac.module$exports&&(ac=ac.module$exports);var bb={},Kf={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};bb.module$exports=function(a){a.emitOn=Jf;a.stop=Lf;return a};bb.module$exports&&(bb=bb.module$exports);var Da={},Oa=Ya,O={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"]}},De={},J;for(J in O)O.hasOwnProperty(J)&&O[J].shorthands.forEach(function(a){De[a]=J});var Ee={};for(J in O)O.hasOwnProperty(J)&&(Ee[J]=O[J].shorthands[0]);var bc=[];for(J in O)O.hasOwnProperty(J)&&
(bc.push(J),bc=bc.concat(O[J].shorthands));Da.module$exports={validTokens:bc,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,function(a,d,e){b.push(De[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return od(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,j=c.length;h<j;h++)d=c[h],e.push("string"==typeof d?Ee[d]:d)}e=e.join(" ");return b&&"M"!==e.slice(0,1)?"M 0 0 "+
e:e},parseCommandList:od};Da.module$exports&&(Da=Da.module$exports);var o={},Fe={}.hasOwnProperty,Qh=[].indexOf,Ge=function(){},Rh=[].push,Sh=[].slice,Th={}.toString,cc={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){Ge.prototype=a;return new Ge},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=cc.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=cc.hitch(c,b));for(var d in a)if(Fe.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=Sh.call(arguments,2),d=c.length;"string"==typeof b&&(b=a[b]);return c?function(){c.length=d;Rh.apply(c,arguments);return b.apply(a,c)}:function(){return b.apply(a,
arguments)}},indexOf:function(a,b,c){return Qh.call(a,b,c)},isArray:Array.isArray||function(a){return"[object Array]"==Th.call(a)},keys:Object.keys||function(a){if(a!==Object(a))throw TypeError();var b=[],c;for(c in a)Fe.call(a,c)&&b.push(c);return b},map:function(a,b,c){var d=a.length,e=Array(d);c&&(b=cc.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}};o.module$exports=cc;o.module$exports&&(o=o.module$exports);var A={},He=Xa,ka=Math.max,la=Math.min,Uh=Math.random,na=Math.round;$.RGBAColor=Qb;var s=Qb.prototype;s.red=s.r=
ma("r");s.green=s.g=ma("g");s.blue=s.b=ma("b");s.alpha=s.a=ma("a");s.hue=s.h=ma("h");s.saturation=s.s=ma("s");s.lightness=s.l=ma("l");s.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=pd(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};s.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return na(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+a);}};s.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};s.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};s.midpoint=function(a){a=$(a);return new Qb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/
2,(this.a()+a.a())/2)};s.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",la(255,ka(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",la(255,ka(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",la(255,ka(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",la(1,ka(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};s._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?ka(0,la(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ka(0,la(1,b*c+d-c/2)):b)}return this};s.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],Uh(),b);return c};s.clone=function(a){return a?$(+this).set(a):$(+this)};s.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};s.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};s.hsla=function(){return"hsla("+[na(360*
this.h()),na(100*this.s())+"%",na(100*this.l())+"%",this.a()].join()+")"};s.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};s.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)};$.parse=function(a,b){var c,a=""+a;a in He&&(a=He[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=pd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==
b?null:$.parse(b)};A.module$exports=$;A.module$exports&&(A=A.module$exports);var z={},Vh=o,Vc="".split,Wc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof xc,e=typeof c;if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new xc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Vc.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 xc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{},j=-1,i=Vc.call(a," "),k=i.length;++j<k;){d=!1;g=h[":"+i[j]]||[];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&&Vc.call(a," ")||(c=!1,Vh.keys(b)),e=a.length;++d<e;)(b[c?":"+a[d]:a[d]]||[]).length=0;return this}};Wc.on=Wc.addListener;
z.module$exports=Wc;z.module$exports&&(z=z.module$exports);var cb={},Wh=z,Xh=o,Yh=qd.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)},destroyAsset:function(a){this.emit("destroy",a.id)}};Xh.mixin(Yh,Wh);cb.module$exports=qd;cb.module$exports&&(cb=cb.module$exports);var Ea={};rd.prototype=o.mixin({destroy:function(){this.removeAllListeners();this.disconnect();
this.disconnect=this.notifyRenderer=null},notify:function(a){this.emit("message",a)}},z);Ea.module$exports=rd;Ea.module$exports&&(Ea=Ea.module$exports);var db={},Xc=o;sd.prototype=Xc.mixin({MessageChannel:Ea,destroy:function(){this.notifyRunner({command:"freeze"});this.messageChannel.destroy();delete this.messageChannel;this.removeAllListeners();var a=this.frame;a.contentDocument.documentElement.innerHTML="";a.parentNode.removeChild(a);delete this.frame},init:function(a){var b=this.doc||document,
c=this.frame=b.createElement("iframe");(b.body||b.documentElement).appendChild(c);c.style.display="none";b=this.frameWindow=c.contentWindow;c=this.frameDocument=c.contentDocument;c.open();this.messageChannel=b.messageChannel=new this.MessageChannel(Xc.hitch(this,this.notify),function(){});b.options=a;b.isBonsaiMovie=!0;var d=this;this.messageChannel.on("message",function(a){"scriptLoaded"===a.command&&d.emit("scriptLoaded",a.url)});-1<this.runnerUrl.indexOf("function __bonsaiRunnerCode__")?(a=this.runnerUrl.substring(this.runnerUrl.indexOf("{")+
1,this.runnerUrl.lastIndexOf("}")),c.write("<script>"+a+"<\/script>")):c.write('<script src="'+this.runnerUrl+'"><\/script>');c.close();this.doc=this.init=null;return this},notify:function(a){this.emit("message",a)},notifyRunner:function(a){this.messageChannel.notify(a)},notifyRunnerAsync:function(a){setTimeout(Xc.hitch(this,this.notifyRunner,a),1)},run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript",url:a})}},z);db.module$exports=
sd;db.module$exports&&(db=db.module$exports);var eb={},Mf=o,Zh="undefined"==typeof document?!1:"createTouch"in document;eb.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),j=a.type,i=document.elementFromPoint(a.pageX,a.pageY),k=i?this._getIdOfTarget(i):0;d.touchId=a.identifier;d.touchIndex=a.index;switch(j){case "touchstart":b.startX=e;b.startY=f;d=S(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=S(d);d.type=c+"drag";this.emit("userevent",d,h);d=S(d);d.type=c+"pointermove";this.emit("userevent",d,k);break;case "touchend":if(d=S(d),d.type=c+"pointerup",this.emit("userevent",d,h),g!==i&&(d=S(d),this.emit("userevent",d,k)),!b.touchMoveHappened)d=S(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=
{}),a=a.type,e,f;if(c&&c.length)for(var g=0,h=c.length;g<h;++g)f=c[g],e=f.identifier,f.type=a,f.index=b.indexOf(f),e=d[e]||(d[e]={}),this.handleSingleTouch(f,e,!0),0===g&&this.handleSingleTouch(f,e,!1)},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],j=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;e.diffX=f-j[0];e.diffY=g-j[1];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=S(e)).type="pointermove";this.emit("userevent",e,c);(e=S(e)).type="multi:pointermove";this.emit("userevent",e,c);c=this._dragId;d="drag";e.diffX=f-j[0];e.diffY=g-j[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.shiftKey=a.shiftKey;e.inputValue=a.target.value}this._lastEventPos=[f,g];e.type=d;this.emit("userevent",e,c);!Zh&&/drag|pointerup|pointerdown|pointermove/.test(d)&&(e=S(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}}};eb.module$exports&&(eb=eb.module$exports);var fb={},Ie=A,$h=[].unshift,ai=[].push,bi=[].concat,gb="undefined"!==typeof window,ci=gb&&"SVGFEDropShadowElement"in window,Nf=gb&&"SVGFEMergeElement"in window,Of=gb&&"SVGFEBlendElement"in window,Pf=gb&&"SVGFECompositeElement"in window,
dc={blur:function(a){return t("feGaussianBlur",{stdDeviation:a})},brightness:function(a){var b=t("feComponentTransfer");["R","G","B"].forEach(function(c){t("feFunc"+c,{type:"linear",slope:a},b)});return b},contrast:function(a){var b=-(0.5*a+0.5),c=t("feComponentTransfer");["R","G","B"].forEach(function(d){t("feFunc"+d,{type:"linear",slope:a,intercept:b},c)});return c},innerShadowByAngle:function(a){var b=a[0],c=a[1];return this.innerShadowByOffset([c*Math.cos(b),c*Math.sin(b),a[2],a[3]])},innerShadowByOffset:function(a){var b=
a[0],c=a[1],d=a[2],e=Ie(a[3]),a=[],b=t("feOffset",{dx:b,dy:c,result:"offset"});a.push(b);d=t("feGaussianBlur",{stdDeviation:d,"in":"offset",result:"blur"});a.push(d);d=t("feComposite",{"in":"SourceGraphic",in2:"blur",operator:"out",result:"composite1"});a.push(d);e=t("feFlood",{"flood-color":e.rgb(),"flood-opacity":e.alpha(),"in":"composite1",result:"flood"});a.push(e);e=t("feComposite",{"in":"flood",in2:"composite1",operator:"in",result:"composite2"});a.push(e);e=t("feComposite",{"in":"composite2",
in2:"SourceGraphic",operator:"over",result:"composite3"});a.push(e);return a},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=Ie(a[3]),f=255===e.int32(),a=[];if(ci)return t("feDropShadow",{stdDeviation:d,dx:b,dy:c,"flood-color":e.rgb(),"flood-opacity":e.alpha()});d=t("feGaussianBlur",{stdDeviation:d,"in":"SourceAlpha",result:"blur"});a.push(d);f||(d=t("feFlood",{"flood-color":e.rgb(),
"flood-opacity":e.alpha(),"in":"blur",result:"flood"}),a.push(d));f=t("feComposite",{"in":f?"blur":"flood",in2:"blur",operator:"in",result:"composite1"});a.push(f);b=t("feOffset",{dx:b,dy:c,result:"offset"});a.push(b);b=t("feComposite",{"in":"SourceGraphic",in2:"offset",operator:"over",result:"composite2"});a.push(b);return a},grayscale:function(a){a=Math.min(1,Math.max(0,a));return dc.saturate(a)},hueRotate:function(a){a=Math.min(360,Math.max(0,a));return t("feColorMatrix",{type:"hueRotate",values:a})},
invert:function(a){var a=Math.min(1,Math.max(0,a)),b=1-a,c=t("feComponentTransfer");["R","G","B"].forEach(function(d){t("feFunc"+d,{type:"table",tableValues:a+" "+b},c)});return c},opacity:function(a){var a=Math.min(1,Math.max(0,a)),b=t("feComponentTransfer");t("feFuncA",{type:"table",tableValues:"0 "+a},b);return b},saturate:function(a){return t("feColorMatrix",{type:"saturate",values:1-a})},sepia:function(a){a=Math.min(1,Math.max(0,a));a=1-a;return t("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 t("feColorMatrix",{type:"matrix",values:a.join(" ")})}};fb.module$exports={create:function(a,b){return dc[a](b)},containsFlattenFilter:td,filterElementsFromList:function(a){for(var a=a||[],b,c=[],d=0,e=a.length;d<e;d+=1)b=a[d],"function"===typeof dc[b.type]&&(b=bi.call([],dc[b.type](b.value)),td(b)&&0<d?$h.apply(c,
b):ai.apply(c,b));return c},isFEColorMatrixEnabled:gb&&"SVGFEColorMatrixElement"in window};fb.module$exports&&(fb=fb.module$exports);var hb={},vd=A;hb.module$exports={strokeColor:ud("strokeColor"),fillColor:ud("fillColor")};hb.module$exports&&(hb=hb.module$exports);var ib={},xd=A;ib.module$exports={fillGradient:wd("fillGradient"),strokeGradient:wd("strokeGradient")};ib.module$exports&&(ib=ib.module$exports);var ec={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}}}};ec.module$exports&&(ec=
ec.module$exports);var pa={},n=$a,di=A;n.Blur=function(a){return new n.BaseFilter("blur",a,1)};n.createFactory("blur",n.Blur);n.Brightness=function(a){return new n.BaseFilter("brightness",a,2)};n.createFactory("brightness",n.Brightness);n.ColorMatrix=function(a){return new n.BaseFilter("colorMatrix",a,[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0])};n.createFactory("colorMatrix",n.ColorMatrix);n.Contrast=function(a){return new n.BaseFilter("contrast",a,2)};n.createFactory("contrast",n.Contrast);n.DropShadow=
function(a,b,c,d){d=di.parse(d,0);return/deg$/.test(a)?(a=Math.PI/180*parseFloat(a),new n.BaseFilter("dropShadowByAngle",[a,b,c,d],[0,0,0,255])):new n.BaseFilter("dropShadowByOffset",[a,b,c,d],[0,0,0,255])};n.createFactory("dropShadow",n.DropShadow);n.Grayscale=function(a){return new n.BaseFilter("grayscale",a,1)};n.createFactory("grayscale",n.Grayscale);n.HueRotate=function(a){return new n.BaseFilter("hueRotate",a,90)};n.createFactory("hueRotate",n.HueRotate);n.Invert=function(a){return new n.BaseFilter("invert",
a,1)};n.createFactory("invert",n.Invert);n.Opacity=function(a){return new n.BaseFilter("opacity",a,0.5)};n.createFactory("opacity",n.Opacity);n.Saturate=function(a){return new n.BaseFilter("saturate",a,5)};n.createFactory("saturate",n.Saturate);n.Sepia=function(a){return new n.BaseFilter("sepia",a,1)};n.createFactory("sepia",n.Sepia);pa.module$exports=n;pa.module$exports&&(pa=pa.module$exports);var jb={},zd=o,Qf=pa,Ad=A,u="filter_";jb.module$exports={filters:{setupTo:function(a){zd.isArray(a.filters)||
(a.filters=[a.filters]);for(var b=0,c=a.filters.length;b<c;b++)yd(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++)yd(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[u+b])this._filters[b].value=a[u+b],delete a[u+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 Ad.RGBAColor(a[u+b+"_"+d+"_r"],a[u+b+"_"+d+"_g"],a[u+b+"_"+d+"_b"],a[u+b+"_"+d+"_a"]));delete a[u+b+"_"+d+"_r"];delete a[u+b+"_"+d+"_g"];delete a[u+b+"_"+d+"_b"];delete a[u+b+"_"+d+"_a"];this._filters[b].value[d]=f}else this._filters[b].value[d]=a[u+b+"_"+d],delete a[u+b+"_"+d];a.filters=this._filters}}};jb.module$exports&&(jb=jb.module$exports);var fa={},kb=o,fc=A,ei=ea,Je={}.hasOwnProperty;r.DEFAULT_UNITS="boundingBox";r.LinearGradient=function(a,b,c,d){this.type="linear-gradient";
this.stops=b;this.matrix=c;this.direction=a;this.units=d};r.LinearGradient.prototype.clone=function(){var a=[];this.stops.forEach(function(b){a.push([b[0],b[1]])});return new r.LinearGradient(this.direction,a,this.matrix&&this.matrix.clone(),this.units)};r.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};r.RadialGradient.prototype.clone=function(){var a=[];this.stops.forEach(function(b){a.push([b[0],b[1]])});
return new r.RadialGradient(a,this.radius,this.matrix&&this.matrix.clone(),this.units,this.fx,this.fy)};r._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};r._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}};r.linear=function(a,b,c){return r.advancedLinear(a,b,null,c)};r.radial=function(a,b,c,d,e){return r.advancedRadial(a,(b||50)+"%",new ei(1,0,0,1,null==c?0.5:c/100,null==d?0.5:d/100),e)};r.advancedLinear=function(a,b,c,d,e){var e=e||r.DEFAULT_UNITS,f=parseFloat(a);kb.isArray(a)?f=a:isNaN(f)&&(f=fi[a]);if(!kb.isArray(b)){var a=[],g;for(g in b)Je.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 kb.isArray(a)?[fc.parse(a[0]),a[1]]:[fc.parse(a)]});r._fillOffsets(b);d&&(b=r._repeat(b,d));return new r.LinearGradient(f,b,c,e)};r.advancedRadial=function(a,b,c,d,e,f,g){e=e||r.DEFAULT_UNITS;f=f||0;g=g||0;b=null==b?"50%":b;if(!kb.isArray(a)){var h=[],j;for(j in a)Je.call(a,j)&&h.push([a[j],parseFloat(j)]);a=h;a.sort(function(a,b){return a[1]-b[1]})}a=a.map(function(a){return kb.isArray(a)?[fc.parse(a[0]),a[1]]:[fc.parse(a)]});r._fillOffsets(a);d&&(a=r._repeat(a,d));return new r.RadialGradient(a,
b,c,e,f,g)};r.parse=function(a){var b=a.match(/(linear)-gradient\((.+)\)$/);if(b&&"linear"===b[1])return r.parseLinearGradient(b[2]);throw Error("Invalid gradient: "+a);};var fi={top:0,right:90,bottom:180,left:270,"top left":315,"top right":45,"bottom left":225,"bottom right":135};r.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 r.linear(c||d,f)};fa.module$exports=r;fa.module$exports&&(fa=fa.module$exports);var lb={},w=U,Ke=o,Yc=Math.abs,Bd=Math.asin,gi=Math.ceil,Rb=Math.cos,aa=Math.PI,oa=Math.pow,Tb=Math.sqrt,Sb=Math.sin,hi=Math.tan,C=M.prototype;C.clear=function(){this._segments.length=0};C._push=function(){var a=[].slice.call(arguments);a.from=this.currentPoint.clone();a.lastMoveTo=this.lastMoveTo.clone();this._segments.push(a);return this};
C.moveTo=function(a,b){this._push("moveTo",a,b);this.currentPoint=new w(a,b);this.lastMoveTo=new w(a,b);return this};C.moveBy=function(a,b){var c=this.currentPoint;return this.moveTo(c.x+a,c.y+b)};C.closePath=function(){this._push("closePath");this.currentPoint=this.lastMoveTo.clone();return this};C.lineTo=function(a,b){var c=this.currentPoint;this._push("curveTo",c.x,c.y,a,b,a,b);this.currentPoint=new w(a,b);return this};C.lineBy=function(a,b){var c=this.currentPoint;return this.lineTo(c.x+a,c.y+
b)};C.curveTo=function(a,b,c,d,e,f){this._push("curveTo",a,b,c,d,e,f);this.currentPoint=new w(e,f);return this};C.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)};C.arcTo=function(a,b,c,d,e,f,g){var h,j,i=this.currentPoint.x,k=this.currentPoint.y,b=yc(i,k,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;j=gi(Yc(h)/(aa/2));h/=j;for(var l=0;l<j;++l){var m=m||i,n=n||k,o=e+h*l,p=o+h,q=4/3*hi((p-o)/4),r=
c+a*Rb(p),s=d+b*Sb(p),t=m+q*a*-Sb(o),o=n+q*b*Rb(o),u=r+q*a*Sb(p),p=s+q*b*-Rb(p),m=r,n=s;this._push("curveTo",t,o,u,p,r,s)}this.currentPoint=new w(f,g);return this};C.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)};C.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 w(c,d);return this};C.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)};C.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 w(c,d);b.lastMoveTo=e?e.lastMoveTo.clone():new w(0,0);this._segments.splice(a+1,0,b);return this};C.splitCurve=function(a){var b,c,d=this._segments[a],e=[];if(!d||7>d.length)return this;c=Cd(d.from.clone(),new w(d[1],d[2]),new w(d[3],d[4]),new w(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};M.propertiesFromAbsoluteArc=yc;M.splitAbsoluteCubicBezier=Cd;M.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};M.subPathToCurves=function(a,b){var c=new M,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 j=f;j--;)if(b--)c.nullCurve(e);else break a;for(e=d.length;0<b--;)c.nullCurve(h?e-2:e-1)}return d};M.toCurves=function(a,b){if(!Ke.isArray(a))return[];Ke.isArray(b)||(b=[b]);for(var c=M.countSubPaths(a),d=[],e=0,f=Math.max(c.length,
b.length);e<f;++e)d=d.concat(M.subPathToCurves(a.splice(0,c[e]),b[e]));return d};M.fromArc=function(a,b,c,d,e,f,g,h,j){if(!(a===h&&b===j)){if(0===c||0===d)return["lineTo",x,y];Yc(c);Yc(d)}};lb.module$exports=M;lb.module$exports&&(lb=lb.module$exports);var Fa={},Le=Math.round;Fa.module$exports=o.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 Le(a[1]*(this.framerate||this.root.framerate));case "%":return Le(this._length*
a[1]/100)||0;default:throw Error("Unknown frame format: "+a[2]);}}},z);Fa.module$exports&&(Fa=Fa.module$exports);var qa={},Sf=Ca,Ub=o,ii=z,ji=hb,ki=ib,li=jb,mi=ec,ni=ab,oi=Zb,ga=Ub.mixin,pi=Ub.isArray,Me=Ub.forEach,V=va.propertyTranslations={};ga(V,ji);ga(V,ki);ga(V,li);ga(V,mi);ga(V,ni);ga(V,oi);va.prototype={_cleanProperties:function(){var a=this.properties,b;for(b in a)isNaN(a[b])&&(!a[b]||!(b in V))&&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)):d=f}};c.subjects&&this.addSubjects(c.subjects,c.strategy)},_getTranslations:function(){for(var a=this.propertyNames,b,c=0,d=a.length;c<d;c++)if(a[c]in V){b=V[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(){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 va(this.clock,this.duration,ga({},this.properties),a)},_parseEventProps:function(a){var b,c;for(b in a)"function"===typeof a[b]&&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){a=pi(a)?a:[a];Me(a,function(a){this.addSubject(a,b)},this);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){Me(a,function(a){this.removeSubject(a)},this);return this},step:function(a){var b,c,d,e,f,g,h,j=!!this.translations.length;b=this.easing;var i=this.properties,k=this.propertyNames,
l=k.length,m=this.subjects,n={};b&&(a=b(a));for(var o=0,p=m.length;o<p;++o){e=m[o].values;c=m[o].subject;b=m[o].strategy;h="attr"===b;for(var q=c._attributes,r=c._mutatedAttributes,s=0;s<l;++s)f=k[s],d=e[f],g=i[f],!j&&h?(q[f]=d+(g-d)*a,r[f]=!0):n[f]=d+(g-d)*a;if(!j&&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}};ga(va.prototype,ii);qa.module$exports=va;qa.module$exports&&(qa=qa.module$exports);var Ga=
{},qi=qa,Zc=o,ri=z,$c={}.hasOwnProperty;zc.prototype={play:function(a,b){a&&this.addSubjects(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(var g in a)d[g]=a[g];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=Zc.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(Zc.hitch(this,"removeSubject"));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 qi(this.clock,a,e[f],{easing:this.easing,strategy:this.strategy,delay:1===g?this.delay:null});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)})}},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 j,i,k,l,m;e=d[g];for(m in f)if(!$c.call(e,m)){a:{j=m;for(i=h;i--;)if($c.call(d[c[i]],j)){j=c[i];
break a}j=null}a:{i=m;k=h;for(l=c.length;k<l;++k)if($c.call(d[c[k]],i)){i=c[k];break a}i=null}k=j&&d[j][m]||a[m];l=i&&d[i][m];if(null==k)throw Error("No initial value specified for property: "+m);null==l&&(l=k,i=b);e[m]=l*(g-j)/(i-j)}})},_convertKeysToFrames:function(a){for(var b,c,d=0,e=this.clock,f=this.duration,g=Object.keys(a),h=Object.create(null),j=0,i=g.length;j<i;j++)b=g[j],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}};Zc.mixin(zc.prototype,ri);Ga.module$exports=zc;Ga.module$exports&&(Ga=Ga.module$exports);var R={},si=z,wa=o,tg=ea,vg=U,Ne=qa,ti=Ga,Ed=pa,G=wa.descriptorAccessor,D=wa.descriptorData,ui=wa.getter,sg=1,Dd=Math.atan2,Vf=Math.PI,Ac=isFinite,ug=ui("_opacity");F.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?F.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),e=b.displayList&&b.displayList.children))for(var f=0,g=e.length;f<g;++f){var h=e[f];h&&F.registerOffStageObj(a,h,c,d,!0)}};F.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=b.displayList&&b.displayList.children)for(var c=0,d=b.length;c<d;++c){var e=b[c];e&&F.unregisterOffStageObj(a,e,!0)}};var vi=F.prototype={parent:null,type:"DisplayObject",_activate:function(a){this.stage=a;this._mutatedAttributes=wa.mixin({},this._renderAttributes);var b=this._attributes,c=b._clip;c&&F.registerOffStageObj(this,
c,a,"clip");(b=b._mask)&&F.registerOffStageObj(this,b,a,"mask");this.parent._isOffStage&&(this._offStageType=this.parent._offStageType,this._isOffStage=!0);a=a.registry;a.displayObjects[this.id]=this;a.needsInsertion[this.id]=this;this.markUpdate();this.emit("addedToStage")},_deactivate:function(){var a=this.stage;if(a){var a=a.registry,b=this.id;this.stage=void 0;a.needsDraw[b]=this;delete a.displayObjects[b];delete a.needsInsertion[b]}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){1===arguments.length?a.addChild(this):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 Ne||d instanceof ti)){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 Ne(d,a,b,c)}d.addSubject(this).play();return this}};wa.mixin(vi,si);R.module$exports=F;R.module$exports&&(R=R.module$exports);var ha={},gc=o,Hd=R,wi=gc.isArray,ad=Math.max,hc=Math.min;Fd.prototype={add:function(a,b){var c=wi(a),d=this.owner,e;e=d;var f=[];do f.push(e),e=e.parent;while(e);e=f;f=c?a.length:1;if(c||-1===e.indexOf(a))if((!c||!a.some(wg,e))&&0!==f){e=this.children;var g=e.length,b=1<arguments.length?
hc(b>>>0,g):g;c?e.splice.apply(e,[b,0].concat(a)):e.splice(b,0,a);0<b&&(e[b-1].next=c?a[0]:a);for(var c=b+f,f=d.stage,h,g=b;g<c;g+=1)a=h||e[g],(h=a.parent)&&h.displayList.remove(a),h=e[g+1],a.next=h,a.parent=d,f&&a._activate(f)}},clear:function(){for(var a=this.children,b=0,c;c=a[b];b+=1)c.stage&&c._deactivate(),c.next=c.parent=void 0;a.length=0},contains:function(a){var b=this.children;return-1!==b.indexOf(a)||b.some(function(b){return b.displayList&&b.displayList.contains(a)})},remove:function(a){var b=
this.children,c=b.indexOf(a);if(-1===c)return!1;0<c&&(b[c-1].next=a.next);a.next=a.parent=void 0;a.stage&&a._deactivate();b.splice(c,1);return!0}};var Oe={_activate:Gd,_deactivate:Id,addChild:function(a,b){1===arguments.length?this.displayList.add(a):this.displayList.add(a,b);return this},children:function(a){var b=this.displayList;return arguments.length?(b.clear(),b.add(a),this):b.children.slice()},clear:function(){this.displayList.clear();return this},getComputed:function(a){var b=this.displayList.children;
if("top"===a||"right"===a||"bottom"===a||"left"===a){var c="top"===a||"bottom"===a?"y":"x",d="top"===a||"left"===a?hc:ad;return gc.reduce(b,function(b,f,g){f=f.attr(c)+f.getComputed(a);return 0===g?f:d(b,f)},0)}b=gc.reduce(b,function(a,b,c){var d=b.getComputed("size"),j=b.attr("x"),b=b.attr("y"),c=0===c,i=b+d.top;a.top=c?i:hc(a.top,i);i=j+d.right;a.right=c?i:ad(a.right,i);b+=d.bottom;a.bottom=c?b:ad(a.bottom,b);d=j+d.left;a.left=c?d:hc(a.left,d);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){return this.displayList.children.indexOf(a)},removeChild:function(a){this.displayList.remove(a);return this}},bd=gc.mixin({},Oe);bd._activate=function(a){Gd.call(this,a);a&&a.registry.movies.add(this)};bd._deactivate=function(){this.stage&&this.stage.registry.movies.remove(this);Id.call(this)};ha.module$exports={DisplayList:Fd,methods:Oe,timelineMethods:bd};ha.module$exports&&(ha=ha.module$exports);
var ia={},Jd=R,Pe=ha,xi=o,xg=Pe.DisplayList,cd=Bc.prototype=Object.create(Jd.prototype);xi.mixin(cd,Pe.methods);cd.type="Group";cd.clone=function(a){var b=new Bc;a.attributes&&b.attr(this.attr());this.children().forEach(function(c){c.clone&&b.addChild(c.clone(a))},this);return b};ia.module$exports=Bc;ia.module$exports&&(ia=ia.module$exports);var mb={},Cc=ia,Ld=o,ra=Kd.prototype=Object.create(Cc.prototype);ra.getAttribute=function(a){return this._domAttributes[a]};ra.getStyle=function(a){return this._cssStyles[a]};
ra.setAttribute=function(a,b){this._domAttributes[a]=b;this._mutatedDomAttributes[a]=!0;this.markUpdate();return this};ra.setAttributes=function(a){for(var b in a)this.setAttribute(b,a[b]);return this};ra.setStyles=function(a){for(var b in a)this.setStyle(b,a[b]);return this};ra.setStyle=function(a,b){this._cssStyles[a]=b;this._mutatedCssStyles[a]=!0;this.markUpdate();return this};ra.composeRenderMessage=function(a){var a=Cc.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}};mb.module$exports=Kd;mb.module$exports&&(mb=mb.module$exports);var Ha={},Od=R,Cg=fa,Pa=o,xa=Pa.descriptorAccessor,E=Pa.descriptorData,yi=Pa.getter,Md=A.parse,Kg=
yi("_textStrokeColor"),dd=Nd.prototype=Object.create(Od.prototype);dd.type="TextSpan";dd.setText=function(a){return this.attr("text",a)};dd.getText=function(){return this.attr("text")};Ha.module$exports=Nd;Ha.module$exports&&(Ha=Ha.module$exports);var nb={},Rd=ia,Dc=Ha,Pg=fa,ic=o,ba=ic.descriptorAccessor,B=ic.descriptorData,jc=ic.getter,Pd=A.parse,$g=jc("_textStrokeColor"),Yg=jc("_cap"),Zg=jc("_join"),ah=jc("_miterLimit"),Qe=Rd.prototype,kc=Qd.prototype=Object.create(Qe);kc.addChild=function(a,b){if(!(ic.isArray(a)?
a.every(function(a){return a instanceof Dc}):a instanceof Dc))throw TypeError("child is not a TextSpan instance/an array of TextSpans");return Qe.addChild.apply(this,arguments)};kc.type="Text";kc.setText=function(a){return this.attr("text",a)};kc.getText=function(){return this.attr("text")};nb.module$exports=Qd;nb.module$exports&&(nb=nb.module$exports);var W={};T.parse=function(a){a=/^(?:([a-z][a-z0-9+.-]*):)?(?:\/\/([^/#?]*))?([^?#]*)(?:[?]([^#]*))?(?:#(.*))?/.exec(a);return!a?a:new T(a[1],a[2],
a[3],a[4],a[5])};T.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 T(this.scheme,this.authority,a)).toString()},resolveUri:function(a){a instanceof T||(a=T.parse(a));if("data"===a.scheme)return new T(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 T(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}};W.module$exports=T;W.module$exports&&(W=W.module$exports);var ob={},zi=W;ob.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=zi.parse(b),this.type=(a.path.match("data"===a.scheme?/^(\w+\/[\w+]+)[;,]/:/\.([^.]+)$/)||[])[1]);if(!this.type)throw Error("Cannot determine type of resource with src: "+b);};ob.module$exports&&(ob=ob.module$exports);var sa={},lc=ob,ed=o,Re=ed.isArray;sa.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 lc(a)];else if(Re(a))c=ed.map(a,function(a){return new lc(a)});
else if(c&&c.src||"string"===typeof c)c=[new lc(c)];else if(Re(c)&&c.length)c=ed.map(c,function(a){return new lc(a)});else throw Error("resources are not valid.");this.resources=c;this.id=a.id;this.loadLevel=b||null};sa.module$exports&&(sa=sa.module$exports);var X={},Sd=sa,Ai=z,Ra=o,fd=Ra.forEach,Bi=[].slice;Qa.DEFAULT_TIMEOUT=1E4;Qa.MIME_TYPES=function(a){var b={audio:{},video:{},image:{}};if(!a)return b;fd(Bi.call(a),function(a){var d=(a.description.match(/audio|video|image/i)||[])[0];d&&(d=d.toLowerCase(),
fd(a.suffixes.split(","),function(e){e&&(b[d][e]=a.type)}))});return b}("undefined"!==typeof navigator&&navigator.mimeTypes);var Ci=Qa.prototype={load:function(){this.initTimeout();fd(this.resources,function(a){this.loadResource(a,this.resourceLoadSuccess,this.resourceLoadError)},this);return this},initTimeout:function(){this._timeoutID=setTimeout(Ra.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){if((this.resourcesLoaded+=1)===this.resourcesExpectedLength)clearTimeout(this._timeoutID),this.emit("resourcesLoaded"),this.emit("load",a)},resourceLoadError:function(a){clearTimeout(this._timeoutID);this.emit("error",a)}};Ra.mixin(Ci,Ai);X.module$exports=Qa;X.module$exports&&(X=X.module$exports);var pb={},Ec=X,Di=Ec.MIME_TYPES.audio,qb;try{qb=document.createElement("audio")}catch(qk){}var Ei={progress:"progress",
loadstart:"loadstart",loadedmetadata:"loadedmetadata",loadeddata:"loadeddata",canplay:"canplay",canplaythrough:"canplaythrough"},Fi=Vb.getPlayableMimeType=function(a){if(!qb)return"";if(qb.canPlayType(a))return a;var b=Di[a];if(b&&qb.canPlayType(b))return b;a="audio/"+a;return qb.canPlayType(a)?a:""};Vb.prototype=Object.create(Ec.prototype);Vb.prototype.loadResource=function(a,b){function c(){b()}var d,e=this.id,f=this.request.loadLevel||"canplay",g=Fi(a.type),h=a.src;!g||this.hasInitiatedLoad?this.resourcesExpectedLength--:
(this.hasInitiatedLoad=!0,d=document.createElement("audio"),d.setAttribute("id",e),d.setAttribute("type",g),d.src=h,d.load(),this.registerElement(d),d.addEventListener(Ei[f],c,!1))};pb.module$exports=Vb;pb.module$exports&&(pb=pb.module$exports);var rb={},Ud=X;(Td.prototype=Object.create(Ud.prototype)).loadResource=function(a,b,c){var d=new Image;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()};rb.module$exports=
Td;rb.module$exports&&(rb=rb.module$exports);var Ia={},Vd=X;Fc.prototype=Object.create(Vd.prototype);Fc.prototype.loadResource=function(a,b,c){var d=new XMLHttpRequest,e=!1;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):!e&&404===d.status&&(c(d.status),e=!0)}};Ia.module$exports=Fc;Ia.module$exports&&(Ia=Ia.module$exports);var sb={},Wd=X,Gi=Ia,Hi=o,Se=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 gd;P.fontIDs={};P.prefix="bs_"+(new Date).getTime()+"_";P.prototype=Object.create(Wd.prototype);P.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Gi(e)).on("load",function(){var c;a.type in Se?c=Se[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;gd||(gd=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Hi.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});gd.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};sb.module$exports=
P;sb.module$exports&&(sb=sb.module$exports);var tb={},Xd=X,Te;try{Te=document.createElement("video")}catch(rk){}var Ii={progress:"progress",loadstart:"loadstart",loadedmetadata:"loadedmetadata",loadeddata:"loadeddata",canplay:"canplay",canplaythrough:"canplaythrough"};Gc.prototype=Object.create(Xd.prototype);Gc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"canplay",h=a.type,a=a.src;!Te.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(Ii[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))};tb.module$exports=Gc;tb.module$exports&&(tb=tb.module$exports);var Ja={},Ji=o,Ki=z,Li=sb,Mi=tb,Ni=
pb,Oi=rb,Pi=Ia;ca.assets={};ca.hasVideoSupport=function(){return!!domVideo.canPlayType};var Ue=ca.handlers={Bitmap:Oi,Font:Li,Audio:Ni,Video:Mi,Raw:Pi};ca.prototype={destroy:function(a){delete ca.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in Ue)(new Ue[d](a.request,a.id)).on("registerElement",function(b){ca.assets[a.id]=b}).on("load",this,function(c){a.loadData=c;this.emit(b,a)}).on("error",this,function(b){a.loadData=b;this.emit(c,a)}).load();
else throw Error("Type not found in AssetController.handlers: "+d);}};Ji.mixin(ca.prototype,Ki);Ja.module$exports=ca;Ja.module$exports&&(Ja=Ja.module$exports);var ub={},Qi=W,Ve=Yd.prototype=o.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},init:function(a){var b=Qi.parse(this.runnerUrl);-1===(""+b).indexOf("blob")&&(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})}},z);Ve.notifyRunnerAsync=Ve.notifyRunner;ub.module$exports=Yd;ub.module$exports&&(ub=ub.module$exports);var vb={},Sa=o,Ri=z,bh=W,Si=Zd.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;Sa.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,["RUNNER 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 "destroyAsset":this.assetController.destroy(b.id);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=Sa.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=Sa.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")}};Sa.mixin(Si,Ri);vb.module$exports=Zd;vb.module$exports&&(vb=vb.module$exports);var wb={},Ti=z,mc=o,Ka=A,Ui=Da,We=fb,ya=Za,Vi=eb,nc=Ja,$d={},Wi=/AppleWebKit\/53([0-3]|4.([0-4]))/.test(navigator.appVersion),Xi=Math.min,Yi=Math.max,oc=ya.cssClasses,xb=ya.matrixToString,Zi=ya.gradientToSignature,$i=ya.filterToSignature,Xe=ya.valueFromSignatureForType,aj=Ui.exportToPath,pc=We.isFEColorMatrixEnabled,bj=We.filterElementsFromList,cj=nc.handlers.Font.fontIDs,
Ye=nc.handlers.Font.prefix,hd={cap:"stroke-linecap",join:"stroke-linejoin",miterLimit:"stroke-miterlimit",opacity:"opacity",fillOpacity:"fill-opacity",strokeOpacity:"stroke-opacity",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",textAnchor:"text-anchor",text:"text",cursor:"cursor",fillRule:"fill-rule"},ae="dblclick click mouseenter mouseleave mouseover mouseout mouseup mousedown touchstart touchend mousemove touchmove mousewheel".split(" "),dj=mc.isArray;Hc.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 hd)null!=c?a.setAttribute(hd[d],c):null===c&&a.removeAttribute(hd[d]);else switch(d){case "fontFamily":c=cj[c]||c;null!=c?a.setAttribute("font-family",c):null===c&&a.removeAttribute("font-family");break;case "strokeWidth":a.setAttribute("stroke-width",c);0>=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",
c);break;case "matrix":null!=c?a.setAttribute("transform",xb(c)):null===c&&a.removeAttribute("transform")}}};var q=Ic.prototype=mc.mixin({},Ti,Vi),ej={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};q.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=Ka(b).rgba()}};q.render=function(a){var b,
c,d,e,f,g,h,j=this,i=this.svg,k={},l={};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=i[b],!c&&!f.detach&&("DOMElement"===h?(c=i[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c="Audio"===h?i[b]=nc.assets[b]:i[b]=v(ej[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete i[b],b=f[h],c=i[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(l[g]||(l[g]=[])).push(b),k[b]=f);
if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!pc&&"Group"===h&&function Rf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&Rf(c,c._filterSignature),c._fillColorSignature&&j.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&j.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&j.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&i.attr(c._root||c,f.attributes)}for(g in l){c=l[g];
a=[];for(e=0;b=c[e++];)f=k[b],(b=k[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=i[f.parent]){h=f.prev;c=i[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=i[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,i[f.next]||null)}}this._logFrame();this.emit("canRender")};q.drawMovie=function(){};q.drawGroup=function(){};q.drawAll=function(a,b,c){var d=c.attributes,e=d.filters,f=d.fillColor,g=d.fillGradient;!pc&&!f&&e&&b._fillColorSignature&&
(f=b._fillColorSignature);dj(e)&&(0<e.length?this.applyFilters(b,e):this.removeFilters(b));"clip"===c.offStageType&&(d.fillImage=null,g=d.fillGradient=null,f=d.fillColor=4294967295);d.clipId?(e=d.clipId+"_offStageParent",(b._clip=this.svg[e])?b._clip!==this.svg[e]&&b._clip.n++:(b._clip=this.svg[e]=this.svg.defs.appendChild(v("mask")),b._clip.id=this._genDefUID(),b._clip._clipId=e,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||g&&(f||d.fillRepeat&&"1,1"!==d.fillRepeat.join())?Wi?this.applyWebkitFills(b,c):this.applyFills(b,c.attributes):g?this.applyFillGradient(b,g,d.matrix):null!=f&&this.applyFillColor(b,f),"fillImageId"in d&&!d.fillImageId&&this.removeFillImage(b),"strokeColor"in d&&this.applyStrokeColor(b,d.strokeColor,"",d.strokeWidth),"strokeGradient"in d&&this.applyStrokeGradient(b,
d.strokeGradient,"",d.strokeWidth)};q.drawPath=function(a,b){var c=b.data;c&&a.setAttribute("d",aj(c,!0))};q.drawBitmap=function(a,b){var c=b.attributes;a.setAttribute("preserveAspectRatio","none");var d=c.naturalWidth,e=c.naturalHeight,f=e/d;null!=c.absoluteUrl&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",c.absoluteUrl);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)};q.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?oc.add(a,"selectable"):oc.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))}};q.drawText=function(a,b){var c=b.attributes;!1!==c.selectable?oc.add(a,"selectable"):oc.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"};q.drawVideo=function(a,b){var c=b.attributes,d=b.id,e=nc.assets[d];if("undefined"===typeof e)throw Error("asset <"+d+"> is unknown.");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)};q.drawAudio=function(a,b){var c,d=b.attributes;c=b.id;var e=d.playing;if("undefined"===typeof a)throw Error("asset <"+c+"> is unknown.");if(d.prepareUserEvent&&
"ontouchstart"in document){var f=function(){a.play();a.pause();document.removeEventListener("touchstart",f,!0)};document.addEventListener("touchstart",f,!0)}"volume"in d&&(a.volume=Xi(Yi(+d.volume||0,0),1));if("time"in d){c=a.volume;a.volume=0;try{a.currentTime=+d.time||0.01}catch(g){}a.volume=c}!0===e&&a.play();!1===e&&a.pause()};q.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=v("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,Ye):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,Ye));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%")}};q.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);this.removeFilters(a)};q.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]),a.removeAttribute("filter"),delete a._filterSignature)};q.removeFillImage=function(a){if((a=a._pattern)&&a._fillImage)a.removeChild(a._fillImage),delete this.svg[a._fillImage._fillImageId],delete a._fillImage};q.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"])};q.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)};q.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)};
q.destroy=function(){var a=this.svg;ae.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};q._genDefUID=function(){return"def-"+ +new Date+"-"+(this.__defID=this.__defID?this.__defID+1:1)};q.applyFillColor=function(a,b,c){return this.applyColor("fill",
a,b,c)};q.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"))};q.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"))};q.applyColor=function(a,
b,c,d){d=b._filterSignature||d;b["_"+a+"ColorSignature"]=c;c=Ka(c);!pc&&d&&(d=Xe(d,"colorMatrix"))&&c.setColorMatrix(d.split(","));b.setAttribute(a,c.rgba())};q.applyFillGradient=function(a,b,c,d){return this.applyGradient("fill",a,b,c,d)};q.applyGradient=function(a,b,c,d,e){var e=b._filterSignature||e,f,g,h,j,i,k,d=c.stops,l=Zi(c),m="_"+a+"GradientSignature";!pc&&e&&(e=Xe(e,"colorMatrix"))&&(f=e.split(","));if(!f&&l in this.definitions)e=this.definitions[l],b[m]!==l&&(e.n++,b[m]=l,b.setAttribute(a,
"url(#"+e.element.id+")"));else{if(b[m])if(e=this.definitions[b[m]],1<e.n)e.n--;else{delete this.definitions[b[m]];for(g=e.element;e=g.firstChild;)g.removeChild(e)}b[m]=l;switch(c.type){case "linear-gradient":if(isNaN(c.direction))m=c.direction;else if(e=360-c.direction-270,0>e&&(e+=360),e=-e,m=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(m[2]),Math.abs(m[3]))||1),m[2]*=e,m[3]*=e,0>m[2]&&(m[0]=-m[2],m[2]=0),0>m[3])m[1]=-m[3],m[3]=0;g||(g=v("linearGradient"),g.setAttribute("gradientTransform",
xb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());i=0;for(k=d.length;i<k;++i)h=d[i],e=v("stop"),j=f?Ka(h[0]).setColorMatrix(f):Ka(h[0]),e.setAttribute("offset",h[1]+"%"),e.setAttribute("stop-color",j.rgb()),e.setAttribute("stop-opacity",j.a()),g.appendChild(e);g.setAttribute("x1",m[0]);g.setAttribute("y1",m[1]);g.setAttribute("x2",m[2]);g.setAttribute("y2",m[3]);break;case "radial-gradient":g||
(g=v("radialGradient"),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());g.setAttribute("gradientTransform",xb(c.matrix));i=0;for(k=d.length;i<k;++i)h=d[i],e=v("stop"),j=f?Ka(h[0]).setColorMatrix(f):Ka(h[0]),e.setAttribute("offset",h[1]+"%"),e.setAttribute("stop-color",j.rgb()),e.setAttribute("stop-opacity",j.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[l]={n:1,element:g}}};q.applyWebkitFills=function(a,b){var c,d,e=b.attributes,f=this.svg,g=f.defs,h=e.fillColor,j=e.fillGradient,i=(d=a._friend)&&d._fillImage,k=d&&d._fillGradient,l=d&&d._fillColor,m=!(d&&d._pattern);f.root.appendChild(a);m&&(c=a.getBBox(),d=function(a,b,c,d){var e=v("g",a);b[a]=e;d.tx+=c.x;d.ty+=c.y;e.setAttribute("transform",xb(d));return e}(b.id,
f,c,e.matrix),function(b,c,e){b=v("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);!i&&e.fillImageId&&(i=d._fillImage=v("g"),i._fillImageId=e.fillImageId+"_offStageParent",f[i._fillImageId]=i);!k&&j&&(c||(c=a.getBBox()),k=d._fillGradient=v("rect"),k.setAttribute("x",0),k.setAttribute("y",0),k.setAttribute("width",c.width),
k.setAttribute("height",c.height));h&&(l=d._fillColor=v("rect"),l.setAttribute("x",0),l.setAttribute("y",0),l.setAttribute("width",c.width),l.setAttribute("height",c.height),l._fillColorSignature!==h?this.applyFillColor(l,h):0!==l._fillColorSignature&&this.applyFillColor(l,0));j&&(this.applyFillGradient(k,j,e.matrix),d._fillGradientSignature=k._fillGradientSignature);m&&(l&&d.appendChild(l),k&&d.appendChild(k),i&&d.appendChild(i))};q.applyFills=function(a,b){var c,d,e=this.svg.defs,f=(d=b.fillRepeat)&&
d[0]||1,g=d&&d[1]||1,h=b.fillColor,j=b.fillGradient,i=a._pattern,k=i&&i._fillImage,l=i&&i._fillGradient,m=i&&i._fillColor,n=!i;this.svg.root.appendChild(a);n&&(c=a.getBBox(),i=a._pattern=v("pattern"),m=i._fillColor=v("rect"),i.setAttribute("patternUnits","userSpaceOnUse"),i.setAttribute("x",0),i.setAttribute("y",0),i.setAttribute("width",c.width/f),i.setAttribute("height",c.height/g),d=mc.mixin({},b.matrix),d.tx=c.x,d.ty=c.y,i.setAttribute("patternTransform",xb(d)),m.setAttribute("x",0),m.setAttribute("y",
0),m.setAttribute("width",c.width/f),m.setAttribute("height",c.height/g));!l&&j&&(c||(c=a.getBBox()),l=i._fillGradient=v("rect"),l.setAttribute("x",0),l.setAttribute("y",0),l.setAttribute("width",c.width/f),l.setAttribute("height",c.height/g));!k&&b.fillImageId&&(k=i._fillImage=v("g"),k._fillImageId=b.fillImageId+"_offStageParent",this.svg[k._fillImageId]=k);h?m._fillColorSignature!==h&&this.applyFillColor(m,h):0!==m._fillColorSignature&&this.applyFillColor(m,0);j&&(this.applyFillGradient(l,j,b.matrix),
i._fillGradientSignature=l._fillGradientSignature);n&&(i.appendChild(m),l&&i.appendChild(l),k&&i.appendChild(k),i.id=this._genDefUID(),a.setAttribute("fill","url(#"+i.id+")"),e.appendChild(i))};q.applyFilters=function(a,b){var c,d;d="filter:"+b.map(function(a){return $i(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{this.removeFilters(a);c=v("filter");c.id=this._genDefUID();c.setAttribute("x",
"-100%");c.setAttribute("y","-100%");c.setAttribute("width","300%");c.setAttribute("height","300%");for(var e=bj(b),f=0,g=e.length;f<g;f+=1)c.appendChild(e[f]);this.svg.defs.appendChild(c);a.setAttribute("filter","url(#"+c.id+")");a._filterSignature=d;this.definitions[d]={n:1,element:c}}};q.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(v("mask")),a._mask.id=this._genDefUID(),a._mask._maskId=c,a._mask.n=
1);a.setAttribute("mask","url(#"+a._mask.id+")")};q.getOffset=function(){var a,b=this.svg.rootContainer.getBoundingClientRect();if(isNaN(b.left)||isNaN(b.top))a=this.svg.rootContainer.getScreenCTM(),b.left=a.e,b.top=a.f;return b};q._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(mc.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))};q._logFrame=function(){(this._frameTimes||(this._frameTimes=[])).push(+new Date)};q.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};Ic.Svg=Hc;wb.module$exports=Ic;wb.module$exports&&(wb=wb.module$exports);var Y={},fj=o,ce=R,gj=sa,Ze=be.prototype=Object.create(ce.prototype);Ze.request=
function(a){if("undefined"===typeof a)return this._request;this._loader.request(this,this._request=new gj(a),this.type);return this};Ze.bindAssetCallback=function(a){function b(){d();a.call(this,null,this)}function c(b){d();a.call(this,b,this)}var d=fj.hitch(this,function(){this.removeListener("load",b);this.removeListener("error",c)});this.on("load",b);this.on("error",c);return this};Y.module$exports=be;Y.module$exports&&(Y=Y.module$exports);var yb={},de=Y,$e=o,Wb=$e.descriptorData,ee=$e.descriptorAccessor,
af=de.prototype,hj=af.destroy,ja=Jc.prototype=Object.create(af);ja.clone=function(){return new Jc(this._loader,this._request)};ja.destroy=function(){hj.call(this);this._loader.destroyAsset(this);return this};ja.notify=function(a,b){switch(a){case "load":this.emitAsync("load",this);break;case "error":this.emitAsync("error",Error(b.error))}return this};ja.play=function(a){void 0!==a&&this.attr("time",a);return this.attr("playing",!0)};ja.prepareUserEvent=function(){return this.attr("prepareUserEvent",
!0)};ja.pause=function(){return this.attr("playing",!1)};ja.stop=function(){return this.attr({playing:!1,time:0})};ja.getComputed=function(){};yb.module$exports=Jc;yb.module$exports&&(yb=yb.module$exports);var ta={},fe=Y,id=o,za=id.descriptorData,hh=id.descriptorAccessor,ih=id.getter("_source"),bf=fe.prototype,ij=bf.request,qc=Kc.prototype=Object.create(bf);qc.clone=function(){return new Kc(this._loader,this.attr("source"))};qc.request=function(a){if("undefined"===typeof a)return this._request;ij.call(this,
a);this._attributes._absoluteUrl=this._request.resources[0].src;return this};qc.notify=function(a,b){switch(a){case "load":this._attributes._naturalWidth=b.width;this._attributes._naturalHeight=b.height;if(null==this._attributes.width||null==this._attributes.height)this._mutatedAttributes.naturalWidth=!0,this._mutatedAttributes.naturalHeight=!0;this._mutatedAttributes.absoluteUrl=!0;this.emitAsync("load",this);this.markUpdate();break;case "error":this.emitAsync("error",Error(b.error),this)}return this};
qc.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};ta.module$exports=Kc;ta.module$exports&&(ta=ta.module$exports);var zb={},jj=sa,jh=0,cf=ge.prototype=Object.create(z);
cf._load=function(){this._loader.request(this,new jj({id:this.fontId,resources:this.resources}),"Font")};cf.notify=function(a,b){switch(a){case "load":this.emitAsync("load",this);break;case "error":this.emitAsync("error",Error(b.error),this)}return this};zb.module$exports=ge;zb.module$exports&&(zb=zb.module$exports);var Ab={},ie=Y,df=ha,kj=Fa,kh=df.DisplayList,ef=he.prototype=o.mixin(Object.create(ie.prototype),kj,df.timelineMethods);ef.loadSubMovie=function(){return this.root.loadSubMovie.apply(this.root,
arguments)};ef.type="Movie";Ab.module$exports=he;Ab.module$exports&&(Ab=Ab.module$exports);var K={},lj=U,Ua=lb,rc=Da,Ta=R,Ba=o,jd=A,Aa=fa,mj=ta,Q=Ba.descriptorAccessor,H=Ba.descriptorData,sc=Ba.getter,Va=Ba.isArray,je=jd.parse,nj=rc.exportToPath,Fh=rc.validTokens,oj=rc.parsePath,pj=rc.parseCommandList,qj=Math.abs,ff=Math.cos,gf=Math.PI,hf=2*gf,jf=Math.sin,Dh=sc("_strokeColor"),Bh=sc("_cap"),Ch=sc("_join"),Eh=sc("_miterLimit"),kd=Ta.prototype,p=Xb.prototype=Object.create(kd);p._activate=function(a){var b=
kd._activate.apply(this,arguments),c=this._attributes._fillImage;c&&Ta.registerOffStageObj(this,c,a,"fillImage");this.markUpdate("shapeData");return b};p.markUpdate=function(a){"shapeData"===a&&(this._isPathDataMutated=!0);return kd.markUpdate.call(this)};p.clone=function(a){for(var b=-1,c=this._segments,d=c.length,e=Array(d),f=new Xb;++b<d;)e[b]=c[b].slice();a&&a.attributes&&f.attr(this.attr());return f.segments(e)};p.segments=function(a){if(0===arguments.length)return this._segments.slice().map(function(a){return a.slice()});
if(Va(a)){if(Va(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=pj(a);this.markUpdate("shapeData");return this};p.points=function(a){if("undefined"==typeof a)return this._segments.map(function(a){return a.slice(-2)}).filter(Boolean);for(var a=Va(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};p.path=function(a){var b=
this._segments;if("undefined"==typeof a)return nj(b);if("string"==typeof a)return this._segments=oj(a),this.markUpdate("shapeData"),this;throw new TypeError("Invalid parameter: "+a);};p.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};p.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};p.closePath=function(){this._segments.push(["closePath"]);this.markUpdate("shapeData");return this};p.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};p.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};p.verticalLineTo=function(a){return this.lineTo(this.lastPoint()[0],a)};p.verticalLineBy=function(a){return this.lineBy(0,a)};p.horizontalLineTo=function(a){var b=this.lastPoint();return this.lineTo(a,b[1])};p.horizontalLineBy=function(a){return this.lineBy(a,0)};p.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};p.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};p.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};p.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};p.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};p.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};p.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?hf-d:e;e=qj(f-g);d=a+c*ff(g);g=b+c*jf(g);e<hf?(a+=c*ff(f),b+=c*jf(f)):(a=d,b=g-1.0E-4);return this[this._segments.length?"lineTo":"moveTo"](d,g).arcTo(c,c,0,e<gf?
0:1,1,a,b)};p.boundingBox=function(){throw"Not implemented";};p.pointAtLength=function(){throw"Not implemented";};p.clear=function(){this._segments.length=0;this._curve.clear();return this};p.fill=function(a){if("string"===typeof a||"number"===typeof a||a instanceof jd.RGBAColor)return this.attr("fillColor",a);if(a instanceof Aa.LinearGradient||a instanceof Aa.RadialGradient)return this.attr("fillGradient",a);if(a instanceof mj)return this.attr("fillImage",a);throw Error('A fill of "'+a+'" is not supported');
};p.stroke=function(a,b){b&&this.attr("strokeWidth",b);if("string"===typeof a||"number"===typeof a||a instanceof jd.RGBAColor)return this.attr("strokeColor",a);if(a instanceof Aa.LinearGradient||a instanceof Aa.RadialGradient)return this.attr("strokeGradient",a);throw Error('A fill of "'+fill+'" is not supported');};p.lastSegment=function(){var a=this._segments.slice(-1);if("undefined"!=typeof a[0])return a};p.lastPoint=function(){var a,b,c,d,e,f,g,h=0,j=0,i=!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=i?/moveTo/:/To/;e=i?/moveBy/:/By/;if(d.test(b))return[a[c-2]+h,a[c-1]+j];/close/.test(b)?i=!0:e.test(b)&&(h+=a[c-2],j+=a[c-1])}throw Error("Could not find a point.");};p.type="Path";p._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,j=b.length;h<j;h++)a=b[h],c.push(h&&a instanceof lj?[a.x,a.y]:a);d.push(c)}this._isPathDataMutated=!1;return d}};
p.toCurves=function(a){this._segments=Ua.toCurves(this._segments,a)};p.morphTo=function(a,b,c){this.toCurves();a.toCurves();var d=Ua.countSubPaths(this._segments),e=Ua.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)};p.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)};Xb.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 j,i,k,l=f;l<b;l++){e.push(f=[]);j=a[l];k=j.length;i=j[0];if(/By/.test(i))switch(f[0]=i.replace(/By/,"To"),i){case "arcBy":f[1]=j[1];f[2]=j[2];f[3]=j[3];f[4]=j[4];f[5]=j[5];f[6]=j[6]+g;f[7]=j[7]+h;break;case "verticalLineBy":f[1]=
j[1]+h;break;case "horizontalLineBy":f[1]=j[1]+g;break;case "moveBy":c=j[1]+g,d=j[2]+h;default:for(i=1;i<k;i++)f[i]=j[i]+(i%2?g:h)}else for(i=0;i<k;i++)f[i]=j[i];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};p.getComputed=function(a){for(var b={top:0,right:0,bottom:0,left:0,width:0,height:0},c=Ua.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 j=1,i=h.length;j<i;j+=2){var k=h[j],l=h[j+1];b.top=d?l:f(b.top,l);b.right=d?k:e(b.right,k);b.bottom=d?l:e(b.bottom,l);b.left=d?k:f(b.left,k);d=!1}k=this.attr("x");l=this.attr("y");b.top+=l;b.right+=k;b.bottom+=l;b.left+=k;b.width=b.right-b.left;b.height=b.bottom-b.top;return"size"===a?b:b[a]};K.module$exports=Xb;K.module$exports&&(K=K.module$exports);var N={},Lc=K,Hh=o,ld=ke.prototype=Object.create(Lc.prototype),kf=Lc.prototype.attr;
ld.attr=function(a,b){var c=arguments.length;return!this._isProcessingPathAttribute&&1===c&&"string"!==typeof a?(this._isProcessingPathAttribute=!0,kf.call(this,a),this.clear(),this._make(),this._isProcessingPathAttribute=!1,this):kf.apply(this,arguments)};ld.morphTo=function(){throw Error("SpecialAttrPath's are not morphable");};ld._make=function(){};N.module$exports=ke;N.module$exports&&(N=N.module$exports);var Bb={},lf=K,le=N;lf.arc=function(a,b,c,d,e,f){return(new lf((new Mc(a,b,c,d,e,f)).segments())).attr({x:a,
y:b})};var mf=Math.PI,nf=2*mf,of=Math.sin,pf=Math.cos,rj=Math.abs;(Mc.prototype=Object.create(le.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?nf-c:d;d=rj(f-a);c=b*pf(a);a=b*of(a);d<nf?(e=b*pf(f),f=b*of(f)):(e=c,f=a-1.0E-4);return this.moveTo(c,a).arcTo(b,b,0,d<mf?0:1,1,e,f)};Bb.module$exports=Mc;Bb.module$exports&&(Bb=Bb.module$exports);var Cb={},qf=K,me=N;qf.circle=function(a,b,c){return(new qf((new Nc(a,b,c)).segments())).attr({x:a,
y:b})};(Nc.prototype=Object.create(me.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)};Cb.module$exports=Nc;Cb.module$exports&&(Cb=Cb.module$exports);var Db={},rf=K,ne=N;rf.ellipse=function(a,b,c,d){return(new rf((new Oc(a,b,c,d)).segments())).attr({x:a,y:b})};(Oc.prototype=Object.create(ne.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)};Db.module$exports=
Oc;Db.module$exports&&(Db=Db.module$exports);var La={},sf=K,oe=N;sf.polygon=function(a,b,c,d){return(new sf((new Pc(a,b,c,d)).segments())).attr({x:a,y:b})};var sj=2*Math.PI,tj=Math.sin,uj=Math.cos;(Pc.prototype=Object.create(oe.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=sj*b/d,this.lineTo(tj(c)*a,-uj(c)*a);this.closePath()};La.module$exports=
Pc;La.module$exports&&(La=La.module$exports);var Eb={},tf=K,pe=N;tf.rect=function(a,b,c,d,e){return(new tf((new Qc(a,b,c,d,e)).segments())).attr({x:a,y:b})};(Qc.prototype=Object.create(pe.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()};Eb.module$exports=Qc;Eb.module$exports&&(Eb=Eb.module$exports);var Fb={},uf=K,qe=N,vj=La;uf.star=function(a,b,c,d,e){return(new uf((new Rc(a,b,c,d,e)).segments())).attr({x:a,y:b})};(Rc.prototype=Object.create(qe.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 vj(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],j=f[2];f=b[1];var i=(0+f[1])/2,e=i*h*-a/((e+f[2])/2*h-i*j+i*e)/i}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)};Fb.module$exports=Rc;Fb.module$exports&&(Fb=Fb.module$exports);var Gb={},wj=ta,se=ia,Ih=Y,te=o.descriptorData,vf=re.prototype=Object.create(se.prototype);vf._load=function(){for(var a=this,b=this.sources,c=0,d=b.length;c<d;++c)new wj(this._loader,b[c],function(b,
c){b?a.emit("error",c):a._bitmapLoaded(this)})};vf._bitmapLoaded=function(a){var b=this._callback;this.addChild(a);b&&this.displayList.children.length==this.sources.length&&this.emit("load",b)};Gb.module$exports=re;Gb.module$exports&&(Gb=Gb.module$exports);var Hb={},ue=Y,Tc=o.descriptorData,wf=ue.prototype,xj=wf.destroy,tc=Sc.prototype=Object.create(wf);tc.clone=function(){return new Sc(this._loader,this._request)};tc.destroy=function(){xj.call(this);this._loader.destroyAsset(this);return this};tc.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};tc.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};Hb.module$exports=
Sc;Hb.module$exports&&(Hb=Hb.module$exports);var Ib={module$exports:"0.4.0"};Ib.module$exports&&(Ib=Ib.module$exports);var Jb={},md=o,xf=W;Jb.module$exports={version:Ib,AssetController:Ja,RendererController:vb,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=xf.parse(md.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());md.isArray(d.urls)&&(d.urls=md.forEach(d.urls,function(a,b,c){c[b]=e.resolveUri(a).toString()}));"function"===typeof d.code&&(d.code="("+d.code.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=xf.parse(a.baseUrl));"renderer"in a&&(this.Renderer=a.renderer);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}}};Jb.module$exports&&(Jb=Jb.module$exports);var Kb={},yj=function(){try{var a=new Worker("data:application/javascript,"+encodeURIComponent("this.onmessage=function(e){postMessage(e.data)}"));a.onmessage=function(){a.terminate()};
a.postMessage("");return!0}catch(b){return!1}}(),zj=function(){var a,b,c,d;try{return a=new Blob(["this.onmessage=function(e){postMessage(e.data)}"],{type:"text/javascript"}),c=window.URL||window.webkitURL,b=c.createObjectURL(a),d=new Worker(b),d.onmessage=function(){d.terminate();c.revokeObjectURL(b)},d.postMessage(""),!0}catch(e){return b&&c.revokeObjectURL(b),!1}}();Kb.module$exports={getUrl:function(a){var b=window.URL||window.webkitURL,a="("+a+")();";return zj?(a=new Blob([a],{type:"text/javascript"}),
b.createObjectURL(a)):yj?"data:application/javascript,"+encodeURIComponent(a):""}};Kb.module$exports&&(Kb=Kb.module$exports);var Lb={},yf=o,Aj=z,Bj=Ab,Cj=U,Dj=K,Ej=N,Fj=Eb,Gj=La,Hj=Fb,Ij=Db,Jj=Cb,Kj=Bb,Lj=ta,Mj=R,Nj=ia,Oj=qa,Pj=Ga,Qj=Ca,Rj=zb,Sj=ea,Tj=Gb,Uj=A,Vj=fa,Wj=nb,Xj=Ha,Yj=yb,Zj=Hb,$j=pa,ak=ha,bk=mb,ck=Ib;Lb.module$exports=function(a,b){var c=this.exports={DOMElement:bk,DisplayObject:Mj,Group:Nj,Matrix:Sj,Text:Wj,TextSpan:Xj,Path:Dj,SpecialAttrPath:Ej,Rect:Fj,Polygon:Gj,Star:Hj,Ellipse:Ij,
Circle:Jj,Arc:Kj,DisplayList:ak.DisplayList,Point:Cj,color:Uj,tools:yf,gradient:Vj,easing:Qj,filter:$j,stage:a,version:ck};this.assetLoader=b;c.Animation=da(Oj,[a]);c.KeyframeAnimation=da(Pj,[a]);c.Bitmap=da(Lj,[b]);c.FontFamily=da(Rj,[b]);c.Movie=da(Bj,[a]);c.Sprite=da(Tj,[b]);c.Video=da(Zj,[b]);c.Audio=da(Yj,[b]);c.bonsai=c;c.env=c.environment=yf.mixin({windowHeight:0,windowWidth:0,windowScrollX:0,windowScrollY:0,offsetX:0,offsetY:0},Aj)};Lb.module$exports&&(Lb=Lb.module$exports);var Ma={},dk=z,
zf=ha,ek=A,fk=Fa,Mb=o,Jh=ac,xe=cb,ye=Lb,gk=bb,uc=W,Yb=Mb.hitch,Kh=zf.DisplayList,Af=we.prototype={_isFrozen:!0,assetBaseUrl:new uc(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.loadData);break;case "assetLoadError":this.assetLoader.handleEvent("error",a.id,a.loadData);break;case "userevent":if(b=a.targetId?this.registry.displayObjects[a.targetId]:this)a=a.event,a.target=b,gk(a).emitOn(b);break;case "env":Mb.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;Mb.forEach(c.resources,function(b){var c=
uc.parse(b.src);"data"!==c.scheme&&(b.src=a.resolveUri(c).toString())});this.post({command:"loadAsset",data:{id:b,type:d,request:c}})},destroyAsset:function(a){this.post({command:"destroyAsset",data:{id:a}})},loadSubMovie:function(){},getSubMovieEnvironment:function(a,b){b=this.assetBaseUrl.resolveUri(b);a.url=b.toString();var c="data"===b.scheme?null:b;return new ye(a,(new xe(this.registry.pendingAssets)).on("request",Yb(this,this.loadAsset,c)))},loop:function(){this.emitFrame();for(var a=this.registry,
b=Mb.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],j=b[g];if(d[g]){a=h.composeRenderMessage?h.composeRenderMessage(c[j]):a={id:+g};if(g in f){delete f[g];var i=h.next;a.next=i&&i.id;a.parent=h.parent.id}h.emit("render");delete a.detach}else h=
ve(h.displayList),a={id:+g,detach:!0},h.length&&(a.children=h);delete e[g];0<=j?c[j]=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=uc.parse(a.baseUrl);this.assetBaseUrl=uc.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:ek.parse(a)}})},unfreeze:function(){this._isFrozen&&(this._interval=setInterval(Yb(this,this.loop),1E3/this.framerate),this._isFrozen=!1)}};Mb.mixin(Af,dk,zf.timelineMethods,fk);delete Af.markUpdate;Ma.module$exports=we;Ma.module$exports&&(Ma=Ma.module$exports);var Nb={},hk=Ma,Bf=Wa,Na=o;Nb.module$exports=function(a,b){var c=b.document,d=Bf(function(a,b){var d=c.createElement("script");d.src=a;d.onload=function(){b(null)};d.onerror=function(){b("Could not load: "+
a)};c.documentElement.appendChild(d)});b.load=function(a,b){return d.load(a,b)};b.wait=function(){return d.wait()};b.done=function(){return d.done()};var e=new hk(a),f=e.env.exports;Na.mixin(b,f);var g=b.exports={};e.loadSubMovie=function(a,b,d){var k=c.createElement("iframe");c.documentElement.appendChild(k);var l=k.contentWindow,m=d||new f.Movie,d=e.getSubMovieEnvironment(m,a);l.document.open();l.document.close();Na.mixin(l,d.exports);delete g.stage;Na.mixin(l.bonsai,g);Na.mixin(l,g);l.stage=m;
m.root=this;Bf(function(a,b){var c=l.document.createElement("script");c.src=a;c.onload=function(){b(null)};c.onerror=function(){b("Could not load: "+a)};l.document.documentElement.appendChild(c)}).load(e.assetBaseUrl.resolveUri(a),function(a){a?b.call(m,a):b.call(m,null,m)})};a.on("message",function(c){"loadScript"===c.command?d.load(c.url,function(){a.notify({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?d.load("data:text/javascript,"+encodeURIComponent(c.code)):"exposePluginExports"===
c.command&&(delete g.stage,Na.mixin(f,g),Na.mixin(b,g))});e.unfreeze();a.notifyRenderer({command:"isReady"})};Nb.module$exports&&(Nb=Nb.module$exports);var Ob={},ik=Ma,jk=Wa,Cf=o;Ob.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=jk(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 ik(a),d=c.env.exports;Cf.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,Cf.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,j=[],i=[];h.root=this;for(var k in g)j.push(k),i.push(g[k]);Lh(a,function(a){j.push(a);Function.apply(null,j).apply(h,i);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Ob.module$exports&&(Ob=Ob.module$exports);var nd={},L=Jb,kk=Ea,lk=Nb,Df=db,mk=Ob,Ef=ub,nk=wb,Ff=o,ok=Kb;if("undefined"!=typeof window&&
window.messageChannel)setTimeout(function(){var a=window.messageChannel;delete window.messageChannel;lk(a,window)},1);else if("undefined"!=typeof importScripts){var vc,Gf=function(a){vc.notify(a.data)};vc=new kk(function(a){postMessage(a)},function(){removeEventListener("message",Gf);vc=null});addEventListener("message",Gf);mk(vc)}else{window.bonsai=L;var Hf=ok.getUrl(__bonsaiRunnerCode__);L.Renderer=nk;L.IframeRunnerContext=Df;L.WorkerRunnerContext=Ef;var pk=L.run;L.run=Ff.hitch(L,function(a,b,c){L.setup({baseUrl:L._baseUrl||
Ff.baseUri(document),runnerContext:L.RunnerContext||(Hf?Ef:Df),runnerUrl:L.runnerUrl||Hf||""+__bonsaiRunnerCode__});return pk.apply(L,arguments)})}nd.module$exports&&(nd=nd.module$exports)})();