UNPKG

@awayfl/avm2

Version:

Virtual machine for executing AS3 code

1 lines 506 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@awayfl/swf-loader"),require("@awayjs/graphics"),require("@awayjs/core"),require("@awayjs/scene")):"function"==typeof define&&define.amd?define(["exports","@awayfl/swf-loader","@awayjs/graphics","@awayjs/core","@awayjs/scene"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).AwayflAvm2={},e.AwayflSwfLoader,e.AwayjsGraphics,e.AwayjsCore,e.AwayjsScene)}(this,(function(e,t,r,n,a){"use strict";var i=["Undefined","Utf8|ClassSealed","Float|ClassFinal","Int","UInt|ClassInterface","PrivateNs","Double","QName","Namespace|ClassProtectedNs","Multiname","False","True","Null","QNameA","MultinameA","RTQName","RTQNameA","RTQNameL","RTQNameLA","NameL","NameLA","NamespaceSet","PackageNamespace","PackageInternalNs","ProtectedNamespace","ExplicitNamespace","StaticProtectedNs","MultinameL","MultinameLA","TypeName"];var u={},o=["Public","Protected","PackageInternal","Private","Explicit","StaticProtected"];var s=new Uint8Array(100),c=function(){function e(e,n,a){this.type=e,this.uri=n,this.prefix=a,this.mangledName=null,r.assert(void 0!==e),this.mangleName(),t.release||Object.freeze(this)}return e.prototype.toString=function(){return e=this.type,(t.release?String(e):o[e])+(""!==this.uri?":"+this.uri:"");var e},e._hashNamespace=function(r,n,a){n+="",a+="";var i=e._knownNames.indexOf(n);if(i>=0)return r<<2|i;var u=1+n.length+a.length,o=u<101?s:new Uint8Array(u),c=0;o[c++]=r;for(var d=0;d<n.length;d++)o[c++]=n.charCodeAt(d);for(d=0;d<a.length;d++)o[c++]=a.charCodeAt(d);return t.HashUtilities.hashBytesTo32BitsMD5(o,0,c)},e.prototype.mangleName=function(){if(0!==this.type||""!==this.uri){var r=e._hashNamespace(this.type,this.uri,this.prefix);this.mangledName=t.StringUtilities.variableLengthEncodeInt32(r)}else this.mangledName="Bg"},e.prototype.isPublic=function(){return 0===this.type},Object.defineProperty(e.prototype,"reflectedURI",{get:function(){return this.uri||(0===this.type?null:this.uri)},enumerable:!1,configurable:!0}),e._knownNames=[""],e}();function d(e,t){var r=e+t;return u[r]||(u[r]=new c(e,t,""))}function l(e,t,r){var n=e+t+r,a=u[n];return a||(a=u[n]=new c(e,t,r)),a}function f(e){return"string"==typeof e?e:null==e?null:e+""}var p=n.ConfigManager.instance.addStore("avm2",{ENABLE_DEBUG:!0,PRINT_BYTE_INSTRUCTION:!1,EMULATE_LOOKBEHIND:!0,ENABLE_LOOP_GUARD:!1,LOOP_GUARD_MIN_BRANCHES:3,LOOP_GUARD_MAX_LOOPS:1e5,COERCE_MODE:"soft",COERCE_RETURN_MODE:"primitive",MAX_INLINE_RETURN:5,CHECK_OBFUSCATED_NAME:!1,NO_FALL_TO_INT:!0,NO_PROPAGATE_SCOPES_FOR_TRY:!0,HTTP_STRING:"http://",EMIT_REAL_THIS:!0,UNSAFE_PROPAGATE_THIS:!0,UNSAFE_INLINE_CONST:!0,OPTIMISE_ON_IR:!0,NO_HOIST_MULTINAME:!0,NO_CHECK_FASTCALL_FOR_THIS:!0,NO_CHECK_BOXED_THIS:!0,CHEK_TRAIT_GET_CALL:!0,CHEK_TRAIT_FIND_PROP:!0,CHEK_TRAIT_SET:!0,CHEK_SUPER_TRAITS:!0,CHECK_FAST_CONSTRUCTOR:!0,FOLLOW_AS3_BUG:!1,USE_WEAK_REF:!0}),h=function(){function e(t,r,n,a,i,u,o){void 0===u&&(u=null),void 0===o&&(o=!1),this.abc=t,this.index=r,this.kind=n,this.namespaces=a,this.name=i,this.parameterType=u,this.mutable=o,this.id=e._nextID++,this._mangledName=null,this.globalInfo=null,this.numeric=!1,this.numericValue=0,this.resolved={},this._scope=null,this._value=null,this._key=null}return e.prototype.set=function(e,t){var r="number"==typeof e||"string"==typeof e&&!e.includes(".")&&Number.isInteger(+e);this.namespaces=t?[t]:[],this.name=e,this.numeric=!1,r&&(this.numericValue=+e,this.numeric=!0)},e.prototype.drop=function(){this.mutable&&this.isRuntimeName&&(this.numeric=!1,this.name=void 0,this.namespaces=[],this.numericValue=NaN,this.resolved={},this._scope=null)},Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope&&e._isWeak?this._scope.deref():this._scope},set:function(t){e._isWeak&&t?this._scope=new self.WeakRef(t):this._scope=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value&&e._isWeak?this._value.deref():this._value},set:function(t){e._isWeak&&t?this._value=new self.WeakRef(t):this._value=t},enumerable:!1,configurable:!0}),e.prototype.key=function(){if(this._key)return this._key;var e=this.toString();return this.mutable||(this._key=e),e},e.FromFQNString=function(t,r){var n=t.lastIndexOf("."),a=-1===n?"":t.substr(0,n),i=-1===n?t:t.substr(n+1);return new e(null,0,15,[d(r,a)],i)},e.prototype._nameToString=function(){return this.isAnyName()?"*":this.isRuntimeName()?"["+this.name+"]":this.name},e.prototype.isRuntime=function(){switch(this.kind){case 7:case 13:case 9:case 14:return!1}return!0},e.prototype.isRuntimeName=function(){switch(this.kind){case 17:case 18:case 27:case 28:return!0}return!1},e.prototype.isRuntimeNamespace=function(){return this.kind>=15&&this.kind<=18},e.prototype.isAnyName=function(){return null===this.name},e.prototype.isAnyNamespace=function(){return!(this.isRuntimeNamespace()||this.namespaces.length>1)&&(0===this.namespaces.length||""===this.namespaces[0].uri)},e.prototype.isQName=function(){var e=this.kind,n=29===e||7===e||13===e||e>=15&&e<=18;return t.release||r.assert(!(n&&1!==this.namespaces.length)),n},Object.defineProperty(e.prototype,"namespace",{get:function(){return t.release||r.assert(this.isQName()),this.namespaces[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return t.release||r.assert(this.isQName()),this.namespaces[0].uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prefix",{get:function(){return t.release||r.assert(this.isQName()),this.namespaces[0].prefix},set:function(e){t.release||r.assert(this.isQName());var n=this.namespaces[0];n.prefix!==e&&(this.namespaces[0]=l(n.type,n.uri,e))},enumerable:!1,configurable:!0}),e.prototype.equalsQName=function(e){return t.release||r.assert(this.isQName()),this.name===e.name&&this.namespaces[0].uri===e.namespaces[0].uri},e.prototype.matches=function(e){t.release||r.assert(this.isQName());var n=e.isAnyName();if(n&&!e.isQName())return!0;if(!n&&this.name!==e.name)return!1;var a=this.namespaces[0].uri;if(""==a||"default"==a)return!0;for(var i=e.namespaces.length;i--;)if(""==e.namespaces[i].uri||e.namespaces[i].uri===a)return!0;return!1},e.prototype.isAttribute=function(){switch(this.kind){case 13:case 16:case 18:case 14:case 28:return!0}return!1},e.prototype.getMangledName=function(){return t.release||r.assert(this.isQName()),this._mangledName||this._mangleName()},e.prototype._mangleName=function(){t.release||r.assert(!this._mangledName);var e="$Bg"+f(this.name);return this.isRuntime()||(this._mangledName=e),e},e.prototype.getPublicMangledName=function(){return t.isNumeric(this.name)?this.name:"$Bg"+f(this.name)},e.isPublicQualifiedName=function(e){return 0===e.indexOf("$Bg")},e.getPublicMangledName=function(e){return t.isNumeric(e)?e:"$Bg"+e},e.prototype.toFQNString=function(e){t.release||r.assert(this.isQName());var n=this.namespaces[0].uri;return n.length&&(n+=e?"::":"."),n+this.name},e.prototype.toString=function(){var e,r=(e=this.kind,(t.release?String(e):i[e])+" ");(r+=this.isAttribute()?"@":"",this.isRuntimeNamespace())?r+="["+(this.namespaces?this.namespaces.map((function(e){return String(e)})).join(", "):null)+"]::"+this._nameToString():this.isQName()?(r+=this.namespaces[0]+"::",r+=this._nameToString()):this.namespaces?(r+="{"+this.namespaces.map((function(e){return String(e)})).join(", ")+"}",r+="::"+this._nameToString()):(r+="{"+this.namespaces+"}",r+="::"+this._nameToString());return this.parameterType&&(r+="<"+this.parameterType+">"),r},e.prototype.toFlashlogString=function(){var e=this.uri;return e?e+"::"+this.name:this.name},e.stripPublicMangledName=function(e){if(0===e.indexOf("$Bg"))return e.substring(3)},e.FromSimpleName=function(t){var r,n="";"string"!=typeof t&&1===(null===(r=t._children)||void 0===r?void 0:r.length)?t=t._children[0]._value||"":n=t;var a=n.lastIndexOf("::");a>0?n=n.replace("::",":"):a=n.lastIndexOf(".");var i="",u=n;return a>0&&a<n.length-1&&(u=n.substring(a+1).trim(),i=n.substring(0,a).trim()),new e(null,0,15,[d(0,i)],u)},e._isWeak=self.WeakRef&&p.USE_WEAK_REF,e._nextID=1,e}();function m(e,n,a){t.release||r.assert(0===n.indexOf("$Bg")),t.release||r.assert("function"==typeof a),t.defineNonEnumerableProperty(e,n,e.sec.AXFunction.axBox(a))}function y(e){return this.classInfo.instanceInfo.getInterfaces(this.axClass).has(e)}var g=function(){function e(e,t,r){this.superTraits=e,this.protectedNs=t,this.protectedNsMappings=r,this.slots=[],this._nextSlotID=1,this.multinames={};var n=this._traits=Object.create(null);if(e){var a=e._traits;for(var i in a)n[i]=Object.create(a[i])}}return e.prototype.addTrait=function(e){var t=e.multiname,r=this._traits[t.name];r||(r=this._traits[t.name]=Object.create(null));var n=t.namespaces[0].mangledName,a=r[n];return r[n]=e,a},e.prototype.addSlotTrait=function(e){var n=e.slot;n?this._nextSlotID=n+1:n=e.slot=this._nextSlotID++,t.release||r.assert(!this.slots[n]),this.slots[n]=e},e.prototype.getTraitMultiname=function(e){return e.mutable?this.getTrait(e.namespaces,e.name):this.multinames[e.id]||(this.multinames[e.id]=this.getTrait(e.namespaces,e.name))},e.prototype.getTrait=function(e,n){t.release||r.assert("string"==typeof n);var a,i=this._traits[n];if(!i)return null;for(var u=0;u<e.length;u++){var o=e[u];if(a=i[o.mangledName])return a;if(1===o.type)for(var s=this;s;){if(s.protectedNs===o&&(a=s.protectedNsMappings[n]))return a;s=s.superTraits}}return null},e.prototype.getTraitsList=function(){var e=[],t=this._traits;for(var r in t){var n=t[r];for(var a in n)e.push(n[a])}return e},e.prototype.getPublicTraitNames=function(){var e,t=[],r=this._traits;for(var n in r){var a=r[n];for(var i in a)!(e=a[i]).multiname.namespace.isPublic()||0!=e.kind&&7!=e.kind||t.push(e.multiname.name)}return t},e.prototype.getSlot=function(e){return this.slots[e]},e}();function b(){var e=this.hasOwnProperty("classInfo")?"Object":this.classInfo.instanceInfo.multiname.name;return t.StringUtilities.concat3("[object ",e,"]")}function _(e){return null==e||"number"==typeof e||"string"==typeof e||"boolean"==typeof e}var v=Symbol("AX class marker");function E(){return this.$BgtoString.axCall(this)}function N(){return this}function I(){return this.$BgvalueOf.axCall(this)}var S=t.defineNonEnumerableProperty,x=null;function A(e){return x.isPrototypeOf(e)||_(e)}function C(){if(!x){var e=j.prototype;x=Object.create(null),S(x,"axHasPropertyInternal",e.axHasPropertyInternal),S(x,"axHasProperty",e.axHasProperty),S(x,"axSetProperty",e.axSetProperty),S(x,"axHasProperty",e.axHasProperty),S(x,"axHasPublicProperty",e.axHasPublicProperty),S(x,"axSetPublicProperty",e.axSetPublicProperty),S(x,"axGetPublicProperty",e.axGetPublicProperty),S(x,"axCallPublicProperty",e.axCallPublicProperty),S(x,"axDeletePublicProperty",e.axDeletePublicProperty),S(x,"axGetProperty",e.axGetProperty),S(x,"axDeleteProperty",e.axDeleteProperty),S(x,"axGetSuper",e.axGetSuper),S(x,"axSetSuper",e.axSetSuper),S(x,"axSetSlot",e.axSetSlot),S(x,"axGetSlot",e.axGetSlot),S(x,"axCallProperty",e.axCallProperty),S(x,"axCallSuper",e.axCallSuper),S(x,"axConstructProperty",e.axConstructProperty),S(x,"axResolveMultiname",e.axResolveMultiname),S(x,"axNextNameIndex",e.axNextNameIndex),S(x,"axNextName",e.axNextName),S(x,"axNextValue",e.axNextValue),S(x,"axGetEnumerableKeys",e.axGetEnumerableKeys),S(x,"axImplementsInterface",y),S(x,"traits",new g(null,null,Object.create(null))),S(x,"isPrototypeOf",Object.prototype.isPrototypeOf),S(x,"hasOwnProperty",Object.prototype.hasOwnProperty),S(x,v,!0),x.$BgtoString=b,x.toString=E,x.$BgvalueOf=N,x.valueOf=I}}function P(e){t.release||A(e)||r.assert(!1,"Value: "+e+" is not allowed to flow into AS3.")}function T(e,t){var r=new h(null,0,17,[],null);return r.set(e,t||c.PUBLIC),r}function O(e){return t.isIndex(e)?e:"$Bg"+e}function L(e){return"string"==typeof e?e:null==e?"null":e.toString()}var M=new h(null,0,17,[],null,null,!0),U={NotImplementedError:{code:1001,message:"The method %1 is not implemented."},InvalidPrecisionError:{code:1002,message:"Number.toPrecision has a range of 1 to 21. Number.toFixed and Number.toExponential have a range of 0 to 20. Specified value is not within expected range."},InvalidRadixError:{code:1003,message:"The radix argument must be between 2 and 36; got %1."},InvokeOnIncompatibleObjectError:{code:1004,message:"Method %1 was invoked on an incompatible object."},ArrayIndexNotIntegerError:{code:1005,message:"Array index is not a positive integer (%1)."},CallOfNonFunctionError:{code:1006,message:"%1 is not a function."},ConstructOfNonFunctionError:{code:1007,message:"Instantiation attempted on a non-constructor."},ConvertNullToObjectError:{code:1009,message:"Cannot access a property or method of a null object reference."},ConvertUndefinedToObjectError:{code:1010,message:"A term is undefined and has no properties."},ClassNotFoundError:{code:1014,message:"Class %1 could not be found."},DescendentsError:{code:1016,message:"Descendants operator (..) not supported on type %1."},StackOverflowError:{code:1023,message:"Stack overflow occurred."},CpoolIndexRangeError:{code:1032,message:"Cpool index %1 is out of range %2."},CpoolEntryWrongTypeError:{code:1033,message:"Cpool entry %1 is wrong type."},CheckTypeFailedError:{code:1034,message:"Type Coercion failed: cannot convert %1 to %2."},CannotAssignToMethodError:{code:1037,message:"Cannot assign to a method %1 on %2."},CantUseInstanceofOnNonObjectError:{code:1040,message:"The right-hand side of instanceof must be a class or function."},IsTypeMustBeClassError:{code:1041,message:"The right-hand side of operator must be a class."},InvalidMagicError:{code:1042,message:"Not an ABC file. major_version=%1 minor_version=%2."},UnsupportedTraitsKindError:{code:1045,message:"Unsupported traits kind=%1."},PrototypeTypeError:{code:1049,message:"Prototype objects must be vanilla Objects."},ConvertToPrimitiveError:{code:1050,message:"Cannot convert %1 to primitive."},InvalidURIError:{code:1052,message:"Invalid URI passed to %1 function."},WriteSealedError:{code:1056,message:"Cannot create property %1 on %2."},WrongArgumentCountError:{code:1063,message:"Argument count mismatch on %1. Expected %2, got %3."},UndefinedVarError:{code:1065,message:"Variable %1 is not defined."},ReadSealedError:{code:1069,message:"Property %1 not found on %2 and there is no default value."},ConstWriteError:{code:1074,message:"Illegal write to read-only property %1 on %2."},XMLPrefixNotBound:{code:1083,message:'The prefix "%1" for element "%2" is not bound.'},XMLUnterminatedElementTag:{code:1085,message:'The element type "%1" must be terminated by the matching end-tag "</%2>".'},XMLOnlyWorksWithOneItemLists:{code:1086,message:"The %1 method only works on lists containing one item."},XMLAssignmentToIndexedXMLNotAllowed:{code:1087,message:"Assignment to indexed XML is not allowed."},XMLMarkupMustBeWellFormed:{code:1088,message:"The markup in the document following the root element must be well-formed."},XMLAssigmentOneItemLists:{code:1089,message:"Assignment to lists with more than one item is not supported."},XMLMalformedElement:{code:1090,message:"XML parser failure: element is malformed."},XMLUnterminatedCData:{code:1091,message:"XML parser failure: Unterminated CDATA section."},XMLUnterminatedXMLDecl:{code:1092,message:"XML parser failure: Unterminated XML declaration."},XMLUnterminatedDocTypeDecl:{code:1093,message:"XML parser failure: Unterminated DOCTYPE declaration."},XMLUnterminatedComment:{code:1094,message:"XML parser failure: Unterminated comment."},XMLUnterminatedElement:{code:1096,message:"XML parser failure: Unterminated element."},XMLNamespaceWithPrefixAndNoURI:{code:1098,message:"Illegal prefix %1 for no namespace."},RegExpFlagsArgumentError:{code:1100,message:"Cannot supply flags when constructing one RegExp from another."},InvalidBaseClassError:{code:1108,message:"The OP_newclass opcode was used with the incorrect base class."},XMLInvalidName:{code:1117,message:"Invalid XML name: %1."},XMLIllegalCyclicalLoop:{code:1118,message:"Illegal cyclical loop between nodes."},FilterError:{code:1123,message:"Filter operator not supported on type %1."},OutOfRangeError:{code:1125,message:"The index %1 is out of range %2."},VectorFixedError:{code:1126,message:"Cannot change the length of a fixed Vector."},TypeAppOfNonParamType:{code:1127,message:"Type application attempted on a non-parameterized type."},WrongTypeArgCountError:{code:1128,message:"Incorrect number of type parameters for %1. Expected %2, got %3."},JSONCyclicStructure:{code:1129,message:"Cyclic structure cannot be converted to JSON string."},JSONInvalidReplacer:{code:1131,message:"Replacer argument to JSON stringifier must be an array or a two parameter function."},JSONInvalidParseInput:{code:1132,message:"Invalid JSON parse input."},InvalidRangeError:{code:1506,message:"The specified range is invalid."},NullArgumentError:{code:1507,message:"Argument %1 cannot be null."},InvalidArgumentError:{code:1508,message:"The value specified for argument %1 is invalid."},ArrayFilterNonNullObjectError:{code:1510,message:"When the callback argument is a method of a class, the optional this argument must be null."},InvalidParamError:{code:2004,message:"One of the parameters is invalid."},ParamRangeError:{code:2006,message:"The supplied index is out of bounds."},NullPointerError:{code:2007,message:"Parameter %1 must be non-null."},InvalidEnumError:{code:2008,message:"Parameter %1 must be one of the accepted values."},CantInstantiateError:{code:2012,message:"%1 class cannot be instantiated."},InvalidBitmapData:{code:2015,message:"Invalid BitmapData."},EOFError:{code:2030,message:"End of file was encountered.",fqn:"flash.errors.EOFError"},CompressedDataError:{code:2058,message:"There was an error decompressing the data.",fqn:"flash.errors.IOError"},EmptyStringError:{code:2085,message:"Parameter %1 must be non-empty string."},ProxyGetPropertyError:{code:2088,message:"The Proxy class does not implement getProperty. It must be overridden by a subclass."},ProxySetPropertyError:{code:2089,message:"The Proxy class does not implement setProperty. It must be overridden by a subclass."},ProxyCallPropertyError:{code:2090,message:"The Proxy class does not implement callProperty. It must be overridden by a subclass."},ProxyHasPropertyError:{code:2091,message:"The Proxy class does not implement hasProperty. It must be overridden by a subclass."},ProxyDeletePropertyError:{code:2092,message:"The Proxy class does not implement deleteProperty. It must be overridden by a subclass."},ProxyGetDescendantsError:{code:2093,message:"The Proxy class does not implement getDescendants. It must be overridden by a subclass."},ProxyNextNameIndexError:{code:2105,message:"The Proxy class does not implement nextNameIndex. It must be overridden by a subclass."},ProxyNextNameError:{code:2106,message:"The Proxy class does not implement nextName. It must be overridden by a subclass."},ProxyNextValueError:{code:2107,message:"The Proxy class does not implement nextValue. It must be overridden by a subclass."},TooFewArgumentsError:{code:2001,message:"Too few arguments were specified; got %1, %2 expected."},ParamTypeError:{code:2005,message:"Parameter %1 is of the incorrect type. Should be type %2."},SocketConnectError:{code:2011,message:"Socket connection failed to %1:%2."},CantAddSelfError:{code:2024,message:"An object cannot be added as a child of itself."},NotAChildError:{code:2025,message:"The supplied DisplayObject must be a child of the caller."},UnhandledError:{code:2044,message:"Unhandled %1:."},AllowDomainArgumentError:{code:2052,message:"Only String arguments are permitted for allowDomain and allowInsecureDomain."},DelayRangeError:{code:2066,message:"The Timer delay specified is out of range."},ExternalInterfaceNotAvailableError:{code:2067,message:"The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime."},InvalidLoaderMethodError:{code:2069,message:"The Loader class does not implement this method."},InvalidStageMethodError:{code:2071,message:"The Stage class does not implement this property or method."},TimelineObjectNameSealedError:{code:2078,message:"The name property of a Timeline-placed object cannot be modified."},AlreadyConnectedError:{code:2082,message:"Connect failed because the object is already connected."},CloseNotConnectedError:{code:2083,message:"Close failed because the object is not connected."},ArgumentSizeError:{code:2084,message:"The AMF encoding of the arguments cannot exceed 40K."},AsyncError:{code:2095,message:"%1 was unable to invoke callback %2."},LoadingObjectNotSWFError:{code:2098,message:"The loading object is not a .swf file, you cannot request SWF properties from it."},LoadingObjectNotInitializedError:{code:2099,message:"The loading object is not sufficiently loaded to provide this information."},DecodeParamError:{code:2101,message:"The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs."},SceneNotFoundError:{code:2108,message:"Scene %1 was not found."},FrameLabelNotFoundError:{code:2109,message:"Frame label %1 not found in scene %2."},InvalidLoaderInfoMethodError:{code:2118,message:"The LoaderInfo class does not implement this method."},SecuritySwfNotAllowedError:{code:2121,message:"Security sandbox violation: %1: %2 cannot access %3. This may be worked around by calling Security.allowDomain."},UnknownFileTypeError:{code:2124,message:"Loaded file is an unknown type."},DefinitionNotFoundError:{code:2131,message:"Definition %1 cannot be found."},CantAddParentError:{code:2150,message:"An object cannot be added as a child to one of it's children (or children's children, etc.)."},Matrix3DRefCannontBeShared:{code:2189,message:"A Matrix3D can not be assigned to more than one DisplayObject."},ObjectWithStringsParamError:{code:2196,message:"Parameter %1 must be an Object with only String values."},AllowCodeImportError:{code:3226,message:"Cannot import a SWF file when LoaderContext.allowCodeImport is false."},PermissionDenied:{code:3315,message:"The current security context does not allow this operation."},InternalErrorIV:{code:3343,message:"Internal Error."}};for(var k in U){var w=U[k];w.typeName=k,U[w.code]=w}function B(e){var t="Error #"+e;if(!p.ENABLE_DEBUG)return t;var r=U[e];return t+": "+(r&&r.message||"(unknown)")}function R(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=e.message;return t.forEach((function(e,t){n=n.replace("%"+(t+1),e)})),"Error #"+e.code+": "+n}function D(e,t,r){t&&t.axApply||e.throwError("TypeError",U.CallOfNonFunctionError,t&&t.methodInfo?t.methodInfo.name:"value"),t.methodInfo&&r<t.methodInfo.minArgs&&e.throwError("ArgumentError",U.WrongArgumentCountError,t.methodInfo.name,t.methodInfo.minArgs,r)}function F(e,t,r){if(!t||!t.axConstruct){var n=t&&t.classInfo?t.classInfo.instanceInfo.multiname.name:"value";e.throwError("TypeError",U.ConstructOfNonFunctionError,n)}var a=t.classInfo.methodInfo;r<a.minArgs&&e.throwError("ArgumentError",U.WrongArgumentCountError,t.classInfo.instanceInfo.multiname.name,a.minArgs,r)}var j=function(){function e(){}return e.classInitializer=function(){var t=this.dPrototype,r=e.prototype;m(t,"$BghasOwnProperty",r.native_hasOwnProperty),m(t,"$BgpropertyIsEnumerable",r.native_propertyIsEnumerable),m(t,"$BgsetPropertyIsEnumerable",r.native_setPropertyIsEnumerable),m(t,"$BgisPrototypeOf",r.native_isPrototypeOf),m(t,"$BgtoLocaleString",r.toString)},e._init=function(){},e.init=function(){},e.prototype.native_isPrototypeOf=function(e){return this.isPrototypeOf(this.sec.box(e))},e.prototype.native_hasOwnProperty=function(e){return this.axHasOwnProperty(T(e))},e.prototype.native_propertyIsEnumerable=function(e){var t=Object.getOwnPropertyDescriptor(this,O(f(e)));return!!t&&t.enumerable},e.prototype.native_setPropertyIsEnumerable=function(e,t){void 0===t&&(t=!0);var r=O(f(e));t=!!t;var n=this.axClass.classInfo.instanceInfo;n.isSealed()&&this!==this.axClass.dPrototype&&this.sec.throwError("ReferenceError",U.WriteSealedError,e,n.multiname.name);var a=Object.getOwnPropertyDescriptor(this.axClass.tPrototype,r);a&&this!==this.axClass.dPrototype||(a=Object.getOwnPropertyDescriptor(this,r))&&a.enumerable!==t&&(a.enumerable=t,Object.defineProperty(this,r,a))},e.prototype.axResolveMultiname=function(e){if(e.numeric)return e.numericValue;var t=e.name;if(e.mutable)return(n=this.traits.getTrait(e.namespaces,t))?n.multiname.getMangledName():"$Bg"+t;var r=e.resolved[this.axClassName];if(r)return r;var n,a=(n=this.traits.getTraitMultiname(e))?n.multiname.getMangledName():"$Bg"+t;return e.resolved[this.axClassName]=a,a},e.prototype.axHasProperty=function(e){return this.axHasPropertyInternal(e)},e.prototype.axHasPublicProperty=function(e){M.set(e);var t=this.axHasProperty(M);return M.drop(),t},e.prototype.axSetProperty=function(e,r,n){var a=e.name;if("number"==typeof a||t.isNumeric(a=L(a)))this[+a]=r;else{var i,u=!1,o=this.traits.getTrait(e.namespaces,a);if(o){switch(i=o.multiname.getMangledName(),o.kind){case 1:this.sec.throwError("ReferenceError",U.CannotAssignToMethodError,a,this.axClass.name.name);break;case 2:this.sec.throwError("ReferenceError",U.ConstWriteError,a,this.axClass.name.name);break;case 4:case 6:104!==n&&this.sec.throwError("ReferenceError",U.ConstWriteError,a,this.axClass.name.name),u=!0}var s=o.getType();s&&(r=s.axCoerce(r))}else i="$Bg"+a;this[i]=r,u&&Object.defineProperty(this,i,{writable:!1})}},e.prototype.axGetProperty=function(e){var t=this.axResolveMultiname(e),r=this[t];return"function"!=typeof r||r.__isClosure?void 0===r&&"number"!=typeof t?this[e.name]:r:this.axGetMethod(t)},e.prototype.axGetMethod=function(e){t.release||r.assert("function"==typeof this[e]);var n=this._methodClosureCache;n||(Object.defineProperty(this,"_methodClosureCache",{value:Object.create(null)}),n=this._methodClosureCache);var a=n[e];return a||(a=n[e]=this.sec.AXMethodClosure.Create(this,this[e])),a},e.prototype.axGetSuper=function(e,r){var n,a=L(e.name),i=e.namespaces,u=r.parent.object.tPrototype.traits.getTrait(i,a);if(2===u.kind||7===u.kind)n=u.get.call(this);else{var o=u.multiname.getMangledName(),s=r.parent.object.tPrototype[o];if(s)return this.sec.AXMethodClosure.Create(this,s)}return t.release||P(n),n},e.prototype.axSetSuper=function(e,r,n){t.release||P(n);var a=L(e.name),i=e.namespaces,u=r.parent.object.tPrototype.traits.getTrait(i,a),o=u.getType();o&&(n=o.axCoerce(n)),3===u.kind||7===u.kind?u.set.call(this,n):this[u.multiname.getMangledName()]=n},e.prototype.axDeleteProperty=function(e){var t=L(e.name),r=e.namespaces;return!this.traits.getTrait(r,t)&&delete this[e.getPublicMangledName()]},e.prototype.axCallProperty=function(e,t,r){var n=this[this.axResolveMultiname(e)];return D(this.sec,n,t.length),n.axApply(r?null:this,t)},e.prototype.axCallSuper=function(e,t,r){var n=t.parent.object.tPrototype[this.axResolveMultiname(e)];return D(this.sec,n,r.length),n.axApply(this,r)},e.prototype.axConstructProperty=function(e,t){var r=this[this.axResolveMultiname(e)];return F(this.sec,r,t.length),r.axConstruct(t)},e.prototype.axHasPropertyInternal=function(e){return this.axResolveMultiname(e)in this},e.prototype.axHasOwnProperty=function(e){var t=this.axResolveMultiname(e);return this.hasOwnProperty(t)||this.axClass.tPrototype.hasOwnProperty(t)},e.prototype.axGetEnumerableKeys=function(){if(this.sec.isPrimitive(this))return[];for(var e=Object.getPrototypeOf(this),r=Object.keys(this),n=[],a=0;a<r.length;a++){var i=r[a];if(t.isNumeric(i))n.push(i);else{if(e.hasOwnProperty(i))continue;var u=h.stripPublicMangledName(i);void 0!==u&&n.push(u)}}return n},e.prototype.axGetPublicProperty=function(e){return this[h.getPublicMangledName(e)]},e.prototype.axSetPublicProperty=function(e,r){t.release||P(r),this[h.getPublicMangledName(e)]=r},e.prototype.axCallPublicProperty=function(e,t){return this[h.getPublicMangledName(e)].axApply(this,t)},e.prototype.axDeletePublicProperty=function(e){return delete this[h.getPublicMangledName(e)]},e.prototype.axGetSlot=function(e){var r=this[this.traits.getSlot(e).multiname.getMangledName()];return t.release||P(r),r},e.prototype.axSetSlot=function(e,r){t.release||P(r);var n=this.traits.getSlot(e),a=n.multiname.getMangledName(),i=n.getType();this[a]=i?i.axCoerce(r):r},e.prototype.axNextNameIndex=function(e){var n=this;0===e&&t.defineNonEnumerableProperty(n,"axEnumerableKeys",n.axGetEnumerableKeys()),M.drop();for(var a=n.axEnumerableKeys;e<a.length;){var i=a[e];if(M.set(i),n.axHasPropertyInternal(M))return t.release||r.assert(M.name===a[e]),e+1;e++}return 0},e.prototype.axNextName=function(e){var n=this.axEnumerableKeys;return t.release||r.assert(n&&e>0&&e<n.length+1),n[e-1]},e.prototype.axNextValue=function(e){return this.axGetPublicProperty(this.axNextName(e))},e.prototype.axSetNumericProperty=function(e,t){this.axSetPublicProperty(e,t)},e.prototype.axGetNumericProperty=function(e){return this.axGetPublicProperty(e)},e.forceNativeConstructor=!1,e.forceNativeMethods=!1,e.classSymbols=null,e.instanceSymbols=null,e}(),X=function(e,t){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},X(e,t)};function $(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}X(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var G=function(){return G=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},G.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var H,V=[];function Y(e,r,n){if(r&&"object"==typeof r)return t.release||P(r),r;var a=e.box(r);return a||(V.length?a=V[V.length-1].topScope().global.object:n.receiver&&(a=n.receiver.scope.global.object)),a}!function(e){e[e.None=0]="None",e[e.Runtime=1]="Runtime",e[e.Execution=2]="Execution",e[e.Interpreter=4]="Interpreter"}(H||(H={}));var W=new t.IndentingWriter(!1,(function(e){t.dumpLine(e)})),K=null,Q=null,z=null;function J(e,t){return Array.prototype.slice.call(e,t)}t.release||t.registerDebugMethod((function(e,r){void 0===r&&(r=W),"function"==typeof r&&(r=new t.IndentingWriter(!1,r)),K=e&H.Runtime?r:null,Q=e&(H.Execution|H.Interpreter)?r:null,z=e&H.Interpreter?r:null}),{name:"registerWriter",description:"Registering a writer function for capturing logs",declaration:[{name:"flags",type:"string"},{name:"func",type:"function"}]});var q=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._prototypeInitialzed=!1,t}return $(n,e),n.classInitializer=function(){var e=this.dPrototype,r=n.prototype;m(e,"$BgtoString",r.toString),m(e,"$Bgcall",r.call),m(e,"$Bgapply",r.apply),t.defineNonEnumerableProperty(e,"value",r.native_functionValue)},n.prototype.setReceiver=function(e){this.receiver=e},n.prototype.axConstruct=function(e){var n=this.prototype;r.isNullOrUndefined(n)&&(n=this.sec.AXFunctionUndefinedPrototype),t.release||r.assert("object"==typeof n),t.release||P(n);var a=Object.create(n);return a.__ctorFunction=this,this.value.apply(a,e),a},n.prototype.axIsInstanceOf=function(e){return e&&e.__ctorFunction===this},n.prototype.native_functionValue=function(){},Object.defineProperty(n.prototype,"prototype",{get:function(){return this._prototypeInitialzed||(this._prototype=Object.create(this.sec.AXObject.tPrototype),this._prototypeInitialzed=!0),this._prototype},set:function(e){r.isNullOrUndefined(e)?e=void 0:("object"!=typeof e||this.sec.isPrimitive(e))&&this.sec.throwError("TypeError",U.PrototypeTypeError),this._prototypeInitialzed=!0,this._prototype=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"length",{get:function(){return this.value.methodInfo?this.value.methodInfo.parameters.length:this.value.length},enumerable:!1,configurable:!0}),n.prototype.toString=function(){return"function Function() {}"},n.prototype.call=function(e){return e=Y(this.sec,e,this),this.value.apply(e,J(arguments,1))},n.prototype.apply=function(e,t){return e=Y(this.sec,e,this),this.value.apply(e,t?t.value:void 0)},n.prototype.axCall=function(e){return this.value.apply(e,J(arguments,1))},n.prototype.axApply=function(e,t){return this.value.apply(e,t)},n}(j),Z=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return $(n,e),n.prototype.axCoerce=function(e){return e},Object.defineProperty(n.prototype,"prototype",{get:function(){return t.release||r.assert(this.dPrototype),this.dPrototype},enumerable:!1,configurable:!0}),n.classInitializer=null,n}(j);function ee(e){if(!e||!e.sec)throw new TypeError("Conversion to Array failed");return e.sec.AXArray.axCoerce(e)}function te(e,t){if(1===t.length&&"number"==typeof t[0]){var r=t[0];try{return new Array(r)}catch(t){e.throwError("RangeError",U.ArrayIndexNotIntegerError,r)}}return Array.apply(Array,t)}function re(e,t){return String(e).localeCompare(String(t))}function ne(e,n,a,i){t.release||r.assert(a.length===i.length),t.release||r.assert(a.length>0);var u,o=0;for(u=0;u<a.length&&0===o;u++){var s=a[u],c=e[s],d=n[s],l=i[u];1&l&&(c=String(c).toLowerCase(),d=String(d).toLowerCase()),o=16&l?(c=+c)<(d=+d)?-1:c>d?1:0:String(c).localeCompare(String(d))}return 2&i[u-1]&&(o*=-1),o}function ae(e){var t=Object.create(this.tPrototype);return t.value=e,t}var ie=function(e){function n(){var t=e.call(this)||this;return t.value=te(t.sec,arguments),n.wrapProxy(t)}return $(n,e),n.wrapProxy=function(e){return new Proxy(e,{set:function(e,t,r,n){return"string"!=typeof t||Number.isNaN(+t)?(e[t]=r,!0):(e.value[+t]=r,!0)},get:function(e,t,r){return"string"!=typeof t||Number.isNaN(+t)?e[t]:e.value[+t]}})},n.axBox=function(e){return n.wrapProxy(ae.call(this,e))},n.classInitializer=function(){var e=this.dPrototype,r=n.prototype;t.defineNonEnumerableProperty(this,"$BgCASEINSENSITIVE",1),t.defineNonEnumerableProperty(this,"$BgDESCENDING",2),t.defineNonEnumerableProperty(this,"$BgUNIQUESORT",4),t.defineNonEnumerableProperty(this,"$BgRETURNINDEXEDARRAY",8),t.defineNonEnumerableProperty(this,"$BgNUMERIC",16),m(e,"$Bgpush",r.generic_push),m(e,"$Bgpop",r.generic_pop),m(e,"$Bgshift",r.generic_shift),m(e,"$Bgunshift",r.generic_unshift),m(e,"$Bgreverse",r.generic_reverse),m(e,"$Bgconcat",r.generic_concat),m(e,"$Bgslice",r.generic_slice),m(e,"$Bgsplice",r.generic_splice),m(e,"$Bgjoin",r.generic_join),m(e,"$BgtoString",r.generic_toString),m(e,"$BgindexOf",r.generic_indexOf),m(e,"$BglastIndexOf",r.generic_lastIndexOf),m(e,"$Bgevery",r.generic_every),m(e,"$Bgsome",r.generic_some),m(e,"$BgforEach",r.generic_forEach),m(e,"$Bgmap",r.generic_map),m(e,"$Bgfilter",r.generic_filter),m(e,"$Bgsort",r.generic_sort),m(e,"$BgsortOn",r.generic_sortOn),m(e,"$BghasOwnProperty",r.native_hasOwnProperty),m(e,"$BgpropertyIsEnumerable",r.native_propertyIsEnumerable),m(e,"$BgtoLocaleString",r.generic_toString)},n.prototype.native_hasOwnProperty=function(e){return this.axHasOwnProperty(T(e))},n.prototype.native_propertyIsEnumerable=function(r){if("number"==typeof r||t.isNumeric(r=L(r))){var n=Object.getOwnPropertyDescriptor(this.value,r);return!!n&&n.enumerable}e.prototype.native_propertyIsEnumerable.call(this,r)},n.axApply=function(e,t){return this.sec.createArrayUnsafe(te(this.sec,t))},n.axConstruct=function(e){return this.sec.createArrayUnsafe(te(this.sec,e))},n.prototype.push=function(){if(this.value.length+arguments.length>4294967295){for(var e=4294967295-this.value.length,t=0;t<e;t++)this.value.push(arguments[t]);return 4294967295}return this.value.push.apply(this.value,arguments)},n.prototype.generic_push=function(){if(this&&this.value instanceof Array)return this.push.apply(this,arguments);for(var e=this.axGetPublicProperty("length")>>>0,t=0;t<arguments.length;t++)this.axSetNumericProperty(e++,arguments[t]);return this.axSetPublicProperty("length",e),e},n.prototype.pop=function(){return this.value.pop()},n.prototype.generic_pop=function(){if(this&&this.value instanceof Array)return this.value.pop();var e=this.axGetPublicProperty("length")>>>0;if(e){var t=this.axGetNumericProperty(e-1);return M.name=e-1,M.namespaces=[c.PUBLIC],this.axDeleteProperty(M),this.axSetPublicProperty("length",e-1),t}this.axSetPublicProperty("length",0)},n.prototype.shift=function(){return this.value.shift()},n.prototype.generic_shift=function(){return ee(this).shift()},n.prototype.unshift=function(){return this.value.unshift.apply(this.value,arguments)},n.prototype.generic_unshift=function(){var e=ee(this);return e.value.unshift.apply(e.value,arguments)},n.prototype.reverse=function(){return this.value.reverse(),this},n.prototype.generic_reverse=function(){return ee(this).reverse()},n.prototype.concat=function(){for(var e=this.value.slice(),t=0;t<arguments.length;t++){var r=arguments[t];"object"==typeof r&&r&&r.sec&&Array.isArray(r.value)?e.push.apply(e,r.value):e.push(r)}return this.sec.createArrayUnsafe(e)},n.prototype.generic_concat=function(){return ee(this).concat.apply(this,arguments)},n.prototype.slice=function(e,t){return this.sec.createArray(this.value.slice(e,t))},n.prototype.generic_slice=function(e,t){return ee(this).slice(e,t)},n.prototype.splice=function(){var e=this.value;if(0!==arguments.length)return this.sec.createArray(e.splice.apply(e,arguments))},n.prototype.generic_splice=function(){return ee(this).splice.apply(this,arguments)},n.prototype.join=function(e){return this.value.join(e)},n.prototype.generic_join=function(e){return ee(this).join(e)},n.prototype.toString=function(){return this.value.join(",")},n.prototype.valueOf=function(){return this.value.join(",")},n.prototype.generic_toString=function(){return ee(this).join(",")},n.prototype.indexOf=function(e,t){return this.value.indexOf(e,0|t)},n.prototype.generic_indexOf=function(e,t){return ee(this).indexOf(e,0|t)},n.prototype.lastIndexOf=function(e,t){return this.value.lastIndexOf(e,arguments.length>1?t:2147483647)},n.prototype.generic_lastIndexOf=function(e,t){return ee(this).lastIndexOf(e,arguments.length>1?t:2147483647)},n.prototype.every=function(e,t){if(!e||!e.value||"function"!=typeof e.value)return!0;t=Y(this.sec,t,e);for(var r=this.value,n=0;n<r.length;n++)if(!0!==e.value.call(t,r[n],n,this))return!1;return!0},n.prototype.generic_every=function(e,t){return ee(this).every(e,t)},n.prototype.some=function(e,t){if(!e||!e.value||"function"!=typeof e.value)return!1;t=Y(this.sec,t,e);var r=this;return this.value.some((function(n,a,i){return e.value.call(t,n,a,r)}))},n.prototype.generic_some=function(e,t){return ee(this).some(e,t)},n.prototype.forEach=function(e,t){if(e&&e.value&&"function"==typeof e.value){t=Y(this.sec,t,e);var r=this;this.value.forEach((function(n,a){e.value.call(t,n,a,r)}))}},n.prototype.generic_forEach=function(e,t){return ee(this).forEach(e,t)},n.prototype.map=function(e,t){if(!e||!e.value||"function"!=typeof e.value)return this.sec.createArrayUnsafe([]);t=Y(this.sec,t,e);var r=this;return this.sec.createArrayUnsafe(this.value.map((function(n,a){return e.value.call(t,n,a,r)})))},n.prototype.generic_map=function(e,t){return ee(this).map(e,t)},n.prototype.filter=function(e,t){if(!e||!e.value||"function"!=typeof e.value)return this.sec.createArrayUnsafe([]);t=Y(this.sec,t,e);for(var r=[],n=this.value,a=0;a<n.length;a++)!0===e.value.call(t,n[a],a,this)&&r.push(n[a]);return this.sec.createArrayUnsafe(r)},n.prototype.generic_filter=function(e,t){return ee(this).filter(e,t)},n.prototype.toLocaleString=function(){for(var e=this.sec.AXArray.axCoerce(this).value,t="",r=0,n=e.length;r<n;r++){var a=e[r];null!=a&&(t+=a.toLocaleString()),r+1<n&&(t+=",")}return t},n.prototype.sort=function(e,r){var n,a,i=this.value;if(null==e)return i.sort(),this;if(this.sec.AXFunction.axIsInstanceOf(e)?(n=e.value,a=e.receiver):t.isNumber(e)&&(r=e),null==r||t.isNumber(r)||(r=void 0),!r)return a?(i.sort(n.bind(a)),this):(i.sort(n),this);n||(n=re);var u=2&r?-1:1;return i.sort((function(e,a){return function(e,r,n,a,i){return t.release||t.assertNotImplemented(!(4&n),"UNIQUESORT"),t.release||t.assertNotImplemented(!(8&n),"RETURNINDEXEDARRAY"),1&n&&(e=String(e).toLowerCase(),r=String(r).toLowerCase()),(16&n?(e=+e)<(r=+r)?-1:e>r?1:0:i(e,r))*a}(e,a,r,u,n)})),this},n.prototype.generic_sort=function(){return ee(this).sort.apply(this,arguments)},n.prototype.sortOn=function(e,n){0===arguments.length&&this.sec.throwError("ArgumentError",U.WrongArgumentCountError,"Array/http://adobe.com/AS3/2006/builtin::sortOn()","1","0");var a=this.value,i=[];if(t.isString(e))e=[h.getPublicMangledName(e)],i=[0|n];else{if(!e||!Array.isArray(e.value))return this;e=e.value;for(var u=0;u<e.length;u++)e[u]=h.getPublicMangledName(e[u]);if(n&&Array.isArray(n.value))if((n=n.value).length===e.length)for(u=0;u<n.length;u++)i[u]=0|n[u];else for(u=0;u<e.length;u++)i[u]=0;else{var o=0|n;for(u=0;u<e.length;u++)i[u]=o}}t.release||r.assert(i.length===e.length);var s=i[0];t.release||t.Debug.assertNotImplemented(!(4&s),"UNIQUESORT");var c=a;if(8&s){var d=a.concat();d.sort((function(t,r){return ne(t,r,e,i)})),c=d.map((function(e){return a.indexOf(e)}))}else a.sort((function(t,r){return ne(t,r,e,i)}));return c},n.prototype.generic_sortOn=function(){return ee(this).sortOn.apply(this,arguments)},Object.defineProperty(n.prototype,"length",{get:function(){return this.value.length},set:function(e){this.value.length=e>>>0},enumerable:!1,configurable:!0}),n.prototype.axGetEnumerableKeys=function(){return Object.keys(this.value).concat(e.prototype.axGetEnumerableKeys.call(this))},n.prototype.axHasPropertyInternal=function(e){var n=e.name;return"number"==typeof n||t.isNumeric(n=L(n))?(t.release||r.assert(e.isRuntimeName()),n in this.value):!!this.traits.getTrait(e.namespaces,n)||"$Bg"+n in this},n.prototype.axHasOwnProperty=function(e){var n=e.name;return"number"==typeof n||t.isNumeric(n=L(n))?(t.release||r.assert(e.isRuntimeName()),this.value.hasOwnProperty(n)):!!this.traits.getTrait(e.namespaces,n)||this.hasOwnProperty("$Bg"+n)},n.prototype.axGetProperty=function(r){var n,a=r.name;return"number"==typeof a||t.isNumeric(a=L(a))?null!==(n=this.value[a])&&void 0!==n?n:this[a]:e.prototype.axGetProperty.call(this,r)},n.prototype.axSetProperty=function(r,n,a){t.release||P(n);var i=r.name;"number"==typeof i||t.isNumeric(i=L(i))?this.value[i]=n:e.prototype.axSetProperty.call(this,r,n,a)},n.prototype.axDeleteProperty=function(e){var r=e.name;return"number"==typeof r||t.isNumeric(r=L(r))?delete this.value[r]:!this.traits.getTrait(e.namespaces,r)&&delete this["$Bg"+r]},n.prototype.axGetPublicProperty=function(e){return"number"==typeof e||t.isNumeric(e=L(e))?this.value[e]:this["$Bg"+e]},n.prototype.axSetPublicProperty=function(e,r){t.release||P(r),"number"==typeof e||t.isNumeric(e=L(e))?this.value[e]=r:this["$Bg"+e]=r},n}(j),ue=function(e){function r(t,r){var n=e.call(this)||this;return arguments.length<1&&(t=""),n.$Bgmessage=String(t),n._errorID=0|r,n}return $(r,e),r.throwError=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];for(var a=[U[t]],i=0;i<r.length;i++)a.push(r[i]);var u=R.apply(null,a);throw e.axConstruct([u,t])},r.classInitializer=function(e){t.defineNonEnumerableProperty(this,"$Bglength",1),t.defineNonEnumerableProperty(this.dPrototype,"$Bgname",this.classInfo.instanceInfo.multiname.name),e===r&&(t.defineNonEnumerableProperty(this.dPrototype,"$Bgmessage","Error"),t.defineNonEnumerableProperty(this.dPrototype,"$BgtoString",r.prototype.toString))},r.prototype.toString=function(){return""!==this.$Bgmessage?this.$Bgname+": "+this.$Bgmessage:this.$Bgname},Object.defineProperty(r.prototype,"errorID",{get:function(){return this._errorID},enumerable:!1,configurable:!0}),r.prototype.getStackTrace=function(){return null},r.getErrorMessage=B,r}(j),oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t}(ue),Ne=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return $(r,e),r.classInitializer=function(){var e=this.dPrototype,n=r.prototype;t.defineNonEnumerableProperty(e,"$Bgcall",n.call),t.defineNonEnumerableProperty(e,"$Bgapply",n.apply)},r.Create=function(e,t){var r=function(){return r.value.apply(r.receiver,arguments)};return Object.setPrototypeOf(r,this.sec.AXMethodClosure.tPrototype),r.__isClosure=!0,r.receiver=e,r.value=t,r.methodInfo=t.methodInfo,r.axCall=r.call,r.axApply=r.apply,r},Object.defineProperty(r.prototype,"prototype",{get:function(){return null},set:function(e){this.sec.throwError("ReferenceError",U.ConstWriteError,"prototype","MethodClosure")},enumerable:!1,configurable:!0}),r.prototype.axCall=function(e){return this.value.apply(this.receiver,J(arguments,1))},r.prototype.axApply=function(e,t){return this.value.apply(this.receiver,t)},r.prototype.call=function(e){var t=arguments;return t.length<=6?this.value.call(this.receiver,t[1],t[2],t[3],t[4],t[5]):this.value.apply(this.receiver,J(arguments,1))},r.prototype.apply=function(e,t){return this.value.apply(this.receiver,t&&t.value?t.value:t)},r}(q),Ie=function(e){function r(t){var r=e.call(this)||this;return r.value=Number(t),r}return $(r,e),r.classInitializer=function(){var e=this.dPrototype,n=r.prototype;m(e,"$BgtoString",n.toString),m(e,"$BgtoLocaleString",n.toString),m(e,"$BgvalueOf",n.valueOf),m(e,"$BgtoFixed",n.toFixed),m(e,"$BgtoExponential",n.toExponential),m(e,"$BgtoPrecision",n.toPrecision),t.defineNonEnumerableProperty(this,"$BgNaN",Number.NaN),t.defineNonEnumerableProperty(this,"$BgNEGATIVE_INFINITY",-1/0),t.defineNonEnumerableProperty(this,"$BgPOSITIVE_INFINITY",1/0),t.defineNonEnumerableProperty(this,"$BgMAX_VALUE",Number.MAX_VALUE),t.defineNonEnumerableProperty(this,"$BgMIN_VALUE",Number.MIN_VALUE),t.defineNonEnumerableProperty(this,"$BgE",Math.E),t.defineNonEnumerableProperty(this,"$BgLN10",Math.LN10),t.defineNonEnumerableProperty(this,"$BgLN2",Math.LN2),t.defineNonEnumerableProperty(this,"$BgLOG10E",Math.LOG10E),t.defineNonEnumerableProperty(this,"$BgLOG2E",Math.LOG2E),t.defineNonEnumerableProperty(this,"$BgPI",Math.PI),t.defineNonEnumerableProperty(this,"$BgSQRT1_2",Math.SQRT2),t.defineNonEnumerableProperty(this,"$BgSQRT2",Math.SQRT2)},r.prototype.toString=function(e){return 0===arguments.length?e=10:((e|=0)<2||e>36)&&this.sec.throwError("RangeError",U.InvalidRadixError,e),this.axClass!==this.sec.AXNumber&&this.sec.throwError("TypeError",U.InvokeOnIncompatibleObjectError,"Number.prototype.toString"),this.value.toString(e)},r.prototype.valueOf=function(){return this.axClass!==this.sec.AXNumber&&this.sec.throwError("TypeError",U.InvokeOnIncompatibleObjectError,"Number.prototype.valueOf"),this.value},r.prototype.toExponential=function(e){return((e|=0)<0||e>20)&&this.sec.throwError("RangeError",U.InvalidPrecisionError),this.axClass!==this.sec.AXNumber?"NaN":this.value.toExponential(e)},r.prototype.toPrecision=function(e){return e?e|=0:e=1,(e<1||e>21)&&this.sec.throwError("RangeError",U.InvalidPrecisionError),this.axClass!==this.sec.AXNumber?"NaN":this.value.toPrecision(e)},r.prototype.toFixed=function(e){return((e|=0)<0||e>20)&&this.sec.throwError("RangeError",U.InvalidPrecisionError),this.axClass!==this.sec.AXNumber?"NaN":this.value.toFixed(e)},r._minValue=function(){return Number.MIN_VALUE},r.convertStringToDouble=function(e){var t=e.indexOf(String.fromCharCode(0));return t>=0?+e.substring(0,t):+e},r.classNatives=[Math],r}(j),Se=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return $(r,e),r.classInitializer=function(){var e=this.dPrototype,n=r.prototype;m(e,"$BgtoString",n.toString),m(e,"$BgtoLocaleString",n.toString),m(e,"$BgvalueOf",n.valueOf),t.defineNonEnumerableProperty(this,"$BgMAX_VALUE",2147483647),t.defineNonEnumerableProperty(this,"$BgMIN_VALUE",-2147483648)},r.prototype.toString=function(e){return 0===arguments.length?e=10:((e|=0)<2||e>36)&&this.sec.throwError("RangeError",U.InvalidRadixError,e),this.axClass!==this.sec.AXInt&&this.axClass!==this.sec.AXNumber&&this.sec.throwError("TypeError",U.InvokeOnIncompatibleObjectError,"Number.prototype.toString"),this.value.toString(e)},r.prototype.valueOf=function(){return this.axClass!==this.sec.AXInt&&this.axClass!==this.sec.AXNumber&&this.sec.throwError("TypeError",U.InvokeOnIncompatibleObjectError,"Number.prototype.valueOf"),this.value},r.staticNatives=[Math],r.instanceNatives=[Ie.prototype],r}(Ie);function xe(e,t){var r=e.createArray(t);return r.axSetPublicProperty("index",t.index),r.axSetPublicProperty("input",t.input),r}var Ae=p.FOLLOW_AS3_BUG;function Ce(e){for(var t=null,r=0;r<e.length;r++){var n=e.charCodeAt(r)