from js2py.pyjs import * # setting scope var = Scope( JS_BUILTINS ) set_global_object(var) # Code follows: var.registers(['getFromGlobals', 'crypto_js', '_typeof']) @Js def PyJsHoisted_getFromGlobals_(name, this, arguments, var=var): var = Scope({'name':name, 'this':this, 'arguments':arguments}, var) var.registers(['name']) if var.get('Object').get('prototype').callprop('hasOwnProperty', Js('_fake_exports')).neg(): PyJsTempException = JsToPyException(var.get('Error')((Js('Could not find any value named ')+var.get('name')))) raise PyJsTempException if var.get('Object').get('prototype').get('_fake_exports').callprop('hasOwnProperty', var.get('name')): return var.get('Object').get('prototype').get('_fake_exports').get(var.get('name')) else: PyJsTempException = JsToPyException(var.get('Error')((Js('Could not find any value named ')+var.get('name')))) raise PyJsTempException PyJsHoisted_getFromGlobals_.func_name = 'getFromGlobals' var.put('getFromGlobals', PyJsHoisted_getFromGlobals_) Js('use strict') @Js def PyJs_anonymous_0_(obj, this, arguments, var=var): var = Scope({'obj':obj, 'this':this, 'arguments':arguments}, var) var.registers(['obj']) return var.get('obj',throw=False).typeof() PyJs_anonymous_0_._set_name('anonymous') @Js def PyJs_anonymous_1_(obj, this, arguments, var=var): var = Scope({'obj':obj, 'this':this, 'arguments':arguments}, var) var.registers(['obj']) return (Js('symbol') if (((var.get('obj') and PyJsStrictEq(var.get('Symbol',throw=False).typeof(),Js('function'))) and PyJsStrictEq(var.get('obj').get('constructor'),var.get('Symbol'))) and PyJsStrictNeq(var.get('obj'),var.get('Symbol').get('prototype'))) else var.get('obj',throw=False).typeof()) PyJs_anonymous_1_._set_name('anonymous') var.put('_typeof', (PyJs_anonymous_0_ if (PyJsStrictEq(var.get('Symbol',throw=False).typeof(),Js('function')) and PyJsStrictEq(var.get('Symbol').get('iterator').typeof(),Js('symbol'))) else PyJs_anonymous_1_)) def PyJs_LONG_1357_(var=var): @Js def PyJs_anonymous_2_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'exports', 'module', 'addToGlobals', 'module_temp_love_python']) @Js def PyJsHoisted_addToGlobals_(name, obj, this, arguments, var=var): var = Scope({'name':name, 'obj':obj, 'this':this, 'arguments':arguments}, var) var.registers(['name', 'obj']) if var.get('Object').get('prototype').callprop('hasOwnProperty', Js('_fake_exports')).neg(): var.get('Object').get('prototype').put('_fake_exports', Js({})) var.get('Object').get('prototype').get('_fake_exports').put(var.get('name'), var.get('obj')) PyJsHoisted_addToGlobals_.func_name = 'addToGlobals' var.put('addToGlobals', PyJsHoisted_addToGlobals_) pass pass pass pass var.get('require')(Js('babel-polyfill')) var.put('module_temp_love_python', var.get('require')(Js('crypto-js'))) var.get('addToGlobals')(Js('crypto-js'), var.get('module_temp_love_python')) PyJs_anonymous_2_._set_name('anonymous') @Js def PyJs_anonymous_3_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_4_(PyJsArg_676c6f62616c_, this, arguments, var=var): var = Scope({'global':PyJsArg_676c6f62616c_, 'this':this, 'arguments':arguments}, var) var.registers(['global']) @Js def PyJs_anonymous_5_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['DEFINE_PROPERTY', 'define']) @Js def PyJsHoisted_define_(O, key, value, this, arguments, var=var): var = Scope({'O':O, 'key':key, 'value':value, 'this':this, 'arguments':arguments}, var) var.registers(['O', 'value', 'key']) (var.get('O').get(var.get('key')) or var.get('Object').callprop(var.get('DEFINE_PROPERTY'), var.get('O'), var.get('key'), Js({'writable':Js(True),'configurable':Js(True),'value':var.get('value')}))) PyJsHoisted_define_.func_name = 'define' var.put('define', PyJsHoisted_define_) Js('use strict') var.get('require')(Js('core-js/shim')) var.get('require')(Js('regenerator-runtime/runtime')) var.get('require')(Js('core-js/fn/regexp/escape')) if var.get('global').get('_babelPolyfill'): PyJsTempException = JsToPyException(var.get('Error').create(Js('only one instance of babel-polyfill is allowed'))) raise PyJsTempException var.get('global').put('_babelPolyfill', Js(True)) var.put('DEFINE_PROPERTY', Js('defineProperty')) pass var.get('define')(var.get('String').get('prototype'), Js('padLeft'), Js('').get('padStart')) var.get('define')(var.get('String').get('prototype'), Js('padRight'), Js('').get('padEnd')) @Js def PyJs_anonymous_6_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments}, var) var.registers(['key']) (Js([]).get(var.get('key')) and var.get('define')(var.get('Array'), var.get('key'), var.get('Function').get('call').callprop('bind', Js([]).get(var.get('key'))))) PyJs_anonymous_6_._set_name('anonymous') Js('pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill').callprop('split', Js(',')).callprop('forEach', PyJs_anonymous_6_) PyJs_anonymous_5_._set_name('anonymous') PyJs_anonymous_5_.callprop('call', var.get(u"this")) PyJs_anonymous_4_._set_name('anonymous') PyJs_anonymous_4_.callprop('call', var.get(u"this"), (var.get('global') if PyJsStrictNeq(var.get('global',throw=False).typeof(),Js('undefined')) else (var.get('self') if PyJsStrictNeq(var.get('self',throw=False).typeof(),Js('undefined')) else (var.get('window') if PyJsStrictNeq(var.get('window',throw=False).typeof(),Js('undefined')) else Js({}))))) PyJs_anonymous_3_._set_name('anonymous') @Js def PyJs_anonymous_7_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('../../modules/core.regexp.escape')) var.get('module').put('exports', var.get('require')(Js('../../modules/_core')).get('RegExp').get('escape')) PyJs_anonymous_7_._set_name('anonymous') @Js def PyJs_anonymous_8_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_9_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) if (var.get('it',throw=False).typeof()!=Js('function')): PyJsTempException = JsToPyException(var.get('TypeError')((var.get('it')+Js(' is not a function!')))) raise PyJsTempException return var.get('it') PyJs_anonymous_9_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_9_) PyJs_anonymous_8_._set_name('anonymous') @Js def PyJs_anonymous_10_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['cof', 'module', 'require', 'exports']) var.put('cof', var.get('require')(Js('./_cof'))) @Js def PyJs_anonymous_11_(it, msg, this, arguments, var=var): var = Scope({'it':it, 'msg':msg, 'this':this, 'arguments':arguments}, var) var.registers(['it', 'msg']) if ((var.get('it',throw=False).typeof()!=Js('number')) and (var.get('cof')(var.get('it'))!=Js('Number'))): PyJsTempException = JsToPyException(var.get('TypeError')(var.get('msg'))) raise PyJsTempException return (+var.get('it')) PyJs_anonymous_11_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_11_) PyJs_anonymous_10_._set_name('anonymous') @Js def PyJs_anonymous_12_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'UNSCOPABLES', 'ArrayProto', 'exports', 'module']) var.put('UNSCOPABLES', var.get('require')(Js('./_wks'))(Js('unscopables'))) var.put('ArrayProto', var.get('Array').get('prototype')) if (var.get('ArrayProto').get(var.get('UNSCOPABLES'))==var.get('undefined')): var.get('require')(Js('./_hide'))(var.get('ArrayProto'), var.get('UNSCOPABLES'), Js({})) @Js def PyJs_anonymous_13_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments}, var) var.registers(['key']) var.get('ArrayProto').get(var.get('UNSCOPABLES')).put(var.get('key'), Js(True)) PyJs_anonymous_13_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_13_) PyJs_anonymous_12_._set_name('anonymous') @Js def PyJs_anonymous_14_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'at', 'exports']) Js('use strict') var.put('at', var.get('require')(Js('./_string-at'))(Js(True))) @Js def PyJs_anonymous_15_(S, index, unicode, this, arguments, var=var): var = Scope({'S':S, 'index':index, 'unicode':unicode, 'this':this, 'arguments':arguments}, var) var.registers(['index', 'unicode', 'S']) return (var.get('index')+(var.get('at')(var.get('S'), var.get('index')).get('length') if var.get('unicode') else Js(1.0))) PyJs_anonymous_15_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_15_) PyJs_anonymous_14_._set_name('anonymous') @Js def PyJs_anonymous_16_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_17_(it, Constructor, name, forbiddenField, this, arguments, var=var): var = Scope({'it':it, 'Constructor':Constructor, 'name':name, 'forbiddenField':forbiddenField, 'this':this, 'arguments':arguments}, var) var.registers(['it', 'Constructor', 'name', 'forbiddenField']) if (var.get('it').instanceof(var.get('Constructor')).neg() or (PyJsStrictNeq(var.get('forbiddenField'),var.get('undefined')) and var.get('it').contains(var.get('forbiddenField')))): PyJsTempException = JsToPyException(var.get('TypeError')((var.get('name')+Js(': incorrect invocation!')))) raise PyJsTempException return var.get('it') PyJs_anonymous_17_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_17_) PyJs_anonymous_16_._set_name('anonymous') @Js def PyJs_anonymous_18_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'isObject', 'module', 'exports']) var.put('isObject', var.get('require')(Js('./_is-object'))) @Js def PyJs_anonymous_19_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) if var.get('isObject')(var.get('it')).neg(): PyJsTempException = JsToPyException(var.get('TypeError')((var.get('it')+Js(' is not an object!')))) raise PyJsTempException return var.get('it') PyJs_anonymous_19_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_19_) PyJs_anonymous_18_._set_name('anonymous') @Js def PyJs_anonymous_20_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'toAbsoluteIndex', 'toObject', 'exports', 'module']) Js('use strict') var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index'))) var.put('toLength', var.get('require')(Js('./_to-length'))) @Js def PyJs_copyWithin_21_(target, start, this, arguments, var=var): var = Scope({'target':target, 'start':start, 'this':this, 'arguments':arguments, 'copyWithin':PyJs_copyWithin_21_}, var) var.registers(['target', 'end', 'start', 'O', 'from', 'to', 'inc', 'count', 'len']) var.put('O', var.get('toObject')(var.get(u"this"))) var.put('len', var.get('toLength')(var.get('O').get('length'))) var.put('to', var.get('toAbsoluteIndex')(var.get('target'), var.get('len'))) var.put('from', var.get('toAbsoluteIndex')(var.get('start'), var.get('len'))) var.put('end', (var.get('arguments').get('2') if (var.get('arguments').get('length')>Js(2.0)) else var.get('undefined'))) var.put('count', var.get('Math').callprop('min', ((var.get('len') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('toAbsoluteIndex')(var.get('end'), var.get('len')))-var.get('from')), (var.get('len')-var.get('to')))) var.put('inc', Js(1.0)) if ((var.get('from')Js(0.0)): if var.get('O').contains(var.get('from')): var.get('O').put(var.get('to'), var.get('O').get(var.get('from'))) else: var.get('O').delete(var.get('to')) var.put('to', var.get('inc'), '+') var.put('from', var.get('inc'), '+') return var.get('O') PyJs_copyWithin_21_._set_name('copyWithin') var.get('module').put('exports', (Js([]).get('copyWithin') or PyJs_copyWithin_21_)) PyJs_anonymous_20_._set_name('anonymous') @Js def PyJs_anonymous_22_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'toAbsoluteIndex', 'toObject', 'exports', 'module']) Js('use strict') var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index'))) var.put('toLength', var.get('require')(Js('./_to-length'))) @Js def PyJs_fill_23_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'fill':PyJs_fill_23_}, var) var.registers(['length', 'index', 'endPos', 'end', 'O', 'aLen', 'value']) var.put('O', var.get('toObject')(var.get(u"this"))) var.put('length', var.get('toLength')(var.get('O').get('length'))) var.put('aLen', var.get('arguments').get('length')) var.put('index', var.get('toAbsoluteIndex')((var.get('arguments').get('1') if (var.get('aLen')>Js(1.0)) else var.get('undefined')), var.get('length'))) var.put('end', (var.get('arguments').get('2') if (var.get('aLen')>Js(2.0)) else var.get('undefined'))) var.put('endPos', (var.get('length') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('toAbsoluteIndex')(var.get('end'), var.get('length')))) while (var.get('endPos')>var.get('index')): var.get('O').put((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)), var.get('value')) return var.get('O') PyJs_fill_23_._set_name('fill') var.get('module').put('exports', PyJs_fill_23_) PyJs_anonymous_22_._set_name('anonymous') @Js def PyJs_anonymous_24_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['forOf', 'require', 'module', 'exports']) var.put('forOf', var.get('require')(Js('./_for-of'))) @Js def PyJs_anonymous_25_(iter, ITERATOR, this, arguments, var=var): var = Scope({'iter':iter, 'ITERATOR':ITERATOR, 'this':this, 'arguments':arguments}, var) var.registers(['iter', 'result', 'ITERATOR']) var.put('result', Js([])) var.get('forOf')(var.get('iter'), Js(False), var.get('result').get('push'), var.get('result'), var.get('ITERATOR')) return var.get('result') PyJs_anonymous_25_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_25_) PyJs_anonymous_24_._set_name('anonymous') @Js def PyJs_anonymous_26_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'toIObject', 'toAbsoluteIndex', 'exports', 'module']) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index'))) @Js def PyJs_anonymous_27_(IS_INCLUDES, this, arguments, var=var): var = Scope({'IS_INCLUDES':IS_INCLUDES, 'this':this, 'arguments':arguments}, var) var.registers(['IS_INCLUDES']) @Js def PyJs_anonymous_28_(PyJsArg_2474686973_, el, fromIndex, this, arguments, var=var): var = Scope({'$this':PyJsArg_2474686973_, 'el':el, 'fromIndex':fromIndex, 'this':this, 'arguments':arguments}, var) var.registers(['length', 'index', '$this', 'el', 'O', 'fromIndex', 'value']) var.put('O', var.get('toIObject')(var.get('$this'))) var.put('length', var.get('toLength')(var.get('O').get('length'))) var.put('index', var.get('toAbsoluteIndex')(var.get('fromIndex'), var.get('length'))) pass if (var.get('IS_INCLUDES') and (var.get('el')!=var.get('el'))): while (var.get('length')>var.get('index')): var.put('value', var.get('O').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)))) if (var.get('value')!=var.get('value')): return Js(True) else: #for JS loop while (var.get('length')>var.get('index')): try: if (var.get('IS_INCLUDES') or var.get('O').contains(var.get('index'))): if PyJsStrictEq(var.get('O').get(var.get('index')),var.get('el')): return ((var.get('IS_INCLUDES') or var.get('index')) or Js(0.0)) finally: (var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)) return (var.get('IS_INCLUDES').neg() and (-Js(1.0))) PyJs_anonymous_28_._set_name('anonymous') return PyJs_anonymous_28_ PyJs_anonymous_27_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_27_) PyJs_anonymous_26_._set_name('anonymous') @Js def PyJs_anonymous_29_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'toObject', 'asc', 'exports', 'module', 'IObject', 'ctx']) var.put('ctx', var.get('require')(Js('./_ctx'))) var.put('IObject', var.get('require')(Js('./_iobject'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('asc', var.get('require')(Js('./_array-species-create'))) @Js def PyJs_anonymous_30_(TYPE, PyJsArg_24637265617465_, this, arguments, var=var): var = Scope({'TYPE':TYPE, '$create':PyJsArg_24637265617465_, 'this':this, 'arguments':arguments}, var) var.registers(['IS_FIND_INDEX', 'IS_FILTER', 'TYPE', 'IS_MAP', 'NO_HOLES', '$create', 'IS_EVERY', 'create', 'IS_SOME']) var.put('IS_MAP', (var.get('TYPE')==Js(1.0))) var.put('IS_FILTER', (var.get('TYPE')==Js(2.0))) var.put('IS_SOME', (var.get('TYPE')==Js(3.0))) var.put('IS_EVERY', (var.get('TYPE')==Js(4.0))) var.put('IS_FIND_INDEX', (var.get('TYPE')==Js(6.0))) var.put('NO_HOLES', ((var.get('TYPE')==Js(5.0)) or var.get('IS_FIND_INDEX'))) var.put('create', (var.get('$create') or var.get('asc'))) @Js def PyJs_anonymous_31_(PyJsArg_2474686973_, callbackfn, that, this, arguments, var=var): var = Scope({'$this':PyJsArg_2474686973_, 'callbackfn':callbackfn, 'that':that, 'this':this, 'arguments':arguments}, var) var.registers(['f', 'length', 'index', 'val', '$this', 'that', 'O', 'result', 'callbackfn', 'self', 'res']) var.put('O', var.get('toObject')(var.get('$this'))) var.put('self', var.get('IObject')(var.get('O'))) var.put('f', var.get('ctx')(var.get('callbackfn'), var.get('that'), Js(3.0))) var.put('length', var.get('toLength')(var.get('self').get('length'))) var.put('index', Js(0.0)) var.put('result', (var.get('create')(var.get('$this'), var.get('length')) if var.get('IS_MAP') else (var.get('create')(var.get('$this'), Js(0.0)) if var.get('IS_FILTER') else var.get('undefined')))) pass #for JS loop while (var.get('length')>var.get('index')): try: if (var.get('NO_HOLES') or var.get('self').contains(var.get('index'))): var.put('val', var.get('self').get(var.get('index'))) var.put('res', var.get('f')(var.get('val'), var.get('index'), var.get('O'))) if var.get('TYPE'): if var.get('IS_MAP'): var.get('result').put(var.get('index'), var.get('res')) else: if var.get('res'): while 1: SWITCHED = False CONDITION = (var.get('TYPE')) if SWITCHED or PyJsStrictEq(CONDITION, Js(3.0)): SWITCHED = True return Js(True) if SWITCHED or PyJsStrictEq(CONDITION, Js(5.0)): SWITCHED = True return var.get('val') if SWITCHED or PyJsStrictEq(CONDITION, Js(6.0)): SWITCHED = True return var.get('index') if SWITCHED or PyJsStrictEq(CONDITION, Js(2.0)): SWITCHED = True var.get('result').callprop('push', var.get('val')) SWITCHED = True break else: if var.get('IS_EVERY'): return Js(False) finally: (var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)) return ((-Js(1.0)) if var.get('IS_FIND_INDEX') else (var.get('IS_EVERY') if (var.get('IS_SOME') or var.get('IS_EVERY')) else var.get('result'))) PyJs_anonymous_31_._set_name('anonymous') return PyJs_anonymous_31_ PyJs_anonymous_30_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_30_) PyJs_anonymous_29_._set_name('anonymous') @Js def PyJs_anonymous_32_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', 'toLength', 'toObject', 'exports', 'module', 'IObject']) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('IObject', var.get('require')(Js('./_iobject'))) var.put('toLength', var.get('require')(Js('./_to-length'))) @Js def PyJs_anonymous_33_(that, callbackfn, aLen, memo, isRight, this, arguments, var=var): var = Scope({'that':that, 'callbackfn':callbackfn, 'aLen':aLen, 'memo':memo, 'isRight':isRight, 'this':this, 'arguments':arguments}, var) var.registers(['length', 'index', 'i', 'that', 'memo', 'isRight', 'O', 'callbackfn', 'self', 'aLen']) var.get('aFunction')(var.get('callbackfn')) var.put('O', var.get('toObject')(var.get('that'))) var.put('self', var.get('IObject')(var.get('O'))) var.put('length', var.get('toLength')(var.get('O').get('length'))) var.put('index', ((var.get('length')-Js(1.0)) if var.get('isRight') else Js(0.0))) var.put('i', ((-Js(1.0)) if var.get('isRight') else Js(1.0))) if (var.get('aLen')=Js(0.0)) if var.get('isRight') else (var.get('length')>var.get('index'))): try: if var.get('self').contains(var.get('index')): var.put('memo', var.get('callbackfn')(var.get('memo'), var.get('self').get(var.get('index')), var.get('index'), var.get('O'))) finally: var.put('index', var.get('i'), '+') return var.get('memo') PyJs_anonymous_33_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_33_) PyJs_anonymous_32_._set_name('anonymous') @Js def PyJs_anonymous_34_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'SPECIES', 'isArray', 'exports', 'module', 'isObject']) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('isArray', var.get('require')(Js('./_is-array'))) var.put('SPECIES', var.get('require')(Js('./_wks'))(Js('species'))) @Js def PyJs_anonymous_35_(original, this, arguments, var=var): var = Scope({'original':original, 'this':this, 'arguments':arguments}, var) var.registers(['C', 'original']) pass if var.get('isArray')(var.get('original')): var.put('C', var.get('original').get('constructor')) if ((var.get('C',throw=False).typeof()==Js('function')) and (PyJsStrictEq(var.get('C'),var.get('Array')) or var.get('isArray')(var.get('C').get('prototype')))): var.put('C', var.get('undefined')) if var.get('isObject')(var.get('C')): var.put('C', var.get('C').get(var.get('SPECIES'))) if PyJsStrictEq(var.get('C'),var.get(u"null")): var.put('C', var.get('undefined')) return (var.get('Array') if PyJsStrictEq(var.get('C'),var.get('undefined')) else var.get('C')) PyJs_anonymous_35_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_35_) PyJs_anonymous_34_._set_name('anonymous') @Js def PyJs_anonymous_36_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'speciesConstructor', 'module', 'exports']) var.put('speciesConstructor', var.get('require')(Js('./_array-species-constructor'))) @Js def PyJs_anonymous_37_(original, length, this, arguments, var=var): var = Scope({'original':original, 'length':length, 'this':this, 'arguments':arguments}, var) var.registers(['length', 'original']) return var.get('speciesConstructor')(var.get('original')).create(var.get('length')) PyJs_anonymous_37_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_37_) PyJs_anonymous_36_._set_name('anonymous') @Js def PyJs_anonymous_38_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', 'arraySlice', 'invoke', 'construct', 'exports', 'module', 'factories', 'isObject']) Js('use strict') var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('invoke', var.get('require')(Js('./_invoke'))) var.put('arraySlice', Js([]).get('slice')) var.put('factories', Js({})) @Js def PyJs_construct_39_(F, len, args, this, arguments, var=var): var = Scope({'F':F, 'len':len, 'args':args, 'this':this, 'arguments':arguments, 'construct':PyJs_construct_39_}, var) var.registers(['F', 'n', 'args', 'i', 'len']) if var.get('factories').contains(var.get('len')).neg(): #for JS loop var.put('n', Js([])) var.put('i', Js(0.0)) while (var.get('i')Js(1.0)) else var.get('undefined')), Js(3.0))) pass while var.put('entry', (var.get('entry').get('n') if var.get('entry') else var.get(u"this").get('_f'))): var.get('f')(var.get('entry').get('v'), var.get('entry').get('k'), var.get(u"this")) while (var.get('entry') and var.get('entry').get('r')): var.put('entry', var.get('entry').get('p')) PyJs_forEach_55_._set_name('forEach') @Js def PyJs_has_56_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, 'has':PyJs_has_56_}, var) var.registers(['key']) return var.get('getEntry')(var.get('validate')(var.get(u"this"), var.get('NAME')), var.get('key')).neg().neg() PyJs_has_56_._set_name('has') var.get('redefineAll')(var.get('C').get('prototype'), Js({'clear':PyJs_clear_53_,'delete':PyJs__delete_54_,'forEach':PyJs_forEach_55_,'has':PyJs_has_56_})) if var.get('DESCRIPTORS'): @Js def PyJs_get_57_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_57_}, var) var.registers([]) return var.get('validate')(var.get(u"this"), var.get('NAME')).get(var.get('SIZE')) PyJs_get_57_._set_name('get') var.get('dP')(var.get('C').get('prototype'), Js('size'), Js({'get':PyJs_get_57_})) return var.get('C') PyJs_getConstructor_51_._set_name('getConstructor') @Js def PyJs_InlineNonPyName_58_(that, key, value, this, arguments, var=var): var = Scope({'that':that, 'key':key, 'value':value, 'this':this, 'arguments':arguments, 'def':PyJs_InlineNonPyName_58_}, var) var.registers(['index', 'that', 'prev', 'entry', 'value', 'key']) var.put('entry', var.get('getEntry')(var.get('that'), var.get('key'))) pass if var.get('entry'): var.get('entry').put('v', var.get('value')) else: var.get('that').put('_l', var.put('entry', Js({'i':var.put('index', var.get('fastKey')(var.get('key'), Js(True))),'k':var.get('key'),'v':var.get('value'),'p':var.put('prev', var.get('that').get('_l')),'n':var.get('undefined'),'r':Js(False)}))) if var.get('that').get('_f').neg(): var.get('that').put('_f', var.get('entry')) if var.get('prev'): var.get('prev').put('n', var.get('entry')) (var.get('that').put(var.get('SIZE'),Js(var.get('that').get(var.get('SIZE')).to_number())+Js(1))-Js(1)) if PyJsStrictNeq(var.get('index'),Js('F')): var.get('that').get('_i').put(var.get('index'), var.get('entry')) return var.get('that') PyJs_InlineNonPyName_58_._set_name('def') @Js def PyJs_setStrong_59_(C, NAME, IS_MAP, this, arguments, var=var): var = Scope({'C':C, 'NAME':NAME, 'IS_MAP':IS_MAP, 'this':this, 'arguments':arguments, 'setStrong':PyJs_setStrong_59_}, var) var.registers(['NAME', 'C', 'IS_MAP']) @Js def PyJs_anonymous_60_(iterated, kind, this, arguments, var=var): var = Scope({'iterated':iterated, 'kind':kind, 'this':this, 'arguments':arguments}, var) var.registers(['iterated', 'kind']) var.get(u"this").put('_t', var.get('validate')(var.get('iterated'), var.get('NAME'))) var.get(u"this").put('_k', var.get('kind')) var.get(u"this").put('_l', var.get('undefined')) PyJs_anonymous_60_._set_name('anonymous') @Js def PyJs_anonymous_61_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['entry', 'that', 'kind']) var.put('that', var.get(u"this")) var.put('kind', var.get('that').get('_k')) var.put('entry', var.get('that').get('_l')) while (var.get('entry') and var.get('entry').get('r')): var.put('entry', var.get('entry').get('p')) if (var.get('that').get('_t').neg() or var.get('that').put('_l', var.put('entry', (var.get('entry').get('n') if var.get('entry') else var.get('that').get('_t').get('_f')))).neg()): var.get('that').put('_t', var.get('undefined')) return var.get('step')(Js(1.0)) if (var.get('kind')==Js('keys')): return var.get('step')(Js(0.0), var.get('entry').get('k')) if (var.get('kind')==Js('values')): return var.get('step')(Js(0.0), var.get('entry').get('v')) return var.get('step')(Js(0.0), Js([var.get('entry').get('k'), var.get('entry').get('v')])) PyJs_anonymous_61_._set_name('anonymous') var.get('$iterDefine')(var.get('C'), var.get('NAME'), PyJs_anonymous_60_, PyJs_anonymous_61_, (Js('entries') if var.get('IS_MAP') else Js('values')), var.get('IS_MAP').neg(), Js(True)) var.get('setSpecies')(var.get('NAME')) PyJs_setStrong_59_._set_name('setStrong') var.get('module').put('exports', Js({'getConstructor':PyJs_getConstructor_51_,'def':PyJs_InlineNonPyName_58_,'getEntry':var.get('getEntry'),'setStrong':PyJs_setStrong_59_})) PyJs_anonymous_49_._set_name('anonymous') @Js def PyJs_anonymous_62_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'classof', 'exports', 'module', 'from']) var.put('classof', var.get('require')(Js('./_classof'))) var.put('from', var.get('require')(Js('./_array-from-iterable'))) @Js def PyJs_anonymous_63_(NAME, this, arguments, var=var): var = Scope({'NAME':NAME, 'this':this, 'arguments':arguments}, var) var.registers(['NAME']) @Js def PyJs_toJSON_64_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'toJSON':PyJs_toJSON_64_}, var) var.registers([]) if (var.get('classof')(var.get(u"this"))!=var.get('NAME')): PyJsTempException = JsToPyException(var.get('TypeError')((var.get('NAME')+Js("#toJSON isn't generic")))) raise PyJsTempException return var.get('from')(var.get(u"this")) PyJs_toJSON_64_._set_name('toJSON') return PyJs_toJSON_64_ PyJs_anonymous_63_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_63_) PyJs_anonymous_62_._set_name('anonymous') @Js def PyJs_anonymous_65_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['getWeak', 'arrayFindIndex', 'require', 'UncaughtFrozenStore', 'redefineAll', 'anInstance', 'arrayFind', 'uncaughtFrozenStore', 'exports', 'createArrayMethod', 'module', 'id', 'validate', '$has', 'forOf', 'isObject', 'findUncaughtFrozen', 'anObject']) Js('use strict') var.put('redefineAll', var.get('require')(Js('./_redefine-all'))) var.put('getWeak', var.get('require')(Js('./_meta')).get('getWeak')) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('anInstance', var.get('require')(Js('./_an-instance'))) var.put('forOf', var.get('require')(Js('./_for-of'))) var.put('createArrayMethod', var.get('require')(Js('./_array-methods'))) var.put('$has', var.get('require')(Js('./_has'))) var.put('validate', var.get('require')(Js('./_validate-collection'))) var.put('arrayFind', var.get('createArrayMethod')(Js(5.0))) var.put('arrayFindIndex', var.get('createArrayMethod')(Js(6.0))) var.put('id', Js(0.0)) @Js def PyJs_uncaughtFrozenStore_66_(that, this, arguments, var=var): var = Scope({'that':that, 'this':this, 'arguments':arguments, 'uncaughtFrozenStore':PyJs_uncaughtFrozenStore_66_}, var) var.registers(['that']) return (var.get('that').get('_l') or var.get('that').put('_l', var.get('UncaughtFrozenStore').create())) PyJs_uncaughtFrozenStore_66_._set_name('uncaughtFrozenStore') var.put('uncaughtFrozenStore', PyJs_uncaughtFrozenStore_66_) @Js def PyJs_UncaughtFrozenStore_67_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'UncaughtFrozenStore':PyJs_UncaughtFrozenStore_67_}, var) var.registers([]) var.get(u"this").put('a', Js([])) PyJs_UncaughtFrozenStore_67_._set_name('UncaughtFrozenStore') var.put('UncaughtFrozenStore', PyJs_UncaughtFrozenStore_67_) @Js def PyJs_findUncaughtFrozen_68_(store, key, this, arguments, var=var): var = Scope({'store':store, 'key':key, 'this':this, 'arguments':arguments, 'findUncaughtFrozen':PyJs_findUncaughtFrozen_68_}, var) var.registers(['store', 'key']) @Js def PyJs_anonymous_69_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return PyJsStrictEq(var.get('it').get('0'),var.get('key')) PyJs_anonymous_69_._set_name('anonymous') return var.get('arrayFind')(var.get('store').get('a'), PyJs_anonymous_69_) PyJs_findUncaughtFrozen_68_._set_name('findUncaughtFrozen') var.put('findUncaughtFrozen', PyJs_findUncaughtFrozen_68_) @Js def PyJs_get_70_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, 'get':PyJs_get_70_}, var) var.registers(['entry', 'key']) var.put('entry', var.get('findUncaughtFrozen')(var.get(u"this"), var.get('key'))) if var.get('entry'): return var.get('entry').get('1') PyJs_get_70_._set_name('get') @Js def PyJs_has_71_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, 'has':PyJs_has_71_}, var) var.registers(['key']) return var.get('findUncaughtFrozen')(var.get(u"this"), var.get('key')).neg().neg() PyJs_has_71_._set_name('has') @Js def PyJs_set_72_(key, value, this, arguments, var=var): var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments, 'set':PyJs_set_72_}, var) var.registers(['entry', 'value', 'key']) var.put('entry', var.get('findUncaughtFrozen')(var.get(u"this"), var.get('key'))) if var.get('entry'): var.get('entry').put('1', var.get('value')) else: var.get(u"this").get('a').callprop('push', Js([var.get('key'), var.get('value')])) PyJs_set_72_._set_name('set') @Js def PyJs__delete_73_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, '_delete':PyJs__delete_73_}, var) var.registers(['index', 'key']) @Js def PyJs_anonymous_74_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return PyJsStrictEq(var.get('it').get('0'),var.get('key')) PyJs_anonymous_74_._set_name('anonymous') var.put('index', var.get('arrayFindIndex')(var.get(u"this").get('a'), PyJs_anonymous_74_)) if (~var.get('index')): var.get(u"this").get('a').callprop('splice', var.get('index'), Js(1.0)) return (~var.get('index')).neg().neg() PyJs__delete_73_._set_name('_delete') var.get('UncaughtFrozenStore').put('prototype', Js({'get':PyJs_get_70_,'has':PyJs_has_71_,'set':PyJs_set_72_,'delete':PyJs__delete_73_})) @Js def PyJs_getConstructor_75_(wrapper, NAME, IS_MAP, ADDER, this, arguments, var=var): var = Scope({'wrapper':wrapper, 'NAME':NAME, 'IS_MAP':IS_MAP, 'ADDER':ADDER, 'this':this, 'arguments':arguments, 'getConstructor':PyJs_getConstructor_75_}, var) var.registers(['C', 'ADDER', 'wrapper', 'NAME', 'IS_MAP']) @Js def PyJs_anonymous_76_(that, iterable, this, arguments, var=var): var = Scope({'that':that, 'iterable':iterable, 'this':this, 'arguments':arguments}, var) var.registers(['iterable', 'that']) var.get('anInstance')(var.get('that'), var.get('C'), var.get('NAME'), Js('_i')) var.get('that').put('_t', var.get('NAME')) var.get('that').put('_i', (var.put('id',Js(var.get('id').to_number())+Js(1))-Js(1))) var.get('that').put('_l', var.get('undefined')) if (var.get('iterable')!=var.get('undefined')): var.get('forOf')(var.get('iterable'), var.get('IS_MAP'), var.get('that').get(var.get('ADDER')), var.get('that')) PyJs_anonymous_76_._set_name('anonymous') var.put('C', var.get('wrapper')(PyJs_anonymous_76_)) @Js def PyJs__delete_77_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, '_delete':PyJs__delete_77_}, var) var.registers(['data', 'key']) if var.get('isObject')(var.get('key')).neg(): return Js(False) var.put('data', var.get('getWeak')(var.get('key'))) if PyJsStrictEq(var.get('data'),Js(True)): return var.get('uncaughtFrozenStore')(var.get('validate')(var.get(u"this"), var.get('NAME'))).callprop('delete', var.get('key')) return ((var.get('data') and var.get('$has')(var.get('data'), var.get(u"this").get('_i'))) and var.get('data').delete(var.get(u"this").get('_i'))) PyJs__delete_77_._set_name('_delete') @Js def PyJs_has_78_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, 'has':PyJs_has_78_}, var) var.registers(['data', 'key']) if var.get('isObject')(var.get('key')).neg(): return Js(False) var.put('data', var.get('getWeak')(var.get('key'))) if PyJsStrictEq(var.get('data'),Js(True)): return var.get('uncaughtFrozenStore')(var.get('validate')(var.get(u"this"), var.get('NAME'))).callprop('has', var.get('key')) return (var.get('data') and var.get('$has')(var.get('data'), var.get(u"this").get('_i'))) PyJs_has_78_._set_name('has') var.get('redefineAll')(var.get('C').get('prototype'), Js({'delete':PyJs__delete_77_,'has':PyJs_has_78_})) return var.get('C') PyJs_getConstructor_75_._set_name('getConstructor') @Js def PyJs_InlineNonPyName_79_(that, key, value, this, arguments, var=var): var = Scope({'that':that, 'key':key, 'value':value, 'this':this, 'arguments':arguments, 'def':PyJs_InlineNonPyName_79_}, var) var.registers(['value', 'data', 'key', 'that']) var.put('data', var.get('getWeak')(var.get('anObject')(var.get('key')), Js(True))) if PyJsStrictEq(var.get('data'),Js(True)): var.get('uncaughtFrozenStore')(var.get('that')).callprop('set', var.get('key'), var.get('value')) else: var.get('data').put(var.get('that').get('_i'), var.get('value')) return var.get('that') PyJs_InlineNonPyName_79_._set_name('def') var.get('module').put('exports', Js({'getConstructor':PyJs_getConstructor_75_,'def':PyJs_InlineNonPyName_79_,'ufstore':var.get('uncaughtFrozenStore')})) PyJs_anonymous_65_._set_name('anonymous') @Js def PyJs_anonymous_80_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'setToStringTag', 'redefineAll', 'anInstance', 'inheritIfRequired', 'redefine', 'meta', '$export', 'exports', 'module', 'forOf', 'fails', 'global', 'isObject', '$iterDetect']) Js('use strict') var.put('global', var.get('require')(Js('./_global'))) var.put('$export', var.get('require')(Js('./_export'))) var.put('redefine', var.get('require')(Js('./_redefine'))) var.put('redefineAll', var.get('require')(Js('./_redefine-all'))) var.put('meta', var.get('require')(Js('./_meta'))) var.put('forOf', var.get('require')(Js('./_for-of'))) var.put('anInstance', var.get('require')(Js('./_an-instance'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('fails', var.get('require')(Js('./_fails'))) var.put('$iterDetect', var.get('require')(Js('./_iter-detect'))) var.put('setToStringTag', var.get('require')(Js('./_set-to-string-tag'))) var.put('inheritIfRequired', var.get('require')(Js('./_inherit-if-required'))) @Js def PyJs_anonymous_81_(NAME, wrapper, methods, common, IS_MAP, IS_WEAK, this, arguments, var=var): var = Scope({'NAME':NAME, 'wrapper':wrapper, 'methods':methods, 'common':common, 'IS_MAP':IS_MAP, 'IS_WEAK':IS_WEAK, 'this':this, 'arguments':arguments}, var) var.registers(['ACCEPT_ITERABLES', 'C', 'THROWS_ON_PRIMITIVES', 'fixMethod', 'proto', 'methods', 'IS_WEAK', 'O', 'Base', 'ADDER', 'BUGGY_ZERO', 'wrapper', 'NAME', 'HASNT_CHAINING', 'IS_MAP', 'instance', 'common']) var.put('Base', var.get('global').get(var.get('NAME'))) var.put('C', var.get('Base')) var.put('ADDER', (Js('set') if var.get('IS_MAP') else Js('add'))) var.put('proto', (var.get('C') and var.get('C').get('prototype'))) var.put('O', Js({})) @Js def PyJs_fixMethod_82_(KEY, this, arguments, var=var): var = Scope({'KEY':KEY, 'this':this, 'arguments':arguments, 'fixMethod':PyJs_fixMethod_82_}, var) var.registers(['fn', 'KEY']) var.put('fn', var.get('proto').get(var.get('KEY'))) @Js def PyJs_anonymous_83_(a, this, arguments, var=var): var = Scope({'a':a, 'this':this, 'arguments':arguments}, var) var.registers(['a']) return (Js(False) if (var.get('IS_WEAK') and var.get('isObject')(var.get('a')).neg()) else var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a')))) PyJs_anonymous_83_._set_name('anonymous') @Js def PyJs_has_84_(a, this, arguments, var=var): var = Scope({'a':a, 'this':this, 'arguments':arguments, 'has':PyJs_has_84_}, var) var.registers(['a']) return (Js(False) if (var.get('IS_WEAK') and var.get('isObject')(var.get('a')).neg()) else var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a')))) PyJs_has_84_._set_name('has') @Js def PyJs_get_85_(a, this, arguments, var=var): var = Scope({'a':a, 'this':this, 'arguments':arguments, 'get':PyJs_get_85_}, var) var.registers(['a']) return (var.get('undefined') if (var.get('IS_WEAK') and var.get('isObject')(var.get('a')).neg()) else var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a')))) PyJs_get_85_._set_name('get') @Js def PyJs_add_86_(a, this, arguments, var=var): var = Scope({'a':a, 'this':this, 'arguments':arguments, 'add':PyJs_add_86_}, var) var.registers(['a']) var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a'))) return var.get(u"this") PyJs_add_86_._set_name('add') @Js def PyJs_set_87_(a, b, this, arguments, var=var): var = Scope({'a':a, 'b':b, 'this':this, 'arguments':arguments, 'set':PyJs_set_87_}, var) var.registers(['a', 'b']) var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a')), var.get('b')) return var.get(u"this") PyJs_set_87_._set_name('set') var.get('redefine')(var.get('proto'), var.get('KEY'), (PyJs_anonymous_83_ if (var.get('KEY')==Js('delete')) else (PyJs_has_84_ if (var.get('KEY')==Js('has')) else (PyJs_get_85_ if (var.get('KEY')==Js('get')) else (PyJs_add_86_ if (var.get('KEY')==Js('add')) else PyJs_set_87_))))) PyJs_fixMethod_82_._set_name('fixMethod') var.put('fixMethod', PyJs_fixMethod_82_) @Js def PyJs_anonymous_88_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('C').create().callprop('entries').callprop('next') PyJs_anonymous_88_._set_name('anonymous') if ((var.get('C',throw=False).typeof()!=Js('function')) or (var.get('IS_WEAK') or (var.get('proto').get('forEach') and var.get('fails')(PyJs_anonymous_88_).neg())).neg()): var.put('C', var.get('common').callprop('getConstructor', var.get('wrapper'), var.get('NAME'), var.get('IS_MAP'), var.get('ADDER'))) var.get('redefineAll')(var.get('C').get('prototype'), var.get('methods')) var.get('meta').put('NEED', Js(True)) else: var.put('instance', var.get('C').create()) var.put('HASNT_CHAINING', (var.get('instance').callprop(var.get('ADDER'), (Js({}) if var.get('IS_WEAK') else (-Js(0.0))), Js(1.0))!=var.get('instance'))) @Js def PyJs_anonymous_89_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('instance').callprop('has', Js(1.0)) PyJs_anonymous_89_._set_name('anonymous') var.put('THROWS_ON_PRIMITIVES', var.get('fails')(PyJs_anonymous_89_)) @Js def PyJs_anonymous_90_(iter, this, arguments, var=var): var = Scope({'iter':iter, 'this':this, 'arguments':arguments}, var) var.registers(['iter']) var.get('C').create(var.get('iter')) PyJs_anonymous_90_._set_name('anonymous') var.put('ACCEPT_ITERABLES', var.get('$iterDetect')(PyJs_anonymous_90_)) @Js def PyJs_anonymous_91_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['index', '$instance']) var.put('$instance', var.get('C').create()) var.put('index', Js(5.0)) while (var.put('index',Js(var.get('index').to_number())-Js(1))+Js(1)): var.get('$instance').callprop(var.get('ADDER'), var.get('index'), var.get('index')) return var.get('$instance').callprop('has', (-Js(0.0))).neg() PyJs_anonymous_91_._set_name('anonymous') var.put('BUGGY_ZERO', (var.get('IS_WEAK').neg() and var.get('fails')(PyJs_anonymous_91_))) if var.get('ACCEPT_ITERABLES').neg(): @Js def PyJs_anonymous_92_(target, iterable, this, arguments, var=var): var = Scope({'target':target, 'iterable':iterable, 'this':this, 'arguments':arguments}, var) var.registers(['target', 'iterable', 'that']) var.get('anInstance')(var.get('target'), var.get('C'), var.get('NAME')) var.put('that', var.get('inheritIfRequired')(var.get('Base').create(), var.get('target'), var.get('C'))) if (var.get('iterable')!=var.get('undefined')): var.get('forOf')(var.get('iterable'), var.get('IS_MAP'), var.get('that').get(var.get('ADDER')), var.get('that')) return var.get('that') PyJs_anonymous_92_._set_name('anonymous') var.put('C', var.get('wrapper')(PyJs_anonymous_92_)) var.get('C').put('prototype', var.get('proto')) var.get('proto').put('constructor', var.get('C')) if (var.get('THROWS_ON_PRIMITIVES') or var.get('BUGGY_ZERO')): var.get('fixMethod')(Js('delete')) var.get('fixMethod')(Js('has')) (var.get('IS_MAP') and var.get('fixMethod')(Js('get'))) if (var.get('BUGGY_ZERO') or var.get('HASNT_CHAINING')): var.get('fixMethod')(var.get('ADDER')) if (var.get('IS_WEAK') and var.get('proto').get('clear')): var.get('proto').delete('clear') var.get('setToStringTag')(var.get('C'), var.get('NAME')) var.get('O').put(var.get('NAME'), var.get('C')) var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*(var.get('C')!=var.get('Base')))), var.get('O')) if var.get('IS_WEAK').neg(): var.get('common').callprop('setStrong', var.get('C'), var.get('NAME'), var.get('IS_MAP')) return var.get('C') PyJs_anonymous_81_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_81_) PyJs_anonymous_80_._set_name('anonymous') @Js def PyJs_anonymous_93_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['core', 'module', 'require', 'exports']) var.put('core', var.get('module').put('exports', Js({'version':Js('2.6.12')}))) if (var.get('__e',throw=False).typeof()==Js('number')): var.put('__e', var.get('core')) PyJs_anonymous_93_._set_name('anonymous') @Js def PyJs_anonymous_94_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$defineProperty', 'exports', 'module', 'createDesc']) Js('use strict') var.put('$defineProperty', var.get('require')(Js('./_object-dp'))) var.put('createDesc', var.get('require')(Js('./_property-desc'))) @Js def PyJs_anonymous_95_(object, index, value, this, arguments, var=var): var = Scope({'object':object, 'index':index, 'value':value, 'this':this, 'arguments':arguments}, var) var.registers(['index', 'value', 'object']) if var.get('object').contains(var.get('index')): var.get('$defineProperty').callprop('f', var.get('object'), var.get('index'), var.get('createDesc')(Js(0.0), var.get('value'))) else: var.get('object').put(var.get('index'), var.get('value')) PyJs_anonymous_95_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_95_) PyJs_anonymous_94_._set_name('anonymous') @Js def PyJs_anonymous_96_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', 'module', 'exports']) var.put('aFunction', var.get('require')(Js('./_a-function'))) @Js def PyJs_anonymous_97_(fn, that, length, this, arguments, var=var): var = Scope({'fn':fn, 'that':that, 'length':length, 'this':this, 'arguments':arguments}, var) var.registers(['length', 'fn', 'that']) var.get('aFunction')(var.get('fn')) if PyJsStrictEq(var.get('that'),var.get('undefined')): return var.get('fn') while 1: SWITCHED = False CONDITION = (var.get('length')) if SWITCHED or PyJsStrictEq(CONDITION, Js(1.0)): SWITCHED = True @Js def PyJs_anonymous_98_(a, this, arguments, var=var): var = Scope({'a':a, 'this':this, 'arguments':arguments}, var) var.registers(['a']) return var.get('fn').callprop('call', var.get('that'), var.get('a')) PyJs_anonymous_98_._set_name('anonymous') return PyJs_anonymous_98_ if SWITCHED or PyJsStrictEq(CONDITION, Js(2.0)): SWITCHED = True @Js def PyJs_anonymous_99_(a, b, this, arguments, var=var): var = Scope({'a':a, 'b':b, 'this':this, 'arguments':arguments}, var) var.registers(['a', 'b']) return var.get('fn').callprop('call', var.get('that'), var.get('a'), var.get('b')) PyJs_anonymous_99_._set_name('anonymous') return PyJs_anonymous_99_ if SWITCHED or PyJsStrictEq(CONDITION, Js(3.0)): SWITCHED = True @Js def PyJs_anonymous_100_(a, b, c, this, arguments, var=var): var = Scope({'a':a, 'b':b, 'c':c, 'this':this, 'arguments':arguments}, var) var.registers(['c', 'a', 'b']) return var.get('fn').callprop('call', var.get('that'), var.get('a'), var.get('b'), var.get('c')) PyJs_anonymous_100_._set_name('anonymous') return PyJs_anonymous_100_ SWITCHED = True break @Js def PyJs_anonymous_101_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return var.get('fn').callprop('apply', var.get('that'), var.get('arguments')) PyJs_anonymous_101_._set_name('anonymous') return PyJs_anonymous_101_ PyJs_anonymous_97_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_97_) PyJs_anonymous_96_._set_name('anonymous') @Js def PyJs_anonymous_102_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$toISOString', 'exports', 'lz', 'module', 'getTime', 'fails']) Js('use strict') var.put('fails', var.get('require')(Js('./_fails'))) var.put('getTime', var.get('Date').get('prototype').get('getTime')) var.put('$toISOString', var.get('Date').get('prototype').get('toISOString')) @Js def PyJs_lz_103_(num, this, arguments, var=var): var = Scope({'num':num, 'this':this, 'arguments':arguments, 'lz':PyJs_lz_103_}, var) var.registers(['num']) return (var.get('num') if (var.get('num')>Js(9.0)) else (Js('0')+var.get('num'))) PyJs_lz_103_._set_name('lz') var.put('lz', PyJs_lz_103_) @Js def PyJs_toISOString_104_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'toISOString':PyJs_toISOString_104_}, var) var.registers(['s', 'm', 'd', 'y']) if var.get('isFinite')(var.get('getTime').callprop('call', var.get(u"this"))).neg(): PyJsTempException = JsToPyException(var.get('RangeError')(Js('Invalid time value'))) raise PyJsTempException var.put('d', var.get(u"this")) var.put('y', var.get('d').callprop('getUTCFullYear')) var.put('m', var.get('d').callprop('getUTCMilliseconds')) var.put('s', (Js('-') if (var.get('y')Js(9999.0)) else Js('')))) def PyJs_LONG_105_(var=var): return (((((((((var.get('s')+(Js('00000')+var.get('Math').callprop('abs', var.get('y'))).callprop('slice', ((-Js(6.0)) if var.get('s') else (-Js(4.0)))))+Js('-'))+var.get('lz')((var.get('d').callprop('getUTCMonth')+Js(1.0))))+Js('-'))+var.get('lz')(var.get('d').callprop('getUTCDate')))+Js('T'))+var.get('lz')(var.get('d').callprop('getUTCHours')))+Js(':'))+var.get('lz')(var.get('d').callprop('getUTCMinutes'))) return (((((PyJs_LONG_105_()+Js(':'))+var.get('lz')(var.get('d').callprop('getUTCSeconds')))+Js('.'))+(var.get('m') if (var.get('m')>Js(99.0)) else (Js('0')+var.get('lz')(var.get('m')))))+Js('Z')) PyJs_toISOString_104_._set_name('toISOString') @Js def PyJs_anonymous_106_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return (var.get('$toISOString').callprop('call', var.get('Date').create(((-Js(50000000000000.0))-Js(1.0))))!=Js('0385-07-25T07:06:39.999Z')) PyJs_anonymous_106_._set_name('anonymous') @Js def PyJs_anonymous_107_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('$toISOString').callprop('call', var.get('Date').create(var.get('NaN'))) PyJs_anonymous_107_._set_name('anonymous') var.get('module').put('exports', (PyJs_toISOString_104_ if (var.get('fails')(PyJs_anonymous_106_) or var.get('fails')(PyJs_anonymous_107_).neg()) else var.get('$toISOString'))) PyJs_anonymous_102_._set_name('anonymous') @Js def PyJs_anonymous_108_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toPrimitive', 'NUMBER', 'exports', 'module', 'anObject']) Js('use strict') var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('toPrimitive', var.get('require')(Js('./_to-primitive'))) var.put('NUMBER', Js('number')) @Js def PyJs_anonymous_109_(hint, this, arguments, var=var): var = Scope({'hint':hint, 'this':this, 'arguments':arguments}, var) var.registers(['hint']) if ((PyJsStrictNeq(var.get('hint'),Js('string')) and PyJsStrictNeq(var.get('hint'),var.get('NUMBER'))) and PyJsStrictNeq(var.get('hint'),Js('default'))): PyJsTempException = JsToPyException(var.get('TypeError')(Js('Incorrect hint'))) raise PyJsTempException return var.get('toPrimitive')(var.get('anObject')(var.get(u"this")), (var.get('hint')!=var.get('NUMBER'))) PyJs_anonymous_109_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_109_) PyJs_anonymous_108_._set_name('anonymous') @Js def PyJs_anonymous_110_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_111_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) if (var.get('it')==var.get('undefined')): PyJsTempException = JsToPyException(var.get('TypeError')((Js("Can't call method on ")+var.get('it')))) raise PyJsTempException return var.get('it') PyJs_anonymous_111_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_111_) PyJs_anonymous_110_._set_name('anonymous') @Js def PyJs_anonymous_112_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_113_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_get_114_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_114_}, var) var.registers([]) return Js(7.0) PyJs_get_114_._set_name('get') return (var.get('Object').callprop('defineProperty', Js({}), Js('a'), Js({'get':PyJs_get_114_})).get('a')!=Js(7.0)) PyJs_anonymous_113_._set_name('anonymous') var.get('module').put('exports', var.get('require')(Js('./_fails'))(PyJs_anonymous_113_).neg()) PyJs_anonymous_112_._set_name('anonymous') @Js def PyJs_anonymous_115_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['document', 'require', 'is', 'exports', 'module', 'isObject']) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('document', var.get('require')(Js('./_global')).get('document')) var.put('is', (var.get('isObject')(var.get('document')) and var.get('isObject')(var.get('document').get('createElement')))) @Js def PyJs_anonymous_116_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return (var.get('document').callprop('createElement', var.get('it')) if var.get('is') else Js({})) PyJs_anonymous_116_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_116_) PyJs_anonymous_115_._set_name('anonymous') @Js def PyJs_anonymous_117_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('module').put('exports', Js('constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf').callprop('split', Js(','))) PyJs_anonymous_117_._set_name('anonymous') @Js def PyJs_anonymous_118_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'getKeys', 'pIE', 'gOPS', 'exports', 'module']) var.put('getKeys', var.get('require')(Js('./_object-keys'))) var.put('gOPS', var.get('require')(Js('./_object-gops'))) var.put('pIE', var.get('require')(Js('./_object-pie'))) @Js def PyJs_anonymous_119_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it', 'symbols', 'i', 'result', 'getSymbols', 'isEnum', 'key']) var.put('result', var.get('getKeys')(var.get('it'))) var.put('getSymbols', var.get('gOPS').get('f')) if var.get('getSymbols'): var.put('symbols', var.get('getSymbols')(var.get('it'))) var.put('isEnum', var.get('pIE').get('f')) var.put('i', Js(0.0)) pass while (var.get('symbols').get('length')>var.get('i')): if var.get('isEnum').callprop('call', var.get('it'), var.put('key', var.get('symbols').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))): var.get('result').callprop('push', var.get('key')) return var.get('result') PyJs_anonymous_119_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_119_) PyJs_anonymous_118_._set_name('anonymous') @Js def PyJs_anonymous_120_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['core', 'PROTOTYPE', 'hide', 'require', 'redefine', '$export', 'exports', 'module', 'ctx', 'global']) var.put('global', var.get('require')(Js('./_global'))) var.put('core', var.get('require')(Js('./_core'))) var.put('hide', var.get('require')(Js('./_hide'))) var.put('redefine', var.get('require')(Js('./_redefine'))) var.put('ctx', var.get('require')(Js('./_ctx'))) var.put('PROTOTYPE', Js('prototype')) @Js def PyJs_InlineNonPyName_121_(type, name, source, this, arguments, var=var): var = Scope({'type':type, 'name':name, 'source':source, 'this':this, 'arguments':arguments, '$export':PyJs_InlineNonPyName_121_}, var) var.registers(['expProto', 'target', 'IS_BIND', 'IS_STATIC', 'type', 'source', 'exports', 'IS_PROTO', 'out', 'name', 'key', 'IS_FORCED', 'own', 'exp', 'IS_GLOBAL']) var.put('IS_FORCED', (var.get('type')&var.get('$export').get('F'))) var.put('IS_GLOBAL', (var.get('type')&var.get('$export').get('G'))) var.put('IS_STATIC', (var.get('type')&var.get('$export').get('S'))) var.put('IS_PROTO', (var.get('type')&var.get('$export').get('P'))) var.put('IS_BIND', (var.get('type')&var.get('$export').get('B'))) var.put('target', (var.get('global') if var.get('IS_GLOBAL') else ((var.get('global').get(var.get('name')) or var.get('global').put(var.get('name'), Js({}))) if var.get('IS_STATIC') else (var.get('global').get(var.get('name')) or Js({})).get(var.get('PROTOTYPE'))))) var.put('exports', (var.get('core') if var.get('IS_GLOBAL') else (var.get('core').get(var.get('name')) or var.get('core').put(var.get('name'), Js({}))))) var.put('expProto', (var.get('exports').get(var.get('PROTOTYPE')) or var.get('exports').put(var.get('PROTOTYPE'), Js({})))) pass if var.get('IS_GLOBAL'): var.put('source', var.get('name')) for PyJsTemp in var.get('source'): var.put('key', PyJsTemp) var.put('own', ((var.get('IS_FORCED').neg() and var.get('target')) and PyJsStrictNeq(var.get('target').get(var.get('key')),var.get('undefined')))) var.put('out', (var.get('target') if var.get('own') else var.get('source')).get(var.get('key'))) var.put('exp', (var.get('ctx')(var.get('out'), var.get('global')) if (var.get('IS_BIND') and var.get('own')) else (var.get('ctx')(var.get('Function').get('call'), var.get('out')) if (var.get('IS_PROTO') and (var.get('out',throw=False).typeof()==Js('function'))) else var.get('out')))) if var.get('target'): var.get('redefine')(var.get('target'), var.get('key'), var.get('out'), (var.get('type')&var.get('$export').get('U'))) if (var.get('exports').get(var.get('key'))!=var.get('out')): var.get('hide')(var.get('exports'), var.get('key'), var.get('exp')) if (var.get('IS_PROTO') and (var.get('expProto').get(var.get('key'))!=var.get('out'))): var.get('expProto').put(var.get('key'), var.get('out')) PyJs_InlineNonPyName_121_._set_name('$export') var.put('$export', PyJs_InlineNonPyName_121_) var.get('global').put('core', var.get('core')) var.get('$export').put('F', Js(1.0)) var.get('$export').put('G', Js(2.0)) var.get('$export').put('S', Js(4.0)) var.get('$export').put('P', Js(8.0)) var.get('$export').put('B', Js(16.0)) var.get('$export').put('W', Js(32.0)) var.get('$export').put('U', Js(64.0)) var.get('$export').put('R', Js(128.0)) var.get('module').put('exports', var.get('$export')) PyJs_anonymous_120_._set_name('anonymous') @Js def PyJs_anonymous_122_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'MATCH', 'module', 'exports']) var.put('MATCH', var.get('require')(Js('./_wks'))(Js('match'))) @Js def PyJs_anonymous_123_(KEY, this, arguments, var=var): var = Scope({'KEY':KEY, 'this':this, 'arguments':arguments}, var) var.registers(['re', 'KEY']) var.put('re', JsRegExp('/./')) try: Js('/./').callprop(var.get('KEY'), var.get('re')) except PyJsException as PyJsTempException: PyJsHolder_65_39574769 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: try: var.get('re').put(var.get('MATCH'), Js(False)) return Js('/./').callprop(var.get('KEY'), var.get('re')).neg() except PyJsException as PyJsTempException: PyJsHolder_66_54701817 = var.own.get('f') var.force_own_put('f', PyExceptionToJs(PyJsTempException)) try: pass finally: if PyJsHolder_66_54701817 is not None: var.own['f'] = PyJsHolder_66_54701817 else: del var.own['f'] del PyJsHolder_66_54701817 finally: if PyJsHolder_65_39574769 is not None: var.own['e'] = PyJsHolder_65_39574769 else: del var.own['e'] del PyJsHolder_65_39574769 return Js(True) PyJs_anonymous_123_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_123_) PyJs_anonymous_122_._set_name('anonymous') @Js def PyJs_anonymous_124_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_125_(exec, this, arguments, var=var): var = Scope({'exec':exec, 'this':this, 'arguments':arguments}, var) var.registers(['exec']) try: return var.get('exec')().neg().neg() except PyJsException as PyJsTempException: PyJsHolder_65_92210443 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: return Js(True) finally: if PyJsHolder_65_92210443 is not None: var.own['e'] = PyJsHolder_65_92210443 else: del var.own['e'] del PyJsHolder_65_92210443 PyJs_anonymous_125_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_125_) PyJs_anonymous_124_._set_name('anonymous') @Js def PyJs_anonymous_126_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'defined', 'hide', 'wks', 'SPECIES', 'redefine', 'REPLACE_SUPPORTS_NAMED_GROUPS', 'exports', 'module', 'SPLIT_WORKS_WITH_OVERWRITTEN_EXEC', 'fails', 'regexpExec']) Js('use strict') var.get('require')(Js('./es6.regexp.exec')) var.put('redefine', var.get('require')(Js('./_redefine'))) var.put('hide', var.get('require')(Js('./_hide'))) var.put('fails', var.get('require')(Js('./_fails'))) var.put('defined', var.get('require')(Js('./_defined'))) var.put('wks', var.get('require')(Js('./_wks'))) var.put('regexpExec', var.get('require')(Js('./_regexp-exec'))) var.put('SPECIES', var.get('wks')(Js('species'))) @Js def PyJs_anonymous_127_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['re']) var.put('re', JsRegExp('/./')) @Js def PyJs_anonymous_128_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['result']) var.put('result', Js([])) var.get('result').put('groups', Js({'a':Js('7')})) return var.get('result') PyJs_anonymous_128_._set_name('anonymous') var.get('re').put('exec', PyJs_anonymous_128_) return PyJsStrictNeq(Js('').callprop('replace', var.get('re'), Js('$')),Js('7')) PyJs_anonymous_127_._set_name('anonymous') var.put('REPLACE_SUPPORTS_NAMED_GROUPS', var.get('fails')(PyJs_anonymous_127_).neg()) @Js def PyJs_anonymous_129_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['re', 'result', 'originalExec']) var.put('re', JsRegExp('/(?:)/')) var.put('originalExec', var.get('re').get('exec')) @Js def PyJs_anonymous_130_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return var.get('originalExec').callprop('apply', var.get(u"this"), var.get('arguments')) PyJs_anonymous_130_._set_name('anonymous') var.get('re').put('exec', PyJs_anonymous_130_) var.put('result', Js('ab').callprop('split', var.get('re'))) return ((PyJsStrictEq(var.get('result').get('length'),Js(2.0)) and PyJsStrictEq(var.get('result').get('0'),Js('a'))) and PyJsStrictEq(var.get('result').get('1'),Js('b'))) PyJs_anonymous_129_._set_name('anonymous') var.put('SPLIT_WORKS_WITH_OVERWRITTEN_EXEC', PyJs_anonymous_129_()) @Js def PyJs_anonymous_131_(KEY, length, exec, this, arguments, var=var): var = Scope({'KEY':KEY, 'length':length, 'exec':exec, 'this':this, 'arguments':arguments}, var) var.registers(['SYMBOL', 'KEY', 'fns', 'nativeRegExpMethod', 'strfn', 'length', 'rxfn', 'exec', 'DELEGATES_TO_SYMBOL', 'DELEGATES_TO_EXEC']) var.put('SYMBOL', var.get('wks')(var.get('KEY'))) @Js def PyJs_anonymous_132_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['O']) var.put('O', Js({})) @Js def PyJs_anonymous_133_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return Js(7.0) PyJs_anonymous_133_._set_name('anonymous') var.get('O').put(var.get('SYMBOL'), PyJs_anonymous_133_) return (Js('').callprop(var.get('KEY'), var.get('O'))!=Js(7.0)) PyJs_anonymous_132_._set_name('anonymous') var.put('DELEGATES_TO_SYMBOL', var.get('fails')(PyJs_anonymous_132_).neg()) @Js def PyJs_anonymous_134_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['execCalled', 're']) var.put('execCalled', Js(False)) var.put('re', JsRegExp('/a/')) @Js def PyJs_anonymous_135_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.put('execCalled', Js(True)) return var.get(u"null") PyJs_anonymous_135_._set_name('anonymous') var.get('re').put('exec', PyJs_anonymous_135_) if PyJsStrictEq(var.get('KEY'),Js('split')): var.get('re').put('constructor', Js({})) @Js def PyJs_anonymous_136_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return var.get('re') PyJs_anonymous_136_._set_name('anonymous') var.get('re').get('constructor').put(var.get('SPECIES'), PyJs_anonymous_136_) var.get('re').callprop(var.get('SYMBOL'), Js('')) return var.get('execCalled').neg() PyJs_anonymous_134_._set_name('anonymous') var.put('DELEGATES_TO_EXEC', (var.get('fails')(PyJs_anonymous_134_).neg() if var.get('DELEGATES_TO_SYMBOL') else var.get('undefined'))) if (((var.get('DELEGATES_TO_SYMBOL').neg() or var.get('DELEGATES_TO_EXEC').neg()) or (PyJsStrictEq(var.get('KEY'),Js('replace')) and var.get('REPLACE_SUPPORTS_NAMED_GROUPS').neg())) or (PyJsStrictEq(var.get('KEY'),Js('split')) and var.get('SPLIT_WORKS_WITH_OVERWRITTEN_EXEC').neg())): var.put('nativeRegExpMethod', JsRegExp('/./').get(var.get('SYMBOL'))) @Js def PyJs_maybeCallNative_137_(nativeMethod, regexp, str, arg2, forceStringMethod, this, arguments, var=var): var = Scope({'nativeMethod':nativeMethod, 'regexp':regexp, 'str':str, 'arg2':arg2, 'forceStringMethod':forceStringMethod, 'this':this, 'arguments':arguments, 'maybeCallNative':PyJs_maybeCallNative_137_}, var) var.registers(['regexp', 'nativeMethod', 'str', 'forceStringMethod', 'arg2']) if PyJsStrictEq(var.get('regexp').get('exec'),var.get('regexpExec')): if (var.get('DELEGATES_TO_SYMBOL') and var.get('forceStringMethod').neg()): return Js({'done':Js(True),'value':var.get('nativeRegExpMethod').callprop('call', var.get('regexp'), var.get('str'), var.get('arg2'))}) return Js({'done':Js(True),'value':var.get('nativeMethod').callprop('call', var.get('str'), var.get('regexp'), var.get('arg2'))}) return Js({'done':Js(False)}) PyJs_maybeCallNative_137_._set_name('maybeCallNative') var.put('fns', var.get('exec')(var.get('defined'), var.get('SYMBOL'), Js('').get(var.get('KEY')), PyJs_maybeCallNative_137_)) var.put('strfn', var.get('fns').get('0')) var.put('rxfn', var.get('fns').get('1')) var.get('redefine')(var.get('String').get('prototype'), var.get('KEY'), var.get('strfn')) @Js def PyJs_anonymous_138_(string, arg, this, arguments, var=var): var = Scope({'string':string, 'arg':arg, 'this':this, 'arguments':arguments}, var) var.registers(['string', 'arg']) return var.get('rxfn').callprop('call', var.get('string'), var.get(u"this"), var.get('arg')) PyJs_anonymous_138_._set_name('anonymous') @Js def PyJs_anonymous_139_(string, this, arguments, var=var): var = Scope({'string':string, 'this':this, 'arguments':arguments}, var) var.registers(['string']) return var.get('rxfn').callprop('call', var.get('string'), var.get(u"this")) PyJs_anonymous_139_._set_name('anonymous') var.get('hide')(var.get('RegExp').get('prototype'), var.get('SYMBOL'), (PyJs_anonymous_138_ if (var.get('length')==Js(2.0)) else PyJs_anonymous_139_)) PyJs_anonymous_131_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_131_) PyJs_anonymous_126_._set_name('anonymous') @Js def PyJs_anonymous_140_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'anObject', 'exports']) Js('use strict') var.put('anObject', var.get('require')(Js('./_an-object'))) @Js def PyJs_anonymous_141_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['result', 'that']) var.put('that', var.get('anObject')(var.get(u"this"))) var.put('result', Js('')) if var.get('that').get('global'): var.put('result', Js('g'), '+') if var.get('that').get('ignoreCase'): var.put('result', Js('i'), '+') if var.get('that').get('multiline'): var.put('result', Js('m'), '+') if var.get('that').get('unicode'): var.put('result', Js('u'), '+') if var.get('that').get('sticky'): var.put('result', Js('y'), '+') return var.get('result') PyJs_anonymous_141_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_141_) PyJs_anonymous_140_._set_name('anonymous') @Js def PyJs_anonymous_142_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'flattenIntoArray', 'IS_CONCAT_SPREADABLE', 'isArray', 'module', 'exports', 'ctx', 'isObject']) @Js def PyJsHoisted_flattenIntoArray_(target, original, source, sourceLen, start, depth, mapper, thisArg, this, arguments, var=var): var = Scope({'target':target, 'original':original, 'source':source, 'sourceLen':sourceLen, 'start':start, 'depth':depth, 'mapper':mapper, 'thisArg':thisArg, 'this':this, 'arguments':arguments}, var) var.registers(['mapFn', 'target', 'depth', 'sourceIndex', 'original', 'source', 'sourceLen', 'start', 'targetIndex', 'spreadable', 'mapper', 'thisArg', 'element']) var.put('targetIndex', var.get('start')) var.put('sourceIndex', Js(0.0)) var.put('mapFn', (var.get('ctx')(var.get('mapper'), var.get('thisArg'), Js(3.0)) if var.get('mapper') else Js(False))) pass while (var.get('sourceIndex')Js(0.0))): var.put('targetIndex', (var.get('flattenIntoArray')(var.get('target'), var.get('original'), var.get('element'), var.get('toLength')(var.get('element').get('length')), var.get('targetIndex'), (var.get('depth')-Js(1.0)))-Js(1.0))) else: if (var.get('targetIndex')>=Js(9007199254740991)): PyJsTempException = JsToPyException(var.get('TypeError')()) raise PyJsTempException var.get('target').put(var.get('targetIndex'), var.get('element')) (var.put('targetIndex',Js(var.get('targetIndex').to_number())+Js(1))-Js(1)) (var.put('sourceIndex',Js(var.get('sourceIndex').to_number())+Js(1))-Js(1)) return var.get('targetIndex') PyJsHoisted_flattenIntoArray_.func_name = 'flattenIntoArray' var.put('flattenIntoArray', PyJsHoisted_flattenIntoArray_) Js('use strict') var.put('isArray', var.get('require')(Js('./_is-array'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('ctx', var.get('require')(Js('./_ctx'))) var.put('IS_CONCAT_SPREADABLE', var.get('require')(Js('./_wks'))(Js('isConcatSpreadable'))) pass var.get('module').put('exports', var.get('flattenIntoArray')) PyJs_anonymous_142_._set_name('anonymous') @Js def PyJs_anonymous_143_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'getIterFn', 'BREAK', 'toLength', 'isArrayIter', 'call', 'exports', 'module', 'ctx', 'RETURN', 'anObject']) var.put('ctx', var.get('require')(Js('./_ctx'))) var.put('call', var.get('require')(Js('./_iter-call'))) var.put('isArrayIter', var.get('require')(Js('./_is-array-iter'))) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('getIterFn', var.get('require')(Js('./core.get-iterator-method'))) var.put('BREAK', Js({})) var.put('RETURN', Js({})) @Js def PyJs_anonymous_144_(iterable, entries, fn, that, ITERATOR, this, arguments, var=var): var = Scope({'iterable':iterable, 'entries':entries, 'fn':fn, 'that':that, 'ITERATOR':ITERATOR, 'this':this, 'arguments':arguments}, var) var.registers(['f', 'iterator', 'index', 'length', 'ITERATOR', 'fn', 'that', 'result', 'step', 'iterFn', 'iterable', 'entries']) @Js def PyJs_anonymous_145_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return var.get('iterable') PyJs_anonymous_145_._set_name('anonymous') var.put('iterFn', (PyJs_anonymous_145_ if var.get('ITERATOR') else var.get('getIterFn')(var.get('iterable')))) var.put('f', var.get('ctx')(var.get('fn'), var.get('that'), (Js(2.0) if var.get('entries') else Js(1.0)))) var.put('index', Js(0.0)) pass if (var.get('iterFn',throw=False).typeof()!=Js('function')): PyJsTempException = JsToPyException(var.get('TypeError')((var.get('iterable')+Js(' is not iterable!')))) raise PyJsTempException if var.get('isArrayIter')(var.get('iterFn')): #for JS loop var.put('length', var.get('toLength')(var.get('iterable').get('length'))) while (var.get('length')>var.get('index')): try: var.put('result', (var.get('f')(var.get('anObject')(var.put('step', var.get('iterable').get(var.get('index')))).get('0'), var.get('step').get('1')) if var.get('entries') else var.get('f')(var.get('iterable').get(var.get('index'))))) if (PyJsStrictEq(var.get('result'),var.get('BREAK')) or PyJsStrictEq(var.get('result'),var.get('RETURN'))): return var.get('result') finally: (var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)) else: #for JS loop var.put('iterator', var.get('iterFn').callprop('call', var.get('iterable'))) while var.put('step', var.get('iterator').callprop('next')).get('done').neg(): var.put('result', var.get('call')(var.get('iterator'), var.get('f'), var.get('step').get('value'), var.get('entries'))) if (PyJsStrictEq(var.get('result'),var.get('BREAK')) or PyJsStrictEq(var.get('result'),var.get('RETURN'))): return var.get('result') PyJs_anonymous_144_._set_name('anonymous') var.put('exports', var.get('module').put('exports', PyJs_anonymous_144_)) var.get('exports').put('BREAK', var.get('BREAK')) var.get('exports').put('RETURN', var.get('RETURN')) PyJs_anonymous_143_._set_name('anonymous') @Js def PyJs_anonymous_146_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('module').put('exports', var.get('require')(Js('./_shared'))(Js('native-function-to-string'), var.get('Function').get('toString'))) PyJs_anonymous_146_._set_name('anonymous') @Js def PyJs_anonymous_147_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'global', 'module', 'exports']) var.put('global', var.get('module').put('exports', (var.get('window') if ((var.get('window',throw=False).typeof()!=Js('undefined')) and (var.get('window').get('Math')==var.get('Math'))) else (var.get('self') if ((var.get('self',throw=False).typeof()!=Js('undefined')) and (var.get('self').get('Math')==var.get('Math'))) else var.get('Function')(Js('return this'))())))) if (var.get('__g',throw=False).typeof()==Js('number')): var.put('__g', var.get('global')) PyJs_anonymous_147_._set_name('anonymous') @Js def PyJs_anonymous_148_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['hasOwnProperty', 'require', 'module', 'exports']) var.put('hasOwnProperty', Js({}).get('hasOwnProperty')) @Js def PyJs_anonymous_149_(it, key, this, arguments, var=var): var = Scope({'it':it, 'key':key, 'this':this, 'arguments':arguments}, var) var.registers(['it', 'key']) return var.get('hasOwnProperty').callprop('call', var.get('it'), var.get('key')) PyJs_anonymous_149_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_149_) PyJs_anonymous_148_._set_name('anonymous') @Js def PyJs_anonymous_150_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'exports', 'module', 'createDesc', 'dP']) var.put('dP', var.get('require')(Js('./_object-dp'))) var.put('createDesc', var.get('require')(Js('./_property-desc'))) @Js def PyJs_anonymous_151_(object, key, value, this, arguments, var=var): var = Scope({'object':object, 'key':key, 'value':value, 'this':this, 'arguments':arguments}, var) var.registers(['value', 'object', 'key']) return var.get('dP').callprop('f', var.get('object'), var.get('key'), var.get('createDesc')(Js(1.0), var.get('value'))) PyJs_anonymous_151_._set_name('anonymous') @Js def PyJs_anonymous_152_(object, key, value, this, arguments, var=var): var = Scope({'object':object, 'key':key, 'value':value, 'this':this, 'arguments':arguments}, var) var.registers(['value', 'object', 'key']) var.get('object').put(var.get('key'), var.get('value')) return var.get('object') PyJs_anonymous_152_._set_name('anonymous') var.get('module').put('exports', (PyJs_anonymous_151_ if var.get('require')(Js('./_descriptors')) else PyJs_anonymous_152_)) PyJs_anonymous_150_._set_name('anonymous') @Js def PyJs_anonymous_153_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['document', 'module', 'require', 'exports']) var.put('document', var.get('require')(Js('./_global')).get('document')) var.get('module').put('exports', (var.get('document') and var.get('document').get('documentElement'))) PyJs_anonymous_153_._set_name('anonymous') @Js def PyJs_anonymous_154_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_155_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_get_156_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_156_}, var) var.registers([]) return Js(7.0) PyJs_get_156_._set_name('get') return (var.get('Object').callprop('defineProperty', var.get('require')(Js('./_dom-create'))(Js('div')), Js('a'), Js({'get':PyJs_get_156_})).get('a')!=Js(7.0)) PyJs_anonymous_155_._set_name('anonymous') var.get('module').put('exports', (var.get('require')(Js('./_descriptors')).neg() and var.get('require')(Js('./_fails'))(PyJs_anonymous_155_).neg())) PyJs_anonymous_154_._set_name('anonymous') @Js def PyJs_anonymous_157_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'exports', 'setPrototypeOf', 'module', 'isObject']) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('setPrototypeOf', var.get('require')(Js('./_set-proto')).get('set')) @Js def PyJs_anonymous_158_(that, target, C, this, arguments, var=var): var = Scope({'that':that, 'target':target, 'C':C, 'this':this, 'arguments':arguments}, var) var.registers(['target', 'C', 'that', 'S', 'P']) var.put('S', var.get('target').get('constructor')) pass if ((((PyJsStrictNeq(var.get('S'),var.get('C')) and (var.get('S',throw=False).typeof()==Js('function'))) and PyJsStrictNeq(var.put('P', var.get('S').get('prototype')),var.get('C').get('prototype'))) and var.get('isObject')(var.get('P'))) and var.get('setPrototypeOf')): var.get('setPrototypeOf')(var.get('that'), var.get('P')) return var.get('that') PyJs_anonymous_158_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_158_) PyJs_anonymous_157_._set_name('anonymous') @Js def PyJs_anonymous_159_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_160_(fn, args, that, this, arguments, var=var): var = Scope({'fn':fn, 'args':args, 'that':that, 'this':this, 'arguments':arguments}, var) var.registers(['fn', 'that', 'args', 'un']) var.put('un', PyJsStrictEq(var.get('that'),var.get('undefined'))) while 1: SWITCHED = False CONDITION = (var.get('args').get('length')) if SWITCHED or PyJsStrictEq(CONDITION, Js(0.0)): SWITCHED = True return (var.get('fn')() if var.get('un') else var.get('fn').callprop('call', var.get('that'))) if SWITCHED or PyJsStrictEq(CONDITION, Js(1.0)): SWITCHED = True return (var.get('fn')(var.get('args').get('0')) if var.get('un') else var.get('fn').callprop('call', var.get('that'), var.get('args').get('0'))) if SWITCHED or PyJsStrictEq(CONDITION, Js(2.0)): SWITCHED = True return (var.get('fn')(var.get('args').get('0'), var.get('args').get('1')) if var.get('un') else var.get('fn').callprop('call', var.get('that'), var.get('args').get('0'), var.get('args').get('1'))) if SWITCHED or PyJsStrictEq(CONDITION, Js(3.0)): SWITCHED = True return (var.get('fn')(var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2')) if var.get('un') else var.get('fn').callprop('call', var.get('that'), var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2'))) if SWITCHED or PyJsStrictEq(CONDITION, Js(4.0)): SWITCHED = True return (var.get('fn')(var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2'), var.get('args').get('3')) if var.get('un') else var.get('fn').callprop('call', var.get('that'), var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2'), var.get('args').get('3'))) SWITCHED = True break return var.get('fn').callprop('apply', var.get('that'), var.get('args')) PyJs_anonymous_160_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_160_) PyJs_anonymous_159_._set_name('anonymous') @Js def PyJs_anonymous_161_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['cof', 'module', 'require', 'exports']) var.put('cof', var.get('require')(Js('./_cof'))) @Js def PyJs_anonymous_162_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return (var.get('it').callprop('split', Js('')) if (var.get('cof')(var.get('it'))==Js('String')) else var.get('Object')(var.get('it'))) PyJs_anonymous_162_._set_name('anonymous') var.get('module').put('exports', (var.get('Object') if var.get('Object')(Js('z')).callprop('propertyIsEnumerable', Js(0.0)) else PyJs_anonymous_162_)) PyJs_anonymous_161_._set_name('anonymous') @Js def PyJs_anonymous_163_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'ArrayProto', 'ITERATOR', 'exports', 'module', 'Iterators']) var.put('Iterators', var.get('require')(Js('./_iterators'))) var.put('ITERATOR', var.get('require')(Js('./_wks'))(Js('iterator'))) var.put('ArrayProto', var.get('Array').get('prototype')) @Js def PyJs_anonymous_164_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return (PyJsStrictNeq(var.get('it'),var.get('undefined')) and (PyJsStrictEq(var.get('Iterators').get('Array'),var.get('it')) or PyJsStrictEq(var.get('ArrayProto').get(var.get('ITERATOR')),var.get('it')))) PyJs_anonymous_164_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_164_) PyJs_anonymous_163_._set_name('anonymous') @Js def PyJs_anonymous_165_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['cof', 'module', 'require', 'exports']) var.put('cof', var.get('require')(Js('./_cof'))) @Js def PyJs_isArray_166_(arg, this, arguments, var=var): var = Scope({'arg':arg, 'this':this, 'arguments':arguments, 'isArray':PyJs_isArray_166_}, var) var.registers(['arg']) return (var.get('cof')(var.get('arg'))==Js('Array')) PyJs_isArray_166_._set_name('isArray') var.get('module').put('exports', (var.get('Array').get('isArray') or PyJs_isArray_166_)) PyJs_anonymous_165_._set_name('anonymous') @Js def PyJs_anonymous_167_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'floor', 'exports', 'module', 'isObject']) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('floor', var.get('Math').get('floor')) @Js def PyJs_isInteger_168_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isInteger':PyJs_isInteger_168_}, var) var.registers(['it']) return ((var.get('isObject')(var.get('it')).neg() and var.get('isFinite')(var.get('it'))) and PyJsStrictEq(var.get('floor')(var.get('it')),var.get('it'))) PyJs_isInteger_168_._set_name('isInteger') var.get('module').put('exports', PyJs_isInteger_168_) PyJs_anonymous_167_._set_name('anonymous') @Js def PyJs_anonymous_169_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_170_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return (PyJsStrictNeq(var.get('it'),var.get(u"null")) if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('it',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('it'))),Js('object')) else PyJsStrictEq(var.get('it',throw=False).typeof(),Js('function'))) PyJs_anonymous_170_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_170_) PyJs_anonymous_169_._set_name('anonymous') @Js def PyJs_anonymous_171_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'MATCH', 'exports', 'cof', 'module', 'isObject']) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('cof', var.get('require')(Js('./_cof'))) var.put('MATCH', var.get('require')(Js('./_wks'))(Js('match'))) @Js def PyJs_anonymous_172_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it', 'isRegExp']) pass return (var.get('isObject')(var.get('it')) and (var.get('isRegExp').neg().neg() if PyJsStrictNeq(var.put('isRegExp', var.get('it').get(var.get('MATCH'))),var.get('undefined')) else (var.get('cof')(var.get('it'))==Js('RegExp')))) PyJs_anonymous_172_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_172_) PyJs_anonymous_171_._set_name('anonymous') @Js def PyJs_anonymous_173_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'anObject', 'exports']) var.put('anObject', var.get('require')(Js('./_an-object'))) @Js def PyJs_anonymous_174_(iterator, fn, value, entries, this, arguments, var=var): var = Scope({'iterator':iterator, 'fn':fn, 'value':value, 'entries':entries, 'this':this, 'arguments':arguments}, var) var.registers(['iterator', 'fn', 'value', 'ret', 'entries']) try: return (var.get('fn')(var.get('anObject')(var.get('value')).get('0'), var.get('value').get('1')) if var.get('entries') else var.get('fn')(var.get('value'))) except PyJsException as PyJsTempException: PyJsHolder_65_72948994 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: var.put('ret', var.get('iterator').get('return')) if PyJsStrictNeq(var.get('ret'),var.get('undefined')): var.get('anObject')(var.get('ret').callprop('call', var.get('iterator'))) PyJsTempException = JsToPyException(var.get('e')) raise PyJsTempException finally: if PyJsHolder_65_72948994 is not None: var.own['e'] = PyJsHolder_65_72948994 else: del var.own['e'] del PyJsHolder_65_72948994 PyJs_anonymous_174_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_174_) PyJs_anonymous_173_._set_name('anonymous') @Js def PyJs_anonymous_175_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'setToStringTag', 'IteratorPrototype', 'exports', 'module', 'create', 'descriptor']) Js('use strict') var.put('create', var.get('require')(Js('./_object-create'))) var.put('descriptor', var.get('require')(Js('./_property-desc'))) var.put('setToStringTag', var.get('require')(Js('./_set-to-string-tag'))) var.put('IteratorPrototype', Js({})) @Js def PyJs_anonymous_176_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return var.get(u"this") PyJs_anonymous_176_._set_name('anonymous') var.get('require')(Js('./_hide'))(var.get('IteratorPrototype'), var.get('require')(Js('./_wks'))(Js('iterator')), PyJs_anonymous_176_) @Js def PyJs_anonymous_177_(Constructor, NAME, next, this, arguments, var=var): var = Scope({'Constructor':Constructor, 'NAME':NAME, 'next':next, 'this':this, 'arguments':arguments}, var) var.registers(['NAME', 'Constructor', 'next']) var.get('Constructor').put('prototype', var.get('create')(var.get('IteratorPrototype'), Js({'next':var.get('descriptor')(Js(1.0), var.get('next'))}))) var.get('setToStringTag')(var.get('Constructor'), (var.get('NAME')+Js(' Iterator'))) PyJs_anonymous_177_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_177_) PyJs_anonymous_175_._set_name('anonymous') @Js def PyJs_anonymous_178_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'setToStringTag', 'hide', 'ITERATOR', '$iterCreate', 'redefine', 'LIBRARY', '$export', 'exports', 'module', 'FF_ITERATOR', 'returnThis', 'getPrototypeOf', 'KEYS', 'Iterators', 'BUGGY', 'VALUES']) Js('use strict') var.put('LIBRARY', var.get('require')(Js('./_library'))) var.put('$export', var.get('require')(Js('./_export'))) var.put('redefine', var.get('require')(Js('./_redefine'))) var.put('hide', var.get('require')(Js('./_hide'))) var.put('Iterators', var.get('require')(Js('./_iterators'))) var.put('$iterCreate', var.get('require')(Js('./_iter-create'))) var.put('setToStringTag', var.get('require')(Js('./_set-to-string-tag'))) var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo'))) var.put('ITERATOR', var.get('require')(Js('./_wks'))(Js('iterator'))) var.put('BUGGY', (Js([]).get('keys') and Js([]).callprop('keys').contains(Js('next'))).neg()) var.put('FF_ITERATOR', Js('@@iterator')) var.put('KEYS', Js('keys')) var.put('VALUES', Js('values')) @Js def PyJs_returnThis_179_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'returnThis':PyJs_returnThis_179_}, var) var.registers([]) return var.get(u"this") PyJs_returnThis_179_._set_name('returnThis') var.put('returnThis', PyJs_returnThis_179_) @Js def PyJs_anonymous_180_(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED, this, arguments, var=var): var = Scope({'Base':Base, 'NAME':NAME, 'Constructor':Constructor, 'next':next, 'DEFAULT':DEFAULT, 'IS_SET':IS_SET, 'FORCED':FORCED, 'this':this, 'arguments':arguments}, var) var.registers(['proto', 'methods', 'TAG', 'Base', 'DEFAULT', 'IS_SET', 'key', '$anyNative', 'getMethod', 'FORCED', '$default', 'IteratorPrototype', 'next', 'Constructor', 'NAME', '$native', '$entries', 'DEF_VALUES', 'VALUES_BUG']) var.get('$iterCreate')(var.get('Constructor'), var.get('NAME'), var.get('next')) @Js def PyJs_getMethod_181_(kind, this, arguments, var=var): var = Scope({'kind':kind, 'this':this, 'arguments':arguments, 'getMethod':PyJs_getMethod_181_}, var) var.registers(['kind']) if (var.get('BUGGY').neg() and var.get('proto').contains(var.get('kind'))): return var.get('proto').get(var.get('kind')) while 1: SWITCHED = False CONDITION = (var.get('kind')) if SWITCHED or PyJsStrictEq(CONDITION, var.get('KEYS')): SWITCHED = True @Js def PyJs_keys_182_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'keys':PyJs_keys_182_}, var) var.registers([]) return var.get('Constructor').create(var.get(u"this"), var.get('kind')) PyJs_keys_182_._set_name('keys') return PyJs_keys_182_ if SWITCHED or PyJsStrictEq(CONDITION, var.get('VALUES')): SWITCHED = True @Js def PyJs_values_183_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'values':PyJs_values_183_}, var) var.registers([]) return var.get('Constructor').create(var.get(u"this"), var.get('kind')) PyJs_values_183_._set_name('values') return PyJs_values_183_ SWITCHED = True break @Js def PyJs_entries_184_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'entries':PyJs_entries_184_}, var) var.registers([]) return var.get('Constructor').create(var.get(u"this"), var.get('kind')) PyJs_entries_184_._set_name('entries') return PyJs_entries_184_ PyJs_getMethod_181_._set_name('getMethod') var.put('getMethod', PyJs_getMethod_181_) var.put('TAG', (var.get('NAME')+Js(' Iterator'))) var.put('DEF_VALUES', (var.get('DEFAULT')==var.get('VALUES'))) var.put('VALUES_BUG', Js(False)) var.put('proto', var.get('Base').get('prototype')) var.put('$native', ((var.get('proto').get(var.get('ITERATOR')) or var.get('proto').get(var.get('FF_ITERATOR'))) or (var.get('DEFAULT') and var.get('proto').get(var.get('DEFAULT'))))) var.put('$default', (var.get('$native') or var.get('getMethod')(var.get('DEFAULT')))) var.put('$entries', ((var.get('$default') if var.get('DEF_VALUES').neg() else var.get('getMethod')(Js('entries'))) if var.get('DEFAULT') else var.get('undefined'))) var.put('$anyNative', ((var.get('proto').get('entries') or var.get('$native')) if (var.get('NAME')==Js('Array')) else var.get('$native'))) pass if var.get('$anyNative'): var.put('IteratorPrototype', var.get('getPrototypeOf')(var.get('$anyNative').callprop('call', var.get('Base').create()))) if (PyJsStrictNeq(var.get('IteratorPrototype'),var.get('Object').get('prototype')) and var.get('IteratorPrototype').get('next')): var.get('setToStringTag')(var.get('IteratorPrototype'), var.get('TAG'), Js(True)) if (var.get('LIBRARY').neg() and (var.get('IteratorPrototype').get(var.get('ITERATOR')).typeof()!=Js('function'))): var.get('hide')(var.get('IteratorPrototype'), var.get('ITERATOR'), var.get('returnThis')) if ((var.get('DEF_VALUES') and var.get('$native')) and PyJsStrictNeq(var.get('$native').get('name'),var.get('VALUES'))): var.put('VALUES_BUG', Js(True)) @Js def PyJs_values_185_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'values':PyJs_values_185_}, var) var.registers([]) return var.get('$native').callprop('call', var.get(u"this")) PyJs_values_185_._set_name('values') var.put('$default', PyJs_values_185_) if ((var.get('LIBRARY').neg() or var.get('FORCED')) and ((var.get('BUGGY') or var.get('VALUES_BUG')) or var.get('proto').get(var.get('ITERATOR')).neg())): var.get('hide')(var.get('proto'), var.get('ITERATOR'), var.get('$default')) var.get('Iterators').put(var.get('NAME'), var.get('$default')) var.get('Iterators').put(var.get('TAG'), var.get('returnThis')) if var.get('DEFAULT'): var.put('methods', Js({'values':(var.get('$default') if var.get('DEF_VALUES') else var.get('getMethod')(var.get('VALUES'))),'keys':(var.get('$default') if var.get('IS_SET') else var.get('getMethod')(var.get('KEYS'))),'entries':var.get('$entries')})) if var.get('FORCED'): for PyJsTemp in var.get('methods'): var.put('key', PyJsTemp) if var.get('proto').contains(var.get('key')).neg(): var.get('redefine')(var.get('proto'), var.get('key'), var.get('methods').get(var.get('key'))) else: var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*(var.get('BUGGY') or var.get('VALUES_BUG')))), var.get('NAME'), var.get('methods')) return var.get('methods') PyJs_anonymous_180_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_180_) PyJs_anonymous_178_._set_name('anonymous') @Js def PyJs_anonymous_186_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'riter', 'ITERATOR', 'exports', 'module', 'SAFE_CLOSING']) var.put('ITERATOR', var.get('require')(Js('./_wks'))(Js('iterator'))) var.put('SAFE_CLOSING', Js(False)) try: var.put('riter', Js([Js(7.0)]).callprop(var.get('ITERATOR'))) @Js def PyJs_anonymous_187_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.put('SAFE_CLOSING', Js(True)) PyJs_anonymous_187_._set_name('anonymous') var.get('riter').put('return', PyJs_anonymous_187_) @Js def PyJs_anonymous_188_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) PyJsTempException = JsToPyException(Js(2.0)) raise PyJsTempException PyJs_anonymous_188_._set_name('anonymous') var.get('Array').callprop('from', var.get('riter'), PyJs_anonymous_188_) except PyJsException as PyJsTempException: PyJsHolder_65_84662025 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: pass finally: if PyJsHolder_65_84662025 is not None: var.own['e'] = PyJsHolder_65_84662025 else: del var.own['e'] del PyJsHolder_65_84662025 @Js def PyJs_anonymous_189_(exec, skipClosing, this, arguments, var=var): var = Scope({'exec':exec, 'skipClosing':skipClosing, 'this':this, 'arguments':arguments}, var) var.registers(['iter', 'safe', 'arr', 'exec', 'skipClosing']) if (var.get('skipClosing').neg() and var.get('SAFE_CLOSING').neg()): return Js(False) var.put('safe', Js(False)) try: var.put('arr', Js([Js(7.0)])) var.put('iter', var.get('arr').callprop(var.get('ITERATOR'))) @Js def PyJs_anonymous_190_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return Js({'done':var.put('safe', Js(True))}) PyJs_anonymous_190_._set_name('anonymous') var.get('iter').put('next', PyJs_anonymous_190_) @Js def PyJs_anonymous_191_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return var.get('iter') PyJs_anonymous_191_._set_name('anonymous') var.get('arr').put(var.get('ITERATOR'), PyJs_anonymous_191_) var.get('exec')(var.get('arr')) except PyJsException as PyJsTempException: PyJsHolder_65_98625816 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: pass finally: if PyJsHolder_65_98625816 is not None: var.own['e'] = PyJsHolder_65_98625816 else: del var.own['e'] del PyJsHolder_65_98625816 return var.get('safe') PyJs_anonymous_189_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_189_) PyJs_anonymous_186_._set_name('anonymous') @Js def PyJs_anonymous_192_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_193_(done, value, this, arguments, var=var): var = Scope({'done':done, 'value':value, 'this':this, 'arguments':arguments}, var) var.registers(['value', 'done']) return Js({'value':var.get('value'),'done':var.get('done').neg().neg()}) PyJs_anonymous_193_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_193_) PyJs_anonymous_192_._set_name('anonymous') @Js def PyJs_anonymous_194_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('module').put('exports', Js({})) PyJs_anonymous_194_._set_name('anonymous') @Js def PyJs_anonymous_195_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('module').put('exports', Js(False)) PyJs_anonymous_195_._set_name('anonymous') @Js def PyJs_anonymous_196_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$expm1', 'exports']) var.put('$expm1', var.get('Math').get('expm1')) @Js def PyJs_expm1_197_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'expm1':PyJs_expm1_197_}, var) var.registers(['x']) return (var.get('x') if (var.put('x', (+var.get('x')))==Js(0.0)) else ((var.get('x')+((var.get('x')*var.get('x'))/Js(2.0))) if ((var.get('x')>(-Js(1e-06))) and (var.get('x')Js(22025.465794806718))) or (var.get('$expm1')(Js(10.0))var.get('MAX32')) or (var.get('result')!=var.get('result'))): return (var.get('$sign')*var.get('Infinity')) return (var.get('$sign')*var.get('result')) PyJs_fround_200_._set_name('fround') var.get('module').put('exports', (var.get('Math').get('fround') or PyJs_fround_200_)) PyJs_anonymous_198_._set_name('anonymous') @Js def PyJs_anonymous_201_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_log1p_202_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'log1p':PyJs_log1p_202_}, var) var.registers(['x']) return ((var.get('x')-((var.get('x')*var.get('x'))/Js(2.0))) if ((var.put('x', (+var.get('x')))>(-Js(1e-08))) and (var.get('x')var.get('index')): var.put('S', var.get('IObject')(var.get('arguments').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))))) var.put('keys', (var.get('getKeys')(var.get('S')).callprop('concat', var.get('getSymbols')(var.get('S'))) if var.get('getSymbols') else var.get('getKeys')(var.get('S')))) var.put('length', var.get('keys').get('length')) var.put('j', Js(0.0)) pass while (var.get('length')>var.get('j')): var.put('key', var.get('keys').get((var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1)))) if (var.get('DESCRIPTORS').neg() or var.get('isEnum').callprop('call', var.get('S'), var.get('key'))): var.get('T').put(var.get('key'), var.get('S').get(var.get('key'))) return var.get('T') PyJs_assign_235_._set_name('assign') @Js def PyJs_anonymous_236_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['B', 'K', 'S', 'A']) var.put('A', Js({})) var.put('B', Js({})) var.put('S', var.get('Symbol')()) var.put('K', Js('abcdefghijklmnopqrst')) var.get('A').put(var.get('S'), Js(7.0)) @Js def PyJs_anonymous_237_(k, this, arguments, var=var): var = Scope({'k':k, 'this':this, 'arguments':arguments}, var) var.registers(['k']) var.get('B').put(var.get('k'), var.get('k')) PyJs_anonymous_237_._set_name('anonymous') var.get('K').callprop('split', Js('')).callprop('forEach', PyJs_anonymous_237_) return ((var.get('$assign')(Js({}), var.get('A')).get(var.get('S'))!=Js(7.0)) or (var.get('Object').callprop('keys', var.get('$assign')(Js({}), var.get('B'))).callprop('join', Js(''))!=var.get('K'))) PyJs_anonymous_236_._set_name('anonymous') var.get('module').put('exports', (PyJs_assign_235_ if (var.get('$assign').neg() or var.get('require')(Js('./_fails'))(PyJs_anonymous_236_)) else var.get('$assign'))) PyJs_anonymous_234_._set_name('anonymous') @Js def PyJs_anonymous_238_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['PROTOTYPE', 'require', 'IE_PROTO', 'enumBugKeys', '_createDict', 'Empty', 'exports', 'module', 'anObject', 'dPs']) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('dPs', var.get('require')(Js('./_object-dps'))) var.put('enumBugKeys', var.get('require')(Js('./_enum-bug-keys'))) var.put('IE_PROTO', var.get('require')(Js('./_shared-key'))(Js('IE_PROTO'))) @Js def PyJs_Empty_239_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'Empty':PyJs_Empty_239_}, var) var.registers([]) pass PyJs_Empty_239_._set_name('Empty') var.put('Empty', PyJs_Empty_239_) var.put('PROTOTYPE', Js('prototype')) @Js def PyJs_createDict_240_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'createDict':PyJs_createDict_240_}, var) var.registers(['lt', 'iframe', 'i', 'iframeDocument', 'gt']) var.put('iframe', var.get('require')(Js('./_dom-create'))(Js('iframe'))) var.put('i', var.get('enumBugKeys').get('length')) var.put('lt', Js('<')) var.put('gt', Js('>')) pass var.get('iframe').get('style').put('display', Js('none')) var.get('require')(Js('./_html')).callprop('appendChild', var.get('iframe')) var.get('iframe').put('src', Js('javascript:')) var.put('iframeDocument', var.get('iframe').get('contentWindow').get('document')) var.get('iframeDocument').callprop('open') var.get('iframeDocument').callprop('write', ((((((var.get('lt')+Js('script'))+var.get('gt'))+Js('document.F=Object'))+var.get('lt'))+Js('/script'))+var.get('gt'))) var.get('iframeDocument').callprop('close') var.put('_createDict', var.get('iframeDocument').get('F')) while (var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1)): var.get('_createDict').get(var.get('PROTOTYPE')).delete(var.get('enumBugKeys').get(var.get('i'))) return var.get('_createDict')() PyJs_createDict_240_._set_name('createDict') var.put('_createDict', PyJs_createDict_240_) @Js def PyJs_create_241_(O, Properties, this, arguments, var=var): var = Scope({'O':O, 'Properties':Properties, 'this':this, 'arguments':arguments, 'create':PyJs_create_241_}, var) var.registers(['Properties', 'O', 'result']) pass if PyJsStrictNeq(var.get('O'),var.get(u"null")): var.get('Empty').put(var.get('PROTOTYPE'), var.get('anObject')(var.get('O'))) var.put('result', var.get('Empty').create()) var.get('Empty').put(var.get('PROTOTYPE'), var.get(u"null")) var.get('result').put(var.get('IE_PROTO'), var.get('O')) else: var.put('result', var.get('_createDict')()) return (var.get('result') if PyJsStrictEq(var.get('Properties'),var.get('undefined')) else var.get('dPs')(var.get('result'), var.get('Properties'))) PyJs_create_241_._set_name('create') var.get('module').put('exports', (var.get('Object').get('create') or PyJs_create_241_)) PyJs_anonymous_238_._set_name('anonymous') @Js def PyJs_anonymous_242_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toPrimitive', 'exports', 'module', 'IE8_DOM_DEFINE', 'dP', 'anObject']) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('IE8_DOM_DEFINE', var.get('require')(Js('./_ie8-dom-define'))) var.put('toPrimitive', var.get('require')(Js('./_to-primitive'))) var.put('dP', var.get('Object').get('defineProperty')) @Js def PyJs_defineProperty_243_(O, P, Attributes, this, arguments, var=var): var = Scope({'O':O, 'P':P, 'Attributes':Attributes, 'this':this, 'arguments':arguments, 'defineProperty':PyJs_defineProperty_243_}, var) var.registers(['Attributes', 'O', 'P']) var.get('anObject')(var.get('O')) var.put('P', var.get('toPrimitive')(var.get('P'), Js(True))) var.get('anObject')(var.get('Attributes')) if var.get('IE8_DOM_DEFINE'): try: return var.get('dP')(var.get('O'), var.get('P'), var.get('Attributes')) except PyJsException as PyJsTempException: PyJsHolder_65_44789280 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: pass finally: if PyJsHolder_65_44789280 is not None: var.own['e'] = PyJsHolder_65_44789280 else: del var.own['e'] del PyJsHolder_65_44789280 if (var.get('Attributes').contains(Js('get')) or var.get('Attributes').contains(Js('set'))): PyJsTempException = JsToPyException(var.get('TypeError')(Js('Accessors not supported!'))) raise PyJsTempException if var.get('Attributes').contains(Js('value')): var.get('O').put(var.get('P'), var.get('Attributes').get('value')) return var.get('O') PyJs_defineProperty_243_._set_name('defineProperty') var.get('exports').put('f', (var.get('Object').get('defineProperty') if var.get('require')(Js('./_descriptors')) else PyJs_defineProperty_243_)) PyJs_anonymous_242_._set_name('anonymous') @Js def PyJs_anonymous_244_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'getKeys', 'exports', 'module', 'dP', 'anObject']) var.put('dP', var.get('require')(Js('./_object-dp'))) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('getKeys', var.get('require')(Js('./_object-keys'))) @Js def PyJs_defineProperties_245_(O, Properties, this, arguments, var=var): var = Scope({'O':O, 'Properties':Properties, 'this':this, 'arguments':arguments, 'defineProperties':PyJs_defineProperties_245_}, var) var.registers(['keys', 'length', 'i', 'O', 'Properties', 'P']) var.get('anObject')(var.get('O')) var.put('keys', var.get('getKeys')(var.get('Properties'))) var.put('length', var.get('keys').get('length')) var.put('i', Js(0.0)) pass while (var.get('length')>var.get('i')): var.get('dP').callprop('f', var.get('O'), var.put('P', var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))), var.get('Properties').get(var.get('P'))) return var.get('O') PyJs_defineProperties_245_._set_name('defineProperties') var.get('module').put('exports', (var.get('Object').get('defineProperties') if var.get('require')(Js('./_descriptors')) else PyJs_defineProperties_245_)) PyJs_anonymous_244_._set_name('anonymous') @Js def PyJs_anonymous_246_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_247_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['K']) var.put('K', var.get('Math').callprop('random')) @Js def PyJs_anonymous_248_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) pass PyJs_anonymous_248_._set_name('anonymous') var.get('__defineSetter__').callprop('call', var.get(u"null"), var.get('K'), PyJs_anonymous_248_) var.get('require')(Js('./_global')).delete(var.get('K')) PyJs_anonymous_247_._set_name('anonymous') var.get('module').put('exports', (var.get('require')(Js('./_library')) or var.get('require')(Js('./_fails'))(PyJs_anonymous_247_).neg())) PyJs_anonymous_246_._set_name('anonymous') @Js def PyJs_anonymous_249_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toPrimitive', 'toIObject', 'pIE', 'gOPD', 'exports', 'module', 'IE8_DOM_DEFINE', 'createDesc', 'has']) var.put('pIE', var.get('require')(Js('./_object-pie'))) var.put('createDesc', var.get('require')(Js('./_property-desc'))) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('toPrimitive', var.get('require')(Js('./_to-primitive'))) var.put('has', var.get('require')(Js('./_has'))) var.put('IE8_DOM_DEFINE', var.get('require')(Js('./_ie8-dom-define'))) var.put('gOPD', var.get('Object').get('getOwnPropertyDescriptor')) @Js def PyJs_getOwnPropertyDescriptor_250_(O, P, this, arguments, var=var): var = Scope({'O':O, 'P':P, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_250_}, var) var.registers(['O', 'P']) var.put('O', var.get('toIObject')(var.get('O'))) var.put('P', var.get('toPrimitive')(var.get('P'), Js(True))) if var.get('IE8_DOM_DEFINE'): try: return var.get('gOPD')(var.get('O'), var.get('P')) except PyJsException as PyJsTempException: PyJsHolder_65_12374525 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: pass finally: if PyJsHolder_65_12374525 is not None: var.own['e'] = PyJsHolder_65_12374525 else: del var.own['e'] del PyJsHolder_65_12374525 if var.get('has')(var.get('O'), var.get('P')): return var.get('createDesc')(var.get('pIE').get('f').callprop('call', var.get('O'), var.get('P')).neg(), var.get('O').get(var.get('P'))) PyJs_getOwnPropertyDescriptor_250_._set_name('getOwnPropertyDescriptor') var.get('exports').put('f', (var.get('gOPD') if var.get('require')(Js('./_descriptors')) else PyJs_getOwnPropertyDescriptor_250_)) PyJs_anonymous_249_._set_name('anonymous') @Js def PyJs_anonymous_251_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'windowNames', 'toIObject', 'gOPN', 'toString', 'exports', 'module', 'getWindowNames']) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('gOPN', var.get('require')(Js('./_object-gopn')).get('f')) var.put('toString', Js({}).get('toString')) var.put('windowNames', (var.get('Object').callprop('getOwnPropertyNames', var.get('window')) if ((((Js('undefined') if PyJsStrictEq(var.get('window',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('window')))==Js('object')) and var.get('window')) and var.get('Object').get('getOwnPropertyNames')) else Js([]))) @Js def PyJs_getWindowNames_252_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getWindowNames':PyJs_getWindowNames_252_}, var) var.registers(['it']) try: return var.get('gOPN')(var.get('it')) except PyJsException as PyJsTempException: PyJsHolder_65_89617369 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: return var.get('windowNames').callprop('slice') finally: if PyJsHolder_65_89617369 is not None: var.own['e'] = PyJsHolder_65_89617369 else: del var.own['e'] del PyJsHolder_65_89617369 PyJs_getWindowNames_252_._set_name('getWindowNames') var.put('getWindowNames', PyJs_getWindowNames_252_) @Js def PyJs_getOwnPropertyNames_253_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getOwnPropertyNames':PyJs_getOwnPropertyNames_253_}, var) var.registers(['it']) return (var.get('getWindowNames')(var.get('it')) if (var.get('windowNames') and (var.get('toString').callprop('call', var.get('it'))==Js('[object Window]'))) else var.get('gOPN')(var.get('toIObject')(var.get('it')))) PyJs_getOwnPropertyNames_253_._set_name('getOwnPropertyNames') var.get('module').get('exports').put('f', PyJs_getOwnPropertyNames_253_) PyJs_anonymous_251_._set_name('anonymous') @Js def PyJs_anonymous_254_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$keys', 'exports', 'module', 'hiddenKeys']) var.put('$keys', var.get('require')(Js('./_object-keys-internal'))) var.put('hiddenKeys', var.get('require')(Js('./_enum-bug-keys')).callprop('concat', Js('length'), Js('prototype'))) @Js def PyJs_getOwnPropertyNames_255_(O, this, arguments, var=var): var = Scope({'O':O, 'this':this, 'arguments':arguments, 'getOwnPropertyNames':PyJs_getOwnPropertyNames_255_}, var) var.registers(['O']) return var.get('$keys')(var.get('O'), var.get('hiddenKeys')) PyJs_getOwnPropertyNames_255_._set_name('getOwnPropertyNames') var.get('exports').put('f', (var.get('Object').get('getOwnPropertyNames') or PyJs_getOwnPropertyNames_255_)) PyJs_anonymous_254_._set_name('anonymous') @Js def PyJs_anonymous_256_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('exports').put('f', var.get('Object').get('getOwnPropertySymbols')) PyJs_anonymous_256_._set_name('anonymous') @Js def PyJs_anonymous_257_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'IE_PROTO', 'toObject', 'exports', 'module', 'ObjectProto', 'has']) var.put('has', var.get('require')(Js('./_has'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('IE_PROTO', var.get('require')(Js('./_shared-key'))(Js('IE_PROTO'))) var.put('ObjectProto', var.get('Object').get('prototype')) @Js def PyJs_anonymous_258_(O, this, arguments, var=var): var = Scope({'O':O, 'this':this, 'arguments':arguments}, var) var.registers(['O']) var.put('O', var.get('toObject')(var.get('O'))) if var.get('has')(var.get('O'), var.get('IE_PROTO')): return var.get('O').get(var.get('IE_PROTO')) if ((var.get('O').get('constructor').typeof()==Js('function')) and var.get('O').instanceof(var.get('O').get('constructor'))): return var.get('O').get('constructor').get('prototype') return (var.get('ObjectProto') if var.get('O').instanceof(var.get('Object')) else var.get(u"null")) PyJs_anonymous_258_._set_name('anonymous') var.get('module').put('exports', (var.get('Object').get('getPrototypeOf') or PyJs_anonymous_258_)) PyJs_anonymous_257_._set_name('anonymous') @Js def PyJs_anonymous_259_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'IE_PROTO', 'arrayIndexOf', 'toIObject', 'exports', 'module', 'has']) var.put('has', var.get('require')(Js('./_has'))) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('arrayIndexOf', var.get('require')(Js('./_array-includes'))(Js(False))) var.put('IE_PROTO', var.get('require')(Js('./_shared-key'))(Js('IE_PROTO'))) @Js def PyJs_anonymous_260_(object, names, this, arguments, var=var): var = Scope({'object':object, 'names':names, 'this':this, 'arguments':arguments}, var) var.registers(['object', 'i', 'O', 'result', 'key', 'names']) var.put('O', var.get('toIObject')(var.get('object'))) var.put('i', Js(0.0)) var.put('result', Js([])) pass for PyJsTemp in var.get('O'): var.put('key', PyJsTemp) if (var.get('key')!=var.get('IE_PROTO')): (var.get('has')(var.get('O'), var.get('key')) and var.get('result').callprop('push', var.get('key'))) while (var.get('names').get('length')>var.get('i')): if var.get('has')(var.get('O'), var.put('key', var.get('names').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))): ((~var.get('arrayIndexOf')(var.get('result'), var.get('key'))) or var.get('result').callprop('push', var.get('key'))) return var.get('result') PyJs_anonymous_260_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_260_) PyJs_anonymous_259_._set_name('anonymous') @Js def PyJs_anonymous_261_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'enumBugKeys', '$keys', 'exports', 'module']) var.put('$keys', var.get('require')(Js('./_object-keys-internal'))) var.put('enumBugKeys', var.get('require')(Js('./_enum-bug-keys'))) @Js def PyJs_keys_262_(O, this, arguments, var=var): var = Scope({'O':O, 'this':this, 'arguments':arguments, 'keys':PyJs_keys_262_}, var) var.registers(['O']) return var.get('$keys')(var.get('O'), var.get('enumBugKeys')) PyJs_keys_262_._set_name('keys') var.get('module').put('exports', (var.get('Object').get('keys') or PyJs_keys_262_)) PyJs_anonymous_261_._set_name('anonymous') @Js def PyJs_anonymous_263_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('exports').put('f', Js({}).get('propertyIsEnumerable')) PyJs_anonymous_263_._set_name('anonymous') @Js def PyJs_anonymous_264_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['core', 'require', '$export', 'exports', 'module', 'fails']) var.put('$export', var.get('require')(Js('./_export'))) var.put('core', var.get('require')(Js('./_core'))) var.put('fails', var.get('require')(Js('./_fails'))) @Js def PyJs_anonymous_265_(KEY, exec, this, arguments, var=var): var = Scope({'KEY':KEY, 'exec':exec, 'this':this, 'arguments':arguments}, var) var.registers(['exp', 'exec', 'fn', 'KEY']) var.put('fn', ((var.get('core').get('Object') or Js({})).get(var.get('KEY')) or var.get('Object').get(var.get('KEY')))) var.put('exp', Js({})) var.get('exp').put(var.get('KEY'), var.get('exec')(var.get('fn'))) @Js def PyJs_anonymous_266_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('fn')(Js(1.0)) PyJs_anonymous_266_._set_name('anonymous') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('fails')(PyJs_anonymous_266_))), Js('Object'), var.get('exp')) PyJs_anonymous_265_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_265_) PyJs_anonymous_264_._set_name('anonymous') @Js def PyJs_anonymous_267_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'getKeys', 'toIObject', 'DESCRIPTORS', 'exports', 'module', 'isEnum']) var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors'))) var.put('getKeys', var.get('require')(Js('./_object-keys'))) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('isEnum', var.get('require')(Js('./_object-pie')).get('f')) @Js def PyJs_anonymous_268_(isEntries, this, arguments, var=var): var = Scope({'isEntries':isEntries, 'this':this, 'arguments':arguments}, var) var.registers(['isEntries']) @Js def PyJs_anonymous_269_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it', 'length', 'i', 'O', 'result', 'key', 'keys']) var.put('O', var.get('toIObject')(var.get('it'))) var.put('keys', var.get('getKeys')(var.get('O'))) var.put('length', var.get('keys').get('length')) var.put('i', Js(0.0)) var.put('result', Js([])) pass while (var.get('length')>var.get('i')): var.put('key', var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))) if (var.get('DESCRIPTORS').neg() or var.get('isEnum').callprop('call', var.get('O'), var.get('key'))): var.get('result').callprop('push', (Js([var.get('key'), var.get('O').get(var.get('key'))]) if var.get('isEntries') else var.get('O').get(var.get('key')))) return var.get('result') PyJs_anonymous_269_._set_name('anonymous') return PyJs_anonymous_269_ PyJs_anonymous_268_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_268_) PyJs_anonymous_267_._set_name('anonymous') @Js def PyJs_anonymous_270_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'Reflect', 'gOPN', 'gOPS', 'exports', 'module', 'anObject']) var.put('gOPN', var.get('require')(Js('./_object-gopn'))) var.put('gOPS', var.get('require')(Js('./_object-gops'))) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('Reflect', var.get('require')(Js('./_global')).get('Reflect')) @Js def PyJs_ownKeys_271_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'ownKeys':PyJs_ownKeys_271_}, var) var.registers(['it', 'getSymbols', 'keys']) var.put('keys', var.get('gOPN').callprop('f', var.get('anObject')(var.get('it')))) var.put('getSymbols', var.get('gOPS').get('f')) return (var.get('keys').callprop('concat', var.get('getSymbols')(var.get('it'))) if var.get('getSymbols') else var.get('keys')) PyJs_ownKeys_271_._set_name('ownKeys') var.get('module').put('exports', ((var.get('Reflect') and var.get('Reflect').get('ownKeys')) or PyJs_ownKeys_271_)) PyJs_anonymous_270_._set_name('anonymous') @Js def PyJs_anonymous_272_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$parseFloat', 'exports', 'module', '$trim']) var.put('$parseFloat', var.get('require')(Js('./_global')).get('parseFloat')) var.put('$trim', var.get('require')(Js('./_string-trim')).get('trim')) @Js def PyJs_parseFloat_273_(str, this, arguments, var=var): var = Scope({'str':str, 'this':this, 'arguments':arguments, 'parseFloat':PyJs_parseFloat_273_}, var) var.registers(['str', 'string', 'result']) var.put('string', var.get('$trim')(var.get('String')(var.get('str')), Js(3.0))) var.put('result', var.get('$parseFloat')(var.get('string'))) return ((-Js(0.0)) if (PyJsStrictEq(var.get('result'),Js(0.0)) and (var.get('string').callprop('charAt', Js(0.0))==Js('-'))) else var.get('result')) PyJs_parseFloat_273_._set_name('parseFloat') var.get('module').put('exports', (PyJs_parseFloat_273_ if PyJsStrictNeq((Js(1.0)/var.get('$parseFloat')((var.get('require')(Js('./_string-ws'))+Js('-0')))),(-var.get('Infinity'))) else var.get('$parseFloat'))) PyJs_anonymous_272_._set_name('anonymous') @Js def PyJs_anonymous_274_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'hex', '$parseInt', 'ws', 'exports', 'module', '$trim']) var.put('$parseInt', var.get('require')(Js('./_global')).get('parseInt')) var.put('$trim', var.get('require')(Js('./_string-trim')).get('trim')) var.put('ws', var.get('require')(Js('./_string-ws'))) var.put('hex', JsRegExp('/^[-+]?0[xX]/')) @Js def PyJs_parseInt_275_(str, radix, this, arguments, var=var): var = Scope({'str':str, 'radix':radix, 'this':this, 'arguments':arguments, 'parseInt':PyJs_parseInt_275_}, var) var.registers(['str', 'string', 'radix']) var.put('string', var.get('$trim')(var.get('String')(var.get('str')), Js(3.0))) return var.get('$parseInt')(var.get('string'), (PyJsBshift(var.get('radix'),Js(0.0)) or (Js(16.0) if var.get('hex').callprop('test', var.get('string')) else Js(10.0)))) PyJs_parseInt_275_._set_name('parseInt') var.get('module').put('exports', (PyJs_parseInt_275_ if (PyJsStrictNeq(var.get('$parseInt')((var.get('ws')+Js('08'))),Js(8.0)) or PyJsStrictNeq(var.get('$parseInt')((var.get('ws')+Js('0x16'))),Js(22.0))) else var.get('$parseInt'))) PyJs_anonymous_274_._set_name('anonymous') @Js def PyJs_anonymous_276_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_277_(exec, this, arguments, var=var): var = Scope({'exec':exec, 'this':this, 'arguments':arguments}, var) var.registers(['exec']) try: return Js({'e':Js(False),'v':var.get('exec')()}) except PyJsException as PyJsTempException: PyJsHolder_65_57087974 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: return Js({'e':Js(True),'v':var.get('e')}) finally: if PyJsHolder_65_57087974 is not None: var.own['e'] = PyJsHolder_65_57087974 else: del var.own['e'] del PyJsHolder_65_57087974 PyJs_anonymous_277_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_277_) PyJs_anonymous_276_._set_name('anonymous') @Js def PyJs_anonymous_278_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'exports', 'module', 'newPromiseCapability', 'isObject', 'anObject']) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('newPromiseCapability', var.get('require')(Js('./_new-promise-capability'))) @Js def PyJs_anonymous_279_(C, x, this, arguments, var=var): var = Scope({'C':C, 'x':x, 'this':this, 'arguments':arguments}, var) var.registers(['C', 'x', 'promiseCapability', 'resolve']) var.get('anObject')(var.get('C')) if (var.get('isObject')(var.get('x')) and PyJsStrictEq(var.get('x').get('constructor'),var.get('C'))): return var.get('x') var.put('promiseCapability', var.get('newPromiseCapability').callprop('f', var.get('C'))) var.put('resolve', var.get('promiseCapability').get('resolve')) var.get('resolve')(var.get('x')) return var.get('promiseCapability').get('promise') PyJs_anonymous_279_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_279_) PyJs_anonymous_278_._set_name('anonymous') @Js def PyJs_anonymous_280_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_281_(bitmap, value, this, arguments, var=var): var = Scope({'bitmap':bitmap, 'value':value, 'this':this, 'arguments':arguments}, var) var.registers(['value', 'bitmap']) return Js({'enumerable':(var.get('bitmap')&Js(1.0)).neg(),'configurable':(var.get('bitmap')&Js(2.0)).neg(),'writable':(var.get('bitmap')&Js(4.0)).neg(),'value':var.get('value')}) PyJs_anonymous_281_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_281_) PyJs_anonymous_280_._set_name('anonymous') @Js def PyJs_anonymous_282_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'redefine', 'module', 'exports']) var.put('redefine', var.get('require')(Js('./_redefine'))) @Js def PyJs_anonymous_283_(target, src, safe, this, arguments, var=var): var = Scope({'target':target, 'src':src, 'safe':safe, 'this':this, 'arguments':arguments}, var) var.registers(['target', 'src', 'key', 'safe']) for PyJsTemp in var.get('src'): var.put('key', PyJsTemp) var.get('redefine')(var.get('target'), var.get('key'), var.get('src').get(var.get('key')), var.get('safe')) return var.get('target') PyJs_anonymous_283_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_283_) PyJs_anonymous_282_._set_name('anonymous') @Js def PyJs_anonymous_284_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'has', 'hide', 'TPL', 'exports', 'module', 'TO_STRING', 'global', '$toString', 'SRC']) var.put('global', var.get('require')(Js('./_global'))) var.put('hide', var.get('require')(Js('./_hide'))) var.put('has', var.get('require')(Js('./_has'))) var.put('SRC', var.get('require')(Js('./_uid'))(Js('src'))) var.put('$toString', var.get('require')(Js('./_function-to-string'))) var.put('TO_STRING', Js('toString')) var.put('TPL', (Js('')+var.get('$toString')).callprop('split', var.get('TO_STRING'))) @Js def PyJs_anonymous_285_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return var.get('$toString').callprop('call', var.get('it')) PyJs_anonymous_285_._set_name('anonymous') var.get('require')(Js('./_core')).put('inspectSource', PyJs_anonymous_285_) @Js def PyJs_toString_286_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_286_}, var) var.registers([]) return (((var.get(u"this",throw=False).typeof()==Js('function')) and var.get(u"this").get(var.get('SRC'))) or var.get('$toString').callprop('call', var.get(u"this"))) PyJs_toString_286_._set_name('toString') @Js def PyJs_anonymous_287_(O, key, val, safe, this, arguments, var=var): var = Scope({'O':O, 'key':key, 'val':val, 'safe':safe, 'this':this, 'arguments':arguments}, var) var.registers(['isFunction', 'safe', 'val', 'O', 'key']) var.put('isFunction', (var.get('val',throw=False).typeof()==Js('function'))) if var.get('isFunction'): (var.get('has')(var.get('val'), Js('name')) or var.get('hide')(var.get('val'), Js('name'), var.get('key'))) if PyJsStrictEq(var.get('O').get(var.get('key')),var.get('val')): return var.get('undefined') if var.get('isFunction'): (var.get('has')(var.get('val'), var.get('SRC')) or var.get('hide')(var.get('val'), var.get('SRC'), ((Js('')+var.get('O').get(var.get('key'))) if var.get('O').get(var.get('key')) else var.get('TPL').callprop('join', var.get('String')(var.get('key')))))) if PyJsStrictEq(var.get('O'),var.get('global')): var.get('O').put(var.get('key'), var.get('val')) else: if var.get('safe').neg(): var.get('O').delete(var.get('key')) var.get('hide')(var.get('O'), var.get('key'), var.get('val')) else: if var.get('O').get(var.get('key')): var.get('O').put(var.get('key'), var.get('val')) else: var.get('hide')(var.get('O'), var.get('key'), var.get('val')) PyJs_anonymous_287_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_287_)(var.get('Function').get('prototype'), var.get('TO_STRING'), PyJs_toString_286_) PyJs_anonymous_284_._set_name('anonymous') @Js def PyJs_anonymous_288_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'builtinExec', 'classof', 'exports', 'module']) Js('use strict') var.put('classof', var.get('require')(Js('./_classof'))) var.put('builtinExec', var.get('RegExp').get('prototype').get('exec')) @Js def PyJs_anonymous_289_(R, S, this, arguments, var=var): var = Scope({'R':R, 'S':S, 'this':this, 'arguments':arguments}, var) var.registers(['result', 'exec', 'S', 'R']) var.put('exec', var.get('R').get('exec')) if PyJsStrictEq(var.get('exec',throw=False).typeof(),Js('function')): var.put('result', var.get('exec').callprop('call', var.get('R'), var.get('S'))) if PyJsStrictNeq((Js('undefined') if PyJsStrictEq(var.get('result',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('result'))),Js('object')): PyJsTempException = JsToPyException(var.get('TypeError').create(Js('RegExp exec method returned something other than an Object or null'))) raise PyJsTempException return var.get('result') if PyJsStrictNeq(var.get('classof')(var.get('R')),Js('RegExp')): PyJsTempException = JsToPyException(var.get('TypeError').create(Js('RegExp#exec called on incompatible receiver'))) raise PyJsTempException return var.get('builtinExec').callprop('call', var.get('R'), var.get('S')) PyJs_anonymous_289_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_289_) PyJs_anonymous_288_._set_name('anonymous') @Js def PyJs_anonymous_290_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'UPDATES_LAST_INDEX_WRONG', 'regexpFlags', 'NPCG_INCLUDED', 'nativeExec', 'PATCH', 'nativeReplace', 'exports', 'LAST_INDEX', 'module', 'patchedExec']) Js('use strict') var.put('regexpFlags', var.get('require')(Js('./_flags'))) var.put('nativeExec', var.get('RegExp').get('prototype').get('exec')) var.put('nativeReplace', var.get('String').get('prototype').get('replace')) var.put('patchedExec', var.get('nativeExec')) var.put('LAST_INDEX', Js('lastIndex')) @Js def PyJs_anonymous_291_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['re2', 're1']) var.put('re1', JsRegExp('/a/')) var.put('re2', JsRegExp('/b*/g')) var.get('nativeExec').callprop('call', var.get('re1'), Js('a')) var.get('nativeExec').callprop('call', var.get('re2'), Js('a')) return (PyJsStrictNeq(var.get('re1').get(var.get('LAST_INDEX')),Js(0.0)) or PyJsStrictNeq(var.get('re2').get(var.get('LAST_INDEX')),Js(0.0))) PyJs_anonymous_291_._set_name('anonymous') var.put('UPDATES_LAST_INDEX_WRONG', PyJs_anonymous_291_()) var.put('NPCG_INCLUDED', PyJsStrictNeq(JsRegExp('/()??/').callprop('exec', Js('')).get('1'),var.get('undefined'))) var.put('PATCH', (var.get('UPDATES_LAST_INDEX_WRONG') or var.get('NPCG_INCLUDED'))) if var.get('PATCH'): @Js def PyJs_exec_292_(str, this, arguments, var=var): var = Scope({'str':str, 'this':this, 'arguments':arguments, 'exec':PyJs_exec_292_}, var) var.registers(['reCopy', 'str', 're', 'i', 'match', 'lastIndex']) var.put('re', var.get(u"this")) pass if var.get('NPCG_INCLUDED'): var.put('reCopy', var.get('RegExp').create(((Js('^')+var.get('re').get('source'))+Js('$(?!\\s)')), var.get('regexpFlags').callprop('call', var.get('re')))) if var.get('UPDATES_LAST_INDEX_WRONG'): var.put('lastIndex', var.get('re').get(var.get('LAST_INDEX'))) var.put('match', var.get('nativeExec').callprop('call', var.get('re'), var.get('str'))) if (var.get('UPDATES_LAST_INDEX_WRONG') and var.get('match')): var.get('re').put(var.get('LAST_INDEX'), ((var.get('match').get('index')+var.get('match').get('0').get('length')) if var.get('re').get('global') else var.get('lastIndex'))) if ((var.get('NPCG_INCLUDED') and var.get('match')) and (var.get('match').get('length')>Js(1.0))): @Js def PyJs_anonymous_293_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) #for JS loop var.put('i', Js(1.0)) while (var.get('i')<(var.get('arguments').get('length')-Js(2.0))): try: if PyJsStrictEq(var.get('arguments').get(var.get('i')),var.get('undefined')): var.get('match').put(var.get('i'), var.get('undefined')) finally: (var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)) PyJs_anonymous_293_._set_name('anonymous') var.get('nativeReplace').callprop('call', var.get('match').get('0'), var.get('reCopy'), PyJs_anonymous_293_) return var.get('match') PyJs_exec_292_._set_name('exec') var.put('patchedExec', PyJs_exec_292_) var.get('module').put('exports', var.get('patchedExec')) PyJs_anonymous_290_._set_name('anonymous') @Js def PyJs_anonymous_294_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_295_(regExp, replace, this, arguments, var=var): var = Scope({'regExp':regExp, 'replace':replace, 'this':this, 'arguments':arguments}, var) var.registers(['replacer', 'replace', 'regExp']) @Js def PyJs_anonymous_296_(part, this, arguments, var=var): var = Scope({'part':part, 'this':this, 'arguments':arguments}, var) var.registers(['part']) return var.get('replace').get(var.get('part')) PyJs_anonymous_296_._set_name('anonymous') var.put('replacer', (PyJs_anonymous_296_ if PyJsStrictEq(var.get('replace'),var.get('Object')(var.get('replace'))) else var.get('replace'))) @Js def PyJs_anonymous_297_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return var.get('String')(var.get('it')).callprop('replace', var.get('regExp'), var.get('replacer')) PyJs_anonymous_297_._set_name('anonymous') return PyJs_anonymous_297_ PyJs_anonymous_295_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_295_) PyJs_anonymous_294_._set_name('anonymous') @Js def PyJs_anonymous_298_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_InlineNonPyName_299_(x, y, this, arguments, var=var): var = Scope({'x':x, 'y':y, 'this':this, 'arguments':arguments, 'is':PyJs_InlineNonPyName_299_}, var) var.registers(['x', 'y']) return ((PyJsStrictNeq(var.get('x'),Js(0.0)) or PyJsStrictEq((Js(1.0)/var.get('x')),(Js(1.0)/var.get('y')))) if PyJsStrictEq(var.get('x'),var.get('y')) else ((var.get('x')!=var.get('x')) and (var.get('y')!=var.get('y')))) PyJs_InlineNonPyName_299_._set_name('is') var.get('module').put('exports', (var.get('Object').get('is') or PyJs_InlineNonPyName_299_)) PyJs_anonymous_298_._set_name('anonymous') @Js def PyJs_anonymous_300_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', '$export', 'exports', 'module', 'forOf', 'ctx']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('ctx', var.get('require')(Js('./_ctx'))) var.put('forOf', var.get('require')(Js('./_for-of'))) @Js def PyJs_anonymous_301_(COLLECTION, this, arguments, var=var): var = Scope({'COLLECTION':COLLECTION, 'this':this, 'arguments':arguments}, var) var.registers(['COLLECTION']) @Js def PyJs_InlineNonPyName_302_(source, this, arguments, var=var): var = Scope({'source':source, 'this':this, 'arguments':arguments, 'from':PyJs_InlineNonPyName_302_}, var) var.registers(['mapFn', 'cb', 'n', 'A', 'source', 'mapping']) var.put('mapFn', var.get('arguments').get('1')) pass var.get('aFunction')(var.get(u"this")) var.put('mapping', PyJsStrictNeq(var.get('mapFn'),var.get('undefined'))) if var.get('mapping'): var.get('aFunction')(var.get('mapFn')) if (var.get('source')==var.get('undefined')): return var.get(u"this").create() var.put('A', Js([])) if var.get('mapping'): var.put('n', Js(0.0)) var.put('cb', var.get('ctx')(var.get('mapFn'), var.get('arguments').get('2'), Js(2.0))) @Js def PyJs_anonymous_303_(nextItem, this, arguments, var=var): var = Scope({'nextItem':nextItem, 'this':this, 'arguments':arguments}, var) var.registers(['nextItem']) var.get('A').callprop('push', var.get('cb')(var.get('nextItem'), (var.put('n',Js(var.get('n').to_number())+Js(1))-Js(1)))) PyJs_anonymous_303_._set_name('anonymous') var.get('forOf')(var.get('source'), Js(False), PyJs_anonymous_303_) else: var.get('forOf')(var.get('source'), Js(False), var.get('A').get('push'), var.get('A')) return var.get(u"this").create(var.get('A')) PyJs_InlineNonPyName_302_._set_name('from') var.get('$export')(var.get('$export').get('S'), var.get('COLLECTION'), Js({'from':PyJs_InlineNonPyName_302_})) PyJs_anonymous_301_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_301_) PyJs_anonymous_300_._set_name('anonymous') @Js def PyJs_anonymous_304_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) @Js def PyJs_anonymous_305_(COLLECTION, this, arguments, var=var): var = Scope({'COLLECTION':COLLECTION, 'this':this, 'arguments':arguments}, var) var.registers(['COLLECTION']) @Js def PyJs_of_306_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'of':PyJs_of_306_}, var) var.registers(['length', 'A']) var.put('length', var.get('arguments').get('length')) var.put('A', var.get('Array').create(var.get('length'))) while (var.put('length',Js(var.get('length').to_number())-Js(1))+Js(1)): var.get('A').put(var.get('length'), var.get('arguments').get(var.get('length'))) return var.get(u"this").create(var.get('A')) PyJs_of_306_._set_name('of') var.get('$export')(var.get('$export').get('S'), var.get('COLLECTION'), Js({'of':PyJs_of_306_})) PyJs_anonymous_305_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_305_) PyJs_anonymous_304_._set_name('anonymous') @Js def PyJs_anonymous_307_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'exports', 'module', 'check', 'isObject', 'anObject']) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('anObject', var.get('require')(Js('./_an-object'))) @Js def PyJs_check_308_(O, proto, this, arguments, var=var): var = Scope({'O':O, 'proto':proto, 'this':this, 'arguments':arguments, 'check':PyJs_check_308_}, var) var.registers(['O', 'proto']) var.get('anObject')(var.get('O')) if (var.get('isObject')(var.get('proto')).neg() and PyJsStrictNeq(var.get('proto'),var.get(u"null"))): PyJsTempException = JsToPyException(var.get('TypeError')((var.get('proto')+Js(": can't set as prototype!")))) raise PyJsTempException PyJs_check_308_._set_name('check') var.put('check', PyJs_check_308_) @Js def PyJs_anonymous_309_(test, buggy, set, this, arguments, var=var): var = Scope({'test':test, 'buggy':buggy, 'set':set, 'this':this, 'arguments':arguments}, var) var.registers(['set', 'test', 'buggy']) try: var.put('set', var.get('require')(Js('./_ctx'))(var.get('Function').get('call'), var.get('require')(Js('./_object-gopd')).callprop('f', var.get('Object').get('prototype'), Js('__proto__')).get('set'), Js(2.0))) var.get('set')(var.get('test'), Js([])) var.put('buggy', var.get('test').instanceof(var.get('Array')).neg()) except PyJsException as PyJsTempException: PyJsHolder_65_54108196 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: var.put('buggy', Js(True)) finally: if PyJsHolder_65_54108196 is not None: var.own['e'] = PyJsHolder_65_54108196 else: del var.own['e'] del PyJsHolder_65_54108196 @Js def PyJs_setPrototypeOf_310_(O, proto, this, arguments, var=var): var = Scope({'O':O, 'proto':proto, 'this':this, 'arguments':arguments, 'setPrototypeOf':PyJs_setPrototypeOf_310_}, var) var.registers(['O', 'proto']) var.get('check')(var.get('O'), var.get('proto')) if var.get('buggy'): var.get('O').put('__proto__', var.get('proto')) else: var.get('set')(var.get('O'), var.get('proto')) return var.get('O') PyJs_setPrototypeOf_310_._set_name('setPrototypeOf') return PyJs_setPrototypeOf_310_ PyJs_anonymous_309_._set_name('anonymous') var.get('module').put('exports', Js({'set':(var.get('Object').get('setPrototypeOf') or (PyJs_anonymous_309_(Js({}), Js(False)) if Js({}).contains(Js('__proto__')) else var.get('undefined'))),'check':var.get('check')})) PyJs_anonymous_307_._set_name('anonymous') @Js def PyJs_anonymous_311_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'SPECIES', 'DESCRIPTORS', 'exports', 'module', 'global', 'dP']) Js('use strict') var.put('global', var.get('require')(Js('./_global'))) var.put('dP', var.get('require')(Js('./_object-dp'))) var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors'))) var.put('SPECIES', var.get('require')(Js('./_wks'))(Js('species'))) @Js def PyJs_anonymous_312_(KEY, this, arguments, var=var): var = Scope({'KEY':KEY, 'this':this, 'arguments':arguments}, var) var.registers(['C', 'KEY']) var.put('C', var.get('global').get(var.get('KEY'))) if ((var.get('DESCRIPTORS') and var.get('C')) and var.get('C').get(var.get('SPECIES')).neg()): @Js def PyJs_get_313_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_313_}, var) var.registers([]) return var.get(u"this") PyJs_get_313_._set_name('get') var.get('dP').callprop('f', var.get('C'), var.get('SPECIES'), Js({'configurable':Js(True),'get':PyJs_get_313_})) PyJs_anonymous_312_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_312_) PyJs_anonymous_311_._set_name('anonymous') @Js def PyJs_anonymous_314_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'def', 'TAG', 'exports', 'module', 'has']) var.put('def', var.get('require')(Js('./_object-dp')).get('f')) var.put('has', var.get('require')(Js('./_has'))) var.put('TAG', var.get('require')(Js('./_wks'))(Js('toStringTag'))) @Js def PyJs_anonymous_315_(it, tag, stat, this, arguments, var=var): var = Scope({'it':it, 'tag':tag, 'stat':stat, 'this':this, 'arguments':arguments}, var) var.registers(['it', 'tag', 'stat']) if (var.get('it') and var.get('has')(var.put('it', (var.get('it') if var.get('stat') else var.get('it').get('prototype'))), var.get('TAG')).neg()): var.get('def')(var.get('it'), var.get('TAG'), Js({'configurable':Js(True),'value':var.get('tag')})) PyJs_anonymous_315_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_315_) PyJs_anonymous_314_._set_name('anonymous') @Js def PyJs_anonymous_316_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'exports', 'shared', 'uid', 'module']) var.put('shared', var.get('require')(Js('./_shared'))(Js('keys'))) var.put('uid', var.get('require')(Js('./_uid'))) @Js def PyJs_anonymous_317_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments}, var) var.registers(['key']) return (var.get('shared').get(var.get('key')) or var.get('shared').put(var.get('key'), var.get('uid')(var.get('key')))) PyJs_anonymous_317_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_317_) PyJs_anonymous_316_._set_name('anonymous') @Js def PyJs_anonymous_318_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['core', 'require', 'SHARED', 'exports', 'store', 'module', 'global']) var.put('core', var.get('require')(Js('./_core'))) var.put('global', var.get('require')(Js('./_global'))) var.put('SHARED', Js('__core-js_shared__')) var.put('store', (var.get('global').get(var.get('SHARED')) or var.get('global').put(var.get('SHARED'), Js({})))) @Js def PyJs_anonymous_319_(key, value, this, arguments, var=var): var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments}, var) var.registers(['value', 'key']) return (var.get('store').get(var.get('key')) or var.get('store').put(var.get('key'), (var.get('value') if PyJsStrictNeq(var.get('value'),var.get('undefined')) else Js({})))) PyJs_anonymous_319_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_319_)(Js('versions'), Js([])).callprop('push', Js({'version':var.get('core').get('version'),'mode':(Js('pure') if var.get('require')(Js('./_library')) else Js('global')),'copyright':Js('© 2020 Denis Pushkarev (zloirock.ru)')})) PyJs_anonymous_318_._set_name('anonymous') @Js def PyJs_anonymous_320_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', 'SPECIES', 'exports', 'module', 'anObject']) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('SPECIES', var.get('require')(Js('./_wks'))(Js('species'))) @Js def PyJs_anonymous_321_(O, D, this, arguments, var=var): var = Scope({'O':O, 'D':D, 'this':this, 'arguments':arguments}, var) var.registers(['O', 'C', 'D', 'S']) var.put('C', var.get('anObject')(var.get('O')).get('constructor')) pass return (var.get('D') if (PyJsStrictEq(var.get('C'),var.get('undefined')) or (var.put('S', var.get('anObject')(var.get('C')).get(var.get('SPECIES')))==var.get('undefined'))) else var.get('aFunction')(var.get('S'))) PyJs_anonymous_321_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_321_) PyJs_anonymous_320_._set_name('anonymous') @Js def PyJs_anonymous_322_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['fails', 'module', 'require', 'exports']) Js('use strict') var.put('fails', var.get('require')(Js('./_fails'))) @Js def PyJs_anonymous_323_(method, arg, this, arguments, var=var): var = Scope({'method':method, 'arg':arg, 'this':this, 'arguments':arguments}, var) var.registers(['arg', 'method']) @Js def PyJs_anonymous_324_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_anonymous_325_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) pass PyJs_anonymous_325_._set_name('anonymous') (var.get('method').callprop('call', var.get(u"null"), PyJs_anonymous_325_, Js(1.0)) if var.get('arg') else var.get('method').callprop('call', var.get(u"null"))) PyJs_anonymous_324_._set_name('anonymous') return (var.get('method').neg().neg() and var.get('fails')(PyJs_anonymous_324_)) PyJs_anonymous_323_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_323_) PyJs_anonymous_322_._set_name('anonymous') @Js def PyJs_anonymous_326_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'defined', 'exports', 'module', 'toInteger']) var.put('toInteger', var.get('require')(Js('./_to-integer'))) var.put('defined', var.get('require')(Js('./_defined'))) @Js def PyJs_anonymous_327_(TO_STRING, this, arguments, var=var): var = Scope({'TO_STRING':TO_STRING, 'this':this, 'arguments':arguments}, var) var.registers(['TO_STRING']) @Js def PyJs_anonymous_328_(that, pos, this, arguments, var=var): var = Scope({'that':that, 'pos':pos, 'this':this, 'arguments':arguments}, var) var.registers(['pos', 'i', 'that', 'a', 'b', 's', 'l']) var.put('s', var.get('String')(var.get('defined')(var.get('that')))) var.put('i', var.get('toInteger')(var.get('pos'))) var.put('l', var.get('s').get('length')) pass if ((var.get('i')=var.get('l'))): return (Js('') if var.get('TO_STRING') else var.get('undefined')) var.put('a', var.get('s').callprop('charCodeAt', var.get('i'))) def PyJs_LONG_329_(var=var): return ((var.get('s').callprop('charAt', var.get('i')) if var.get('TO_STRING') else var.get('a')) if (((((var.get('a')Js(56319))) or PyJsStrictEq((var.get('i')+Js(1.0)),var.get('l'))) or (var.put('b', var.get('s').callprop('charCodeAt', (var.get('i')+Js(1.0))))Js(57343))) else (var.get('s').callprop('slice', var.get('i'), (var.get('i')+Js(2.0))) if var.get('TO_STRING') else ((((var.get('a')-Js(55296))<'))+var.get('S'))+Js('')) PyJs_createHTML_333_._set_name('createHTML') var.put('createHTML', PyJs_createHTML_333_) @Js def PyJs_anonymous_334_(NAME, exec, this, arguments, var=var): var = Scope({'NAME':NAME, 'exec':exec, 'this':this, 'arguments':arguments}, var) var.registers(['NAME', 'O', 'exec']) var.put('O', Js({})) var.get('O').put(var.get('NAME'), var.get('exec')(var.get('createHTML'))) @Js def PyJs_anonymous_335_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['test']) var.put('test', Js('').callprop(var.get('NAME'), Js('"'))) return (PyJsStrictNeq(var.get('test'),var.get('test').callprop('toLowerCase')) or (var.get('test').callprop('split', Js('"')).get('length')>Js(3.0))) PyJs_anonymous_335_._set_name('anonymous') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('fails')(PyJs_anonymous_335_))), Js('String'), var.get('O')) PyJs_anonymous_334_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_334_) PyJs_anonymous_332_._set_name('anonymous') @Js def PyJs_anonymous_336_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'defined', 'toLength', 'exports', 'module', 'repeat']) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('repeat', var.get('require')(Js('./_string-repeat'))) var.put('defined', var.get('require')(Js('./_defined'))) @Js def PyJs_anonymous_337_(that, maxLength, fillString, left, this, arguments, var=var): var = Scope({'that':that, 'maxLength':maxLength, 'fillString':fillString, 'left':left, 'this':this, 'arguments':arguments}, var) var.registers(['intMaxLength', 'fillString', 'fillStr', 'left', 'that', 'stringLength', 'maxLength', 'fillLen', 'stringFiller', 'S']) var.put('S', var.get('String')(var.get('defined')(var.get('that')))) var.put('stringLength', var.get('S').get('length')) var.put('fillStr', (Js(' ') if PyJsStrictEq(var.get('fillString'),var.get('undefined')) else var.get('String')(var.get('fillString')))) var.put('intMaxLength', var.get('toLength')(var.get('maxLength'))) if ((var.get('intMaxLength')<=var.get('stringLength')) or (var.get('fillStr')==Js(''))): return var.get('S') var.put('fillLen', (var.get('intMaxLength')-var.get('stringLength'))) var.put('stringFiller', var.get('repeat').callprop('call', var.get('fillStr'), var.get('Math').callprop('ceil', (var.get('fillLen')/var.get('fillStr').get('length'))))) if (var.get('stringFiller').get('length')>var.get('fillLen')): var.put('stringFiller', var.get('stringFiller').callprop('slice', Js(0.0), var.get('fillLen'))) return ((var.get('stringFiller')+var.get('S')) if var.get('left') else (var.get('S')+var.get('stringFiller'))) PyJs_anonymous_337_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_337_) PyJs_anonymous_336_._set_name('anonymous') @Js def PyJs_anonymous_338_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'defined', 'exports', 'module', 'toInteger']) Js('use strict') var.put('toInteger', var.get('require')(Js('./_to-integer'))) var.put('defined', var.get('require')(Js('./_defined'))) @Js def PyJs_repeat_339_(count, this, arguments, var=var): var = Scope({'count':count, 'this':this, 'arguments':arguments, 'repeat':PyJs_repeat_339_}, var) var.registers(['str', 'count', 'n', 'res']) var.put('str', var.get('String')(var.get('defined')(var.get(u"this")))) var.put('res', Js('')) var.put('n', var.get('toInteger')(var.get('count'))) if ((var.get('n')Js(0.0)): try: if (var.get('n')&Js(1.0)): var.put('res', var.get('str'), '+') finally: (var.put('n', Js(1.0), '>>>') and var.put('str', var.get('str'), '+')) return var.get('res') PyJs_repeat_339_._set_name('repeat') var.get('module').put('exports', PyJs_repeat_339_) PyJs_anonymous_338_._set_name('anonymous') @Js def PyJs_anonymous_340_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['rtrim', 'non', 'defined', 'require', 'spaces', 'ltrim', 'exporter', '$export', 'exports', 'module', 'fails', 'space', 'trim']) var.put('$export', var.get('require')(Js('./_export'))) var.put('defined', var.get('require')(Js('./_defined'))) var.put('fails', var.get('require')(Js('./_fails'))) var.put('spaces', var.get('require')(Js('./_string-ws'))) var.put('space', ((Js('[')+var.get('spaces'))+Js(']'))) var.put('non', Js('\u200b\x85')) var.put('ltrim', var.get('RegExp')((((Js('^')+var.get('space'))+var.get('space'))+Js('*')))) var.put('rtrim', var.get('RegExp')(((var.get('space')+var.get('space'))+Js('*$')))) @Js def PyJs_exporter_341_(KEY, exec, ALIAS, this, arguments, var=var): var = Scope({'KEY':KEY, 'exec':exec, 'ALIAS':ALIAS, 'this':this, 'arguments':arguments, 'exporter':PyJs_exporter_341_}, var) var.registers(['KEY', 'ALIAS', 'fn', 'FORCE', 'exec', 'exp']) var.put('exp', Js({})) @Js def PyJs_anonymous_342_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return (var.get('spaces').callprop(var.get('KEY')).neg().neg() or (var.get('non').callprop(var.get('KEY'))!=var.get('non'))) PyJs_anonymous_342_._set_name('anonymous') var.put('FORCE', var.get('fails')(PyJs_anonymous_342_)) var.put('fn', var.get('exp').put(var.get('KEY'), (var.get('exec')(var.get('trim')) if var.get('FORCE') else var.get('spaces').get(var.get('KEY'))))) if var.get('ALIAS'): var.get('exp').put(var.get('ALIAS'), var.get('fn')) var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('FORCE'))), Js('String'), var.get('exp')) PyJs_exporter_341_._set_name('exporter') var.put('exporter', PyJs_exporter_341_) @Js def PyJs_anonymous_343_(string, TYPE, this, arguments, var=var): var = Scope({'string':string, 'TYPE':TYPE, 'this':this, 'arguments':arguments}, var) var.registers(['TYPE', 'string']) var.put('string', var.get('String')(var.get('defined')(var.get('string')))) if (var.get('TYPE')&Js(1.0)): var.put('string', var.get('string').callprop('replace', var.get('ltrim'), Js(''))) if (var.get('TYPE')&Js(2.0)): var.put('string', var.get('string').callprop('replace', var.get('rtrim'), Js(''))) return var.get('string') PyJs_anonymous_343_._set_name('anonymous') var.put('trim', var.get('exporter').put('trim', PyJs_anonymous_343_)) var.get('module').put('exports', var.get('exporter')) PyJs_anonymous_340_._set_name('anonymous') @Js def PyJs_anonymous_344_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('module').put('exports', (Js('\t\n\x0b\x0c\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003')+Js('\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff'))) PyJs_anonymous_344_._set_name('anonymous') @Js def PyJs_anonymous_345_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['clearTask', 'Dispatch', 'defer', 'port', 'process', 'invoke', 'require', 'ONREADYSTATECHANGE', 'setTask', 'cel', 'counter', 'module', 'run', 'channel', 'global', 'html', 'MessageChannel', 'exports', 'queue', 'listener', 'ctx']) var.put('ctx', var.get('require')(Js('./_ctx'))) var.put('invoke', var.get('require')(Js('./_invoke'))) var.put('html', var.get('require')(Js('./_html'))) var.put('cel', var.get('require')(Js('./_dom-create'))) var.put('global', var.get('require')(Js('./_global'))) var.put('process', var.get('global').get('process')) var.put('setTask', var.get('global').get('setImmediate')) var.put('clearTask', var.get('global').get('clearImmediate')) var.put('MessageChannel', var.get('global').get('MessageChannel')) var.put('Dispatch', var.get('global').get('Dispatch')) var.put('counter', Js(0.0)) var.put('queue', Js({})) var.put('ONREADYSTATECHANGE', Js('onreadystatechange')) pass @Js def PyJs_run_346_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'run':PyJs_run_346_}, var) var.registers(['fn', 'id']) var.put('id', (+var.get(u"this"))) if var.get('queue').callprop('hasOwnProperty', var.get('id')): var.put('fn', var.get('queue').get(var.get('id'))) var.get('queue').delete(var.get('id')) var.get('fn')() PyJs_run_346_._set_name('run') var.put('run', PyJs_run_346_) @Js def PyJs_listener_347_(event, this, arguments, var=var): var = Scope({'event':event, 'this':this, 'arguments':arguments, 'listener':PyJs_listener_347_}, var) var.registers(['event']) var.get('run').callprop('call', var.get('event').get('data')) PyJs_listener_347_._set_name('listener') var.put('listener', PyJs_listener_347_) if (var.get('setTask').neg() or var.get('clearTask').neg()): @Js def PyJs_setImmediate_348_(fn, this, arguments, var=var): var = Scope({'fn':fn, 'this':this, 'arguments':arguments, 'setImmediate':PyJs_setImmediate_348_}, var) var.registers(['i', 'fn', 'args']) var.put('args', Js([])) var.put('i', Js(1.0)) while (var.get('arguments').get('length')>var.get('i')): var.get('args').callprop('push', var.get('arguments').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))) @Js def PyJs_anonymous_349_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('invoke')((var.get('fn') if (var.get('fn',throw=False).typeof()==Js('function')) else var.get('Function')(var.get('fn'))), var.get('args')) PyJs_anonymous_349_._set_name('anonymous') var.get('queue').put(var.put('counter',Js(var.get('counter').to_number())+Js(1)), PyJs_anonymous_349_) var.get('defer')(var.get('counter')) return var.get('counter') PyJs_setImmediate_348_._set_name('setImmediate') var.put('setTask', PyJs_setImmediate_348_) @Js def PyJs_clearImmediate_350_(id, this, arguments, var=var): var = Scope({'id':id, 'this':this, 'arguments':arguments, 'clearImmediate':PyJs_clearImmediate_350_}, var) var.registers(['id']) var.get('queue').delete(var.get('id')) PyJs_clearImmediate_350_._set_name('clearImmediate') var.put('clearTask', PyJs_clearImmediate_350_) if (var.get('require')(Js('./_cof'))(var.get('process'))==Js('process')): @Js def PyJs_defer_351_(id, this, arguments, var=var): var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_351_}, var) var.registers(['id']) var.get('process').callprop('nextTick', var.get('ctx')(var.get('run'), var.get('id'), Js(1.0))) PyJs_defer_351_._set_name('defer') var.put('defer', PyJs_defer_351_) else: if (var.get('Dispatch') and var.get('Dispatch').get('now')): @Js def PyJs_defer_352_(id, this, arguments, var=var): var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_352_}, var) var.registers(['id']) var.get('Dispatch').callprop('now', var.get('ctx')(var.get('run'), var.get('id'), Js(1.0))) PyJs_defer_352_._set_name('defer') var.put('defer', PyJs_defer_352_) else: if var.get('MessageChannel'): var.put('channel', var.get('MessageChannel').create()) var.put('port', var.get('channel').get('port2')) var.get('channel').get('port1').put('onmessage', var.get('listener')) var.put('defer', var.get('ctx')(var.get('port').get('postMessage'), var.get('port'), Js(1.0))) else: if ((var.get('global').get('addEventListener') and (var.get('postMessage',throw=False).typeof()==Js('function'))) and var.get('global').get('importScripts').neg()): @Js def PyJs_defer_353_(id, this, arguments, var=var): var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_353_}, var) var.registers(['id']) var.get('global').callprop('postMessage', (var.get('id')+Js('')), Js('*')) PyJs_defer_353_._set_name('defer') var.put('defer', PyJs_defer_353_) var.get('global').callprop('addEventListener', Js('message'), var.get('listener'), Js(False)) else: if var.get('cel')(Js('script')).contains(var.get('ONREADYSTATECHANGE')): @Js def PyJs_defer_354_(id, this, arguments, var=var): var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_354_}, var) var.registers(['id']) @Js def PyJs_anonymous_355_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('html').callprop('removeChild', var.get(u"this")) var.get('run').callprop('call', var.get('id')) PyJs_anonymous_355_._set_name('anonymous') var.get('html').callprop('appendChild', var.get('cel')(Js('script'))).put(var.get('ONREADYSTATECHANGE'), PyJs_anonymous_355_) PyJs_defer_354_._set_name('defer') var.put('defer', PyJs_defer_354_) else: @Js def PyJs_defer_356_(id, this, arguments, var=var): var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_356_}, var) var.registers(['id']) var.get('setTimeout')(var.get('ctx')(var.get('run'), var.get('id'), Js(1.0)), Js(0.0)) PyJs_defer_356_._set_name('defer') var.put('defer', PyJs_defer_356_) var.get('module').put('exports', Js({'set':var.get('setTask'),'clear':var.get('clearTask')})) PyJs_anonymous_345_._set_name('anonymous') @Js def PyJs_anonymous_357_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'max', 'min', 'exports', 'module', 'toInteger']) var.put('toInteger', var.get('require')(Js('./_to-integer'))) var.put('max', var.get('Math').get('max')) var.put('min', var.get('Math').get('min')) @Js def PyJs_anonymous_358_(index, length, this, arguments, var=var): var = Scope({'index':index, 'length':length, 'this':this, 'arguments':arguments}, var) var.registers(['index', 'length']) var.put('index', var.get('toInteger')(var.get('index'))) return (var.get('max')((var.get('index')+var.get('length')), Js(0.0)) if (var.get('index')Js(0.0)) else var.get('ceil'))(var.get('it'))) PyJs_anonymous_362_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_362_) PyJs_anonymous_361_._set_name('anonymous') @Js def PyJs_anonymous_363_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'defined', 'exports', 'module', 'IObject']) var.put('IObject', var.get('require')(Js('./_iobject'))) var.put('defined', var.get('require')(Js('./_defined'))) @Js def PyJs_anonymous_364_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return var.get('IObject')(var.get('defined')(var.get('it'))) PyJs_anonymous_364_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_364_) PyJs_anonymous_363_._set_name('anonymous') @Js def PyJs_anonymous_365_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'min', 'exports', 'module', 'toInteger']) var.put('toInteger', var.get('require')(Js('./_to-integer'))) var.put('min', var.get('Math').get('min')) @Js def PyJs_anonymous_366_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return (var.get('min')(var.get('toInteger')(var.get('it')), Js(9007199254740991)) if (var.get('it')>Js(0.0)) else Js(0.0)) PyJs_anonymous_366_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_366_) PyJs_anonymous_365_._set_name('anonymous') @Js def PyJs_anonymous_367_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'defined', 'module', 'exports']) var.put('defined', var.get('require')(Js('./_defined'))) @Js def PyJs_anonymous_368_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return var.get('Object')(var.get('defined')(var.get('it'))) PyJs_anonymous_368_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_368_) PyJs_anonymous_367_._set_name('anonymous') @Js def PyJs_anonymous_369_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'isObject', 'module', 'exports']) var.put('isObject', var.get('require')(Js('./_is-object'))) @Js def PyJs_anonymous_370_(it, S, this, arguments, var=var): var = Scope({'it':it, 'S':S, 'this':this, 'arguments':arguments}, var) var.registers(['it', 'fn', 'val', 'S']) if var.get('isObject')(var.get('it')).neg(): return var.get('it') pass if ((var.get('S') and (var.put('fn', var.get('it').get('toString')).typeof()==Js('function'))) and var.get('isObject')(var.put('val', var.get('fn').callprop('call', var.get('it')))).neg()): return var.get('val') if ((var.put('fn', var.get('it').get('valueOf')).typeof()==Js('function')) and var.get('isObject')(var.put('val', var.get('fn').callprop('call', var.get('it')))).neg()): return var.get('val') if ((var.get('S').neg() and (var.put('fn', var.get('it').get('toString')).typeof()==Js('function'))) and var.get('isObject')(var.put('val', var.get('fn').callprop('call', var.get('it')))).neg()): return var.get('val') PyJsTempException = JsToPyException(var.get('TypeError')(Js("Can't convert object to primitive value"))) raise PyJsTempException PyJs_anonymous_370_._set_name('anonymous') var.get('module').put('exports', PyJs_anonymous_370_) PyJs_anonymous_369_._set_name('anonymous') @Js def PyJs_anonymous_371_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['dP', 'toInteger', 'arrayFindIndex', 'arrayReduce', 'TYPED_ARRAY', 'gOPN', 'createArrayIncludes', 'VIEW', 'arrayForEach', 'arrayToLocaleString', '$map', 'toPrimitive', 'arraySome', 'toObject', 'arrayEvery', 'ArrayIterators', '$from', 'arrayFilter', 'gOPD', '$setDesc', 'TYPED_CONSTRUCTOR', 'WRONG_LENGTH', 'arrayJoin', 'isObject', '$GOPD', 'addGetter', 'getIterFn', 'arraySlice', 'ITERATOR', 'toIndex', 'wks', 'ArrayProto', 'propertyDesc', 'speciesConstructor', 'DEF_CONSTRUCTOR', 'arrayToString', 'require', 'arrayFind', 'TO_LOCALE_BUG', 'createArrayMethod', 'module', 'global', 'arrayIncludes', 'PROTOTYPE', 'anInstance', 'toAbsoluteIndex', 'arrayCopyWithin', 'exports', 'Iterators', 'ctx', '$getDesc', '$buffer', '$toLocaleString', 'toLength', 'RangeError', 'uid', 'FORCED_SET', 'classof', 'allocate', '$of', '$slice', 'fails', 'arraySort', 'ALL_CONSTRUCTORS', 'arrayIndexOf', '$ArrayBuffer', 'TypeError', 'ARRAY_BUFFER', 'LITTLE_ENDIAN', '$iterators', 'has', '$iterDetect', 'hide', 'proto', 'arrayReduceRight', 'TAG', '$set', '$TypedArrayPrototype$', 'setSpecies', 'toOffset', 'arrayKeys', 'arrayValues', 'fromList', 'isTAIndex', 'LIBRARY', 'speciesFromList', 'validate', 'isArrayIter', 'arrayEntries', '$typed', 'SHARED_BUFFER', 'BYTES_PER_ELEMENT', '$DataView', 'getPrototypeOf', 'create', 'arrayLastIndexOf', 'Uint8Array', '$DP', 'redefineAll', 'arrayFill', '$export']) Js('use strict') if var.get('require')(Js('./_descriptors')): var.put('LIBRARY', var.get('require')(Js('./_library'))) var.put('global', var.get('require')(Js('./_global'))) var.put('fails', var.get('require')(Js('./_fails'))) var.put('$export', var.get('require')(Js('./_export'))) var.put('$typed', var.get('require')(Js('./_typed'))) var.put('$buffer', var.get('require')(Js('./_typed-buffer'))) var.put('ctx', var.get('require')(Js('./_ctx'))) var.put('anInstance', var.get('require')(Js('./_an-instance'))) var.put('propertyDesc', var.get('require')(Js('./_property-desc'))) var.put('hide', var.get('require')(Js('./_hide'))) var.put('redefineAll', var.get('require')(Js('./_redefine-all'))) var.put('toInteger', var.get('require')(Js('./_to-integer'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('toIndex', var.get('require')(Js('./_to-index'))) var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index'))) var.put('toPrimitive', var.get('require')(Js('./_to-primitive'))) var.put('has', var.get('require')(Js('./_has'))) var.put('classof', var.get('require')(Js('./_classof'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('isArrayIter', var.get('require')(Js('./_is-array-iter'))) var.put('create', var.get('require')(Js('./_object-create'))) var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo'))) var.put('gOPN', var.get('require')(Js('./_object-gopn')).get('f')) var.put('getIterFn', var.get('require')(Js('./core.get-iterator-method'))) var.put('uid', var.get('require')(Js('./_uid'))) var.put('wks', var.get('require')(Js('./_wks'))) var.put('createArrayMethod', var.get('require')(Js('./_array-methods'))) var.put('createArrayIncludes', var.get('require')(Js('./_array-includes'))) var.put('speciesConstructor', var.get('require')(Js('./_species-constructor'))) var.put('ArrayIterators', var.get('require')(Js('./es6.array.iterator'))) var.put('Iterators', var.get('require')(Js('./_iterators'))) var.put('$iterDetect', var.get('require')(Js('./_iter-detect'))) var.put('setSpecies', var.get('require')(Js('./_set-species'))) var.put('arrayFill', var.get('require')(Js('./_array-fill'))) var.put('arrayCopyWithin', var.get('require')(Js('./_array-copy-within'))) var.put('$DP', var.get('require')(Js('./_object-dp'))) var.put('$GOPD', var.get('require')(Js('./_object-gopd'))) var.put('dP', var.get('$DP').get('f')) var.put('gOPD', var.get('$GOPD').get('f')) var.put('RangeError', var.get('global').get('RangeError')) var.put('TypeError', var.get('global').get('TypeError')) var.put('Uint8Array', var.get('global').get('Uint8Array')) var.put('ARRAY_BUFFER', Js('ArrayBuffer')) var.put('SHARED_BUFFER', (Js('Shared')+var.get('ARRAY_BUFFER'))) var.put('BYTES_PER_ELEMENT', Js('BYTES_PER_ELEMENT')) var.put('PROTOTYPE', Js('prototype')) var.put('ArrayProto', var.get('Array').get(var.get('PROTOTYPE'))) var.put('$ArrayBuffer', var.get('$buffer').get('ArrayBuffer')) var.put('$DataView', var.get('$buffer').get('DataView')) var.put('arrayForEach', var.get('createArrayMethod')(Js(0.0))) var.put('arrayFilter', var.get('createArrayMethod')(Js(2.0))) var.put('arraySome', var.get('createArrayMethod')(Js(3.0))) var.put('arrayEvery', var.get('createArrayMethod')(Js(4.0))) var.put('arrayFind', var.get('createArrayMethod')(Js(5.0))) var.put('arrayFindIndex', var.get('createArrayMethod')(Js(6.0))) var.put('arrayIncludes', var.get('createArrayIncludes')(Js(True))) var.put('arrayIndexOf', var.get('createArrayIncludes')(Js(False))) var.put('arrayValues', var.get('ArrayIterators').get('values')) var.put('arrayKeys', var.get('ArrayIterators').get('keys')) var.put('arrayEntries', var.get('ArrayIterators').get('entries')) var.put('arrayLastIndexOf', var.get('ArrayProto').get('lastIndexOf')) var.put('arrayReduce', var.get('ArrayProto').get('reduce')) var.put('arrayReduceRight', var.get('ArrayProto').get('reduceRight')) var.put('arrayJoin', var.get('ArrayProto').get('join')) var.put('arraySort', var.get('ArrayProto').get('sort')) var.put('arraySlice', var.get('ArrayProto').get('slice')) var.put('arrayToString', var.get('ArrayProto').get('toString')) var.put('arrayToLocaleString', var.get('ArrayProto').get('toLocaleString')) var.put('ITERATOR', var.get('wks')(Js('iterator'))) var.put('TAG', var.get('wks')(Js('toStringTag'))) var.put('TYPED_CONSTRUCTOR', var.get('uid')(Js('typed_constructor'))) var.put('DEF_CONSTRUCTOR', var.get('uid')(Js('def_constructor'))) var.put('ALL_CONSTRUCTORS', var.get('$typed').get('CONSTR')) var.put('TYPED_ARRAY', var.get('$typed').get('TYPED')) var.put('VIEW', var.get('$typed').get('VIEW')) var.put('WRONG_LENGTH', Js('Wrong length!')) @Js def PyJs_anonymous_372_(O, length, this, arguments, var=var): var = Scope({'O':O, 'length':length, 'this':this, 'arguments':arguments}, var) var.registers(['length', 'O']) return var.get('allocate')(var.get('speciesConstructor')(var.get('O'), var.get('O').get(var.get('DEF_CONSTRUCTOR'))), var.get('length')) PyJs_anonymous_372_._set_name('anonymous') var.put('$map', var.get('createArrayMethod')(Js(1.0), PyJs_anonymous_372_)) @Js def PyJs_anonymous_373_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return PyJsStrictEq(var.get('Uint8Array').create(var.get('Uint16Array').create(Js([Js(1.0)])).get('buffer')).get('0'),Js(1.0)) PyJs_anonymous_373_._set_name('anonymous') var.put('LITTLE_ENDIAN', var.get('fails')(PyJs_anonymous_373_)) @Js def PyJs_anonymous_374_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('Uint8Array').create(Js(1.0)).callprop('set', Js({})) PyJs_anonymous_374_._set_name('anonymous') var.put('FORCED_SET', ((var.get('Uint8Array').neg().neg() and var.get('Uint8Array').get(var.get('PROTOTYPE')).get('set').neg().neg()) and var.get('fails')(PyJs_anonymous_374_))) @Js def PyJs_toOffset_375_(it, BYTES, this, arguments, var=var): var = Scope({'it':it, 'BYTES':BYTES, 'this':this, 'arguments':arguments, 'toOffset':PyJs_toOffset_375_}, var) var.registers(['offset', 'it', 'BYTES']) var.put('offset', var.get('toInteger')(var.get('it'))) if ((var.get('offset')var.get('index')): var.get('result').put(var.get('index'), var.get('list').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)))) return var.get('result') PyJs_fromList_379_._set_name('fromList') var.put('fromList', PyJs_fromList_379_) @Js def PyJs_addGetter_380_(it, key, internal, this, arguments, var=var): var = Scope({'it':it, 'key':key, 'internal':internal, 'this':this, 'arguments':arguments, 'addGetter':PyJs_addGetter_380_}, var) var.registers(['it', 'internal', 'key']) @Js def PyJs_get_381_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_381_}, var) var.registers([]) return var.get(u"this").get('_d').get(var.get('internal')) PyJs_get_381_._set_name('get') var.get('dP')(var.get('it'), var.get('key'), Js({'get':PyJs_get_381_})) PyJs_addGetter_380_._set_name('addGetter') var.put('addGetter', PyJs_addGetter_380_) @Js def PyJs_InlineNonPyName_382_(source, this, arguments, var=var): var = Scope({'source':source, 'this':this, 'arguments':arguments, 'from':PyJs_InlineNonPyName_382_}, var) var.registers(['iterator', 'length', 'i', 'source', 'mapfn', 'O', 'result', 'step', 'mapping', 'aLen', 'iterFn', 'values']) var.put('O', var.get('toObject')(var.get('source'))) var.put('aLen', var.get('arguments').get('length')) var.put('mapfn', (var.get('arguments').get('1') if (var.get('aLen')>Js(1.0)) else var.get('undefined'))) var.put('mapping', PyJsStrictNeq(var.get('mapfn'),var.get('undefined'))) var.put('iterFn', var.get('getIterFn')(var.get('O'))) pass if ((var.get('iterFn')!=var.get('undefined')) and var.get('isArrayIter')(var.get('iterFn')).neg()): #for JS loop PyJsComma(PyJsComma(var.put('iterator', var.get('iterFn').callprop('call', var.get('O'))),var.put('values', Js([]))),var.put('i', Js(0.0))) while var.put('step', var.get('iterator').callprop('next')).get('done').neg(): try: var.get('values').callprop('push', var.get('step').get('value')) finally: (var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)) var.put('O', var.get('values')) if (var.get('mapping') and (var.get('aLen')>Js(2.0))): var.put('mapfn', var.get('ctx')(var.get('mapfn'), var.get('arguments').get('2'), Js(2.0))) #for JS loop PyJsComma(PyJsComma(var.put('i', Js(0.0)),var.put('length', var.get('toLength')(var.get('O').get('length')))),var.put('result', var.get('allocate')(var.get(u"this"), var.get('length')))) while (var.get('length')>var.get('i')): try: var.get('result').put(var.get('i'), (var.get('mapfn')(var.get('O').get(var.get('i')), var.get('i')) if var.get('mapping') else var.get('O').get(var.get('i')))) finally: (var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)) return var.get('result') PyJs_InlineNonPyName_382_._set_name('from') var.put('$from', PyJs_InlineNonPyName_382_) @Js def PyJs_of_383_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'of':PyJs_of_383_}, var) var.registers(['index', 'length', 'result']) var.put('index', Js(0.0)) var.put('length', var.get('arguments').get('length')) var.put('result', var.get('allocate')(var.get(u"this"), var.get('length'))) while (var.get('length')>var.get('index')): var.get('result').put(var.get('index'), var.get('arguments').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)))) return var.get('result') PyJs_of_383_._set_name('of') var.put('$of', PyJs_of_383_) @Js def PyJs_anonymous_384_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('arrayToLocaleString').callprop('call', var.get('Uint8Array').create(Js(1.0))) PyJs_anonymous_384_._set_name('anonymous') var.put('TO_LOCALE_BUG', (var.get('Uint8Array').neg().neg() and var.get('fails')(PyJs_anonymous_384_))) @Js def PyJs_toLocaleString_385_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'toLocaleString':PyJs_toLocaleString_385_}, var) var.registers([]) return var.get('arrayToLocaleString').callprop('apply', (var.get('arraySlice').callprop('call', var.get('validate')(var.get(u"this"))) if var.get('TO_LOCALE_BUG') else var.get('validate')(var.get(u"this"))), var.get('arguments')) PyJs_toLocaleString_385_._set_name('toLocaleString') var.put('$toLocaleString', PyJs_toLocaleString_385_) @Js def PyJs_copyWithin_386_(target, start, this, arguments, var=var): var = Scope({'target':target, 'start':start, 'this':this, 'arguments':arguments, 'copyWithin':PyJs_copyWithin_386_}, var) var.registers(['target', 'start']) return var.get('arrayCopyWithin').callprop('call', var.get('validate')(var.get(u"this")), var.get('target'), var.get('start'), (var.get('arguments').get('2') if (var.get('arguments').get('length')>Js(2.0)) else var.get('undefined'))) PyJs_copyWithin_386_._set_name('copyWithin') @Js def PyJs_every_387_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'every':PyJs_every_387_}, var) var.registers(['callbackfn']) return var.get('arrayEvery')(var.get('validate')(var.get(u"this")), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) PyJs_every_387_._set_name('every') @Js def PyJs_fill_388_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'fill':PyJs_fill_388_}, var) var.registers(['value']) return var.get('arrayFill').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments')) PyJs_fill_388_._set_name('fill') @Js def PyJs_filter_389_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'filter':PyJs_filter_389_}, var) var.registers(['callbackfn']) return var.get('speciesFromList')(var.get(u"this"), var.get('arrayFilter')(var.get('validate')(var.get(u"this")), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))) PyJs_filter_389_._set_name('filter') @Js def PyJs_find_390_(predicate, this, arguments, var=var): var = Scope({'predicate':predicate, 'this':this, 'arguments':arguments, 'find':PyJs_find_390_}, var) var.registers(['predicate']) return var.get('arrayFind')(var.get('validate')(var.get(u"this")), var.get('predicate'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) PyJs_find_390_._set_name('find') @Js def PyJs_findIndex_391_(predicate, this, arguments, var=var): var = Scope({'predicate':predicate, 'this':this, 'arguments':arguments, 'findIndex':PyJs_findIndex_391_}, var) var.registers(['predicate']) return var.get('arrayFindIndex')(var.get('validate')(var.get(u"this")), var.get('predicate'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) PyJs_findIndex_391_._set_name('findIndex') @Js def PyJs_forEach_392_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'forEach':PyJs_forEach_392_}, var) var.registers(['callbackfn']) var.get('arrayForEach')(var.get('validate')(var.get(u"this")), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) PyJs_forEach_392_._set_name('forEach') @Js def PyJs_indexOf_393_(searchElement, this, arguments, var=var): var = Scope({'searchElement':searchElement, 'this':this, 'arguments':arguments, 'indexOf':PyJs_indexOf_393_}, var) var.registers(['searchElement']) return var.get('arrayIndexOf')(var.get('validate')(var.get(u"this")), var.get('searchElement'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) PyJs_indexOf_393_._set_name('indexOf') @Js def PyJs_includes_394_(searchElement, this, arguments, var=var): var = Scope({'searchElement':searchElement, 'this':this, 'arguments':arguments, 'includes':PyJs_includes_394_}, var) var.registers(['searchElement']) return var.get('arrayIncludes')(var.get('validate')(var.get(u"this")), var.get('searchElement'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) PyJs_includes_394_._set_name('includes') @Js def PyJs_join_395_(separator, this, arguments, var=var): var = Scope({'separator':separator, 'this':this, 'arguments':arguments, 'join':PyJs_join_395_}, var) var.registers(['separator']) return var.get('arrayJoin').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments')) PyJs_join_395_._set_name('join') @Js def PyJs_lastIndexOf_396_(searchElement, this, arguments, var=var): var = Scope({'searchElement':searchElement, 'this':this, 'arguments':arguments, 'lastIndexOf':PyJs_lastIndexOf_396_}, var) var.registers(['searchElement']) return var.get('arrayLastIndexOf').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments')) PyJs_lastIndexOf_396_._set_name('lastIndexOf') @Js def PyJs_map_397_(mapfn, this, arguments, var=var): var = Scope({'mapfn':mapfn, 'this':this, 'arguments':arguments, 'map':PyJs_map_397_}, var) var.registers(['mapfn']) return var.get('$map')(var.get('validate')(var.get(u"this")), var.get('mapfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) PyJs_map_397_._set_name('map') @Js def PyJs_reduce_398_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'reduce':PyJs_reduce_398_}, var) var.registers(['callbackfn']) return var.get('arrayReduce').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments')) PyJs_reduce_398_._set_name('reduce') @Js def PyJs_reduceRight_399_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'reduceRight':PyJs_reduceRight_399_}, var) var.registers(['callbackfn']) return var.get('arrayReduceRight').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments')) PyJs_reduceRight_399_._set_name('reduceRight') @Js def PyJs_reverse_400_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'reverse':PyJs_reverse_400_}, var) var.registers(['length', 'index', 'that', 'value', 'middle']) var.put('that', var.get(u"this")) var.put('length', var.get('validate')(var.get('that')).get('length')) var.put('middle', var.get('Math').callprop('floor', (var.get('length')/Js(2.0)))) var.put('index', Js(0.0)) pass while (var.get('index')Js(1.0)) else var.get('undefined'))) PyJs_some_401_._set_name('some') @Js def PyJs_sort_402_(comparefn, this, arguments, var=var): var = Scope({'comparefn':comparefn, 'this':this, 'arguments':arguments, 'sort':PyJs_sort_402_}, var) var.registers(['comparefn']) return var.get('arraySort').callprop('call', var.get('validate')(var.get(u"this")), var.get('comparefn')) PyJs_sort_402_._set_name('sort') @Js def PyJs_subarray_403_(begin, end, this, arguments, var=var): var = Scope({'begin':begin, 'end':end, 'this':this, 'arguments':arguments, 'subarray':PyJs_subarray_403_}, var) var.registers(['begin', 'length', 'end', 'O', '$begin']) var.put('O', var.get('validate')(var.get(u"this"))) var.put('length', var.get('O').get('length')) var.put('$begin', var.get('toAbsoluteIndex')(var.get('begin'), var.get('length'))) return var.get('speciesConstructor')(var.get('O'), var.get('O').get(var.get('DEF_CONSTRUCTOR'))).create(var.get('O').get('buffer'), (var.get('O').get('byteOffset')+(var.get('$begin')*var.get('O').get('BYTES_PER_ELEMENT'))), var.get('toLength')(((var.get('length') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('toAbsoluteIndex')(var.get('end'), var.get('length')))-var.get('$begin')))) PyJs_subarray_403_._set_name('subarray') var.put('proto', Js({'copyWithin':PyJs_copyWithin_386_,'every':PyJs_every_387_,'fill':PyJs_fill_388_,'filter':PyJs_filter_389_,'find':PyJs_find_390_,'findIndex':PyJs_findIndex_391_,'forEach':PyJs_forEach_392_,'indexOf':PyJs_indexOf_393_,'includes':PyJs_includes_394_,'join':PyJs_join_395_,'lastIndexOf':PyJs_lastIndexOf_396_,'map':PyJs_map_397_,'reduce':PyJs_reduce_398_,'reduceRight':PyJs_reduceRight_399_,'reverse':PyJs_reverse_400_,'some':PyJs_some_401_,'sort':PyJs_sort_402_,'subarray':PyJs_subarray_403_})) @Js def PyJs_slice_404_(start, end, this, arguments, var=var): var = Scope({'start':start, 'end':end, 'this':this, 'arguments':arguments, 'slice':PyJs_slice_404_}, var) var.registers(['end', 'start']) return var.get('speciesFromList')(var.get(u"this"), var.get('arraySlice').callprop('call', var.get('validate')(var.get(u"this")), var.get('start'), var.get('end'))) PyJs_slice_404_._set_name('slice') var.put('$slice', PyJs_slice_404_) @Js def PyJs_set_405_(arrayLike, this, arguments, var=var): var = Scope({'arrayLike':arrayLike, 'this':this, 'arguments':arguments, 'set':PyJs_set_405_}, var) var.registers(['length', 'src', 'index', 'arrayLike', 'offset', 'len']) var.get('validate')(var.get(u"this")) var.put('offset', var.get('toOffset')(var.get('arguments').get('1'), Js(1.0))) var.put('length', var.get(u"this").get('length')) var.put('src', var.get('toObject')(var.get('arrayLike'))) var.put('len', var.get('toLength')(var.get('src').get('length'))) var.put('index', Js(0.0)) if ((var.get('len')+var.get('offset'))>var.get('length')): PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_LENGTH'))) raise PyJsTempException while (var.get('index')Js(255)) else (var.get('value')&Js(255))))) var.get('data').get('v').callprop(var.get('SETTER'), ((var.get('index')*var.get('BYTES'))+var.get('data').get('o')), var.get('value'), var.get('LITTLE_ENDIAN')) PyJs_setter_419_._set_name('setter') var.put('setter', PyJs_setter_419_) @Js def PyJs_addElement_420_(that, index, this, arguments, var=var): var = Scope({'that':that, 'index':index, 'this':this, 'arguments':arguments, 'addElement':PyJs_addElement_420_}, var) var.registers(['index', 'that']) @Js def PyJs_get_421_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_421_}, var) var.registers([]) return var.get('getter')(var.get(u"this"), var.get('index')) PyJs_get_421_._set_name('get') @Js def PyJs_set_422_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'set':PyJs_set_422_}, var) var.registers(['value']) return var.get('setter')(var.get(u"this"), var.get('index'), var.get('value')) PyJs_set_422_._set_name('set') var.get('dP')(var.get('that'), var.get('index'), Js({'get':PyJs_get_421_,'set':PyJs_set_422_,'enumerable':Js(True)})) PyJs_addElement_420_._set_name('addElement') var.put('addElement', PyJs_addElement_420_) if var.get('FORCED'): @Js def PyJs_anonymous_423_(that, data, PyJsArg_246f6666736574_, PyJsArg_246c656e677468_, this, arguments, var=var): var = Scope({'that':that, 'data':data, '$offset':PyJsArg_246f6666736574_, '$length':PyJsArg_246c656e677468_, 'this':this, 'arguments':arguments}, var) var.registers(['buffer', '$len', 'index', 'length', '$offset', '$length', 'that', 'byteLength', 'data', 'offset', 'klass']) var.get('anInstance')(var.get('that'), var.get('TypedArray'), var.get('NAME'), Js('_d')) var.put('index', Js(0.0)) var.put('offset', Js(0.0)) pass if var.get('isObject')(var.get('data')).neg(): var.put('length', var.get('toIndex')(var.get('data'))) var.put('byteLength', (var.get('length')*var.get('BYTES'))) var.put('buffer', var.get('$ArrayBuffer').create(var.get('byteLength'))) else: if ((var.get('data').instanceof(var.get('$ArrayBuffer')) or (var.put('klass', var.get('classof')(var.get('data')))==var.get('ARRAY_BUFFER'))) or (var.get('klass')==var.get('SHARED_BUFFER'))): var.put('buffer', var.get('data')) var.put('offset', var.get('toOffset')(var.get('$offset'), var.get('BYTES'))) var.put('$len', var.get('data').get('byteLength')) if PyJsStrictEq(var.get('$length'),var.get('undefined')): if (var.get('$len')%var.get('BYTES')): PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_LENGTH'))) raise PyJsTempException var.put('byteLength', (var.get('$len')-var.get('offset'))) if (var.get('byteLength')var.get('$len')): PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_LENGTH'))) raise PyJsTempException var.put('length', (var.get('byteLength')/var.get('BYTES'))) else: if var.get('data').contains(var.get('TYPED_ARRAY')): return var.get('fromList')(var.get('TypedArray'), var.get('data')) else: return var.get('$from').callprop('call', var.get('TypedArray'), var.get('data')) var.get('hide')(var.get('that'), Js('_d'), Js({'b':var.get('buffer'),'o':var.get('offset'),'l':var.get('byteLength'),'e':var.get('length'),'v':var.get('$DataView').create(var.get('buffer'))})) while (var.get('index')>Js(1.0))) var.put('rt', ((var.get('pow')(Js(2.0), (-Js(24.0)))-var.get('pow')(Js(2.0), (-Js(77.0)))) if PyJsStrictEq(var.get('mLen'),Js(23.0)) else Js(0.0))) var.put('i', Js(0.0)) var.put('s', (Js(1.0) if ((var.get('value')=Js(1.0)): var.put('value', (var.get('rt')/var.get('c')), '+') else: var.put('value', (var.get('rt')*var.get('pow')(Js(2.0), (Js(1.0)-var.get('eBias')))), '+') if ((var.get('value')*var.get('c'))>=Js(2.0)): (var.put('e',Js(var.get('e').to_number())+Js(1))-Js(1)) var.put('c', Js(2.0), '/') if ((var.get('e')+var.get('eBias'))>=var.get('eMax')): var.put('m', Js(0.0)) var.put('e', var.get('eMax')) else: if ((var.get('e')+var.get('eBias'))>=Js(1.0)): var.put('m', (((var.get('value')*var.get('c'))-Js(1.0))*var.get('pow')(Js(2.0), var.get('mLen')))) var.put('e', (var.get('e')+var.get('eBias'))) else: var.put('m', ((var.get('value')*var.get('pow')(Js(2.0), (var.get('eBias')-Js(1.0))))*var.get('pow')(Js(2.0), var.get('mLen')))) var.put('e', Js(0.0)) #for JS loop while (var.get('mLen')>=Js(8.0)): try: pass finally: PyJsComma(PyJsComma(var.get('buffer').put((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)), (var.get('m')&Js(255.0))),var.put('m', Js(256.0), '/')),var.put('mLen', Js(8.0), '-')) var.put('e', ((var.get('e')<Js(0.0)): try: pass finally: PyJsComma(PyJsComma(var.get('buffer').put((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)), (var.get('e')&Js(255.0))),var.put('e', Js(256.0), '/')),var.put('eLen', Js(8.0), '-')) var.get('buffer').put(var.put('i',Js(var.get('i').to_number())-Js(1)), (var.get('s')*Js(128.0)), '|') return var.get('buffer') PyJsHoisted_packIEEE754_.func_name = 'packIEEE754' var.put('packIEEE754', PyJsHoisted_packIEEE754_) @Js def PyJsHoisted_unpackIEEE754_(buffer, mLen, nBytes, this, arguments, var=var): var = Scope({'buffer':buffer, 'mLen':mLen, 'nBytes':nBytes, 'this':this, 'arguments':arguments}, var) var.registers(['nBits', 'buffer', 'mLen', 'i', 'eLen', 'eBias', 'm', 'e', 'nBytes', 'eMax', 's']) var.put('eLen', (((var.get('nBytes')*Js(8.0))-var.get('mLen'))-Js(1.0))) var.put('eMax', ((Js(1.0)<>Js(1.0))) var.put('nBits', (var.get('eLen')-Js(7.0))) var.put('i', (var.get('nBytes')-Js(1.0))) var.put('s', var.get('buffer').get((var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1)))) var.put('e', (var.get('s')&Js(127.0))) pass var.put('s', Js(7.0), '>>') #for JS loop while (var.get('nBits')>Js(0.0)): try: pass finally: PyJsComma(PyJsComma(var.put('e', ((var.get('e')*Js(256.0))+var.get('buffer').get(var.get('i')))),(var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1))),var.put('nBits', Js(8.0), '-')) var.put('m', (var.get('e')&((Js(1.0)<<(-var.get('nBits')))-Js(1.0)))) var.put('e', (-var.get('nBits')), '>>') var.put('nBits', var.get('mLen'), '+') #for JS loop while (var.get('nBits')>Js(0.0)): try: pass finally: PyJsComma(PyJsComma(var.put('m', ((var.get('m')*Js(256.0))+var.get('buffer').get(var.get('i')))),(var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1))),var.put('nBits', Js(8.0), '-')) if PyJsStrictEq(var.get('e'),Js(0.0)): var.put('e', (Js(1.0)-var.get('eBias'))) else: if PyJsStrictEq(var.get('e'),var.get('eMax')): return (var.get('NaN') if var.get('m') else ((-var.get('Infinity')) if var.get('s') else var.get('Infinity'))) else: var.put('m', (var.get('m')+var.get('pow')(Js(2.0), var.get('mLen')))) var.put('e', (var.get('e')-var.get('eBias'))) return ((((-Js(1.0)) if var.get('s') else Js(1.0))*var.get('m'))*var.get('pow')(Js(2.0), (var.get('e')-var.get('mLen')))) PyJsHoisted_unpackIEEE754_.func_name = 'unpackIEEE754' var.put('unpackIEEE754', PyJsHoisted_unpackIEEE754_) @Js def PyJsHoisted_unpackI32_(bytes, this, arguments, var=var): var = Scope({'bytes':bytes, 'this':this, 'arguments':arguments}, var) var.registers(['bytes']) return ((((var.get('bytes').get('3')<>Js(8.0))&Js(255))]) PyJsHoisted_packI16_.func_name = 'packI16' var.put('packI16', PyJsHoisted_packI16_) @Js def PyJsHoisted_packI32_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return Js([(var.get('it')&Js(255)), ((var.get('it')>>Js(8.0))&Js(255)), ((var.get('it')>>Js(16.0))&Js(255)), ((var.get('it')>>Js(24.0))&Js(255))]) PyJsHoisted_packI32_.func_name = 'packI32' var.put('packI32', PyJsHoisted_packI32_) @Js def PyJsHoisted_packF64_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return var.get('packIEEE754')(var.get('it'), Js(52.0), Js(8.0)) PyJsHoisted_packF64_.func_name = 'packF64' var.put('packF64', PyJsHoisted_packF64_) @Js def PyJsHoisted_packF32_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return var.get('packIEEE754')(var.get('it'), Js(23.0), Js(4.0)) PyJsHoisted_packF32_.func_name = 'packF32' var.put('packF32', PyJsHoisted_packF32_) @Js def PyJsHoisted_addGetter_(C, key, internal, this, arguments, var=var): var = Scope({'C':C, 'key':key, 'internal':internal, 'this':this, 'arguments':arguments}, var) var.registers(['C', 'internal', 'key']) @Js def PyJs_get_436_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_436_}, var) var.registers([]) return var.get(u"this").get(var.get('internal')) PyJs_get_436_._set_name('get') var.get('dP')(var.get('C').get(var.get('PROTOTYPE')), var.get('key'), Js({'get':PyJs_get_436_})) PyJsHoisted_addGetter_.func_name = 'addGetter' var.put('addGetter', PyJsHoisted_addGetter_) @Js def PyJsHoisted_get_(view, bytes, index, isLittleEndian, this, arguments, var=var): var = Scope({'view':view, 'bytes':bytes, 'index':index, 'isLittleEndian':isLittleEndian, 'this':this, 'arguments':arguments}, var) var.registers(['index', 'isLittleEndian', 'start', 'numIndex', 'store', 'intIndex', 'view', 'bytes', 'pack']) var.put('numIndex', (+var.get('index'))) var.put('intIndex', var.get('toIndex')(var.get('numIndex'))) if ((var.get('intIndex')+var.get('bytes'))>var.get('view').get(var.get('$LENGTH'))): PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_INDEX'))) raise PyJsTempException var.put('store', var.get('view').get(var.get('$BUFFER')).get('_b')) var.put('start', (var.get('intIndex')+var.get('view').get(var.get('$OFFSET')))) var.put('pack', var.get('store').callprop('slice', var.get('start'), (var.get('start')+var.get('bytes')))) return (var.get('pack') if var.get('isLittleEndian') else var.get('pack').callprop('reverse')) PyJsHoisted_get_.func_name = 'get' var.put('get', PyJsHoisted_get_) @Js def PyJsHoisted_set_(view, bytes, index, conversion, value, isLittleEndian, this, arguments, var=var): var = Scope({'view':view, 'bytes':bytes, 'index':index, 'conversion':conversion, 'value':value, 'isLittleEndian':isLittleEndian, 'this':this, 'arguments':arguments}, var) var.registers(['index', 'conversion', 'i', 'isLittleEndian', 'start', 'numIndex', 'store', 'intIndex', 'view', 'bytes', 'value', 'pack']) var.put('numIndex', (+var.get('index'))) var.put('intIndex', var.get('toIndex')(var.get('numIndex'))) if ((var.get('intIndex')+var.get('bytes'))>var.get('view').get(var.get('$LENGTH'))): PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_INDEX'))) raise PyJsTempException var.put('store', var.get('view').get(var.get('$BUFFER')).get('_b')) var.put('start', (var.get('intIndex')+var.get('view').get(var.get('$OFFSET')))) var.put('pack', var.get('conversion')((+var.get('value')))) #for JS loop var.put('i', Js(0.0)) while (var.get('i')var.get('bufferLength'))): PyJsTempException = JsToPyException(var.get('RangeError')(Js('Wrong offset!'))) raise PyJsTempException var.put('byteLength', ((var.get('bufferLength')-var.get('offset')) if PyJsStrictEq(var.get('byteLength'),var.get('undefined')) else var.get('toLength')(var.get('byteLength')))) if ((var.get('offset')+var.get('byteLength'))>var.get('bufferLength')): PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_LENGTH'))) raise PyJsTempException var.get(u"this").put(var.get('$BUFFER'), var.get('buffer')) var.get(u"this").put(var.get('$OFFSET'), var.get('offset')) var.get(u"this").put(var.get('$LENGTH'), var.get('byteLength')) PyJs_DataView_438_._set_name('DataView') var.put('$DataView', PyJs_DataView_438_) if var.get('DESCRIPTORS'): var.get('addGetter')(var.get('$ArrayBuffer'), var.get('BYTE_LENGTH'), Js('_l')) var.get('addGetter')(var.get('$DataView'), var.get('BUFFER'), Js('_b')) var.get('addGetter')(var.get('$DataView'), var.get('BYTE_LENGTH'), Js('_l')) var.get('addGetter')(var.get('$DataView'), var.get('BYTE_OFFSET'), Js('_o')) def PyJs_LONG_455_(var=var): @Js def PyJs_getInt8_439_(byteOffset, this, arguments, var=var): var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getInt8':PyJs_getInt8_439_}, var) var.registers(['byteOffset']) return ((var.get('get')(var.get(u"this"), Js(1.0), var.get('byteOffset')).get('0')<>Js(24.0)) PyJs_getInt8_439_._set_name('getInt8') @Js def PyJs_getUint8_440_(byteOffset, this, arguments, var=var): var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getUint8':PyJs_getUint8_440_}, var) var.registers(['byteOffset']) return var.get('get')(var.get(u"this"), Js(1.0), var.get('byteOffset')).get('0') PyJs_getUint8_440_._set_name('getUint8') @Js def PyJs_getInt16_441_(byteOffset, this, arguments, var=var): var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getInt16':PyJs_getInt16_441_}, var) var.registers(['byteOffset', 'bytes']) var.put('bytes', var.get('get')(var.get(u"this"), Js(2.0), var.get('byteOffset'), var.get('arguments').get('1'))) return ((((var.get('bytes').get('1')<>Js(16.0)) PyJs_getInt16_441_._set_name('getInt16') @Js def PyJs_getUint16_442_(byteOffset, this, arguments, var=var): var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getUint16':PyJs_getUint16_442_}, var) var.registers(['byteOffset', 'bytes']) var.put('bytes', var.get('get')(var.get(u"this"), Js(2.0), var.get('byteOffset'), var.get('arguments').get('1'))) return ((var.get('bytes').get('1')<var.get('j')): if var.get('$ArrayBuffer').contains(var.put('key', var.get('keys').get((var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))))).neg(): var.get('hide')(var.get('$ArrayBuffer'), var.get('key'), var.get('BaseBuffer').get(var.get('key'))) if var.get('LIBRARY').neg(): var.get('ArrayBufferProto').put('constructor', var.get('$ArrayBuffer')) var.put('view', var.get('$DataView').create(var.get('$ArrayBuffer').create(Js(2.0)))) var.put('$setInt8', var.get('$DataView').get(var.get('PROTOTYPE')).get('setInt8')) var.get('view').callprop('setInt8', Js(0.0), Js(2147483648.0)) var.get('view').callprop('setInt8', Js(1.0), Js(2147483649.0)) if (var.get('view').callprop('getInt8', Js(0.0)) or var.get('view').callprop('getInt8', Js(1.0)).neg()): @Js def PyJs_setInt8_460_(byteOffset, value, this, arguments, var=var): var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setInt8':PyJs_setInt8_460_}, var) var.registers(['byteOffset', 'value']) var.get('$setInt8').callprop('call', var.get(u"this"), var.get('byteOffset'), ((var.get('value')<>Js(24.0))) PyJs_setInt8_460_._set_name('setInt8') @Js def PyJs_setUint8_461_(byteOffset, value, this, arguments, var=var): var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setUint8':PyJs_setUint8_461_}, var) var.registers(['byteOffset', 'value']) var.get('$setInt8').callprop('call', var.get(u"this"), var.get('byteOffset'), ((var.get('value')<>Js(24.0))) PyJs_setUint8_461_._set_name('setUint8') var.get('redefineAll')(var.get('$DataView').get(var.get('PROTOTYPE')), Js({'setInt8':PyJs_setInt8_460_,'setUint8':PyJs_setUint8_461_}), Js(True)) var.get('setToStringTag')(var.get('$ArrayBuffer'), var.get('ARRAY_BUFFER')) var.get('setToStringTag')(var.get('$DataView'), var.get('DATA_VIEW')) var.get('hide')(var.get('$DataView').get(var.get('PROTOTYPE')), var.get('$typed').get('VIEW'), Js(True)) var.get('exports').put(var.get('ARRAY_BUFFER'), var.get('$ArrayBuffer')) var.get('exports').put(var.get('DATA_VIEW'), var.get('$DataView')) PyJs_anonymous_435_._set_name('anonymous') @Js def PyJs_anonymous_462_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'ABV', 'hide', 'TypedArrayConstructors', 'i', 'VIEW', 'Typed', 'CONSTR', 'uid', 'TYPED', 'module', 'exports', 'global', 'l']) var.put('global', var.get('require')(Js('./_global'))) var.put('hide', var.get('require')(Js('./_hide'))) var.put('uid', var.get('require')(Js('./_uid'))) var.put('TYPED', var.get('uid')(Js('typed_array'))) var.put('VIEW', var.get('uid')(Js('view'))) var.put('ABV', (var.get('global').get('ArrayBuffer') and var.get('global').get('DataView')).neg().neg()) var.put('CONSTR', var.get('ABV')) var.put('i', Js(0.0)) var.put('l', Js(9.0)) pass var.put('TypedArrayConstructors', Js('Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array').callprop('split', Js(','))) while (var.get('i')Js(1.0)) else var.get('undefined'))) PyJs_findIndex_485_._set_name('findIndex') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('forced'))), Js('Array'), Js({'findIndex':PyJs_findIndex_485_})) var.get('require')(Js('./_add-to-unscopables'))(var.get('KEY')) PyJs_anonymous_483_._set_name('anonymous') @Js def PyJs_anonymous_486_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'KEY', '$export', 'forced', 'exports', 'module', '$find']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$find', var.get('require')(Js('./_array-methods'))(Js(5.0))) var.put('KEY', Js('find')) var.put('forced', Js(True)) if Js([]).contains(var.get('KEY')): @Js def PyJs_anonymous_487_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.put('forced', Js(False)) PyJs_anonymous_487_._set_name('anonymous') var.get('Array')(Js(1.0)).callprop(var.get('KEY'), PyJs_anonymous_487_) @Js def PyJs_find_488_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'find':PyJs_find_488_}, var) var.registers(['callbackfn']) return var.get('$find')(var.get(u"this"), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) PyJs_find_488_._set_name('find') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('forced'))), Js('Array'), Js({'find':PyJs_find_488_})) var.get('require')(Js('./_add-to-unscopables'))(var.get('KEY')) PyJs_anonymous_486_._set_name('anonymous') @Js def PyJs_anonymous_489_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$forEach', 'STRICT', '$export', 'exports', 'module']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$forEach', var.get('require')(Js('./_array-methods'))(Js(0.0))) var.put('STRICT', var.get('require')(Js('./_strict-method'))(Js([]).get('forEach'), Js(True))) @Js def PyJs_forEach_490_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'forEach':PyJs_forEach_490_}, var) var.registers(['callbackfn']) return var.get('$forEach')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('1')) PyJs_forEach_490_._set_name('forEach') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('STRICT').neg())), Js('Array'), Js({'forEach':PyJs_forEach_490_})) PyJs_anonymous_489_._set_name('anonymous') @Js def PyJs_anonymous_491_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'getIterFn', 'toLength', 'isArrayIter', 'toObject', '$export', 'call', 'exports', 'module', 'ctx', 'createProperty']) Js('use strict') var.put('ctx', var.get('require')(Js('./_ctx'))) var.put('$export', var.get('require')(Js('./_export'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('call', var.get('require')(Js('./_iter-call'))) var.put('isArrayIter', var.get('require')(Js('./_is-array-iter'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('createProperty', var.get('require')(Js('./_create-property'))) var.put('getIterFn', var.get('require')(Js('./core.get-iterator-method'))) @Js def PyJs_anonymous_492_(iter, this, arguments, var=var): var = Scope({'iter':iter, 'this':this, 'arguments':arguments}, var) var.registers(['iter']) var.get('Array').callprop('from', var.get('iter')) PyJs_anonymous_492_._set_name('anonymous') @Js def PyJs_InlineNonPyName_493_(arrayLike, this, arguments, var=var): var = Scope({'arrayLike':arrayLike, 'this':this, 'arguments':arguments, 'from':PyJs_InlineNonPyName_493_}, var) var.registers(['C', 'iterator', 'index', 'length', 'mapfn', 'O', 'result', 'arrayLike', 'step', 'mapping', 'aLen', 'iterFn']) var.put('O', var.get('toObject')(var.get('arrayLike'))) var.put('C', (var.get(u"this") if (var.get(u"this",throw=False).typeof()==Js('function')) else var.get('Array'))) var.put('aLen', var.get('arguments').get('length')) var.put('mapfn', (var.get('arguments').get('1') if (var.get('aLen')>Js(1.0)) else var.get('undefined'))) var.put('mapping', PyJsStrictNeq(var.get('mapfn'),var.get('undefined'))) var.put('index', Js(0.0)) var.put('iterFn', var.get('getIterFn')(var.get('O'))) pass if var.get('mapping'): var.put('mapfn', var.get('ctx')(var.get('mapfn'), (var.get('arguments').get('2') if (var.get('aLen')>Js(2.0)) else var.get('undefined')), Js(2.0))) if ((var.get('iterFn')!=var.get('undefined')) and ((var.get('C')==var.get('Array')) and var.get('isArrayIter')(var.get('iterFn'))).neg()): #for JS loop PyJsComma(var.put('iterator', var.get('iterFn').callprop('call', var.get('O'))),var.put('result', var.get('C').create())) while var.put('step', var.get('iterator').callprop('next')).get('done').neg(): try: var.get('createProperty')(var.get('result'), var.get('index'), (var.get('call')(var.get('iterator'), var.get('mapfn'), Js([var.get('step').get('value'), var.get('index')]), Js(True)) if var.get('mapping') else var.get('step').get('value'))) finally: (var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)) else: var.put('length', var.get('toLength')(var.get('O').get('length'))) #for JS loop var.put('result', var.get('C').create(var.get('length'))) while (var.get('length')>var.get('index')): try: var.get('createProperty')(var.get('result'), var.get('index'), (var.get('mapfn')(var.get('O').get(var.get('index')), var.get('index')) if var.get('mapping') else var.get('O').get(var.get('index')))) finally: (var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)) var.get('result').put('length', var.get('index')) return var.get('result') PyJs_InlineNonPyName_493_._set_name('from') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_iter-detect'))(PyJs_anonymous_492_).neg())), Js('Array'), Js({'from':PyJs_InlineNonPyName_493_})) PyJs_anonymous_491_._set_name('anonymous') @Js def PyJs_anonymous_494_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['$indexOf', 'require', '$export', 'exports', 'module', 'NEGATIVE_ZERO', '$native']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$indexOf', var.get('require')(Js('./_array-includes'))(Js(False))) var.put('$native', Js([]).get('indexOf')) var.put('NEGATIVE_ZERO', (var.get('$native').neg().neg() and ((Js(1.0)/Js([Js(1.0)]).callprop('indexOf', Js(1.0), (-Js(0.0))))=var.get('O').get('length'))): var.get(u"this").put('_t', var.get('undefined')) return var.get('step')(Js(1.0)) if (var.get('kind')==Js('keys')): return var.get('step')(Js(0.0), var.get('index')) if (var.get('kind')==Js('values')): return var.get('step')(Js(0.0), var.get('O').get(var.get('index'))) return var.get('step')(Js(0.0), Js([var.get('index'), var.get('O').get(var.get('index'))])) PyJs_anonymous_499_._set_name('anonymous') var.get('module').put('exports', var.get('require')(Js('./_iter-define'))(var.get('Array'), Js('Array'), PyJs_anonymous_498_, PyJs_anonymous_499_, Js('values'))) var.get('Iterators').put('Arguments', var.get('Iterators').get('Array')) var.get('addToUnscopables')(Js('keys')) var.get('addToUnscopables')(Js('values')) var.get('addToUnscopables')(Js('entries')) PyJs_anonymous_497_._set_name('anonymous') @Js def PyJs_anonymous_500_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toIObject', '$export', 'exports', 'module', 'arrayJoin']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('arrayJoin', Js([]).get('join')) @Js def PyJs_join_501_(separator, this, arguments, var=var): var = Scope({'separator':separator, 'this':this, 'arguments':arguments, 'join':PyJs_join_501_}, var) var.registers(['separator']) return var.get('arrayJoin').callprop('call', var.get('toIObject')(var.get(u"this")), (Js(',') if PyJsStrictEq(var.get('separator'),var.get('undefined')) else var.get('separator'))) PyJs_join_501_._set_name('join') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*((var.get('require')(Js('./_iobject'))!=var.get('Object')) or var.get('require')(Js('./_strict-method'))(var.get('arrayJoin')).neg()))), Js('Array'), Js({'join':PyJs_join_501_})) PyJs_anonymous_500_._set_name('anonymous') @Js def PyJs_anonymous_502_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'toIObject', '$export', 'exports', 'module', 'NEGATIVE_ZERO', 'toInteger', '$native']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('toInteger', var.get('require')(Js('./_to-integer'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('$native', Js([]).get('lastIndexOf')) var.put('NEGATIVE_ZERO', (var.get('$native').neg().neg() and ((Js(1.0)/Js([Js(1.0)]).callprop('lastIndexOf', Js(1.0), (-Js(0.0))))Js(1.0)): var.put('index', var.get('Math').callprop('min', var.get('index'), var.get('toInteger')(var.get('arguments').get('1')))) if (var.get('index')=Js(0.0)): try: if var.get('O').contains(var.get('index')): if PyJsStrictEq(var.get('O').get(var.get('index')),var.get('searchElement')): return (var.get('index') or Js(0.0)) finally: (var.put('index',Js(var.get('index').to_number())-Js(1))+Js(1)) return (-Js(1.0)) PyJs_lastIndexOf_503_._set_name('lastIndexOf') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*(var.get('NEGATIVE_ZERO') or var.get('require')(Js('./_strict-method'))(var.get('$native')).neg()))), Js('Array'), Js({'lastIndexOf':PyJs_lastIndexOf_503_})) PyJs_anonymous_502_._set_name('anonymous') @Js def PyJs_anonymous_504_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$map', '$export', 'exports', 'module']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$map', var.get('require')(Js('./_array-methods'))(Js(1.0))) @Js def PyJs_map_505_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'map':PyJs_map_505_}, var) var.registers(['callbackfn']) return var.get('$map')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('1')) PyJs_map_505_._set_name('map') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_strict-method'))(Js([]).get('map'), Js(True)).neg())), Js('Array'), Js({'map':PyJs_map_505_})) PyJs_anonymous_504_._set_name('anonymous') @Js def PyJs_anonymous_506_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', 'createProperty']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('createProperty', var.get('require')(Js('./_create-property'))) @Js def PyJs_anonymous_507_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['F']) @Js def PyJsHoisted_F_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) pass PyJsHoisted_F_.func_name = 'F' var.put('F', PyJsHoisted_F_) pass return var.get('Array').get('of').callprop('call', var.get('F')).instanceof(var.get('F')).neg() PyJs_anonymous_507_._set_name('anonymous') @Js def PyJs_of_508_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'of':PyJs_of_508_}, var) var.registers(['index', 'result', 'aLen']) var.put('index', Js(0.0)) var.put('aLen', var.get('arguments').get('length')) var.put('result', (var.get(u"this") if (var.get(u"this",throw=False).typeof()==Js('function')) else var.get('Array')).create(var.get('aLen'))) while (var.get('aLen')>var.get('index')): var.get('createProperty')(var.get('result'), var.get('index'), var.get('arguments').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)))) var.get('result').put('length', var.get('aLen')) return var.get('result') PyJs_of_508_._set_name('of') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_507_))), Js('Array'), Js({'of':PyJs_of_508_})) PyJs_anonymous_506_._set_name('anonymous') @Js def PyJs_anonymous_509_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', '$reduce']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$reduce', var.get('require')(Js('./_array-reduce'))) @Js def PyJs_reduceRight_510_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'reduceRight':PyJs_reduceRight_510_}, var) var.registers(['callbackfn']) return var.get('$reduce')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('length'), var.get('arguments').get('1'), Js(True)) PyJs_reduceRight_510_._set_name('reduceRight') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_strict-method'))(Js([]).get('reduceRight'), Js(True)).neg())), Js('Array'), Js({'reduceRight':PyJs_reduceRight_510_})) PyJs_anonymous_509_._set_name('anonymous') @Js def PyJs_anonymous_511_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', '$reduce']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$reduce', var.get('require')(Js('./_array-reduce'))) @Js def PyJs_reduce_512_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'reduce':PyJs_reduce_512_}, var) var.registers(['callbackfn']) return var.get('$reduce')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('length'), var.get('arguments').get('1'), Js(False)) PyJs_reduce_512_._set_name('reduce') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_strict-method'))(Js([]).get('reduce'), Js(True)).neg())), Js('Array'), Js({'reduce':PyJs_reduce_512_})) PyJs_anonymous_511_._set_name('anonymous') @Js def PyJs_anonymous_513_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'arraySlice', 'toLength', 'html', 'toAbsoluteIndex', '$export', 'exports', 'cof', 'module']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('html', var.get('require')(Js('./_html'))) var.put('cof', var.get('require')(Js('./_cof'))) var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('arraySlice', Js([]).get('slice')) @Js def PyJs_anonymous_514_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) if var.get('html'): var.get('arraySlice').callprop('call', var.get('html')) PyJs_anonymous_514_._set_name('anonymous') @Js def PyJs_slice_515_(begin, end, this, arguments, var=var): var = Scope({'begin':begin, 'end':end, 'this':this, 'arguments':arguments, 'slice':PyJs_slice_515_}, var) var.registers(['upTo', 'begin', 'cloned', 'i', 'end', 'start', 'size', 'len', 'klass']) var.put('len', var.get('toLength')(var.get(u"this").get('length'))) var.put('klass', var.get('cof')(var.get(u"this"))) var.put('end', (var.get('len') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('end'))) if (var.get('klass')==Js('Array')): return var.get('arraySlice').callprop('call', var.get(u"this"), var.get('begin'), var.get('end')) var.put('start', var.get('toAbsoluteIndex')(var.get('begin'), var.get('len'))) var.put('upTo', var.get('toAbsoluteIndex')(var.get('end'), var.get('len'))) var.put('size', var.get('toLength')((var.get('upTo')-var.get('start')))) var.put('cloned', var.get('Array').create(var.get('size'))) var.put('i', Js(0.0)) #for JS loop while (var.get('i')Js(0.0)) else var.get('undefined'))) PyJs_Map_540_._set_name('Map') return PyJs_Map_540_ PyJs_anonymous_539_._set_name('anonymous') @Js def PyJs_get_541_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, 'get':PyJs_get_541_}, var) var.registers(['entry', 'key']) var.put('entry', var.get('strong').callprop('getEntry', var.get('validate')(var.get(u"this"), var.get('MAP')), var.get('key'))) return (var.get('entry') and var.get('entry').get('v')) PyJs_get_541_._set_name('get') @Js def PyJs_set_542_(key, value, this, arguments, var=var): var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments, 'set':PyJs_set_542_}, var) var.registers(['value', 'key']) return var.get('strong').callprop('def', var.get('validate')(var.get(u"this"), var.get('MAP')), (Js(0.0) if PyJsStrictEq(var.get('key'),Js(0.0)) else var.get('key')), var.get('value')) PyJs_set_542_._set_name('set') var.get('module').put('exports', var.get('require')(Js('./_collection'))(var.get('MAP'), PyJs_anonymous_539_, Js({'get':PyJs_get_541_,'set':PyJs_set_542_}), var.get('strong'), Js(True))) PyJs_anonymous_538_._set_name('anonymous') @Js def PyJs_anonymous_543_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'log1p', 'sqrt', '$export', 'exports', 'module', '$acosh']) var.put('$export', var.get('require')(Js('./_export'))) var.put('log1p', var.get('require')(Js('./_math-log1p'))) var.put('sqrt', var.get('Math').get('sqrt')) var.put('$acosh', var.get('Math').get('acosh')) @Js def PyJs_acosh_544_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'acosh':PyJs_acosh_544_}, var) var.registers(['x']) return (var.get('NaN') if (var.put('x', (+var.get('x')))Js(94906265.62425156)) else var.get('log1p')(((var.get('x')-Js(1.0))+(var.get('sqrt')((var.get('x')-Js(1.0)))*var.get('sqrt')((var.get('x')+Js(1.0)))))))) PyJs_acosh_544_._set_name('acosh') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*((var.get('$acosh') and (var.get('Math').callprop('floor', var.get('$acosh')(var.get('Number').get('MAX_VALUE')))==Js(710.0))) and (var.get('$acosh')(var.get('Infinity'))==var.get('Infinity'))).neg())), Js('Math'), Js({'acosh':PyJs_acosh_544_})) PyJs_anonymous_543_._set_name('anonymous') @Js def PyJs_anonymous_545_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'asinh', '$asinh', '$export', 'exports', 'module']) @Js def PyJsHoisted_asinh_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments}, var) var.registers(['x']) return (var.get('x') if (var.get('isFinite')(var.put('x', (+var.get('x')))).neg() or (var.get('x')==Js(0.0))) else ((-var.get('asinh')((-var.get('x')))) if (var.get('x')Js(0.0))).neg())), Js('Math'), Js({'asinh':var.get('asinh')})) PyJs_anonymous_545_._set_name('anonymous') @Js def PyJs_anonymous_546_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', '$atanh']) var.put('$export', var.get('require')(Js('./_export'))) var.put('$atanh', var.get('Math').get('atanh')) @Js def PyJs_atanh_547_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'atanh':PyJs_atanh_547_}, var) var.registers(['x']) return (var.get('x') if (var.put('x', (+var.get('x')))==Js(0.0)) else (var.get('Math').callprop('log', ((Js(1.0)+var.get('x'))/(Js(1.0)-var.get('x'))))/Js(2.0))) PyJs_atanh_547_._set_name('atanh') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('$atanh') and ((Js(1.0)/var.get('$atanh')((-Js(0.0))))>>') else Js(32.0)) PyJs_clz32_551_._set_name('clz32') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'clz32':PyJs_clz32_551_})) PyJs_anonymous_550_._set_name('anonymous') @Js def PyJs_anonymous_552_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', 'exp']) var.put('$export', var.get('require')(Js('./_export'))) var.put('exp', var.get('Math').get('exp')) @Js def PyJs_cosh_553_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'cosh':PyJs_cosh_553_}, var) var.registers(['x']) return ((var.get('exp')(var.put('x', (+var.get('x'))))+var.get('exp')((-var.get('x'))))/Js(2.0)) PyJs_cosh_553_._set_name('cosh') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'cosh':PyJs_cosh_553_})) PyJs_anonymous_552_._set_name('anonymous') @Js def PyJs_anonymous_554_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', '$expm1']) var.put('$export', var.get('require')(Js('./_export'))) var.put('$expm1', var.get('require')(Js('./_math-expm1'))) var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('$expm1')!=var.get('Math').get('expm1')))), Js('Math'), Js({'expm1':var.get('$expm1')})) PyJs_anonymous_554_._set_name('anonymous') @Js def PyJs_anonymous_555_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'fround':var.get('require')(Js('./_math-fround'))})) PyJs_anonymous_555_._set_name('anonymous') @Js def PyJs_anonymous_556_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'abs', '$export', 'exports', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('abs', var.get('Math').get('abs')) @Js def PyJs_hypot_557_(value1, value2, this, arguments, var=var): var = Scope({'value1':value1, 'value2':value2, 'this':this, 'arguments':arguments, 'hypot':PyJs_hypot_557_}, var) var.registers(['i', 'value2', 'div', 'arg', 'larg', 'value1', 'aLen', 'sum']) var.put('sum', Js(0.0)) var.put('i', Js(0.0)) var.put('aLen', var.get('arguments').get('length')) var.put('larg', Js(0.0)) pass while (var.get('i')Js(0.0)): var.put('div', (var.get('arg')/var.get('larg'))) var.put('sum', (var.get('div')*var.get('div')), '+') else: var.put('sum', var.get('arg'), '+') return (var.get('Infinity') if PyJsStrictEq(var.get('larg'),var.get('Infinity')) else (var.get('larg')*var.get('Math').callprop('sqrt', var.get('sum')))) PyJs_hypot_557_._set_name('hypot') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'hypot':PyJs_hypot_557_})) PyJs_anonymous_556_._set_name('anonymous') @Js def PyJs_anonymous_558_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$imul', '$export', 'exports', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('$imul', var.get('Math').get('imul')) @Js def PyJs_anonymous_559_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return ((var.get('$imul')(Js(4294967295), Js(5.0))!=(-Js(5.0))) or (var.get('$imul').get('length')!=Js(2.0))) PyJs_anonymous_559_._set_name('anonymous') @Js def PyJs_imul_560_(x, y, this, arguments, var=var): var = Scope({'x':x, 'y':y, 'this':this, 'arguments':arguments, 'imul':PyJs_imul_560_}, var) var.registers(['y', 'x', 'UINT16', 'xn', 'xl', 'yl', 'yn']) var.put('UINT16', Js(65535)) var.put('xn', (+var.get('x'))) var.put('yn', (+var.get('y'))) var.put('xl', (var.get('UINT16')&var.get('xn'))) var.put('yl', (var.get('UINT16')&var.get('yn'))) return (Js(0.0)|((var.get('xl')*var.get('yl'))+PyJsBshift(((((var.get('UINT16')&PyJsBshift(var.get('xn'),Js(16.0)))*var.get('yl'))+(var.get('xl')*(var.get('UINT16')&PyJsBshift(var.get('yn'),Js(16.0)))))<Js(0.0)) else var.get('Math').get('ceil'))(var.get('it')) PyJs_trunc_573_._set_name('trunc') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'trunc':PyJs_trunc_573_})) PyJs_anonymous_572_._set_name('anonymous') @Js def PyJs_anonymous_574_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['proto', 'cof', 'Base', '$trim', 'dP', 'key', 'TRIM', 'gOPN', 'inheritIfRequired', 'BROKEN_COF', 'require', 'toPrimitive', 'NUMBER', 'module', 'fails', 'global', 'keys', '$Number', 'toNumber', 'gOPD', 'exports', 'j', 'has']) Js('use strict') var.put('global', var.get('require')(Js('./_global'))) var.put('has', var.get('require')(Js('./_has'))) var.put('cof', var.get('require')(Js('./_cof'))) var.put('inheritIfRequired', var.get('require')(Js('./_inherit-if-required'))) var.put('toPrimitive', var.get('require')(Js('./_to-primitive'))) var.put('fails', var.get('require')(Js('./_fails'))) var.put('gOPN', var.get('require')(Js('./_object-gopn')).get('f')) var.put('gOPD', var.get('require')(Js('./_object-gopd')).get('f')) var.put('dP', var.get('require')(Js('./_object-dp')).get('f')) var.put('$trim', var.get('require')(Js('./_string-trim')).get('trim')) var.put('NUMBER', Js('Number')) var.put('$Number', var.get('global').get(var.get('NUMBER'))) var.put('Base', var.get('$Number')) var.put('proto', var.get('$Number').get('prototype')) var.put('BROKEN_COF', (var.get('cof')(var.get('require')(Js('./_object-create'))(var.get('proto')))==var.get('NUMBER'))) var.put('TRIM', var.get('String').get('prototype').contains(Js('trim'))) @Js def PyJs_toNumber_575_(argument, this, arguments, var=var): var = Scope({'argument':argument, 'this':this, 'arguments':arguments, 'toNumber':PyJs_toNumber_575_}, var) var.registers(['it', 'code', 'radix', 'i', 'third', 'maxCode', 'argument', 'digits', 'first', 'l']) var.put('it', var.get('toPrimitive')(var.get('argument'), Js(False))) if ((var.get('it',throw=False).typeof()==Js('string')) and (var.get('it').get('length')>Js(2.0))): var.put('it', (var.get('it').callprop('trim') if var.get('TRIM') else var.get('$trim')(var.get('it'), Js(3.0)))) var.put('first', var.get('it').callprop('charCodeAt', Js(0.0))) pass if (PyJsStrictEq(var.get('first'),Js(43.0)) or PyJsStrictEq(var.get('first'),Js(45.0))): var.put('third', var.get('it').callprop('charCodeAt', Js(2.0))) if (PyJsStrictEq(var.get('third'),Js(88.0)) or PyJsStrictEq(var.get('third'),Js(120.0))): return var.get('NaN') else: if PyJsStrictEq(var.get('first'),Js(48.0)): while 1: SWITCHED = False CONDITION = (var.get('it').callprop('charCodeAt', Js(1.0))) if SWITCHED or PyJsStrictEq(CONDITION, Js(66.0)): SWITCHED = True pass if SWITCHED or PyJsStrictEq(CONDITION, Js(98.0)): SWITCHED = True var.put('radix', Js(2.0)) var.put('maxCode', Js(49.0)) break if SWITCHED or PyJsStrictEq(CONDITION, Js(79.0)): SWITCHED = True pass if SWITCHED or PyJsStrictEq(CONDITION, Js(111.0)): SWITCHED = True var.put('radix', Js(8.0)) var.put('maxCode', Js(55.0)) break if True: SWITCHED = True return (+var.get('it')) SWITCHED = True break #for JS loop var.put('digits', var.get('it').callprop('slice', Js(2.0))) var.put('i', Js(0.0)) var.put('l', var.get('digits').get('length')) while (var.get('i')var.get('maxCode'))): return var.get('NaN') finally: (var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)) return var.get('parseInt')(var.get('digits'), var.get('radix')) return (+var.get('it')) PyJs_toNumber_575_._set_name('toNumber') var.put('toNumber', PyJs_toNumber_575_) if ((var.get('$Number')(Js(' 0o1')).neg() or var.get('$Number')(Js('0b1')).neg()) or var.get('$Number')(Js('+0x1'))): @Js def PyJs_Number_576_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'Number':PyJs_Number_576_}, var) var.registers(['it', 'value', 'that']) var.put('it', (Js(0.0) if (var.get('arguments').get('length')var.get('j')): try: if (var.get('has')(var.get('Base'), var.put('key', var.get('keys').get(var.get('j')))) and var.get('has')(var.get('$Number'), var.get('key')).neg()): var.get('dP')(var.get('$Number'), var.get('key'), var.get('gOPD')(var.get('Base'), var.get('key'))) finally: (var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1)) var.get('$Number').put('prototype', var.get('proto')) var.get('proto').put('constructor', var.get('$Number')) var.get('require')(Js('./_redefine'))(var.get('global'), var.get('NUMBER'), var.get('$Number')) PyJs_anonymous_574_._set_name('anonymous') @Js def PyJs_anonymous_578_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'EPSILON':var.get('Math').callprop('pow', Js(2.0), (-Js(52.0)))})) PyJs_anonymous_578_._set_name('anonymous') @Js def PyJs_anonymous_579_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', '_isFinite']) var.put('$export', var.get('require')(Js('./_export'))) var.put('_isFinite', var.get('require')(Js('./_global')).get('isFinite')) @Js def PyJs_isFinite_580_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isFinite':PyJs_isFinite_580_}, var) var.registers(['it']) return ((var.get('it',throw=False).typeof()==Js('number')) and var.get('_isFinite')(var.get('it'))) PyJs_isFinite_580_._set_name('isFinite') var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'isFinite':PyJs_isFinite_580_})) PyJs_anonymous_579_._set_name('anonymous') @Js def PyJs_anonymous_581_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'isInteger':var.get('require')(Js('./_is-integer'))})) PyJs_anonymous_581_._set_name('anonymous') @Js def PyJs_anonymous_582_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) @Js def PyJs_isNaN_583_(number, this, arguments, var=var): var = Scope({'number':number, 'this':this, 'arguments':arguments, 'isNaN':PyJs_isNaN_583_}, var) var.registers(['number']) return (var.get('number')!=var.get('number')) PyJs_isNaN_583_._set_name('isNaN') var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'isNaN':PyJs_isNaN_583_})) PyJs_anonymous_582_._set_name('anonymous') @Js def PyJs_anonymous_584_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'isInteger', 'abs', '$export', 'exports', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('isInteger', var.get('require')(Js('./_is-integer'))) var.put('abs', var.get('Math').get('abs')) @Js def PyJs_isSafeInteger_585_(number, this, arguments, var=var): var = Scope({'number':number, 'this':this, 'arguments':arguments, 'isSafeInteger':PyJs_isSafeInteger_585_}, var) var.registers(['number']) return (var.get('isInteger')(var.get('number')) and (var.get('abs')(var.get('number'))<=Js(9007199254740991))) PyJs_isSafeInteger_585_._set_name('isSafeInteger') var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'isSafeInteger':PyJs_isSafeInteger_585_})) PyJs_anonymous_584_._set_name('anonymous') @Js def PyJs_anonymous_586_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'MAX_SAFE_INTEGER':Js(9007199254740991)})) PyJs_anonymous_586_._set_name('anonymous') @Js def PyJs_anonymous_587_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'MIN_SAFE_INTEGER':(-Js(9007199254740991))})) PyJs_anonymous_587_._set_name('anonymous') @Js def PyJs_anonymous_588_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$parseFloat', '$export', 'exports', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('$parseFloat', var.get('require')(Js('./_parse-float'))) var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('Number').get('parseFloat')!=var.get('$parseFloat')))), Js('Number'), Js({'parseFloat':var.get('$parseFloat')})) PyJs_anonymous_588_._set_name('anonymous') @Js def PyJs_anonymous_589_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$parseInt', '$export', 'exports', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('$parseInt', var.get('require')(Js('./_parse-int'))) var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('Number').get('parseInt')!=var.get('$parseInt')))), Js('Number'), Js({'parseInt':var.get('$parseInt')})) PyJs_anonymous_589_._set_name('anonymous') @Js def PyJs_anonymous_590_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'floor', 'aNumberValue', '$export', 'ZERO', 'exports', 'divide', 'module', 'repeat', 'data', 'ERROR', '$toFixed', 'numToString', 'pow', 'multiply', 'toInteger', 'log']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('toInteger', var.get('require')(Js('./_to-integer'))) var.put('aNumberValue', var.get('require')(Js('./_a-number-value'))) var.put('repeat', var.get('require')(Js('./_string-repeat'))) var.put('$toFixed', Js(1.0).get('toFixed')) var.put('floor', var.get('Math').get('floor')) var.put('data', Js([Js(0.0), Js(0.0), Js(0.0), Js(0.0), Js(0.0), Js(0.0)])) var.put('ERROR', Js('Number.toFixed: incorrect invocation!')) var.put('ZERO', Js('0')) @Js def PyJs_multiply_591_(n, c, this, arguments, var=var): var = Scope({'n':n, 'c':c, 'this':this, 'arguments':arguments, 'multiply':PyJs_multiply_591_}, var) var.registers(['c', 'c2', 'i', 'n']) var.put('i', (-Js(1.0))) var.put('c2', var.get('c')) while (var.put('i',Js(var.get('i').to_number())+Js(1))=Js(0.0)): var.put('c', var.get('data').get(var.get('i')), '+') var.get('data').put(var.get('i'), var.get('floor')((var.get('c')/var.get('n')))) var.put('c', ((var.get('c')%var.get('n'))*Js(10000000.0))) PyJs_divide_592_._set_name('divide') var.put('divide', PyJs_divide_592_) @Js def PyJs_numToString_593_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'numToString':PyJs_numToString_593_}, var) var.registers(['s', 'i', 't']) var.put('i', Js(6.0)) var.put('s', Js('')) while (var.put('i',Js(var.get('i').to_number())-Js(1))>=Js(0.0)): if ((PyJsStrictNeq(var.get('s'),Js('')) or PyJsStrictEq(var.get('i'),Js(0.0))) or PyJsStrictNeq(var.get('data').get(var.get('i')),Js(0.0))): var.put('t', var.get('String')(var.get('data').get(var.get('i')))) var.put('s', (var.get('t') if PyJsStrictEq(var.get('s'),Js('')) else ((var.get('s')+var.get('repeat').callprop('call', var.get('ZERO'), (Js(7.0)-var.get('t').get('length'))))+var.get('t')))) return var.get('s') PyJs_numToString_593_._set_name('numToString') var.put('numToString', PyJs_numToString_593_) @Js def PyJs_pow_594_(x, n, acc, this, arguments, var=var): var = Scope({'x':x, 'n':n, 'acc':acc, 'this':this, 'arguments':arguments, 'pow':PyJs_pow_594_}, var) var.registers(['acc', 'x', 'n']) return (var.get('acc') if PyJsStrictEq(var.get('n'),Js(0.0)) else (var.get('pow')(var.get('x'), (var.get('n')-Js(1.0)), (var.get('acc')*var.get('x'))) if PyJsStrictEq((var.get('n')%Js(2.0)),Js(1.0)) else var.get('pow')((var.get('x')*var.get('x')), (var.get('n')/Js(2.0)), var.get('acc')))) PyJs_pow_594_._set_name('pow') var.put('pow', PyJs_pow_594_) @Js def PyJs_log_595_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'log':PyJs_log_595_}, var) var.registers(['x2', 'x', 'n']) var.put('n', Js(0.0)) var.put('x2', var.get('x')) while (var.get('x2')>=Js(4096.0)): var.put('n', Js(12.0), '+') var.put('x2', Js(4096.0), '/') while (var.get('x2')>=Js(2.0)): var.put('n', Js(1.0), '+') var.put('x2', Js(2.0), '/') return var.get('n') PyJs_log_595_._set_name('log') var.put('log', PyJs_log_595_) def PyJs_LONG_597_(var=var): @Js def PyJs_anonymous_596_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('$toFixed').callprop('call', Js({})) PyJs_anonymous_596_._set_name('anonymous') return ((var.get('$toFixed').neg().neg() and (((PyJsStrictNeq(Js(8e-05).callprop('toFixed', Js(3.0)),Js('0.000')) or PyJsStrictNeq(Js(0.9).callprop('toFixed', Js(0.0)),Js('1'))) or PyJsStrictNeq(Js(1.255).callprop('toFixed', Js(2.0)),Js('1.25'))) or PyJsStrictNeq(Js(1.0000000000000001e+18).callprop('toFixed', Js(0.0)),Js('1000000000000000128')))) or var.get('require')(Js('./_fails'))(PyJs_anonymous_596_).neg()) @Js def PyJs_toFixed_598_(fractionDigits, this, arguments, var=var): var = Scope({'fractionDigits':fractionDigits, 'this':this, 'arguments':arguments, 'toFixed':PyJs_toFixed_598_}, var) var.registers(['fractionDigits', 'z', 'f', 'x', 'j', 'm', 'k', 'e', 's']) var.put('x', var.get('aNumberValue')(var.get(u"this"), var.get('ERROR'))) var.put('f', var.get('toInteger')(var.get('fractionDigits'))) var.put('s', Js('')) var.put('m', var.get('ZERO')) pass if ((var.get('f')Js(20.0))): PyJsTempException = JsToPyException(var.get('RangeError')(var.get('ERROR'))) raise PyJsTempException if (var.get('x')!=var.get('x')): return Js('NaN') if ((var.get('x')<=(-Js(1e+21))) or (var.get('x')>=Js(1e+21))): return var.get('String')(var.get('x')) if (var.get('x')Js(1e-21)): var.put('e', (var.get('log')((var.get('x')*var.get('pow')(Js(2.0), Js(69.0), Js(1.0))))-Js(69.0))) var.put('z', ((var.get('x')*var.get('pow')(Js(2.0), (-var.get('e')), Js(1.0))) if (var.get('e')Js(0.0)): var.get('multiply')(Js(0.0), var.get('z')) var.put('j', var.get('f')) while (var.get('j')>=Js(7.0)): var.get('multiply')(Js(10000000.0), Js(0.0)) var.put('j', Js(7.0), '-') var.get('multiply')(var.get('pow')(Js(10.0), var.get('j'), Js(1.0)), Js(0.0)) var.put('j', (var.get('e')-Js(1.0))) while (var.get('j')>=Js(23.0)): var.get('divide')((Js(1.0)<Js(0.0)): var.put('k', var.get('m').get('length')) var.put('m', (var.get('s')+(((Js('0.')+var.get('repeat').callprop('call', var.get('ZERO'), (var.get('f')-var.get('k'))))+var.get('m')) if (var.get('k')<=var.get('f')) else ((var.get('m').callprop('slice', Js(0.0), (var.get('k')-var.get('f')))+Js('.'))+var.get('m').callprop('slice', (var.get('k')-var.get('f'))))))) else: var.put('m', (var.get('s')+var.get('m'))) return var.get('m') PyJs_toFixed_598_._set_name('toFixed') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*PyJs_LONG_597_())), Js('Number'), Js({'toFixed':PyJs_toFixed_598_})) PyJs_anonymous_590_._set_name('anonymous') @Js def PyJs_anonymous_599_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['$fails', 'require', 'aNumberValue', '$export', 'exports', 'module', '$toPrecision']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$fails', var.get('require')(Js('./_fails'))) var.put('aNumberValue', var.get('require')(Js('./_a-number-value'))) var.put('$toPrecision', Js(1.0).get('toPrecision')) @Js def PyJs_anonymous_600_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return PyJsStrictNeq(var.get('$toPrecision').callprop('call', Js(1.0), var.get('undefined')),Js('1')) PyJs_anonymous_600_._set_name('anonymous') @Js def PyJs_anonymous_601_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('$toPrecision').callprop('call', Js({})) PyJs_anonymous_601_._set_name('anonymous') @Js def PyJs_toPrecision_602_(precision, this, arguments, var=var): var = Scope({'precision':precision, 'this':this, 'arguments':arguments, 'toPrecision':PyJs_toPrecision_602_}, var) var.registers(['precision', 'that']) var.put('that', var.get('aNumberValue')(var.get(u"this"), Js('Number#toPrecision: incorrect invocation!'))) return (var.get('$toPrecision').callprop('call', var.get('that')) if PyJsStrictEq(var.get('precision'),var.get('undefined')) else var.get('$toPrecision').callprop('call', var.get('that'), var.get('precision'))) PyJs_toPrecision_602_._set_name('toPrecision') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*(var.get('$fails')(PyJs_anonymous_600_) or var.get('$fails')(PyJs_anonymous_601_).neg()))), Js('Number'), Js({'toPrecision':PyJs_toPrecision_602_})) PyJs_anonymous_599_._set_name('anonymous') @Js def PyJs_anonymous_603_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')((var.get('$export').get('S')+var.get('$export').get('F')), Js('Object'), Js({'assign':var.get('require')(Js('./_object-assign'))})) PyJs_anonymous_603_._set_name('anonymous') @Js def PyJs_anonymous_604_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'create':var.get('require')(Js('./_object-create'))})) PyJs_anonymous_604_._set_name('anonymous') @Js def PyJs_anonymous_605_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_descriptors')).neg())), Js('Object'), Js({'defineProperties':var.get('require')(Js('./_object-dps'))})) PyJs_anonymous_605_._set_name('anonymous') @Js def PyJs_anonymous_606_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_descriptors')).neg())), Js('Object'), Js({'defineProperty':var.get('require')(Js('./_object-dp')).get('f')})) PyJs_anonymous_606_._set_name('anonymous') @Js def PyJs_anonymous_607_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'meta', 'exports', 'module', 'isObject']) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('meta', var.get('require')(Js('./_meta')).get('onFreeze')) @Js def PyJs_anonymous_608_(PyJsArg_24667265657a65_, this, arguments, var=var): var = Scope({'$freeze':PyJsArg_24667265657a65_, 'this':this, 'arguments':arguments}, var) var.registers(['$freeze']) @Js def PyJs_freeze_609_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'freeze':PyJs_freeze_609_}, var) var.registers(['it']) return (var.get('$freeze')(var.get('meta')(var.get('it'))) if (var.get('$freeze') and var.get('isObject')(var.get('it'))) else var.get('it')) PyJs_freeze_609_._set_name('freeze') return PyJs_freeze_609_ PyJs_anonymous_608_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('freeze'), PyJs_anonymous_608_) PyJs_anonymous_607_._set_name('anonymous') @Js def PyJs_anonymous_610_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$getOwnPropertyDescriptor', 'toIObject', 'exports', 'module']) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('$getOwnPropertyDescriptor', var.get('require')(Js('./_object-gopd')).get('f')) @Js def PyJs_anonymous_611_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_getOwnPropertyDescriptor_612_(it, key, this, arguments, var=var): var = Scope({'it':it, 'key':key, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_612_}, var) var.registers(['it', 'key']) return var.get('$getOwnPropertyDescriptor')(var.get('toIObject')(var.get('it')), var.get('key')) PyJs_getOwnPropertyDescriptor_612_._set_name('getOwnPropertyDescriptor') return PyJs_getOwnPropertyDescriptor_612_ PyJs_anonymous_611_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('getOwnPropertyDescriptor'), PyJs_anonymous_611_) PyJs_anonymous_610_._set_name('anonymous') @Js def PyJs_anonymous_613_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) @Js def PyJs_anonymous_614_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return var.get('require')(Js('./_object-gopn-ext')).get('f') PyJs_anonymous_614_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('getOwnPropertyNames'), PyJs_anonymous_614_) PyJs_anonymous_613_._set_name('anonymous') @Js def PyJs_anonymous_615_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$getPrototypeOf', 'toObject', 'exports', 'module']) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('$getPrototypeOf', var.get('require')(Js('./_object-gpo'))) @Js def PyJs_anonymous_616_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_getPrototypeOf_617_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getPrototypeOf':PyJs_getPrototypeOf_617_}, var) var.registers(['it']) return var.get('$getPrototypeOf')(var.get('toObject')(var.get('it'))) PyJs_getPrototypeOf_617_._set_name('getPrototypeOf') return PyJs_getPrototypeOf_617_ PyJs_anonymous_616_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('getPrototypeOf'), PyJs_anonymous_616_) PyJs_anonymous_615_._set_name('anonymous') @Js def PyJs_anonymous_618_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'isObject', 'module', 'exports']) var.put('isObject', var.get('require')(Js('./_is-object'))) @Js def PyJs_anonymous_619_(PyJsArg_246973457874656e7369626c65_, this, arguments, var=var): var = Scope({'$isExtensible':PyJsArg_246973457874656e7369626c65_, 'this':this, 'arguments':arguments}, var) var.registers(['$isExtensible']) @Js def PyJs_isExtensible_620_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isExtensible':PyJs_isExtensible_620_}, var) var.registers(['it']) return ((var.get('$isExtensible')(var.get('it')) if var.get('$isExtensible') else Js(True)) if var.get('isObject')(var.get('it')) else Js(False)) PyJs_isExtensible_620_._set_name('isExtensible') return PyJs_isExtensible_620_ PyJs_anonymous_619_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('isExtensible'), PyJs_anonymous_619_) PyJs_anonymous_618_._set_name('anonymous') @Js def PyJs_anonymous_621_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'isObject', 'module', 'exports']) var.put('isObject', var.get('require')(Js('./_is-object'))) @Js def PyJs_anonymous_622_(PyJsArg_24697346726f7a656e_, this, arguments, var=var): var = Scope({'$isFrozen':PyJsArg_24697346726f7a656e_, 'this':this, 'arguments':arguments}, var) var.registers(['$isFrozen']) @Js def PyJs_isFrozen_623_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isFrozen':PyJs_isFrozen_623_}, var) var.registers(['it']) return ((var.get('$isFrozen')(var.get('it')) if var.get('$isFrozen') else Js(False)) if var.get('isObject')(var.get('it')) else Js(True)) PyJs_isFrozen_623_._set_name('isFrozen') return PyJs_isFrozen_623_ PyJs_anonymous_622_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('isFrozen'), PyJs_anonymous_622_) PyJs_anonymous_621_._set_name('anonymous') @Js def PyJs_anonymous_624_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'isObject', 'module', 'exports']) var.put('isObject', var.get('require')(Js('./_is-object'))) @Js def PyJs_anonymous_625_(PyJsArg_2469735365616c6564_, this, arguments, var=var): var = Scope({'$isSealed':PyJsArg_2469735365616c6564_, 'this':this, 'arguments':arguments}, var) var.registers(['$isSealed']) @Js def PyJs_isSealed_626_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isSealed':PyJs_isSealed_626_}, var) var.registers(['it']) return ((var.get('$isSealed')(var.get('it')) if var.get('$isSealed') else Js(False)) if var.get('isObject')(var.get('it')) else Js(True)) PyJs_isSealed_626_._set_name('isSealed') return PyJs_isSealed_626_ PyJs_anonymous_625_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('isSealed'), PyJs_anonymous_625_) PyJs_anonymous_624_._set_name('anonymous') @Js def PyJs_anonymous_627_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'is':var.get('require')(Js('./_same-value'))})) PyJs_anonymous_627_._set_name('anonymous') @Js def PyJs_anonymous_628_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$keys', 'toObject', 'exports', 'module']) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('$keys', var.get('require')(Js('./_object-keys'))) @Js def PyJs_anonymous_629_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_keys_630_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'keys':PyJs_keys_630_}, var) var.registers(['it']) return var.get('$keys')(var.get('toObject')(var.get('it'))) PyJs_keys_630_._set_name('keys') return PyJs_keys_630_ PyJs_anonymous_629_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('keys'), PyJs_anonymous_629_) PyJs_anonymous_628_._set_name('anonymous') @Js def PyJs_anonymous_631_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'meta', 'exports', 'module', 'isObject']) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('meta', var.get('require')(Js('./_meta')).get('onFreeze')) @Js def PyJs_anonymous_632_(PyJsArg_2470726576656e74457874656e73696f6e73_, this, arguments, var=var): var = Scope({'$preventExtensions':PyJsArg_2470726576656e74457874656e73696f6e73_, 'this':this, 'arguments':arguments}, var) var.registers(['$preventExtensions']) @Js def PyJs_preventExtensions_633_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'preventExtensions':PyJs_preventExtensions_633_}, var) var.registers(['it']) return (var.get('$preventExtensions')(var.get('meta')(var.get('it'))) if (var.get('$preventExtensions') and var.get('isObject')(var.get('it'))) else var.get('it')) PyJs_preventExtensions_633_._set_name('preventExtensions') return PyJs_preventExtensions_633_ PyJs_anonymous_632_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('preventExtensions'), PyJs_anonymous_632_) PyJs_anonymous_631_._set_name('anonymous') @Js def PyJs_anonymous_634_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'meta', 'exports', 'module', 'isObject']) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('meta', var.get('require')(Js('./_meta')).get('onFreeze')) @Js def PyJs_anonymous_635_(PyJsArg_247365616c_, this, arguments, var=var): var = Scope({'$seal':PyJsArg_247365616c_, 'this':this, 'arguments':arguments}, var) var.registers(['$seal']) @Js def PyJs_seal_636_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'seal':PyJs_seal_636_}, var) var.registers(['it']) return (var.get('$seal')(var.get('meta')(var.get('it'))) if (var.get('$seal') and var.get('isObject')(var.get('it'))) else var.get('it')) PyJs_seal_636_._set_name('seal') return PyJs_seal_636_ PyJs_anonymous_635_._set_name('anonymous') var.get('require')(Js('./_object-sap'))(Js('seal'), PyJs_anonymous_635_) PyJs_anonymous_634_._set_name('anonymous') @Js def PyJs_anonymous_637_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'setPrototypeOf':var.get('require')(Js('./_set-proto')).get('set')})) PyJs_anonymous_637_._set_name('anonymous') @Js def PyJs_anonymous_638_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'test', 'classof', 'exports', 'module']) Js('use strict') var.put('classof', var.get('require')(Js('./_classof'))) var.put('test', Js({})) var.get('test').put(var.get('require')(Js('./_wks'))(Js('toStringTag')), Js('z')) if ((var.get('test')+Js(''))!=Js('[object z]')): @Js def PyJs_toString_639_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_639_}, var) var.registers([]) return ((Js('[object ')+var.get('classof')(var.get(u"this")))+Js(']')) PyJs_toString_639_._set_name('toString') var.get('require')(Js('./_redefine'))(var.get('Object').get('prototype'), Js('toString'), PyJs_toString_639_, Js(True)) PyJs_anonymous_638_._set_name('anonymous') @Js def PyJs_anonymous_640_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$parseFloat', '$export', 'exports', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('$parseFloat', var.get('require')(Js('./_parse-float'))) var.get('$export')((var.get('$export').get('G')+(var.get('$export').get('F')*(var.get('parseFloat')!=var.get('$parseFloat')))), Js({'parseFloat':var.get('$parseFloat')})) PyJs_anonymous_640_._set_name('anonymous') @Js def PyJs_anonymous_641_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$parseInt', '$export', 'exports', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('$parseInt', var.get('require')(Js('./_parse-int'))) var.get('$export')((var.get('$export').get('G')+(var.get('$export').get('F')*(var.get('parseInt')!=var.get('$parseInt')))), Js({'parseInt':var.get('$parseInt')})) PyJs_anonymous_641_._set_name('anonymous') @Js def PyJs_anonymous_642_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['isNode', 'Wrapper', 'task', 'onUnhandled', 'promiseResolve', 'userAgent', 'process', 'isThenable', '$resolve', 'v8', 'LIBRARY', 'versions', 'speciesConstructor', 'USE_NATIVE', 'newGenericPromiseCapability', 'require', 'classof', 'isUnhandled', 'empty', '$Promise', 'OwnPromiseCapability', 'module', 'notify', 'microtask', 'global', '$reject', 'aFunction', 'anInstance', 'Internal', 'perform', 'onHandleUnhandled', '$export', 'exports', 'PROMISE', 'TypeError', 'newPromiseCapability', 'newPromiseCapabilityModule', 'forOf', 'ctx', 'isObject']) Js('use strict') var.put('LIBRARY', var.get('require')(Js('./_library'))) var.put('global', var.get('require')(Js('./_global'))) var.put('ctx', var.get('require')(Js('./_ctx'))) var.put('classof', var.get('require')(Js('./_classof'))) var.put('$export', var.get('require')(Js('./_export'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('anInstance', var.get('require')(Js('./_an-instance'))) var.put('forOf', var.get('require')(Js('./_for-of'))) var.put('speciesConstructor', var.get('require')(Js('./_species-constructor'))) var.put('task', var.get('require')(Js('./_task')).get('set')) var.put('microtask', var.get('require')(Js('./_microtask'))()) var.put('newPromiseCapabilityModule', var.get('require')(Js('./_new-promise-capability'))) var.put('perform', var.get('require')(Js('./_perform'))) var.put('userAgent', var.get('require')(Js('./_user-agent'))) var.put('promiseResolve', var.get('require')(Js('./_promise-resolve'))) var.put('PROMISE', Js('Promise')) var.put('TypeError', var.get('global').get('TypeError')) var.put('process', var.get('global').get('process')) var.put('versions', (var.get('process') and var.get('process').get('versions'))) var.put('v8', ((var.get('versions') and var.get('versions').get('v8')) or Js(''))) var.put('$Promise', var.get('global').get(var.get('PROMISE'))) var.put('isNode', (var.get('classof')(var.get('process'))==Js('process'))) @Js def PyJs_empty_643_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'empty':PyJs_empty_643_}, var) var.registers([]) pass PyJs_empty_643_._set_name('empty') var.put('empty', PyJs_empty_643_) pass var.put('newPromiseCapability', var.put('newGenericPromiseCapability', var.get('newPromiseCapabilityModule').get('f'))) @Js def PyJs_anonymous_644_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['FakePromise', 'promise']) try: var.put('promise', var.get('$Promise').callprop('resolve', Js(1.0))) @Js def PyJs_anonymous_645_(exec, this, arguments, var=var): var = Scope({'exec':exec, 'this':this, 'arguments':arguments}, var) var.registers(['exec']) var.get('exec')(var.get('empty'), var.get('empty')) PyJs_anonymous_645_._set_name('anonymous') var.put('FakePromise', var.get('promise').put('constructor', Js({})).put(var.get('require')(Js('./_wks'))(Js('species')), PyJs_anonymous_645_)) return ((((var.get('isNode') or (var.get('PromiseRejectionEvent',throw=False).typeof()==Js('function'))) and var.get('promise').callprop('then', var.get('empty')).instanceof(var.get('FakePromise'))) and PyJsStrictNeq(var.get('v8').callprop('indexOf', Js('6.6')),Js(0.0))) and PyJsStrictEq(var.get('userAgent').callprop('indexOf', Js('Chrome/66')),(-Js(1.0)))) except PyJsException as PyJsTempException: PyJsHolder_65_31084895 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: pass finally: if PyJsHolder_65_31084895 is not None: var.own['e'] = PyJsHolder_65_31084895 else: del var.own['e'] del PyJsHolder_65_31084895 PyJs_anonymous_644_._set_name('anonymous') var.put('USE_NATIVE', PyJs_anonymous_644_().neg().neg()) @Js def PyJs_isThenable_646_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isThenable':PyJs_isThenable_646_}, var) var.registers(['then', 'it']) pass return (var.get('then') if (var.get('isObject')(var.get('it')) and (var.put('then', var.get('it').get('then')).typeof()==Js('function'))) else Js(False)) PyJs_isThenable_646_._set_name('isThenable') var.put('isThenable', PyJs_isThenable_646_) @Js def PyJs_notify_647_(promise, isReject, this, arguments, var=var): var = Scope({'promise':promise, 'isReject':isReject, 'this':this, 'arguments':arguments, 'notify':PyJs_notify_647_}, var) var.registers(['chain', 'promise', 'isReject']) if var.get('promise').get('_n'): return var.get('undefined') var.get('promise').put('_n', Js(True)) var.put('chain', var.get('promise').get('_c')) @Js def PyJs_anonymous_648_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['i', 'value', 'run', 'ok']) var.put('value', var.get('promise').get('_v')) var.put('ok', (var.get('promise').get('_s')==Js(1.0))) var.put('i', Js(0.0)) @Js def PyJs_run_649_(reaction, this, arguments, var=var): var = Scope({'reaction':reaction, 'this':this, 'arguments':arguments, 'run':PyJs_run_649_}, var) var.registers(['reaction', 'domain', 'resolve', 'result', 'exited', 'reject', 'then', 'handler']) var.put('handler', (var.get('reaction').get('ok') if var.get('ok') else var.get('reaction').get('fail'))) var.put('resolve', var.get('reaction').get('resolve')) var.put('reject', var.get('reaction').get('reject')) var.put('domain', var.get('reaction').get('domain')) pass try: if var.get('handler'): if var.get('ok').neg(): if (var.get('promise').get('_h')==Js(2.0)): var.get('onHandleUnhandled')(var.get('promise')) var.get('promise').put('_h', Js(1.0)) if PyJsStrictEq(var.get('handler'),Js(True)): var.put('result', var.get('value')) else: if var.get('domain'): var.get('domain').callprop('enter') var.put('result', var.get('handler')(var.get('value'))) if var.get('domain'): var.get('domain').callprop('exit') var.put('exited', Js(True)) if PyJsStrictEq(var.get('result'),var.get('reaction').get('promise')): var.get('reject')(var.get('TypeError')(Js('Promise-chain cycle'))) else: if var.put('then', var.get('isThenable')(var.get('result'))): var.get('then').callprop('call', var.get('result'), var.get('resolve'), var.get('reject')) else: var.get('resolve')(var.get('result')) else: var.get('reject')(var.get('value')) except PyJsException as PyJsTempException: PyJsHolder_65_20846881 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: if (var.get('domain') and var.get('exited').neg()): var.get('domain').callprop('exit') var.get('reject')(var.get('e')) finally: if PyJsHolder_65_20846881 is not None: var.own['e'] = PyJsHolder_65_20846881 else: del var.own['e'] del PyJsHolder_65_20846881 PyJs_run_649_._set_name('run') var.put('run', PyJs_run_649_) while (var.get('chain').get('length')>var.get('i')): var.get('run')(var.get('chain').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))) var.get('promise').put('_c', Js([])) var.get('promise').put('_n', Js(False)) if (var.get('isReject') and var.get('promise').get('_h').neg()): var.get('onUnhandled')(var.get('promise')) PyJs_anonymous_648_._set_name('anonymous') var.get('microtask')(PyJs_anonymous_648_) PyJs_notify_647_._set_name('notify') var.put('notify', PyJs_notify_647_) @Js def PyJs_onUnhandled_650_(promise, this, arguments, var=var): var = Scope({'promise':promise, 'this':this, 'arguments':arguments, 'onUnhandled':PyJs_onUnhandled_650_}, var) var.registers(['promise']) @Js def PyJs_anonymous_651_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['console', 'result', 'unhandled', 'value', 'handler']) var.put('value', var.get('promise').get('_v')) var.put('unhandled', var.get('isUnhandled')(var.get('promise'))) pass if var.get('unhandled'): @Js def PyJs_anonymous_652_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) if var.get('isNode'): var.get('process').callprop('emit', Js('unhandledRejection'), var.get('value'), var.get('promise')) else: if var.put('handler', var.get('global').get('onunhandledrejection')): var.get('handler')(Js({'promise':var.get('promise'),'reason':var.get('value')})) else: if (var.put('console', var.get('global').get('console')) and var.get('console').get('error')): var.get('console').callprop('error', Js('Unhandled promise rejection'), var.get('value')) PyJs_anonymous_652_._set_name('anonymous') var.put('result', var.get('perform')(PyJs_anonymous_652_)) var.get('promise').put('_h', (Js(2.0) if (var.get('isNode') or var.get('isUnhandled')(var.get('promise'))) else Js(1.0))) var.get('promise').put('_a', var.get('undefined')) if (var.get('unhandled') and var.get('result').get('e')): PyJsTempException = JsToPyException(var.get('result').get('v')) raise PyJsTempException PyJs_anonymous_651_._set_name('anonymous') var.get('task').callprop('call', var.get('global'), PyJs_anonymous_651_) PyJs_onUnhandled_650_._set_name('onUnhandled') var.put('onUnhandled', PyJs_onUnhandled_650_) @Js def PyJs_isUnhandled_653_(promise, this, arguments, var=var): var = Scope({'promise':promise, 'this':this, 'arguments':arguments, 'isUnhandled':PyJs_isUnhandled_653_}, var) var.registers(['promise']) return (PyJsStrictNeq(var.get('promise').get('_h'),Js(1.0)) and PyJsStrictEq((var.get('promise').get('_a') or var.get('promise').get('_c')).get('length'),Js(0.0))) PyJs_isUnhandled_653_._set_name('isUnhandled') var.put('isUnhandled', PyJs_isUnhandled_653_) @Js def PyJs_onHandleUnhandled_654_(promise, this, arguments, var=var): var = Scope({'promise':promise, 'this':this, 'arguments':arguments, 'onHandleUnhandled':PyJs_onHandleUnhandled_654_}, var) var.registers(['promise']) @Js def PyJs_anonymous_655_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['handler']) pass if var.get('isNode'): var.get('process').callprop('emit', Js('rejectionHandled'), var.get('promise')) else: if var.put('handler', var.get('global').get('onrejectionhandled')): var.get('handler')(Js({'promise':var.get('promise'),'reason':var.get('promise').get('_v')})) PyJs_anonymous_655_._set_name('anonymous') var.get('task').callprop('call', var.get('global'), PyJs_anonymous_655_) PyJs_onHandleUnhandled_654_._set_name('onHandleUnhandled') var.put('onHandleUnhandled', PyJs_onHandleUnhandled_654_) @Js def PyJs_InlineNonPyName_656_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, '$reject':PyJs_InlineNonPyName_656_}, var) var.registers(['value', 'promise']) var.put('promise', var.get(u"this")) if var.get('promise').get('_d'): return var.get('undefined') var.get('promise').put('_d', Js(True)) var.put('promise', (var.get('promise').get('_w') or var.get('promise'))) var.get('promise').put('_v', var.get('value')) var.get('promise').put('_s', Js(2.0)) if var.get('promise').get('_a').neg(): var.get('promise').put('_a', var.get('promise').get('_c').callprop('slice')) var.get('notify')(var.get('promise'), Js(True)) PyJs_InlineNonPyName_656_._set_name('$reject') var.put('$reject', PyJs_InlineNonPyName_656_) @Js def PyJs_InlineNonPyName_657_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, '$resolve':PyJs_InlineNonPyName_657_}, var) var.registers(['then', 'value', 'promise']) var.put('promise', var.get(u"this")) pass if var.get('promise').get('_d'): return var.get('undefined') var.get('promise').put('_d', Js(True)) var.put('promise', (var.get('promise').get('_w') or var.get('promise'))) try: if PyJsStrictEq(var.get('promise'),var.get('value')): PyJsTempException = JsToPyException(var.get('TypeError')(Js("Promise can't be resolved itself"))) raise PyJsTempException if var.put('then', var.get('isThenable')(var.get('value'))): @Js def PyJs_anonymous_658_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['wrapper']) var.put('wrapper', Js({'_w':var.get('promise'),'_d':Js(False)})) try: var.get('then').callprop('call', var.get('value'), var.get('ctx')(var.get('$resolve'), var.get('wrapper'), Js(1.0)), var.get('ctx')(var.get('$reject'), var.get('wrapper'), Js(1.0))) except PyJsException as PyJsTempException: PyJsHolder_65_2396165 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: var.get('$reject').callprop('call', var.get('wrapper'), var.get('e')) finally: if PyJsHolder_65_2396165 is not None: var.own['e'] = PyJsHolder_65_2396165 else: del var.own['e'] del PyJsHolder_65_2396165 PyJs_anonymous_658_._set_name('anonymous') var.get('microtask')(PyJs_anonymous_658_) else: var.get('promise').put('_v', var.get('value')) var.get('promise').put('_s', Js(1.0)) var.get('notify')(var.get('promise'), Js(False)) except PyJsException as PyJsTempException: PyJsHolder_65_80809074 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: var.get('$reject').callprop('call', Js({'_w':var.get('promise'),'_d':Js(False)}), var.get('e')) finally: if PyJsHolder_65_80809074 is not None: var.own['e'] = PyJsHolder_65_80809074 else: del var.own['e'] del PyJsHolder_65_80809074 PyJs_InlineNonPyName_657_._set_name('$resolve') var.put('$resolve', PyJs_InlineNonPyName_657_) if var.get('USE_NATIVE').neg(): @Js def PyJs_Promise_659_(executor, this, arguments, var=var): var = Scope({'executor':executor, 'this':this, 'arguments':arguments, 'Promise':PyJs_Promise_659_}, var) var.registers(['executor']) var.get('anInstance')(var.get(u"this"), var.get('$Promise'), var.get('PROMISE'), Js('_h')) var.get('aFunction')(var.get('executor')) var.get('Internal').callprop('call', var.get(u"this")) try: var.get('executor')(var.get('ctx')(var.get('$resolve'), var.get(u"this"), Js(1.0)), var.get('ctx')(var.get('$reject'), var.get(u"this"), Js(1.0))) except PyJsException as PyJsTempException: PyJsHolder_657272_79336953 = var.own.get('err') var.force_own_put('err', PyExceptionToJs(PyJsTempException)) try: var.get('$reject').callprop('call', var.get(u"this"), var.get('err')) finally: if PyJsHolder_657272_79336953 is not None: var.own['err'] = PyJsHolder_657272_79336953 else: del var.own['err'] del PyJsHolder_657272_79336953 PyJs_Promise_659_._set_name('Promise') var.put('$Promise', PyJs_Promise_659_) @Js def PyJs_Promise_660_(executor, this, arguments, var=var): var = Scope({'executor':executor, 'this':this, 'arguments':arguments, 'Promise':PyJs_Promise_660_}, var) var.registers(['executor']) var.get(u"this").put('_c', Js([])) var.get(u"this").put('_a', var.get('undefined')) var.get(u"this").put('_s', Js(0.0)) var.get(u"this").put('_d', Js(False)) var.get(u"this").put('_v', var.get('undefined')) var.get(u"this").put('_h', Js(0.0)) var.get(u"this").put('_n', Js(False)) PyJs_Promise_660_._set_name('Promise') var.put('Internal', PyJs_Promise_660_) @Js def PyJs_then_661_(onFulfilled, onRejected, this, arguments, var=var): var = Scope({'onFulfilled':onFulfilled, 'onRejected':onRejected, 'this':this, 'arguments':arguments, 'then':PyJs_then_661_}, var) var.registers(['onFulfilled', 'reaction', 'onRejected']) var.put('reaction', var.get('newPromiseCapability')(var.get('speciesConstructor')(var.get(u"this"), var.get('$Promise')))) var.get('reaction').put('ok', (var.get('onFulfilled') if (var.get('onFulfilled',throw=False).typeof()==Js('function')) else Js(True))) var.get('reaction').put('fail', ((var.get('onRejected',throw=False).typeof()==Js('function')) and var.get('onRejected'))) var.get('reaction').put('domain', (var.get('process').get('domain') if var.get('isNode') else var.get('undefined'))) var.get(u"this").get('_c').callprop('push', var.get('reaction')) if var.get(u"this").get('_a'): var.get(u"this").get('_a').callprop('push', var.get('reaction')) if var.get(u"this").get('_s'): var.get('notify')(var.get(u"this"), Js(False)) return var.get('reaction').get('promise') PyJs_then_661_._set_name('then') @Js def PyJs__catch_662_(onRejected, this, arguments, var=var): var = Scope({'onRejected':onRejected, 'this':this, 'arguments':arguments, '_catch':PyJs__catch_662_}, var) var.registers(['onRejected']) return var.get(u"this").callprop('then', var.get('undefined'), var.get('onRejected')) PyJs__catch_662_._set_name('_catch') var.get('Internal').put('prototype', var.get('require')(Js('./_redefine-all'))(var.get('$Promise').get('prototype'), Js({'then':PyJs_then_661_,'catch':PyJs__catch_662_}))) @Js def PyJs_OwnPromiseCapability_663_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'OwnPromiseCapability':PyJs_OwnPromiseCapability_663_}, var) var.registers(['promise']) var.put('promise', var.get('Internal').create()) var.get(u"this").put('promise', var.get('promise')) var.get(u"this").put('resolve', var.get('ctx')(var.get('$resolve'), var.get('promise'), Js(1.0))) var.get(u"this").put('reject', var.get('ctx')(var.get('$reject'), var.get('promise'), Js(1.0))) PyJs_OwnPromiseCapability_663_._set_name('OwnPromiseCapability') var.put('OwnPromiseCapability', PyJs_OwnPromiseCapability_663_) @Js def PyJs_newPromiseCapability_664_(C, this, arguments, var=var): var = Scope({'C':C, 'this':this, 'arguments':arguments, 'newPromiseCapability':PyJs_newPromiseCapability_664_}, var) var.registers(['C']) return (var.get('OwnPromiseCapability').create(var.get('C')) if (PyJsStrictEq(var.get('C'),var.get('$Promise')) or PyJsStrictEq(var.get('C'),var.get('Wrapper'))) else var.get('newGenericPromiseCapability')(var.get('C'))) PyJs_newPromiseCapability_664_._set_name('newPromiseCapability') var.get('newPromiseCapabilityModule').put('f', var.put('newPromiseCapability', PyJs_newPromiseCapability_664_)) var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), Js({'Promise':var.get('$Promise')})) var.get('require')(Js('./_set-to-string-tag'))(var.get('$Promise'), var.get('PROMISE')) var.get('require')(Js('./_set-species'))(var.get('PROMISE')) var.put('Wrapper', var.get('require')(Js('./_core')).get(var.get('PROMISE'))) @Js def PyJs_reject_665_(r, this, arguments, var=var): var = Scope({'r':r, 'this':this, 'arguments':arguments, 'reject':PyJs_reject_665_}, var) var.registers(['capability', '$$reject', 'r']) var.put('capability', var.get('newPromiseCapability')(var.get(u"this"))) var.put('$$reject', var.get('capability').get('reject')) var.get('$$reject')(var.get('r')) return var.get('capability').get('promise') PyJs_reject_665_._set_name('reject') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), var.get('PROMISE'), Js({'reject':PyJs_reject_665_})) @Js def PyJs_resolve_666_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'resolve':PyJs_resolve_666_}, var) var.registers(['x']) return var.get('promiseResolve')((var.get('$Promise') if (var.get('LIBRARY') and PyJsStrictEq(var.get(u"this"),var.get('Wrapper'))) else var.get(u"this")), var.get('x')) PyJs_resolve_666_._set_name('resolve') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('LIBRARY') or var.get('USE_NATIVE').neg()))), var.get('PROMISE'), Js({'resolve':PyJs_resolve_666_})) @Js def PyJs_anonymous_667_(iter, this, arguments, var=var): var = Scope({'iter':iter, 'this':this, 'arguments':arguments}, var) var.registers(['iter']) var.get('$Promise').callprop('all', var.get('iter')).callprop('catch', var.get('empty')) PyJs_anonymous_667_._set_name('anonymous') @Js def PyJs_all_668_(iterable, this, arguments, var=var): var = Scope({'iterable':iterable, 'this':this, 'arguments':arguments, 'all':PyJs_all_668_}, var) var.registers(['capability', 'C', 'resolve', 'result', 'reject', 'iterable']) var.put('C', var.get(u"this")) var.put('capability', var.get('newPromiseCapability')(var.get('C'))) var.put('resolve', var.get('capability').get('resolve')) var.put('reject', var.get('capability').get('reject')) @Js def PyJs_anonymous_669_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['index', 'values', 'remaining']) var.put('values', Js([])) var.put('index', Js(0.0)) var.put('remaining', Js(1.0)) @Js def PyJs_anonymous_670_(promise, this, arguments, var=var): var = Scope({'promise':promise, 'this':this, 'arguments':arguments}, var) var.registers(['promise', '$index', 'alreadyCalled']) var.put('$index', (var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))) var.put('alreadyCalled', Js(False)) var.get('values').callprop('push', var.get('undefined')) (var.put('remaining',Js(var.get('remaining').to_number())+Js(1))-Js(1)) @Js def PyJs_anonymous_671_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments}, var) var.registers(['value']) if var.get('alreadyCalled'): return var.get('undefined') var.put('alreadyCalled', Js(True)) var.get('values').put(var.get('$index'), var.get('value')) (var.put('remaining',Js(var.get('remaining').to_number())-Js(1)) or var.get('resolve')(var.get('values'))) PyJs_anonymous_671_._set_name('anonymous') var.get('C').callprop('resolve', var.get('promise')).callprop('then', PyJs_anonymous_671_, var.get('reject')) PyJs_anonymous_670_._set_name('anonymous') var.get('forOf')(var.get('iterable'), Js(False), PyJs_anonymous_670_) (var.put('remaining',Js(var.get('remaining').to_number())-Js(1)) or var.get('resolve')(var.get('values'))) PyJs_anonymous_669_._set_name('anonymous') var.put('result', var.get('perform')(PyJs_anonymous_669_)) if var.get('result').get('e'): var.get('reject')(var.get('result').get('v')) return var.get('capability').get('promise') PyJs_all_668_._set_name('all') @Js def PyJs_race_672_(iterable, this, arguments, var=var): var = Scope({'iterable':iterable, 'this':this, 'arguments':arguments, 'race':PyJs_race_672_}, var) var.registers(['capability', 'C', 'result', 'reject', 'iterable']) var.put('C', var.get(u"this")) var.put('capability', var.get('newPromiseCapability')(var.get('C'))) var.put('reject', var.get('capability').get('reject')) @Js def PyJs_anonymous_673_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_anonymous_674_(promise, this, arguments, var=var): var = Scope({'promise':promise, 'this':this, 'arguments':arguments}, var) var.registers(['promise']) var.get('C').callprop('resolve', var.get('promise')).callprop('then', var.get('capability').get('resolve'), var.get('reject')) PyJs_anonymous_674_._set_name('anonymous') var.get('forOf')(var.get('iterable'), Js(False), PyJs_anonymous_674_) PyJs_anonymous_673_._set_name('anonymous') var.put('result', var.get('perform')(PyJs_anonymous_673_)) if var.get('result').get('e'): var.get('reject')(var.get('result').get('v')) return var.get('capability').get('promise') PyJs_race_672_._set_name('race') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('USE_NATIVE') and var.get('require')(Js('./_iter-detect'))(PyJs_anonymous_667_)).neg())), var.get('PROMISE'), Js({'all':PyJs_all_668_,'race':PyJs_race_672_})) PyJs_anonymous_642_._set_name('anonymous') @Js def PyJs_anonymous_675_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', 'rApply', '$export', 'exports', 'module', 'fApply', 'anObject']) var.put('$export', var.get('require')(Js('./_export'))) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('rApply', (var.get('require')(Js('./_global')).get('Reflect') or Js({})).get('apply')) var.put('fApply', var.get('Function').get('apply')) @Js def PyJs_anonymous_676_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_anonymous_677_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) pass PyJs_anonymous_677_._set_name('anonymous') var.get('rApply')(PyJs_anonymous_677_) PyJs_anonymous_676_._set_name('anonymous') @Js def PyJs_apply_678_(target, thisArgument, argumentsList, this, arguments, var=var): var = Scope({'target':target, 'thisArgument':thisArgument, 'argumentsList':argumentsList, 'this':this, 'arguments':arguments, 'apply':PyJs_apply_678_}, var) var.registers(['target', 'argumentsList', 'thisArgument', 'L', 'T']) var.put('T', var.get('aFunction')(var.get('target'))) var.put('L', var.get('anObject')(var.get('argumentsList'))) return (var.get('rApply')(var.get('T'), var.get('thisArgument'), var.get('L')) if var.get('rApply') else var.get('fApply').callprop('call', var.get('T'), var.get('thisArgument'), var.get('L'))) PyJs_apply_678_._set_name('apply') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_676_).neg())), Js('Reflect'), Js({'apply':PyJs_apply_678_})) PyJs_anonymous_675_._set_name('anonymous') @Js def PyJs_anonymous_679_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', 'rConstruct', '$export', 'exports', 'bind', 'NEW_TARGET_BUG', 'ARGS_BUG', 'module', 'create', 'fails', 'isObject', 'anObject']) var.put('$export', var.get('require')(Js('./_export'))) var.put('create', var.get('require')(Js('./_object-create'))) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('fails', var.get('require')(Js('./_fails'))) var.put('bind', var.get('require')(Js('./_bind'))) var.put('rConstruct', (var.get('require')(Js('./_global')).get('Reflect') or Js({})).get('construct')) @Js def PyJs_anonymous_680_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['F']) @Js def PyJsHoisted_F_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) pass PyJsHoisted_F_.func_name = 'F' var.put('F', PyJsHoisted_F_) pass @Js def PyJs_anonymous_681_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) pass PyJs_anonymous_681_._set_name('anonymous') return var.get('rConstruct')(PyJs_anonymous_681_, Js([]), var.get('F')).instanceof(var.get('F')).neg() PyJs_anonymous_680_._set_name('anonymous') var.put('NEW_TARGET_BUG', var.get('fails')(PyJs_anonymous_680_)) @Js def PyJs_anonymous_682_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_anonymous_683_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) pass PyJs_anonymous_683_._set_name('anonymous') var.get('rConstruct')(PyJs_anonymous_683_) PyJs_anonymous_682_._set_name('anonymous') var.put('ARGS_BUG', var.get('fails')(PyJs_anonymous_682_).neg()) @Js def PyJs_construct_684_(Target, args, this, arguments, var=var): var = Scope({'Target':Target, 'args':args, 'this':this, 'arguments':arguments, 'construct':PyJs_construct_684_}, var) var.registers(['proto', 'newTarget', 'args', 'result', 'Target', '$args', 'instance']) var.get('aFunction')(var.get('Target')) var.get('anObject')(var.get('args')) var.put('newTarget', (var.get('Target') if (var.get('arguments').get('length')=var.get('keys').get('length')): return Js({'value':var.get('undefined'),'done':Js(True)}) if not var.get('that').get('_t').contains(var.put('key', var.get('keys').get((var.get('that').put('_i',Js(var.get('that').get('_i').to_number())+Js(1))-Js(1))))).neg(): break return Js({'value':var.get('key'),'done':Js(False)}) PyJs_anonymous_692_._set_name('anonymous') var.get('require')(Js('./_iter-create'))(var.get('Enumerate'), Js('Object'), PyJs_anonymous_692_) @Js def PyJs_enumerate_693_(target, this, arguments, var=var): var = Scope({'target':target, 'this':this, 'arguments':arguments, 'enumerate':PyJs_enumerate_693_}, var) var.registers(['target']) return var.get('Enumerate').create(var.get('target')) PyJs_enumerate_693_._set_name('enumerate') var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'enumerate':PyJs_enumerate_693_})) PyJs_anonymous_690_._set_name('anonymous') @Js def PyJs_anonymous_694_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'gOPD', '$export', 'exports', 'module', 'anObject']) var.put('gOPD', var.get('require')(Js('./_object-gopd'))) var.put('$export', var.get('require')(Js('./_export'))) var.put('anObject', var.get('require')(Js('./_an-object'))) @Js def PyJs_getOwnPropertyDescriptor_695_(target, propertyKey, this, arguments, var=var): var = Scope({'target':target, 'propertyKey':propertyKey, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_695_}, var) var.registers(['target', 'propertyKey']) return var.get('gOPD').callprop('f', var.get('anObject')(var.get('target')), var.get('propertyKey')) PyJs_getOwnPropertyDescriptor_695_._set_name('getOwnPropertyDescriptor') var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_695_})) PyJs_anonymous_694_._set_name('anonymous') @Js def PyJs_anonymous_696_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', 'getProto', 'anObject']) var.put('$export', var.get('require')(Js('./_export'))) var.put('getProto', var.get('require')(Js('./_object-gpo'))) var.put('anObject', var.get('require')(Js('./_an-object'))) @Js def PyJs_getPrototypeOf_697_(target, this, arguments, var=var): var = Scope({'target':target, 'this':this, 'arguments':arguments, 'getPrototypeOf':PyJs_getPrototypeOf_697_}, var) var.registers(['target']) return var.get('getProto')(var.get('anObject')(var.get('target'))) PyJs_getPrototypeOf_697_._set_name('getPrototypeOf') var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'getPrototypeOf':PyJs_getPrototypeOf_697_})) PyJs_anonymous_696_._set_name('anonymous') @Js def PyJs_anonymous_698_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'get', 'gOPD', '$export', 'exports', 'module', 'getPrototypeOf', 'anObject', 'isObject', 'has']) @Js def PyJsHoisted_get_(target, propertyKey, this, arguments, var=var): var = Scope({'target':target, 'propertyKey':propertyKey, 'this':this, 'arguments':arguments}, var) var.registers(['target', 'proto', 'desc', 'propertyKey', 'receiver']) var.put('receiver', (var.get('target') if (var.get('arguments').get('length')var.get('i')): var.get('proxy')(var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))) var.get('proto').put('constructor', var.get('$RegExp')) var.get('$RegExp').put('prototype', var.get('proto')) var.get('require')(Js('./_redefine'))(var.get('global'), Js('RegExp'), var.get('$RegExp')) var.get('require')(Js('./_set-species'))(Js('RegExp')) PyJs_anonymous_709_._set_name('anonymous') @Js def PyJs_anonymous_716_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'regexpExec', 'module', 'exports']) Js('use strict') var.put('regexpExec', var.get('require')(Js('./_regexp-exec'))) var.get('require')(Js('./_export'))(Js({'target':Js('RegExp'),'proto':Js(True),'forced':PyJsStrictNeq(var.get('regexpExec'),JsRegExp('/./').get('exec'))}), Js({'exec':var.get('regexpExec')})) PyJs_anonymous_716_._set_name('anonymous') @Js def PyJs_anonymous_717_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) if (var.get('require')(Js('./_descriptors')) and (JsRegExp('/./g').get('flags')!=Js('g'))): var.get('require')(Js('./_object-dp')).callprop('f', var.get('RegExp').get('prototype'), Js('flags'), Js({'configurable':Js(True),'get':var.get('require')(Js('./_flags'))})) PyJs_anonymous_717_._set_name('anonymous') @Js def PyJs_anonymous_718_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'exports', 'advanceStringIndex', 'module', 'regExpExec', 'anObject']) Js('use strict') var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('advanceStringIndex', var.get('require')(Js('./_advance-string-index'))) var.put('regExpExec', var.get('require')(Js('./_regexp-exec-abstract'))) @Js def PyJs_anonymous_719_(defined, MATCH, PyJsArg_246d61746368_, maybeCallNative, this, arguments, var=var): var = Scope({'defined':defined, 'MATCH':MATCH, '$match':PyJsArg_246d61746368_, 'maybeCallNative':maybeCallNative, 'this':this, 'arguments':arguments}, var) var.registers(['defined', 'MATCH', '$match', 'maybeCallNative']) @Js def PyJs_match_720_(regexp, this, arguments, var=var): var = Scope({'regexp':regexp, 'this':this, 'arguments':arguments, 'match':PyJs_match_720_}, var) var.registers(['O', 'fn', 'regexp']) var.put('O', var.get('defined')(var.get(u"this"))) var.put('fn', (var.get('undefined') if (var.get('regexp')==var.get('undefined')) else var.get('regexp').get(var.get('MATCH')))) return (var.get('fn').callprop('call', var.get('regexp'), var.get('O')) if PyJsStrictNeq(var.get('fn'),var.get('undefined')) else var.get('RegExp').create(var.get('regexp')).callprop(var.get('MATCH'), var.get('String')(var.get('O')))) PyJs_match_720_._set_name('match') @Js def PyJs_anonymous_721_(regexp, this, arguments, var=var): var = Scope({'regexp':regexp, 'this':this, 'arguments':arguments}, var) var.registers(['matchStr', 'n', 'regexp', 'A', 'fullUnicode', 'res', 'result', 'S', 'rx']) var.put('res', var.get('maybeCallNative')(var.get('$match'), var.get('regexp'), var.get(u"this"))) if var.get('res').get('done'): return var.get('res').get('value') var.put('rx', var.get('anObject')(var.get('regexp'))) var.put('S', var.get('String')(var.get(u"this"))) if var.get('rx').get('global').neg(): return var.get('regExpExec')(var.get('rx'), var.get('S')) var.put('fullUnicode', var.get('rx').get('unicode')) var.get('rx').put('lastIndex', Js(0.0)) var.put('A', Js([])) var.put('n', Js(0.0)) pass while PyJsStrictNeq(var.put('result', var.get('regExpExec')(var.get('rx'), var.get('S'))),var.get(u"null")): var.put('matchStr', var.get('String')(var.get('result').get('0'))) var.get('A').put(var.get('n'), var.get('matchStr')) if PyJsStrictEq(var.get('matchStr'),Js('')): var.get('rx').put('lastIndex', var.get('advanceStringIndex')(var.get('S'), var.get('toLength')(var.get('rx').get('lastIndex')), var.get('fullUnicode'))) (var.put('n',Js(var.get('n').to_number())+Js(1))-Js(1)) return (var.get(u"null") if PyJsStrictEq(var.get('n'),Js(0.0)) else var.get('A')) PyJs_anonymous_721_._set_name('anonymous') return Js([PyJs_match_720_, PyJs_anonymous_721_]) PyJs_anonymous_719_._set_name('anonymous') var.get('require')(Js('./_fix-re-wks'))(Js('match'), Js(1.0), PyJs_anonymous_719_) PyJs_anonymous_718_._set_name('anonymous') @Js def PyJs_anonymous_722_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'floor', 'max', 'min', 'toObject', 'exports', 'advanceStringIndex', 'module', 'SUBSTITUTION_SYMBOLS_NO_NAMED', 'SUBSTITUTION_SYMBOLS', 'regExpExec', 'toInteger', 'anObject', 'maybeToString']) Js('use strict') var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('toInteger', var.get('require')(Js('./_to-integer'))) var.put('advanceStringIndex', var.get('require')(Js('./_advance-string-index'))) var.put('regExpExec', var.get('require')(Js('./_regexp-exec-abstract'))) var.put('max', var.get('Math').get('max')) var.put('min', var.get('Math').get('min')) var.put('floor', var.get('Math').get('floor')) var.put('SUBSTITUTION_SYMBOLS', JsRegExp("/\\$([$&`']|\\d\\d?|<[^>]*>)/g")) var.put('SUBSTITUTION_SYMBOLS_NO_NAMED', JsRegExp("/\\$([$&`']|\\d\\d?)/g")) @Js def PyJs_maybeToString_723_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'maybeToString':PyJs_maybeToString_723_}, var) var.registers(['it']) return (var.get('it') if PyJsStrictEq(var.get('it'),var.get('undefined')) else var.get('String')(var.get('it'))) PyJs_maybeToString_723_._set_name('maybeToString') var.put('maybeToString', PyJs_maybeToString_723_) @Js def PyJs_anonymous_724_(defined, REPLACE, PyJsArg_247265706c616365_, maybeCallNative, this, arguments, var=var): var = Scope({'defined':defined, 'REPLACE':REPLACE, '$replace':PyJsArg_247265706c616365_, 'maybeCallNative':maybeCallNative, 'this':this, 'arguments':arguments}, var) var.registers(['defined', '$replace', 'maybeCallNative', 'getSubstitution', 'REPLACE']) @Js def PyJsHoisted_getSubstitution_(matched, str, position, captures, namedCaptures, replacement, this, arguments, var=var): var = Scope({'matched':matched, 'str':str, 'position':position, 'captures':captures, 'namedCaptures':namedCaptures, 'replacement':replacement, 'this':this, 'arguments':arguments}, var) var.registers(['symbols', 'tailPos', 'str', 'position', 'captures', 'namedCaptures', 'matched', 'm', 'replacement']) var.put('tailPos', (var.get('position')+var.get('matched').get('length'))) var.put('m', var.get('captures').get('length')) var.put('symbols', var.get('SUBSTITUTION_SYMBOLS_NO_NAMED')) if PyJsStrictNeq(var.get('namedCaptures'),var.get('undefined')): var.put('namedCaptures', var.get('toObject')(var.get('namedCaptures'))) var.put('symbols', var.get('SUBSTITUTION_SYMBOLS')) @Js def PyJs_anonymous_727_(match, ch, this, arguments, var=var): var = Scope({'match':match, 'ch':ch, 'this':this, 'arguments':arguments}, var) var.registers(['ch', 'f', 'n', 'match', 'capture']) pass while 1: SWITCHED = False CONDITION = (var.get('ch').callprop('charAt', Js(0.0))) if SWITCHED or PyJsStrictEq(CONDITION, Js('$')): SWITCHED = True return Js('$') if SWITCHED or PyJsStrictEq(CONDITION, Js('&')): SWITCHED = True return var.get('matched') if SWITCHED or PyJsStrictEq(CONDITION, Js('`')): SWITCHED = True return var.get('str').callprop('slice', Js(0.0), var.get('position')) if SWITCHED or PyJsStrictEq(CONDITION, Js("'")): SWITCHED = True return var.get('str').callprop('slice', var.get('tailPos')) if SWITCHED or PyJsStrictEq(CONDITION, Js('<')): SWITCHED = True var.put('capture', var.get('namedCaptures').get(var.get('ch').callprop('slice', Js(1.0), (-Js(1.0))))) break if True: SWITCHED = True var.put('n', (+var.get('ch'))) if PyJsStrictEq(var.get('n'),Js(0.0)): return var.get('match') if (var.get('n')>var.get('m')): var.put('f', var.get('floor')((var.get('n')/Js(10.0)))) if PyJsStrictEq(var.get('f'),Js(0.0)): return var.get('match') if (var.get('f')<=var.get('m')): return (var.get('ch').callprop('charAt', Js(1.0)) if PyJsStrictEq(var.get('captures').get((var.get('f')-Js(1.0))),var.get('undefined')) else (var.get('captures').get((var.get('f')-Js(1.0)))+var.get('ch').callprop('charAt', Js(1.0)))) return var.get('match') var.put('capture', var.get('captures').get((var.get('n')-Js(1.0)))) SWITCHED = True break return (Js('') if PyJsStrictEq(var.get('capture'),var.get('undefined')) else var.get('capture')) PyJs_anonymous_727_._set_name('anonymous') return var.get('$replace').callprop('call', var.get('replacement'), var.get('symbols'), PyJs_anonymous_727_) PyJsHoisted_getSubstitution_.func_name = 'getSubstitution' var.put('getSubstitution', PyJsHoisted_getSubstitution_) @Js def PyJs_replace_725_(searchValue, replaceValue, this, arguments, var=var): var = Scope({'searchValue':searchValue, 'replaceValue':replaceValue, 'this':this, 'arguments':arguments, 'replace':PyJs_replace_725_}, var) var.registers(['replaceValue', 'O', 'searchValue', 'fn']) var.put('O', var.get('defined')(var.get(u"this"))) var.put('fn', (var.get('undefined') if (var.get('searchValue')==var.get('undefined')) else var.get('searchValue').get(var.get('REPLACE')))) return (var.get('fn').callprop('call', var.get('searchValue'), var.get('O'), var.get('replaceValue')) if PyJsStrictNeq(var.get('fn'),var.get('undefined')) else var.get('$replace').callprop('call', var.get('String')(var.get('O')), var.get('searchValue'), var.get('replaceValue'))) PyJs_replace_725_._set_name('replace') @Js def PyJs_anonymous_726_(regexp, replaceValue, this, arguments, var=var): var = Scope({'regexp':regexp, 'replaceValue':replaceValue, 'this':this, 'arguments':arguments}, var) var.registers(['matchStr', 'regexp', 'i', 'matched', 'functionalReplace', 'result', 'replaceValue', 'S', 'nextSourcePosition', 'results', 'replacerArgs', 'position', 'namedCaptures', 'global', 'accumulatedResult', 'res', 'rx', 'fullUnicode', 'captures', 'j', 'replacement']) var.put('res', var.get('maybeCallNative')(var.get('$replace'), var.get('regexp'), var.get(u"this"), var.get('replaceValue'))) if var.get('res').get('done'): return var.get('res').get('value') var.put('rx', var.get('anObject')(var.get('regexp'))) var.put('S', var.get('String')(var.get(u"this"))) var.put('functionalReplace', PyJsStrictEq(var.get('replaceValue',throw=False).typeof(),Js('function'))) if var.get('functionalReplace').neg(): var.put('replaceValue', var.get('String')(var.get('replaceValue'))) var.put('global', var.get('rx').get('global')) if var.get('global'): var.put('fullUnicode', var.get('rx').get('unicode')) var.get('rx').put('lastIndex', Js(0.0)) var.put('results', Js([])) while Js(True): var.put('result', var.get('regExpExec')(var.get('rx'), var.get('S'))) if PyJsStrictEq(var.get('result'),var.get(u"null")): break var.get('results').callprop('push', var.get('result')) if var.get('global').neg(): break var.put('matchStr', var.get('String')(var.get('result').get('0'))) if PyJsStrictEq(var.get('matchStr'),Js('')): var.get('rx').put('lastIndex', var.get('advanceStringIndex')(var.get('S'), var.get('toLength')(var.get('rx').get('lastIndex')), var.get('fullUnicode'))) var.put('accumulatedResult', Js('')) var.put('nextSourcePosition', Js(0.0)) #for JS loop var.put('i', Js(0.0)) while (var.get('i')=var.get('nextSourcePosition')): var.put('accumulatedResult', (var.get('S').callprop('slice', var.get('nextSourcePosition'), var.get('position'))+var.get('replacement')), '+') var.put('nextSourcePosition', (var.get('position')+var.get('matched').get('length'))) finally: (var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)) return (var.get('accumulatedResult')+var.get('S').callprop('slice', var.get('nextSourcePosition'))) PyJs_anonymous_726_._set_name('anonymous') return Js([PyJs_replace_725_, PyJs_anonymous_726_]) pass PyJs_anonymous_724_._set_name('anonymous') var.get('require')(Js('./_fix-re-wks'))(Js('replace'), Js(2.0), PyJs_anonymous_724_) PyJs_anonymous_722_._set_name('anonymous') @Js def PyJs_anonymous_728_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'exports', 'module', 'sameValue', 'regExpExec', 'anObject']) Js('use strict') var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('sameValue', var.get('require')(Js('./_same-value'))) var.put('regExpExec', var.get('require')(Js('./_regexp-exec-abstract'))) @Js def PyJs_anonymous_729_(defined, SEARCH, PyJsArg_24736561726368_, maybeCallNative, this, arguments, var=var): var = Scope({'defined':defined, 'SEARCH':SEARCH, '$search':PyJsArg_24736561726368_, 'maybeCallNative':maybeCallNative, 'this':this, 'arguments':arguments}, var) var.registers(['defined', 'SEARCH', 'maybeCallNative', '$search']) @Js def PyJs_search_730_(regexp, this, arguments, var=var): var = Scope({'regexp':regexp, 'this':this, 'arguments':arguments, 'search':PyJs_search_730_}, var) var.registers(['O', 'fn', 'regexp']) var.put('O', var.get('defined')(var.get(u"this"))) var.put('fn', (var.get('undefined') if (var.get('regexp')==var.get('undefined')) else var.get('regexp').get(var.get('SEARCH')))) return (var.get('fn').callprop('call', var.get('regexp'), var.get('O')) if PyJsStrictNeq(var.get('fn'),var.get('undefined')) else var.get('RegExp').create(var.get('regexp')).callprop(var.get('SEARCH'), var.get('String')(var.get('O')))) PyJs_search_730_._set_name('search') @Js def PyJs_anonymous_731_(regexp, this, arguments, var=var): var = Scope({'regexp':regexp, 'this':this, 'arguments':arguments}, var) var.registers(['regexp', 'previousLastIndex', 'result', 'res', 'S', 'rx']) var.put('res', var.get('maybeCallNative')(var.get('$search'), var.get('regexp'), var.get(u"this"))) if var.get('res').get('done'): return var.get('res').get('value') var.put('rx', var.get('anObject')(var.get('regexp'))) var.put('S', var.get('String')(var.get(u"this"))) var.put('previousLastIndex', var.get('rx').get('lastIndex')) if var.get('sameValue')(var.get('previousLastIndex'), Js(0.0)).neg(): var.get('rx').put('lastIndex', Js(0.0)) var.put('result', var.get('regExpExec')(var.get('rx'), var.get('S'))) if var.get('sameValue')(var.get('rx').get('lastIndex'), var.get('previousLastIndex')).neg(): var.get('rx').put('lastIndex', var.get('previousLastIndex')) return ((-Js(1.0)) if PyJsStrictEq(var.get('result'),var.get(u"null")) else var.get('result').get('index')) PyJs_anonymous_731_._set_name('anonymous') return Js([PyJs_search_730_, PyJs_anonymous_731_]) PyJs_anonymous_729_._set_name('anonymous') var.get('require')(Js('./_fix-re-wks'))(Js('search'), Js(1.0), PyJs_anonymous_729_) PyJs_anonymous_728_._set_name('anonymous') @Js def PyJs_anonymous_732_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'SUPPORTS_Y', 'toLength', 'isRegExp', 'callRegExpExec', '$min', 'LENGTH', 'MAX_UINT32', '$push', 'exports', 'advanceStringIndex', 'LAST_INDEX', 'speciesConstructor', 'module', '$SPLIT', 'fails', 'regexpExec', 'anObject']) Js('use strict') var.put('isRegExp', var.get('require')(Js('./_is-regexp'))) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('speciesConstructor', var.get('require')(Js('./_species-constructor'))) var.put('advanceStringIndex', var.get('require')(Js('./_advance-string-index'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('callRegExpExec', var.get('require')(Js('./_regexp-exec-abstract'))) var.put('regexpExec', var.get('require')(Js('./_regexp-exec'))) var.put('fails', var.get('require')(Js('./_fails'))) var.put('$min', var.get('Math').get('min')) var.put('$push', Js([]).get('push')) var.put('$SPLIT', Js('split')) var.put('LENGTH', Js('length')) var.put('LAST_INDEX', Js('lastIndex')) var.put('MAX_UINT32', Js(4294967295)) @Js def PyJs_anonymous_733_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('RegExp')(var.get('MAX_UINT32'), Js('y')) PyJs_anonymous_733_._set_name('anonymous') var.put('SUPPORTS_Y', var.get('fails')(PyJs_anonymous_733_).neg()) @Js def PyJs_anonymous_734_(defined, SPLIT, PyJsArg_2473706c6974_, maybeCallNative, this, arguments, var=var): var = Scope({'defined':defined, 'SPLIT':SPLIT, '$split':PyJsArg_2473706c6974_, 'maybeCallNative':maybeCallNative, 'this':this, 'arguments':arguments}, var) var.registers(['defined', 'internalSplit', 'SPLIT', 'maybeCallNative', '$split']) pass def PyJs_LONG_735_(var=var): return (((((Js('abbc').callprop(var.get('$SPLIT'), JsRegExp('/(b)*/')).get('1')==Js('c')) or (Js('test').callprop(var.get('$SPLIT'), JsRegExp('/(?:)/'), (-Js(1.0))).get(var.get('LENGTH'))!=Js(4.0))) or (Js('ab').callprop(var.get('$SPLIT'), JsRegExp('/(?:ab)*/')).get(var.get('LENGTH'))!=Js(2.0))) or (Js('.').callprop(var.get('$SPLIT'), JsRegExp('/(.?)(.?)/')).get(var.get('LENGTH'))!=Js(4.0))) or (Js('.').callprop(var.get('$SPLIT'), JsRegExp('/()()/')).get(var.get('LENGTH'))>Js(1.0))) if (PyJs_LONG_735_() or Js('').callprop(var.get('$SPLIT'), JsRegExp('/.?/')).get(var.get('LENGTH'))): @Js def PyJs_internalSplit_736_(separator, limit, this, arguments, var=var): var = Scope({'separator':separator, 'limit':limit, 'this':this, 'arguments':arguments, 'internalSplit':PyJs_internalSplit_736_}, var) var.registers(['string', 'lastLastIndex', 'output', 'splitLimit', 'lastLength', 'separator', 'flags', 'separatorCopy', 'match', 'limit', 'lastIndex']) var.put('string', var.get('String')(var.get(u"this"))) if (PyJsStrictEq(var.get('separator'),var.get('undefined')) and PyJsStrictEq(var.get('limit'),Js(0.0))): return Js([]) if var.get('isRegExp')(var.get('separator')).neg(): return var.get('$split').callprop('call', var.get('string'), var.get('separator'), var.get('limit')) var.put('output', Js([])) var.put('flags', ((((Js('i') if var.get('separator').get('ignoreCase') else Js(''))+(Js('m') if var.get('separator').get('multiline') else Js('')))+(Js('u') if var.get('separator').get('unicode') else Js('')))+(Js('y') if var.get('separator').get('sticky') else Js('')))) var.put('lastLastIndex', Js(0.0)) var.put('splitLimit', (var.get('MAX_UINT32') if PyJsStrictEq(var.get('limit'),var.get('undefined')) else PyJsBshift(var.get('limit'),Js(0.0)))) var.put('separatorCopy', var.get('RegExp').create(var.get('separator').get('source'), (var.get('flags')+Js('g')))) pass while var.put('match', var.get('regexpExec').callprop('call', var.get('separatorCopy'), var.get('string'))): var.put('lastIndex', var.get('separatorCopy').get(var.get('LAST_INDEX'))) if (var.get('lastIndex')>var.get('lastLastIndex')): var.get('output').callprop('push', var.get('string').callprop('slice', var.get('lastLastIndex'), var.get('match').get('index'))) if ((var.get('match').get(var.get('LENGTH'))>Js(1.0)) and (var.get('match').get('index')=var.get('splitLimit')): break if PyJsStrictEq(var.get('separatorCopy').get(var.get('LAST_INDEX')),var.get('match').get('index')): (var.get('separatorCopy').put(var.get('LAST_INDEX'),Js(var.get('separatorCopy').get(var.get('LAST_INDEX')).to_number())+Js(1))-Js(1)) if PyJsStrictEq(var.get('lastLastIndex'),var.get('string').get(var.get('LENGTH'))): if (var.get('lastLength') or var.get('separatorCopy').callprop('test', Js('')).neg()): var.get('output').callprop('push', Js('')) else: var.get('output').callprop('push', var.get('string').callprop('slice', var.get('lastLastIndex'))) return (var.get('output').callprop('slice', Js(0.0), var.get('splitLimit')) if (var.get('output').get(var.get('LENGTH'))>var.get('splitLimit')) else var.get('output')) PyJs_internalSplit_736_._set_name('internalSplit') var.put('internalSplit', PyJs_internalSplit_736_) else: if Js('0').callprop(var.get('$SPLIT'), var.get('undefined'), Js(0.0)).get(var.get('LENGTH')): @Js def PyJs_internalSplit_737_(separator, limit, this, arguments, var=var): var = Scope({'separator':separator, 'limit':limit, 'this':this, 'arguments':arguments, 'internalSplit':PyJs_internalSplit_737_}, var) var.registers(['separator', 'limit']) return (Js([]) if (PyJsStrictEq(var.get('separator'),var.get('undefined')) and PyJsStrictEq(var.get('limit'),Js(0.0))) else var.get('$split').callprop('call', var.get(u"this"), var.get('separator'), var.get('limit'))) PyJs_internalSplit_737_._set_name('internalSplit') var.put('internalSplit', PyJs_internalSplit_737_) else: var.put('internalSplit', var.get('$split')) @Js def PyJs_split_738_(separator, limit, this, arguments, var=var): var = Scope({'separator':separator, 'limit':limit, 'this':this, 'arguments':arguments, 'split':PyJs_split_738_}, var) var.registers(['O', 'separator', 'limit', 'splitter']) var.put('O', var.get('defined')(var.get(u"this"))) var.put('splitter', (var.get('undefined') if (var.get('separator')==var.get('undefined')) else var.get('separator').get(var.get('SPLIT')))) return (var.get('splitter').callprop('call', var.get('separator'), var.get('O'), var.get('limit')) if PyJsStrictNeq(var.get('splitter'),var.get('undefined')) else var.get('internalSplit').callprop('call', var.get('String')(var.get('O')), var.get('separator'), var.get('limit'))) PyJs_split_738_._set_name('split') @Js def PyJs_anonymous_739_(regexp, limit, this, arguments, var=var): var = Scope({'regexp':regexp, 'limit':limit, 'this':this, 'arguments':arguments}, var) var.registers(['C', 'z', 'regexp', 'lim', 'A', 'i', 'splitter', 'flags', 'res', 'e', 'p', 'unicodeMatching', 'q', 'S', 'limit', 'rx']) var.put('res', var.get('maybeCallNative')(var.get('internalSplit'), var.get('regexp'), var.get(u"this"), var.get('limit'), PyJsStrictNeq(var.get('internalSplit'),var.get('$split')))) if var.get('res').get('done'): return var.get('res').get('value') var.put('rx', var.get('anObject')(var.get('regexp'))) var.put('S', var.get('String')(var.get(u"this"))) var.put('C', var.get('speciesConstructor')(var.get('rx'), var.get('RegExp'))) var.put('unicodeMatching', var.get('rx').get('unicode')) var.put('flags', ((((Js('i') if var.get('rx').get('ignoreCase') else Js(''))+(Js('m') if var.get('rx').get('multiline') else Js('')))+(Js('u') if var.get('rx').get('unicode') else Js('')))+(Js('y') if var.get('SUPPORTS_Y') else Js('g')))) var.put('splitter', var.get('C').create((var.get('rx') if var.get('SUPPORTS_Y') else ((Js('^(?:')+var.get('rx').get('source'))+Js(')'))), var.get('flags'))) var.put('lim', (var.get('MAX_UINT32') if PyJsStrictEq(var.get('limit'),var.get('undefined')) else PyJsBshift(var.get('limit'),Js(0.0)))) if PyJsStrictEq(var.get('lim'),Js(0.0)): return Js([]) if PyJsStrictEq(var.get('S').get('length'),Js(0.0)): return (Js([var.get('S')]) if PyJsStrictEq(var.get('callRegExpExec')(var.get('splitter'), var.get('S')),var.get(u"null")) else Js([])) var.put('p', Js(0.0)) var.put('q', Js(0.0)) var.put('A', Js([])) while (var.get('q')Js(0.0)) else var.get('undefined'))) PyJs_Set_747_._set_name('Set') return PyJs_Set_747_ PyJs_anonymous_746_._set_name('anonymous') @Js def PyJs_add_748_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'add':PyJs_add_748_}, var) var.registers(['value']) return var.get('strong').callprop('def', var.get('validate')(var.get(u"this"), var.get('SET')), var.put('value', (Js(0.0) if PyJsStrictEq(var.get('value'),Js(0.0)) else var.get('value'))), var.get('value')) PyJs_add_748_._set_name('add') var.get('module').put('exports', var.get('require')(Js('./_collection'))(var.get('SET'), PyJs_anonymous_746_, Js({'add':PyJs_add_748_}), var.get('strong'))) PyJs_anonymous_745_._set_name('anonymous') @Js def PyJs_anonymous_749_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_750_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_anchor_751_(name, this, arguments, var=var): var = Scope({'name':name, 'this':this, 'arguments':arguments, 'anchor':PyJs_anchor_751_}, var) var.registers(['name']) return var.get('createHTML')(var.get(u"this"), Js('a'), Js('name'), var.get('name')) PyJs_anchor_751_._set_name('anchor') return PyJs_anchor_751_ PyJs_anonymous_750_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('anchor'), PyJs_anonymous_750_) PyJs_anonymous_749_._set_name('anonymous') @Js def PyJs_anonymous_752_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_753_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_big_754_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'big':PyJs_big_754_}, var) var.registers([]) return var.get('createHTML')(var.get(u"this"), Js('big'), Js(''), Js('')) PyJs_big_754_._set_name('big') return PyJs_big_754_ PyJs_anonymous_753_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('big'), PyJs_anonymous_753_) PyJs_anonymous_752_._set_name('anonymous') @Js def PyJs_anonymous_755_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_756_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_blink_757_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'blink':PyJs_blink_757_}, var) var.registers([]) return var.get('createHTML')(var.get(u"this"), Js('blink'), Js(''), Js('')) PyJs_blink_757_._set_name('blink') return PyJs_blink_757_ PyJs_anonymous_756_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('blink'), PyJs_anonymous_756_) PyJs_anonymous_755_._set_name('anonymous') @Js def PyJs_anonymous_758_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_759_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_bold_760_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'bold':PyJs_bold_760_}, var) var.registers([]) return var.get('createHTML')(var.get(u"this"), Js('b'), Js(''), Js('')) PyJs_bold_760_._set_name('bold') return PyJs_bold_760_ PyJs_anonymous_759_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('bold'), PyJs_anonymous_759_) PyJs_anonymous_758_._set_name('anonymous') @Js def PyJs_anonymous_761_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', '$at']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$at', var.get('require')(Js('./_string-at'))(Js(False))) @Js def PyJs_codePointAt_762_(pos, this, arguments, var=var): var = Scope({'pos':pos, 'this':this, 'arguments':arguments, 'codePointAt':PyJs_codePointAt_762_}, var) var.registers(['pos']) return var.get('$at')(var.get(u"this"), var.get('pos')) PyJs_codePointAt_762_._set_name('codePointAt') var.get('$export')(var.get('$export').get('P'), Js('String'), Js({'codePointAt':PyJs_codePointAt_762_})) PyJs_anonymous_761_._set_name('anonymous') @Js def PyJs_anonymous_763_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', '$endsWith', '$export', 'exports', 'module', 'ENDS_WITH', 'context']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('context', var.get('require')(Js('./_string-context'))) var.put('ENDS_WITH', Js('endsWith')) var.put('$endsWith', Js('').get(var.get('ENDS_WITH'))) @Js def PyJs_endsWith_764_(searchString, this, arguments, var=var): var = Scope({'searchString':searchString, 'this':this, 'arguments':arguments, 'endsWith':PyJs_endsWith_764_}, var) var.registers(['search', 'end', 'that', 'searchString', 'endPosition', 'len']) var.put('that', var.get('context')(var.get(u"this"), var.get('searchString'), var.get('ENDS_WITH'))) var.put('endPosition', (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) var.put('len', var.get('toLength')(var.get('that').get('length'))) var.put('end', (var.get('len') if PyJsStrictEq(var.get('endPosition'),var.get('undefined')) else var.get('Math').callprop('min', var.get('toLength')(var.get('endPosition')), var.get('len')))) var.put('search', var.get('String')(var.get('searchString'))) return (var.get('$endsWith').callprop('call', var.get('that'), var.get('search'), var.get('end')) if var.get('$endsWith') else PyJsStrictEq(var.get('that').callprop('slice', (var.get('end')-var.get('search').get('length')), var.get('end')),var.get('search'))) PyJs_endsWith_764_._set_name('endsWith') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_fails-is-regexp'))(var.get('ENDS_WITH')))), Js('String'), Js({'endsWith':PyJs_endsWith_764_})) PyJs_anonymous_763_._set_name('anonymous') @Js def PyJs_anonymous_765_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_766_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_fixed_767_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'fixed':PyJs_fixed_767_}, var) var.registers([]) return var.get('createHTML')(var.get(u"this"), Js('tt'), Js(''), Js('')) PyJs_fixed_767_._set_name('fixed') return PyJs_fixed_767_ PyJs_anonymous_766_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('fixed'), PyJs_anonymous_766_) PyJs_anonymous_765_._set_name('anonymous') @Js def PyJs_anonymous_768_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_769_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_fontcolor_770_(color, this, arguments, var=var): var = Scope({'color':color, 'this':this, 'arguments':arguments, 'fontcolor':PyJs_fontcolor_770_}, var) var.registers(['color']) return var.get('createHTML')(var.get(u"this"), Js('font'), Js('color'), var.get('color')) PyJs_fontcolor_770_._set_name('fontcolor') return PyJs_fontcolor_770_ PyJs_anonymous_769_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('fontcolor'), PyJs_anonymous_769_) PyJs_anonymous_768_._set_name('anonymous') @Js def PyJs_anonymous_771_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_772_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_fontsize_773_(size, this, arguments, var=var): var = Scope({'size':size, 'this':this, 'arguments':arguments, 'fontsize':PyJs_fontsize_773_}, var) var.registers(['size']) return var.get('createHTML')(var.get(u"this"), Js('font'), Js('size'), var.get('size')) PyJs_fontsize_773_._set_name('fontsize') return PyJs_fontsize_773_ PyJs_anonymous_772_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('fontsize'), PyJs_anonymous_772_) PyJs_anonymous_771_._set_name('anonymous') @Js def PyJs_anonymous_774_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$fromCodePoint', 'toAbsoluteIndex', '$export', 'exports', 'module', 'fromCharCode']) var.put('$export', var.get('require')(Js('./_export'))) var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index'))) var.put('fromCharCode', var.get('String').get('fromCharCode')) var.put('$fromCodePoint', var.get('String').get('fromCodePoint')) @Js def PyJs_fromCodePoint_775_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'fromCodePoint':PyJs_fromCodePoint_775_}, var) var.registers(['code', 'x', 'i', 'aLen', 'res']) var.put('res', Js([])) var.put('aLen', var.get('arguments').get('length')) var.put('i', Js(0.0)) pass while (var.get('aLen')>var.get('i')): var.put('code', (+var.get('arguments').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))) if PyJsStrictNeq(var.get('toAbsoluteIndex')(var.get('code'), Js(1114111)),var.get('code')): PyJsTempException = JsToPyException(var.get('RangeError')((var.get('code')+Js(' is not a valid code point')))) raise PyJsTempException var.get('res').callprop('push', (var.get('fromCharCode')(var.get('code')) if (var.get('code')>Js(10.0))+Js(55296)), ((var.get('code')%Js(1024))+Js(56320))))) return var.get('res').callprop('join', Js('')) PyJs_fromCodePoint_775_._set_name('fromCodePoint') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('$fromCodePoint').neg().neg() and (var.get('$fromCodePoint').get('length')!=Js(1.0))))), Js('String'), Js({'fromCodePoint':PyJs_fromCodePoint_775_})) PyJs_anonymous_774_._set_name('anonymous') @Js def PyJs_anonymous_776_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', 'INCLUDES', 'context']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('context', var.get('require')(Js('./_string-context'))) var.put('INCLUDES', Js('includes')) @Js def PyJs_includes_777_(searchString, this, arguments, var=var): var = Scope({'searchString':searchString, 'this':this, 'arguments':arguments, 'includes':PyJs_includes_777_}, var) var.registers(['searchString']) return (~var.get('context')(var.get(u"this"), var.get('searchString'), var.get('INCLUDES')).callprop('indexOf', var.get('searchString'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))).neg().neg() PyJs_includes_777_._set_name('includes') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_fails-is-regexp'))(var.get('INCLUDES')))), Js('String'), Js({'includes':PyJs_includes_777_})) PyJs_anonymous_776_._set_name('anonymous') @Js def PyJs_anonymous_778_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_779_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_italics_780_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'italics':PyJs_italics_780_}, var) var.registers([]) return var.get('createHTML')(var.get(u"this"), Js('i'), Js(''), Js('')) PyJs_italics_780_._set_name('italics') return PyJs_italics_780_ PyJs_anonymous_779_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('italics'), PyJs_anonymous_779_) PyJs_anonymous_778_._set_name('anonymous') @Js def PyJs_anonymous_781_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['$at', 'require', 'module', 'exports']) Js('use strict') var.put('$at', var.get('require')(Js('./_string-at'))(Js(True))) @Js def PyJs_anonymous_782_(iterated, this, arguments, var=var): var = Scope({'iterated':iterated, 'this':this, 'arguments':arguments}, var) var.registers(['iterated']) var.get(u"this").put('_t', var.get('String')(var.get('iterated'))) var.get(u"this").put('_i', Js(0.0)) PyJs_anonymous_782_._set_name('anonymous') @Js def PyJs_anonymous_783_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['index', 'O', 'point']) var.put('O', var.get(u"this").get('_t')) var.put('index', var.get(u"this").get('_i')) pass if (var.get('index')>=var.get('O').get('length')): return Js({'value':var.get('undefined'),'done':Js(True)}) var.put('point', var.get('$at')(var.get('O'), var.get('index'))) var.get(u"this").put('_i', var.get('point').get('length'), '+') return Js({'value':var.get('point'),'done':Js(False)}) PyJs_anonymous_783_._set_name('anonymous') var.get('require')(Js('./_iter-define'))(var.get('String'), Js('String'), PyJs_anonymous_782_, PyJs_anonymous_783_) PyJs_anonymous_781_._set_name('anonymous') @Js def PyJs_anonymous_784_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_785_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_link_786_(url, this, arguments, var=var): var = Scope({'url':url, 'this':this, 'arguments':arguments, 'link':PyJs_link_786_}, var) var.registers(['url']) return var.get('createHTML')(var.get(u"this"), Js('a'), Js('href'), var.get('url')) PyJs_link_786_._set_name('link') return PyJs_link_786_ PyJs_anonymous_785_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('link'), PyJs_anonymous_785_) PyJs_anonymous_784_._set_name('anonymous') @Js def PyJs_anonymous_787_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'toIObject', '$export', 'exports', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('toLength', var.get('require')(Js('./_to-length'))) @Js def PyJs_raw_788_(callSite, this, arguments, var=var): var = Scope({'callSite':callSite, 'this':this, 'arguments':arguments, 'raw':PyJs_raw_788_}, var) var.registers(['i', 'callSite', 'aLen', 'tpl', 'len', 'res']) var.put('tpl', var.get('toIObject')(var.get('callSite').get('raw'))) var.put('len', var.get('toLength')(var.get('tpl').get('length'))) var.put('aLen', var.get('arguments').get('length')) var.put('res', Js([])) var.put('i', Js(0.0)) while (var.get('len')>var.get('i')): var.get('res').callprop('push', var.get('String')(var.get('tpl').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))) if (var.get('i')Js(1.0)) else var.get('undefined')), var.get('that').get('length')))) var.put('search', var.get('String')(var.get('searchString'))) return (var.get('$startsWith').callprop('call', var.get('that'), var.get('search'), var.get('index')) if var.get('$startsWith') else PyJsStrictEq(var.get('that').callprop('slice', var.get('index'), (var.get('index')+var.get('search').get('length'))),var.get('search'))) PyJs_startsWith_794_._set_name('startsWith') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_fails-is-regexp'))(var.get('STARTS_WITH')))), Js('String'), Js({'startsWith':PyJs_startsWith_794_})) PyJs_anonymous_793_._set_name('anonymous') @Js def PyJs_anonymous_795_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_796_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_strike_797_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'strike':PyJs_strike_797_}, var) var.registers([]) return var.get('createHTML')(var.get(u"this"), Js('strike'), Js(''), Js('')) PyJs_strike_797_._set_name('strike') return PyJs_strike_797_ PyJs_anonymous_796_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('strike'), PyJs_anonymous_796_) PyJs_anonymous_795_._set_name('anonymous') @Js def PyJs_anonymous_798_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_799_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_sub_800_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'sub':PyJs_sub_800_}, var) var.registers([]) return var.get('createHTML')(var.get(u"this"), Js('sub'), Js(''), Js('')) PyJs_sub_800_._set_name('sub') return PyJs_sub_800_ PyJs_anonymous_799_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('sub'), PyJs_anonymous_799_) PyJs_anonymous_798_._set_name('anonymous') @Js def PyJs_anonymous_801_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_802_(createHTML, this, arguments, var=var): var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var) var.registers(['createHTML']) @Js def PyJs_sup_803_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'sup':PyJs_sup_803_}, var) var.registers([]) return var.get('createHTML')(var.get(u"this"), Js('sup'), Js(''), Js('')) PyJs_sup_803_._set_name('sup') return PyJs_sup_803_ PyJs_anonymous_802_._set_name('anonymous') var.get('require')(Js('./_string-html'))(Js('sup'), PyJs_anonymous_802_) PyJs_anonymous_801_._set_name('anonymous') @Js def PyJs_anonymous_804_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_805_(PyJsArg_247472696d_, this, arguments, var=var): var = Scope({'$trim':PyJsArg_247472696d_, 'this':this, 'arguments':arguments}, var) var.registers(['$trim']) @Js def PyJs_trim_806_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'trim':PyJs_trim_806_}, var) var.registers([]) return var.get('$trim')(var.get(u"this"), Js(3.0)) PyJs_trim_806_._set_name('trim') return PyJs_trim_806_ PyJs_anonymous_805_._set_name('anonymous') var.get('require')(Js('./_string-trim'))(Js('trim'), PyJs_anonymous_805_) PyJs_anonymous_804_._set_name('anonymous') @Js def PyJs_anonymous_807_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['_stringify', '$defineProperties', '$Symbol', 'es6Symbols', 'META', 'DESCRIPTORS', '$defineProperty', '$getOwnPropertyDescriptor', 'SymbolRegistry', 'wrap', '$create', 'FAILS_ON_PRIMITIVES', 'wksExt', 'isEnum', 'isSymbol', 'dP', '$getOwnPropertyNames', '$fails', 'setToStringTag', 'wks', 'wellKnownSymbols', '$JSON', 'gOPN', '$GOPS', 'OPSymbols', 'uid', 'k', 'QObject', '_create', 'wksDefine', 'USE_NATIVE', 'require', 'HIDDEN', 'toPrimitive', 'toIObject', 'redefine', 'toObject', 'module', 'ObjectProto', 'setter', 'global', 'createDesc', 'gOPNExt', '$DP', 'PROTOTYPE', 'has', '$propertyIsEnumerable', 'AllSymbols', '$keys', 'setSymbolDesc', '$getOwnPropertySymbols', 'gOPD', '$export', 'enumKeys', 'shared', 'isArray', 'TO_PRIMITIVE', 'j', 'exports', 'isObject', '$GOPD', 'anObject']) Js('use strict') var.put('global', var.get('require')(Js('./_global'))) var.put('has', var.get('require')(Js('./_has'))) var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors'))) var.put('$export', var.get('require')(Js('./_export'))) var.put('redefine', var.get('require')(Js('./_redefine'))) var.put('META', var.get('require')(Js('./_meta')).get('KEY')) var.put('$fails', var.get('require')(Js('./_fails'))) var.put('shared', var.get('require')(Js('./_shared'))) var.put('setToStringTag', var.get('require')(Js('./_set-to-string-tag'))) var.put('uid', var.get('require')(Js('./_uid'))) var.put('wks', var.get('require')(Js('./_wks'))) var.put('wksExt', var.get('require')(Js('./_wks-ext'))) var.put('wksDefine', var.get('require')(Js('./_wks-define'))) var.put('enumKeys', var.get('require')(Js('./_enum-keys'))) var.put('isArray', var.get('require')(Js('./_is-array'))) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('toPrimitive', var.get('require')(Js('./_to-primitive'))) var.put('createDesc', var.get('require')(Js('./_property-desc'))) var.put('_create', var.get('require')(Js('./_object-create'))) var.put('gOPNExt', var.get('require')(Js('./_object-gopn-ext'))) var.put('$GOPD', var.get('require')(Js('./_object-gopd'))) var.put('$GOPS', var.get('require')(Js('./_object-gops'))) var.put('$DP', var.get('require')(Js('./_object-dp'))) var.put('$keys', var.get('require')(Js('./_object-keys'))) var.put('gOPD', var.get('$GOPD').get('f')) var.put('dP', var.get('$DP').get('f')) var.put('gOPN', var.get('gOPNExt').get('f')) var.put('$Symbol', var.get('global').get('Symbol')) var.put('$JSON', var.get('global').get('JSON')) var.put('_stringify', (var.get('$JSON') and var.get('$JSON').get('stringify'))) var.put('PROTOTYPE', Js('prototype')) var.put('HIDDEN', var.get('wks')(Js('_hidden'))) var.put('TO_PRIMITIVE', var.get('wks')(Js('toPrimitive'))) var.put('isEnum', Js({}).get('propertyIsEnumerable')) var.put('SymbolRegistry', var.get('shared')(Js('symbol-registry'))) var.put('AllSymbols', var.get('shared')(Js('symbols'))) var.put('OPSymbols', var.get('shared')(Js('op-symbols'))) var.put('ObjectProto', var.get('Object').get(var.get('PROTOTYPE'))) var.put('USE_NATIVE', ((var.get('$Symbol',throw=False).typeof()==Js('function')) and var.get('$GOPS').get('f').neg().neg())) var.put('QObject', var.get('global').get('QObject')) var.put('setter', ((var.get('QObject').neg() or var.get('QObject').get(var.get('PROTOTYPE')).neg()) or var.get('QObject').get(var.get('PROTOTYPE')).get('findChild').neg())) @Js def PyJs_anonymous_808_(it, key, D, this, arguments, var=var): var = Scope({'it':it, 'key':key, 'D':D, 'this':this, 'arguments':arguments}, var) var.registers(['protoDesc', 'D', 'it', 'key']) var.put('protoDesc', var.get('gOPD')(var.get('ObjectProto'), var.get('key'))) if var.get('protoDesc'): var.get('ObjectProto').delete(var.get('key')) var.get('dP')(var.get('it'), var.get('key'), var.get('D')) if (var.get('protoDesc') and PyJsStrictNeq(var.get('it'),var.get('ObjectProto'))): var.get('dP')(var.get('ObjectProto'), var.get('key'), var.get('protoDesc')) PyJs_anonymous_808_._set_name('anonymous') @Js def PyJs_anonymous_809_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) @Js def PyJs_get_810_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_810_}, var) var.registers([]) return var.get('dP')(var.get(u"this"), Js('a'), Js({'value':Js(7.0)})).get('a') PyJs_get_810_._set_name('get') return (var.get('_create')(var.get('dP')(Js({}), Js('a'), Js({'get':PyJs_get_810_}))).get('a')!=Js(7.0)) PyJs_anonymous_809_._set_name('anonymous') var.put('setSymbolDesc', (PyJs_anonymous_808_ if (var.get('DESCRIPTORS') and var.get('$fails')(PyJs_anonymous_809_)) else var.get('dP'))) @Js def PyJs_wrap_811_(tag, this, arguments, var=var): var = Scope({'tag':tag, 'this':this, 'arguments':arguments, 'wrap':PyJs_wrap_811_}, var) var.registers(['tag', 'sym']) var.put('sym', var.get('AllSymbols').put(var.get('tag'), var.get('_create')(var.get('$Symbol').get(var.get('PROTOTYPE'))))) var.get('sym').put('_k', var.get('tag')) return var.get('sym') PyJs_wrap_811_._set_name('wrap') var.put('wrap', PyJs_wrap_811_) @Js def PyJs_anonymous_812_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return ((Js('undefined') if PyJsStrictEq(var.get('it',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('it')))==Js('symbol')) PyJs_anonymous_812_._set_name('anonymous') @Js def PyJs_anonymous_813_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) return var.get('it').instanceof(var.get('$Symbol')) PyJs_anonymous_813_._set_name('anonymous') var.put('isSymbol', (PyJs_anonymous_812_ if (var.get('USE_NATIVE') and (var.get('_typeof')(var.get('$Symbol').get('iterator'))==Js('symbol'))) else PyJs_anonymous_813_)) @Js def PyJs_defineProperty_814_(it, key, D, this, arguments, var=var): var = Scope({'it':it, 'key':key, 'D':D, 'this':this, 'arguments':arguments, 'defineProperty':PyJs_defineProperty_814_}, var) var.registers(['it', 'D', 'key']) if PyJsStrictEq(var.get('it'),var.get('ObjectProto')): var.get('$defineProperty')(var.get('OPSymbols'), var.get('key'), var.get('D')) var.get('anObject')(var.get('it')) var.put('key', var.get('toPrimitive')(var.get('key'), Js(True))) var.get('anObject')(var.get('D')) if var.get('has')(var.get('AllSymbols'), var.get('key')): if var.get('D').get('enumerable').neg(): if var.get('has')(var.get('it'), var.get('HIDDEN')).neg(): var.get('dP')(var.get('it'), var.get('HIDDEN'), var.get('createDesc')(Js(1.0), Js({}))) var.get('it').get(var.get('HIDDEN')).put(var.get('key'), Js(True)) else: if (var.get('has')(var.get('it'), var.get('HIDDEN')) and var.get('it').get(var.get('HIDDEN')).get(var.get('key'))): var.get('it').get(var.get('HIDDEN')).put(var.get('key'), Js(False)) var.put('D', var.get('_create')(var.get('D'), Js({'enumerable':var.get('createDesc')(Js(0.0), Js(False))}))) return var.get('setSymbolDesc')(var.get('it'), var.get('key'), var.get('D')) return var.get('dP')(var.get('it'), var.get('key'), var.get('D')) PyJs_defineProperty_814_._set_name('defineProperty') var.put('$defineProperty', PyJs_defineProperty_814_) @Js def PyJs_defineProperties_815_(it, P, this, arguments, var=var): var = Scope({'it':it, 'P':P, 'this':this, 'arguments':arguments, 'defineProperties':PyJs_defineProperties_815_}, var) var.registers(['it', 'i', 'l', 'P', 'key', 'keys']) var.get('anObject')(var.get('it')) var.put('keys', var.get('enumKeys')(var.put('P', var.get('toIObject')(var.get('P'))))) var.put('i', Js(0.0)) var.put('l', var.get('keys').get('length')) pass while (var.get('l')>var.get('i')): var.get('$defineProperty')(var.get('it'), var.put('key', var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))), var.get('P').get(var.get('key'))) return var.get('it') PyJs_defineProperties_815_._set_name('defineProperties') var.put('$defineProperties', PyJs_defineProperties_815_) @Js def PyJs_create_816_(it, P, this, arguments, var=var): var = Scope({'it':it, 'P':P, 'this':this, 'arguments':arguments, 'create':PyJs_create_816_}, var) var.registers(['it', 'P']) return (var.get('_create')(var.get('it')) if PyJsStrictEq(var.get('P'),var.get('undefined')) else var.get('$defineProperties')(var.get('_create')(var.get('it')), var.get('P'))) PyJs_create_816_._set_name('create') var.put('$create', PyJs_create_816_) @Js def PyJs_propertyIsEnumerable_817_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, 'propertyIsEnumerable':PyJs_propertyIsEnumerable_817_}, var) var.registers(['key', 'E']) var.put('E', var.get('isEnum').callprop('call', var.get(u"this"), var.put('key', var.get('toPrimitive')(var.get('key'), Js(True))))) if ((PyJsStrictEq(var.get(u"this"),var.get('ObjectProto')) and var.get('has')(var.get('AllSymbols'), var.get('key'))) and var.get('has')(var.get('OPSymbols'), var.get('key')).neg()): return Js(False) return (var.get('E') if (((var.get('E') or var.get('has')(var.get(u"this"), var.get('key')).neg()) or var.get('has')(var.get('AllSymbols'), var.get('key')).neg()) or (var.get('has')(var.get(u"this"), var.get('HIDDEN')) and var.get(u"this").get(var.get('HIDDEN')).get(var.get('key')))) else Js(True)) PyJs_propertyIsEnumerable_817_._set_name('propertyIsEnumerable') var.put('$propertyIsEnumerable', PyJs_propertyIsEnumerable_817_) @Js def PyJs_getOwnPropertyDescriptor_818_(it, key, this, arguments, var=var): var = Scope({'it':it, 'key':key, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_818_}, var) var.registers(['it', 'D', 'key']) var.put('it', var.get('toIObject')(var.get('it'))) var.put('key', var.get('toPrimitive')(var.get('key'), Js(True))) if ((PyJsStrictEq(var.get('it'),var.get('ObjectProto')) and var.get('has')(var.get('AllSymbols'), var.get('key'))) and var.get('has')(var.get('OPSymbols'), var.get('key')).neg()): return var.get('undefined') var.put('D', var.get('gOPD')(var.get('it'), var.get('key'))) if ((var.get('D') and var.get('has')(var.get('AllSymbols'), var.get('key'))) and (var.get('has')(var.get('it'), var.get('HIDDEN')) and var.get('it').get(var.get('HIDDEN')).get(var.get('key'))).neg()): var.get('D').put('enumerable', Js(True)) return var.get('D') PyJs_getOwnPropertyDescriptor_818_._set_name('getOwnPropertyDescriptor') var.put('$getOwnPropertyDescriptor', PyJs_getOwnPropertyDescriptor_818_) @Js def PyJs_getOwnPropertyNames_819_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getOwnPropertyNames':PyJs_getOwnPropertyNames_819_}, var) var.registers(['it', 'i', 'result', 'key', 'names']) var.put('names', var.get('gOPN')(var.get('toIObject')(var.get('it')))) var.put('result', Js([])) var.put('i', Js(0.0)) pass while (var.get('names').get('length')>var.get('i')): if ((var.get('has')(var.get('AllSymbols'), var.put('key', var.get('names').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))).neg() and (var.get('key')!=var.get('HIDDEN'))) and (var.get('key')!=var.get('META'))): var.get('result').callprop('push', var.get('key')) return var.get('result') PyJs_getOwnPropertyNames_819_._set_name('getOwnPropertyNames') var.put('$getOwnPropertyNames', PyJs_getOwnPropertyNames_819_) @Js def PyJs_getOwnPropertySymbols_820_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getOwnPropertySymbols':PyJs_getOwnPropertySymbols_820_}, var) var.registers(['it', 'i', 'IS_OP', 'result', 'key', 'names']) var.put('IS_OP', PyJsStrictEq(var.get('it'),var.get('ObjectProto'))) var.put('names', var.get('gOPN')((var.get('OPSymbols') if var.get('IS_OP') else var.get('toIObject')(var.get('it'))))) var.put('result', Js([])) var.put('i', Js(0.0)) pass while (var.get('names').get('length')>var.get('i')): if (var.get('has')(var.get('AllSymbols'), var.put('key', var.get('names').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))) and (var.get('has')(var.get('ObjectProto'), var.get('key')) if var.get('IS_OP') else Js(True))): var.get('result').callprop('push', var.get('AllSymbols').get(var.get('key'))) return var.get('result') PyJs_getOwnPropertySymbols_820_._set_name('getOwnPropertySymbols') var.put('$getOwnPropertySymbols', PyJs_getOwnPropertySymbols_820_) if var.get('USE_NATIVE').neg(): @Js def PyJs__Symbol2_821_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, '_Symbol2':PyJs__Symbol2_821_}, var) var.registers(['tag', '$set']) if var.get(u"this").instanceof(var.get('$Symbol')): PyJsTempException = JsToPyException(var.get('TypeError')(Js('Symbol is not a constructor!'))) raise PyJsTempException var.put('tag', var.get('uid')((var.get('arguments').get('0') if (var.get('arguments').get('length')>Js(0.0)) else var.get('undefined')))) @Js def PyJs_InlineNonPyName_822_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, '$set':PyJs_InlineNonPyName_822_}, var) var.registers(['value']) if PyJsStrictEq(var.get(u"this"),var.get('ObjectProto')): var.get('$set').callprop('call', var.get('OPSymbols'), var.get('value')) if (var.get('has')(var.get(u"this"), var.get('HIDDEN')) and var.get('has')(var.get(u"this").get(var.get('HIDDEN')), var.get('tag'))): var.get(u"this").get(var.get('HIDDEN')).put(var.get('tag'), Js(False)) var.get('setSymbolDesc')(var.get(u"this"), var.get('tag'), var.get('createDesc')(Js(1.0), var.get('value'))) PyJs_InlineNonPyName_822_._set_name('$set') var.put('$set', PyJs_InlineNonPyName_822_) if (var.get('DESCRIPTORS') and var.get('setter')): var.get('setSymbolDesc')(var.get('ObjectProto'), var.get('tag'), Js({'configurable':Js(True),'set':var.get('$set')})) return var.get('wrap')(var.get('tag')) PyJs__Symbol2_821_._set_name('_Symbol2') var.put('$Symbol', PyJs__Symbol2_821_) @Js def PyJs_toString_823_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_823_}, var) var.registers([]) return var.get(u"this").get('_k') PyJs_toString_823_._set_name('toString') var.get('redefine')(var.get('$Symbol').get(var.get('PROTOTYPE')), Js('toString'), PyJs_toString_823_) var.get('$GOPD').put('f', var.get('$getOwnPropertyDescriptor')) var.get('$DP').put('f', var.get('$defineProperty')) var.get('require')(Js('./_object-gopn')).put('f', var.get('gOPNExt').put('f', var.get('$getOwnPropertyNames'))) var.get('require')(Js('./_object-pie')).put('f', var.get('$propertyIsEnumerable')) var.get('$GOPS').put('f', var.get('$getOwnPropertySymbols')) if (var.get('DESCRIPTORS') and var.get('require')(Js('./_library')).neg()): var.get('redefine')(var.get('ObjectProto'), Js('propertyIsEnumerable'), var.get('$propertyIsEnumerable'), Js(True)) @Js def PyJs_anonymous_824_(name, this, arguments, var=var): var = Scope({'name':name, 'this':this, 'arguments':arguments}, var) var.registers(['name']) return var.get('wrap')(var.get('wks')(var.get('name'))) PyJs_anonymous_824_._set_name('anonymous') var.get('wksExt').put('f', PyJs_anonymous_824_) var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), Js({'Symbol':var.get('$Symbol')})) #for JS loop var.put('es6Symbols', Js('hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables').callprop('split', Js(','))) var.put('j', Js(0.0)) while (var.get('es6Symbols').get('length')>var.get('j')): var.get('wks')(var.get('es6Symbols').get((var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1)))) #for JS loop var.put('wellKnownSymbols', var.get('$keys')(var.get('wks').get('store'))) var.put('k', Js(0.0)) while (var.get('wellKnownSymbols').get('length')>var.get('k')): var.get('wksDefine')(var.get('wellKnownSymbols').get((var.put('k',Js(var.get('k').to_number())+Js(1))-Js(1)))) @Js def PyJs__for_825_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, '_for':PyJs__for_825_}, var) var.registers(['key']) return (var.get('SymbolRegistry').get(var.get('key')) if var.get('has')(var.get('SymbolRegistry'), var.put('key', Js(''), '+')) else var.get('SymbolRegistry').put(var.get('key'), var.get('$Symbol')(var.get('key')))) PyJs__for_825_._set_name('_for') @Js def PyJs_keyFor_826_(sym, this, arguments, var=var): var = Scope({'sym':sym, 'this':this, 'arguments':arguments, 'keyFor':PyJs_keyFor_826_}, var) var.registers(['sym', 'key']) if var.get('isSymbol')(var.get('sym')).neg(): PyJsTempException = JsToPyException(var.get('TypeError')((var.get('sym')+Js(' is not a symbol!')))) raise PyJsTempException for PyJsTemp in var.get('SymbolRegistry'): var.put('key', PyJsTemp) if PyJsStrictEq(var.get('SymbolRegistry').get(var.get('key')),var.get('sym')): return var.get('key') PyJs_keyFor_826_._set_name('keyFor') @Js def PyJs_useSetter_827_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'useSetter':PyJs_useSetter_827_}, var) var.registers([]) var.put('setter', Js(True)) PyJs_useSetter_827_._set_name('useSetter') @Js def PyJs_useSimple_828_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'useSimple':PyJs_useSimple_828_}, var) var.registers([]) var.put('setter', Js(False)) PyJs_useSimple_828_._set_name('useSimple') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), Js('Symbol'), Js({'for':PyJs__for_825_,'keyFor':PyJs_keyFor_826_,'useSetter':PyJs_useSetter_827_,'useSimple':PyJs_useSimple_828_})) def PyJs_LONG_829_(var=var): return var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), Js('Object'), Js({'create':var.get('$create'),'defineProperty':var.get('$defineProperty'),'defineProperties':var.get('$defineProperties'),'getOwnPropertyDescriptor':var.get('$getOwnPropertyDescriptor'),'getOwnPropertyNames':var.get('$getOwnPropertyNames'),'getOwnPropertySymbols':var.get('$getOwnPropertySymbols')})) PyJs_LONG_829_() @Js def PyJs_anonymous_830_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.get('$GOPS').callprop('f', Js(1.0)) PyJs_anonymous_830_._set_name('anonymous') var.put('FAILS_ON_PRIMITIVES', var.get('$fails')(PyJs_anonymous_830_)) @Js def PyJs_getOwnPropertySymbols_831_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getOwnPropertySymbols':PyJs_getOwnPropertySymbols_831_}, var) var.registers(['it']) return var.get('$GOPS').callprop('f', var.get('toObject')(var.get('it'))) PyJs_getOwnPropertySymbols_831_._set_name('getOwnPropertySymbols') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('FAILS_ON_PRIMITIVES'))), Js('Object'), Js({'getOwnPropertySymbols':PyJs_getOwnPropertySymbols_831_})) @Js def PyJs_anonymous_832_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['S']) var.put('S', var.get('$Symbol')()) return (((var.get('_stringify')(Js([var.get('S')]))!=Js('[null]')) or (var.get('_stringify')(Js({'a':var.get('S')}))!=Js('{}'))) or (var.get('_stringify')(var.get('Object')(var.get('S')))!=Js('{}'))) PyJs_anonymous_832_._set_name('anonymous') @Js def PyJs_stringify_833_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_833_}, var) var.registers(['it', 'replacer', '$replacer', 'i', 'args']) var.put('args', Js([var.get('it')])) var.put('i', Js(1.0)) pass while (var.get('arguments').get('length')>var.get('i')): var.get('args').callprop('push', var.get('arguments').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))) var.put('$replacer', var.put('replacer', var.get('args').get('1'))) if ((var.get('isObject')(var.get('replacer')).neg() and PyJsStrictEq(var.get('it'),var.get('undefined'))) or var.get('isSymbol')(var.get('it'))): return var.get('undefined') if var.get('isArray')(var.get('replacer')).neg(): @Js def PyJs_replacer_834_(key, value, this, arguments, var=var): var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments, 'replacer':PyJs_replacer_834_}, var) var.registers(['value', 'key']) if (var.get('$replacer',throw=False).typeof()==Js('function')): var.put('value', var.get('$replacer').callprop('call', var.get(u"this"), var.get('key'), var.get('value'))) if var.get('isSymbol')(var.get('value')).neg(): return var.get('value') PyJs_replacer_834_._set_name('replacer') var.put('replacer', PyJs_replacer_834_) var.get('args').put('1', var.get('replacer')) return var.get('_stringify').callprop('apply', var.get('$JSON'), var.get('args')) PyJs_stringify_833_._set_name('stringify') (var.get('$JSON') and var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('USE_NATIVE').neg() or var.get('$fails')(PyJs_anonymous_832_)))), Js('JSON'), Js({'stringify':PyJs_stringify_833_}))) (var.get('$Symbol').get(var.get('PROTOTYPE')).get(var.get('TO_PRIMITIVE')) or var.get('require')(Js('./_hide'))(var.get('$Symbol').get(var.get('PROTOTYPE')), var.get('TO_PRIMITIVE'), var.get('$Symbol').get(var.get('PROTOTYPE')).get('valueOf'))) var.get('setToStringTag')(var.get('$Symbol'), Js('Symbol')) var.get('setToStringTag')(var.get('Math'), Js('Math'), Js(True)) var.get('setToStringTag')(var.get('global').get('JSON'), Js('JSON'), Js(True)) PyJs_anonymous_807_._set_name('anonymous') @Js def PyJs_anonymous_835_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'buffer', '$ArrayBuffer', 'toAbsoluteIndex', '$typed', '$export', 'VIEW', 'module', 'speciesConstructor', '$isView', '$DataView', 'ARRAY_BUFFER', 'exports', '$slice', 'ArrayBuffer', 'isObject', 'anObject']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$typed', var.get('require')(Js('./_typed'))) var.put('buffer', var.get('require')(Js('./_typed-buffer'))) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('isObject', var.get('require')(Js('./_is-object'))) var.put('ArrayBuffer', var.get('require')(Js('./_global')).get('ArrayBuffer')) var.put('speciesConstructor', var.get('require')(Js('./_species-constructor'))) var.put('$ArrayBuffer', var.get('buffer').get('ArrayBuffer')) var.put('$DataView', var.get('buffer').get('DataView')) var.put('$isView', (var.get('$typed').get('ABV') and var.get('ArrayBuffer').get('isView'))) var.put('$slice', var.get('$ArrayBuffer').get('prototype').get('slice')) var.put('VIEW', var.get('$typed').get('VIEW')) var.put('ARRAY_BUFFER', Js('ArrayBuffer')) var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*PyJsStrictNeq(var.get('ArrayBuffer'),var.get('$ArrayBuffer')))), Js({'ArrayBuffer':var.get('$ArrayBuffer')})) @Js def PyJs_isView_836_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isView':PyJs_isView_836_}, var) var.registers(['it']) return ((var.get('$isView') and var.get('$isView')(var.get('it'))) or (var.get('isObject')(var.get('it')) and var.get('it').contains(var.get('VIEW')))) PyJs_isView_836_._set_name('isView') var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('$typed').get('CONSTR').neg())), var.get('ARRAY_BUFFER'), Js({'isView':PyJs_isView_836_})) @Js def PyJs_anonymous_837_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) return var.get('$ArrayBuffer').create(Js(2.0)).callprop('slice', Js(1.0), var.get('undefined')).get('byteLength').neg() PyJs_anonymous_837_._set_name('anonymous') @Js def PyJs_slice_838_(start, end, this, arguments, var=var): var = Scope({'start':start, 'end':end, 'this':this, 'arguments':arguments, 'slice':PyJs_slice_838_}, var) var.registers(['index', 'end', 'viewS', 'start', 'viewT', 'result', 'fin', 'first', 'len']) if (PyJsStrictNeq(var.get('$slice'),var.get('undefined')) and PyJsStrictEq(var.get('end'),var.get('undefined'))): return var.get('$slice').callprop('call', var.get('anObject')(var.get(u"this")), var.get('start')) var.put('len', var.get('anObject')(var.get(u"this")).get('byteLength')) var.put('first', var.get('toAbsoluteIndex')(var.get('start'), var.get('len'))) var.put('fin', var.get('toAbsoluteIndex')((var.get('len') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('end')), var.get('len'))) var.put('result', var.get('speciesConstructor')(var.get(u"this"), var.get('$ArrayBuffer')).create(var.get('toLength')((var.get('fin')-var.get('first'))))) var.put('viewS', var.get('$DataView').create(var.get(u"this"))) var.put('viewT', var.get('$DataView').create(var.get('result'))) var.put('index', Js(0.0)) while (var.get('first')Js(0.0)) else var.get('undefined'))) PyJs_WeakMap_869_._set_name('WeakMap') return PyJs_WeakMap_869_ PyJs_wrapper_868_._set_name('wrapper') var.put('wrapper', PyJs_wrapper_868_) @Js def PyJs_get_870_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments, 'get':PyJs_get_870_}, var) var.registers(['data', 'key']) if var.get('isObject')(var.get('key')): var.put('data', var.get('getWeak')(var.get('key'))) if PyJsStrictEq(var.get('data'),Js(True)): return var.get('uncaughtFrozenStore')(var.get('validate')(var.get(u"this"), var.get('WEAK_MAP'))).callprop('get', var.get('key')) return (var.get('data').get(var.get(u"this").get('_i')) if var.get('data') else var.get('undefined')) PyJs_get_870_._set_name('get') @Js def PyJs_set_871_(key, value, this, arguments, var=var): var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments, 'set':PyJs_set_871_}, var) var.registers(['value', 'key']) return var.get('weak').callprop('def', var.get('validate')(var.get(u"this"), var.get('WEAK_MAP')), var.get('key'), var.get('value')) PyJs_set_871_._set_name('set') var.put('methods', Js({'get':PyJs_get_870_,'set':PyJs_set_871_})) var.put('$WeakMap', var.get('module').put('exports', var.get('require')(Js('./_collection'))(var.get('WEAK_MAP'), var.get('wrapper'), var.get('methods'), var.get('weak'), Js(True), Js(True)))) if (var.get('NATIVE_WEAK_MAP') and var.get('IS_IE11')): var.put('InternalMap', var.get('weak').callprop('getConstructor', var.get('wrapper'), var.get('WEAK_MAP'))) var.get('assign')(var.get('InternalMap').get('prototype'), var.get('methods')) var.get('meta').put('NEED', Js(True)) @Js def PyJs_anonymous_872_(key, this, arguments, var=var): var = Scope({'key':key, 'this':this, 'arguments':arguments}, var) var.registers(['method', 'proto', 'key']) var.put('proto', var.get('$WeakMap').get('prototype')) var.put('method', var.get('proto').get(var.get('key'))) @Js def PyJs_anonymous_873_(a, b, this, arguments, var=var): var = Scope({'a':a, 'b':b, 'this':this, 'arguments':arguments}, var) var.registers(['result', 'a', 'b']) if (var.get('isObject')(var.get('a')) and var.get('isExtensible')(var.get('a')).neg()): if var.get(u"this").get('_f').neg(): var.get(u"this").put('_f', var.get('InternalMap').create()) var.put('result', var.get(u"this").get('_f').callprop(var.get('key'), var.get('a'), var.get('b'))) return (var.get(u"this") if (var.get('key')==Js('set')) else var.get('result')) return var.get('method').callprop('call', var.get(u"this"), var.get('a'), var.get('b')) PyJs_anonymous_873_._set_name('anonymous') var.get('redefine')(var.get('proto'), var.get('key'), PyJs_anonymous_873_) PyJs_anonymous_872_._set_name('anonymous') var.get('each')(Js([Js('delete'), Js('has'), Js('get'), Js('set')]), PyJs_anonymous_872_) PyJs_anonymous_867_._set_name('anonymous') @Js def PyJs_anonymous_874_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['WEAK_SET', 'require', 'exports', 'module', 'validate', 'weak']) Js('use strict') var.put('weak', var.get('require')(Js('./_collection-weak'))) var.put('validate', var.get('require')(Js('./_validate-collection'))) var.put('WEAK_SET', Js('WeakSet')) @Js def PyJs_anonymous_875_(get, this, arguments, var=var): var = Scope({'get':get, 'this':this, 'arguments':arguments}, var) var.registers(['get']) @Js def PyJs_WeakSet_876_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'WeakSet':PyJs_WeakSet_876_}, var) var.registers([]) return var.get('get')(var.get(u"this"), (var.get('arguments').get('0') if (var.get('arguments').get('length')>Js(0.0)) else var.get('undefined'))) PyJs_WeakSet_876_._set_name('WeakSet') return PyJs_WeakSet_876_ PyJs_anonymous_875_._set_name('anonymous') @Js def PyJs_add_877_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'add':PyJs_add_877_}, var) var.registers(['value']) return var.get('weak').callprop('def', var.get('validate')(var.get(u"this"), var.get('WEAK_SET')), var.get('value'), Js(True)) PyJs_add_877_._set_name('add') var.get('require')(Js('./_collection'))(var.get('WEAK_SET'), PyJs_anonymous_875_, Js({'add':PyJs_add_877_}), var.get('weak'), Js(False), Js(True)) PyJs_anonymous_874_._set_name('anonymous') @Js def PyJs_anonymous_878_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', 'toLength', 'toObject', '$export', 'flattenIntoArray', 'exports', 'module', 'arraySpeciesCreate']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('flattenIntoArray', var.get('require')(Js('./_flatten-into-array'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('arraySpeciesCreate', var.get('require')(Js('./_array-species-create'))) @Js def PyJs_flatMap_879_(callbackfn, this, arguments, var=var): var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'flatMap':PyJs_flatMap_879_}, var) var.registers(['O', 'callbackfn', 'sourceLen', 'A']) var.put('O', var.get('toObject')(var.get(u"this"))) pass var.get('aFunction')(var.get('callbackfn')) var.put('sourceLen', var.get('toLength')(var.get('O').get('length'))) var.put('A', var.get('arraySpeciesCreate')(var.get('O'), Js(0.0))) var.get('flattenIntoArray')(var.get('A'), var.get('O'), var.get('O'), var.get('sourceLen'), Js(0.0), Js(1.0), var.get('callbackfn'), var.get('arguments').get('1')) return var.get('A') PyJs_flatMap_879_._set_name('flatMap') var.get('$export')(var.get('$export').get('P'), Js('Array'), Js({'flatMap':PyJs_flatMap_879_})) var.get('require')(Js('./_add-to-unscopables'))(Js('flatMap')) PyJs_anonymous_878_._set_name('anonymous') @Js def PyJs_anonymous_880_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toLength', 'toObject', '$export', 'flattenIntoArray', 'exports', 'module', 'arraySpeciesCreate', 'toInteger']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('flattenIntoArray', var.get('require')(Js('./_flatten-into-array'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('toLength', var.get('require')(Js('./_to-length'))) var.put('toInteger', var.get('require')(Js('./_to-integer'))) var.put('arraySpeciesCreate', var.get('require')(Js('./_array-species-create'))) @Js def PyJs_flatten_881_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'flatten':PyJs_flatten_881_}, var) var.registers(['O', 'sourceLen', 'depthArg', 'A']) var.put('depthArg', var.get('arguments').get('0')) var.put('O', var.get('toObject')(var.get(u"this"))) var.put('sourceLen', var.get('toLength')(var.get('O').get('length'))) var.put('A', var.get('arraySpeciesCreate')(var.get('O'), Js(0.0))) var.get('flattenIntoArray')(var.get('A'), var.get('O'), var.get('O'), var.get('sourceLen'), Js(0.0), (Js(1.0) if PyJsStrictEq(var.get('depthArg'),var.get('undefined')) else var.get('toInteger')(var.get('depthArg')))) return var.get('A') PyJs_flatten_881_._set_name('flatten') var.get('$export')(var.get('$export').get('P'), Js('Array'), Js({'flatten':PyJs_flatten_881_})) var.get('require')(Js('./_add-to-unscopables'))(Js('flatten')) PyJs_anonymous_880_._set_name('anonymous') @Js def PyJs_anonymous_882_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', '$includes', 'module']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$includes', var.get('require')(Js('./_array-includes'))(Js(True))) @Js def PyJs_includes_883_(el, this, arguments, var=var): var = Scope({'el':el, 'this':this, 'arguments':arguments, 'includes':PyJs_includes_883_}, var) var.registers(['el']) return var.get('$includes')(var.get(u"this"), var.get('el'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))) PyJs_includes_883_._set_name('includes') var.get('$export')(var.get('$export').get('P'), Js('Array'), Js({'includes':PyJs_includes_883_})) var.get('require')(Js('./_add-to-unscopables'))(Js('includes')) PyJs_anonymous_882_._set_name('anonymous') @Js def PyJs_anonymous_884_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['isNode', 'require', '$export', 'exports', 'module', 'microtask', 'process']) var.put('$export', var.get('require')(Js('./_export'))) var.put('microtask', var.get('require')(Js('./_microtask'))()) var.put('process', var.get('require')(Js('./_global')).get('process')) var.put('isNode', (var.get('require')(Js('./_cof'))(var.get('process'))==Js('process'))) @Js def PyJs_asap_885_(fn, this, arguments, var=var): var = Scope({'fn':fn, 'this':this, 'arguments':arguments, 'asap':PyJs_asap_885_}, var) var.registers(['fn', 'domain']) var.put('domain', (var.get('isNode') and var.get('process').get('domain'))) var.get('microtask')((var.get('domain').callprop('bind', var.get('fn')) if var.get('domain') else var.get('fn'))) PyJs_asap_885_._set_name('asap') var.get('$export')(var.get('$export').get('G'), Js({'asap':PyJs_asap_885_})) PyJs_anonymous_884_._set_name('anonymous') @Js def PyJs_anonymous_886_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'cof', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('cof', var.get('require')(Js('./_cof'))) @Js def PyJs_isError_887_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isError':PyJs_isError_887_}, var) var.registers(['it']) return PyJsStrictEq(var.get('cof')(var.get('it')),Js('Error')) PyJs_isError_887_._set_name('isError') var.get('$export')(var.get('$export').get('S'), Js('Error'), Js({'isError':PyJs_isError_887_})) PyJs_anonymous_886_._set_name('anonymous') @Js def PyJs_anonymous_888_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('G'), Js({'global':var.get('require')(Js('./_global'))})) PyJs_anonymous_888_._set_name('anonymous') @Js def PyJs_anonymous_889_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('./_set-collection-from'))(Js('Map')) PyJs_anonymous_889_._set_name('anonymous') @Js def PyJs_anonymous_890_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('./_set-collection-of'))(Js('Map')) PyJs_anonymous_890_._set_name('anonymous') @Js def PyJs_anonymous_891_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')((var.get('$export').get('P')+var.get('$export').get('R')), Js('Map'), Js({'toJSON':var.get('require')(Js('./_collection-to-json'))(Js('Map'))})) PyJs_anonymous_891_._set_name('anonymous') @Js def PyJs_anonymous_892_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) @Js def PyJs_clamp_893_(x, lower, upper, this, arguments, var=var): var = Scope({'x':x, 'lower':lower, 'upper':upper, 'this':this, 'arguments':arguments, 'clamp':PyJs_clamp_893_}, var) var.registers(['upper', 'x', 'lower']) return var.get('Math').callprop('min', var.get('upper'), var.get('Math').callprop('max', var.get('lower'), var.get('x'))) PyJs_clamp_893_._set_name('clamp') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'clamp':PyJs_clamp_893_})) PyJs_anonymous_892_._set_name('anonymous') @Js def PyJs_anonymous_894_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'DEG_PER_RAD':(var.get('Math').get('PI')/Js(180.0))})) PyJs_anonymous_894_._set_name('anonymous') @Js def PyJs_anonymous_895_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', 'RAD_PER_DEG']) var.put('$export', var.get('require')(Js('./_export'))) var.put('RAD_PER_DEG', (Js(180.0)/var.get('Math').get('PI'))) @Js def PyJs_degrees_896_(radians, this, arguments, var=var): var = Scope({'radians':radians, 'this':this, 'arguments':arguments, 'degrees':PyJs_degrees_896_}, var) var.registers(['radians']) return (var.get('radians')*var.get('RAD_PER_DEG')) PyJs_degrees_896_._set_name('degrees') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'degrees':PyJs_degrees_896_})) PyJs_anonymous_895_._set_name('anonymous') @Js def PyJs_anonymous_897_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'fround', '$export', 'exports', 'module', 'scale']) var.put('$export', var.get('require')(Js('./_export'))) var.put('scale', var.get('require')(Js('./_math-scale'))) var.put('fround', var.get('require')(Js('./_math-fround'))) @Js def PyJs_fscale_898_(x, inLow, inHigh, outLow, outHigh, this, arguments, var=var): var = Scope({'x':x, 'inLow':inLow, 'inHigh':inHigh, 'outLow':outLow, 'outHigh':outHigh, 'this':this, 'arguments':arguments, 'fscale':PyJs_fscale_898_}, var) var.registers(['outLow', 'x', 'inLow', 'inHigh', 'outHigh']) return var.get('fround')(var.get('scale')(var.get('x'), var.get('inLow'), var.get('inHigh'), var.get('outLow'), var.get('outHigh'))) PyJs_fscale_898_._set_name('fscale') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'fscale':PyJs_fscale_898_})) PyJs_anonymous_897_._set_name('anonymous') @Js def PyJs_anonymous_899_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) @Js def PyJs_iaddh_900_(x0, x1, y0, y1, this, arguments, var=var): var = Scope({'x0':x0, 'x1':x1, 'y0':y0, 'y1':y1, 'this':this, 'arguments':arguments, 'iaddh':PyJs_iaddh_900_}, var) var.registers(['x0', 'x1', 'y1', '$x0', '$y0', '$x1', 'y0']) var.put('$x0', PyJsBshift(var.get('x0'),Js(0.0))) var.put('$x1', PyJsBshift(var.get('x1'),Js(0.0))) var.put('$y0', PyJsBshift(var.get('y0'),Js(0.0))) return (((var.get('$x1')+PyJsBshift(var.get('y1'),Js(0.0)))+PyJsBshift(((var.get('$x0')&var.get('$y0'))|((var.get('$x0')|var.get('$y0'))&(~PyJsBshift((var.get('$x0')+var.get('$y0')),Js(0.0))))),Js(31.0)))|Js(0.0)) PyJs_iaddh_900_._set_name('iaddh') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'iaddh':PyJs_iaddh_900_})) PyJs_anonymous_899_._set_name('anonymous') @Js def PyJs_anonymous_901_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) @Js def PyJs_imulh_902_(u, v, this, arguments, var=var): var = Scope({'u':u, 'v':v, 'this':this, 'arguments':arguments, 'imulh':PyJs_imulh_902_}, var) var.registers(['$v', 'v0', 'u', 't', 'u0', 'UINT16', 'u1', '$u', 'v1', 'v']) var.put('UINT16', Js(65535)) var.put('$u', (+var.get('u'))) var.put('$v', (+var.get('v'))) var.put('u0', (var.get('$u')&var.get('UINT16'))) var.put('v0', (var.get('$v')&var.get('UINT16'))) var.put('u1', (var.get('$u')>>Js(16.0))) var.put('v1', (var.get('$v')>>Js(16.0))) var.put('t', (PyJsBshift((var.get('u1')*var.get('v0')),Js(0.0))+PyJsBshift((var.get('u0')*var.get('v0')),Js(16.0)))) return (((var.get('u1')*var.get('v1'))+(var.get('t')>>Js(16.0)))+((PyJsBshift((var.get('u0')*var.get('v1')),Js(0.0))+(var.get('t')&var.get('UINT16')))>>Js(16.0))) PyJs_imulh_902_._set_name('imulh') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'imulh':PyJs_imulh_902_})) PyJs_anonymous_901_._set_name('anonymous') @Js def PyJs_anonymous_903_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) @Js def PyJs_isubh_904_(x0, x1, y0, y1, this, arguments, var=var): var = Scope({'x0':x0, 'x1':x1, 'y0':y0, 'y1':y1, 'this':this, 'arguments':arguments, 'isubh':PyJs_isubh_904_}, var) var.registers(['x0', 'x1', 'y1', '$x0', '$y0', '$x1', 'y0']) var.put('$x0', PyJsBshift(var.get('x0'),Js(0.0))) var.put('$x1', PyJsBshift(var.get('x1'),Js(0.0))) var.put('$y0', PyJsBshift(var.get('y0'),Js(0.0))) return (((var.get('$x1')-PyJsBshift(var.get('y1'),Js(0.0)))-PyJsBshift((((~var.get('$x0'))&var.get('$y0'))|((~(var.get('$x0')^var.get('$y0')))&PyJsBshift((var.get('$x0')-var.get('$y0')),Js(0.0)))),Js(31.0)))|Js(0.0)) PyJs_isubh_904_._set_name('isubh') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'isubh':PyJs_isubh_904_})) PyJs_anonymous_903_._set_name('anonymous') @Js def PyJs_anonymous_905_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'RAD_PER_DEG':(Js(180.0)/var.get('Math').get('PI'))})) PyJs_anonymous_905_._set_name('anonymous') @Js def PyJs_anonymous_906_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', 'DEG_PER_RAD']) var.put('$export', var.get('require')(Js('./_export'))) var.put('DEG_PER_RAD', (var.get('Math').get('PI')/Js(180.0))) @Js def PyJs_radians_907_(degrees, this, arguments, var=var): var = Scope({'degrees':degrees, 'this':this, 'arguments':arguments, 'radians':PyJs_radians_907_}, var) var.registers(['degrees']) return (var.get('degrees')*var.get('DEG_PER_RAD')) PyJs_radians_907_._set_name('radians') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'radians':PyJs_radians_907_})) PyJs_anonymous_906_._set_name('anonymous') @Js def PyJs_anonymous_908_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'scale':var.get('require')(Js('./_math-scale'))})) PyJs_anonymous_908_._set_name('anonymous') @Js def PyJs_anonymous_909_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) @Js def PyJs_signbit_910_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'signbit':PyJs_signbit_910_}, var) var.registers(['x']) return (var.get('x') if (var.put('x', (+var.get('x')))!=var.get('x')) else (((Js(1.0)/var.get('x'))==var.get('Infinity')) if (var.get('x')==Js(0.0)) else (var.get('x')>Js(0.0)))) PyJs_signbit_910_._set_name('signbit') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'signbit':PyJs_signbit_910_})) PyJs_anonymous_909_._set_name('anonymous') @Js def PyJs_anonymous_911_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) @Js def PyJs_umulh_912_(u, v, this, arguments, var=var): var = Scope({'u':u, 'v':v, 'this':this, 'arguments':arguments, 'umulh':PyJs_umulh_912_}, var) var.registers(['$v', 'v0', 'u', 't', 'u0', 'UINT16', 'u1', '$u', 'v1', 'v']) var.put('UINT16', Js(65535)) var.put('$u', (+var.get('u'))) var.put('$v', (+var.get('v'))) var.put('u0', (var.get('$u')&var.get('UINT16'))) var.put('v0', (var.get('$v')&var.get('UINT16'))) var.put('u1', PyJsBshift(var.get('$u'),Js(16.0))) var.put('v1', PyJsBshift(var.get('$v'),Js(16.0))) var.put('t', (PyJsBshift((var.get('u1')*var.get('v0')),Js(0.0))+PyJsBshift((var.get('u0')*var.get('v0')),Js(16.0)))) return (((var.get('u1')*var.get('v1'))+PyJsBshift(var.get('t'),Js(16.0)))+PyJsBshift((PyJsBshift((var.get('u0')*var.get('v1')),Js(0.0))+(var.get('t')&var.get('UINT16'))),Js(16.0))) PyJs_umulh_912_._set_name('umulh') var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'umulh':PyJs_umulh_912_})) PyJs_anonymous_911_._set_name('anonymous') @Js def PyJs_anonymous_913_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', '$defineProperty', 'toObject', '$export', 'exports', 'module']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('$defineProperty', var.get('require')(Js('./_object-dp'))) @Js def PyJs___defineGetter___914_(P, getter, this, arguments, var=var): var = Scope({'P':P, 'getter':getter, 'this':this, 'arguments':arguments, '__defineGetter__':PyJs___defineGetter___914_}, var) var.registers(['getter', 'P']) var.get('$defineProperty').callprop('f', var.get('toObject')(var.get(u"this")), var.get('P'), Js({'get':var.get('aFunction')(var.get('getter')),'enumerable':Js(True),'configurable':Js(True)})) PyJs___defineGetter___914_._set_name('__defineGetter__') (var.get('require')(Js('./_descriptors')) and var.get('$export')((var.get('$export').get('P')+var.get('require')(Js('./_object-forced-pam'))), Js('Object'), Js({'__defineGetter__':PyJs___defineGetter___914_}))) PyJs_anonymous_913_._set_name('anonymous') @Js def PyJs_anonymous_915_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['aFunction', 'require', '$defineProperty', 'toObject', '$export', 'exports', 'module']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('$defineProperty', var.get('require')(Js('./_object-dp'))) @Js def PyJs___defineSetter___916_(P, setter, this, arguments, var=var): var = Scope({'P':P, 'setter':setter, 'this':this, 'arguments':arguments, '__defineSetter__':PyJs___defineSetter___916_}, var) var.registers(['setter', 'P']) var.get('$defineProperty').callprop('f', var.get('toObject')(var.get(u"this")), var.get('P'), Js({'set':var.get('aFunction')(var.get('setter')),'enumerable':Js(True),'configurable':Js(True)})) PyJs___defineSetter___916_._set_name('__defineSetter__') (var.get('require')(Js('./_descriptors')) and var.get('$export')((var.get('$export').get('P')+var.get('require')(Js('./_object-forced-pam'))), Js('Object'), Js({'__defineSetter__':PyJs___defineSetter___916_}))) PyJs_anonymous_915_._set_name('anonymous') @Js def PyJs_anonymous_917_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['$entries', 'require', '$export', 'exports', 'module']) var.put('$export', var.get('require')(Js('./_export'))) var.put('$entries', var.get('require')(Js('./_object-to-array'))(Js(True))) @Js def PyJs_entries_918_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'entries':PyJs_entries_918_}, var) var.registers(['it']) return var.get('$entries')(var.get('it')) PyJs_entries_918_._set_name('entries') var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'entries':PyJs_entries_918_})) PyJs_anonymous_917_._set_name('anonymous') @Js def PyJs_anonymous_919_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toIObject', 'gOPD', 'ownKeys', '$export', 'exports', 'module', 'createProperty']) var.put('$export', var.get('require')(Js('./_export'))) var.put('ownKeys', var.get('require')(Js('./_own-keys'))) var.put('toIObject', var.get('require')(Js('./_to-iobject'))) var.put('gOPD', var.get('require')(Js('./_object-gopd'))) var.put('createProperty', var.get('require')(Js('./_create-property'))) @Js def PyJs_getOwnPropertyDescriptors_920_(object, this, arguments, var=var): var = Scope({'object':object, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptors':PyJs_getOwnPropertyDescriptors_920_}, var) var.registers(['getDesc', 'object', 'i', 'desc', 'O', 'result', 'key', 'keys']) var.put('O', var.get('toIObject')(var.get('object'))) var.put('getDesc', var.get('gOPD').get('f')) var.put('keys', var.get('ownKeys')(var.get('O'))) var.put('result', Js({})) var.put('i', Js(0.0)) pass while (var.get('keys').get('length')>var.get('i')): var.put('desc', var.get('getDesc')(var.get('O'), var.put('key', var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))))) if PyJsStrictNeq(var.get('desc'),var.get('undefined')): var.get('createProperty')(var.get('result'), var.get('key'), var.get('desc')) return var.get('result') PyJs_getOwnPropertyDescriptors_920_._set_name('getOwnPropertyDescriptors') var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'getOwnPropertyDescriptors':PyJs_getOwnPropertyDescriptors_920_})) PyJs_anonymous_919_._set_name('anonymous') @Js def PyJs_anonymous_921_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toPrimitive', 'toObject', '$export', 'exports', 'module', 'getPrototypeOf', 'getOwnPropertyDescriptor']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('toPrimitive', var.get('require')(Js('./_to-primitive'))) var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo'))) var.put('getOwnPropertyDescriptor', var.get('require')(Js('./_object-gopd')).get('f')) @Js def PyJs___lookupGetter___922_(P, this, arguments, var=var): var = Scope({'P':P, 'this':this, 'arguments':arguments, '__lookupGetter__':PyJs___lookupGetter___922_}, var) var.registers(['O', 'K', 'D', 'P']) var.put('O', var.get('toObject')(var.get(u"this"))) var.put('K', var.get('toPrimitive')(var.get('P'), Js(True))) pass while 1: if var.put('D', var.get('getOwnPropertyDescriptor')(var.get('O'), var.get('K'))): return var.get('D').get('get') if not var.put('O', var.get('getPrototypeOf')(var.get('O'))): break PyJs___lookupGetter___922_._set_name('__lookupGetter__') (var.get('require')(Js('./_descriptors')) and var.get('$export')((var.get('$export').get('P')+var.get('require')(Js('./_object-forced-pam'))), Js('Object'), Js({'__lookupGetter__':PyJs___lookupGetter___922_}))) PyJs_anonymous_921_._set_name('anonymous') @Js def PyJs_anonymous_923_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'toPrimitive', 'toObject', '$export', 'exports', 'module', 'getPrototypeOf', 'getOwnPropertyDescriptor']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('toObject', var.get('require')(Js('./_to-object'))) var.put('toPrimitive', var.get('require')(Js('./_to-primitive'))) var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo'))) var.put('getOwnPropertyDescriptor', var.get('require')(Js('./_object-gopd')).get('f')) @Js def PyJs___lookupSetter___924_(P, this, arguments, var=var): var = Scope({'P':P, 'this':this, 'arguments':arguments, '__lookupSetter__':PyJs___lookupSetter___924_}, var) var.registers(['O', 'K', 'D', 'P']) var.put('O', var.get('toObject')(var.get(u"this"))) var.put('K', var.get('toPrimitive')(var.get('P'), Js(True))) pass while 1: if var.put('D', var.get('getOwnPropertyDescriptor')(var.get('O'), var.get('K'))): return var.get('D').get('set') if not var.put('O', var.get('getPrototypeOf')(var.get('O'))): break PyJs___lookupSetter___924_._set_name('__lookupSetter__') (var.get('require')(Js('./_descriptors')) and var.get('$export')((var.get('$export').get('P')+var.get('require')(Js('./_object-forced-pam'))), Js('Object'), Js({'__lookupSetter__':PyJs___lookupSetter___924_}))) PyJs_anonymous_923_._set_name('anonymous') @Js def PyJs_anonymous_925_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', '$values']) var.put('$export', var.get('require')(Js('./_export'))) var.put('$values', var.get('require')(Js('./_object-to-array'))(Js(False))) @Js def PyJs_values_926_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments, 'values':PyJs_values_926_}, var) var.registers(['it']) return var.get('$values')(var.get('it')) PyJs_values_926_._set_name('values') var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'values':PyJs_values_926_})) PyJs_anonymous_925_._set_name('anonymous') @Js def PyJs_anonymous_927_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['hide', 'closeSubscription', '$Observable', 'Subscription', 'subscriptionClosed', 'OBSERVABLE', 'RETURN', 'getMethod', 'require', 'module', 'microtask', 'cleanupSubscription', 'global', 'aFunction', 'core', 'redefineAll', 'anInstance', 'SubscriptionObserver', '$export', 'exports', 'forOf', 'anObject']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('global', var.get('require')(Js('./_global'))) var.put('core', var.get('require')(Js('./_core'))) var.put('microtask', var.get('require')(Js('./_microtask'))()) var.put('OBSERVABLE', var.get('require')(Js('./_wks'))(Js('observable'))) var.put('aFunction', var.get('require')(Js('./_a-function'))) var.put('anObject', var.get('require')(Js('./_an-object'))) var.put('anInstance', var.get('require')(Js('./_an-instance'))) var.put('redefineAll', var.get('require')(Js('./_redefine-all'))) var.put('hide', var.get('require')(Js('./_hide'))) var.put('forOf', var.get('require')(Js('./_for-of'))) var.put('RETURN', var.get('forOf').get('RETURN')) @Js def PyJs_getMethod_928_(fn, this, arguments, var=var): var = Scope({'fn':fn, 'this':this, 'arguments':arguments, 'getMethod':PyJs_getMethod_928_}, var) var.registers(['fn']) return (var.get('undefined') if (var.get('fn')==var.get(u"null")) else var.get('aFunction')(var.get('fn'))) PyJs_getMethod_928_._set_name('getMethod') var.put('getMethod', PyJs_getMethod_928_) @Js def PyJs_cleanupSubscription_929_(subscription, this, arguments, var=var): var = Scope({'subscription':subscription, 'this':this, 'arguments':arguments, 'cleanupSubscription':PyJs_cleanupSubscription_929_}, var) var.registers(['cleanup', 'subscription']) var.put('cleanup', var.get('subscription').get('_c')) if var.get('cleanup'): var.get('subscription').put('_c', var.get('undefined')) var.get('cleanup')() PyJs_cleanupSubscription_929_._set_name('cleanupSubscription') var.put('cleanupSubscription', PyJs_cleanupSubscription_929_) @Js def PyJs_subscriptionClosed_930_(subscription, this, arguments, var=var): var = Scope({'subscription':subscription, 'this':this, 'arguments':arguments, 'subscriptionClosed':PyJs_subscriptionClosed_930_}, var) var.registers(['subscription']) return PyJsStrictEq(var.get('subscription').get('_o'),var.get('undefined')) PyJs_subscriptionClosed_930_._set_name('subscriptionClosed') var.put('subscriptionClosed', PyJs_subscriptionClosed_930_) @Js def PyJs_closeSubscription_931_(subscription, this, arguments, var=var): var = Scope({'subscription':subscription, 'this':this, 'arguments':arguments, 'closeSubscription':PyJs_closeSubscription_931_}, var) var.registers(['subscription']) if var.get('subscriptionClosed')(var.get('subscription')).neg(): var.get('subscription').put('_o', var.get('undefined')) var.get('cleanupSubscription')(var.get('subscription')) PyJs_closeSubscription_931_._set_name('closeSubscription') var.put('closeSubscription', PyJs_closeSubscription_931_) @Js def PyJs_Subscription_932_(observer, subscriber, this, arguments, var=var): var = Scope({'observer':observer, 'subscriber':subscriber, 'this':this, 'arguments':arguments, 'Subscription':PyJs_Subscription_932_}, var) var.registers(['subscriber', 'cleanup', 'subscription', 'observer']) var.get('anObject')(var.get('observer')) var.get(u"this").put('_c', var.get('undefined')) var.get(u"this").put('_o', var.get('observer')) var.put('observer', var.get('SubscriptionObserver').create(var.get(u"this"))) try: var.put('cleanup', var.get('subscriber')(var.get('observer'))) var.put('subscription', var.get('cleanup')) if (var.get('cleanup')!=var.get(u"null")): if PyJsStrictEq(var.get('cleanup').get('unsubscribe').typeof(),Js('function')): @Js def PyJs_cleanup_933_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'cleanup':PyJs_cleanup_933_}, var) var.registers([]) var.get('subscription').callprop('unsubscribe') PyJs_cleanup_933_._set_name('cleanup') var.put('cleanup', PyJs_cleanup_933_) else: var.get('aFunction')(var.get('cleanup')) var.get(u"this").put('_c', var.get('cleanup')) except PyJsException as PyJsTempException: PyJsHolder_65_48647747 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: var.get('observer').callprop('error', var.get('e')) return var.get('undefined') finally: if PyJsHolder_65_48647747 is not None: var.own['e'] = PyJsHolder_65_48647747 else: del var.own['e'] del PyJsHolder_65_48647747 if var.get('subscriptionClosed')(var.get(u"this")): var.get('cleanupSubscription')(var.get(u"this")) PyJs_Subscription_932_._set_name('Subscription') var.put('Subscription', PyJs_Subscription_932_) @Js def PyJs_unsubscribe_934_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'unsubscribe':PyJs_unsubscribe_934_}, var) var.registers([]) var.get('closeSubscription')(var.get(u"this")) PyJs_unsubscribe_934_._set_name('unsubscribe') var.get('Subscription').put('prototype', var.get('redefineAll')(Js({}), Js({'unsubscribe':PyJs_unsubscribe_934_}))) @Js def PyJs_SubscriptionObserver_935_(subscription, this, arguments, var=var): var = Scope({'subscription':subscription, 'this':this, 'arguments':arguments, 'SubscriptionObserver':PyJs_SubscriptionObserver_935_}, var) var.registers(['subscription']) var.get(u"this").put('_s', var.get('subscription')) PyJs_SubscriptionObserver_935_._set_name('SubscriptionObserver') var.put('SubscriptionObserver', PyJs_SubscriptionObserver_935_) @Js def PyJs_next_936_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'next':PyJs_next_936_}, var) var.registers(['value', 'm', 'subscription', 'observer']) var.put('subscription', var.get(u"this").get('_s')) if var.get('subscriptionClosed')(var.get('subscription')).neg(): var.put('observer', var.get('subscription').get('_o')) try: var.put('m', var.get('getMethod')(var.get('observer').get('next'))) if var.get('m'): return var.get('m').callprop('call', var.get('observer'), var.get('value')) except PyJsException as PyJsTempException: PyJsHolder_65_68534601 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: try: var.get('closeSubscription')(var.get('subscription')) finally: PyJsTempException = JsToPyException(var.get('e')) raise PyJsTempException finally: if PyJsHolder_65_68534601 is not None: var.own['e'] = PyJsHolder_65_68534601 else: del var.own['e'] del PyJsHolder_65_68534601 PyJs_next_936_._set_name('next') @Js def PyJs_error_937_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'error':PyJs_error_937_}, var) var.registers(['value', 'm', 'subscription', 'observer']) var.put('subscription', var.get(u"this").get('_s')) if var.get('subscriptionClosed')(var.get('subscription')): PyJsTempException = JsToPyException(var.get('value')) raise PyJsTempException var.put('observer', var.get('subscription').get('_o')) var.get('subscription').put('_o', var.get('undefined')) try: var.put('m', var.get('getMethod')(var.get('observer').get('error'))) if var.get('m').neg(): PyJsTempException = JsToPyException(var.get('value')) raise PyJsTempException var.put('value', var.get('m').callprop('call', var.get('observer'), var.get('value'))) except PyJsException as PyJsTempException: PyJsHolder_65_70234663 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: try: var.get('cleanupSubscription')(var.get('subscription')) finally: PyJsTempException = JsToPyException(var.get('e')) raise PyJsTempException finally: if PyJsHolder_65_70234663 is not None: var.own['e'] = PyJsHolder_65_70234663 else: del var.own['e'] del PyJsHolder_65_70234663 var.get('cleanupSubscription')(var.get('subscription')) return var.get('value') PyJs_error_937_._set_name('error') @Js def PyJs_complete_938_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'complete':PyJs_complete_938_}, var) var.registers(['value', 'm', 'subscription', 'observer']) var.put('subscription', var.get(u"this").get('_s')) if var.get('subscriptionClosed')(var.get('subscription')).neg(): var.put('observer', var.get('subscription').get('_o')) var.get('subscription').put('_o', var.get('undefined')) try: var.put('m', var.get('getMethod')(var.get('observer').get('complete'))) var.put('value', (var.get('m').callprop('call', var.get('observer'), var.get('value')) if var.get('m') else var.get('undefined'))) except PyJsException as PyJsTempException: PyJsHolder_65_44133141 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: try: var.get('cleanupSubscription')(var.get('subscription')) finally: PyJsTempException = JsToPyException(var.get('e')) raise PyJsTempException finally: if PyJsHolder_65_44133141 is not None: var.own['e'] = PyJsHolder_65_44133141 else: del var.own['e'] del PyJsHolder_65_44133141 var.get('cleanupSubscription')(var.get('subscription')) return var.get('value') PyJs_complete_938_._set_name('complete') var.get('SubscriptionObserver').put('prototype', var.get('redefineAll')(Js({}), Js({'next':PyJs_next_936_,'error':PyJs_error_937_,'complete':PyJs_complete_938_}))) @Js def PyJs_Observable_939_(subscriber, this, arguments, var=var): var = Scope({'subscriber':subscriber, 'this':this, 'arguments':arguments, 'Observable':PyJs_Observable_939_}, var) var.registers(['subscriber']) var.get('anInstance')(var.get(u"this"), var.get('$Observable'), Js('Observable'), Js('_f')).put('_f', var.get('aFunction')(var.get('subscriber'))) PyJs_Observable_939_._set_name('Observable') var.put('$Observable', PyJs_Observable_939_) @Js def PyJs_subscribe_940_(observer, this, arguments, var=var): var = Scope({'observer':observer, 'this':this, 'arguments':arguments, 'subscribe':PyJs_subscribe_940_}, var) var.registers(['observer']) return var.get('Subscription').create(var.get('observer'), var.get(u"this").get('_f')) PyJs_subscribe_940_._set_name('subscribe') @Js def PyJs_forEach_941_(fn, this, arguments, var=var): var = Scope({'fn':fn, 'this':this, 'arguments':arguments, 'forEach':PyJs_forEach_941_}, var) var.registers(['fn', 'that']) var.put('that', var.get(u"this")) @Js def PyJs_anonymous_942_(resolve, reject, this, arguments, var=var): var = Scope({'resolve':resolve, 'reject':reject, 'this':this, 'arguments':arguments}, var) var.registers(['subscription', 'resolve', 'reject']) var.get('aFunction')(var.get('fn')) @Js def PyJs_next_943_(value, this, arguments, var=var): var = Scope({'value':value, 'this':this, 'arguments':arguments, 'next':PyJs_next_943_}, var) var.registers(['value']) try: return var.get('fn')(var.get('value')) except PyJsException as PyJsTempException: PyJsHolder_65_57797942 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: var.get('reject')(var.get('e')) var.get('subscription').callprop('unsubscribe') finally: if PyJsHolder_65_57797942 is not None: var.own['e'] = PyJsHolder_65_57797942 else: del var.own['e'] del PyJsHolder_65_57797942 PyJs_next_943_._set_name('next') var.put('subscription', var.get('that').callprop('subscribe', Js({'next':PyJs_next_943_,'error':var.get('reject'),'complete':var.get('resolve')}))) PyJs_anonymous_942_._set_name('anonymous') return (var.get('core').get('Promise') or var.get('global').get('Promise')).create(PyJs_anonymous_942_) PyJs_forEach_941_._set_name('forEach') var.get('redefineAll')(var.get('$Observable').get('prototype'), Js({'subscribe':PyJs_subscribe_940_,'forEach':PyJs_forEach_941_})) @Js def PyJs_InlineNonPyName_944_(x, this, arguments, var=var): var = Scope({'x':x, 'this':this, 'arguments':arguments, 'from':PyJs_InlineNonPyName_944_}, var) var.registers(['observable', 'C', 'x', 'method']) var.put('C', (var.get(u"this") if PyJsStrictEq(var.get(u"this",throw=False).typeof(),Js('function')) else var.get('$Observable'))) var.put('method', var.get('getMethod')(var.get('anObject')(var.get('x')).get(var.get('OBSERVABLE')))) if var.get('method'): var.put('observable', var.get('anObject')(var.get('method').callprop('call', var.get('x')))) @Js def PyJs_anonymous_945_(observer, this, arguments, var=var): var = Scope({'observer':observer, 'this':this, 'arguments':arguments}, var) var.registers(['observer']) return var.get('observable').callprop('subscribe', var.get('observer')) PyJs_anonymous_945_._set_name('anonymous') return (var.get('observable') if PyJsStrictEq(var.get('observable').get('constructor'),var.get('C')) else var.get('C').create(PyJs_anonymous_945_)) @Js def PyJs_anonymous_946_(observer, this, arguments, var=var): var = Scope({'observer':observer, 'this':this, 'arguments':arguments}, var) var.registers(['done', 'observer']) var.put('done', Js(False)) @Js def PyJs_anonymous_947_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) if var.get('done').neg(): try: @Js def PyJs_anonymous_948_(it, this, arguments, var=var): var = Scope({'it':it, 'this':this, 'arguments':arguments}, var) var.registers(['it']) var.get('observer').callprop('next', var.get('it')) if var.get('done'): return var.get('RETURN') PyJs_anonymous_948_._set_name('anonymous') if PyJsStrictEq(var.get('forOf')(var.get('x'), Js(False), PyJs_anonymous_948_),var.get('RETURN')): return var.get('undefined') except PyJsException as PyJsTempException: PyJsHolder_65_75168871 = var.own.get('e') var.force_own_put('e', PyExceptionToJs(PyJsTempException)) try: if var.get('done'): PyJsTempException = JsToPyException(var.get('e')) raise PyJsTempException var.get('observer').callprop('error', var.get('e')) return var.get('undefined') finally: if PyJsHolder_65_75168871 is not None: var.own['e'] = PyJsHolder_65_75168871 else: del var.own['e'] del PyJsHolder_65_75168871 var.get('observer').callprop('complete') PyJs_anonymous_947_._set_name('anonymous') var.get('microtask')(PyJs_anonymous_947_) @Js def PyJs_anonymous_949_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) var.put('done', Js(True)) PyJs_anonymous_949_._set_name('anonymous') return PyJs_anonymous_949_ PyJs_anonymous_946_._set_name('anonymous') return var.get('C').create(PyJs_anonymous_946_) PyJs_InlineNonPyName_944_._set_name('from') @Js def PyJs_of_950_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'of':PyJs_of_950_}, var) var.registers(['i', 'items', 'l']) #for JS loop var.put('i', Js(0.0)) var.put('l', var.get('arguments').get('length')) var.put('items', var.get('Array').create(var.get('l'))) while (var.get('i')Js(1.0)) else var.get('undefined')), Js(False)) PyJs_padEnd_996_._set_name('padEnd') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('WEBKIT_BUG'))), Js('String'), Js({'padEnd':PyJs_padEnd_996_})) PyJs_anonymous_995_._set_name('anonymous') @Js def PyJs_anonymous_997_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', '$export', 'exports', 'module', 'WEBKIT_BUG', '$pad', 'userAgent']) Js('use strict') var.put('$export', var.get('require')(Js('./_export'))) var.put('$pad', var.get('require')(Js('./_string-pad'))) var.put('userAgent', var.get('require')(Js('./_user-agent'))) var.put('WEBKIT_BUG', JsRegExp('/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//').callprop('test', var.get('userAgent'))) @Js def PyJs_padStart_998_(maxLength, this, arguments, var=var): var = Scope({'maxLength':maxLength, 'this':this, 'arguments':arguments, 'padStart':PyJs_padStart_998_}, var) var.registers(['maxLength']) return var.get('$pad')(var.get(u"this"), var.get('maxLength'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')), Js(True)) PyJs_padStart_998_._set_name('padStart') var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('WEBKIT_BUG'))), Js('String'), Js({'padStart':PyJs_padStart_998_})) PyJs_anonymous_997_._set_name('anonymous') @Js def PyJs_anonymous_999_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_1000_(PyJsArg_247472696d_, this, arguments, var=var): var = Scope({'$trim':PyJsArg_247472696d_, 'this':this, 'arguments':arguments}, var) var.registers(['$trim']) @Js def PyJs_trimLeft_1001_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'trimLeft':PyJs_trimLeft_1001_}, var) var.registers([]) return var.get('$trim')(var.get(u"this"), Js(1.0)) PyJs_trimLeft_1001_._set_name('trimLeft') return PyJs_trimLeft_1001_ PyJs_anonymous_1000_._set_name('anonymous') var.get('require')(Js('./_string-trim'))(Js('trimLeft'), PyJs_anonymous_1000_, Js('trimStart')) PyJs_anonymous_999_._set_name('anonymous') @Js def PyJs_anonymous_1002_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) Js('use strict') @Js def PyJs_anonymous_1003_(PyJsArg_247472696d_, this, arguments, var=var): var = Scope({'$trim':PyJsArg_247472696d_, 'this':this, 'arguments':arguments}, var) var.registers(['$trim']) @Js def PyJs_trimRight_1004_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments, 'trimRight':PyJs_trimRight_1004_}, var) var.registers([]) return var.get('$trim')(var.get(u"this"), Js(2.0)) PyJs_trimRight_1004_._set_name('trimRight') return PyJs_trimRight_1004_ PyJs_anonymous_1003_._set_name('anonymous') var.get('require')(Js('./_string-trim'))(Js('trimRight'), PyJs_anonymous_1003_, Js('trimEnd')) PyJs_anonymous_1002_._set_name('anonymous') @Js def PyJs_anonymous_1005_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('./_wks-define'))(Js('asyncIterator')) PyJs_anonymous_1005_._set_name('anonymous') @Js def PyJs_anonymous_1006_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('./_wks-define'))(Js('observable')) PyJs_anonymous_1006_._set_name('anonymous') @Js def PyJs_anonymous_1007_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', '$export', 'exports']) var.put('$export', var.get('require')(Js('./_export'))) var.get('$export')(var.get('$export').get('S'), Js('System'), Js({'global':var.get('require')(Js('./_global'))})) PyJs_anonymous_1007_._set_name('anonymous') @Js def PyJs_anonymous_1008_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('./_set-collection-from'))(Js('WeakMap')) PyJs_anonymous_1008_._set_name('anonymous') @Js def PyJs_anonymous_1009_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('./_set-collection-of'))(Js('WeakMap')) PyJs_anonymous_1009_._set_name('anonymous') @Js def PyJs_anonymous_1010_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('./_set-collection-from'))(Js('WeakSet')) PyJs_anonymous_1010_._set_name('anonymous') @Js def PyJs_anonymous_1011_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('./_set-collection-of'))(Js('WeakSet')) PyJs_anonymous_1011_._set_name('anonymous') @Js def PyJs_anonymous_1012_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['hide', 'proto', 'collections', 'ITERATOR', 'i', 'Collection', 'key', 'wks', 'ArrayValues', 'TO_STRING_TAG', 'require', 'redefine', 'module', 'DOMIterables', 'explicit', 'NAME', 'global', 'getKeys', 'exports', 'Iterators', '$iterators']) var.put('$iterators', var.get('require')(Js('./es6.array.iterator'))) var.put('getKeys', var.get('require')(Js('./_object-keys'))) var.put('redefine', var.get('require')(Js('./_redefine'))) var.put('global', var.get('require')(Js('./_global'))) var.put('hide', var.get('require')(Js('./_hide'))) var.put('Iterators', var.get('require')(Js('./_iterators'))) var.put('wks', var.get('require')(Js('./_wks'))) var.put('ITERATOR', var.get('wks')(Js('iterator'))) var.put('TO_STRING_TAG', var.get('wks')(Js('toStringTag'))) var.put('ArrayValues', var.get('Iterators').get('Array')) var.put('DOMIterables', Js({'CSSRuleList':Js(True),'CSSStyleDeclaration':Js(False),'CSSValueList':Js(False),'ClientRectList':Js(False),'DOMRectList':Js(False),'DOMStringList':Js(False),'DOMTokenList':Js(True),'DataTransferItemList':Js(False),'FileList':Js(False),'HTMLAllCollection':Js(False),'HTMLCollection':Js(False),'HTMLFormElement':Js(False),'HTMLSelectElement':Js(False),'MediaList':Js(True),'MimeTypeArray':Js(False),'NamedNodeMap':Js(False),'NodeList':Js(True),'PaintRequestList':Js(False),'Plugin':Js(False),'PluginArray':Js(False),'SVGLengthList':Js(False),'SVGNumberList':Js(False),'SVGPathSegList':Js(False),'SVGPointList':Js(False),'SVGStringList':Js(False),'SVGTransformList':Js(False),'SourceBufferList':Js(False),'StyleSheetList':Js(True),'TextTrackCueList':Js(False),'TextTrackList':Js(False),'TouchList':Js(False)})) #for JS loop var.put('collections', var.get('getKeys')(var.get('DOMIterables'))) var.put('i', Js(0.0)) while (var.get('i')Js(2.0))) var.put('args', (var.get('slice').callprop('call', var.get('arguments'), Js(2.0)) if var.get('boundArgs') else Js(False))) @Js def PyJs_anonymous_1017_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers([]) (var.get('fn') if (var.get('fn',throw=False).typeof()==Js('function')) else var.get('Function')(var.get('fn'))).callprop('apply', var.get(u"this"), var.get('args')) PyJs_anonymous_1017_._set_name('anonymous') return var.get('set')((PyJs_anonymous_1017_ if var.get('boundArgs') else var.get('fn')), var.get('time')) PyJs_anonymous_1016_._set_name('anonymous') return PyJs_anonymous_1016_ PyJs_wrap_1015_._set_name('wrap') var.put('wrap', PyJs_wrap_1015_) var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('B'))+(var.get('$export').get('F')*var.get('MSIE'))), Js({'setTimeout':var.get('wrap')(var.get('global').get('setTimeout')),'setInterval':var.get('wrap')(var.get('global').get('setInterval'))})) PyJs_anonymous_1014_._set_name('anonymous') @Js def PyJs_anonymous_1018_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) var.get('require')(Js('./modules/es6.symbol')) var.get('require')(Js('./modules/es6.object.create')) var.get('require')(Js('./modules/es6.object.define-property')) var.get('require')(Js('./modules/es6.object.define-properties')) var.get('require')(Js('./modules/es6.object.get-own-property-descriptor')) var.get('require')(Js('./modules/es6.object.get-prototype-of')) var.get('require')(Js('./modules/es6.object.keys')) var.get('require')(Js('./modules/es6.object.get-own-property-names')) var.get('require')(Js('./modules/es6.object.freeze')) var.get('require')(Js('./modules/es6.object.seal')) var.get('require')(Js('./modules/es6.object.prevent-extensions')) var.get('require')(Js('./modules/es6.object.is-frozen')) var.get('require')(Js('./modules/es6.object.is-sealed')) var.get('require')(Js('./modules/es6.object.is-extensible')) var.get('require')(Js('./modules/es6.object.assign')) var.get('require')(Js('./modules/es6.object.is')) var.get('require')(Js('./modules/es6.object.set-prototype-of')) var.get('require')(Js('./modules/es6.object.to-string')) var.get('require')(Js('./modules/es6.function.bind')) var.get('require')(Js('./modules/es6.function.name')) var.get('require')(Js('./modules/es6.function.has-instance')) var.get('require')(Js('./modules/es6.parse-int')) var.get('require')(Js('./modules/es6.parse-float')) var.get('require')(Js('./modules/es6.number.constructor')) var.get('require')(Js('./modules/es6.number.to-fixed')) var.get('require')(Js('./modules/es6.number.to-precision')) var.get('require')(Js('./modules/es6.number.epsilon')) var.get('require')(Js('./modules/es6.number.is-finite')) var.get('require')(Js('./modules/es6.number.is-integer')) var.get('require')(Js('./modules/es6.number.is-nan')) var.get('require')(Js('./modules/es6.number.is-safe-integer')) var.get('require')(Js('./modules/es6.number.max-safe-integer')) var.get('require')(Js('./modules/es6.number.min-safe-integer')) var.get('require')(Js('./modules/es6.number.parse-float')) var.get('require')(Js('./modules/es6.number.parse-int')) var.get('require')(Js('./modules/es6.math.acosh')) var.get('require')(Js('./modules/es6.math.asinh')) var.get('require')(Js('./modules/es6.math.atanh')) var.get('require')(Js('./modules/es6.math.cbrt')) var.get('require')(Js('./modules/es6.math.clz32')) var.get('require')(Js('./modules/es6.math.cosh')) var.get('require')(Js('./modules/es6.math.expm1')) var.get('require')(Js('./modules/es6.math.fround')) var.get('require')(Js('./modules/es6.math.hypot')) var.get('require')(Js('./modules/es6.math.imul')) var.get('require')(Js('./modules/es6.math.log10')) var.get('require')(Js('./modules/es6.math.log1p')) var.get('require')(Js('./modules/es6.math.log2')) var.get('require')(Js('./modules/es6.math.sign')) var.get('require')(Js('./modules/es6.math.sinh')) var.get('require')(Js('./modules/es6.math.tanh')) var.get('require')(Js('./modules/es6.math.trunc')) var.get('require')(Js('./modules/es6.string.from-code-point')) var.get('require')(Js('./modules/es6.string.raw')) var.get('require')(Js('./modules/es6.string.trim')) var.get('require')(Js('./modules/es6.string.iterator')) var.get('require')(Js('./modules/es6.string.code-point-at')) var.get('require')(Js('./modules/es6.string.ends-with')) var.get('require')(Js('./modules/es6.string.includes')) var.get('require')(Js('./modules/es6.string.repeat')) var.get('require')(Js('./modules/es6.string.starts-with')) var.get('require')(Js('./modules/es6.string.anchor')) var.get('require')(Js('./modules/es6.string.big')) var.get('require')(Js('./modules/es6.string.blink')) var.get('require')(Js('./modules/es6.string.bold')) var.get('require')(Js('./modules/es6.string.fixed')) var.get('require')(Js('./modules/es6.string.fontcolor')) var.get('require')(Js('./modules/es6.string.fontsize')) var.get('require')(Js('./modules/es6.string.italics')) var.get('require')(Js('./modules/es6.string.link')) var.get('require')(Js('./modules/es6.string.small')) var.get('require')(Js('./modules/es6.string.strike')) var.get('require')(Js('./modules/es6.string.sub')) var.get('require')(Js('./modules/es6.string.sup')) var.get('require')(Js('./modules/es6.date.now')) var.get('require')(Js('./modules/es6.date.to-json')) var.get('require')(Js('./modules/es6.date.to-iso-string')) var.get('require')(Js('./modules/es6.date.to-string')) var.get('require')(Js('./modules/es6.date.to-primitive')) var.get('require')(Js('./modules/es6.array.is-array')) var.get('require')(Js('./modules/es6.array.from')) var.get('require')(Js('./modules/es6.array.of')) var.get('require')(Js('./modules/es6.array.join')) var.get('require')(Js('./modules/es6.array.slice')) var.get('require')(Js('./modules/es6.array.sort')) var.get('require')(Js('./modules/es6.array.for-each')) var.get('require')(Js('./modules/es6.array.map')) var.get('require')(Js('./modules/es6.array.filter')) var.get('require')(Js('./modules/es6.array.some')) var.get('require')(Js('./modules/es6.array.every')) var.get('require')(Js('./modules/es6.array.reduce')) var.get('require')(Js('./modules/es6.array.reduce-right')) var.get('require')(Js('./modules/es6.array.index-of')) var.get('require')(Js('./modules/es6.array.last-index-of')) var.get('require')(Js('./modules/es6.array.copy-within')) var.get('require')(Js('./modules/es6.array.fill')) var.get('require')(Js('./modules/es6.array.find')) var.get('require')(Js('./modules/es6.array.find-index')) var.get('require')(Js('./modules/es6.array.species')) var.get('require')(Js('./modules/es6.array.iterator')) var.get('require')(Js('./modules/es6.regexp.constructor')) var.get('require')(Js('./modules/es6.regexp.exec')) var.get('require')(Js('./modules/es6.regexp.to-string')) var.get('require')(Js('./modules/es6.regexp.flags')) var.get('require')(Js('./modules/es6.regexp.match')) var.get('require')(Js('./modules/es6.regexp.replace')) var.get('require')(Js('./modules/es6.regexp.search')) var.get('require')(Js('./modules/es6.regexp.split')) var.get('require')(Js('./modules/es6.promise')) var.get('require')(Js('./modules/es6.map')) var.get('require')(Js('./modules/es6.set')) var.get('require')(Js('./modules/es6.weak-map')) var.get('require')(Js('./modules/es6.weak-set')) var.get('require')(Js('./modules/es6.typed.array-buffer')) var.get('require')(Js('./modules/es6.typed.data-view')) var.get('require')(Js('./modules/es6.typed.int8-array')) var.get('require')(Js('./modules/es6.typed.uint8-array')) var.get('require')(Js('./modules/es6.typed.uint8-clamped-array')) var.get('require')(Js('./modules/es6.typed.int16-array')) var.get('require')(Js('./modules/es6.typed.uint16-array')) var.get('require')(Js('./modules/es6.typed.int32-array')) var.get('require')(Js('./modules/es6.typed.uint32-array')) var.get('require')(Js('./modules/es6.typed.float32-array')) var.get('require')(Js('./modules/es6.typed.float64-array')) var.get('require')(Js('./modules/es6.reflect.apply')) var.get('require')(Js('./modules/es6.reflect.construct')) var.get('require')(Js('./modules/es6.reflect.define-property')) var.get('require')(Js('./modules/es6.reflect.delete-property')) var.get('require')(Js('./modules/es6.reflect.enumerate')) var.get('require')(Js('./modules/es6.reflect.get')) var.get('require')(Js('./modules/es6.reflect.get-own-property-descriptor')) var.get('require')(Js('./modules/es6.reflect.get-prototype-of')) var.get('require')(Js('./modules/es6.reflect.has')) var.get('require')(Js('./modules/es6.reflect.is-extensible')) var.get('require')(Js('./modules/es6.reflect.own-keys')) var.get('require')(Js('./modules/es6.reflect.prevent-extensions')) var.get('require')(Js('./modules/es6.reflect.set')) var.get('require')(Js('./modules/es6.reflect.set-prototype-of')) var.get('require')(Js('./modules/es7.array.includes')) var.get('require')(Js('./modules/es7.array.flat-map')) var.get('require')(Js('./modules/es7.array.flatten')) var.get('require')(Js('./modules/es7.string.at')) var.get('require')(Js('./modules/es7.string.pad-start')) var.get('require')(Js('./modules/es7.string.pad-end')) var.get('require')(Js('./modules/es7.string.trim-left')) var.get('require')(Js('./modules/es7.string.trim-right')) var.get('require')(Js('./modules/es7.string.match-all')) var.get('require')(Js('./modules/es7.symbol.async-iterator')) var.get('require')(Js('./modules/es7.symbol.observable')) var.get('require')(Js('./modules/es7.object.get-own-property-descriptors')) var.get('require')(Js('./modules/es7.object.values')) var.get('require')(Js('./modules/es7.object.entries')) var.get('require')(Js('./modules/es7.object.define-getter')) var.get('require')(Js('./modules/es7.object.define-setter')) var.get('require')(Js('./modules/es7.object.lookup-getter')) var.get('require')(Js('./modules/es7.object.lookup-setter')) var.get('require')(Js('./modules/es7.map.to-json')) var.get('require')(Js('./modules/es7.set.to-json')) var.get('require')(Js('./modules/es7.map.of')) var.get('require')(Js('./modules/es7.set.of')) var.get('require')(Js('./modules/es7.weak-map.of')) var.get('require')(Js('./modules/es7.weak-set.of')) var.get('require')(Js('./modules/es7.map.from')) var.get('require')(Js('./modules/es7.set.from')) var.get('require')(Js('./modules/es7.weak-map.from')) var.get('require')(Js('./modules/es7.weak-set.from')) var.get('require')(Js('./modules/es7.global')) var.get('require')(Js('./modules/es7.system.global')) var.get('require')(Js('./modules/es7.error.is-error')) var.get('require')(Js('./modules/es7.math.clamp')) var.get('require')(Js('./modules/es7.math.deg-per-rad')) var.get('require')(Js('./modules/es7.math.degrees')) var.get('require')(Js('./modules/es7.math.fscale')) var.get('require')(Js('./modules/es7.math.iaddh')) var.get('require')(Js('./modules/es7.math.isubh')) var.get('require')(Js('./modules/es7.math.imulh')) var.get('require')(Js('./modules/es7.math.rad-per-deg')) var.get('require')(Js('./modules/es7.math.radians')) var.get('require')(Js('./modules/es7.math.scale')) var.get('require')(Js('./modules/es7.math.umulh')) var.get('require')(Js('./modules/es7.math.signbit')) var.get('require')(Js('./modules/es7.promise.finally')) var.get('require')(Js('./modules/es7.promise.try')) var.get('require')(Js('./modules/es7.reflect.define-metadata')) var.get('require')(Js('./modules/es7.reflect.delete-metadata')) var.get('require')(Js('./modules/es7.reflect.get-metadata')) var.get('require')(Js('./modules/es7.reflect.get-metadata-keys')) var.get('require')(Js('./modules/es7.reflect.get-own-metadata')) var.get('require')(Js('./modules/es7.reflect.get-own-metadata-keys')) var.get('require')(Js('./modules/es7.reflect.has-metadata')) var.get('require')(Js('./modules/es7.reflect.has-own-metadata')) var.get('require')(Js('./modules/es7.reflect.metadata')) var.get('require')(Js('./modules/es7.asap')) var.get('require')(Js('./modules/es7.observable')) var.get('require')(Js('./modules/web.timers')) var.get('require')(Js('./modules/web.immediate')) var.get('require')(Js('./modules/web.dom.iterable')) var.get('module').put('exports', var.get('require')(Js('./modules/_core'))) PyJs_anonymous_1018_._set_name('anonymous') @Js def PyJs_anonymous_1019_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) pass @Js def PyJs_anonymous_1020_(CryptoJS, this, arguments, var=var): var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var) var.registers(['CryptoJS']) @Js def PyJs_anonymous_1021_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['C_lib', 'C', 'RCON', 'C_algo', 'AES', 'SUB_MIX_2', 'BlockCipher', 'SUB_MIX_3', 'INV_SUB_MIX_1', 'INV_SBOX', 'INV_SUB_MIX_2', 'INV_SUB_MIX_3', 'INV_SUB_MIX_0', 'SBOX', 'SUB_MIX_1', 'SUB_MIX_0']) var.put('C', var.get('CryptoJS')) var.put('C_lib', var.get('C').get('lib')) var.put('BlockCipher', var.get('C_lib').get('BlockCipher')) var.put('C_algo', var.get('C').get('algo')) var.put('SBOX', Js([])) var.put('INV_SBOX', Js([])) var.put('SUB_MIX_0', Js([])) var.put('SUB_MIX_1', Js([])) var.put('SUB_MIX_2', Js([])) var.put('SUB_MIX_3', Js([])) var.put('INV_SUB_MIX_0', Js([])) var.put('INV_SUB_MIX_1', Js([])) var.put('INV_SUB_MIX_2', Js([])) var.put('INV_SUB_MIX_3', Js([])) @Js def PyJs_anonymous_1022_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['xi', 'd', 'x', 'i', 't', 'sx', 'x2', 'x8', 'x4']) var.put('d', Js([])) #for JS loop var.put('i', Js(0.0)) while (var.get('i')Js(6.0)) and ((var.get('ksRow')%var.get('keySize'))==Js(4.0))): var.put('t', ((((var.get('SBOX').get(PyJsBshift(var.get('t'),Js(24.0)))<>Js(16)))&var.get('mask'))) var.put('m_w', (((Js(18000)*(var.get('m_w')&Js(65535)))+(var.get('m_w')>>Js(16)))&var.get('mask'))) var.put('result', (((var.get('m_z')<Js(0.5)) else (-Js(1.0)))) PyJs_anonymous_1085_._set_name('anonymous') return PyJs_anonymous_1085_ PyJs_r_1084_._set_name('r') var.put('r', PyJs_r_1084_) #for JS loop var.put('i', Js(0.0)) while (var.get('i')var.get('hasherBlockSizeBytes')): var.put('key', var.get('hasher').callprop('finalize', var.get('key'))) var.get('key').callprop('clamp') var.put('oKey', var.get(u"this").put('_oKey', var.get('key').callprop('clone'))) var.put('iKey', var.get(u"this").put('_iKey', var.get('key').callprop('clone'))) var.put('oKeyWords', var.get('oKey').get('words')) var.put('iKeyWords', var.get('iKey').get('words')) #for JS loop var.put('i', Js(0.0)) while (var.get('i')>Js(24.0))&Js(255)),Js(255)): var.put('b1', ((var.get('word')>>Js(16.0))&Js(255))) var.put('b2', ((var.get('word')>>Js(8.0))&Js(255))) var.put('b3', (var.get('word')&Js(255))) if PyJsStrictEq(var.get('b1'),Js(255)): var.put('b1', Js(0.0)) if PyJsStrictEq(var.get('b2'),Js(255)): var.put('b2', Js(0.0)) if PyJsStrictEq(var.get('b3'),Js(255)): var.put('b3', Js(0.0)) else: var.put('b3',Js(var.get('b3').to_number())+Js(1)) else: var.put('b2',Js(var.get('b2').to_number())+Js(1)) else: var.put('b1',Js(var.get('b1').to_number())+Js(1)) var.put('word', Js(0.0)) var.put('word', (var.get('b1')<Js(0.0)): try: var.get('generateKeystreamWord').callprop('call', var.get(u"this")) finally: (var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1)) PyJs__doReset_1240_._set_name('_doReset') var.put('RC4Drop', var.get('C_algo').put('RC4Drop', var.get('RC4').callprop('extend', Js({'cfg':var.get('RC4').get('cfg').callprop('extend', Js({'drop':Js(192.0)})),'_doReset':PyJs__doReset_1240_})))) var.get('C').put('RC4Drop', var.get('StreamCipher').callprop('_createHelper', var.get('RC4Drop'))) PyJs_anonymous_1237_._set_name('anonymous') PyJs_anonymous_1237_() return var.get('CryptoJS').get('RC4') PyJs_anonymous_1236_._set_name('anonymous') @Js def PyJs_anonymous_1241_(root, factory, undef, this, arguments, var=var): var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var) var.registers(['undef', 'root', 'factory']) if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')): var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./enc-base64')), var.get('require')(Js('./md5')), var.get('require')(Js('./evpkdf')), var.get('require')(Js('./cipher-core'))))) else: if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')): var.get('define')(Js([Js('./core'), Js('./enc-base64'), Js('./md5'), Js('./evpkdf'), Js('./cipher-core')]), var.get('factory')) else: var.get('factory')(var.get('root').get('CryptoJS')) PyJs_anonymous_1241_._set_name('anonymous') PyJs_anonymous_1241_(var.get(u"this"), PyJs_anonymous_1236_) PyJs_anonymous_1235_._set_name('anonymous') @Js def PyJs_anonymous_1242_(require, module, exports, this, arguments, var=var): var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var) var.registers(['require', 'module', 'exports']) pass @Js def PyJs_anonymous_1243_(CryptoJS, this, arguments, var=var): var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var) var.registers(['CryptoJS']) @Js def PyJs_anonymous_1244_(Math, this, arguments, var=var): var = Scope({'Math':Math, 'this':this, 'arguments':arguments}, var) var.registers(['f3', 'C', 'C_algo', '_sl', 'f1', 'f4', 'RIPEMD160', 'f2', 'WordArray', 'f5', '_sr', 'C_lib', '_zl', '_zr', 'Math', '_hl', 'Hasher', 'rotl', '_hr']) @Js def PyJsHoisted_f1_(x, y, z, this, arguments, var=var): var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var) var.registers(['z', 'x', 'y']) return ((var.get('x')^var.get('y'))^var.get('z')) PyJsHoisted_f1_.func_name = 'f1' var.put('f1', PyJsHoisted_f1_) @Js def PyJsHoisted_f2_(x, y, z, this, arguments, var=var): var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var) var.registers(['z', 'x', 'y']) return ((var.get('x')&var.get('y'))|((~var.get('x'))&var.get('z'))) PyJsHoisted_f2_.func_name = 'f2' var.put('f2', PyJsHoisted_f2_) @Js def PyJsHoisted_f3_(x, y, z, this, arguments, var=var): var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var) var.registers(['z', 'x', 'y']) return ((var.get('x')|(~var.get('y')))^var.get('z')) PyJsHoisted_f3_.func_name = 'f3' var.put('f3', PyJsHoisted_f3_) @Js def PyJsHoisted_f4_(x, y, z, this, arguments, var=var): var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var) var.registers(['z', 'x', 'y']) return ((var.get('x')&var.get('z'))|(var.get('y')&(~var.get('z')))) PyJsHoisted_f4_.func_name = 'f4' var.put('f4', PyJsHoisted_f4_) @Js def PyJsHoisted_f5_(x, y, z, this, arguments, var=var): var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var) var.registers(['z', 'x', 'y']) return (var.get('x')^(var.get('y')|(~var.get('z')))) PyJsHoisted_f5_.func_name = 'f5' var.put('f5', PyJsHoisted_f5_) @Js def PyJsHoisted_rotl_(x, n, this, arguments, var=var): var = Scope({'x':x, 'n':n, 'this':this, 'arguments':arguments}, var) var.registers(['x', 'n']) return ((var.get('x')<=Js(0.0)): try: var.put('entry', var.get(u"this").get('tryEntries').get(var.get('i'))) var.put('record', var.get('entry').get('completion')) if PyJsStrictEq(var.get('entry').get('tryLoc'),Js('root')): return var.get('handle')(Js('end')) if (var.get('entry').get('tryLoc')<=var.get(u"this").get('prev')): var.put('hasCatch', var.get('hasOwn').callprop('call', var.get('entry'), Js('catchLoc'))) var.put('hasFinally', var.get('hasOwn').callprop('call', var.get('entry'), Js('finallyLoc'))) if (var.get('hasCatch') and var.get('hasFinally')): if (var.get(u"this").get('prev')=Js(0.0)): try: var.put('entry', var.get(u"this").get('tryEntries').get(var.get('i'))) if (((var.get('entry').get('tryLoc')<=var.get(u"this").get('prev')) and var.get('hasOwn').callprop('call', var.get('entry'), Js('finallyLoc'))) and (var.get(u"this").get('prev')=Js(0.0)): try: var.put('entry', var.get(u"this").get('tryEntries').get(var.get('i'))) if PyJsStrictEq(var.get('entry').get('finallyLoc'),var.get('finallyLoc')): var.get(u"this").callprop('complete', var.get('entry').get('completion'), var.get('entry').get('afterLoc')) var.get('resetTryEntry')(var.get('entry')) return var.get('ContinueSentinel') finally: var.put('i',Js(var.get('i').to_number())-Js(1)) PyJs_finish_1352_._set_name('finish') @Js def PyJs__catch_1353_(tryLoc, this, arguments, var=var): var = Scope({'tryLoc':tryLoc, 'this':this, 'arguments':arguments, '_catch':PyJs__catch_1353_}, var) var.registers(['record', 'tryLoc', 'i', 'thrown', 'entry']) #for JS loop var.put('i', (var.get(u"this").get('tryEntries').get('length')-Js(1.0))) while (var.get('i')>=Js(0.0)): try: var.put('entry', var.get(u"this").get('tryEntries').get(var.get('i'))) if PyJsStrictEq(var.get('entry').get('tryLoc'),var.get('tryLoc')): var.put('record', var.get('entry').get('completion')) if PyJsStrictEq(var.get('record').get('type'),Js('throw')): var.put('thrown', var.get('record').get('arg')) var.get('resetTryEntry')(var.get('entry')) return var.get('thrown') finally: var.put('i',Js(var.get('i').to_number())-Js(1)) PyJsTempException = JsToPyException(var.get('Error').create(Js('illegal catch attempt'))) raise PyJsTempException PyJs__catch_1353_._set_name('_catch') @Js def PyJs_delegateYield_1354_(iterable, resultName, nextLoc, this, arguments, var=var): var = Scope({'iterable':iterable, 'resultName':resultName, 'nextLoc':nextLoc, 'this':this, 'arguments':arguments, 'delegateYield':PyJs_delegateYield_1354_}, var) var.registers(['resultName', 'iterable', 'nextLoc']) var.get(u"this").put('delegate', Js({'iterator':var.get('values')(var.get('iterable')),'resultName':var.get('resultName'),'nextLoc':var.get('nextLoc')})) if PyJsStrictEq(var.get(u"this").get('method'),Js('next')): var.get(u"this").put('arg', var.get('undefined')) return var.get('ContinueSentinel') PyJs_delegateYield_1354_._set_name('delegateYield') var.get('Context').put('prototype', Js({'constructor':var.get('Context'),'reset':PyJs_reset_1347_,'stop':PyJs_stop_1348_,'dispatchException':PyJs_dispatchException_1349_,'abrupt':PyJs_abrupt_1350_,'complete':PyJs_complete_1351_,'finish':PyJs_finish_1352_,'catch':PyJs__catch_1353_,'delegateYield':PyJs_delegateYield_1354_})) PyJs_anonymous_1327_._set_name('anonymous') PyJs_anonymous_1327_(PyJs_LONG_1326_()).neg() PyJs_anonymous_1325_._set_name('anonymous') PyJs_anonymous_1325_.callprop('call', var.get(u"this")) PyJs_anonymous_1324_._set_name('anonymous') PyJs_anonymous_1324_.callprop('call', var.get(u"this"), (var.get('global') if PyJsStrictNeq(var.get('global',throw=False).typeof(),Js('undefined')) else (var.get('self') if PyJsStrictNeq(var.get('self',throw=False).typeof(),Js('undefined')) else (var.get('window') if PyJsStrictNeq(var.get('window',throw=False).typeof(),Js('undefined')) else Js({}))))) PyJs_anonymous_1323_._set_name('anonymous') @Js def PyJs_anonymous_1355_(this, arguments, var=var): var = Scope({'this':this, 'arguments':arguments}, var) var.registers(['r']) @Js def PyJsHoisted_r_(e, n, t, this, arguments, var=var): var = Scope({'e':e, 'n':n, 't':t, 'this':this, 'arguments':arguments}, var) var.registers(['n', 'u', 'i', 't', 'o', 'e']) @Js def PyJsHoisted_o_(i, f, this, arguments, var=var): var = Scope({'i':i, 'f':f, 'this':this, 'arguments':arguments}, var) var.registers(['f', 'i', 'a', 'p', 'c']) if var.get('n').get(var.get('i')).neg(): if var.get('e').get(var.get('i')).neg(): var.put('c', ((Js('function')==var.get('require',throw=False).typeof()) and var.get('require'))) if (var.get('f').neg() and var.get('c')): return var.get('c')(var.get('i'), Js(0.0).neg()) if var.get('u'): return var.get('u')(var.get('i'), Js(0.0).neg()) var.put('a', var.get('Error').create(((Js("Cannot find module '")+var.get('i'))+Js("'")))) PyJsTempException = JsToPyException(PyJsComma(var.get('a').put('code', Js('MODULE_NOT_FOUND')),var.get('a'))) raise PyJsTempException var.put('p', var.get('n').put(var.get('i'), Js({'exports':Js({})}))) @Js def PyJs_anonymous_1356_(r, this, arguments, var=var): var = Scope({'r':r, 'this':this, 'arguments':arguments}, var) var.registers(['n', 'r']) var.put('n', var.get('e').get(var.get('i')).get('1').get(var.get('r'))) return var.get('o')((var.get('n') or var.get('r'))) PyJs_anonymous_1356_._set_name('anonymous') var.get('e').get(var.get('i')).get('0').callprop('call', var.get('p').get('exports'), PyJs_anonymous_1356_, var.get('p'), var.get('p').get('exports'), var.get('r'), var.get('e'), var.get('n'), var.get('t')) return var.get('n').get(var.get('i')).get('exports') PyJsHoisted_o_.func_name = 'o' var.put('o', PyJsHoisted_o_) pass #for JS loop var.put('u', ((Js('function')==var.get('require',throw=False).typeof()) and var.get('require'))) var.put('i', Js(0.0)) while (var.get('i')