This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpython-dateutil.js
1 lines (1 loc) · 10.3 KB
/
python-dateutil.js
1
var Module=typeof pyodide._module!=="undefined"?pyodide._module:{};Module.checkABI(1);if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=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 location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}else{throw"using preloaded data can only be done on a web page or in a web worker"}var PACKAGE_NAME="python-dateutil.data";var REMOTE_PACKAGE_BASE="python-dateutil.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){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.7",true,true);Module["FS_createPath"]("/lib/python3.7","site-packages",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","python_dateutil-2.7.2-py3.7.egg-info",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","dateutil",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/dateutil","zoneinfo",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/dateutil","tz",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/dateutil","parser",true,true);function DataRequest(start,end,audio){this.start=start;this.end=end;this.audio=audio}DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module["addRunDependency"]("fp "+this.name)},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray)},finish:function(byteArray){var that=this;Module["FS_createPreloadedFile"](this.name,null,byteArray,true,true,function(){Module["removeRunDependency"]("fp "+that.name)},function(){if(that.audio){Module["removeRunDependency"]("fp "+that.name)}else{err("Preloading file "+that.name+" failed")}},false,true);this.requests[this.name]=null}};function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;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:279668,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1149,2223,3508,4711,6013,7354,8335,9301,10362,11561,12814,13787,14997,16002,16835,17697,18316,19421,20477,21406,22222,23005,23835,24867,26246,27503,28359,29282,30275,31275,32210,33150,34139,35136,35922,36677,37990,39208,40252,41291,42171,43292,43948,44824,45647,46254,46868,47710,48917,50285,51738,53145,55193,57241,59298,61346,63394,65446,67494,69542,71590,73638,75686,77743,79791,81848,83896,85935,87983,90031,92083,94131,96179,98165,100213,102259,104307,106355,108403,110451,112499,114547,116595,118643,120698,122746,124794,126842,128890,130938,132995,135052,137100,139152,141200,143257,145305,147353,149401,151458,153506,155554,157608,159656,161704,163760,165808,167865,169913,171961,174009,176057,178105,180153,182210,184258,186306,188354,190402,192404,193674,195063,196181,197469,198547,199725,200840,202083,203506,204757,205932,206976,207934,209249,210333,211489,212682,213746,214823,216006,217094,218330,219388,220472,221917,222927,224094,225358,226501,227302,228041,229093,229853,230925,232289,233657,234825,236057,237302,238539,239905,240967,242128,243689,245079,245907,246833,248051,249075,250029,250997,251916,253101,254340,255525,256371,257307,258376,259385,260256,261470,262705,263779,264923,266280,267444,268607,269374,270310,270871,272316,273554,274630,275644,276732,277922,279152],sizes:[1149,1074,1285,1203,1302,1341,981,966,1061,1199,1253,973,1210,1005,833,862,619,1105,1056,929,816,783,830,1032,1379,1257,856,923,993,1e3,935,940,989,997,786,755,1313,1218,1044,1039,880,1121,656,876,823,607,614,842,1207,1368,1453,1407,2048,2048,2057,2048,2048,2052,2048,2048,2048,2048,2048,2057,2048,2057,2048,2039,2048,2048,2052,2048,2048,1986,2048,2046,2048,2048,2048,2048,2048,2048,2048,2048,2055,2048,2048,2048,2048,2048,2057,2057,2048,2052,2048,2057,2048,2048,2048,2057,2048,2048,2054,2048,2048,2056,2048,2057,2048,2048,2048,2048,2048,2048,2057,2048,2048,2048,2048,2002,1270,1389,1118,1288,1078,1178,1115,1243,1423,1251,1175,1044,958,1315,1084,1156,1193,1064,1077,1183,1088,1236,1058,1084,1445,1010,1167,1264,1143,801,739,1052,760,1072,1364,1368,1168,1232,1245,1237,1366,1062,1161,1561,1390,828,926,1218,1024,954,968,919,1185,1239,1185,846,936,1069,1009,871,1214,1235,1074,1144,1357,1164,1163,767,936,561,1445,1238,1076,1014,1088,1190,1230,516],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,0,0,1,0,0,1,0,0,0,0,0,1,0,1,0,1,0,0,1,0,0,1,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,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});Module["removeRunDependency"]("datafile_python-dateutil.data")}Module["addRunDependency"]("datafile_python-dateutil.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.7/site-packages/python_dateutil-2.7.2-py3.7.egg-info/SOURCES.txt",start:0,end:1585,audio:0},{filename:"/lib/python3.7/site-packages/python_dateutil-2.7.2-py3.7.egg-info/PKG-INFO",start:1585,end:9508,audio:0},{filename:"/lib/python3.7/site-packages/python_dateutil-2.7.2-py3.7.egg-info/zip-safe",start:9508,end:9509,audio:0},{filename:"/lib/python3.7/site-packages/python_dateutil-2.7.2-py3.7.egg-info/dependency_links.txt",start:9509,end:9510,audio:0},{filename:"/lib/python3.7/site-packages/python_dateutil-2.7.2-py3.7.egg-info/top_level.txt",start:9510,end:9519,audio:0},{filename:"/lib/python3.7/site-packages/python_dateutil-2.7.2-py3.7.egg-info/requires.txt",start:9519,end:9528,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/_version.py",start:9528,end:9644,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/rrule.py",start:9644,end:74511,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/relativedelta.py",start:74511,end:99004,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/utils.py",start:99004,end:100845,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/tzwin.py",start:100845,end:100904,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/_common.py",start:100904,end:101836,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/easter.py",start:101836,end:104520,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/__init__.py",start:104520,end:104742,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/zoneinfo/rebuild.py",start:104742,end:106461,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/zoneinfo/dateutil-zoneinfo.tar.gz",start:106461,end:245541,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/zoneinfo/__init__.py",start:245541,end:251430,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/tz/win.py",start:251430,end:262748,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/tz/tz.py",start:262748,end:319128,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/tz/_factories.py",start:319128,end:320562,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/tz/_common.py",start:320562,end:333454,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/tz/__init__.py",start:333454,end:333957,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/parser/_parser.py",start:333957,end:389715,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/parser/isoparser.py",start:389715,end:402560,audio:0},{filename:"/lib/python3.7/site-packages/dateutil/parser/__init__.py",start:402560,end:404287,audio:0}],remote_package_size:283764,package_uuid:"60b9d54a-3dc5-4ae5-8905-05150455ee27"})})();