Nymbo/self-hosted-python
1
1var Module=typeof globalThis.__pyodide_module!=="undefined"?globalThis.__pyodide_module:{};if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH="";if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof process==="undefined"&&typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}var PACKAGE_NAME="html5lib.data";var REMOTE_PACKAGE_BASE="html5lib.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata["remote_package_size"];var PACKAGE_UUID=metadata["package_uuid"];function fetchRemotePackage(packageName,packageSize,callback,errback){if(typeof process==="object"){require("fs").readFile(packageName,(function(err,contents){if(err){errback(err)}else{callback(contents.buffer)}}));return}var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,(function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}}),handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.9",true,true);Module["FS_createPath"]("/lib/python3.9","site-packages",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages","html5lib",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/html5lib","_trie",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/html5lib","filters",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/html5lib","treeadapters",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/html5lib","treebuilders",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/html5lib","treewalkers",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages","html5lib-1.1-py3.9.egg-info",true,true);function processPackageData(arrayBuffer){assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:234723,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1349,2604,3939,5214,6667,8212,9668,10631,11711,12962,13967,15353,16506,17678,18776,20152,21201,22110,23169,24151,25231,26167,27266,28189,29363,30645,31476,32672,33609,34663,35471,36088,36878,37601,38325,38965,39640,40213,40704,41380,42075,42533,43168,44003,44915,45606,46217,46929,47736,48579,49052,49657,50362,50996,51780,52573,53073,53699,54268,54817,55271,56106,57531,58723,59827,60694,61362,62221,62917,63598,64388,65019,65589,66621,67675,68824,69947,70917,71790,72726,73555,74338,75323,76182,77118,78050,78977,79880,80804,81750,82691,83595,84508,85401,86352,87161,87970,88879,89820,90736,91654,92469,93409,94324,95270,96570,97794,98895,99940,100722,101695,102798,103881,105030,106282,106834,107445,108205,108958,110029,110952,111718,112670,113793,114843,115664,116497,117132,117897,118699,119518,120394,121308,122016,123081,124066,124891,125755,126770,127823,128939,129722,130655,131674,132562,133464,134266,135264,136024,137110,138139,138924,139884,140633,141448,142363,143289,144235,145105,146002,146730,147566,148763,150013,151223,152403,153469,154430,155175,156139,157351,158483,159511,160532,161207,162209,163097,164004,164862,165640,166741,167207,167689,168352,169074,169782,170523,171293,172325,173283,174356,175573,176574,177826,179080,180194,181513,182654,183880,184920,186003,187164,188182,189199,190328,191341,192243,193217,194057,195195,196129,196949,197810,198690,199639,200797,201973,202807,203750,204651,205531,206668,207800,209085,210168,211083,212044,212975,213847,214856,216113,216892,217963,218931,219926,221139,222130,223397,224926,226394,227975,229409,231010,232448,233465,234010,234354],sizes:[1349,1255,1335,1275,1453,1545,1456,963,1080,1251,1005,1386,1153,1172,1098,1376,1049,909,1059,982,1080,936,1099,923,1174,1282,831,1196,937,1054,808,617,790,723,724,640,675,573,491,676,695,458,635,835,912,691,611,712,807,843,473,605,705,634,784,793,500,626,569,549,454,835,1425,1192,1104,867,668,859,696,681,790,631,570,1032,1054,1149,1123,970,873,936,829,783,985,859,936,932,927,903,924,946,941,904,913,893,951,809,809,909,941,916,918,815,940,915,946,1300,1224,1101,1045,782,973,1103,1083,1149,1252,552,611,760,753,1071,923,766,952,1123,1050,821,833,635,765,802,819,876,914,708,1065,985,825,864,1015,1053,1116,783,933,1019,888,902,802,998,760,1086,1029,785,960,749,815,915,926,946,870,897,728,836,1197,1250,1210,1180,1066,961,745,964,1212,1132,1028,1021,675,1002,888,907,858,778,1101,466,482,663,722,708,741,770,1032,958,1073,1217,1001,1252,1254,1114,1319,1141,1226,1040,1083,1161,1018,1017,1129,1013,902,974,840,1138,934,820,861,880,949,1158,1176,834,943,901,880,1137,1132,1285,1083,915,961,931,872,1009,1257,779,1071,968,995,1213,991,1267,1529,1468,1581,1434,1601,1438,1017,545,344,369],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData["data"]=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData},true);Module["removeRunDependency"]("datafile_html5lib.data")}Module["addRunDependency"]("datafile_html5lib.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/lib/python3.9/site-packages/html5lib/__init__.py",start:0,end:1143,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/_ihatexml.py",start:1143,end:17871,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/_inputstream.py",start:17871,end:50171,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/_tokenizer.py",start:50171,end:127199,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/_utils.py",start:127199,end:132118,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/constants.py",start:132118,end:215582,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/html5parser.py",start:215582,end:332756,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/serializer.py",start:332756,end:348503,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/_trie/__init__.py",start:348503,end:348612,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/_trie/_base.py",start:348612,end:349625,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/_trie/py.py",start:349625,end:351388,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/filters/__init__.py",start:351388,end:351388,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/filters/alphabeticalattributes.py",start:351388,end:352307,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/filters/base.py",start:352307,end:352593,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/filters/inject_meta_charset.py",start:352593,end:355538,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/filters/lint.py",start:355538,end:359169,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/filters/optionaltags.py",start:359169,end:369757,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/filters/sanitizer.py",start:369757,end:396642,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/filters/whitespace.py",start:396642,end:397856,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treeadapters/__init__.py",start:397856,end:398506,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treeadapters/genshi.py",start:398506,end:400221,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treeadapters/sax.py",start:400221,end:401997,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treebuilders/__init__.py",start:401997,end:405589,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treebuilders/base.py",start:405589,end:420142,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treebuilders/dom.py",start:420142,end:429067,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treebuilders/etree.py",start:429067,end:441891,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treebuilders/etree_lxml.py",start:441891,end:456645,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treewalkers/__init__.py",start:456645,end:462364,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treewalkers/base.py",start:462364,end:469840,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treewalkers/dom.py",start:469840,end:471253,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treewalkers/etree.py",start:471253,end:475792,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treewalkers/etree_lxml.py",start:475792,end:482137,audio:0},{filename:"/lib/python3.9/site-packages/html5lib/treewalkers/genshi.py",start:482137,end:484446,audio:0},{filename:"/lib/python3.9/site-packages/html5lib-1.1-py3.9.egg-info/PKG-INFO",start:484446,end:500159,audio:0},{filename:"/lib/python3.9/site-packages/html5lib-1.1-py3.9.egg-info/SOURCES.txt",start:500159,end:506632,audio:0},{filename:"/lib/python3.9/site-packages/html5lib-1.1-py3.9.egg-info/dependency_links.txt",start:506632,end:506633,audio:0},{filename:"/lib/python3.9/site-packages/html5lib-1.1-py3.9.egg-info/requires.txt",start:506633,end:506836,audio:0},{filename:"/lib/python3.9/site-packages/html5lib-1.1-py3.9.egg-info/top_level.txt",start:506836,end:506845,audio:0}],remote_package_size:238819,package_uuid:"a50b5e37-b22e-4bd0-bc31-0c562b3d2706"})})();