You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Exerc...

89 lines
534 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[52,4,5,6,7,9,11,12,14],{"1vsH":function(e,y,i){"use strict";i.d(y,"i",function(){return N}),i.d(y,"n",function(){return A}),i.d(y,"e",function(){return L}),i.d(y,"h",function(){return $}),i.d(y,"c",function(){return V}),i.d(y,"f",function(){return Y}),i.d(y,"g",function(){return I}),i.d(y,"a",function(){return G}),i.d(y,"F",function(){return D}),i.d(y,"E",function(){return F}),i.d(y,"G",function(){return z}),i.d(y,"H",function(){return q}),i.d(y,"v",function(){return M}),i.d(y,"u",function(){return J}),i.d(y,"s",function(){return ae}),i.d(y,"r",function(){return ne}),i.d(y,"C",function(){return me}),i.d(y,"l",function(){return ue}),i.d(y,"k",function(){return ee}),i.d(y,"B",function(){return Z}),i.d(y,"x",function(){return re}),i.d(y,"o",function(){return B}),i.d(y,"z",function(){return oe}),i.d(y,"q",function(){return k}),i.d(y,"d",function(){return x}),i.d(y,"b",function(){return a}),i.d(y,"w",function(){return W}),i.d(y,"A",function(){return Q}),i.d(y,"p",function(){return ye}),i.d(y,"y",function(){return we}),i.d(y,"t",function(){return Oe}),i.d(y,"j",function(){return _e}),i.d(y,"D",function(){return de}),i.d(y,"m",function(){return le});var u=i("miYZ"),t=i("tsqr"),v=i("sRBo"),d=i("kaz8"),f=i("WmNS"),c=i.n(f),n=i("14J3"),l=i("BMrR"),o=i("jCWc"),r=i("kPKH"),s=i("2qtc"),b=i("kLXV"),h=i("9og8"),g=i("jrin"),S=i("q1tI"),w=i.n(S),C=i("xKgJ"),T=i("s8TD"),j=i("V0Rq"),E=i("bntm"),O={load:"text/html","123":"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp","602":"application/x-t602","669":"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"},_=i("aCH8"),p=i.n(_),P=i("m3rI"),N=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],R=function(X){var ie={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bg-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"}};return X.data&&X.data.map(function(ge,Se){return w.a.createElement("span",{key:Se,className:ie[ge]&&ie[ge].class},ge)})},A=function(X){var ie,ge=(ie={},Object(g.a)(ie,-1,"\u91CD\u505A\u4E2D"),Object(g.a)(ie,0,"\u672A\u5F00\u542F"),Object(g.a)(ie,1,"\u672A\u901A\u5173"),Object(g.a)(ie,2,"\u6309\u65F6\u901A\u5173"),ie);return ge[X]||"\u8FDF\u4EA4\u901A\u5173"},L=function(X){var ie,ge,Se,Ie=(ie={},Object(g.a)(ie,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(g.a)(ie,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(g.a)(ie,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(g.a)(ie,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(g.a)(ie,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),ie);return w.a.createElement("span",{className:Ie==null||((ge=Ie[X.status])===null||ge===void 0)?void 0:ge.class},Ie==null||((Se=Ie[X.status])===null||Se===void 0)?void 0:Se.name)},$=function(X){var ie=X.status,ge={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return w.a.createElement("span",{className:ge[ie].class},ge[ie].name)}catch(Se){console.log("utils.StatusGraduationProjectTags",X.status)}},V={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},Y={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},I=function(X){var ie={\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10"},\u672A\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"}},ge=[];X.is_random&&ge.push(w.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{X.status&&X.status.map(function(Se,Ie){ge.push(w.a.createElement("span",{key:Ie,className:ie[Se]&&ie[Se].class},Se))})}catch(Se){console.log("utils.status.tag:",Se,X.status)}return ge},te=function(X){var ie,ge,Se,Ie=(ie={},Object(g.a)(ie,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(g.a)(ie,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(g.a)(ie,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(g.a)(ie,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(g.a)(ie,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),ie);return w.a.createElement("span",{className:(ge=Ie[X.status])===null||ge===void 0?void 0:ge.class},(Se=Ie[X.status])===null||Se===void 0?void 0:Se.name)},G=function(X){var ie,ge,Se={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"}};return w.a.createElement("span",{className:(ie=Se[X.status])===null||ie===void 0?void 0:ie.class},(ge=Se[X.status])===null||ge===void 0?void 0:ge.name)},D=function(X){X=new Date(X).getTime();var ie=1e3*60,ge=ie*60,Se=ge*24,Ie="",rt=new Date().getTime(),ot=rt-X;if(ot<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),Ie="\u521A\u521A";var tt=parseInt(ot/Se,10),Dt=parseInt(ot/ge,10),vt=parseInt(ot/ie,10);return tt>30?Ie=""+F(X,"yyyy-MM-dd"):tt>1?Ie=""+tt+"\u5929\u524D":tt==1?Ie="\u6628\u5929":Dt>=1?Ie=""+Dt+"\u5C0F\u65F6\u524D":vt>=5?Ie=""+vt+"\u5206\u949F\u524D":Ie="\u521A\u521A",Ie},F=function(X,ie){typeof X=="string"&&(X.indexOf("T")>=0&&(X=X.replace("T"," ")),X=new Date(Date.parse(X.replace(/-/g,"/")))),X=new Date(X);var ge={"M+":X.getMonth()+1,"d+":X.getDate(),"h+":X.getHours(),"m+":X.getMinutes(),"s+":X.getSeconds(),"q+":Math.floor((X.getMonth()+3)/3),S:X.getMilliseconds()},Se=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(ie)&&(ie=ie.replace(RegExp.$1,(X.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(ie)&&(ie=ie.replace(RegExp.$1,Se[RegExp.$1.length-1][X.getDay()]));for(var Ie in ge)new RegExp("("+Ie+")").test(ie)&&(ie=ie.replace(RegExp.$1,RegExp.$1.length==1?ge[Ie]:("00"+ge[Ie]).substr((""+ge[Ie]).length)));return ie},z=function(X){if(!X||X<0)return"0\u79D2";console.log("time:",X);var ie=60,ge=ie*60,Se=ge*24,Ie=X/Se,rt=X/ge,ot=X/ie,tt=X%60;return Ie>=1?parseInt(Ie.toString())+"\u5929"+Math.floor(rt%24)+"\u65F6"+Math.floor(ot%60)+"\u5206"+Math.floor(X%60)+"\u79D2":rt>1?parseInt(rt.toString())+"\u65F6"+Math.floor(ot%60)+"\u5206"+Math.floor(X%60)+"\u79D2":ot>=1?parseInt(ot.toString())+"\u5206"+Math.floor(X%60)+"\u79D2":Math.ceil(X)+"\u79D2"},q=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,ge=0;if(X){ge=X.length;for(var Se=0;Se<ge;Se++){var Ie=X.charCodeAt(Se);Ie>=55296&&Ie<=56319&&(ge--,Se++)}}return ge<=ie},M=function(X,ie,ge){if(ie){var Se=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,Ie=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,rt=Ie.test(ie),ot=Se.test(ie);(rt===!0||ot===!0||(ie.length<2||ie.length>=21))&&ge("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}ge()},J=function(X,ie,ge){if(ie){var Se=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,Ie=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,rt=Ie.test(ie),ot=Se.test(ie);(rt===!0||ot===!0||(ie.length<2||ie.length>=11))&&ge("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}ge()},ae=function(X){if(!X)return"";for(var ie=X.length-1,ge="",Se=0;Se<ie;Se++)ge+="*";var Ie=X.substr(0,1)+ge;return Ie},ne=function(X,ie){var ge=new FileReader;ge.addEventListener("load",function(){return ie(ge.result)}),ge.readAsDataURL(X)};function me(Te){var X="79e33abd4b6588941ab7622aed1e67e8";return p()(X+Te)}var be=function(X){var ie,ge=RegExp("(^| )"+X+"=([^;]+)(;|$)");return(ie=document.cookie.match(ge))?decodeURIComponent(ie[2]):null};function K(Te,X,ie){var ge=new Date;ge.setTime(ge.getTime()+ie*24*60*60*1e3);var Se="expires="+ge.toUTCString();document.cookie=Te+"="+X+"; "+Se}var Ne=function(X){document.cookie=X+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function ue(Te,X){var ie=document.createElement("a");document.body.appendChild(ie),ie.href=X,Te&&(ie.title=Te,ie.download=Te);var ge=document.createEvent("MouseEvents");ge.initEvent("click",!1,!1),ie.dispatchEvent(ge),document.body.removeChild(ie)}function ee(Te,X){return new Promise(function(ie,ge){var Se=X,Ie=document.createElement("iframe"),rt;console.log("downloadFileUrl",Se),document.body.appendChild(Ie),Ie.src=Se,Ie.style.display="none",rt=setInterval(function(){be("fileDownload")&&(Ne("fileDownload"),clearInterval(rt),ie())},1e3)})}var Z=function(X){var ie=X.url,ge=X.query;return ie?(ge&&function(){var Se=[],Ie=function(tt){ge.hasOwnProperty(tt)&&!we(ge[tt])&&(typeof ge[tt]=="object"?ge[tt].map(function(Dt){Se.push("".concat(tt,"[]=").concat(Dt))}):Se.push("".concat(tt,"=").concat(ge[tt])))};for(var rt in ge)Ie(rt);ie.indexOf("?")!==-1?ie="".concat(ie,"&").concat(Se.join("&")):ie="".concat(ie,"?").concat(Se.join("&")),console.log("url1111",ie)}(),ie):""};function re(){for(var Te=navigator.userAgent,X=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],ie=!0,ge=0;ge<X.length;ge++)if(Te.indexOf(X[ge])>0){ie=!1;break}return ie}function ce(){var Te=navigator.userAgent,X=["Chrome"];return X.some(function(ie){return Te.indexOf(ie)>-1})}function U(){var Te=navigator.userAgent,X=["Chrome","Firefox"];return X.some(function(ie){return Te.indexOf(ie)>-1})}var B=function(){var X,ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie==null||((X=ie.toString())===null||X===void 0)?void 0:X.replace(/\B(?=(\d{3})+(?!\d))/g,",")},oe=function(X){var ie=document.createElement("a");ie.target="_blank",document.body.appendChild(ie),ie.href=X;var ge=document.createEvent("MouseEvents");ge.initEvent("click",!1,!1),ie.dispatchEvent(ge),document.body.removeChild(ie)},k=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return X.length<=6?X:"".concat(X.substring(0,3),"...").concat(X.substring(X.length-3,X.length))},x=function(){var X=new Date().getHours(),ie=new Date().getMinutes();return ie>=30?(X++,ie="00"):ie="30",X+":"+ie},a=function(){var X=new Date().getHours(),ie=new Date().getMinutes();return ie>=30?(X++,ie="00"):ie="30",new Date().toLocaleDateString().replace(/\//g,"-")+" "+X+":"+ie},m;(function(Te){Te.Number="Number",Te.String="String",Te.Boolean="Boolean",Te.Object="Object",Te.Array="Array",Te.Function="Function"})(m||(m={}));var H=function(X){var ie=Object.prototype.toString.call(X);return ie.substring(8,ie.length-1)},W=function(X){return H(X)===m.Array?X.length===0:H(X)===m.Object?Object.keys(X).length===0:!X},Q=function(X,ie){for(var ge=[],Se=X;Se<ie;Se++)ge.push(Se);return ge},pe=function(X){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:12,ge=ie/2-2,Se=ie/2+3;return X.length>ie?X.substr(0,ge)+"..."+X.substr(Se,ie):X},ye=function(X){return X>4.5?5:X>4&&X<=4.5?4.5:X>3.5&&X<=4?4:X>3&&X<=3.5?3.5:X>2.5&&X<=3?3:X>2&&X<=2.5?2.5:X>1.5&&X<=2?2:X>1&&X<=1.5?1.5:X>.5&&X<=1?1:X>0&&X<=.5?.5:0},we=function(X){return X==null};function Re(Te,X){var ie=new RegExp("(^|&)".concat(Te,"=([^&]*)(&|$)"),"i"),ge=X.substr(1).match(ie);return ge!=null?decodeURIComponent(ge[2]):null}var Oe=function(X){switch(X.container_type){case"ApplyUserAuthentication":if(X.tiding_type==="Apply"){if(X.auth_type===1)return window.open("/admins/identity_authentications");if(X.auth_type===2)return window.open("/admins/professional_authentications")}return X.tiding_type==="System"?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return X.tiding_type==="Apply"?window.open("/admins/department_applies"):X.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return X.tiding_type==="Apply"?window.open("/admins/unit_applies"):X.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(X.parent_container_type){case"ApplyShixun":if(X.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(X.tiding_type==="System")return window.open("/shixuns/".concat(X.identifier,"/challenges"));case"ApplySubject":if(X.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(X.tiding_type==="System")return window.open("/paths/".concat(X.parent_container_id));case"TrialAuthorization":if(X.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(X.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/teachers"));case"StudentJoinCourse":if(X.tiding_type==="Apply")return window.open("/classrooms/".concat(X.belong_container_id,"/teachers"));if(X.tiding_type==="System")return window.open("/classrooms/".concat(X.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"Course":return X.tiding_type==="Delete"?void 0:window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(X.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(X.container_id));case"JournalsForMessage":switch(X.parent_container_type){case"Principal":return"";case"HomeworkCommon":return X.homework_type==="normal"?window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/question")):X.homework_type==="group"?window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/question")):X.homework_type==="practice"?window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_topics/").concat(X.parent_container_id,"/detail"));case"StudentWorksScore":return X.homework_type==="normal"?window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/question")):X.homework_type==="group"?window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/question")):X.homework_type==="practice"?window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(X.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(X.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(X.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(X.container_id));case"DealProject":return window.open("/projects/".concat(X.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(X.container_id));case"Poll":switch(X.parent_container_type){case"CommitPoll":return window.open(" /classrooms/".concat(X.belong_container_id,"/poll/").concat(X.container_id,"/detail"));default:return window.open(" /classrooms/".concat(X.belong_container_id,"/poll/").concat(X.container_id,"/detail"))}case"Exercise":switch(X.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(X.belong_container_id,"/exercise/").concat(X.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /classrooms/".concat(X.belong_container_id,"/exercise/").concat(X.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(X.belong_container_id,"/exercise/").concat(X.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_topics/").concat(X.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_topics/").concat(X.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_tasks/").concat(X.container_id));case"GraduationWork":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_tasks/").concat(X.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(X.belong_container_id,"/graduation_tasks/").concat(X.parent_container_id));case"HomeworkCommon":switch(X.parent_container_type){case"AnonymousCommentFail":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"));default:if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/detail"));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/review/").concat(X.container_id));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/review/").concat(X.container_id));if(X.homework_type==="practice")return window.open("/classrooms/".concat(X.belong_container_id,"/shixun_homework/").concat(X.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.trigger_user.id,"/review/").concat(X.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.trigger_user.id,"/review/").concat(X.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("".concat(P.a.API_SERVER,"/admins/mirror_repositories"));case"Journal":return window.open("/issues/".concat(X.parent_container_id));case"Issue":return window.open("/issues/".concat(X.container_id));case"PullRequest":return window.open("/projects/".concat(X.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if(X.tiding_type==="Apply")return window.open("/admins/library_applies");if(X.tiding_type==="System")return window.open("/moop_cases/".concat(X.container_id));case"ProjectPackage":return X.tiding_type==="Destroyed"||X.tiding_type==="Destroyed_end"?void 0:X.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(X.container_id));case"Discuss":return X.parent_container_type==="Hack"&&X.extra?window.open("/myproblems/".concat(X.extra,"/comment")):window.open("/shixuns/".concat(X.identifier,"/shixun_discuss"));case"Video":if(X.tiding_type==="Apply")return window.open("/admins/video_applies");if(X.tiding_type==="System"){var ie;return window.open("/users/".concat((ie=Object(C.u)())===null||ie===void 0?void 0:ie.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(X.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(X.container_id));case"ResubmitStudentWork":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id,"/").concat(X.container_id,"/appraise"));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id,"/").concat(X.container_id,"/appraise"));case"AdjustScore":if(X.homework_type==="normal")return window.open("/classrooms/".concat(X.belong_container_id,"/common_homework/").concat(X.parent_container_id));if(X.homework_type==="group")return window.open("/classrooms/".concat(X.belong_container_id,"/group_homework/").concat(X.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(X.belong_container_id,"/course_videos?open=live"));case"Hack":if(X.extra&&X.parent_container_type!=="HackDelete")return window.open("/problems/".concat(X.extra,"/edit"));default:return}},_e=function(X){var ie,ge;return new Promise(function(){var Se=Object(h.a)(c.a.mark(function Ie(rt,ot){var tt;return c.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(!(X.ip_limit!=="no"||X.ip_bind)){vt.next=4;break}return vt.next=3,Object(T.a)({ip_limit:X==null?void 0:X.ip_limit});case 3:ie=vt.sent;case 4:return vt.next=6,Object(j.e)({id:X.exerciseId,ip:ie});case 6:if(tt=vt.sent,tt.status===0?rt(tt):ot(tt),!X.errmsgHide){vt.next=10;break}return vt.abrupt("return",!0);case 10:if(!(tt.status===-1)){vt.next=15;break}return ge=b.a.info({title:w.a.createElement(l.a,null,w.a.createElement(r.a,{flex:"1"},"\u63D0\u793A"),w.a.createElement(r.a,null,w.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ge.destroy()}}))),icon:null,className:"custom-modal-divider",content:w.a.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),vt.abrupt("return",!1);case 15:if(!(tt.status===-2)){vt.next=18;break}return ge=b.a.info({title:w.a.createElement(l.a,null,w.a.createElement(r.a,{flex:"1"},"\u63D0\u793A"),w.a.createElement(r.a,null,w.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ge.destroy()}}))),icon:null,className:"custom-modal-divider",content:w.a.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",w.a.createElement("span",{className:"c-red"},tt.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),vt.abrupt("return",!1);case 18:case"end":return vt.stop()}},Ie)}));return function(Ie,rt){return Se.apply(this,arguments)}}())},de=function(){var Te=Object(h.a)(c.a.mark(function X(ie){var ge;return c.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(!(ie.ip_limit!=="no"||ie.ip_bind)){Ie.next=4;break}return Ie.next=3,_e(ie);case 3:ce()||b.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:w.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",w.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",w.a.createElement("br",null),"\u8BF7\u4F7F\u7528",w.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});case 4:if(!(ie.open_camera||ie.screen_open||ie.ip_limit!=="no")){Ie.next=12;break}if(U()){Ie.next=9;break}return b.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:w.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",w.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",w.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",w.a.createElement("br",null),"\u8BF7\u4F7F\u7528",w.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",w.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),Ie.abrupt("return",!1);case 9:ge=b.a.info({title:w.a.createElement(l.a,null,w.a.createElement(r.a,{flex:"1"},"\u8003\u8BD5\u8BF4\u660E"),w.a.createElement(r.a,null,w.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ge.destroy()}}))),width:700,icon:null,className:"custom-modal-divider",content:w.a.createElement("div",{className:"font16 p20"},ie.open_camera&&w.a.createElement(l.a,{align:"middle",justify:"start",className:"mt20"},w.a.createElement(r.a,null,w.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),w.a.createElement(r.a,null,"\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01",w.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),ie.screen_open&&w.a.createElement(l.a,{justify:"start",className:"mt20"},w.a.createElement(r.a,{flex:"24px",className:"mr20"},w.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),w.a.createElement(r.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\uFF0C\u5207\u5C4F\u8D85\u8FC7",ie.screen_num,"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\u3002\uFF08\u9000\u51FA\u5168\u5C4F\u5C06\u5224\u5B9A\u4E3A\u5207\u5C4F\u4E00\u6B21\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u9000\u51FA\u5168\u5C4F\uFF09",w.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4460"},"\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"))),(ie.inner_ip!==""||ie.public_ip!=="")&&ie.ip_limit!=="no"&&w.a.createElement(l.a,{justify:"start",className:"mt20"},w.a.createElement(r.a,{flex:"24px",className:"mr20"},w.a.createElement("span",{className:"iconfont icon-IP c-blue font24"})),w.a.createElement(r.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542FIP\u8303\u56F4\u9650\u5B9A\u3002IP\u5730\u5740\u4E0D\u5728\u8303\u56F4\u5185\u4E0D\u53EF\u53C2\u52A0\u8003\u8BD5\u3002",w.a.createElement("br",null),w.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),w.a.createElement("br",null),w.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))),ie.ip_bind&&w.a.createElement(l.a,{justify:"start",className:"mt20"},w.a.createElement(r.a,{flex:"24px",className:"mr20"},w.a.createElement("span",{className:"iconfont icon-IPbangding c-blue font24"})),w.a.createElement(r.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u8003\u8BD5\u671F\u95F4IP\u7ED1\u5B9A\u3002\u5F53\u60A8\u5F00\u59CB\u8003\u8BD5\u540E\uFF0C\u5C06\u81EA\u52A8\u7ED1\u5B9AIP\uFF0C\u8003\u8BD5\u671F\u95F4\u53EA\u5141\u8BB8\u4F7F\u7528\u552F\u4E00\u7684IP\u8FDB\u5165\u8003\u8BD5\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u53EF\u5411\u8001\u5E08\u7533\u8BF7\u89E3\u9664IP\u7ED1\u5B9A\u3002",w.a.createElement("br",null),w.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),w.a.createElement("br",null),w.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))),w.a.createElement("p",{className:"ml40 mt40"},w.a.createElement(d.a,{onChange:function(ot){return ge.update({okButtonProps:{disabled:!ot.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){var ot;Object(E.d)(document.body),ie.history.push("/classrooms/".concat(ie.coursesId,"/exercise/").concat(ie.exerciseId,"/users/").concat((ot=Object(C.u)())===null||ot===void 0?void 0:ot.login))},okText:"\u8FDB\u5165\u8003\u8BD5",okButtonProps:{disabled:!0}}),Ie.next=13;break;case 12:ie.history.push("/classrooms/".concat(ie.coursesId,"/exercise/").concat(ie.exerciseId,"/users/").concat(ie.login));case 13:case"end":return Ie.stop()}},X)}));return function(ie){return Te.apply(this,arguments)}}(),le=[{name:"\u535A\u58EB\u7814\u7A76\u751F",id:8},{name:"\u7855\u58EB\u7814\u7A76\u751F",id:7},{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9}],xe=function(X,ie){var ge={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E".concat(ie,"\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002")},Se=ge[X];t.b.warn(Se)},je=function(X,ie){for(var ge,Se,Ie=window.atob(X),rt=Ie.length,ot=new Uint8Array(rt),tt=0;tt<rt;++tt)ot[tt]=Ie.charCodeAt(tt);return console.log("type:",O[(ge=ie.split("."))===null||ge===void 0?void 0:ge[1]]||"application/octet-stream"),new Blob([ot],{type:O[(Se=ie.split("."))===null||Se===void 0?void 0:Se[1]]||"application/octet-stream"})},Le=function(X,ie,ge){var Se=je(ie,ge);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(Se,X);else{var Ie=document.createElement("a");Ie.href=window.URL.createObjectURL(Se),Ie.download=X,document.body.appendChild(Ie);var rt=document.createEvent("MouseEvents");rt.initEvent("click",!1,!1),Ie.dispatchEvent(rt),document.body.removeChild(Ie)}}},"7ZXX":function(e,y,i){e.exports=i.p+"static/err.6e7c5817.png"},"7ahc":function(e,y,i){"use strict";i.d(y,"a",function(){return O});var u=i("k1fw"),t=i("0Owb"),v=i("+L6B"),d=i("2/Rp"),f=i("y8nQ"),c=i("Vl3Y"),n=i("tJVT"),l=i("OaEy"),o=i("2fM7"),r=i("q1tI"),s=i.n(r),b=i("VrN/"),h=i.n(b),g=i("p77/"),S=i.n(g),w=i("c5Ni"),C=i.n(w),T=o.a.Option,j={labelCol:{span:4},wrapperCol:{span:20}},E={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};y.b=function(_){var p=_.callback,P=_.onCancel,N=Object(r.useState)("python"),R=Object(n.a)(N,2),A=R[0],L=R[1];function $(Y){L(E[Y][1])}function V(Y){p(Y)}return s.a.createElement(c.a,Object(t.a)({},j,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:V}),s.a.createElement(c.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},s.a.createElement(o.a,{onChange:$},Object.keys(E).map(function(Y){return s.a.createElement(T,{key:Y,value:Y},E[Y][0])}))),s.a.createElement(c.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},s.a.createElement(O,{mode:A})),s.a.createElement("div",{className:"flex-container flex-end"},s.a.createElement(d.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),s.a.createElement(d.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function O(_){var p=_.value,P=_.onChange,N=_.mode,R=_.options,A=R===void 0?{}:R,L=Object(r.useRef)(),$=Object(r.useState)(),V=Object(n.a)($,2),Y=V[0],I=V[1];return Object(r.useEffect)(function(){if(Y){var te=function(D){var F=D.getValue();P&&P(F)};return Y.on("change",te),function(){Y.off("change",te)}}},[Y,P]),Object(r.useEffect)(function(){Y&&Y.setOption("mode",N)},[Y,N]),Object(r.useEffect)(function(){Y&&((p!==Y.getValue()||p==="")&&setTimeout(function(){Y.setValue(p||" ")},300))},[Y,p]),Object(r.useEffect)(function(){if(L.current&&!Y){var te=h.a.fromTextArea(L.current,Object(u.a)({mode:N,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},A));I(te)}},[L.current,Y]),s.a.createElement("div",{className:"my-codemirror-container"},s.a.createElement("textarea",{ref:L}))}},"9Bee":function(e,y,i){"use strict";var u=i("q1tI"),t=i.n(u),v=i("vg9a"),d=i("tJVT"),f=i("DlQD"),c=i.n(f),n=i("rUJ1");function l(G,D){var F=G.match(/^(\s+)(?:```)/);if(F===null)return D;var z=F[1];return D.split(`
`).map(function(q){var M=q.match(/^\s+/);if(M===null)return q;var J=Object(d.a)(M,1),ae=J[0];return ae.length>=z.length?q.slice(z.length):q}).join(`
`)}var o=[],r=["<ul>"],s=new c.a.Renderer,b=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function h(){o.length=0,r=["<ul>"]}function g(G,D,F,z){if(D>=G.length||G[D].level<=F)return D;var q=G[D];z.push("<li><a href='#"+q.anchor+"'>"+q.text+"</a>"),D++;var M=[];return D=g(G,D,q.level,M),M.length>0&&(z.push("<ul>"),M.forEach(function(J){z.push(J)}),z.push("</ul>")),z.push("</li>"),D=g(G,D,F,z),D}function S(){return g(o,0,0,r),r.push("</ul>"),r.join("")}var w={heading:function(D){var F=b.exec(D);if(F)return{type:"heading",raw:F[0],depth:F[1].length,text:F[2]}},fences:function(D){var F=this.rules.block.fences.exec(D);if(F){var z=F[0],q=l(z,F[3]||""),M=F[2]?F[2].trim():F[2];if(["latex","katex","math"].indexOf(M)>=0){var J=j(),ae=q;q=J,E[J]={type:"block",expression:ae}}return{type:"code",raw:z,lang:M,text:q}}}},C=/(?:\${2})([^\n`]+?)(?:\${2})/gi,T=0,j=function(){return"__special_katext_id_".concat(T++,"__")},E={};function O(){return E}function _(){T=0,E={}}function p(G){return G=G.replace(C,function(D,F){var z=j();return E[z]={type:"inline",expression:F},z}),G}var P=s.listitem;s.listitem=function(G){return P(p(G))};var N=s.paragraph;s.paragraph=function(G){return N(p(G))};var R=s.tablecell;s.tablecell=function(G,D){return R(p(G),D)},s.code=function(G,D,F){var z=(D||"").match(/\S*/)[0];return z?["latex","katex","math"].indexOf(z)>=0?"<p class='editormd-tex'>".concat(G,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(D,'">').concat(F?G:Object(n.escape)(G,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(F?G:Object(n.escape)(G,!0))+"</code></pre>"},s.heading=function(G,D,F){var z=this.options.headerPrefix+F.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:z,level:D,text:G}),"<h"+D+' id="'+z+'">'+G+"</h"+D+">"},c.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),c.a.use({tokenizer:w,renderer:s});var A=c.a,L=i("SJMd"),$=i("m3rI"),V=i("Oy/b"),Y=/<pre[^>]*>/g;function I(G){var D=document.createElement("div");return D.innerHTML=G,D.childNodes.length===0?"":D.childNodes[0].nodeValue}var te=y.a=function(G){var D=G.value,F=D===void 0?"":D,z=G.className,q=G.style,M=q===void 0?{}:q,J=String(F),ae=Object(u.useMemo)(function(){try{var be=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,K=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ne=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;J=J.replace(be,"("+$.a.API_SERVER+"/api/attachments/").replace(K,'"'+$.a.API_SERVER+"/api/attachments/").replace(Ne,'"'+$.a.API_SERVER+"/files/uploads/")}catch(Z){}var ue=A(J),ee=O();return J.match(/\[TOC\]/)&&(ue=ue.replace("<p>[TOC]</p>",S()),h()),ue=ue.replace(/(__special_katext_id_\d+__)/g,function(Z,re){var ce=ee[re],U=ce.type,B=ce.expression;return Object(V.renderToString)(I(B)||"",{displayMode:U==="block",throwOnError:!1,output:"html"})}),ue=ue.replace(/▁/g,"\u2581\u2581\u2581"),_(),ue},[J]),ne=Object(u.useRef)();function me(be){var K=be.target;if(K.tagName.toUpperCase()==="A"){var Ne=K.getAttribute("href");if(Ne.startsWith("#")){be.preventDefault();var ue=document.getElementById(Ne.replace("#",""));ue&&ue.scrollIntoView(!0)}}}return Object(u.useEffect)(function(){if(ne.current&&ae&&(ae.match(Y)&&window.PR.prettyPrint()),ne.current)return ne.current.addEventListener("click",me),function(){ne.current.removeEventListener("click",me),_(),h()}},[ae,ne.current,me]),t.a.createElement("div",{ref:ne,style:M,className:"".concat(z||""," markdown-body"),dangerouslySetInnerHTML:{__html:ae}})}},"9VGf":function(e,y,i){"use strict";i.d(y,"a",function(){return v});var u=i("q1tI"),t=i.n(u);function v(d,f){var c=Object(u.useRef)();Object(u.useEffect)(function(){c.current=d}),Object(u.useEffect)(function(){function n(){c.current()}if(f!==null){var l=setInterval(n,f);return function(){return clearInterval(l)}}},[f])}},BjJ7:function(e,y,i){"use strict";i.d(y,"d",function(){return t}),i.d(y,"c",function(){return v}),i.d(y,"f",function(){return d}),i.d(y,"b",function(){return f}),i.d(y,"e",function(){return c}),i.d(y,"a",function(){return n});var u=i("m3rI");function t(l){var o=!0;if(l.length>0){for(var r=0;r<l.length;r++)if(l[r].compile_success==0||!l[r].compile_success){o=!1;break}}else o=!1;return o}function v(l){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=[],s=0;s<l.length;s++){var b=l[s],h=o?"".concat(o,"/").concat(b.name):"".concat(b.name);r.push({title:b.name,isLeaf:!(b.type==="tree"),key:h})}return r}function d(l,o,r){for(var s=0;s<l.length;s++){var b=l[s];if(b.key===o){b.children=r;break}b.children&&d(b.children,o,r)}return l}function f(l,o,r){var s;return function(){var b=this,h=arguments,g=function(){s=null,r||l.apply(b,h)},S=r&&!s;clearTimeout(s),s=setTimeout(g,o),S&&l.apply(b,h)}}var c=!0,n=u.a.API_SERVER},"C+DQ":function(e,y,i){},DR4n:function(e,y,i){e.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},HmJG:function(e,y,i){},M8RZ:function(e,y,i){"use strict";i.d(y,"a",function(){return o});var u=i("fWQN"),t=i("mtLc"),v=i("yKVA"),d=i("879j"),f=i("q1tI"),c=i.n(f),n=i("i8i4"),l=i.n(n),o=function(r){Object(v.a)(b,r);var s=Object(d.a)(b);function b(h){var g;Object(u.a)(this,b),g=s.call(this,h);var S=window.document;return g.node=S.createElement("div"),S.body.appendChild(g.node),g}return Object(t.a)(b,[{key:"render",value:function(){var g=this.props.children;return Object(n.createPortal)(g,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),b}(c.a.Component)},MvOs:function(e,y,i){"use strict";i.r(y);var u=i("T2oS"),t=i("W9HT"),v=i("14J3"),d=i("BMrR"),f=i("+L6B"),c=i("2/Rp"),n=i("jCWc"),l=i("kPKH"),o=i("sPJy"),r=i("bE4q"),s=i("sRBo"),b=i("kaz8"),h=i("7Kak"),g=i("9yH6"),S=i("MXD1"),w=i("CFYs"),C=i("miYZ"),T=i("tsqr"),j=i("2qtc"),E=i("kLXV"),O=i("WmNS"),_=i.n(O),p=i("k1fw"),P=i("9og8"),N=i("tJVT"),R=i("PpiC"),A=i("5NDa"),L=i("5rEg"),$=i("aHsQ"),V=i("sGsY"),Y=i("q1tI"),I=i.n(Y),te=i("Ty5D"),G=i("55Ip"),D=i("9kvl"),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},z=F,q=i("6VBw"),M=function(Ue,Ce){return Y.createElement(q.a,Object.assign({},Ue,{ref:Ce,icon:z}))};M.displayName="MinusSquareOutlined";var J=Y.forwardRef(M),ae=i("xGfz"),ne=i("jhfD"),me=i("Llu2"),be=i("ErOA"),K=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Ne=new Uint8Array(16);function ue(){if(!K)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return K(Ne)}var ee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Z(Qe){return typeof Qe=="string"&&ee.test(Qe)}for(var re=Z,ce=[],U=0;U<256;++U)ce.push((U+256).toString(16).substr(1));function B(Qe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ce=(ce[Qe[Ue+0]]+ce[Qe[Ue+1]]+ce[Qe[Ue+2]]+ce[Qe[Ue+3]]+"-"+ce[Qe[Ue+4]]+ce[Qe[Ue+5]]+"-"+ce[Qe[Ue+6]]+ce[Qe[Ue+7]]+"-"+ce[Qe[Ue+8]]+ce[Qe[Ue+9]]+"-"+ce[Qe[Ue+10]]+ce[Qe[Ue+11]]+ce[Qe[Ue+12]]+ce[Qe[Ue+13]]+ce[Qe[Ue+14]]+ce[Qe[Ue+15]]).toLowerCase();if(!re(Ce))throw TypeError("Stringified UUID is invalid");return Ce}var oe=B;function k(Qe,Ue,Ce){Qe=Qe||{};var qe=Qe.random||(Qe.rng||ue)();if(qe[6]=qe[6]&15|64,qe[8]=qe[8]&63|128,Ue){Ce=Ce||0;for(var $e=0;$e<16;++$e)Ue[Ce+$e]=qe[$e];return Ue}return oe(qe)}var x=k,a=i("DR4n"),m=i.n(a),H=i("mxV5"),W=function(Ue,Ce){for(var qe=Ue.split(","),$e=qe[0].match(/:(.*?);/)[1],ht=atob(qe[1]),Pe=ht.length,De=new Uint8Array(Pe);Pe--;)De[Pe]=ht.charCodeAt(Pe);return new Blob([De],{type:$e})},Q=function(Ue){var Ce=Ue.time,qe=Ue.number,$e=Ue.supportCamera,ht=Ue.update,Pe=Object(Y.useRef)(),De=Object(Y.useRef)(),Je=Object(te.m)(),Et=Object(Y.useState)([]),st=Object(N.a)(Et,2),ut=st[0],Ze=st[1],bt=Object(Y.useState)(0),yt=Object(N.a)(bt,2),mt=yt[0],It=yt[1],Mt=Object(Y.useState)(""),Pt=Object(N.a)(Mt,2),Ft=Pt[0],Ke=Pt[1],nt=Object(Y.useState)(),at=Object(N.a)(nt,2),ft=at[0],St=at[1],At=Object(Y.useState)(0),Rt=Object(N.a)(At,2),Tt=Rt[0],jt=Rt[1];Object(Y.useEffect)(function(){return Ut(),function(){Bt(),kt()}},[]),Object(Y.useEffect)(function(){mt===2&&Ce&&qe>0&&(Ct(),jt(1))},[Ce]),Object(Y.useEffect)(function(){if(Tt===0)return;if(Tt===2)clearInterval(ft);else{var _t=0,pt=setInterval(function(){ut.includes(_t)&&Lt(),_t++},1e3);St(pt)}return function(){return clearInterval(ft)}},[Tt]);var kt=function(){jt(2)},Ct=function(){var pt=Ce/qe,wt=[];function Ot(Xe,Fe){return parseInt(Math.floor(Math.random()*(Fe-Xe+1))+Xe)}new Array(qe).fill(0).map(function(Xe,Fe){wt.push(Ot(pt*Fe,pt*(Fe+1)))}),ut=wt,Ze([].concat(wt)),console.log(wt)},Ut=function(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(pt){var wt=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return wt?new Promise(function(Ot,Xe){wt.call(navigator,pt,Ot,Xe)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:1280,height:720}}).then(function(pt){$e&&$e(2),It(2),"srcObject"in Pe.current?Pe.current.srcObject=pt:Pe.current.src=window.URL.createObjectURL(pt),Pe.current.onloadedmetadata=function(wt){Pe.current.play()},Pe.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),kt(),T.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(pt){It(1),$e&&$e(1),pt.message==="Permission denied"||pt.name==="NotAllowedError"?T.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):T.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+pt.name),console.log("err: "+pt.message)})},Lt=function(){try{De.current.width=Pe.current.videoWidth,De.current.height=Pe.current.videoHeight;var pt=De.current.getContext("2d");pt.drawImage(Pe.current,0,0,De.current.width,De.current.height),Ke(De.current.toDataURL("image/png")),Ht(De.current.toDataURL("image/png"))}catch(wt){}},Bt=function(){try{var pt=Pe.current.srcObject,wt=pt.getTracks();wt.forEach(function(Ot){Ot.stop()}),Pe.current.srcObject=null}catch(Ot){}},Ht=function(){var _t=Object(P.a)(_.a.mark(function pt(wt){var Ot,Xe,Fe,ze,et,Me,ct,Ye,se,lt,xt;return _.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,Object(be.a)("/api/buckets/get_upload_token.json",{method:"get"});case 2:Ye=dt.sent,se=x(),lt=new H({endpoint:Ye==null||((Ot=Ye.data)===null||Ot===void 0)?void 0:Ot.end_point,region:Ye==null||((Xe=Ye.data)===null||Xe===void 0)?void 0:Xe.region,accessKeyId:Ye==null||((Fe=Ye.data)===null||Fe===void 0)?void 0:Fe.access_key_id,accessKeySecret:Ye==null||((ze=Ye.data)===null||ze===void 0)?void 0:ze.access_key_secret,bucket:Ye==null||((et=Ye.data)===null||et===void 0)?void 0:et.bucket,stsToken:Ye==null||((Me=Ye.data)===null||Me===void 0)?void 0:Me.security_token}),xt=W(wt,se),lt.multipartUpload("".concat(se,".png"),xt,{timeout:10*1e3,partSize:10485760,callback:{url:Ye==null||((ct=Ye.data)===null||ct===void 0)?void 0:ct.callback_url,host:Ye==null?void 0:Ye.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&login="+Je.login+"&container_id="+Je.categoryId+"&container_type=Exercise"}}).then(function(Gt){console.log("result:",Gt)}).catch(function(Gt){console.log("err:",Gt)});case 7:case"end":return dt.stop()}},pt)}));return function(wt){return _t.apply(this,arguments)}}();return I.a.createElement(I.a.Fragment,null,mt!==3&&I.a.createElement("aside",{className:m.a.video,id:"screenshot"},mt===0&&I.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),mt===1&&I.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),mt===2&&I.a.createElement("div",null,I.a.createElement("video",{width:"288",ref:Pe,autoPlay:!0}),I.a.createElement("canvas",{style:{display:"none"},ref:De}))))},pe=Q,ye=i("bPs0"),we=i("wd/R"),Re=i.n(we),Oe=i("V5fa"),_e=i.n(Oe),de=i("1vsH"),le=i("s8TD"),xe=i("xKgJ"),je=i("bntm"),Le=i("V0Rq"),Te=i("HBuW"),X=i("9Bee"),ie=i("Ot1p"),ge=function(Ue){var Ce,qe,$e,ht,Pe=Ue.item,De=Ue.answerData,Je=Ue.onBlur,Et=Je===void 0?function(){}:Je,st=Object(Y.useState)(),ut=Object(N.a)(st,2),Ze=ut[0],bt=ut[1],yt=Object(Y.useState)(),mt=Object(N.a)(yt,2),It=mt[0],Mt=mt[1],Pt=Object(Y.useState)(),Ft=Object(N.a)(Pt,2),Ke=Ft[0],nt=Ft[1];return Object(Y.useEffect)(function(){Mt(Pe==null?void 0:Pe.a_flag)},[Pe==null?void 0:Pe.a_flag]),I.a.createElement("div",null,(De==null||((Ce=De.exercise)===null||Ce===void 0)?void 0:Ce.user_exercise_status)===1?I.a.createElement("div",null,I.a.createElement("p",{className:"mt10 mb0"},"\u6211\u7684\u7B54\u6848\uFF1A"),I.a.createElement("div",{className:_e.a.simpleText},I.a.createElement(X.a,{value:Pe==null||((qe=Pe.user_answer)===null||qe===void 0)?void 0:qe[0]}))):I.a.createElement("div",{className:Pe.user_score&&(Pe.user_score===Pe.question_score?"c-green":"c-red")},Ke?I.a.createElement(ie.a,{height:150,isFocus:!0,defaultValue:Pe==null||(($e=Pe.user_answer)===null||$e===void 0)?void 0:$e[0],id:Pe==null?void 0:Pe.question_id,onChange:function(ft){return bt(ft)},onBlur:function(){return Et(Ze)}}):I.a.createElement("div",{onClick:function(){return nt(!0)}},I.a.createElement(L.a,{size:"large",className:"current",placeholder:"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54",readOnly:!0}))),Object(xe.q)()&&(Pe==null?void 0:Pe.standard_answer)&&I.a.createElement("div",null,I.a.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),I.a.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},I.a.createElement(X.a,{value:Pe==null||((ht=Pe.standard_answer)===null||ht===void 0)?void 0:ht[0]}))))},Se=ge,Ie=i("g9YV"),rt=i("wCAj"),ot=i("5GOC"),tt=i("JsLm"),Dt=i("ZW9T"),vt=i("o5mm"),Kt=i.n(vt),sr=function(Ue){var Ce,qe,$e,ht,Pe,De=Ue.item,Je=Ue.answerData,Et=Object(Y.useState)([]),st=Object(N.a)(Et,2),ut=st[0],Ze=st[1],bt=Object(Y.useState)([]),yt=Object(N.a)(bt,2),mt=yt[0],It=yt[1];Object(Y.useEffect)(function(){var Ke;if(!(De==null||((Ke=De.shixun_details)===null||Ke===void 0)?void 0:Ke.length))return;for(var nt=[],at=[],ft=0;ft<(De==null||((St=De.shixun_details)===null||St===void 0)?void 0:St.length);ft++){for(var St,At,Rt,Tt=0;Tt<(De==null?void 0:De.shixun_details[ft].stage_list.length);Tt++){var jt,kt,Ct,Ut,Lt=De==null?void 0:De.shixun_details[ft].stage_list[Tt];nt.push(Object(p.a)(Object(p.a)({},Lt),{operation:De==null||((jt=De.shixun_details)===null||jt===void 0||((kt=jt[ft])===null||kt===void 0||((Ct=kt.shixun_detail)===null||Ct===void 0||((Ut=Ct[0])===null||Ut===void 0))))?void 0:Ut.game_identifier}))}if(De==null||((At=De.shixun_details)===null||At===void 0||((Rt=At[ft])===null||Rt===void 0))?void 0:Rt.shixun_detail){var Bt,Ht,_t;at.push(De==null||((Bt=De.shixun_details)===null||Bt===void 0||((Ht=Bt[ft])===null||Ht===void 0||((_t=Ht.shixun_detail)===null||_t===void 0)))?void 0:_t[0])}}It(at),Ze(nt)},[De==null?void 0:De.shixun_details]);var Mt=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",align:"center",render:function(nt){return I.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:nt&&nt.length>25?nt:""},nt)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(nt,at){return I.a.createElement("span",null,at.evaluate_count?at.evaluate_count:I.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",align:"center",render:function(nt,at){var ft=!1;return at.finished_time&&(Je==null?void 0:Je.exercise)&&(Je==null?void 0:Je.exercise_answer_user)&&((Je==null?void 0:Je.exercise.time)===-1?ft=Re()(Je==null?void 0:Je.exercise.end_time).isBefore(at.finished_time):ft=Re()(Je==null?void 0:Je.exercise_answer_user.start_at).add(Je==null?void 0:Je.exercise.time,"m").isBefore(at.finished_time)),I.a.createElement("span",null,at.finished_time||I.a.createElement("span",{className:"c-grey-999"},"--"),I.a.createElement("span",{className:"c-orange-ff9 "},ft?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(nt,at){return I.a.createElement("span",null,at.time_consuming||I.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(nt,at){return I.a.createElement("span",null,at.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")}},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",render:function(nt,at,ft){return nt?I.a.createElement(tt.a,{affix:!1,className:"mt10"},I.a.createElement(tt.a.Link,{href:"#challenge_".concat(De==null?void 0:De.question_id).concat(ft),title:I.a.createElement("span",{style:{color:"#1890ff"}},"\u67E5\u770B")})):I.a.createElement("span",{className:"c-grey-999"},"--")}}],Pt=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(nt,at){return I.a.createElement("span",null,at.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(nt,at){return I.a.createElement("span",null,at.error_msg?at.error_msg:"--")}}],Ft={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return I.a.createElement("div",{className:"mt15 mb15"},((Je==null||((Ce=Je.exercise)===null||Ce===void 0)?void 0:Ce.student_commit_status)===0||(Je==null||((qe=Je.exercise)===null||qe===void 0)?void 0:qe.user_exercise_status)===0)&&I.a.createElement("div",null,De.shixun.map(function(Ke,nt){return I.a.createElement(d.a,{className:"font16",gutter:[0,20]},I.a.createElement(l.a,{flex:"1"},Ke.challenge_name," (",Ke.challenge_score,"\u5206)"),I.a.createElement(l.a,{flex:"100px",className:"tr"},Ke.answer_status===0&&I.a.createElement("span",{className:"font12 tag-style-border border-orange c-orange "},"\u672A\u5B8C\u6210"),Ke.answer_status===1&&I.a.createElement("span",{className:"font12 tag-style-border border-green c-green "},"\u5DF2\u5B8C\u6210")))})),(Je==null||(($e=Je.exercise)===null||$e===void 0)?void 0:$e.student_commit_status)!==0||(Je==null||((ht=Je.exercise)===null||ht===void 0)?void 0:ht.user_exercise_status)!==0?I.a.createElement(I.a.Fragment,null,!!(ut==null?void 0:ut.length)&&I.a.createElement("div",null,I.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),I.a.createElement(rt.a,{columns:Mt,dataSource:ut,pagination:!1})),!!(mt==null?void 0:mt.length)&&I.a.createElement("div",null,I.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),mt==null?void 0:mt.map(function(Ke,nt){return I.a.createElement("div",{id:"challenge_".concat(De==null?void 0:De.question_id).concat(nt),className:"mt5"},I.a.createElement("div",null,I.a.createElement("span",{className:"font16 mr15"}," \u7B2C",Ke.position,"\u5173"),I.a.createElement(G.Link,{className:"current c-black font16",to:"/tasks/".concat(Ke.game_identifier)},Ke.name)),(Ke==null?void 0:Ke.st)===0&&Ke.passed_code&&I.a.createElement("aside",{className:Kt.a.shixunWrp},I.a.createElement("h2",null,"\u6700\u540E\u4E00\u6B21\u901A\u5173\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09",I.a.createElement("span",{className:"c-light-black"},Ke.path)),I.a.createElement(Dt.b,{height:300,language:"python",theme:"default",value:Ke.passed_code,options:Ft})))}))):I.a.createElement(I.a.Fragment,null,Object(xe.q)()&&I.a.createElement(X.a,{className:"c-grey-999 mt20 mb20",value:De==null?void 0:De.question_title}),De==null||((Pe=De.shixun)===null||Pe===void 0)?void 0:Pe.map(function(Ke,nt){return I.a.createElement("p",{className:"font16 c-grey-666 mb5",key:nt},I.a.createElement("span",{className:"mr20"},"\u7B2C",Ke==null?void 0:Ke.challenge_position,"\u5173 ",Ke==null?void 0:Ke.challenge_name),I.a.createElement("span",null,Ke==null?void 0:Ke.challenge_score,"\u5206"))})))},vr=sr,qt=i("J66h"),yr=function(Ue){var Ce=Ue.item,qe=Ue.answerData,$e=Object(Y.useState)([]),ht=Object(N.a)($e,2),Pe=ht[0],De=ht[1];Object(Y.useEffect)(function(){var st;if((Ce==null||((st=Ce.evaluate_codes)===null||st===void 0)?void 0:st.length)>0){var ut;De(Ce==null||((ut=Ce.evaluate_codes)===null||ut===void 0)?void 0:ut.map(function(Ze,bt){return{key:bt+1,error_msg:(Ze==null?void 0:Ze.error_msg)?qt.Base64.decode(Ze==null?void 0:Ze.error_msg):""}}))}else De([{key:"--",error_msg:"--"}])},[Ce==null?void 0:Ce.evaluate_codes]);var Je=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(ut,Ze){return I.a.createElement("span",null,Ze.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(ut,Ze){return I.a.createElement("span",null,Ze.error_msg?Ze.error_msg:"--")}}],Et={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return I.a.createElement(I.a.Fragment,null,I.a.createElement("div",{className:"mt15 mb15"},I.a.createElement(X.a,{value:Ce==null?void 0:Ce.description})),!!(Ce==null?void 0:Ce.user_answer.length)&&(Ce==null?void 0:Ce.passed_code)&&I.a.createElement("aside",{className:Kt.a.shixunWrp},I.a.createElement("h3",null,"\u6700\u540E\u4E00\u6B21\u8BC4\u6D4B\u901A\u8FC7\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09"),I.a.createElement(Dt.b,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:(Ce==null?void 0:Ce.passed_code)?qt.Base64.decode(Ce==null?void 0:Ce.passed_code):"",options:Et})))},ur=yr,Yt=i("oBTY"),Jt=L.a.TextArea,er=function(Ue){var Ce,qe,$e=Ue.item,ht=Ue.answerData,Pe=Ue.onBlur,De=Pe===void 0?function(){}:Pe,Je=Object(Y.useState)([]),Et=Object(N.a)(Je,2),st=Et[0],ut=Et[1];return Object(Y.useEffect)(function(){for(var Ze=[],bt=0;bt<($e==null?void 0:$e.multi_count);bt++)Ze.push(Object(p.a)({},($e==null?void 0:$e.user_answer[bt])||{}));ut(Ze)},[$e==null?void 0:$e.user_answer]),I.a.createElement("div",null,st==null?void 0:st.map(function(Ze,bt){var yt;return I.a.createElement("div",{className:"mt10"},I.a.createElement("span",null,"\u6211\u7684\u7B54\u6848\uFF08\u586B\u7A7A",bt+1,"\uFF09:"),I.a.createElement("div",null,I.a.createElement(Jt,{autoSize:!0,rows:4,disabled:(ht==null||((yt=ht.exercise)===null||yt===void 0)?void 0:yt.user_exercise_status)===1,value:Ze==null?void 0:Ze.answer_text,onChange:function(It){st[bt].answer_text=It.target.value,ut(Object(Yt.a)(st))},onBlur:function(It){return De(Ze==null?void 0:Ze.answer_text,bt+1)},className:$e.user_score&&($e.user_score===$e.question_score?"c-green":"c-red")})))}),!!($e==null||((Ce=$e.standard_answer)===null||Ce===void 0)?void 0:Ce.length)&&I.a.createElement("div",null,$e==null||((qe=$e.standard_answer)===null||qe===void 0)?void 0:qe.map(function(Ze,bt){return I.a.createElement("div",null,I.a.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",bt+1,"\uFF09:"),I.a.createElement("div",null,I.a.createElement(Jt,{autoSize:!0,disabled:!0,value:Ze==null?void 0:Ze.answer_text[0]})))})))},lr=er,Or=L.a.TextArea,cr=function(Ue){var Ce=Ue.data;return I.a.createElement("div",{className:"tc mt80"},I.a.createElement("img",{width:"486",src:i("7ZXX")})," ",I.a.createElement("br",null),Ce.status===-1&&I.a.createElement("div",{className:"c-grey-999 mt60"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),Ce.status===-2&&I.a.createElement("div",{className:" c-grey-999 mt60"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",I.a.createElement("span",{className:"c-red"},Ce.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),I.a.createElement(c.a,{className:"mt40 pl20 pr20",type:"primary"},I.a.createElement("a",{href:"/"},"\u56DE\u5230\u9996\u9875")))},_r=cr,dr=i("m3rI"),tr=V.a.Countdown,wr=L.a.TextArea,zt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ae={1:"\u672A\u53D1\u5E03",2:"\u5DF2\u53D1\u5E03",3:"\u5DF2\u622A\u6B62"},Sr={1:_e.a.flagActive,2:_e.a.flagHalf},Er={0:"c-red-ee4",1:"c-green"},fr=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],rr=function(Ue){var Ce,qe,$e,ht,Pe,De,Je,Et,st,ut,Ze,bt,yt,mt,It,Mt,Pt,Ft,Ke,nt,at,ft,St,At,Rt,Tt,jt,kt,Ct,Ut,Lt,Bt,Ht,_t,pt,wt,Ot=Ue.globalSetting,Xe=Ue.loading,Fe=Ue.user,ze=Ue.dispatch,et=Object(R.a)(Ue,["globalSetting","loading","user","dispatch"]),Me=Object(te.m)(),ct=Object(Y.useState)({}),Ye=Object(N.a)(ct,2),se=Ye[0],lt=Ye[1],xt=Object(Y.useState)({}),Vt=Object(N.a)(xt,2),dt=Vt[0],Gt=Vt[1],pr=Object(Y.useState)({}),ar=Object(N.a)(pr,2),Qt=ar[0],Wr=ar[1],Gr=Object(Y.useState)(!1),Ar=Object(N.a)(Gr,2),zr=Ar[0],hr=Ar[1],Vr=Object(Y.useState)(!0),Rr=Object(N.a)(Vr,2),ir=Rr[0],$r=Rr[1],Kr=Object(Y.useState)(!1),Ir=Object(N.a)(Kr,2),Yr=Ir[0],Cr=Ir[1],Jr=Object(Y.useState)(!1),Nr=Object(N.a)(Jr,2),Qr=Nr[0],Dr=Nr[1],Zr=Object(Y.useState)(),Pr=Object(N.a)(Zr,2),qr=Pr[0],en=Pr[1],tn=Object(Y.useState)(0),jr=Object(N.a)(tn,2),xn=jr[0],Tn=jr[1],rn=Object(Y.useState)(""),kr=Object(N.a)(rn,2),nn=kr[0],an=kr[1],on=Object(Y.useState)({status:0}),Lr=Object(N.a)(on,2),xr=Lr[0],Mr=Lr[1];Object(Y.useEffect)(function(){return Object(xe.c)()?(mr(),window.addEventListener("beforeunload",Tr)):Fe.userInfo.login&&sn(),function(){window.removeEventListener("beforeunload",Tr),location.pathname.indexOf("/detail")>-1&&Object(je.b)()}},[Me.categoryId,Fe.userInfo.login]);var sn=function(){var Ee=Object(P.a)(_.a.mark(function fe(){var ve,he,Be,ke,We,He,Ge,Ve,it,gt,Wt;return _.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Nt.next=2,ze({type:"exercise/getExerciseUserInfo",payload:Object(p.a)({},Me)});case 2:if(he=Nt.sent,Gt(Object(p.a)({},he.data)),!((he==null||((ve=he.data)===null||ve===void 0)?void 0:ve.ip_limit)!=="no")){Nt.next=11;break}if(!((he==null||((Be=he.data)===null||Be===void 0)?void 0:Be.ip_limit)==="inner")){Nt.next=9;break}return Nt.next=8,Object(le.a)({ip_limit:he==null||((ke=he.data)===null||ke===void 0)?void 0:ke.ip_limit});case 8:He=Nt.sent;case 9:return Nt.next=11,Object(de.j)({exerciseId:Me.categoryId,ip:He,errmsgHide:!0,ip_limit:he==null||((We=he.data)===null||We===void 0)?void 0:We.ip_limit}).catch(function(Xt){Mr(Xt)});case 11:if(!((he==null?void 0:he.status)==0)){Nt.next=18;break}if(!((he==null||((Ge=he.data)===null||Ge===void 0)?void 0:Ge.used_screen_num)>(he==null||((Ve=he.data)===null||Ve===void 0)?void 0:Ve.screen_num)&&(he==null||((it=he.data)===null||it===void 0)?void 0:it.screen_open))){Nt.next=15;break}return br(),Nt.abrupt("return",!1);case 15:Cr(he==null?void 0:he.data.check_camera),Dr(he==null||((gt=he.data)===null||gt===void 0)?void 0:gt.screen_open),(he==null||((Wt=he.data)===null||Wt===void 0)?void 0:Wt.check_camera)||mr();case 18:case"end":return Nt.stop()}},fe)}));return function(){return Ee.apply(this,arguments)}}(),Tr=function(fe){var ve="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(fe||window.event).returnValue=ve,ve},mr=function(){var Ee=Object(P.a)(_.a.mark(function fe(){var ve,he,Be,ke,We,He,Ge,Ve,it,gt,Wt,Zt;return _.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(hr(!0),!Object(xe.c)()){Xt.next=8;break}return Xt.next=4,Object(Le.z)({exerciseId:Me.categoryId,login:Me.login}).catch(function(){return hr(!1)});case 4:ve=Xt.sent,((he=ve)===null||he===void 0?void 0:he.exercise)&&(ve.exercise.user_exercise_status=1),Xt.next=13;break;case 8:return Xt.next=10,Object(Le.s)(Object(p.a)({},Me)).catch(function(){return hr(!1)});case 10:ve=Xt.sent,((Be=ve.exercise)===null||Be===void 0?void 0:Be.commit_status)>0&&window.removeEventListener("beforeunload",Tr),((ke=ve)===null||ke===void 0||((We=ke.exercise)===null||We===void 0)?void 0:We.left_time)&&setTimeout(function(){an(_e.a.red)},(((He=ve)===null||He===void 0||((Ge=He.exercise)===null||Ge===void 0)?void 0:Ge.left_time)-300>0?((Ve=ve)===null||Ve===void 0||((it=Ve.exercise)===null||it===void 0)?void 0:it.left_time)-300:0)*1e3);case 13:hr(!1),ve&&(ve.exercise_types=((gt=ve)===null||gt===void 0?void 0:gt.exercise_types)||((Wt=ve)===null||Wt===void 0||((Zt=Wt.exercise_scores)===null||Zt===void 0)?void 0:Zt.exercise_types),lt(ve));case 15:case"end":return Xt.stop()}},fe)}));return function(){return Ee.apply(this,arguments)}}();Object(Y.useEffect)(function(){var Ee,fe,ve;((Ee=se.exercise)===null||Ee===void 0?void 0:Ee.left_time)===0&&br(),((fe=se.exercise)===null||fe===void 0?void 0:fe.left_time)&&en(Date.now()+(se==null||((ve=se.exercise)===null||ve===void 0)?void 0:ve.left_time)*1e3)},[(Ce=se.exercise)===null||Ce===void 0?void 0:Ce.left_time]);var un=function(){var fe;(se==null||((fe=se.exercise)===null||fe===void 0)?void 0:fe.exercise_status)===3?E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:I.a.createElement("div",{className:"tc font16"},"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",I.a.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:I.a.createElement("div",{className:"tc font16"},"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",I.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:function(){var ve=Object(P.a)(_.a.mark(function Be(){var ke,We;return _.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,Object(Le.J)({categoryId:Me.categoryId,user_ids:[se==null||((ke=se.exercise_answer_user)===null||ke===void 0)?void 0:ke.user_id]});case 2:We=Ge.sent,We&&(T.b.info(We==null?void 0:We.message),or());case 4:case"end":return Ge.stop()}},Be)}));function he(){return ve.apply(this,arguments)}return he}()})},or=function(){location.href="/classrooms/".concat(Me.coursesId,"/exercise/").concat(Me.categoryId,"/detail")},ln=function(){var Ee=Object(P.a)(_.a.mark(function fe(){var ve,he;return _.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Object(Le.N)({categoryId:Me.categoryId,commit_method:2});case 2:ve=ke.sent,(ve==null?void 0:ve.status)===0&&(E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:I.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",I.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var We=Object(P.a)(_.a.mark(function Ge(){return _.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:or();case 1:case"end":return it.stop()}},Ge)}));function He(){return We.apply(this,arguments)}return He}()}),T.b.info(ve==null?void 0:ve.message)),(ve==null?void 0:ve.status)===-3&&(he=parseInt(ve==null?void 0:ve.message),se.exercise.left_time=he,lt(Object(p.a)({},se)));case 5:case"end":return ke.stop()}},fe)}));return function(){return Ee.apply(this,arguments)}}(),Fr=function(){var Ee=Object(P.a)(_.a.mark(function fe(ve){var he;return _.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Object(Te.w)({id:ve.shixun_identifier});case 2:he=ke.sent,(he==null?void 0:he.game_identifier)&&et.history.push("/tasks/".concat(he.game_identifier,"?type=exercises&exercisesId=").concat(Me.categoryId,"&coursesId=").concat(Me.coursesId,"&login=").concat(Me.login,"&questionId=").concat(ve.question_id)),(he==null?void 0:he.status)===2?cn(he==null?void 0:he.message):(he==null?void 0:he.status)===3&&Ur(he==null?void 0:he.message);case 5:case"end":return ke.stop()}},fe)}));return function(ve){return Ee.apply(this,arguments)}}(),cn=function Ee(fe){var ve;fe=((ve=fe)===null||ve===void 0?void 0:ve.includes(".json"))?fe:"".concat(fe,".json"),E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:I.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var he=Object(P.a)(_.a.mark(function ke(){var We,He;return _.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,Object(Le.K)({url:fe});case 2:if(We=Ve.sent,We){Ve.next=5;break}return Ve.abrupt("return");case 5:return T.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ve.next=8,Object(Te.w)({id:We.shixun_identifier});case 8:if(He=Ve.sent,!(He==null?void 0:He.game_identifier)){Ve.next=12;break}return Object(de.z)("/tasks/".concat(He.game_identifier)),Ve.abrupt("return");case 12:(He==null?void 0:He.status)===2?Ee(He==null?void 0:He.message):(He==null?void 0:He.status)===3&&Ur(He==null?void 0:He.message);case 13:case"end":return Ve.stop()}},ke)}));function Be(){return he.apply(this,arguments)}return Be}()})},Ur=function(fe){E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:I.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",fe,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},dn=function(fe){fe.redo?E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:I.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var ve=Object(P.a)(_.a.mark(function Be(){var ke;return _.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,Object(Le.K)({id:fe.myshixun_identifier});case 2:ke=He.sent,ke&&(se.exercise_questions.find(function(Ge){return Ge.question_id===fe.question_id}).redo=!1,lt(Object(p.a)({},se)),Fr(fe));case 4:case"end":return He.stop()}},Be)}));function he(){return ve.apply(this,arguments)}return he}()}):Fr(fe)},fn=function(){var Ee=Object(P.a)(_.a.mark(function fe(ve){var he;return _.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(!ve.hack_identifier){ke.next=5;break}return ke.next=3,Object(Le.M)({id:ve.hack_identifier});case 3:he=ke.sent,(he==null?void 0:he.status)===0&&et.history.push("/myproblems/".concat(he.identifier,"?type=exercises&exercisesId=").concat(Me.categoryId,"&coursesId=").concat(Me.coursesId,"&login=").concat(Me.login,"&questionId=").concat(ve.question_id));case 5:case"end":return ke.stop()}},fe)}));return function(ve){return Ee.apply(this,arguments)}}(),gr=function(){var Ee=Object(P.a)(_.a.mark(function fe(ve,he,Be,ke){var We,He;return _.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(!((dt==null?void 0:dt.ip_limit)==="inner"||dt.ip_bind)){Ve.next=4;break}return Ve.next=3,Object(le.a)({ip_limit:dt==null?void 0:dt.ip_limit});case 3:We=Ve.sent;case 4:return Ve.next=6,Object(de.j)({exerciseId:Me.categoryId,ip:We,errmsgHide:!0,ip_limit:dt==null?void 0:dt.ip_limit,ip_bind:dt==null?void 0:dt.ip_bind}).catch(function(it){Mr(it)});case 6:if(ve){Ve.next=9;break}return console.error("handleSave no questionId params"),Ve.abrupt("return");case 9:return Ve.next=11,Object(Le.P)({questionId:ve,exercise_choice_id:he,answer_text:Be});case 11:He=Ve.sent,(He==null?void 0:He.status)===0&&(ke&&ke());case 13:case"end":return Ve.stop()}},fe)}));return function(ve,he,Be,ke){return Ee.apply(this,arguments)}}(),Br=function(){var Ee=Object(P.a)(_.a.mark(function fe(ve){var he,Be;return _.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,Object(Le.d)({id:Me.categoryId});case 2:if(he=We.sent,he){We.next=5;break}return We.abrupt("return");case 5:he.question_undo!==0||he.oj_undo!==0?(Be="",he.question_undo!==0&&he.oj_undo!==0?Be="\u6709 ".concat(he.question_undo," \u9898\u672A\u5B8C\u6210\uFF0C\u5305\u542B ").concat(he.oj_undo," \u4E2A\u7F16\u7A0B\u9898"):he.question_undo!==0&&he.oj_undo===0?Be="\u6709 ".concat(he.question_undo," \u9898\u672A\u5B8C\u6210"):he.question_undo===0&&he.oj_undo!==0&&(Be="\u6709 ".concat(he.oj_undo," \u7F16\u7A0B\u9898\u672A\u5B8C\u6210")),E.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:I.a.createElement("div",{className:"tc font16"},Be,I.a.createElement("br",null),ve?"\u5728".concat(Re()(he.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var He=Object(P.a)(_.a.mark(function Ve(){return _.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:ve?or():br();case 1:case"end":return gt.stop()}},Ve)}));function Ge(){return He.apply(this,arguments)}return Ge}()})):E.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:I.a.createElement("div",{className:"tc font16"},ve?"\u5728".concat(Re()(he.end_time).format("YYYY-MM-DD HH:mm"),"\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898"):"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){var He=Object(P.a)(_.a.mark(function Ve(){return _.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:ve?or():br();case 1:case"end":return gt.stop()}},Ve)}));function Ge(){return He.apply(this,arguments)}return Ge}()});case 6:case"end":return We.stop()}},fe)}));return function(ve){return Ee.apply(this,arguments)}}(),Hr=function(fe){return I.a.createElement("div",null,I.a.createElement(w.a,{strokeColor:{from:"#108ee9",to:"#87d068"},status:"active",percent:fe}),I.a.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026"))},pn=function(){var fe=0,ve=E.a.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:Hr(fe)}),he=setInterval(function(){fe<=100?(fe+=2,ve.update({content:Hr(fe)})):(E.a.destroyAll(),clearInterval(he))},50)},br=function(){var Ee=Object(P.a)(_.a.mark(function fe(){var ve;return _.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return pn(),Be.next=3,Object(Le.N)({categoryId:Me.categoryId,commit_method:1});case 3:ve=Be.sent,Object(je.b)(),ze({type:"exercise/setActionTabs",payload:Object(p.a)({},{removeEventListenerExitScreen:!0})}),(ve==null?void 0:ve.status)===0&&(T.b.success(ve==null?void 0:ve.message),Cr(!1),setTimeout(function(){E.a.info({title:"\u4EA4\u5377\u6210\u529F\uFF01",okText:"\u786E\u5B9A",onOk:function(){or()}})},3e3));case 7:case"end":return Be.stop()}},fe)}));return function(){return Ee.apply(this,arguments)}}(),hn=function(){var Ee=Object(P.a)(_.a.mark(function fe(ve,he){return _.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:gr(he,ve,null,function(){se.question_status.find(function(We){return We.ques_id===he}).ques_status=ve?1:0,se.exercise_questions.find(function(We){return We.question_id===he}).user_answer[0]=ve,lt(Object(p.a)({},se))});case 1:case"end":return ke.stop()}},fe)}));return function(ve,he){return Ee.apply(this,arguments)}}(),mn=function(fe,ve){gr(ve,fe,null,function(){se.question_status.find(function(he){return he.ques_id===ve}).ques_status=(fe==null?void 0:fe.length)?1:0,lt(Object(p.a)({},se))})},gn=function(fe,ve,he){gr(he,ve,fe,function(){se.question_status.find(function(Be){return Be.ques_id===he}).ques_status=fe?1:0,lt(Object(p.a)({},se))})},bn=function(fe,ve){gr(ve,null,fe,function(){se.question_status.find(function(he){return he.ques_id===ve}).ques_status=fe?1:0,lt(Object(p.a)({},se))})},Xr=function(fe,ve){var he,Be,ke,We,He,Ge,Ve;return I.a.createElement("div",null,I.a.createElement(g.a.Group,{disabled:(se==null||((he=se.exercise)===null||he===void 0)?void 0:he.user_exercise_status)===1,value:fe==null||((Be=fe.user_answer)===null||Be===void 0)?void 0:Be[0],onChange:function(gt){return hn(gt.target.value,fe==null?void 0:fe.question_id)},className:fe.user_score&&"edu-radio-".concat(fe.user_score===fe.question_score?"green":"red")},fe==null||((ke=fe.question_choices)===null||ke===void 0)?void 0:ke.map(function(it,gt){var Wt=fe.question_type==2,Zt=Wt?"":"".concat(zt[gt],".");return I.a.createElement("div",{className:_e.a.answerWrap,key:gt},I.a.createElement(g.a,{value:it==null?void 0:it.choice_id},I.a.createElement("span",{className:"mr3"},Zt),I.a.createElement(X.a,{className:_e.a.renderHtml,value:it==null?void 0:it.choice_text})))})),Object(xe.q)()&&(se==null||((We=se.exercise)===null||We===void 0)?void 0:We.answer_open)&&((se==null||((He=se.exercise)===null||He===void 0)?void 0:He.exercise_status)==3||(se==null||((Ge=se.exercise)===null||Ge===void 0)?void 0:Ge.user_exercise_status)==1)&&I.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",fe==null||((Ve=fe.standard_answer)===null||Ve===void 0)?void 0:Ve.map(function(it,gt){return I.a.createElement("span",null,zt[Number(it)-1])})))},vn=function(fe,ve){var he,Be,ke,We,He;return I.a.createElement("div",null,I.a.createElement(b.a.Group,{disabled:(se==null||((he=se.exercise)===null||he===void 0)?void 0:he.user_exercise_status)===1,defaultValue:fe==null?void 0:fe.user_answer,onChange:function(Ve){return mn(Ve,fe==null?void 0:fe.question_id)},className:fe.user_score&&"edu-checkbox-".concat(fe.user_score===fe.question_score?"green":"red")},fe==null||((Be=fe.question_choices)===null||Be===void 0)?void 0:Be.map(function(Ge,Ve){var it="".concat(zt[Ve],".");return I.a.createElement("div",{className:_e.a.answerWrap},I.a.createElement(b.a,{value:Ge==null?void 0:Ge.choice_id},I.a.createElement("span",{className:"mr3"},it),I.a.createElement(X.a,{className:_e.a.renderHtml,value:Ge==null?void 0:Ge.choice_text})))})),Object(xe.q)()&&(se==null||((ke=se.exercise)===null||ke===void 0)?void 0:ke.answer_open)&&(se==null||((We=se.exercise)===null||We===void 0)?void 0:We.exercise_status)==3&&I.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848\uFF1A",fe==null||((He=fe.standard_answer)===null||He===void 0)?void 0:He.map(function(Ge,Ve){return I.a.createElement("span",null,zt[Number(Ge)-1])})))},yn=function(fe,ve){return I.a.createElement(lr,{item:fe,answerData:se,onBlur:function(Be,ke){return gn(Be,ke,fe==null?void 0:fe.question_id)}})},_n=function(fe,ve){return I.a.createElement(Se,{item:fe,answerData:se,onBlur:function(Be){return bn(Be,fe==null?void 0:fe.question_id)}})},wn=function(fe,ve){return I.a.createElement(vr,{item:fe,answerData:se})},En=function(fe,ve){return I.a.createElement(ur,{item:fe,answerData:se})},$t=function(fe,ve){var he;return I.a.createElement(I.a.Fragment,null,I.a.createElement("h1",{className:"font14 current",onClick:function(){Qt[ve]=!Qt[ve],Wr(Object(p.a)({},Qt))}},!Qt[ve]&&I.a.createElement(J,null),Qt[ve]&&I.a.createElement(ae.a,null),I.a.createElement("span",{className:"ml5 c-grey-666"},fe)),I.a.createElement("ul",{className:_e.a.answerSheet,key:ve},!Qt[ve]&&(se==null||((he=se.exercise_questions)===null||he===void 0)?void 0:he.map(function(Be,ke){if(Be.question_type===ve){var We;return I.a.createElement("li",{onClick:function(){var Ge="Anchor_".concat(Be.q_position-1),Ve=document.getElementById(Ge);Ve&&setTimeout(function(){return Ve.scrollIntoView({block:"start",behavior:"smooth"})})},key:ke,className:(se==null||((We=se.question_status)===null||We===void 0)?void 0:We.some(function(He){return He.ques_id===Be.question_id&&!!He.ques_status}))&&_e.a.active},Be.q_position)}}))))};return I.a.createElement(t.a,{size:"large",spinning:zr},Qr&&I.a.createElement(ye.a,null),I.a.createElement("section",{className:"edu-container"},I.a.createElement("section",{className:"animated fadeIn"},I.a.createElement("aside",{className:"mt10"},Ot.showHeaderFooter&&I.a.createElement(r.a,{separator:">"},I.a.createElement(r.a.Item,null,I.a.createElement(G.Link,{to:"/classrooms/".concat(Me.coursesId,"/exercise")},(qe=Fe.userInfo)===null||qe===void 0||(($e=qe.course)===null||$e===void 0)?void 0:$e.course_name)),I.a.createElement(r.a.Item,null,I.a.createElement(G.Link,{to:"/classrooms/".concat(Me.coursesId,"/exercise")},"\u8BD5\u5377")),I.a.createElement(r.a.Item,null,I.a.createElement(G.Link,{to:"/classrooms/".concat(Me.coursesId,"/exercise/").concat(Me.categoryId,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),I.a.createElement(r.a.Item,null,(ht=Fe.userInfo)===null||ht===void 0?void 0:ht.real_name))),I.a.createElement("aside",{className:[_e.a.title,"mt10"].join(" ")},I.a.createElement(d.a,{style:{width:"100%"},align:"middle"},I.a.createElement(l.a,{flex:"1"},I.a.createElement("div",{className:_e.a.title},(Ot==null?void 0:Ot.showHeaderFooter)&&I.a.createElement(G.Link,{to:"/classrooms/".concat(Me.coursesId,"/exercise/").concat(Me.categoryId,"/detail")},I.a.createElement(ne.a,{className:"font16 c-black"})),I.a.createElement("strong",{className:"font24 ml5"},se==null||((Pe=se.exercise)===null||Pe===void 0)?void 0:Pe.exercise_name),(se==null||((De=se.exercise)===null||De===void 0)?void 0:De.is_random)&&I.a.createElement("span",{className:_e.a.randomFlag},"\u968F\u673A"),I.a.createElement(de.g,{status:[de.c[se==null||((Je=se.exercise)===null||Je===void 0)?void 0:Je.exercise_status]]}))),I.a.createElement(l.a,null,Object(xe.c)()&&I.a.createElement(c.a,{type:"primary",onClick:un},"\u6253\u56DE\u91CD\u505A"),I.a.createElement(l.a,null,((se==null||((Et=se.exercise)===null||Et===void 0)?void 0:Et.commit_status)==2||(se==null||((st=se.exercise)===null||st===void 0)?void 0:st.commit_status)==1)&&Object(xe.q)()&&I.a.createElement(c.a,{type:"primary",onClick:function(){return D.c.push("/classrooms/".concat(Me.coursesId,"/exercise/").concat(Me.categoryId,"/export/").concat(Me.login))}},I.a.createElement(me.a,null),"\u5BFC\u51FA")),!(Object(xe.c)()||Object(xe.q)()&&(se==null||((ut=se.exercise)===null||ut===void 0)?void 0:ut.user_exercise_status)==1)&&!!(se==null||((Ze=se.exercise)===null||Ze===void 0)?void 0:Ze.left_time)&&I.a.createElement("aside",{className:"".concat(_e.a.countDown," ").concat(nn)},"\u5269\u4F59\u65F6\u95F4:",I.a.createElement(tr,{value:qr,onFinish:ln})))))),xr.status===0&&I.a.createElement(d.a,{className:"mt10"},I.a.createElement(l.a,{flex:ir?"316px":"16px"},I.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Yr&&I.a.createElement(pe,{number:(se==null||((bt=se.exercise)===null||bt===void 0)?void 0:bt.photo_count)-(se==null||((yt=se.exercise)===null||yt===void 0)?void 0:yt.take_photo),time:(mt=se.exercise)===null||mt===void 0?void 0:mt.left_time,update:mr,supportCamera:function(fe){fe===2?(mr(),Dr(dt==null?void 0:dt.screen_open)):fe===1&&setTimeout(function(){return et.history.push("/")},3e3)}}),I.a.createElement("div",{className:"relative",style:{minHeight:236}},ir&&I.a.createElement("aside",{className:"bg-white p16"},I.a.createElement(d.a,null,I.a.createElement(l.a,{span:8},I.a.createElement("span",{className:"font16 blod"},"\u7B54\u9898\u5361")),I.a.createElement(l.a,{span:16},Object(xe.q)()&&I.a.createElement("div",{className:"tr"},I.a.createElement("span",{className:_e.a.answerYes}),"\u5DF2\u7B54",I.a.createElement("span",{className:"".concat(_e.a.answerNo," ml10")}),"\u672A\u7B54"))),I.a.createElement("aside",{className:_e.a.answerInfo},I.a.createElement(d.a,null,Object(xe.q)()&&I.a.createElement(I.a.Fragment,null,I.a.createElement(l.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),I.a.createElement(l.a,{span:12,className:"tr c-blue"},se==null||((It=se.question_status)===null||It===void 0||((Mt=It.filter(function(Ee){return!!Ee.ques_status}))===null||Mt===void 0))?void 0:Mt.length," / ",se==null||((Pt=se.exercise_types)===null||Pt===void 0)?void 0:Pt.q_counts),I.a.createElement(l.a,{span:24},I.a.createElement(w.a,{trailColor:"#c3ced2",percent:(se==null||((Ft=se.question_status)===null||Ft===void 0||((Ke=Ft.filter(function(Ee){return!!Ee.ques_status}))===null||Ke===void 0))?void 0:Ke.length)/(se==null||((nt=se.exercise_types)===null||nt===void 0)?void 0:nt.q_counts)*100,showInfo:!1}))),I.a.createElement(l.a,null,I.a.createElement("span",{className:"c-grey-333"},"\u5171 ",I.a.createElement("span",{className:"c-blue-4ca"},(se==null||((at=se.exercise_types)===null||at===void 0)?void 0:at.q_counts)||(se==null||((ft=se.exercise_scores)===null||ft===void 0||((St=ft.exercise_types)===null||St===void 0))?void 0:St.q_counts))," \u9898\uFF1A"),I.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",I.a.createElement("span",{className:"c-blue-4ca"},(se==null||((At=se.exercise_types)===null||At===void 0)?void 0:At.q_scores)||(se==null||((Rt=se.exercise_scores)===null||Rt===void 0||((Tt=Rt.exercise_types)===null||Tt===void 0))?void 0:Tt.q_scores))," \u5206")))),I.a.createElement(d.a,null,I.a.createElement(l.a,{flex:"1"},I.a.createElement("aside",{className:_e.a.cardList},(se==null||((jt=se.exercise_types)===null||jt===void 0)?void 0:jt.q_singles)>0&&$t("\u5355\u9009\u9898",0),(se==null||((kt=se.exercise_types)===null||kt===void 0)?void 0:kt.q_doubles)>0&&$t("\u591A\u9009\u9898",1),(se==null||((Ct=se.exercise_types)===null||Ct===void 0)?void 0:Ct.q_judges)>0&&$t("\u5224\u65AD\u9898",2),(se==null||((Ut=se.exercise_types)===null||Ut===void 0)?void 0:Ut.q_nulls)>0&&$t("\u586B\u7A7A\u9898",3),(se==null||((Lt=se.exercise_types)===null||Lt===void 0)?void 0:Lt.q_mains)>0&&$t("\u7B80\u7B54\u9898",4),(se==null||((Bt=se.exercise_types)===null||Bt===void 0)?void 0:Bt.q_shixuns)>0&&$t("\u5B9E\u8BAD\u9898",5),(se==null||((Ht=se.exercise_types)===null||Ht===void 0)?void 0:Ht.q_pros)>0&&$t("\u7F16\u7A0B\u9898",6))))),I.a.createElement("div",{className:_e.a.fold,onClick:function(){return $r(!ir)}},ir&&I.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!ir&&I.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),I.a.createElement(l.a,{flex:"1"},I.a.createElement("section",{className:[_e.a.bg,"pt30","pl30","pr30","pb30","mb50","ml20"].join(" ")},I.a.createElement("div",null,se==null||((_t=se.exercise_questions)===null||_t===void 0)?void 0:_t.map(function(Ee,fe){var ve,he,Be,ke,We,He=Ee.question_type==5?Ee.shixun_name:Ee.question_title;return I.a.createElement("div",{className:_e.a.questionItem,id:"Anchor_".concat(fe)},I.a.createElement("div",{className:_e.a.itemType},I.a.createElement(d.a,null,I.a.createElement(l.a,{flex:"1"},I.a.createElement("span",{className:"font16 c-blue mr5"},Ee.q_position,"\u3001",fr[Ee.question_type]),I.a.createElement("span",{className:"c-grey-999 mr5"},"(",Ee.question_score,"\u5206)")),I.a.createElement(l.a,null,Ee.question_type<3&&Ee.standard_answer_show&&I.a.createElement("span",{className:"font16 ml20"},"\u6B63\u786E\u7B54\u6848\uFF1A",Ee==null?void 0:Ee.standard_answer_show),(Object(xe.c)()||Object(xe.q)()&&(se==null||((ve=se.exercise)===null||ve===void 0)?void 0:ve.user_exercise_status)>0&&(se==null||((he=se.exercise)===null||he===void 0)?void 0:he.open_score))&&I.a.createElement("span",{className:"font16 ml20"},Ee.user_score&&I.a.createElement("span",null,I.a.createElement("span",{className:Er[Number(Ee==null?void 0:Ee.answer_status)]||"c-orange-ff9"},Ee.user_score)," \u5206"),!Ee.user_score&&I.a.createElement("span",{className:"c-red"},"\u672A\u8BC4")),Ee.question_type==5&&(se==null||((Be=se.exercise)===null||Be===void 0)?void 0:Be.user_exercise_status)===0&&Ee.answer_status!=3&&I.a.createElement(c.a,{type:"primary",className:"font16 ml20",onClick:function(){return dn(Ee)}},"\u8FDB\u5165\u7B54\u9898"),Object(xe.q)()&&(se==null||((ke=se.exercise)===null||ke===void 0)?void 0:ke.user_exercise_status)===0&&Ee.question_type==6&&I.a.createElement(c.a,{type:"primary",className:"font16 ml20",onClick:function(){return fn(Ee)}},"\u8FDB\u5165\u7B54\u9898")))),I.a.createElement("div",{className:"blod"},I.a.createElement(X.a,{value:He})),Ee.question_type==0&&Xr(Ee,fe),Ee.question_type==2&&Xr(Ee,fe),Ee.question_type==1&&vn(Ee,fe),Ee.question_type==3&&yn(Ee,fe),Ee.question_type==4&&_n(Ee,fe),Ee.question_type==5&&wn(Ee,fe),Ee.question_type==6&&En(Ee,fe),(Ee==null?void 0:Ee.answer_comments)&&I.a.createElement("div",{className:"mt30"},Ee==null||((We=Ee.answer_comments)===null||We===void 0)?void 0:We.map(function(Ge,Ve){var it,gt;return I.a.createElement("div",null,I.a.createElement(d.a,{align:"middle",gutter:[0,10]},I.a.createElement(l.a,{flex:"50px"},I.a.createElement("img",{src:dr.a.API_SERVER+"/images/"+((it=Ge.user)===null||it===void 0?void 0:it.image_url),width:"40",style:{borderRadius:40}})),I.a.createElement(l.a,{flex:"1"},Ge.updated_at,I.a.createElement("br",null),(gt=Ge.user)===null||gt===void 0?void 0:gt.name),I.a.createElement(l.a,{className:"c-grey-c"},Ge.shixun_chanllge_position&&I.a.createElement("span",null,"\u7B2C",Ge.shixun_chanllge_position,"\u5173"),Ee.question_type!==4&&I.a.createElement("span",null,"\u539F\u59CB\u5F97\u5206",Ge.origin_score,"\u5206 \uFF0C")," \u4FEE\u6B63\u4E3A",Ge.score,"\u5206")),Ge.comment&&I.a.createElement(d.a,{align:"middle",gutter:[0,10]},I.a.createElement(l.a,{flex:"50px"}),I.a.createElement(l.a,{flex:"1"},I.a.createElement(wr,{autoSize:!0,value:Ge.comment,disabled:!0}))))})))}))),Object(xe.q)()&&(se==null||((pt=se.exercise)===null||pt===void 0)?void 0:pt.user_exercise_status)===0&&I.a.createElement(d.a,{className:"mt30 mb50"},I.a.createElement(l.a,{flex:"1"}),I.a.createElement(l.a,null,!!(se==null||((wt=se.exercise)===null||wt===void 0)?void 0:wt.left_time)&&I.a.createElement("span",{className:"c-grey-999 font12 mr20"},"\u4FDD\u5B58\u6216\u8005\u79BB\u5F00\u9875\u9762\u540E\uFF0C\u7CFB\u7EDF\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u5230\u8FBE\u65F6\u957F\u7CFB\u7EDF\u5C06\u81EA\u52A8\u4EA4\u5377"),I.a.createElement(c.a,{className:"".concat(_e.a.submitButton," mr10"),type:"default",onClick:function(){return Br(!0)}},"\u4FDD\u5B58"),I.a.createElement(c.a,{className:_e.a.submitButton,type:"primary",onClick:function(){return Br(!1)}},"\u4EA4\u5377"))))),xr.status!==0&&I.a.createElement(_r,{data:xr})))},nr=y.default=Object(D.a)(function(Qe){var Ue=Qe.loading,Ce=Qe.user,qe=Qe.globalSetting;return{globalSetting:qe,user:Ce,loading:Ue.effects}})(rr)},Ot1p:function(e,y,i){"use strict";var u=i("2qtc"),t=i("kLXV"),v=i("rAM+"),d=i("tJVT"),f=i("jrin"),c=i("q1tI"),n=i.n(c),l=i("VrN/"),o=i.n(l),r=i("bdgK"),s=i("p77/"),b=i("Bd2K"),h=i("ELLl"),g=i("19Vz"),S=i("lZu9"),w=i("kSUc"),C=i("9Bee"),T=i("0Owb"),j=i("dejd"),E=i("C+DQ"),O=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function _(de){var le=de.onActionCallback,xe=de.title,je=de.icon,Le=de.actionName,Te=de.className,X=Te===void 0?"":Te,ie=de.children;function ge(){le(Le)}return n.a.createElement("a",{title:xe,className:X,onClick:ge},n.a.createElement("i",{className:"md-iconfont ".concat(je)}),ie)}var p=function(de){var le=de.watch,xe=de.showNullButton,je=de.onActionCallback,Le=de.fullScreen,Te=[].concat(O,[{title:"".concat(le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(le?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return n.a.createElement("ul",{className:"markdown-toolbar-container"},Te.map(function(X,ie){return n.a.createElement("li",{key:ie},X.actionName?n.a.createElement(_,Object(T.a)({},X,{onActionCallback:je})):n.a.createElement("span",{className:"v-line"}))}),xe?n.a.createElement("li",null,n.a.createElement(_,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:je},n.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,n.a.createElement("li",{className:"btn-full-screen"},n.a.createElement(_,{icon:"".concat(Le?"icon-shrink":"icon-enlarge"),title:Le?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:je})))},P=i("M8RZ"),N=i("+L6B"),R=i("2/Rp"),A=i("y8nQ"),L=i("Vl3Y"),$=i("5NDa"),V=i("5rEg"),Y={labelCol:{span:4},wrapperCol:{span:20}},I=function(de){var le=de.callback,xe=de.onCancel;function je(Le){le(Le)}return n.a.createElement(L.a,Object(T.a)({},Y,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:je}),n.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},n.a.createElement(V.a,null)),n.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},n.a.createElement(V.a,null)),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(R.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(R.a,{type:"ghost",onClick:xe},"\u53D6\u6D88")))},te=i("7ahc"),G=i("HmJG"),D=i("BjJ7"),F=L.a.useForm,z={width:280,marginRight:10},q={labelCol:{span:5},wrapperCol:{span:19}},M=function(de){var le=de.callback,xe=de.onCancel,je=F(),Le=Object(d.a)(je,1),Te=Le[0];function X(Se){le(Se)}function ie(Se){Te.setFieldsValue({src:"/api/attachments/".concat(Se.id)})}function ge(Se){var Ie=Se.target.files[0];ae(Ie,ie)}return n.a.createElement(L.a,Object(T.a)({form:Te},q,{className:"upload-image-panel",onFinish:X}),n.a.createElement(L.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},n.a.createElement("div",{className:"flex-container"},n.a.createElement(L.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},n.a.createElement(V.a,{style:z})),n.a.createElement(J,{onFileChange:ge}))),n.a.createElement(L.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},n.a.createElement(V.a,{style:{width:264}})),n.a.createElement(L.a.Item,{style:{textAlign:"right"}},n.a.createElement(R.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(R.a,{type:"ghost",onClick:xe},"\u53D6\u6D88")))};function J(de){var le=de.onFileChange;return n.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",n.a.createElement("input",{type:"file",accept:"image/*",onChange:le}))}function ae(de,le){if(!de)throw new String("\u6CA1\u6709\u6587\u4EF6");var xe=new FormData;xe.append("editormd-image-file",de),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var je=new window.XMLHttpRequest;je.withCredentials=!0,je.addEventListener("load",function(Le){le(JSON.parse(Le.target.responseText))},!1),je.addEventListener("error",function(Le){console.error(Le)},!1),je.open("POST","".concat(D.a,"/api/attachments.json")),je.send(xe)}var ne=i("giR+"),me=i("fyUT"),be=i("7Kak"),K=i("9yH6"),Ne=K.a.Group,ue={margin:"0 8px"},ee=function(de){var le=de.callback,xe=de.onCancel;function je(Le){le(Le)}return n.a.createElement(L.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:je},n.a.createElement("div",{className:"flex-container"},n.a.createElement("span",{style:ue},"\u5355\u5143\u683C\u6570\uFF1A"),n.a.createElement("span",{style:ue},"\u884C\u6570"),n.a.createElement(L.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},n.a.createElement(me.a,null)),n.a.createElement("span",{style:ue},"\u5217\u6570"),n.a.createElement(L.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},n.a.createElement(me.a,null))),n.a.createElement("div",{className:"flex-container",style:{marginTop:12}},n.a.createElement("span",{style:ue},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),n.a.createElement(L.a.Item,{name:"align"},n.a.createElement(Ne,null,n.a.createElement(K.a,{value:"default"},n.a.createElement("i",{className:"fa fa-align-justify"})),n.a.createElement(K.a,{value:"left"},n.a.createElement("i",{className:"fa fa-align-left"})),n.a.createElement(K.a,{value:"center"},n.a.createElement("i",{className:"fa fa-align-center"})),n.a.createElement(K.a,{value:"right"},n.a.createElement("i",{className:"fa fa-align-right"}))))),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(R.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(R.a,{type:"ghost",onClick:xe},"\u53D6\u6D88")))},Z="link",re="upload-image",ce="code-block",U="add-table",B="------------",oe={default:B,left:":".concat(B),center:":".concat(B,":"),right:"".concat(B,":")},k=i("9VGf"),x,a;function m(){}var H=0,W=1e4,Q="\u2581";function pe(de){return/^\d+$/.test(de)?"".concat(de,"px"):de}var ye=navigator.platform.toUpperCase().indexOf("MAC")>=0,we=ye?"Cmd":"Ctrl",Re=(x={},Object(f.a)(x,we+"-B","bold"),Object(f.a)(x,we+"-I","italic"),x),Oe=(a={},Object(f.a)(a,Z,"\u6DFB\u52A0\u94FE\u63A5"),Object(f.a)(a,ce,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(f.a)(a,re,"\u6DFB\u52A0\u56FE\u7247"),Object(f.a)(a,U,"\u6DFB\u52A0\u8868\u683C"),a),_e=y.a=function(de){var le=de.defaultValue,xe=le===void 0?"":le,je=de.onChange,Le=de.width,Te=Le===void 0?"100%":Le,X=de.height,ie=X===void 0?400:X,ge=de.miniToolbar,Se=ge===void 0?!1:ge,Ie=de.isFocus,rt=Ie===void 0?!1:Ie,ot=de.watch,tt=de.id,Dt=tt===void 0?"markdown-editor-id":tt,vt=de.showResizeBar,Kt=vt===void 0?!1:vt,sr=de.noStorage,vr=sr===void 0?!1:sr,qt=de.showNullButton,yr=qt===void 0?!1:qt,ur=de.fullScreen,Yt=ur===void 0?!1:ur,Jt=de.onBlur,er=de.onCMBeforeChange,lr=de.className,Or=lr===void 0?"":lr,cr=de.placeholder,_r=cr===void 0?"":cr,dr=de.values,tr=dr===void 0?"":dr,wr=Object(c.useState)(null),zt=Object(d.a)(wr,2),Ae=zt[0],Sr=zt[1],Er=Object(c.useState)(xe),fr=Object(d.a)(Er,2),rr=fr[0],nr=fr[1],Qe=Object(c.useState)(ot),Ue=Object(d.a)(Qe,2),Ce=Ue[0],qe=Ue[1],$e=Object(c.useState)(Yt),ht=Object(d.a)($e,2),Pe=ht[0],De=ht[1],Je=Object(c.useState)(""),Et=Object(d.a)(Je,2),st=Et[0],ut=Et[1],Ze=Object(c.useState)(0),bt=Object(d.a)(Ze,2),yt=bt[0],mt=bt[1],It=Object(c.useState)(ie),Mt=Object(d.a)(It,2),Pt=Mt[0],Ft=Mt[1],Ke=Object(c.useState)(!1),nt=Object(d.a)(Ke,2),at=nt[0],ft=nt[1],St=Object(c.useRef)(),At=Object(c.useRef)(),Rt=Object(c.useRef)(),Tt=Object(c.useRef)();Object(c.useEffect)(function(){nr(tr),Ae==null||Ae.setValue(tr)},[tr]),Object(c.useEffect)(function(){if(St.current){var Xe=function(et,Me){var ct=Me.clipboardData;if(ct){var Ye=ct.types.toString(),se=ct.items;if(Ye==="text/html,Files"||Ye==="Files"){var lt=se[1];Ye==="Files"&&(lt=se[0]),lt.kind==="file"&&lt.type.match(/^image\//i)&&ae(lt.getAsFile(),function(xt){xt.id?Fe.replaceSelection("![,](/api/attachments/".concat(xt.id,")")):(xt==null?void 0:xt.status)===401&&(document.location.href="/user/login")})}else return!0}return!0},Fe=o.a.fromTextArea(St.current,{mode:"markdown",inputStyle:"contenteditable",lineNumbers:!Se,lineWrapping:!0,value:xe,autoCloseTags:!0,autoCloseBrackets:!0});return Fe.on("paste",Xe),Sr(Fe),function(){Fe.off("paste",Xe)}}},[]);var jt=Object(c.useCallback)(function(){if(At.current)try{var Xe=At.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,Fe=At.current.getElementsByClassName("markdown-editor-body")[0];Pe?Fe.style.height="calc(100vh - ".concat(Xe,"px)"):Fe.style.height="".concat(Pt-Xe,"px")}catch(ze){console.log(ze,"---- to set md editor body height")}},[Pt,At,Pe]);Object(c.useEffect)(function(){function Xe(){var ze=new r.default(function(et){var Me=Object(v.a)(et),ct;try{for(Me.s();!(ct=Me.n()).done;){var Ye=ct.value;(Ye.target.offsetHeight>0||Ye.target.offsetWidth>0)&&(jt(),Ae.setSize("100%","100%"),Ae.refresh())}}catch(se){Me.e(se)}finally{Me.f()}});return ze.observe(St.current.parentElement),ze}if(Ae){var Fe=Xe();return function(){Fe.unobserve(St.current.parentElement)}}},[Ae,jt]),Object(c.useEffect)(function(){if(Ae){for(var Xe=[],Fe=function(){var Ye=et[ze];Me=Object(d.a)(Ye,2);var se=Me[0],lt=Me[1],xt=Object(f.a)({},se,function(){kt(lt)});Xe.push(xt),Ae.addKeyMap(xt)},ze=0,et=Object.entries(Re);ze<et.length;ze++){var Me;Fe()}return function(){var ct=Object(v.a)(Xe),Ye;try{for(ct.s();!(Ye=ct.n()).done;){var se=Ye.value;Ae.removeKeyMap(se)}}catch(lt){ct.e(lt)}finally{ct.f()}}}},[Ae]),Object(c.useEffect)(function(){Yt!==Pe&&De(Yt)},[Yt]),Object(k.a)(function(){if(!vr&&yt>0){var Xe=new Date().getTime(),Fe=window.sessionStorage.getItem(Dt);Xe>=yt+W&&(!Fe||Fe!==rr)&&(window.sessionStorage.setItem(Dt,rr),ft(!0))}},W),Object(c.useEffect)(function(){qe(ot)},[Ae,ot]),Object(c.useEffect)(function(){Ae&&(rt&&Ae.focus())},[Ae,rt]),Object(c.useEffect)(function(){if(Ce&&Ae){var Xe=function(et){var Me=et.target;if(Tt.current){var ct=Me.scrollTop/Me.scrollHeight;Tt.current.scrollTop=Tt.current.scrollHeight*ct}},Fe=Ae.getScrollerElement();return Fe.addEventListener("scroll",Xe),function(){Fe.removeEventListener("scroll",Xe)}}},[Ae,Ce]),Object(c.useEffect)(function(){if(Ae&&er){var Xe=function(ze,et){er(ze,et)};return Ae.on("beforeChange",Xe),function(){Ae.off("beforeChange",Xe)}}},[Ae,er]),Object(c.useEffect)(function(){if(Ae&&Jt){var Xe=function(){Jt(Ae.getValue())};return Ae.on("blur",Xe),function(){Ae.off("blur",Xe)}}},[Ae,Jt]),Object(c.useEffect)(function(){if(Ae){var Xe=function(ze){var et=ze.getValue();nr(et),mt(new Date().getTime()),ze.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),je&&je(et)};return Ae.on("change",Xe),function(){Ae.off("change",Xe)}}},[Ae,je]),Object(c.useEffect)(function(){Ae&&(xe==null?(Ae.setValue(""),nr("")):xe!==Ae.getValue()&&(Ae.setValue(xe),nr(xe)))},[Ae,xe]);var kt=Object(c.useCallback)(function(Xe){var Fe=Ae.getCursor(),ze=Ae.getSelection(),et=ze.split(`
`);switch(Xe){case"bold":return Ae.replaceSelection("**"+ze+"**"),ze===""&&Ae.setCursor(Fe.line,Fe.ch+2),Ae.focus();case"italic":return Ae.replaceSelection("*"+ze+"*"),ze===""&&Ae.setCursor(Fe.line,Fe.ch+1),Ae.focus();case"code":return Ae.replaceSelection("`"+ze+"`"),ze===""&&Ae.setCursor(Fe.line,Fe.ch+1),Ae.focus();case"inline-latex":return Ae.replaceSelection("`$$"+ze+"$$`"),ze===""&&Ae.setCursor(Fe.line,Fe.ch+3),Ae.focus();case"latex":return Ae.replaceSelection("```latex\n"+ze+"\n```"),Ae.setCursor(Fe.line+1,ze.length+1),Ae.focus();case"line-break":return Ae.replaceSelection(`<br/>
`),Ae.focus();case"list-ul":return ze===""?Ae.replaceSelection("- "+ze):Ae.replaceSelection(et.map(function(Me){return Me===""?"":"- ".concat(Me)}).join(`
`)),Ae.focus();case"list-ol":return ze===""?Ae.replaceSelection("1. "+ze):Ae.replaceSelection(et.map(function(Me,ct){return Me===""?"":"".concat(ct+1,". ").concat(Me)}).join(`
`)),Ae.focus();case"add-null-ch":return ze===""&&Ae.setCursor(Fe.line,Fe.ch+1),Ae.replaceSelection(Q),Ae.focus();case"eraser":return Ae.setValue(""),Ae.focus();case"trigger-watch":return qe(!Ce),Ae.focus();case"trigger-full-screen":return De(!Pe),Ae.focus();case Z:ut(Z);return;case ce:ut(ce);return;case re:ut(re);return;case U:ut(U);return;default:throw new Error}},[Ae,Ce,Pe]),Ct=Object(c.useCallback)(function(Xe){ut("");switch(st){case Z:var Fe=Xe.title,ze=Xe.link;return Ae.replaceSelection("[".concat(Fe,"](").concat(ze,")")),Ae.focus();case ce:var et=Xe.language,Me=Xe.content;return Ae.replaceSelection(["```"+et,Me,"```"].join(`
`)),Ae.focus();case re:var ct=Xe.src,Ye=Xe.alt;return Ae.replaceSelection("![ ".concat(Ye," ]( ").concat(ct,' "').concat(Ye,'" )')),Ae.focus();case U:for(var se=Xe.row,lt=Xe.col,xt=Xe.align,Vt=`
`,dt=0;dt<se;dt++){for(var Gt=[],pr=[],ar=0;ar<lt;ar++)dt===1&&pr.push(oe[xt]),Gt.push(" ");dt===1&&(Vt+="| ".concat(pr.join(" | "),` |
`)),Vt+="| ".concat(Gt.join(lt===1?"":" | "),` |
`)}return Ae.replaceSelection(Vt+`
`),Ae.focus();default:throw new Error}},[Ae,st]),Ut=Object(c.useMemo)(function(){switch(st){case Z:return n.a.createElement(I,{callback:Ct,onCancel:Lt});case ce:return n.a.createElement(te.b,{callback:Ct,onCancel:Lt});case re:return n.a.createElement(M,{callback:Ct,onCancel:Lt});case U:return n.a.createElement(ee,{callback:Ct,onCancel:Lt});default:return null}},[st]);function Lt(){ut("")}Object(c.useEffect)(function(){if(Rt.current){var Xe=function(se){Me=!0,ct=se.pageY},Fe=function(){Me=!1},ze=function(se){if(Me){var lt=se.pageY-ct;lt<0&&(lt=0),lt>300&&(lt=300);var xt=ie+lt+"px";Ft(xt)}},et=Rt.current,Me=!1,ct=0;return et.addEventListener("mousedown",Xe),document.addEventListener("mousemove",ze),document.addEventListener("mouseup",Fe),function(){et.removeEventListener("mousedown",Xe),document.removeEventListener("mousemove",ze),document.removeEventListener("mouseup",Fe)}}},[Ae,Rt]),Object(c.useEffect)(function(){Ft(ie)},[ie]);var Bt=pe(Te),Ht=pe(Pt),_t={width:Bt,height:Ht},pt=Object(c.useMemo)(function(){if(yt){var Xe=new Date(yt),Fe=Xe.getHours(),ze=Xe.getMinutes(),et=Xe.getSeconds();return Fe=Fe<10?"0"+Fe:Fe,ze=ze<10?"0"+ze:ze,et=et<10?"0"+et:et,"".concat(Fe,":").concat(ze,":").concat(et)}return 0},[yt]);function wt(){window.sessionStorage.removeItem(Dt),ft(!1),mt(0)}function Ot(){ft(!1),mt(0),Ae.setValue(window.sessionStorage.getItem(Dt))}return n.a.createElement(c.Fragment,null,n.a.createElement("div",{className:"markdown-editor-wrapper",ref:At},n.a.createElement("div",{className:"markdown-editor-container ".concat(Or," ").concat(Ce?"on-preview":""," ").concat(Se?"mini":""," ").concat(Pe?"full-screen":""),style:_t},n.a.createElement(p,{watch:Ce,fullScreen:Pe,showNullButton:yr,onActionCallback:kt}),n.a.createElement("div",{className:"markdown-editor-body"},n.a.createElement("div",{className:"codemirror-container"},n.a.createElement("textarea",{ref:St,placeholder:_r})),Ce?n.a.createElement("div",{ref:Tt,className:"preview-container"},n.a.createElement(C.a,{value:rr})):null))),Kt?n.a.createElement("a",{ref:Rt,className:"editor-resize"}):null,n.a.createElement(P.a,null,Oe[st]?n.a.createElement(t.a,{centered:!0,title:Oe[st],visible:!0,onCancel:Lt,footer:null},Ut):null))}},V5fa:function(e,y,i){e.exports={flex_box_center:"flex_box_center___1_S53",flex_space_between:"flex_space_between___1jn1m",flex_box_vertical_center:"flex_box_vertical_center___3ENQs",flex_box_center_end:"flex_box_center_end___1RjJf",flex_box_column:"flex_box_column___3-6wq",bg:"bg___3wGkV",title:"title___1QMPU",questionIcons:"questionIcons___2kqHA",green:"green___3sUty",orange:"orange___1IwUK",greenTip:"greenTip___2LD-4",redTip:"redTip___Ua25P",orangeTip:"orangeTip___1P_qu",pollDesc:"pollDesc___12pG2",answered:"answered___12rTH",unanswer:"unanswer___2WW2x",anchor:"anchor___K9-2U",answerFlag:"answerFlag___3jqRB",flagActive:"flagActive___38hkf",flagHalf:"flagHalf___1rgyT",answerStudentFlag:"answerStudentFlag___2zRLo",answerStudentActive:"answerStudentActive___2T-mu",questionItem:"questionItem___LqD7i",itemType:"itemType___1pbUF",itemFlag:"itemFlag___3xnGm",answerWrap:"answerWrap___13WPD",answerSubjective:"answerSubjective___BuIEZ",otherInput:"otherInput___3j4KI",submitButton:"submitButton___3lR03",randomFlag:"randomFlag___HVH41",answerTrue:"answerTrue___3EG1E",answerFalse:"answerFalse___zj_y6",answerHalf:"answerHalf___27vGH",renderHtml:"renderHtml___1U3SR",simpleText:"simpleText___1ljHF",answerYes:"answerYes___nDZ92",answerNo:"answerNo___1DhaR",answerInfo:"answerInfo___150u3",answerSheet:"answerSheet___1m3xL",active:"active___I4C3w",countDown:"countDown___1gxag",red:"red___1J5W8",fold:"fold___1XoX9",cardList:"cardList___vfXeA"}},ZW9T:function(e,y,i){"use strict";i.d(y,"a",function(){return j});var u=i("k1fw"),t=i("miYZ"),v=i("tsqr"),d=i("rAM+"),f=i("tJVT"),c=i("q1tI"),n=i.n(c),l=i("bdgK");function o(E,O,_,p,P){var N=O.getWordUntilPosition(_),R={startLineNumber:_.lineNumber,endLineNumber:_.lineNumber,startColumn:N.startColumn,endColumn:N.endColumn},A=p.map(function(L){return{label:L,kind:E.languages.CompletionItemKind.Keyword,insertText:L,insertTextRules:E.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:R}});return P.map(function(L){A.push(Object(u.a)(Object(u.a)({},L),{},{range:R}))}),A}var r=function(E){var O={label:"ifelse",kind:E.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:E.languages.CompletionItemInsertTextRule.InsertAsSnippet},_=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];E.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(R,A){var L=o(E,R,A,_,[O]);return{suggestions:L}}});var p=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];E.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(R,A){var L=[{label:"print",kind:E.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:E.languages.CompletionItemInsertTextRule.InsertAsSnippet}],$=o(E,R,A,p,L);return{suggestions:$}}});var P=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];E.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(R,A){var L=[O,{label:"main",kind:E.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:E.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:E.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:E.languages.CompletionItemInsertTextRule.InsertAsSnippet}],$=o(E,R,A,P,L);return{suggestions:$}}})},s="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";function b(E){return/^\d+$/.test(E)?"".concat(E,"px"):E}function h(){}var g=!1,S={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function w(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=E;if(Array.isArray(E)){for(var _=0;_<E.length;_++){var p=S[E[_]];if(p)return p}return O[0]}return S[O]||O}var C=null,T=y.b=function(E){var O=E.width,_=O===void 0?"100%":O,p=E.height,P=p===void 0?"100%":p,N=E.value,R=E.language,A=R===void 0?"javascript":R,L=E.style,$=L===void 0?{}:L,V=E.options,Y=V===void 0?{}:V,I=E.overrideServices,te=I===void 0?{}:I,G=E.theme,D=G===void 0?"vs-dark":G,F=E.onEditBlur,z=E.onSave,q=E.autoHeight,M=q===void 0?!1:q,J=E.forbidCopy,ae=J===void 0?!1:J,ne=E.onChange,me=ne===void 0?h:ne,be=E.editorDidMount,K=be===void 0?h:be,Ne=E.onFocus,ue=Ne===void 0?h:Ne,ee=Object(c.useRef)(),Z=Object(c.useRef)({}),re=Object(c.useState)(!1),ce=Object(f.a)(re,2),U=ce[0],B=ce[1];function oe(){var de;return ee.current&&(de=new l.default(function(le){var xe=Object(d.a)(le),je;try{for(xe.s();!(je=xe.n()).done;){var Le=je.value;(Le.target.offsetHeight>0||Le.target.offsetWidth>0)&&Z.current.instance.layout()}}catch(Te){xe.e(Te)}finally{xe.f()}}),de.observe(ee.current)),de}function k(){v.b.warn(decodeURIComponent(s))}Object(c.useEffect)(function(){var de=Z.current.instance;if(N!=null&&de&&U){var le=de.getModel();le&&N!==le.getValue()&&(g=!0,le.setValue(N),de.layout(),g=!1)}},[N,U,Z.current]);function x(){var de=Z.current.instance;if(de){var le=de.getSelection(),xe=Z.current.pastePos||{},je=new C.Range(xe.startLineNumber||le.endLineNumber,xe.startColumn||le.endColumn,xe.endLineNumber||le.endLineNumber,xe.endColumn||le.endColumn);setTimeout(function(){de.executeEdits("",[{range:je,text:""}])},300)}}function a(de){(window.navigator.platform.match("Mac")?de.metaKey:de.ctrlKey)&&de.keyCode==83&&(de.preventDefault(),z())}var m=function(){if(M){var le=Z.current.instance.getContentHeight();le<1800?Oe(le<P?P:le):Oe(1800)}};Object(c.useEffect)(function(){ee.current&&!U&&i.e(23).then(i.t.bind(null,"M/lh",7)).then(function(de){C=de,r(C),Z.current.instance=C.editor.create(ee.current,Object(u.a)({value:N,language:w(A),theme:D},Y),te);var le=Z.current.instance;K(le,C),setTimeout(function(){m()},500),Z.current.subscription=le.onDidChangeModelContent(function(je){g||(m(),me(le.getValue(),je))}),ae&&(le.addCommand(C.KeyMod.CtrlCmd|C.KeyMod.Shift|C.KeyCode.KEY_V,function(){return k(),null}),le.addCommand(C.KeyMod.CtrlCmd|C.KeyCode.KEY_C,function(){return k(),null})),F&&le.onDidBlurEditorWidget(function(){F(le.getValue())}),ue&&le.onDidFocusEditorText(function(){ue(le.getValue())}),ae&&(le.addCommand(C.KeyMod.CtrlCmd|C.KeyCode.KEY_V,function(){return k(),null}),le.onDidPaste(function(je){Z.current.pastePos=je}),window.addEventListener("paste",x));var xe=oe();return B(!0),function(){var je=Z.current.instance;je.dispose();var Le=je.getModel();Le&&Le.dispose(),Z.current.subscription&&Z.current.subscription.dispose(),ae&&window.removeEventListener("paste",x),xe.unobserve(ee.current)}})},[]),Object(c.useEffect)(function(){var de=Z.current.instance;if(de&&U)return document.addEventListener("keydown",a,!1),function(){document.removeEventListener("keydown",a)}},[z,U]),Object(c.useEffect)(function(){var de=Z.current.instance;if(de&&U){var le=w(A);C.editor.setModelLanguage(de.getModel(),le),console.log("language:",A,de.getModel(),le)}},[A,U]),Object(c.useEffect)(function(){var de=Z.current.instance;de&&U&&C.editor.setTheme(D)},[D,U]),Object(c.useEffect)(function(){var de=Z.current.instance;de&&U&&de.updateOptions(Y)},[JSON.stringify(Y),U]),Object(c.useEffect)(function(){var de=Z.current.instance;de&&U&&de.layout()},[_,P,U]);var H=Object(c.useState)(b(_)),W=Object(f.a)(H,2),Q=W[0],pe=W[1],ye=Object(c.useState)(b(P)),we=Object(f.a)(ye,2),Re=we[0],Oe=we[1],_e=Object(u.a)(Object(u.a)({},$),{},{width:Q,height:Re});return n.a.createElement("div",{className:"my-monaco-editor",ref:ee,style:_e})};function j(E){var O=E.width,_=O===void 0?"100%":O,p=E.height,P=p===void 0?"100%":p,N=E.original,R=E.modified,A=E.language,L=E.options,$=L===void 0?{}:L,V=Object(c.useRef)(),Y=Object(c.useState)(null),I=Object(f.a)(Y,2),te=I[0],G=I[1];function D(M){var J;return V.current&&(J=new l.default(function(ae){var ne=Object(d.a)(ae),me;try{for(ne.s();!(me=ne.n()).done;){var be=me.value;(be.target.offsetHeight>0||be.target.offsetWidth>0)&&M.layout()}}catch(K){ne.e(K)}finally{ne.f()}}),J.observe(V.current)),J}Object(c.useEffect)(function(){V.current&&i.e(23).then(i.t.bind(null,"M/lh",7)).then(function(M){C=M;var J=C.editor.createDiffEditor(V.current,Object(u.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},$));G(J);var ae=D(J);return function(){J.dispose();var ne=J.getModel();ne&&ne.dispose(),ae.unobserve(V.current)}})},[]),Object(c.useEffect)(function(){te&&te.setModel({original:C.editor.createModel(N,A),modified:C.editor.createModel(R,A)})},[N,R,A,te]);var F=b(_),z=b(P),q={width:F,height:z};return n.a.createElement("div",{className:"my-diff-editor",ref:V,style:q})}},bPs0:function(e,y,i){"use strict";i.d(y,"b",function(){return S});var u=i("k1fw"),t=i("WmNS"),v=i.n(t),d=i("9og8"),f=i("2qtc"),c=i("kLXV"),n=i("tJVT"),l=i("PpiC"),o=i("q1tI"),r=i.n(o),s=i("bntm"),b=i("V0Rq"),h=i("Ty5D"),g=i("9kvl"),S=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],w=function(T){var j=T.globalSetting,E=T.loading,O=T.user,_=T.exercise,p=T.dispatch,P=Object(l.a)(T,["globalSetting","loading","user","exercise","dispatch"]),N=Object(o.useState)({}),R=Object(n.a)(N,2),A=R[0],L=R[1],$=c.a.useModal(),V=Object(n.a)($,2),Y=V[0],I=V[1],te=Object(o.useRef)(null),G=Object(o.useState)(),D=Object(n.a)(G,2),F=D[0],z=D[1],q=Object(o.useState)(!0),M=Object(n.a)(q,2),J=M[0],ae=M[1],ne=Object(h.l)().query,me=Object(h.m)();Object(o.useEffect)(function(){var re,ce;return clearTimeout(te.current),document.addEventListener(Object(s.c)(),Z,!1),window.addEventListener("blur",ee,!1),((re=_.exerciseUserInfo)===null||re===void 0?void 0:re.screen_open)&&Object(s.a)()&&(p({type:"globalSetting/headerFooterToggle",payload:!1}),p({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),ae(!1)),((ce=_.exerciseUserInfo)===null||ce===void 0?void 0:ce.screen_open)&&!Object(s.a)()?c.a.info({icon:null,content:r.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",r.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",_.exerciseUserInfo.screen_num-_.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",r.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),onOk:function(){ae(!1),Object(s.d)(document.body),document.getElementById("root").addEventListener("click",be,!1)}}):document.getElementById("root").addEventListener("click",be,!1),function(){document.getElementById("root").removeEventListener("click",be,!1),document.removeEventListener(Object(s.c)(),Z,!1),window.removeEventListener("blur",ee,!1),clearTimeout(te.current)}},[]),Object(o.useEffect)(function(){setTimeout(function(){_.actionTabs.removeEventListenerExitScreen&&(clearTimeout(te.current),document.getElementById("root").removeEventListener("click",be,!1),document.removeEventListener(Object(s.c)(),Z,!1))},500)},[_.actionTabs]),Object(o.useEffect)(function(){setTimeout(function(){_.exerciseUserInfo.used_screen_num>_.exerciseUserInfo.screen_num?ue():J||K(),console.log("exercise.exerciseUserInfo.setTimeout:",JSON.stringify(_.exerciseUserInfo))},500),console.log("exercise.exerciseUserInfo:",JSON.stringify(_.exerciseUserInfo),J)},[_.exerciseUserInfo]);var be=function(ce){!Object(s.a)()&&ce.target.nodeName!=="A"&&ce.target.nodeName!=="BUTTON"&&ce.target.innerHTML!=="\u786E \u5B9A"&&(Object(s.d)(document.body),console.log("documentClick.full"))},K=function(){var re=Object(d.a)(v.a.mark(function ce(){var U,B;return v.a.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:console.log("\u5207\u5C4F\u63D0\u793A:",r.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",r.a.createElement("span",{className:"c-red"},_.exerciseUserInfo.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",r.a.createElement("span",{className:"c-red"},(U=_.exerciseUserInfo)===null||U===void 0?void 0:U.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")),c.a.destroyAll(),c.a.info({content:r.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",r.a.createElement("span",{className:"c-red"},_.exerciseUserInfo.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",r.a.createElement("span",{className:"c-red"},(B=_.exerciseUserInfo)===null||B===void 0?void 0:B.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){Object(s.d)(document.body)}});case 3:case"end":return k.stop()}},ce)}));return function(){return re.apply(this,arguments)}}(),Ne=function(){location.href="/classrooms/".concat(me.coursesId,"/exercise/").concat(me.categoryId,"/detail")},ue=function(){var re=Object(d.a)(v.a.mark(function ce(){var U;return v.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return c.a.destroyAll(),oe.next=3,Object(b.N)({categoryId:me.categoryId,commit_method:1});case 3:U=oe.sent,U&&(document.removeEventListener(Object(s.c)(),Z,!1),Object(s.b)(),Y.info({content:r.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",r.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){Ne()}}));case 5:case"end":return oe.stop()}},ce)}));return function(){return re.apply(this,arguments)}}(),ee=function(){Object(s.a)()&&Object(s.b)()},Z=function(){var ce=!1;if(console.log("fullscreen change"),Object(s.a)())clearTimeout(te.current);else{ce=!0;var U=setTimeout(Object(d.a)(v.a.mark(function B(){return v.a.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,Object(b.I)({id:me.categoryId});case 2:return k.next=4,p({type:"exercise/getExerciseUserInfo",payload:Object(u.a)({},me)});case 4:console.log("timeout.exercise.get"),_.exerciseUserInfo.used_screen_num<_.exerciseUserInfo.screen_num||ue();case 6:case"end":return k.stop()}},B)})),_.exerciseUserInfo.screen_sec*1e3);te.current=U}p({type:"globalSetting/headerFooterToggle",payload:ce}),p({type:"globalSetting/onlyShowBackTopToggle",payload:!ce})};return r.a.createElement("div",null,I)};y.a=Object(g.a)(function(C){var T=C.loading,j=C.user,E=C.exercise,O=C.globalSetting;return{globalSetting:O,user:j,exercise:E,loading:T.effects}})(w)},bntm:function(e,y,i){"use strict";i.d(y,"d",function(){return u}),i.d(y,"b",function(){return t}),i.d(y,"c",function(){return v}),i.d(y,"a",function(){return d});function u(f){try{f.mozRequestFullScreen?f.mozRequestFullScreen():f.webkitRequestFullScreen&&f.webkitRequestFullScreen()}catch(c){console.log(c,":e")}}function t(){document.webkitExitFullscreen?document.webkitExitFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}var v=function(){if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function d(){var f=document.fullscreenElement||document.mozFullscreenElement||document.webkitFullscreenElement,c=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return!(f==null)}},dejd:function(e,y,i){},dfu6:function(e,y,i){"use strict";i.d(y,"a",function(){return u});var u=function(d){var f=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return f.test(d)},t=function(d){var f=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.$/;return f.test(d)}},kSUc:function(e,y,i){},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(e){if(!0)module.exports=e();else var y})(function(){var define,module,exports;return function(){function e(y,i,u){function t(f,c){if(!i[f]){if(!y[f]){var n=typeof require=="function"&&require;if(!c&&n)return require(f,!0);if(v)return v(f,!0);var l=new Error("Cannot find module '"+f+"'");throw l.code="MODULE_NOT_FOUND",l}var o=i[f]={exports:{}};y[f][0].call(o.exports,function(r){var s=y[f][1][r];return t(s||r)},o,o.exports,e,y,i,u)}return i[f].exports}for(var v=typeof require=="function"&&require,d=0;d<u.length;d++)t(u[d]);return t}return e}()({1:[function(e,y,i){"use strict";var u=e("./browser/client");u.Buffer=e("buffer").Buffer,u.urllib=e("../shims/xhr"),u.version=e("./browser/version").version,y.exports=u},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(e,y,i){(function(u,t){"use strict";var v=e("babel-runtime/core-js/promise"),d=o(v),f=e("babel-runtime/regenerator"),c=o(f),n=e("babel-runtime/core-js/object/assign"),l=o(n);function o(te){return te&&te.__esModule?te:{default:te}}var r=e("debug")("ali-oss"),s=e("copy-to"),b=e("xml2js"),h=e("agentkeepalive"),g=e("merge-descriptors"),S=e("url"),w=e("is-type-of"),C=e("platform"),T=e("utility"),j=e("urllib"),E=e("./version"),O=e("bowser"),_=e("../common/signUtils"),p=e("../common/utils/isIP"),P=p.isIP,N=e("../common/client/initOptions"),R=e("../common/utils/createRequest"),A=R.createRequest,L=new h;function $(){var te=C.name,G=C.version;te&&te.toLowerCase&&te.toLowerCase()==="ie"&&G.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function V(){return location&&location.protocol==="https:"}function Y(te,G){if($(),!(this instanceof Y))return new Y(te,G);te&&te.inited?this.options=te:this.options=Y.initOptions(te),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=j,this.agent=this.options.agent||L),this.ctx=G,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}y.exports=Y,Y.initOptions=function(G){G.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var D=(0,l.default)({secure:V(),useFetch:!1},G);return N(D)};var I=Y.prototype;I.debug=r,g(I,e("./object")),g(I,e("../common/bucket/getBucketWebsite")),g(I,e("../common/bucket/putBucketWebsite")),g(I,e("../common/bucket/deleteBucketWebsite")),g(I,e("../common/bucket/getBucketLifecycle")),g(I,e("../common/bucket/putBucketLifecycle")),g(I,e("../common/bucket/deleteBucketLifecycle")),g(I,e("../common/bucket/putBucketVersioning")),g(I,e("../common/bucket/getBucketVersioning")),g(I,e("./managed-upload")),g(I,e("../common/multipart")),g(I,e("../common/parallel")),I.signature=function(G){return this.debug("authorization stringToSign: %s",G,"info"),_.computeSignature(this.options.accessKeySecret,G)},I.authorization=function(G,D,F,z){var q=_.buildCanonicalString(G.toUpperCase(),D,{headers:z,parameters:F});return _.authorization(this.options.accessKeyId,this.options.accessKeySecret,q)},I.request=function(G){var D,F,z,q,M,J;return c.default.async(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return D=A.call(this,G),this.options.useFetch||(D.params.mode="disable-fetch"),F=void 0,z=void 0,q=!!G.stream,ne.prev=5,ne.next=8,c.default.awrap(this.urllib.request(D.url,D.params));case 8:F=ne.sent,this.debug("response %s %s, got %s, headers: %j",G.method,D.url,F.status,F.headers,"info"),ne.next=15;break;case 12:ne.prev=12,ne.t0=ne.catch(5),z=ne.t0;case 15:if(M=void 0,!(F&&G.successStatuses&&G.successStatuses.indexOf(F.status)===-1)){ne.next=28;break}return ne.next=19,c.default.awrap(this.requestError(F));case 19:if(M=ne.sent,!(M.code==="RequestTimeTooSkewed"&&!q)){ne.next=25;break}return this.options.amendTimeSkewed=+new Date(M.serverTime)-new Date,ne.next=24,c.default.awrap(this.request(G));case 24:return ne.abrupt("return",ne.sent);case 25:M.params=G,ne.next=32;break;case 28:if(!z){ne.next=32;break}return ne.next=31,c.default.awrap(this.requestError(z));case 31:M=ne.sent;case 32:if(!M){ne.next=34;break}throw M;case 34:if(!G.xmlResponse){ne.next=39;break}return ne.next=37,c.default.awrap(this.parseXML(F.data));case 37:J=ne.sent,F.data=J;case 39:return ne.abrupt("return",F);case 40:case"end":return ne.stop()}},null,this,[[5,12]])},I._getResource=function(G){var D="/";return G.bucket&&(D+=G.bucket+"/"),G.object&&(D+=G.object),D},I._isIP=P,I._escape=function(G){return T.encodeURIComponent(G).replace(/%2F/g,"/")},I._getReqUrl=function(G){var D={};s(this.options.endpoint).to(D);var F=this._isIP(D.hostname),z=this.options.cname;G.bucket&&!z&&!F&&(D.host=G.bucket+"."+D.host);var q="/";G.bucket&&F&&(q+=G.bucket+"/"),G.object&&(q+=this._escape(G.object).replace(/\+/g,"%2B")),D.pathname=q;var M={};if(G.query&&g(M,G.query),G.subres){var J={};w.string(G.subres)?J[G.subres]="":w.array(G.subres)?G.subres.forEach(function(ae){J[ae]=""}):J=G.subres,g(M,J)}return D.query=M,S.format(D)},I._getUserAgent=function(){var G=t&&t.browser?"js":"nodejs",D="aliyun-sdk-"+G+"/"+E.version,F=C.description;return!F&&t&&(F="Node.js "+t.version.slice(1)+" on "+t.platform+" "+t.arch),this._checkUserAgent(D+" "+F)},I._checkUserAgent=function(G){var D=G.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return D},I.checkBrowserAndVersion=function(G,D){return O.name===G&&O.version.split(".")[0]===D},I.parseXML=function(G){return new d.default(function(D,F){u.isBuffer(G)&&(G=G.toString()),b.parseString(G,{explicitRoot:!1,explicitArray:!1},function(z,q){z?F(z):D(q)})})},I.requestError=function(G){var D,F,z,q;return c.default.async(function(J){for(;;)switch(J.prev=J.next){case 0:if(D=null,!(!G.data||!G.data.length)){J.next=5;break}G.status===-1||G.status===-2?(D=new Error(G.message),D.name=G.name,D.status=G.status,D.code=G.name):(G.status===404?(D=new Error("Object not exists"),D.name="NoSuchKeyError",D.status=404,D.code="NoSuchKey"):G.status===412?(D=new Error("Pre condition failed"),D.name="PreconditionFailedError",D.status=412,D.code="PreconditionFailed"):(D=new Error("Unknow error, status: "+G.status),D.name="UnknowError",D.status=G.status),D.requestId=G.headers["x-oss-request-id"],D.host=""),J.next=33;break;case 5:return F=String(G.data),this.debug("request response error data: %s",F,"error"),z=void 0,J.prev=8,J.next=11,c.default.awrap(this.parseXML(F));case 11:if(J.t0=J.sent,J.t0){J.next=14;break}J.t0={};case 14:z=J.t0,J.next=24;break;case 17:return J.prev=17,J.t1=J.catch(8),this.debug(F,"error"),J.t1.message+=`
raw xml: `+F,J.t1.status=G.status,J.t1.requestId=G.headers["x-oss-request-id"],J.abrupt("return",J.t1);case 24:q=z.Message||"unknow request error, status: "+G.status,z.Condition&&(q+=" (condition: "+z.Condition+")"),D=new Error(q),D.name=z.Code?z.Code+"Error":"UnknowError",D.status=G.status,D.code=z.Code,D.requestId=z.RequestId,D.hostId=z.HostId,D.serverTime=z.ServerTime;case 33:return this.debug("generate error %j",D,"error"),J.abrupt("return",D);case 35:case"end":return J.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(e,y,i){(function(u){"use strict";var t=e("babel-runtime/core-js/array/from"),v=l(t),d=e("babel-runtime/core-js/promise"),f=l(d),c=e("babel-runtime/regenerator"),n=l(c);function l(_){return _&&_.__esModule?_:{default:_}}var o=e("is-type-of"),r=e("util"),s=e("path"),b=e("mime"),h=e("copy-to"),g=e("../common/utils/isBlob"),S=g.isBlob,w=e("../common/utils/isFile"),C=w.isFile,T=i;T.multipartUpload=function(p,P,N){var R,A,L,$,V,Y,I,te,G;return n.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(this.resetCancelFlag(),N=N||{},!(N.checkpoint&&N.checkpoint.uploadId)){F.next=6;break}return F.next=5,n.default.awrap(this._resumeMultipart(N.checkpoint,N));case 5:return F.abrupt("return",F.sent);case 6:return R=100*1024,N.mime||(C(P)?N.mime=b.getType(s.extname(P.name)):S(P)?N.mime=P.type:N.mime=b.getType(s.extname(P))),N.headers=N.headers||{},this._convertMetaToHeaders(N.meta,N.headers),F.next=12,n.default.awrap(this._getFileSize(P));case 12:if(A=F.sent,!(A<R)){F.next=25;break}return L=this._createStream(P,0,A),N.contentLength=A,F.next=18,n.default.awrap(this.putStream(p,L,N));case 18:if($=F.sent,!(N&&N.progress)){F.next=22;break}return F.next=22,n.default.awrap(N.progress(1));case 22:return V={res:$.res,bucket:this.options.bucket,name:p,etag:$.res.headers.etag},(N.headers&&N.headers["x-oss-callback"]||N.callback)&&(V.data=$.data),F.abrupt("return",V);case 25:if(!(N.partSize&&!(parseInt(N.partSize,10)===N.partSize))){F.next=27;break}throw new Error("partSize must be int number");case 27:if(!(N.partSize&&N.partSize<R)){F.next=29;break}throw new Error("partSize must not be smaller than "+R);case 29:return F.next=31,n.default.awrap(this.initMultipartUpload(p,N));case 31:if(Y=F.sent,I=Y.uploadId,te=this._getPartSize(A,N.partSize),G={file:P,name:p,fileSize:A,partSize:te,uploadId:I,doneParts:[]},!(N&&N.progress)){F.next=38;break}return F.next=38,n.default.awrap(N.progress(0,G,Y.res));case 38:return F.next=40,n.default.awrap(this._resumeMultipart(G,N));case 40:return F.abrupt("return",F.sent);case 41:case"end":return F.stop()}},null,this)},T._resumeMultipart=function(p,P){var N,R,A,L,$,V,Y,I,te,G,D,F,z,q,M,J,ae,ne;return n.default.async(function(be){for(;;)switch(be.prev=be.next){case 0:if(N=this,!this.isCancel()){be.next=3;break}throw this._makeCancelEvent();case 3:return R=p.file,A=p.fileSize,L=p.partSize,$=p.uploadId,V=p.doneParts,Y=p.name,I=[],V.length>0&&h(V).to(I),te=this._divideParts(A,L),G=te.length,D=!1,F=function(Ne,ue){var ee=this;return new f.default(function(re,ce){var U,B,oe,k;return n.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(a.prev=0,Ne.isCancel()){a.next=18;break}return U=te[ue-1],B={stream:Ne._createStream(R,U.start,U.end),size:U.end-U.start},a.next=6,n.default.awrap(Ne._uploadPart(Y,$,ue,B));case 6:if(oe=a.sent,!(!Ne.isCancel()&&!D)){a.next=15;break}if(p.doneParts.push({number:ue,etag:oe.res.headers.etag}),!P.progress){a.next=12;break}return a.next=12,n.default.awrap(P.progress(V.length/G,p,oe.res));case 12:re({number:ue,etag:oe.res.headers.etag}),a.next=16;break;case 15:re();case 16:a.next=19;break;case 18:re();case 19:a.next=30;break;case 21:a.prev=21,a.t0=a.catch(0),k=new Error,k.name=a.t0.name,k.message=a.t0.message,k.stack=a.t0.stack,k.partNum=ue,h(a.t0).to(k),ce(k);case 30:case"end":return a.stop()}},null,ee,[[0,21]])})},z=(0,v.default)(new Array(G),function(K,Ne){return Ne+1}),q=I.map(function(K){return K.number}),M=z.filter(function(K){return q.indexOf(K)<0}),J=5,ae=P.parallel||J,be.next=17,n.default.awrap(this._parallel(M,ae,function(K){return new f.default(function(Ne,ue){F(N,K).then(function(ee){ee&&I.push(ee),Ne()}).catch(function(ee){ue(ee)})})}));case 17:if(ne=be.sent,D=!0,!this.isCancel()){be.next=22;break}throw F=null,this._makeCancelEvent();case 22:if(!(ne&&ne.length>0)){be.next=25;break}throw ne[0].message="Failed to upload some parts with error: "+ne[0].toString()+" part_num: "+ne[0].partNum,ne[0];case 25:return be.next=27,n.default.awrap(this.completeMultipartUpload(Y,$,I,P));case 27:return be.abrupt("return",be.sent);case 28:case"end":return be.stop()}},null,this)},T._getFileSize=function(p){return n.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:if(!o.buffer(p)){N.next=4;break}return N.abrupt("return",p.length);case 4:if(!(S(p)||C(p))){N.next=6;break}return N.abrupt("return",p.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return N.stop()}},null,this)};var j=e("stream"),E=j.Readable;function O(_,p){if(!(this instanceof O))return new O(_,p);E.call(this,p),this.file=_,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}r.inherits(O,E),O.prototype.readFileAndPush=function(p){if(this.fileBuffer)for(var P=!0;P&&this.fileBuffer&&this.start<this.fileBuffer.length;){var N=this.start,R=N+p;R=R>this.fileBuffer.length?this.fileBuffer.length:R,this.start=R,P=this.push(this.fileBuffer.slice(N,R))}},O.prototype._read=function(p){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var P=16*1024;p=p||P;var N=this;this.reader.onload=function(A){N.fileBuffer=u.from(new Uint8Array(A.target.result)),N.file=null,N.readFileAndPush(p)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(p)},T._createStream=function(p,P,N){if(S(p)||C(p))return new O(p.slice(P,N));throw new Error("_createStream requires File/Blob.")},T._getPartSize=function(p,P){var N=10*1e3,R=1024*1024;return P?Math.max(Math.ceil(p/N),P):R},T._divideParts=function(p,P){for(var N=Math.ceil(p/P),R=[],A=0;A<N;A++){var L=P*A,$=Math.min(L+P,p);R.push({start:L,end:$})}return R}}).call(this,e("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/promise"),t=o(u),v=e("babel-runtime/core-js/object/keys"),d=o(v),f=e("babel-runtime/core-js/object/assign"),c=o(f),n=e("babel-runtime/regenerator"),l=o(n);function o(N){return N&&N.__esModule?N:{default:N}}var r=e("utility"),s=e("fs"),b=e("is-type-of"),h=e("url"),g=e("copy-to"),S=e("path"),w=e("mime"),C=e("../common/callback"),T=e("../common/signUtils"),j=e("merge-descriptors"),E=e("../common/utils/isBlob"),O=E.isBlob,_=e("../common/utils/isFile"),p=_.isFile,P=i;P.append=function(R,A,L){var $;return l.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return L=L||{},L.position===void 0&&(L.position="0"),L.subres={append:"",position:L.position},L.method="POST",Y.next=6,l.default.awrap(this.put(R,A,L));case 6:return $=Y.sent,$.nextAppendPosition=$.res.headers["x-oss-next-append-position"],Y.abrupt("return",$);case 9:case"end":return Y.stop()}},null,this)},P.put=function(R,A,L){var $,V,Y,I,te,G,D;return l.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:if($=void 0,L=L||{},R=this._objectName(R),!b.buffer(A)){z.next=7;break}$=A,z.next=33;break;case 7:if(!(O(A)||p(A))){z.next=32;break}return L.mime||(p(A)?L.mime=w.getType(S.extname(A.name)):L.mime=A.type),V=this._createStream(A,0,A.size),z.next=12,l.default.awrap(this._getFileSize(A));case 12:return L.contentLength=z.sent,z.prev=13,z.next=16,l.default.awrap(this.putStream(R,V,L));case 16:return Y=z.sent,z.abrupt("return",Y);case 20:if(z.prev=20,z.t0=z.catch(13),!(z.t0.code==="RequestTimeTooSkewed")){z.next=29;break}return this.options.amendTimeSkewed=+new Date(z.t0.serverTime)-new Date,z.next=26,l.default.awrap(this.put(R,A,L));case 26:return z.abrupt("return",z.sent);case 29:throw z.t0;case 30:z.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return L.headers=L.headers||{},this._convertMetaToHeaders(L.meta,L.headers),I=L.method||"PUT",te=this._objectRequestParams(I,R,L),C.encodeCallback(te,L),te.mime=L.mime,te.content=$,te.successStatuses=[200],z.next=43,l.default.awrap(this.request(te));case 43:return G=z.sent,D={name:R,url:this._objectUrl(R),res:G.res},te.headers&&te.headers["x-oss-callback"]&&(D.data=JSON.parse(G.data.toString())),z.abrupt("return",D);case 47:case"end":return z.stop()}},null,this,[[13,20]])},P.putStream=function(R,A,L){var $,V,Y,I;return l.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:return L=L||{},L.headers=L.headers||{},R=this._objectName(R),L.contentLength?L.headers["Content-Length"]=L.contentLength:L.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(L.meta,L.headers),$=L.method||"PUT",V=this._objectRequestParams($,R,L),C.encodeCallback(V,L),V.mime=L.mime,V.stream=A,V.successStatuses=[200],G.next=13,l.default.awrap(this.request(V));case 13:return Y=G.sent,I={name:R,url:this._objectUrl(R),res:Y.res},V.headers&&V.headers["x-oss-callback"]&&(I.data=JSON.parse(Y.data.toString())),G.abrupt("return",I);case 17:case"end":return G.stop()}},null,this)},j(P,e("../common/object/copyObject")),j(P,e("../common/object/getObjectTagging")),j(P,e("../common/object/putObjectTagging")),j(P,e("../common/object/deleteObjectTagging")),j(P,e("../common/image")),j(P,e("../common/object/getBucketVersions")),j(P,e("../common/object/getACL")),j(P,e("../common/object/putACL")),j(P,e("../common/object/head")),j(P,e("../common/object/delete")),j(P,e("../common/object/get")),j(P,e("../common/object/putSymlink")),j(P,e("../common/object/getSymlink")),j(P,e("../common/object/deleteMulti")),j(P,e("../common/object/getObjectMeta")),P.putMeta=function(R,A,L){var $;return l.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,l.default.awrap(this.copy(R,R,{meta:A||{},timeout:L&&L.timeout,ctx:L&&L.ctx}));case 2:return $=Y.sent,Y.abrupt("return",$);case 4:case"end":return Y.stop()}},null,this)},P.list=function(R,A){var L,$,V,Y,I;return l.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:return L=this._objectRequestParams("GET","",A),L.query=R,L.xmlResponse=!0,L.successStatuses=[200],G.next=6,l.default.awrap(this.request(L));case 6:return $=G.sent,V=$.data.Contents,Y=this,V&&(Array.isArray(V)||(V=[V]),V=V.map(function(D){return{name:D.Key,url:Y._objectUrl(D.Key),lastModified:D.LastModified,etag:D.ETag,type:D.Type,size:Number(D.Size),storageClass:D.StorageClass,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),I=$.data.CommonPrefixes||null,I&&(Array.isArray(I)||(I=[I]),I=I.map(function(D){return D.Prefix})),G.abrupt("return",{res:$.res,objects:V,prefixes:I,nextMarker:$.data.NextMarker||null,isTruncated:$.data.IsTruncated==="true"});case 13:case"end":return G.stop()}},null,this)},P.restore=function(R,A){var L,$;return l.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return A=A||{},A.subres=(0,c.default)({restore:""},A.subres),A.versionId&&(A.subres.versionId=A.versionId),L=this._objectRequestParams("POST",R,A),L.successStatuses=[202],Y.next=7,l.default.awrap(this.request(L));case 7:return $=Y.sent,Y.abrupt("return",{res:$.res});case 9:case"end":return Y.stop()}},null,this)},P.signatureUrl=function(R,A){A=A||{},R=this._objectName(R),A.method=A.method||"GET";var L=r.timestamp()+(A.expires||1800),$={bucket:this.options.bucket,object:R},V=this._getResource($);this.options.stsToken&&(A["security-token"]=this.options.stsToken);var Y=T._signatureForURL(this.options.accessKeySecret,A,V,L),I=h.parse(this._getReqUrl($));return I.query={OSSAccessKeyId:this.options.accessKeyId,Expires:L,Signature:Y.Signature},g(Y.subResource).to(I.query),I.format()},P.getObjectUrl=function(R,A){return A?A[A.length-1]!=="/"&&(A+="/"):A=this.options.endpoint.format(),A+this._escape(this._objectName(R))},P._objectUrl=function(R){return this._getReqUrl({bucket:this.options.bucket,object:R})},P.generateObjectUrl=function(N,R){if(R)R[R.length-1]!=="/"&&(R+="/");else{R=this.options.endpoint.format();var A=h.parse(R),L=this.options.bucket;A.hostname=L+"."+A.hostname,A.host=L+"."+A.host,R=A.format()}return R+this._escape(this._objectName(N))},P._objectRequestParams=function(R,A,L){if(!this.options.bucket)throw new Error("Please create a bucket first");L=L||{},A=this._objectName(A);var $={object:A,bucket:this.options.bucket,method:R,subres:L&&L.subres,timeout:L&&L.timeout,ctx:L&&L.ctx};return L.headers&&($.headers={},g(L.headers).to($.headers)),$},P._objectName=function(R){return R.replace(/^\/+/,"")},P._convertMetaToHeaders=function(R,A){if(!R)return;(0,d.default)(R).forEach(function(L){A["x-oss-meta-"+L]=R[L]})},P._deleteFileSafe=function(R){var A=this;return new t.default(function(L){s.exists(R,function($){$?s.unlink(R,function(V){V&&A.debug("unlink %j error: %s",R,V,"error"),L()}):L()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(e,y,i){"use strict";i.version="6.10.0"},{}],6:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(n){return n&&n.__esModule?n:{default:n}}var d=e("../utils/checkBucketName"),f=d.checkBucketName,c=i;c.deleteBucketLifecycle=function(l,o){var r,s;return t.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return f(l),r=this._bucketRequestParams("DELETE",l,"lifecycle",o),r.successStatuses=[204],h.next=5,t.default.awrap(this.request(r));case 5:return s=h.sent,h.abrupt("return",{res:s.res});case 7:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(n){return n&&n.__esModule?n:{default:n}}var d=e("../utils/checkBucketName"),f=d.checkBucketName,c=i;c.deleteBucketWebsite=function(l,o){var r,s;return t.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return f(l),r=this._bucketRequestParams("DELETE",l,"website",o),r.successStatuses=[204],h.next=5,t.default.awrap(this.request(r));case 5:return s=h.sent,h.abrupt("return",{res:s.res});case 7:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(s){return s&&s.__esModule?s:{default:s}}var d=e("../utils/checkBucketName"),f=d.checkBucketName,c=e("../utils/isArray"),n=c.isArray,l=e("../utils/formatObjKey"),o=l.formatObjKey,r=i;r.getBucketLifecycle=function(b,h){var g,S,w;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return f(b),g=this._bucketRequestParams("GET",b,"lifecycle",h),g.successStatuses=[200],g.xmlResponse=!0,T.next=6,t.default.awrap(this.request(g));case 6:return S=T.sent,w=S.data.Rule||null,w&&(n(w)||(w=[w]),w=w.map(function(j){return j.ID&&(j.id=j.ID,delete j.ID),j.Tag&&!n(j.Tag)&&(j.Tag=[j.Tag]),o(j,"firstLowerCase")})),T.abrupt("return",{rules:w,res:S.res});case 10:case"end":return T.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(n){return n&&n.__esModule?n:{default:n}}var d=e("../utils/checkBucketName"),f=d.checkBucketName,c=i;c.getBucketVersioning=function(l,o){var r,s,b;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return f(l),r=this._bucketRequestParams("GET",l,"versioning",o),r.xmlResponse=!0,r.successStatuses=[200],g.next=6,t.default.awrap(this.request(r));case 6:return s=g.sent,b=s.data.Status,g.abrupt("return",{status:s.status,versionStatus:b,res:s.res});case 9:case"end":return g.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(o){return o&&o.__esModule?o:{default:o}}var d=e("../utils/checkBucketName"),f=d.checkBucketName,c=e("../utils/isObject"),n=c.isObject,l=i;l.getBucketWebsite=function(r,s){var b,h,g;return t.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return f(r),b=this._bucketRequestParams("GET",r,"website",s),b.successStatuses=[200],b.xmlResponse=!0,w.next=6,t.default.awrap(this.request(b));case 6:return h=w.sent,g=[],h.data.RoutingRules&&h.data.RoutingRules.RoutingRule&&(n(h.data.RoutingRules.RoutingRule)?g=[h.data.RoutingRules.RoutingRule]:g=h.data.RoutingRules.RoutingRule),w.abrupt("return",{index:h.data.IndexDocument&&h.data.IndexDocument.Suffix||"",supportSubDir:h.data.IndexDocument&&h.data.IndexDocument.SupportSubDir||"false",type:h.data.IndexDocument&&h.data.IndexDocument.Type,routingRules:g,error:h.data.ErrorDocument&&h.data.ErrorDocument.Key||null,res:h.res});case 10:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(p){return p&&p.__esModule?p:{default:p}}var d=e("../utils/checkBucketName"),f=d.checkBucketName,c=e("../utils/isArray"),n=c.isArray,l=e("../utils/deepCopy"),o=l.deepCopy,r=e("../utils/isObject"),s=r.isObject,b=e("../utils/obj2xml"),h=b.obj2xml,g=e("../utils/checkObjectTag"),S=g.checkObjectTag,w=e("../utils/getStrBytesCount"),C=w.getStrBytesCount,T=i;T.putBucketLifecycle=function(P,N,R){var A,L,$,V,Y;return t.default.async(function(te){for(;;)switch(te.prev=te.next){case 0:if(f(P),n(N)){te.next=3;break}throw new Error("rules must be Array");case 3:return A=this._bucketRequestParams("PUT",P,"lifecycle",R),L=[],$={LifecycleConfiguration:{Rule:L}},N.forEach(function(G){j(G),_(G),G.id&&(G.ID=G.id,delete G.id),L.push(G)}),V=h($,{headers:!0,firstUpperCase:!0}),A.content=V,A.mime="xml",A.successStatuses=[200],te.next=13,t.default.awrap(this.request(A));case 13:return Y=te.sent,te.abrupt("return",{res:Y.res});case 15:case"end":return te.stop()}},null,this)};function j(p){p.days&&(p.expiration={days:p.days}),p.date&&(p.expiration={createdBeforeDate:p.date})}function E(p,P){var N=p.days,R=p.createdBeforeDate;if(!N&&!R)throw new Error(P+" must includes days or createdBeforeDate");if(N&&!/^[1-9][0-9]*$/.test(N))throw new Error("days must be a positive integer");if(R&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(R))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function O(p){if(!n(p)&&!s(p))throw new Error("tag must be Object or Array");p=s(p)?[p]:p;var P={},N=o(p);N.forEach(function(R){P[R.key]=R.value}),S(P)}function _(p){if(p.id&&C(p.id)>255)throw new Error("ID is composed of 255 bytes at most");if(p.prefix===""||p.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(p.status))throw new Error("Status must be Enabled or Disabled");if(p.transition){if(!["IA","Archive"].includes(p.transition.storageClass))throw new Error("StorageClass must be IA or Archive");E(p.transition,"Transition")}if(p.expiration){if(!p.expiration.expiredObjectDeleteMarker)E(p.expiration,"Expiration");else if(p.expiration.days||p.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(p.abortMultipartUpload&&E(p.abortMultipartUpload,"AbortMultipartUpload"),!p.expiration&&!p.abortMultipartUpload&&!p.transition&&!p.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(p.tag){if(p.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");O(p.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(o){return o&&o.__esModule?o:{default:o}}var d=e("../utils/checkBucketName"),f=d.checkBucketName,c=e("../utils/obj2xml"),n=c.obj2xml,l=i;l.putBucketVersioning=function(r,s){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,g,S;return t.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(f(r),["Enabled","Suspended"].includes(s)){C.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return h=this._bucketRequestParams("PUT",r,"versioning",b),g={VersioningConfiguration:{Status:s}},h.mime="xml",h.content=n(g,{headers:!0}),C.next=9,t.default.awrap(this.request(h));case 9:return S=C.sent,C.abrupt("return",{res:S.res,status:S.status});case 11:case"end":return C.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(s){return s&&s.__esModule?s:{default:s}}var d=e("../utils/checkBucketName"),f=d.checkBucketName,c=e("../utils/obj2xml"),n=c.obj2xml,l=e("../utils/isArray"),o=l.isArray,r=i;r.putBucketWebsite=function(b){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=arguments[2],S,w,C,T,j;return t.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(f(b),S=this._bucketRequestParams("PUT",b,"website",g),w={Suffix:h.index||"index.html"},C={IndexDocument:w},T={WebsiteConfiguration:C},h.supportSubDir&&(w.SupportSubDir=h.supportSubDir),h.type&&(w.Type=h.type),h.error&&(C.ErrorDocument={Key:h.error}),!(h.routingRules!==void 0)){O.next=12;break}if(o(h.routingRules)){O.next=11;break}throw new Error("RoutingRules must be Array");case 11:C.RoutingRules={RoutingRule:h.routingRules};case 12:return T=n(T),S.content=T,S.mime="xml",S.successStatuses=[200],O.next=18,t.default.awrap(this.request(S));case 18:return j=O.sent,O.abrupt("return",{res:j.res});case 20:case"end":return O.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(e,y,i){(function(u){"use strict";var t=e("babel-runtime/core-js/object/keys"),v=c(t),d=e("babel-runtime/core-js/json/stringify"),f=c(d);function c(n){return n&&n.__esModule?n:{default:n}}i.encodeCallback=function(l,o){if(l.headers=l.headers||{},!Object.prototype.hasOwnProperty.call(l.headers,"x-oss-callback")&&o.callback){var r={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(r.callbackHost=o.callback.host),o.callback.contentType&&(r.callbackBodyType=o.callback.contentType);var s=u.from((0,f.default)(r)).toString("base64");if(l.headers["x-oss-callback"]=s,o.callback.customValue){var b={};(0,v.default)(o.callback.customValue).forEach(function(h){b["x:"+h]=o.callback.customValue[h]}),l.headers["x-oss-callback-var"]=u.from((0,f.default)(b)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/assign"),t=v(u);function v(r){return r&&r.__esModule?r:{default:r}}var d=e("humanize-ms"),f=e("url"),c=e("../utils/checkBucketName"),n=c.checkBucketName;function l(r,s){var b=f.parse(r);if(b.protocol||(b=f.parse("http"+(s?"s":"")+"://"+r)),b.protocol!=="http:"&&b.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return b}function o(r,s,b){var h=b?"https://":"http://",g=s?"-internal.aliyuncs.com":".aliyuncs.com",S="vpc100-oss-cn-";return r.substr(0,S.length)===S&&(g=".aliyuncs.com"),f.parse(h+r+g)}y.exports=function(r){if(!r||!r.accessKeyId||!r.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");r.bucket&&n(r.bucket);var s=(0,t.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},r);if(s.accessKeyId=s.accessKeyId.trim(),s.accessKeySecret=s.accessKeySecret.trim(),s.timeout&&(s.timeout=d(s.timeout)),s.endpoint)s.endpoint=l(s.endpoint,s.secure);else if(s.region)s.endpoint=o(s.region,s.internal,s.secure);else throw new Error("require options.endpoint or options.region");return s.inited=!0,s}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(e,y,i){"use strict";var u=e("merge-descriptors"),t=i;u(t,e("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(s){return s&&s.__esModule?s:{default:s}}var d=e("../utils/checkBucketName"),f=d.checkBucketName,c=e("querystring"),n=e("js-base64"),l=n.Base64.encode,o=i;o.processObjectSave=function(b,h,g,S){var w,C,T,j;return t.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:return r(b,"sourceObject"),r(h,"targetObject"),r(g,"process"),h=this._objectName(h),S&&f(S),w=this._objectRequestParams("POST",b,{subres:"x-oss-process"}),C=S?",b_"+l(S):"",h=l(h),T={"x-oss-process":g+"|sys/saveas,o_"+h+C},w.content=c.stringify(T),O.next=12,t.default.awrap(this.request(w));case 12:return j=O.sent,O.abrupt("return",{res:j.res,status:j.res.status});case 14:case"end":return O.stop()}},null,this)};function r(s,b){if(!s)throw new Error(b+" is required");if(typeof s!="string")throw new Error(b+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=v(u);function v(o){return o&&o.__esModule?o:{default:o}}var d=e("copy-to"),f=e("./callback"),c=e("./utils/deepCopy"),n=c.deepCopy,l=i;l.listUploads=function(r,s){var b,h,g,S;return t.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return s=s||{},b={},d(s).to(b),b.subres="uploads",h=this._objectRequestParams("GET","",b),h.query=r,h.xmlResponse=!0,h.successStatuses=[200],C.next=10,t.default.awrap(this.request(h));case 10:return g=C.sent,S=g.data.Upload||[],Array.isArray(S)||(S=[S]),S=S.map(function(T){return{name:T.Key,uploadId:T.UploadId,initiated:T.Initiated}}),C.abrupt("return",{res:g.res,uploads:S,bucket:g.data.Bucket,nextKeyMarker:g.data.NextKeyMarker,nextUploadIdMarker:g.data.NextUploadIdMarker,isTruncated:g.data.IsTruncated==="true"});case 15:case"end":return C.stop()}},null,this)},l.listParts=function(r,s,b,h){var g,S,w;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return h=h||{},g={},d(h).to(g),g.subres={uploadId:s},S=this._objectRequestParams("GET",r,g),S.query=b,S.xmlResponse=!0,S.successStatuses=[200],T.next=10,t.default.awrap(this.request(S));case 10:return w=T.sent,T.abrupt("return",{res:w.res,uploadId:w.data.UploadId,bucket:w.data.Bucket,name:w.data.Key,partNumberMarker:w.data.PartNumberMarker,nextPartNumberMarker:w.data.NextPartNumberMarker,maxParts:w.data.MaxParts,isTruncated:w.data.IsTruncated,parts:w.data.Part||[]});case 12:case"end":return T.stop()}},null,this)},l.abortMultipartUpload=function(r,s,b){var h,g,S;return t.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return this._stop(),b=b||{},h={},d(b).to(h),h.subres={uploadId:s},g=this._objectRequestParams("DELETE",r,h),g.successStatuses=[204],C.next=9,t.default.awrap(this.request(g));case 9:return S=C.sent,C.abrupt("return",{res:S.res});case 11:case"end":return C.stop()}},null,this)},l.initMultipartUpload=function(r,s){var b,h,g;return t.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return s=s||{},b={},d(s).to(b),b.headers=b.headers||{},this._convertMetaToHeaders(s.meta,b.headers),b.subres="uploads",h=this._objectRequestParams("POST",r,b),h.mime=s.mime,h.xmlResponse=!0,h.successStatuses=[200],w.next=12,t.default.awrap(this.request(h));case 12:return g=w.sent,w.abrupt("return",{res:g.res,bucket:g.data.Bucket,name:g.data.Key,uploadId:g.data.UploadId});case 14:case"end":return w.stop()}},null,this)},l.uploadPart=function(r,s,b,h,g,S,w){var C;return t.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:return C={stream:this._createStream(h,g,S),size:S-g},j.next=3,t.default.awrap(this._uploadPart(r,s,b,C,w));case 3:return j.abrupt("return",j.sent);case 4:case"end":return j.stop()}},null,this)},l.completeMultipartUpload=function(r,s,b,h){var g,S,w,C,T,j,E,O;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:for(g=b.concat().sort(function(P,N){return P.number-N.number}).filter(function(P,N,R){return!N||P.number!==R[N-1].number}),S=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,w=0;w<g.length;w++)C=g[w],S+=`<Part>
`,S+="<PartNumber>"+C.number+`</PartNumber>
`,S+="<ETag>"+C.etag+`</ETag>
`,S+=`</Part>
`;return S+="</CompleteMultipartUpload>",h=h||{},T={},T=n(h),T.headers&&delete T.headers["x-oss-server-side-encryption"],T.subres={uploadId:s},j=this._objectRequestParams("POST",r,T),f.encodeCallback(j,T),j.mime="xml",j.content=S,j.headers&&j.headers["x-oss-callback"]||(j.xmlResponse=!0),j.successStatuses=[200],p.next=17,t.default.awrap(this.request(j));case 17:return E=p.sent,O={res:E.res,bucket:j.bucket,name:r,etag:E.res.headers.etag},j.headers&&j.headers["x-oss-callback"]&&(O.data=JSON.parse(E.data.toString())),p.abrupt("return",O);case 21:case"end":return p.stop()}},null,this)},l._uploadPart=function(r,s,b,h,g){var S,w,C;return t.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:return g=g||{},S={},d(g).to(S),S.headers={"Content-Length":h.size},S.subres={partNumber:b,uploadId:s},w=this._objectRequestParams("PUT",r,S),w.mime=S.mime,w.stream=h.stream,w.successStatuses=[200],j.next=11,t.default.awrap(this.request(w));case 11:if(C=j.sent,C.res.headers.etag){j.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 14:return h.stream=null,w.stream=null,j.abrupt("return",{name:r,etag:C.res.headers.etag,res:C.res});case 17:case"end":return j.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=n(u),v=e("babel-runtime/core-js/object/keys"),d=n(v),f=e("babel-runtime/helpers/typeof"),c=n(f);function n(s){return s&&s.__esModule?s:{default:s}}var l=e("../utils/checkBucketName"),o=l.checkBucketName,r=i;r.copy=function(b,h,g,S){var w,C,T;return t.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return(typeof g=="undefined"?"undefined":(0,c.default)(g))==="object"&&(S=g),S=S||{},S.headers=S.headers||{},(0,d.default)(S.headers).forEach(function(O){S.headers["x-oss-copy-source-"+O.toLowerCase()]=S.headers[O]}),S.meta&&(S.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(S.meta,S.headers),h=this._getSourceName(h,g),S.versionId&&(h=h+"?versionId="+S.versionId),S.headers["x-oss-copy-source"]=h,w=this._objectRequestParams("PUT",b,S),w.xmlResponse=!0,w.successStatuses=[200,304],E.next=14,t.default.awrap(this.request(w));case 14:return C=E.sent,T=C.data,T&&(T={etag:T.ETag,lastModified:T.LastModified}),E.abrupt("return",{data:T,res:C.res});case 18:case"end":return E.stop()}},null,this)},r._getSourceName=function(b,h){return typeof h=="string"?b=this._objectName(b):b[0]!=="/"?h=this.options.bucket:(h=b.replace(/\/(.+?)(\/.*)/,"$1"),b=b.replace(/(\/.+?\/)(.*)/,"$2")),o(h),b=encodeURI(b),b="/"+h+"/"+b,b}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(n){return n&&n.__esModule?n:{default:n}}var c=i;c.delete=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s;return t.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return o.subres=(0,d.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),r=this._objectRequestParams("DELETE",l,o),r.successStatuses=[204],h.next=6,t.default.awrap(this.request(r));case 6:return s=h.sent,h.abrupt("return",{res:s.res});case 8:case"end":return h.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(r){return r&&r.__esModule?r:{default:r}}var c=e("utility"),n=e("../utils/obj2xml"),l=n.obj2xml,o=i;o.deleteMulti=function(s){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h,g,S,w,C,T,j,E,O,_,p,P;return t.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(h=[],!(!s||!s.length)){R.next=3;break}throw new Error("names is required");case 3:for(g=0;g<s.length;g++)S={},typeof s[g]=="string"?S.Key=c.escape(this._objectName(s[g])):(w=s[g],C=w.key,T=w.versionId,S.Key=c.escape(this._objectName(C)),S.VersionId=T),h.push(S);return j={Delete:{Quiet:!!b.quiet,Object:h}},E=l(j,{headers:!0}),b.subres=(0,d.default)({delete:""},b.subres),b.versionId&&(b.subres.versionId=b.versionId),O=this._objectRequestParams("POST","",b),O.mime="xml",O.content=E,O.xmlResponse=!0,O.successStatuses=[200],R.next=15,t.default.awrap(this.request(O));case 15:return _=R.sent,p=_.data,P=p&&p.Deleted||null,P&&(Array.isArray(P)||(P=[P])),R.abrupt("return",{res:_.res,deleted:P||[]});case 20:case"end":return R.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(n){return n&&n.__esModule?n:{default:n}}var c=i;c.deleteObjectTagging=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s;return t.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return o.subres=(0,d.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),l=this._objectName(l),r=this._objectRequestParams("DELETE",l,o),r.successStatuses=[204],h.next=7,t.default.awrap(this.request(r));case 7:return s=h.sent,h.abrupt("return",{status:s.status,res:s.res});case 9:case"end":return h.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(o){return o&&o.__esModule?o:{default:o}}var c=e("fs"),n=e("is-type-of"),l=i;l.get=function(r,s){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,g,S,w;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return h=null,g=!1,n.writableStream(s)?h=s:n.string(s)?(h=c.createWriteStream(s),g=!0):b=s,b=b||{},b.subres=(0,d.default)({},b.subres),b.versionId&&(b.subres.versionId=b.versionId),b.process&&(b.subres["x-oss-process"]=b.process),S=void 0,T.prev=8,w=this._objectRequestParams("GET",r,b),w.writeStream=h,w.successStatuses=[200,206,304],T.next=14,t.default.awrap(this.request(w));case 14:S=T.sent,g&&h.destroy(),T.next=25;break;case 18:if(T.prev=18,T.t0=T.catch(8),!g){T.next=24;break}return h.destroy(),T.next=24,t.default.awrap(this._deleteFileSafe(s));case 24:throw T.t0;case 25:return T.abrupt("return",{res:S.res,content:S.data});case 26:case"end":return T.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(n){return n&&n.__esModule?n:{default:n}}var c=i;c.getACL=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s;return t.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return o.subres=(0,d.default)({acl:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),l=this._objectName(l),r=this._objectRequestParams("GET",l,o),r.successStatuses=[200],r.xmlResponse=!0,h.next=8,t.default.awrap(this.request(r));case 8:return s=h.sent,h.abrupt("return",{acl:s.data.AccessControlList.Grant,owner:{id:s.data.Owner.ID,displayName:s.data.Owner.DisplayName},res:s.res});case 10:case"end":return h.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=n(u),v=e("babel-runtime/regenerator"),d=n(v),f=e("babel-runtime/core-js/object/assign"),c=n(f);function n(w){return w&&w.__esModule?w:{default:w}}var l=i,o=e("../utils/isObject"),r=o.isObject,s=e("../utils/isArray"),b=s.isArray;l.getBucketVersions=h,l.listObjectVersions=h;function h(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T,j,E,O,_,p;return d.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:if(!(w.versionIdMarker&&w.keyMarker===void 0)){N.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return C.subres=(0,c.default)({versions:""},C.subres),C.versionId&&(C.subres.versionId=C.versionId),T=this._objectRequestParams("GET","",C),T.xmlResponse=!0,T.successStatuses=[200],T.query=S(w),N.next=10,d.default.awrap(this.request(T));case 10:return j=N.sent,E=j.data.Version||[],O=j.data.DeleteMarker||[],_=this,E&&(Array.isArray(E)||(E=[E]),E=E.map(function(R){return{name:R.Key,url:_._objectUrl(R.Key),lastModified:R.LastModified,isLatest:R.IsLatest==="true",versionId:R.VersionId,etag:R.ETag,type:R.Type,size:Number(R.Size),storageClass:R.StorageClass,owner:{id:R.Owner.ID,displayName:R.Owner.DisplayName}}})),O&&(b(O)||(O=[O]),O=O.map(function(R){return{name:R.Key,lastModified:R.LastModified,versionId:R.VersionId,owner:{id:R.Owner.ID,displayName:R.Owner.DisplayName}}})),p=j.data.CommonPrefixes||null,p&&(b(p)||(p=[p]),p=p.map(function(R){return R.Prefix})),N.abrupt("return",{res:j.res,objects:E,deleteMarker:O,prefixes:p,nextMarker:j.data.NextMarker||null,NextVersionIdMarker:j.data.NextVersionIdMarker||null,isTruncated:j.data.IsTruncated==="true"});case 19:case"end":return N.stop()}},null,this)}function g(w){return w.replace(/([A-Z])/g,"-$1").toLowerCase()}function S(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C={};return r(w)&&(0,t.default)(w).forEach(function(T){C[g(T)]=w[T]}),C}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(n){return n&&n.__esModule?n:{default:n}}var c=i;c.getObjectMeta=function(l,o){var r,s;return t.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return o=o||{},l=this._objectName(l),o.subres=(0,d.default)({objectMeta:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),r=this._objectRequestParams("HEAD",l,o),r.successStatuses=[200],h.next=8,t.default.awrap(this.request(r));case 8:return s=h.sent,h.abrupt("return",{status:s.status,res:s.res});case 10:case"end":return h.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(o){return o&&o.__esModule?o:{default:o}}var c=i,n=e("../utils/isObject"),l=n.isObject;c.getObjectTagging=function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,h,g,S,w;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return s.subres=(0,d.default)({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),r=this._objectName(r),b=this._objectRequestParams("GET",r,s),b.successStatuses=[200],T.next=7,t.default.awrap(this.request(b));case 7:return h=T.sent,T.next=10,t.default.awrap(this.parseXML(h.data));case 10:return g=T.sent,S=g.TagSet.Tag,S=S&&l(S)?[S]:S||[],w={},S.forEach(function(j){w[j.Key]=j.Value}),T.abrupt("return",{status:h.status,res:h.res,tag:w});case 16:case"end":return T.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(n){return n&&n.__esModule?n:{default:n}}var c=i;c.getSymlink=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,b;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return o.subres=(0,d.default)({symlink:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),l=this._objectName(l),r=this._objectRequestParams("GET",l,o),r.successStatuses=[200],g.next=7,t.default.awrap(this.request(r));case 7:return s=g.sent,b=s.res.headers["x-oss-symlink-target"],g.abrupt("return",{targetName:decodeURIComponent(b),res:s.res});case 10:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=n(u),v=e("babel-runtime/core-js/object/keys"),d=n(v),f=e("babel-runtime/core-js/object/assign"),c=n(f);function n(o){return o&&o.__esModule?o:{default:o}}var l=i;l.head=function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,h,g;return t.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return s.subres=(0,c.default)({},s.subres),s.versionId&&(s.subres.versionId=s.versionId),b=this._objectRequestParams("HEAD",r,s),b.successStatuses=[200,304],w.next=6,t.default.awrap(this.request(b));case 6:return h=w.sent,g={meta:null,res:h.res,status:h.status},h.status===200&&(0,d.default)(h.headers).forEach(function(C){C.indexOf("x-oss-meta-")===0&&(g.meta||(g.meta={}),g.meta[C.substring(11)]=h.headers[C])}),w.abrupt("return",g);case 10:case"end":return w.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(n){return n&&n.__esModule?n:{default:n}}var c=i;c.putACL=function(l,o,r){var s,b;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return r=r||{},r.subres=(0,d.default)({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.headers=r.headers||{},r.headers["x-oss-object-acl"]=o,l=this._objectName(l),s=this._objectRequestParams("PUT",l,r),s.successStatuses=[200],g.next=10,t.default.awrap(this.request(s));case 10:return b=g.sent,g.abrupt("return",{res:b.res});case 12:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=n(u),v=e("babel-runtime/core-js/object/keys"),d=n(v),f=e("babel-runtime/core-js/object/assign"),c=n(f);function n(h){return h&&h.__esModule?h:{default:h}}var l=e("../utils/obj2xml"),o=l.obj2xml,r=e("../utils/checkObjectTag"),s=r.checkObjectTag,b=i;b.putObjectTagging=function(g,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C,T,j;return t.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:return s(S),w.subres=(0,c.default)({tagging:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),g=this._objectName(g),C=this._objectRequestParams("PUT",g,w),C.successStatuses=[200],S=(0,d.default)(S).map(function(_){return{Key:_,Value:S[_]}}),T={Tagging:{TagSet:{Tag:S}}},C.mime="xml",C.content=o(T),O.next=12,t.default.awrap(this.request(C));case 12:return j=O.sent,O.abrupt("return",{res:j.res,status:j.status});case 14:case"end":return O.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/object/assign"),d=f(v);function f(n){return n&&n.__esModule?n:{default:n}}var c=i;c.putSymlink=function(l,o,r){var s,b;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return r=r||{},r.headers=r.headers||{},o=this._escape(this._objectName(o)),this._convertMetaToHeaders(r.meta,r.headers),r.headers["x-oss-symlink-target"]=o,r.subres=(0,d.default)({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.storageClass&&(r.headers["x-oss-storage-class"]=r.storageClass),l=this._objectName(l),s=this._objectRequestParams("PUT",l,r),s.successStatuses=[200],g.next=13,t.default.awrap(this.request(s));case 13:return b=g.sent,g.abrupt("return",{res:b.res});case 15:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(e,y,i){"use strict";var u=e("babel-runtime/regenerator"),t=f(u),v=e("babel-runtime/core-js/promise"),d=f(v);function f(n){return n&&n.__esModule?n:{default:n}}var c=i;c._parallelNode=function(l,o,r,s){var b,h,g,S,w,C,T,j;return t.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:b=this,h=[],g=[],S=l.length/o,w=l.length%o,C=w===0?S:(l.length-w)/o+1,T=1,j=0;case 8:if(!(j<l.length)){O.next=26;break}if(!b.isCancel()){O.next=11;break}return O.abrupt("break",26);case 11:if(s?g.push(r(b,l[j],s)):g.push(r(b,l[j])),!(g.length===o||T===C&&j===l.length-1)){O.next=23;break}return O.prev=13,T+=1,O.next=17,t.default.awrap(d.default.all(g));case 17:O.next=22;break;case 19:O.prev=19,O.t0=O.catch(13),h.push(O.t0);case 22:g=[];case 23:j++,O.next=8;break;case 26:return O.abrupt("return",h);case 27:case"end":return O.stop()}},null,this,[[13,19]])},c._parallel=function(l,o,r){var s=this;return new d.default(function(b){var h=[];if(o<=0||!l){b(h);return}function g(p){return function(){if(p===null)throw new Error("Callback was already called.");var P=p;p=null;for(var N=arguments.length,R=Array(N),A=0;A<N;A++)R[A]=arguments[A];P.apply(this,R)}}function S(p){var P=-1,N=p.length;return function(){return++P<N&&!s.isCancel()?{value:p[P],key:P}:null}}var w=S(l),C=!1,T=0,j=!1;function E(p,P){T-=1,p?(C=!0,h.push(p),b(h)):P==={}||C&&T<=0?(C=!0,b(h)):j||(s.isCancel()?b(h):_())}function O(p,P){r(p).then(function(N){P(null,N)}).catch(function(N){P(N)})}function _(){for(j=!0;T<o&&!C&&!s.isCancel();){var p=w();if(p===null||h.length>0){C=!0,T<=0&&b(h);return}T+=1,O(p.value,g(E))}j=!1}_()})},c.cancel=function(l){this.options.cancelFlag=!0,l&&this.abortMultipartUpload(l.name,l.uploadId,l.options)},c.isCancel=function(){return this.options.cancelFlag},c.resetCancelFlag=function(){this.options.cancelFlag=!1},c._stop=function(){this.options.cancelFlag=!0},c._makeCancelEvent=function(){var l={status:0,name:"cancel"};return l}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(e,y,i){(function(u){"use strict";var t=e("babel-runtime/core-js/json/stringify"),v=c(t),d=e("babel-runtime/core-js/object/keys"),f=c(d);function c(o){return o&&o.__esModule?o:{default:o}}var n=e("./../../shims/crypto/crypto.js"),l=e("is-type-of");i.buildCanonicalizedResource=function(r,s){var b=""+r,h="?";if(l.string(s)&&s.trim()!=="")b+=h+s;else if(l.array(s))s.sort(),b+=h+s.join("&");else if(s){var g=function(C,T){return C[0]>T[0]?1:C[0]<T[0]?-1:0},S=function(C){b+=h+C,s[C]&&(b+="="+s[C]),h="&"};(0,f.default)(s).sort(g).forEach(S)}return b},i.buildCanonicalString=function(r,s,b,h){b=b||{};var g=b.headers||{},S="x-oss-",w=[],C={},T=[r.toUpperCase(),g["Content-Md5"]||"",g["Content-Type"]||g["Content-Type".toLowerCase()],h||g["x-oss-date"]];return(0,f.default)(g).forEach(function(j){var E=j.toLowerCase();E.indexOf(S)===0&&(C[E]=String(g[j]).trim())}),(0,f.default)(C).sort().forEach(function(j){w.push(j+":"+C[j])}),T=T.concat(w),T.push(this.buildCanonicalizedResource(s,b.parameters)),T.join(`
`)},i.computeSignature=function(r,s){var b=n.createHmac("sha1",r);return b.update(u.from(s,"utf8")).digest("base64")},i.authorization=function(r,s,b){return"OSS "+r+":"+this.computeSignature(s,b)},i._signatureForURL=function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=arguments[2],h=arguments[3],g={},S=s.subResource,w=S===void 0?{}:S;if(s.process){var C="x-oss-process";w[C]=s.process}if(s.trafficLimit){var T="x-oss-traffic-limit";w[T]=s.trafficLimit}if(s.response&&(0,f.default)(s.response).forEach(function(_){var p="response-"+_.toLowerCase();w[p]=s.response[_]}),(0,f.default)(s).forEach(function(_){var p=_.toLowerCase(),P=s[_];p.indexOf("x-oss-")===0?g[p]=P:(p.indexOf("content-md5")===0||p.indexOf("content-type")===0)&&(g[_]=P)}),Object.prototype.hasOwnProperty.call(s,"security-token")&&(w["security-token"]=s["security-token"]),Object.prototype.hasOwnProperty.call(s,"callback")){var j={callbackUrl:encodeURI(s.callback.url),callbackBody:s.callback.body};if(s.callback.host&&(j.callbackHost=s.callback.host),s.callback.contentType&&(j.callbackBodyType=s.callback.contentType),w.callback=u.from((0,v.default)(j)).toString("base64"),s.callback.customValue){var E={};(0,f.default)(s.callback.customValue).forEach(function(_){E["x:"+_]=s.callback.customValue[_]}),w["callback-var"]=u.from((0,v.default)(E)).toString("base64")}}var O=this.buildCanonicalString(s.method,b,{headers:g,parameters:w},h.toString());return{Signature:this.computeSignature(r,O),subResource:w}}}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(e,y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkBucketName=void 0,i.checkBucketName=function(u,t){var v=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!v.test(u))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/entries"),t=v(u);function v(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(i,"__esModule",{value:!0}),i.checkObjectTag=void 0;var d=e("./checkValid"),f=d.checkValid,c=e("./isObject"),n=c.isObject,l=[{validator:function(b){if(typeof b!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],o={key:[].concat(l,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(l,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function r(s){if(!n(s))throw new Error("tag must be Object");var b=(0,t.default)(s);if(b.length>10)throw new Error("maximum of 10 tags for a object");var h=["key","value"];b.forEach(function(g){g.forEach(function(S,w){f(S,o[h[w]])})})}i.checkObjectTag=r},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(e,y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkValid=void 0;function u(t,v){v.forEach(function(d){if(d.validator)d.validator(t);else if(d.pattern&&!d.pattern.test(t))throw new Error(d.msg)})}i.checkValid=u},{}],38:[function(e,y,i){(function(u){"use strict";var t=e("babel-runtime/core-js/object/assign"),v=d(t);function d(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(i,"__esModule",{value:!0}),i.createRequest=void 0;var f=e("./../../../shims/crypto/crypto.js"),c=e("debug")("ali-oss"),n=e("mime"),l=e("dateformat"),o=e("copy-to"),r=e("path");function s(g,S){return g[S]||g[S.toLowerCase()]}function b(g,S){delete g[S],delete g[S.toLowerCase()]}function h(g){var S=new Date;this.options.amendTimeSkewed&&(S=+new Date+this.options.amendTimeSkewed);var w={"x-oss-date":l(S,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(w["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,v.default)(w,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(w["x-oss-security-token"]=this.options.stsToken),o(g.headers).to(w),s(w,"Content-Type")||(g.mime&&g.mime.indexOf("/")>0?w["Content-Type"]=g.mime:w["Content-Type"]=n.getType(g.mime||r.extname(g.object||""))),s(w,"Content-Type")||b(w,"Content-Type"),g.content&&(w["Content-Md5"]=f.createHash("md5").update(u.from(g.content,"utf8")).digest("base64"),w["Content-Length"]||(w["Content-Length"]=g.content.length));var C=this._getResource(g);w.authorization=this.authorization(g.method,C,g.subres,w);var T=this._getReqUrl(g);c("request %s %s, with headers %j, !!stream: %s",g.method,T,w,!!g.stream);var j=g.timeout||this.options.timeout,E={method:g.method,content:g.content,stream:g.stream,headers:w,timeout:j,writeStream:g.writeStream,customResponse:g.customResponse,ctx:g.ctx||this.ctx};return this.agent&&(E.agent=this.agent),this.httpsAgent&&(E.httpsAgent=this.httpsAgent),{url:T,params:E}}i.createRequest=h}).call(this,e("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=f(u),v=e("babel-runtime/helpers/typeof"),d=f(v);function f(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(i,"__esModule",{value:!0}),i.deepCopy=void 0,i.deepCopy=function(c){if(c===null||(typeof c=="undefined"?"undefined":(0,d.default)(c))!=="object")return c;var n=Array.isArray(c)?[]:{};return(0,t.default)(c).forEach(function(l){n[l]=i.deepCopy(c[l])}),n}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=f(u),v=e("babel-runtime/helpers/typeof"),d=f(v);function f(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(i,"__esModule",{value:!0}),i.formatObjKey=void 0;function c(l,o){if(l===null||(typeof l=="undefined"?"undefined":(0,d.default)(l))!=="object")return l;var r=void 0;if(Array.isArray(l)){r=[];for(var s=0;s<l.length;s++)r.push(c(l[s],o))}else r={},(0,t.default)(l).forEach(function(b){r[n(b,o)]=c(l[b],o)});return r}i.formatObjKey=c;function n(l,o){return o==="firstUpperCase"?l=l.replace(/^./,function(r){return r.toUpperCase()}):o==="firstLowerCase"&&(l=l.replace(/^./,function(r){return r.toLowerCase()})),l}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(e,y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getStrBytesCount=void 0;function u(t){for(var v=0,d=0;d<t.length;d++){var f=t.charAt(d);/^[\u00-\uff]$/.test(f)?v+=1:v+=2}return v}i.getStrBytesCount=u},{}],42:[function(e,y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isArray=void 0,i.isArray=function(u){return Object.prototype.toString.call(u)==="[object Array]"}},{}],43:[function(e,y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isBlob=void 0;function u(t){return typeof Blob!="undefined"&&t instanceof Blob}i.isBlob=u},{}],44:[function(e,y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isFile=void 0,i.isFile=function(u){return typeof File!="undefined"&&u instanceof File}},{}],45:[function(e,y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isIP=void 0,i.isIP=function(u){var t=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,v=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return t.test(u)||v.test(u)}},{}],46:[function(e,y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isObject=void 0,i.isObject=function(u){return Object.prototype.toString.call(u)==="[object Object]"}},{}],47:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=v(u);function v(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(i,"__esModule",{value:!0}),i.obj2xml=void 0;var d=e("./formatObjKey");function f(n){return Object.prototype.toString.call(n).replace(/(.*? |])/g,"").toLowerCase()}function c(n,l){var o="";return l&&l.headers&&(o=`<?xml version="1.0" encoding="UTF-8"?>
`),l&&l.firstUpperCase&&(n=d.formatObjKey(n,"firstUpperCase")),f(n)==="object"?(0,t.default)(n).forEach(function(r){f(n[r])==="string"||f(n[r])==="number"?o+="<"+r+">"+n[r]+"</"+r+">":f(n[r])==="object"?o+="<"+r+">"+c(n[r])+"</"+r+">":f(n[r])==="array"?o+=n[r].map(function(s){return"<"+r+">"+c(s)+"</"+r+">"}).join(""):o+="<"+r+">"+n[r].toString()+"</"+r+">"}):o+=n.toString(),o}i.obj2xml=c},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(e,y,i){y.exports=u,y.exports.HttpsAgent=u;function u(){}},{}],49:[function(e,y,i){y.exports=e("./register")().Promise},{"./register":51}],50:[function(e,y,i){"use strict";var u="@@any-promise/REGISTRATION",t=null;y.exports=function(v,d){return function(c,n){c=c||null,n=n||{};var l=n.global!==!1;if(t===null&&l&&(t=v[u]||null),t!==null&&c!==null&&t.implementation!==c)throw new Error('any-promise already defined as "'+t.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return t===null&&(c!==null&&typeof n.Promise!="undefined"?t={Promise:n.Promise,implementation:c}:t=d(c),l&&(v[u]=t)),t}}},{}],51:[function(e,y,i){"use strict";y.exports=e("./loader")(window,u);function u(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(e,y,i){y.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(e,y,i){y.exports={default:e("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(e,y,i){y.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(e,y,i){y.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(e,y,i){y.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(e,y,i){y.exports={default:e("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(e,y,i){y.exports={default:e("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(e,y,i){y.exports={default:e("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(e,y,i){y.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(e,y,i){y.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(e,y,i){y.exports={default:e("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(e,y,i){y.exports={default:e("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(e,y,i){y.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(e,y,i){y.exports={default:e("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(e,y,i){y.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(e,y,i){"use strict";i.__esModule=!0;var u=e("../core-js/symbol/iterator"),t=c(u),v=e("../core-js/symbol"),d=c(v),f=typeof d.default=="function"&&typeof t.default=="symbol"?function(n){return typeof n}:function(n){return n&&typeof d.default=="function"&&n.constructor===d.default&&n!==d.default.prototype?"symbol":typeof n};function c(n){return n&&n.__esModule?n:{default:n}}i.default=typeof d.default=="function"&&f(t.default)==="symbol"?function(n){return typeof n=="undefined"?"undefined":f(n)}:function(n){return n&&typeof d.default=="function"&&n.constructor===d.default&&n!==d.default.prototype?"symbol":typeof n=="undefined"?"undefined":f(n)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(e,y,i){y.exports=e("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(e,y,i){"use strict";i.byteLength=l,i.toByteArray=r,i.fromByteArray=h;for(var u=[],t=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,c=d.length;f<c;++f)u[f]=d[f],t[d.charCodeAt(f)]=f;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function n(g){var S=g.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=g.indexOf("=");w===-1&&(w=S);var C=w===S?0:4-w%4;return[w,C]}function l(g){var S=n(g),w=S[0],C=S[1];return(w+C)*3/4-C}function o(g,S,w){return(S+w)*3/4-w}function r(g){var S,w=n(g),C=w[0],T=w[1],j=new v(o(g,C,T)),E=0,O=T>0?C-4:C,_;for(_=0;_<O;_+=4)S=t[g.charCodeAt(_)]<<18|t[g.charCodeAt(_+1)]<<12|t[g.charCodeAt(_+2)]<<6|t[g.charCodeAt(_+3)],j[E++]=S>>16&255,j[E++]=S>>8&255,j[E++]=S&255;return T===2&&(S=t[g.charCodeAt(_)]<<2|t[g.charCodeAt(_+1)]>>4,j[E++]=S&255),T===1&&(S=t[g.charCodeAt(_)]<<10|t[g.charCodeAt(_+1)]<<4|t[g.charCodeAt(_+2)]>>2,j[E++]=S>>8&255,j[E++]=S&255),j}function s(g){return u[g>>18&63]+u[g>>12&63]+u[g>>6&63]+u[g&63]}function b(g,S,w){for(var C,T=[],j=S;j<w;j+=3)C=(g[j]<<16&16711680)+(g[j+1]<<8&65280)+(g[j+2]&255),T.push(s(C));return T.join("")}function h(g){for(var S,w=g.length,C=w%3,T=[],j=16383,E=0,O=w-C;E<O;E+=j)T.push(b(g,E,E+j>O?O:E+j));return C===1?(S=g[w-1],T.push(u[S>>2]+u[S<<4&63]+"==")):C===2&&(S=(g[w-2]<<8)+g[w-1],T.push(u[S>>10]+u[S>>4&63]+u[S<<2&63]+"=")),T.join("")}},{}],70:[function(e,y,i){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(u,t,v){typeof y!="undefined"&&y.exports?y.exports=v():typeof define=="function"&&define.amd?define(t,v):u[t]=v()}(this,"bowser",function(){var u=!0;function t(o){function r(F){var z=o.match(F);return z&&z.length>1&&z[1]||""}function s(F){var z=o.match(F);return z&&z.length>1&&z[2]||""}var b=r(/(ipod|iphone|ipad)/i).toLowerCase(),h=/like android/i.test(o),g=!h&&/android/i.test(o),S=/nexus\s*[0-6]\s*/i.test(o),w=!S&&/nexus\s*[0-9]+/i.test(o),C=/CrOS/.test(o),T=/silk/i.test(o),j=/sailfish/i.test(o),E=/tizen/i.test(o),O=/(web|hpw)(o|0)s/i.test(o),_=/windows phone/i.test(o),p=/SamsungBrowser/i.test(o),P=!_&&/windows/i.test(o),N=!b&&!T&&/macintosh/i.test(o),R=!g&&!j&&!E&&!O&&/linux/i.test(o),A=s(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),L=r(/version\/(\d+(\.\d+)?)/i),$=/tablet/i.test(o)&&!/tablet pc/i.test(o),V=!$&&/[^-]mobi/i.test(o),Y=/xbox/i.test(o),I;/opera/i.test(o)?I={name:"Opera",opera:u,version:L||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?I={name:"Opera",opera:u,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||L}:/SamsungBrowser/i.test(o)?I={name:"Samsung Internet for Android",samsungBrowser:u,version:L||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(o)?I={name:"NAVER Whale browser",whale:u,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(o)?I={name:"MZ Browser",mzbrowser:u,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(o)?I={name:"Opera Coast",coast:u,version:L||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(o)?I={name:"Focus",focus:u,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(o)?I={name:"Yandex Browser",yandexbrowser:u,version:L||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?I={name:"UC Browser",ucbrowser:u,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?I={name:"Maxthon",maxthon:u,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?I={name:"Epiphany",epiphany:u,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?I={name:"Puffin",puffin:u,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?I={name:"Sleipnir",sleipnir:u,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?I={name:"K-Meleon",kMeleon:u,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:_?(I={name:"Windows Phone",osname:"Windows Phone",windowsphone:u},A?(I.msedge=u,I.version=A):(I.msie=u,I.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?I={name:"Internet Explorer",msie:u,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:C?I={name:"Chrome",osname:"Chrome OS",chromeos:u,chromeBook:u,chrome:u,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?I={name:"Microsoft Edge",msedge:u,version:A}:/vivaldi/i.test(o)?I={name:"Vivaldi",vivaldi:u,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||L}:j?I={name:"Sailfish",osname:"Sailfish OS",sailfish:u,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?I={name:"SeaMonkey",seamonkey:u,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(I={name:"Firefox",firefox:u,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(I.firefoxos=u,I.osname="Firefox OS")):T?I={name:"Amazon Silk",silk:u,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?I={name:"PhantomJS",phantom:u,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?I={name:"SlimerJS",slimer:u,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?I={name:"BlackBerry",osname:"BlackBerry OS",blackberry:u,version:L||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:O?(I={name:"WebOS",osname:"WebOS",webos:u,version:L||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(I.touchpad=u)):/bada/i.test(o)?I={name:"Bada",osname:"Bada",bada:u,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:E?I={name:"Tizen",osname:"Tizen",tizen:u,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||L}:/qupzilla/i.test(o)?I={name:"QupZilla",qupzilla:u,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||L}:/chromium/i.test(o)?I={name:"Chromium",chromium:u,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||L}:/chrome|crios|crmo/i.test(o)?I={name:"Chrome",chrome:u,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:g?I={name:"Android",version:L}:/safari|applewebkit/i.test(o)?(I={name:"Safari",safari:u},L&&(I.version=L)):b?(I={name:b=="iphone"?"iPhone":b=="ipad"?"iPad":"iPod"},L&&(I.version=L)):/googlebot/i.test(o)?I={name:"Googlebot",googlebot:u,version:r(/googlebot\/(\d+(\.\d+))/i)||L}:I={name:r(/^(.*)\/(.*) /),version:s(/^(.*)\/(.*) /)},!I.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(I.name=I.name||"Blink",I.blink=u):(I.name=I.name||"Webkit",I.webkit=u),!I.version&&L&&(I.version=L)):!I.opera&&/gecko\//i.test(o)&&(I.name=I.name||"Gecko",I.gecko=u,I.version=I.version||r(/gecko\/(\d+(\.\d+)?)/i)),!I.windowsphone&&(g||I.silk)?(I.android=u,I.osname="Android"):!I.windowsphone&&b?(I[b]=u,I.ios=u,I.osname="iOS"):N?(I.mac=u,I.osname="macOS"):Y?(I.xbox=u,I.osname="Xbox"):P?(I.windows=u,I.osname="Windows"):R&&(I.linux=u,I.osname="Linux");function te(F){switch(F){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var G="";I.windows?G=te(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):I.windowsphone?G=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):I.mac?(G=r(/Mac OS X (\d+([_\.\s]\d+)*)/i),G=G.replace(/[_\s]/g,".")):b?(G=r(/os (\d+([_\s]\d+)*) like mac os x/i),G=G.replace(/[_\s]/g,".")):g?G=r(/android[ \/-](\d+(\.\d+)*)/i):I.webos?G=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):I.blackberry?G=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):I.bada?G=r(/bada\/(\d+(\.\d+)*)/i):I.tizen&&(G=r(/tizen[\/\s](\d+(\.\d+)*)/i)),G&&(I.osversion=G);var D=!I.windows&&G.split(".")[0];return $||w||b=="ipad"||g&&(D==3||D>=4&&!V)||I.silk?I.tablet=u:(V||b=="iphone"||b=="ipod"||g||S||I.blackberry||I.webos||I.bada)&&(I.mobile=u),I.msedge||I.msie&&I.version>=10||I.yandexbrowser&&I.version>=15||I.vivaldi&&I.version>=1||I.chrome&&I.version>=20||I.samsungBrowser&&I.version>=4||I.whale&&c([I.version,"1.0"])===1||I.mzbrowser&&c([I.version,"6.0"])===1||I.focus&&c([I.version,"1.0"])===1||I.firefox&&I.version>=20||I.safari&&I.version>=6||I.opera&&I.version>=10||I.ios&&I.osversion&&I.osversion.split(".")[0]>=6||I.blackberry&&I.version>=10.1||I.chromium&&I.version>=20?I.a=u:I.msie&&I.version<10||I.chrome&&I.version<20||I.firefox&&I.version<20||I.safari&&I.version<6||I.opera&&I.version<10||I.ios&&I.osversion&&I.osversion.split(".")[0]<6||I.chromium&&I.version<20?I.c=u:I.x=u,I}var v=t(typeof navigator!="undefined"&&navigator.userAgent||"");v.test=function(o){for(var r=0;r<o.length;++r){var s=o[r];if(typeof s=="string"&&s in v)return!0}return!1};function d(o){return o.split(".").length}function f(o,r){var s=[],b;if(Array.prototype.map)return Array.prototype.map.call(o,r);for(b=0;b<o.length;b++)s.push(r(o[b]));return s}function c(o){for(var r=Math.max(d(o[0]),d(o[1])),s=f(o,function(b){var h=r-d(b);return b=b+new Array(h+1).join(".0"),f(b.split("."),function(g){return new Array(20-g.length).join("0")+g}).reverse()});--r>=0;){if(s[0][r]>s[1][r])return 1;if(s[0][r]===s[1][r]){if(r===0)return 0}else return-1}}function n(o,r,s){var b=v;typeof r=="string"&&(s=r,r=void 0),r===void 0&&(r=!1),s&&(b=t(s));var h=""+b.version;for(var g in o)if(o.hasOwnProperty(g)&&b[g]){if(typeof o[g]!="string")throw new Error("Browser version in the minVersion map should be a string: "+g+": "+String(o));return c([h,o[g]])<0}return r}function l(o,r,s){return!n(o,r,s)}return v.isUnsupportedBrowser=n,v.compareVersions=c,v.check=l,v._detect=t,v.detect=t,v})},{}],71:[function(e,y,i){},{}],72:[function(e,y,i){var u=e("buffer").Buffer,t=u.isEncoding||function(l){switch(l&&l.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function v(l){if(l&&!t(l))throw new Error("Unknown encoding: "+l)}var d=i.StringDecoder=function(l){this.encoding=(l||"utf8").toLowerCase().replace(/[-_]/,""),v(l);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=c;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=n;break;default:this.write=f;return}this.charBuffer=new u(6),this.charReceived=0,this.charLength=0};d.prototype.write=function(l){for(var o="";this.charLength;){var r=l.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:l.length;if(l.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";l=l.slice(r,l.length),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var b=o.charCodeAt(o.length-1);if(b>=55296&&b<=56319){this.charLength+=this.surrogateSize,o="";continue}if(this.charReceived=this.charLength=0,l.length===0)return o;break}this.detectIncompleteChar(l);var s=l.length;this.charLength&&(l.copy(this.charBuffer,0,l.length-this.charReceived,s),s-=this.charReceived),o+=l.toString(this.encoding,0,s);var s=o.length-1,b=o.charCodeAt(s);if(b>=55296&&b<=56319){var h=this.surrogateSize;return this.charLength+=h,this.charReceived+=h,this.charBuffer.copy(this.charBuffer,h,0,h),l.copy(this.charBuffer,0,0,h),o.substring(0,s)}return o},d.prototype.detectIncompleteChar=function(l){for(var o=l.length>=3?3:l.length;o>0;o--){var r=l[l.length-o];if(o==1&&r>>5==6){this.charLength=2;break}if(o<=2&&r>>4==14){this.charLength=3;break}if(o<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=o},d.prototype.end=function(l){var o="";if(l&&l.length&&(o=this.write(l)),this.charReceived){var r=this.charReceived,s=this.charBuffer,b=this.encoding;o+=s.slice(0,r).toString(b)}return o};function f(l){return l.toString(this.encoding)}function c(l){this.charReceived=l.length%2,this.charLength=this.charReceived?2:0}function n(l){this.charReceived=l.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(e,y,i){(function(u,t){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var v=e("base64-js"),d=e("ieee754"),f=e("isarray");i.Buffer=t,i.SlowBuffer=T,i.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=u.TYPED_ARRAY_SUPPORT!==void 0?u.TYPED_ARRAY_SUPPORT:c(),i.kMaxLength=n();function c(){try{var k=new Uint8Array(1);return k.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},k.foo()===42&&typeof k.subarray=="function"&&k.subarray(1,1).byteLength===0}catch(x){return!1}}function n(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(k,x){if(n()<x)throw new RangeError("Invalid typed array length");return t.TYPED_ARRAY_SUPPORT?(k=new Uint8Array(x),k.__proto__=t.prototype):(k===null&&(k=new t(x)),k.length=x),k}function t(k,x,a){if(!t.TYPED_ARRAY_SUPPORT&&!(this instanceof t))return new t(k,x,a);if(typeof k=="number"){if(typeof x=="string")throw new Error("If encoding is specified then the first argument must be a string");return b(this,k)}return o(this,k,x,a)}t.poolSize=8192,t._augment=function(k){return k.__proto__=t.prototype,k};function o(k,x,a,m){if(typeof x=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&x instanceof ArrayBuffer?S(k,x,a,m):typeof x=="string"?h(k,x,a):w(k,x)}t.from=function(k,x,a){return o(null,k,x,a)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0}));function r(k){if(typeof k!="number")throw new TypeError('"size" argument must be a number');if(k<0)throw new RangeError('"size" argument must not be negative')}function s(k,x,a,m){return r(x),x<=0?l(k,x):a!==void 0?typeof m=="string"?l(k,x).fill(a,m):l(k,x).fill(a):l(k,x)}t.alloc=function(k,x,a){return s(null,k,x,a)};function b(k,x){if(r(x),k=l(k,x<0?0:C(x)|0),!t.TYPED_ARRAY_SUPPORT)for(var a=0;a<x;++a)k[a]=0;return k}t.allocUnsafe=function(k){return b(null,k)},t.allocUnsafeSlow=function(k){return b(null,k)};function h(k,x,a){if((typeof a!="string"||a==="")&&(a="utf8"),!t.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var m=j(x,a)|0;k=l(k,m);var H=k.write(x,a);return H!==m&&(k=k.slice(0,H)),k}function g(k,x){var a=x.length<0?0:C(x.length)|0;k=l(k,a);for(var m=0;m<a;m+=1)k[m]=x[m]&255;return k}function S(k,x,a,m){if(x.byteLength,a<0||x.byteLength<a)throw new RangeError("'offset' is out of bounds");if(x.byteLength<a+(m||0))throw new RangeError("'length' is out of bounds");return a===void 0&&m===void 0?x=new Uint8Array(x):m===void 0?x=new Uint8Array(x,a):x=new Uint8Array(x,a,m),t.TYPED_ARRAY_SUPPORT?(k=x,k.__proto__=t.prototype):k=g(k,x),k}function w(k,x){if(t.isBuffer(x)){var a=C(x.length)|0;return k=l(k,a),k.length===0||x.copy(k,0,0,a),k}if(x){if(typeof ArrayBuffer!="undefined"&&x.buffer instanceof ArrayBuffer||"length"in x)return typeof x.length!="number"||oe(x.length)?l(k,0):g(k,x);if(x.type==="Buffer"&&f(x.data))return g(k,x.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function C(k){if(k>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return k|0}function T(k){return+k!=k&&(k=0),t.alloc(+k)}t.isBuffer=function(x){return!!(x!=null&&x._isBuffer)},t.compare=function(x,a){if(!t.isBuffer(x)||!t.isBuffer(a))throw new TypeError("Arguments must be Buffers");if(x===a)return 0;for(var m=x.length,H=a.length,W=0,Q=Math.min(m,H);W<Q;++W)if(x[W]!==a[W]){m=x[W],H=a[W];break}return m<H?-1:H<m?1:0},t.isEncoding=function(x){switch(String(x).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(x,a){if(!f(x))throw new TypeError('"list" argument must be an Array of Buffers');if(x.length===0)return t.alloc(0);var m;if(a===void 0)for(a=0,m=0;m<x.length;++m)a+=x[m].length;var H=t.allocUnsafe(a),W=0;for(m=0;m<x.length;++m){var Q=x[m];if(!t.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy(H,W),W+=Q.length}return H};function j(k,x){if(t.isBuffer(k))return k.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(k)||k instanceof ArrayBuffer))return k.byteLength;typeof k!="string"&&(k=""+k);var a=k.length;if(a===0)return 0;for(var m=!1;;)switch(x){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return Z(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return U(k).length;default:if(m)return Z(k).length;x=(""+x).toLowerCase(),m=!0}}t.byteLength=j;function E(k,x,a){var m=!1;if((x===void 0||x<0)&&(x=0),x>this.length)return"";if((a===void 0||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,x>>>=0,a<=x)return"";for(k||(k="utf8");;)switch(k){case"hex":return F(this,x,a);case"utf8":case"utf-8":return Y(this,x,a);case"ascii":return G(this,x,a);case"latin1":case"binary":return D(this,x,a);case"base64":return V(this,x,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,x,a);default:if(m)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),m=!0}}t.prototype._isBuffer=!0;function O(k,x,a){var m=k[x];k[x]=k[a],k[a]=m}t.prototype.swap16=function(){var x=this.length;if(x%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<x;a+=2)O(this,a,a+1);return this},t.prototype.swap32=function(){var x=this.length;if(x%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<x;a+=4)O(this,a,a+3),O(this,a+1,a+2);return this},t.prototype.swap64=function(){var x=this.length;if(x%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<x;a+=8)O(this,a,a+7),O(this,a+1,a+6),O(this,a+2,a+5),O(this,a+3,a+4);return this},t.prototype.toString=function(){var x=this.length|0;return x===0?"":arguments.length===0?Y(this,0,x):E.apply(this,arguments)},t.prototype.equals=function(x){if(!t.isBuffer(x))throw new TypeError("Argument must be a Buffer");return this===x?!0:t.compare(this,x)===0},t.prototype.inspect=function(){var x="",a=i.INSPECT_MAX_BYTES;return this.length>0&&(x=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(x+=" ... ")),"<Buffer "+x+">"},t.prototype.compare=function(x,a,m,H,W){if(!t.isBuffer(x))throw new TypeError("Argument must be a Buffer");if(a===void 0&&(a=0),m===void 0&&(m=x?x.length:0),H===void 0&&(H=0),W===void 0&&(W=this.length),a<0||m>x.length||H<0||W>this.length)throw new RangeError("out of range index");if(H>=W&&a>=m)return 0;if(H>=W)return-1;if(a>=m)return 1;if(a>>>=0,m>>>=0,H>>>=0,W>>>=0,this===x)return 0;for(var Q=W-H,pe=m-a,ye=Math.min(Q,pe),we=this.slice(H,W),Re=x.slice(a,m),Oe=0;Oe<ye;++Oe)if(we[Oe]!==Re[Oe]){Q=we[Oe],pe=Re[Oe];break}return Q<pe?-1:pe<Q?1:0};function _(k,x,a,m,H){if(k.length===0)return-1;if(typeof a=="string"?(m=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=H?0:k.length-1),a<0&&(a=k.length+a),a>=k.length){if(H)return-1;a=k.length-1}else if(a<0)if(H)a=0;else return-1;if(typeof x=="string"&&(x=t.from(x,m)),t.isBuffer(x))return x.length===0?-1:p(k,x,a,m,H);if(typeof x=="number")return x=x&255,t.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?H?Uint8Array.prototype.indexOf.call(k,x,a):Uint8Array.prototype.lastIndexOf.call(k,x,a):p(k,[x],a,m,H);throw new TypeError("val must be string, number or Buffer")}function p(k,x,a,m,H){var W=1,Q=k.length,pe=x.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(k.length<2||x.length<2)return-1;W=2,Q/=2,pe/=2,a/=2}function ye(de,le){return W===1?de[le]:de.readUInt16BE(le*W)}var we;if(H){var Re=-1;for(we=a;we<Q;we++)if(ye(k,we)===ye(x,Re===-1?0:we-Re)){if(Re===-1&&(Re=we),we-Re+1===pe)return Re*W}else Re!==-1&&(we-=we-Re),Re=-1}else for(a+pe>Q&&(a=Q-pe),we=a;we>=0;we--){for(var Oe=!0,_e=0;_e<pe;_e++)if(ye(k,we+_e)!==ye(x,_e)){Oe=!1;break}if(Oe)return we}return-1}t.prototype.includes=function(x,a,m){return this.indexOf(x,a,m)!==-1},t.prototype.indexOf=function(x,a,m){return _(this,x,a,m,!0)},t.prototype.lastIndexOf=function(x,a,m){return _(this,x,a,m,!1)};function P(k,x,a,m){a=Number(a)||0;var H=k.length-a;m?(m=Number(m),m>H&&(m=H)):m=H;var W=x.length;if(W%2!==0)throw new TypeError("Invalid hex string");m>W/2&&(m=W/2);for(var Q=0;Q<m;++Q){var pe=parseInt(x.substr(Q*2,2),16);if(isNaN(pe))return Q;k[a+Q]=pe}return Q}function N(k,x,a,m){return B(Z(x,k.length-a),k,a,m)}function R(k,x,a,m){return B(re(x),k,a,m)}function A(k,x,a,m){return R(k,x,a,m)}function L(k,x,a,m){return B(U(x),k,a,m)}function $(k,x,a,m){return B(ce(x,k.length-a),k,a,m)}t.prototype.write=function(x,a,m,H){if(a===void 0)H="utf8",m=this.length,a=0;else if(m===void 0&&typeof a=="string")H=a,m=this.length,a=0;else if(isFinite(a))a=a|0,isFinite(m)?(m=m|0,H===void 0&&(H="utf8")):(H=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-a;if((m===void 0||m>W)&&(m=W),x.length>0&&(m<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");for(var Q=!1;;)switch(H){case"hex":return P(this,x,a,m);case"utf8":case"utf-8":return N(this,x,a,m);case"ascii":return R(this,x,a,m);case"latin1":case"binary":return A(this,x,a,m);case"base64":return L(this,x,a,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,x,a,m);default:if(Q)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),Q=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function V(k,x,a){return x===0&&a===k.length?v.fromByteArray(k):v.fromByteArray(k.slice(x,a))}function Y(k,x,a){a=Math.min(k.length,a);for(var m=[],H=x;H<a;){var W=k[H],Q=null,pe=W>239?4:W>223?3:W>191?2:1;if(H+pe<=a){var ye,we,Re,Oe;switch(pe){case 1:W<128&&(Q=W);break;case 2:ye=k[H+1],(ye&192)===128&&(Oe=(W&31)<<6|ye&63,Oe>127&&(Q=Oe));break;case 3:ye=k[H+1],we=k[H+2],(ye&192)===128&&(we&192)===128&&(Oe=(W&15)<<12|(ye&63)<<6|we&63,Oe>2047&&(Oe<55296||Oe>57343)&&(Q=Oe));break;case 4:ye=k[H+1],we=k[H+2],Re=k[H+3],(ye&192)===128&&(we&192)===128&&(Re&192)===128&&(Oe=(W&15)<<18|(ye&63)<<12|(we&63)<<6|Re&63,Oe>65535&&Oe<1114112&&(Q=Oe))}}Q===null?(Q=65533,pe=1):Q>65535&&(Q-=65536,m.push(Q>>>10&1023|55296),Q=56320|Q&1023),m.push(Q),H+=pe}return te(m)}var I=4096;function te(k){var x=k.length;if(x<=I)return String.fromCharCode.apply(String,k);for(var a="",m=0;m<x;)a+=String.fromCharCode.apply(String,k.slice(m,m+=I));return a}function G(k,x,a){var m="";a=Math.min(k.length,a);for(var H=x;H<a;++H)m+=String.fromCharCode(k[H]&127);return m}function D(k,x,a){var m="";a=Math.min(k.length,a);for(var H=x;H<a;++H)m+=String.fromCharCode(k[H]);return m}function F(k,x,a){var m=k.length;(!x||x<0)&&(x=0),(!a||a<0||a>m)&&(a=m);for(var H="",W=x;W<a;++W)H+=ee(k[W]);return H}function z(k,x,a){for(var m=k.slice(x,a),H="",W=0;W<m.length;W+=2)H+=String.fromCharCode(m[W]+m[W+1]*256);return H}t.prototype.slice=function(x,a){var m=this.length;x=~~x,a=a===void 0?m:~~a,x<0?(x+=m,x<0&&(x=0)):x>m&&(x=m),a<0?(a+=m,a<0&&(a=0)):a>m&&(a=m),a<x&&(a=x);var H;if(t.TYPED_ARRAY_SUPPORT)H=this.subarray(x,a),H.__proto__=t.prototype;else{var W=a-x;H=new t(W,void 0);for(var Q=0;Q<W;++Q)H[Q]=this[Q+x]}return H};function q(k,x,a){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+x>a)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUIntLE=function(x,a,m){x=x|0,a=a|0,m||q(x,a,this.length);for(var H=this[x],W=1,Q=0;++Q<a&&(W*=256);)H+=this[x+Q]*W;return H},t.prototype.readUIntBE=function(x,a,m){x=x|0,a=a|0,m||q(x,a,this.length);for(var H=this[x+--a],W=1;a>0&&(W*=256);)H+=this[x+--a]*W;return H},t.prototype.readUInt8=function(x,a){return a||q(x,1,this.length),this[x]},t.prototype.readUInt16LE=function(x,a){return a||q(x,2,this.length),this[x]|this[x+1]<<8},t.prototype.readUInt16BE=function(x,a){return a||q(x,2,this.length),this[x]<<8|this[x+1]},t.prototype.readUInt32LE=function(x,a){return a||q(x,4,this.length),(this[x]|this[x+1]<<8|this[x+2]<<16)+this[x+3]*16777216},t.prototype.readUInt32BE=function(x,a){return a||q(x,4,this.length),this[x]*16777216+(this[x+1]<<16|this[x+2]<<8|this[x+3])},t.prototype.readIntLE=function(x,a,m){x=x|0,a=a|0,m||q(x,a,this.length);for(var H=this[x],W=1,Q=0;++Q<a&&(W*=256);)H+=this[x+Q]*W;return W*=128,H>=W&&(H-=Math.pow(2,8*a)),H},t.prototype.readIntBE=function(x,a,m){x=x|0,a=a|0,m||q(x,a,this.length);for(var H=a,W=1,Q=this[x+--H];H>0&&(W*=256);)Q+=this[x+--H]*W;return W*=128,Q>=W&&(Q-=Math.pow(2,8*a)),Q},t.prototype.readInt8=function(x,a){return a||q(x,1,this.length),this[x]&128?(255-this[x]+1)*-1:this[x]},t.prototype.readInt16LE=function(x,a){a||q(x,2,this.length);var m=this[x]|this[x+1]<<8;return m&32768?m|4294901760:m},t.prototype.readInt16BE=function(x,a){a||q(x,2,this.length);var m=this[x+1]|this[x]<<8;return m&32768?m|4294901760:m},t.prototype.readInt32LE=function(x,a){return a||q(x,4,this.length),this[x]|this[x+1]<<8|this[x+2]<<16|this[x+3]<<24},t.prototype.readInt32BE=function(x,a){return a||q(x,4,this.length),this[x]<<24|this[x+1]<<16|this[x+2]<<8|this[x+3]},t.prototype.readFloatLE=function(x,a){return a||q(x,4,this.length),d.read(this,x,!0,23,4)},t.prototype.readFloatBE=function(x,a){return a||q(x,4,this.length),d.read(this,x,!1,23,4)},t.prototype.readDoubleLE=function(x,a){return a||q(x,8,this.length),d.read(this,x,!0,52,8)},t.prototype.readDoubleBE=function(x,a){return a||q(x,8,this.length),d.read(this,x,!1,52,8)};function M(k,x,a,m,H,W){if(!t.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(x>H||x<W)throw new RangeError('"value" argument is out of bounds');if(a+m>k.length)throw new RangeError("Index out of range")}t.prototype.writeUIntLE=function(x,a,m,H){if(x=+x,a=a|0,m=m|0,!H){var W=Math.pow(2,8*m)-1;M(this,x,a,m,W,0)}var Q=1,pe=0;for(this[a]=x&255;++pe<m&&(Q*=256);)this[a+pe]=x/Q&255;return a+m},t.prototype.writeUIntBE=function(x,a,m,H){if(x=+x,a=a|0,m=m|0,!H){var W=Math.pow(2,8*m)-1;M(this,x,a,m,W,0)}var Q=m-1,pe=1;for(this[a+Q]=x&255;--Q>=0&&(pe*=256);)this[a+Q]=x/pe&255;return a+m},t.prototype.writeUInt8=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,1,255,0),t.TYPED_ARRAY_SUPPORT||(x=Math.floor(x)),this[a]=x&255,a+1};function J(k,x,a,m){x<0&&(x=65535+x+1);for(var H=0,W=Math.min(k.length-a,2);H<W;++H)k[a+H]=(x&255<<8*(m?H:1-H))>>>(m?H:1-H)*8}t.prototype.writeUInt16LE=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[a]=x&255,this[a+1]=x>>>8):J(this,x,a,!0),a+2},t.prototype.writeUInt16BE=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[a]=x>>>8,this[a+1]=x&255):J(this,x,a,!1),a+2};function ae(k,x,a,m){x<0&&(x=4294967295+x+1);for(var H=0,W=Math.min(k.length-a,4);H<W;++H)k[a+H]=x>>>(m?H:3-H)*8&255}t.prototype.writeUInt32LE=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[a+3]=x>>>24,this[a+2]=x>>>16,this[a+1]=x>>>8,this[a]=x&255):ae(this,x,a,!0),a+4},t.prototype.writeUInt32BE=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[a]=x>>>24,this[a+1]=x>>>16,this[a+2]=x>>>8,this[a+3]=x&255):ae(this,x,a,!1),a+4},t.prototype.writeIntLE=function(x,a,m,H){if(x=+x,a=a|0,!H){var W=Math.pow(2,8*m-1);M(this,x,a,m,W-1,-W)}var Q=0,pe=1,ye=0;for(this[a]=x&255;++Q<m&&(pe*=256);)x<0&&ye===0&&this[a+Q-1]!==0&&(ye=1),this[a+Q]=(x/pe>>0)-ye&255;return a+m},t.prototype.writeIntBE=function(x,a,m,H){if(x=+x,a=a|0,!H){var W=Math.pow(2,8*m-1);M(this,x,a,m,W-1,-W)}var Q=m-1,pe=1,ye=0;for(this[a+Q]=x&255;--Q>=0&&(pe*=256);)x<0&&ye===0&&this[a+Q+1]!==0&&(ye=1),this[a+Q]=(x/pe>>0)-ye&255;return a+m},t.prototype.writeInt8=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,1,127,-128),t.TYPED_ARRAY_SUPPORT||(x=Math.floor(x)),x<0&&(x=255+x+1),this[a]=x&255,a+1},t.prototype.writeInt16LE=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[a]=x&255,this[a+1]=x>>>8):J(this,x,a,!0),a+2},t.prototype.writeInt16BE=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[a]=x>>>8,this[a+1]=x&255):J(this,x,a,!1),a+2},t.prototype.writeInt32LE=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[a]=x&255,this[a+1]=x>>>8,this[a+2]=x>>>16,this[a+3]=x>>>24):ae(this,x,a,!0),a+4},t.prototype.writeInt32BE=function(x,a,m){return x=+x,a=a|0,m||M(this,x,a,4,2147483647,-2147483648),x<0&&(x=4294967295+x+1),t.TYPED_ARRAY_SUPPORT?(this[a]=x>>>24,this[a+1]=x>>>16,this[a+2]=x>>>8,this[a+3]=x&255):ae(this,x,a,!1),a+4};function ne(k,x,a,m,H,W){if(a+m>k.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function me(k,x,a,m,H){return H||ne(k,x,a,4,34028234663852886e22,-34028234663852886e22),d.write(k,x,a,m,23,4),a+4}t.prototype.writeFloatLE=function(x,a,m){return me(this,x,a,!0,m)},t.prototype.writeFloatBE=function(x,a,m){return me(this,x,a,!1,m)};function be(k,x,a,m,H){return H||ne(k,x,a,8,17976931348623157e292,-17976931348623157e292),d.write(k,x,a,m,52,8),a+8}t.prototype.writeDoubleLE=function(x,a,m){return be(this,x,a,!0,m)},t.prototype.writeDoubleBE=function(x,a,m){return be(this,x,a,!1,m)},t.prototype.copy=function(x,a,m,H){if(m||(m=0),!H&&H!==0&&(H=this.length),a>=x.length&&(a=x.length),a||(a=0),H>0&&H<m&&(H=m),H===m)return 0;if(x.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=this.length)throw new RangeError("sourceStart out of bounds");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),x.length-a<H-m&&(H=x.length-a+m);var W=H-m,Q;if(this===x&&m<a&&a<H)for(Q=W-1;Q>=0;--Q)x[Q+a]=this[Q+m];else if(W<1e3||!t.TYPED_ARRAY_SUPPORT)for(Q=0;Q<W;++Q)x[Q+a]=this[Q+m];else Uint8Array.prototype.set.call(x,this.subarray(m,m+W),a);return W},t.prototype.fill=function(x,a,m,H){if(typeof x=="string"){if(typeof a=="string"?(H=a,a=0,m=this.length):typeof m=="string"&&(H=m,m=this.length),x.length===1){var W=x.charCodeAt(0);W<256&&(x=W)}if(H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!t.isEncoding(H))throw new TypeError("Unknown encoding: "+H)}else typeof x=="number"&&(x=x&255);if(a<0||this.length<a||this.length<m)throw new RangeError("Out of range index");if(m<=a)return this;a=a>>>0,m=m===void 0?this.length:m>>>0,x||(x=0);var Q;if(typeof x=="number")for(Q=a;Q<m;++Q)this[Q]=x;else{var pe=t.isBuffer(x)?x:Z(new t(x,H).toString()),ye=pe.length;for(Q=0;Q<m-a;++Q)this[Q+a]=pe[Q%ye]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function Ne(k){if(k=ue(k).replace(K,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function ue(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")}function ee(k){return k<16?"0"+k.toString(16):k.toString(16)}function Z(k,x){x=x||Infinity;for(var a,m=k.length,H=null,W=[],Q=0;Q<m;++Q){if(a=k.charCodeAt(Q),a>55295&&a<57344){if(!H){if(a>56319){(x-=3)>-1&&W.push(239,191,189);continue}else if(Q+1===m){(x-=3)>-1&&W.push(239,191,189);continue}H=a;continue}if(a<56320){(x-=3)>-1&&W.push(239,191,189),H=a;continue}a=(H-55296<<10|a-56320)+65536}else H&&((x-=3)>-1&&W.push(239,191,189));if(H=null,a<128){if((x-=1)<0)break;W.push(a)}else if(a<2048){if((x-=2)<0)break;W.push(a>>6|192,a&63|128)}else if(a<65536){if((x-=3)<0)break;W.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((x-=4)<0)break;W.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return W}function re(k){for(var x=[],a=0;a<k.length;++a)x.push(k.charCodeAt(a)&255);return x}function ce(k,x){for(var a,m,H,W=[],Q=0;Q<k.length&&!((x-=2)<0);++Q)a=k.charCodeAt(Q),m=a>>8,H=a%256,W.push(H),W.push(m);return W}function U(k){return v.toByteArray(Ne(k))}function B(k,x,a,m){for(var H=0;H<m&&!(H+a>=x.length||H>=k.length);++H)x[H+a]=k[H];return H}function oe(k){return k!==k}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(e,y,i){y.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(e,y,i){y.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(e,y,i){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var u=Array.prototype.slice;y.exports=t;function t(d,f){if(!(this instanceof t))return new t(d,f);this.src=d,this._withAccess=f}t.prototype.withAccess=function(d){return this._withAccess=d!==!1,this},t.prototype.pick=function(d){return Array.isArray(d)||(d=u.call(arguments)),d.length&&(this.keys=d),this},t.prototype.to=function(d){if(d=d||{},!this.src)return d;var f=this.keys||Object.keys(this.src);if(!this._withAccess){for(var c=0;c<f.length;c++){if(n=f[c],d[n]!==void 0)continue;d[n]=this.src[n]}return d}for(var c=0;c<f.length;c++){var n=f[c];if(!v(d,n))continue;var l=this.src.__lookupGetter__(n),o=this.src.__lookupSetter__(n);l&&d.__defineGetter__(n,l),o&&d.__defineSetter__(n,o),!l&&!o&&(d[n]=this.src[n])}return d},t.prototype.toCover=function(d){for(var f=this.keys||Object.keys(this.src),c=0;c<f.length;c++){var n=f[c];delete d[n];var l=this.src.__lookupGetter__(n),o=this.src.__lookupSetter__(n);l&&d.__defineGetter__(n,l),o&&d.__defineSetter__(n,o),!l&&!o&&(d[n]=this.src[n])}},t.prototype.override=t.prototype.toCover,t.prototype.and=function(d){var f={};return this.to(f),this.src=d,this.to(f),this.src=f,this};function v(d,f){return d[f]===void 0&&d.__lookupGetter__(f)===void 0&&d.__lookupSetter__(f)===void 0}},{}],77:[function(e,y,i){e("../../modules/es6.string.iterator"),e("../../modules/es6.array.from"),y.exports=e("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(e,y,i){var u=e("../../modules/_core"),t=u.JSON||(u.JSON={stringify:JSON.stringify});y.exports=function(d){return t.stringify.apply(t,arguments)}},{"../../modules/_core":99}],79:[function(e,y,i){e("../../modules/es6.object.assign"),y.exports=e("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(e,y,i){e("../../modules/es6.object.create");var u=e("../../modules/_core").Object;y.exports=function(v,d){return u.create(v,d)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(e,y,i){e("../../modules/es6.object.define-property");var u=e("../../modules/_core").Object;y.exports=function(v,d,f){return u.defineProperty(v,d,f)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(e,y,i){e("../../modules/es7.object.entries"),y.exports=e("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(e,y,i){e("../../modules/es6.object.get-own-property-names");var u=e("../../modules/_core").Object;y.exports=function(v){return u.getOwnPropertyNames(v)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(e,y,i){e("../../modules/es6.object.get-prototype-of"),y.exports=e("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(e,y,i){e("../../modules/es6.object.keys"),y.exports=e("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(e,y,i){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.promise"),e("../modules/es7.promise.finally"),e("../modules/es7.promise.try"),y.exports=e("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(e,y,i){e("../modules/web.immediate"),y.exports=e("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(e,y,i){e("../../modules/es6.string.from-code-point"),y.exports=e("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(e,y,i){e("../../modules/es6.function.has-instance"),y.exports=e("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(e,y,i){e("../../modules/es6.symbol"),e("../../modules/es6.object.to-string"),e("../../modules/es7.symbol.async-iterator"),e("../../modules/es7.symbol.observable"),y.exports=e("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(e,y,i){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),y.exports=e("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(e,y,i){y.exports=function(u){if(typeof u!="function")throw TypeError(u+" is not a function!");return u}},{}],93:[function(e,y,i){y.exports=function(){}},{}],94:[function(e,y,i){y.exports=function(u,t,v,d){if(!(u instanceof t)||d!==void 0&&d in u)throw TypeError(v+": incorrect invocation!");return u}},{}],95:[function(e,y,i){var u=e("./_is-object");y.exports=function(t){if(!u(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":119}],96:[function(e,y,i){var u=e("./_to-iobject"),t=e("./_to-length"),v=e("./_to-absolute-index");y.exports=function(d){return function(f,c,n){var l=u(f),o=t(l.length),r=v(n,o),s;if(d&&c!=c){for(;o>r;)if(s=l[r++],s!=s)return!0}else for(;o>r;r++)if((d||r in l)&&l[r]===c)return d||r||0;return!d&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(e,y,i){var u=e("./_cof"),t=e("./_wks")("toStringTag"),v=u(function(){return arguments}())=="Arguments",d=function(c,n){try{return c[n]}catch(l){}};y.exports=function(f){var c,n,l;return f===void 0?"Undefined":f===null?"Null":typeof(n=d(c=Object(f),t))=="string"?n:v?u(c):(l=u(c))=="Object"&&typeof c.callee=="function"?"Arguments":l}},{"./_cof":98,"./_wks":166}],98:[function(e,y,i){var u={}.toString;y.exports=function(t){return u.call(t).slice(8,-1)}},{}],99:[function(e,y,i){var u=y.exports={version:"2.6.11"};typeof __e=="number"&&(__e=u)},{}],100:[function(e,y,i){"use strict";var u=e("./_object-dp"),t=e("./_property-desc");y.exports=function(v,d,f){d in v?u.f(v,d,t(0,f)):v[d]=f}},{"./_object-dp":132,"./_property-desc":146}],101:[function(e,y,i){var u=e("./_a-function");y.exports=function(t,v,d){if(u(t),v===void 0)return t;switch(d){case 1:return function(f){return t.call(v,f)};case 2:return function(f,c){return t.call(v,f,c)};case 3:return function(f,c,n){return t.call(v,f,c,n)}}return function(){return t.apply(v,arguments)}}},{"./_a-function":92}],102:[function(e,y,i){y.exports=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u}},{}],103:[function(e,y,i){y.exports=!e("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(e,y,i){var u=e("./_is-object"),t=e("./_global").document,v=u(t)&&u(t.createElement);y.exports=function(d){return v?t.createElement(d):{}}},{"./_global":110,"./_is-object":119}],105:[function(e,y,i){y.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(e,y,i){var u=e("./_object-keys"),t=e("./_object-gops"),v=e("./_object-pie");y.exports=function(d){var f=u(d),c=t.f;if(c)for(var n=c(d),l=v.f,o=0,r;n.length>o;)l.call(d,r=n[o++])&&f.push(r);return f}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(e,y,i){var u=e("./_global"),t=e("./_core"),v=e("./_ctx"),d=e("./_hide"),f=e("./_has"),c="prototype",n=function l(o,r,s){var b=o&l.F,h=o&l.G,g=o&l.S,S=o&l.P,w=o&l.B,C=o&l.W,T=h?t:t[r]||(t[r]={}),j=T[c],E=h?u:g?u[r]:(u[r]||{})[c],O,_,p;h&&(s=r);for(O in s){if(_=!b&&E&&E[O]!==void 0,_&&f(T,O))continue;p=_?E[O]:s[O],T[O]=h&&typeof E[O]!="function"?s[O]:w&&_?v(p,u):C&&E[O]==p?function(P){var N=function(A,L,$){if(this instanceof P){switch(arguments.length){case 0:return new P;case 1:return new P(A);case 2:return new P(A,L)}return new P(A,L,$)}return P.apply(this,arguments)};return N[c]=P[c],N}(p):S&&typeof p=="function"?v(Function.call,p):p,S&&((T.virtual||(T.virtual={}))[O]=p,o&l.R&&j&&!j[O]&&d(j,O,p))}};n.F=1,n.G=2,n.S=4,n.P=8,n.B=16,n.W=32,n.U=64,n.R=128,y.exports=n},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(e,y,i){y.exports=function(u){try{return!!u()}catch(t){return!0}}},{}],109:[function(e,y,i){var u=e("./_ctx"),t=e("./_iter-call"),v=e("./_is-array-iter"),d=e("./_an-object"),f=e("./_to-length"),c=e("./core.get-iterator-method"),n={},l={},i=y.exports=function(o,r,s,b,h){var g=h?function(){return o}:c(o),S=u(s,b,r?2:1),w=0,C,T,j,E;if(typeof g!="function")throw TypeError(o+" is not iterable!");if(v(g)){for(C=f(o.length);C>w;w++)if(E=r?S(d(T=o[w])[0],T[1]):S(o[w]),E===n||E===l)return E}else for(j=g.call(o);!(T=j.next()).done;)if(E=t(j,S,T.value,r),E===n||E===l)return E};i.BREAK=n,i.RETURN=l},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(e,y,i){var u=y.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=u)},{}],111:[function(e,y,i){var u={}.hasOwnProperty;y.exports=function(t,v){return u.call(t,v)}},{}],112:[function(e,y,i){var u=e("./_object-dp"),t=e("./_property-desc");y.exports=e("./_descriptors")?function(v,d,f){return u.f(v,d,t(1,f))}:function(v,d,f){return v[d]=f,v}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(e,y,i){var u=e("./_global").document;y.exports=u&&u.documentElement},{"./_global":110}],114:[function(e,y,i){y.exports=!e("./_descriptors")&&!e("./_fails")(function(){return Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(e,y,i){y.exports=function(u,t,v){var d=v===void 0;switch(t.length){case 0:return d?u():u.call(v);case 1:return d?u(t[0]):u.call(v,t[0]);case 2:return d?u(t[0],t[1]):u.call(v,t[0],t[1]);case 3:return d?u(t[0],t[1],t[2]):u.call(v,t[0],t[1],t[2]);case 4:return d?u(t[0],t[1],t[2],t[3]):u.call(v,t[0],t[1],t[2],t[3])}return u.apply(v,t)}},{}],116:[function(e,y,i){var u=e("./_cof");y.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return u(t)=="String"?t.split(""):Object(t)}},{"./_cof":98}],117:[function(e,y,i){var u=e("./_iterators"),t=e("./_wks")("iterator"),v=Array.prototype;y.exports=function(d){return d!==void 0&&(u.Array===d||v[t]===d)}},{"./_iterators":125,"./_wks":166}],118:[function(e,y,i){var u=e("./_cof");y.exports=Array.isArray||function(v){return u(v)=="Array"}},{"./_cof":98}],119:[function(e,y,i){y.exports=function(u){return typeof u=="object"?u!==null:typeof u=="function"}},{}],120:[function(e,y,i){var u=e("./_an-object");y.exports=function(t,v,d,f){try{return f?v(u(d)[0],d[1]):v(d)}catch(n){var c=t.return;throw c!==void 0&&u(c.call(t)),n}}},{"./_an-object":95}],121:[function(e,y,i){"use strict";var u=e("./_object-create"),t=e("./_property-desc"),v=e("./_set-to-string-tag"),d={};e("./_hide")(d,e("./_wks")("iterator"),function(){return this}),y.exports=function(f,c,n){f.prototype=u(d,{next:t(1,n)}),v(f,c+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(e,y,i){"use strict";var u=e("./_library"),t=e("./_export"),v=e("./_redefine"),d=e("./_hide"),f=e("./_iterators"),c=e("./_iter-create"),n=e("./_set-to-string-tag"),l=e("./_object-gpo"),o=e("./_wks")("iterator"),r=!([].keys&&"next"in[].keys()),s="@@iterator",b="keys",h="values",g=function(){return this};y.exports=function(S,w,C,T,j,E,O){c(C,w,T);var _=function(D){if(!r&&D in R)return R[D];switch(D){case b:return function(){return new C(this,D)};case h:return function(){return new C(this,D)}}return function(){return new C(this,D)}},p=w+" Iterator",P=j==h,N=!1,R=S.prototype,A=R[o]||R[s]||j&&R[j],L=A||_(j),$=j?P?_("entries"):L:void 0,V=w=="Array"&&R.entries||A,Y,I,te;if(V&&(te=l(V.call(new S)),te!==Object.prototype&&te.next&&(n(te,p,!0),!u&&typeof te[o]!="function"&&d(te,o,g))),P&&A&&A.name!==h&&(N=!0,L=function(){return A.call(this)}),(!u||O)&&(r||N||!R[o])&&d(R,o,L),f[w]=L,f[p]=g,j)if(Y={values:P?L:_(h),keys:E?L:_(b),entries:$},O)for(I in Y)I in R||v(R,I,Y[I]);else t(t.P+t.F*(r||N),w,Y);return Y}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(e,y,i){var u=e("./_wks")("iterator"),t=!1;try{var v=[7][u]();v.return=function(){t=!0},Array.from(v,function(){throw 2})}catch(d){}y.exports=function(d,f){if(!f&&!t)return!1;var c=!1;try{var n=[7],l=n[u]();l.next=function(){return{done:c=!0}},n[u]=function(){return l},d(n)}catch(o){}return c}},{"./_wks":166}],124:[function(e,y,i){y.exports=function(u,t){return{value:t,done:!!u}}},{}],125:[function(e,y,i){y.exports={}},{}],126:[function(e,y,i){y.exports=!0},{}],127:[function(e,y,i){var u=e("./_uid")("meta"),t=e("./_is-object"),v=e("./_has"),d=e("./_object-dp").f,f=0,c=Object.isExtensible||function(){return!0},n=!e("./_fails")(function(){return c(Object.preventExtensions({}))}),l=function(g){d(g,u,{value:{i:"O"+ ++f,w:{}}})},o=function(g,S){if(!t(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!v(g,u)){if(!c(g))return"F";if(!S)return"E";l(g)}return g[u].i},r=function(g,S){if(!v(g,u)){if(!c(g))return!0;if(!S)return!1;l(g)}return g[u].w},s=function(g){return n&&b.NEED&&c(g)&&!v(g,u)&&l(g),g},b=y.exports={KEY:u,NEED:!1,fastKey:o,getWeak:r,onFreeze:s}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(e,y,i){var u=e("./_global"),t=e("./_task").set,v=u.MutationObserver||u.WebKitMutationObserver,d=u.process,f=u.Promise,c=e("./_cof")(d)=="process";y.exports=function(){var n,l,o,r=function(){var S,w;for(c&&(S=d.domain)&&S.exit();n;){w=n.fn,n=n.next;try{w()}catch(C){throw n?o():l=void 0,C}}l=void 0,S&&S.enter()};if(c)o=function(){d.nextTick(r)};else if(v&&!(u.navigator&&u.navigator.standalone)){var s=!0,b=document.createTextNode("");new v(r).observe(b,{characterData:!0}),o=function(){b.data=s=!s}}else if(f&&f.resolve){var h=f.resolve(void 0);o=function(){h.then(r)}}else o=function(){t.call(u,r)};return function(g){var S={fn:g,next:void 0};l&&(l.next=S),n||(n=S,o()),l=S}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(e,y,i){"use strict";var u=e("./_a-function");function t(v){var d,f;this.promise=new v(function(c,n){if(d!==void 0||f!==void 0)throw TypeError("Bad Promise constructor");d=c,f=n}),this.resolve=u(d),this.reject=u(f)}y.exports.f=function(v){return new t(v)}},{"./_a-function":92}],130:[function(e,y,i){"use strict";var u=e("./_descriptors"),t=e("./_object-keys"),v=e("./_object-gops"),d=e("./_object-pie"),f=e("./_to-object"),c=e("./_iobject"),n=Object.assign;y.exports=!n||e("./_fails")(function(){var l={},o={},r=Symbol(),s="abcdefghijklmnopqrst";return l[r]=7,s.split("").forEach(function(b){o[b]=b}),n({},l)[r]!=7||Object.keys(n({},o)).join("")!=s})?function(o,r){for(var s=f(o),b=arguments.length,h=1,g=v.f,S=d.f;b>h;)for(var w=c(arguments[h++]),C=g?t(w).concat(g(w)):t(w),T=C.length,j=0,E;T>j;)E=C[j++],(!u||S.call(w,E))&&(s[E]=w[E]);return s}:n},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(e,y,i){var u=e("./_an-object"),t=e("./_object-dps"),v=e("./_enum-bug-keys"),d=e("./_shared-key")("IE_PROTO"),f=function(){},c="prototype",n=function(){var o=e("./_dom-create")("iframe"),r=v.length,s="<",b=">",h;for(o.style.display="none",e("./_html").appendChild(o),o.src="javascript:",h=o.contentWindow.document,h.open(),h.write(s+"script"+b+"document.F=Object"+s+"/script"+b),h.close(),n=h.F;r--;)delete n[c][v[r]];return n()};y.exports=Object.create||function(o,r){var s;return o!==null?(f[c]=u(o),s=new f,f[c]=null,s[d]=o):s=n(),r===void 0?s:t(s,r)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(e,y,i){var u=e("./_an-object"),t=e("./_ie8-dom-define"),v=e("./_to-primitive"),d=Object.defineProperty;i.f=e("./_descriptors")?Object.defineProperty:function(c,n,l){if(u(c),n=v(n,!0),u(l),t)try{return d(c,n,l)}catch(o){}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(c[n]=l.value),c}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(e,y,i){var u=e("./_object-dp"),t=e("./_an-object"),v=e("./_object-keys");y.exports=e("./_descriptors")?Object.defineProperties:function(f,c){t(f);for(var n=v(c),l=n.length,o=0,r;l>o;)u.f(f,r=n[o++],c[r]);return f}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(e,y,i){var u=e("./_object-pie"),t=e("./_property-desc"),v=e("./_to-iobject"),d=e("./_to-primitive"),f=e("./_has"),c=e("./_ie8-dom-define"),n=Object.getOwnPropertyDescriptor;i.f=e("./_descriptors")?n:function(o,r){if(o=v(o),r=d(r,!0),c)try{return n(o,r)}catch(s){}if(f(o,r))return t(!u.f.call(o,r),o[r])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(e,y,i){var u=e("./_to-iobject"),t=e("./_object-gopn").f,v={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(n){try{return t(n)}catch(l){return d.slice()}};y.exports.f=function(n){return d&&v.call(n)=="[object Window]"?f(n):t(u(n))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(e,y,i){var u=e("./_object-keys-internal"),t=e("./_enum-bug-keys").concat("length","prototype");i.f=Object.getOwnPropertyNames||function(d){return u(d,t)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(e,y,i){i.f=Object.getOwnPropertySymbols},{}],138:[function(e,y,i){var u=e("./_has"),t=e("./_to-object"),v=e("./_shared-key")("IE_PROTO"),d=Object.prototype;y.exports=Object.getPrototypeOf||function(f){return f=t(f),u(f,v)?f[v]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?d:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(e,y,i){var u=e("./_has"),t=e("./_to-iobject"),v=e("./_array-includes")(!1),d=e("./_shared-key")("IE_PROTO");y.exports=function(f,c){var n=t(f),l=0,o=[],r;for(r in n)r!=d&&(u(n,r)&&o.push(r));for(;c.length>l;)u(n,r=c[l++])&&(~v(o,r)||o.push(r));return o}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(e,y,i){var u=e("./_object-keys-internal"),t=e("./_enum-bug-keys");y.exports=Object.keys||function(d){return u(d,t)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(e,y,i){i.f={}.propertyIsEnumerable},{}],142:[function(e,y,i){var u=e("./_export"),t=e("./_core"),v=e("./_fails");y.exports=function(d,f){var c=(t.Object||{})[d]||Object[d],n={};n[d]=f(c),u(u.S+u.F*v(function(){c(1)}),"Object",n)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(e,y,i){var u=e("./_descriptors"),t=e("./_object-keys"),v=e("./_to-iobject"),d=e("./_object-pie").f;y.exports=function(f){return function(c){for(var n=v(c),l=t(n),o=l.length,r=0,s=[],b;o>r;)b=l[r++],(!u||d.call(n,b))&&s.push(f?[b,n[b]]:n[b]);return s}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(e,y,i){y.exports=function(u){try{return{e:!1,v:u()}}catch(t){return{e:!0,v:t}}}},{}],145:[function(e,y,i){var u=e("./_an-object"),t=e("./_is-object"),v=e("./_new-promise-capability");y.exports=function(d,f){if(u(d),t(f)&&f.constructor===d)return f;var c=v.f(d),n=c.resolve;return n(f),c.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(e,y,i){y.exports=function(u,t){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:t}}},{}],147:[function(e,y,i){var u=e("./_hide");y.exports=function(t,v,d){for(var f in v)d&&t[f]?t[f]=v[f]:u(t,f,v[f]);return t}},{"./_hide":112}],148:[function(e,y,i){y.exports=e("./_hide")},{"./_hide":112}],149:[function(e,y,i){"use strict";var u=e("./_global"),t=e("./_core"),v=e("./_object-dp"),d=e("./_descriptors"),f=e("./_wks")("species");y.exports=function(c){var n=typeof t[c]=="function"?t[c]:u[c];d&&n&&!n[f]&&v.f(n,f,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(e,y,i){var u=e("./_object-dp").f,t=e("./_has"),v=e("./_wks")("toStringTag");y.exports=function(d,f,c){d&&!t(d=c?d:d.prototype,v)&&u(d,v,{configurable:!0,value:f})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(e,y,i){var u=e("./_shared")("keys"),t=e("./_uid");y.exports=function(v){return u[v]||(u[v]=t(v))}},{"./_shared":152,"./_uid":162}],152:[function(e,y,i){var u=e("./_core"),t=e("./_global"),v="__core-js_shared__",d=t[v]||(t[v]={});(y.exports=function(f,c){return d[f]||(d[f]=c!==void 0?c:{})})("versions",[]).push({version:u.version,mode:e("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(e,y,i){var u=e("./_an-object"),t=e("./_a-function"),v=e("./_wks")("species");y.exports=function(d,f){var c=u(d).constructor,n;return c===void 0||(n=u(c)[v])==null?f:t(n)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(e,y,i){var u=e("./_to-integer"),t=e("./_defined");y.exports=function(v){return function(d,f){var c=String(t(d)),n=u(f),l=c.length,o,r;return n<0||n>=l?v?"":void 0:(o=c.charCodeAt(n),o<55296||o>56319||n+1===l||(r=c.charCodeAt(n+1))<56320||r>57343?v?c.charAt(n):o:v?c.slice(n,n+2):(o-55296<<10)+(r-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(e,y,i){var u=e("./_ctx"),t=e("./_invoke"),v=e("./_html"),d=e("./_dom-create"),f=e("./_global"),c=f.process,n=f.setImmediate,l=f.clearImmediate,o=f.MessageChannel,r=f.Dispatch,s=0,b={},h="onreadystatechange",g,S,w,C=function(){var E=+this;if(b.hasOwnProperty(E)){var O=b[E];delete b[E],O()}},T=function(E){C.call(E.data)};(!n||!l)&&(n=function(E){for(var O=[],_=1;arguments.length>_;)O.push(arguments[_++]);return b[++s]=function(){t(typeof E=="function"?E:Function(E),O)},g(s),s},l=function(E){delete b[E]},e("./_cof")(c)=="process"?g=function(E){c.nextTick(u(C,E,1))}:r&&r.now?g=function(E){r.now(u(C,E,1))}:o?(S=new o,w=S.port2,S.port1.onmessage=T,g=u(w.postMessage,w,1)):f.addEventListener&&typeof postMessage=="function"&&!f.importScripts?(g=function(E){f.postMessage(E+"","*")},f.addEventListener("message",T,!1)):h in d("script")?g=function(E){v.appendChild(d("script"))[h]=function(){v.removeChild(this),C.call(E)}}:g=function(E){setTimeout(u(C,E,1),0)}),y.exports={set:n,clear:l}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(e,y,i){var u=e("./_to-integer"),t=Math.max,v=Math.min;y.exports=function(d,f){return d=u(d),d<0?t(d+f,0):v(d,f)}},{"./_to-integer":157}],157:[function(e,y,i){var u=Math.ceil,t=Math.floor;y.exports=function(v){return isNaN(v=+v)?0:(v>0?t:u)(v)}},{}],158:[function(e,y,i){var u=e("./_iobject"),t=e("./_defined");y.exports=function(v){return u(t(v))}},{"./_defined":102,"./_iobject":116}],159:[function(e,y,i){var u=e("./_to-integer"),t=Math.min;y.exports=function(v){return v>0?t(u(v),9007199254740991):0}},{"./_to-integer":157}],160:[function(e,y,i){var u=e("./_defined");y.exports=function(t){return Object(u(t))}},{"./_defined":102}],161:[function(e,y,i){var u=e("./_is-object");y.exports=function(t,v){if(!u(t))return t;var d,f;if(v&&typeof(d=t.toString)=="function"&&!u(f=d.call(t)))return f;if(typeof(d=t.valueOf)=="function"&&!u(f=d.call(t)))return f;if(!v&&typeof(d=t.toString)=="function"&&!u(f=d.call(t)))return f;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(e,y,i){var u=0,t=Math.random();y.exports=function(v){return"Symbol(".concat(v===void 0?"":v,")_",(++u+t).toString(36))}},{}],163:[function(e,y,i){var u=e("./_global"),t=u.navigator;y.exports=t&&t.userAgent||""},{"./_global":110}],164:[function(e,y,i){var u=e("./_global"),t=e("./_core"),v=e("./_library"),d=e("./_wks-ext"),f=e("./_object-dp").f;y.exports=function(c){var n=t.Symbol||(t.Symbol=v?{}:u.Symbol||{});c.charAt(0)!="_"&&!(c in n)&&f(n,c,{value:d.f(c)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(e,y,i){i.f=e("./_wks")},{"./_wks":166}],166:[function(e,y,i){var u=e("./_shared")("wks"),t=e("./_uid"),v=e("./_global").Symbol,d=typeof v=="function",f=y.exports=function(c){return u[c]||(u[c]=d&&v[c]||(d?v:t)("Symbol."+c))};f.store=u},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(e,y,i){var u=e("./_classof"),t=e("./_wks")("iterator"),v=e("./_iterators");y.exports=e("./_core").getIteratorMethod=function(d){if(d!=null)return d[t]||d["@@iterator"]||v[u(d)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(e,y,i){"use strict";var u=e("./_ctx"),t=e("./_export"),v=e("./_to-object"),d=e("./_iter-call"),f=e("./_is-array-iter"),c=e("./_to-length"),n=e("./_create-property"),l=e("./core.get-iterator-method");t(t.S+t.F*!e("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(r){var s=v(r),b=typeof this=="function"?this:Array,h=arguments.length,g=h>1?arguments[1]:void 0,S=g!==void 0,w=0,C=l(s),T,j,E,O;if(S&&(g=u(g,h>2?arguments[2]:void 0,2)),C!=null&&!(b==Array&&f(C)))for(O=C.call(s),j=new b;!(E=O.next()).done;w++)n(j,w,S?d(O,g,[E.value,w],!0):E.value);else for(T=c(s.length),j=new b(T);T>w;w++)n(j,w,S?g(s[w],w):s[w]);return j.length=w,j}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(e,y,i){"use strict";var u=e("./_add-to-unscopables"),t=e("./_iter-step"),v=e("./_iterators"),d=e("./_to-iobject");y.exports=e("./_iter-define")(Array,"Array",function(f,c){this._t=d(f),this._i=0,this._k=c},function(){var f=this._t,c=this._k,n=this._i++;return!f||n>=f.length?(this._t=void 0,t(1)):c=="keys"?t(0,n):c=="values"?t(0,f[n]):t(0,[n,f[n]])},"values"),v.Arguments=v.Array,u("keys"),u("values"),u("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(e,y,i){"use strict";var u=e("./_is-object"),t=e("./_object-gpo"),v=e("./_wks")("hasInstance"),d=Function.prototype;v in d||e("./_object-dp").f(d,v,{value:function(c){if(typeof this!="function"||!u(c))return!1;if(!u(this.prototype))return c instanceof this;for(;c=t(c);)if(this.prototype===c)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(e,y,i){var u=e("./_export");u(u.S+u.F,"Object",{assign:e("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(e,y,i){var u=e("./_export");u(u.S,"Object",{create:e("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(e,y,i){var u=e("./_export");u(u.S+u.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(e,y,i){e("./_object-sap")("getOwnPropertyNames",function(){return e("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(e,y,i){var u=e("./_to-object"),t=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",function(){return function(d){return t(u(d))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(e,y,i){var u=e("./_to-object"),t=e("./_object-keys");e("./_object-sap")("keys",function(){return function(d){return t(u(d))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(e,y,i){arguments[4][71][0].apply(i,arguments)},{dup:71}],178:[function(e,y,i){"use strict";var u=e("./_library"),t=e("./_global"),v=e("./_ctx"),d=e("./_classof"),f=e("./_export"),c=e("./_is-object"),n=e("./_a-function"),l=e("./_an-instance"),o=e("./_for-of"),r=e("./_species-constructor"),s=e("./_task").set,b=e("./_microtask")(),h=e("./_new-promise-capability"),g=e("./_perform"),S=e("./_user-agent"),w=e("./_promise-resolve"),C="Promise",T=t.TypeError,j=t.process,E=j&&j.versions,O=E&&E.v8||"",_=t[C],p=d(j)=="process",P=function(){},N,R,A,L,$=R=h.f,V=!!function(){try{var q=_.resolve(1),M=(q.constructor={})[e("./_wks")("species")]=function(J){J(P,P)};return(p||typeof PromiseRejectionEvent=="function")&&q.then(P)instanceof M&&O.indexOf("6.6")!==0&&S.indexOf("Chrome/66")===-1}catch(J){}}(),Y=function(M){var J;return c(M)&&typeof(J=M.then)=="function"?J:!1},I=function(M,J){if(M._n)return;M._n=!0;var ae=M._c;b(function(){for(var ne=M._v,me=M._s==1,be=0,K=function(ue){var ee=me?ue.ok:ue.fail,Z=ue.resolve,re=ue.reject,ce=ue.domain,U,B,oe;try{ee?(me||(M._h==2&&D(M),M._h=1),ee===!0?U=ne:(ce&&ce.enter(),U=ee(ne),ce&&(ce.exit(),oe=!0)),U===ue.promise?re(T("Promise-chain cycle")):(B=Y(U))?B.call(U,Z,re):Z(U)):re(ne)}catch(k){ce&&!oe&&ce.exit(),re(k)}};ae.length>be;)K(ae[be++]);M._c=[],M._n=!1,J&&!M._h&&te(M)})},te=function(M){s.call(t,function(){var J=M._v,ae=G(M),ne,me,be;if(ae&&(ne=g(function(){p?j.emit("unhandledRejection",J,M):(me=t.onunhandledrejection)?me({promise:M,reason:J}):(be=t.console)&&be.error&&be.error("Unhandled promise rejection",J)}),M._h=p||G(M)?2:1),M._a=void 0,ae&&ne.e)throw ne.v})},G=function(M){return M._h!==1&&(M._a||M._c).length===0},D=function(M){s.call(t,function(){var J;p?j.emit("rejectionHandled",M):(J=t.onrejectionhandled)&&J({promise:M,reason:M._v})})},F=function(M){var J=this;if(J._d)return;J._d=!0,J=J._w||J,J._v=M,J._s=2,J._a||(J._a=J._c.slice()),I(J,!0)},z=function q(M){var J=this,ae;if(J._d)return;J._d=!0,J=J._w||J;try{if(J===M)throw T("Promise can't be resolved itself");(ae=Y(M))?b(function(){var ne={_w:J,_d:!1};try{ae.call(M,v(q,ne,1),v(F,ne,1))}catch(me){F.call(ne,me)}}):(J._v=M,J._s=1,I(J,!1))}catch(ne){F.call({_w:J,_d:!1},ne)}};V||(_=function(M){l(this,_,C,"_h"),n(M),N.call(this);try{M(v(z,this,1),v(F,this,1))}catch(J){F.call(this,J)}},N=function(M){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},N.prototype=e("./_redefine-all")(_.prototype,{then:function(M,J){var ae=$(r(this,_));return ae.ok=typeof M=="function"?M:!0,ae.fail=typeof J=="function"&&J,ae.domain=p?j.domain:void 0,this._c.push(ae),this._a&&this._a.push(ae),this._s&&I(this,!1),ae.promise},catch:function(M){return this.then(void 0,M)}}),A=function(){var M=new N;this.promise=M,this.resolve=v(z,M,1),this.reject=v(F,M,1)},h.f=$=function(M){return M===_||M===L?new A(M):R(M)}),f(f.G+f.W+f.F*!V,{Promise:_}),e("./_set-to-string-tag")(_,C),e("./_set-species")(C),L=e("./_core")[C],f(f.S+f.F*!V,C,{reject:function(M){var J=$(this),ae=J.reject;return ae(M),J.promise}}),f(f.S+f.F*(u||!V),C,{resolve:function(M){return w(u&&this===L?_:this,M)}}),f(f.S+f.F*!(V&&e("./_iter-detect")(function(q){_.all(q).catch(P)})),C,{all:function(M){var J=this,ae=$(J),ne=ae.resolve,me=ae.reject,be=g(function(){var K=[],Ne=0,ue=1;o(M,!1,function(ee){var Z=Ne++,re=!1;K.push(void 0),ue++,J.resolve(ee).then(function(ce){if(re)return;re=!0,K[Z]=ce,--ue||ne(K)},me)}),--ue||ne(K)});return be.e&&me(be.v),ae.promise},race:function(M){var J=this,ae=$(J),ne=ae.reject,me=g(function(){o(M,!1,function(be){J.resolve(be).then(ae.resolve,ne)})});return me.e&&ne(me.v),ae.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(e,y,i){var u=e("./_export"),t=e("./_to-absolute-index"),v=String.fromCharCode,d=String.fromCodePoint;u(u.S+u.F*(!!d&&d.length!=1),"String",{fromCodePoint:function(c){for(var n=[],l=arguments.length,o=0,r;l>o;){if(r=+arguments[o++],t(r,1114111)!==r)throw RangeError(r+" is not a valid code point");n.push(r<65536?v(r):v(((r-=65536)>>10)+55296,r%1024+56320))}return n.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(e,y,i){"use strict";var u=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,v=this._i,d;return v>=t.length?{value:void 0,done:!0}:(d=u(t,v),this._i+=d.length,{value:d,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(e,y,i){"use strict";var u=e("./_global"),t=e("./_has"),v=e("./_descriptors"),d=e("./_export"),f=e("./_redefine"),c=e("./_meta").KEY,n=e("./_fails"),l=e("./_shared"),o=e("./_set-to-string-tag"),r=e("./_uid"),s=e("./_wks"),b=e("./_wks-ext"),h=e("./_wks-define"),g=e("./_enum-keys"),S=e("./_is-array"),w=e("./_an-object"),C=e("./_is-object"),T=e("./_to-object"),j=e("./_to-iobject"),E=e("./_to-primitive"),O=e("./_property-desc"),_=e("./_object-create"),p=e("./_object-gopn-ext"),P=e("./_object-gopd"),N=e("./_object-gops"),R=e("./_object-dp"),A=e("./_object-keys"),L=P.f,$=R.f,V=p.f,Y=u.Symbol,I=u.JSON,te=I&&I.stringify,G="prototype",D=s("_hidden"),F=s("toPrimitive"),z={}.propertyIsEnumerable,q=l("symbol-registry"),M=l("symbols"),J=l("op-symbols"),ae=Object[G],ne=typeof Y=="function"&&!!N.f,me=u.QObject,be=!me||!me[G]||!me[G].findChild,K=v&&n(function(){return _($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a!=7})?function(W,Q,pe){var ye=L(ae,Q);ye&&delete ae[Q],$(W,Q,pe),ye&&W!==ae&&$(ae,Q,ye)}:$,Ne=function(Q){var pe=M[Q]=_(Y[G]);return pe._k=Q,pe},ue=ne&&typeof Y.iterator=="symbol"?function(W){return typeof W=="symbol"}:function(W){return W instanceof Y},ee=function(Q,pe,ye){return Q===ae&&ee(J,pe,ye),w(Q),pe=E(pe,!0),w(ye),t(M,pe)?(ye.enumerable?(t(Q,D)&&Q[D][pe]&&(Q[D][pe]=!1),ye=_(ye,{enumerable:O(0,!1)})):(t(Q,D)||$(Q,D,O(1,{})),Q[D][pe]=!0),K(Q,pe,ye)):$(Q,pe,ye)},Z=function(Q,pe){w(Q);for(var ye=g(pe=j(pe)),we=0,Re=ye.length,Oe;Re>we;)ee(Q,Oe=ye[we++],pe[Oe]);return Q},re=function(Q,pe){return pe===void 0?_(Q):Z(_(Q),pe)},ce=function(Q){var pe=z.call(this,Q=E(Q,!0));return this===ae&&t(M,Q)&&!t(J,Q)?!1:pe||!t(this,Q)||!t(M,Q)||t(this,D)&&this[D][Q]?pe:!0},U=function(Q,pe){if(Q=j(Q),pe=E(pe,!0),Q===ae&&t(M,pe)&&!t(J,pe))return;var ye=L(Q,pe);return ye&&t(M,pe)&&!(t(Q,D)&&Q[D][pe])&&(ye.enumerable=!0),ye},B=function(Q){for(var pe=V(j(Q)),ye=[],we=0,Re;pe.length>we;)!t(M,Re=pe[we++])&&Re!=D&&Re!=c&&ye.push(Re);return ye},oe=function(Q){for(var pe=Q===ae,ye=V(pe?J:j(Q)),we=[],Re=0,Oe;ye.length>Re;)t(M,Oe=ye[Re++])&&(pe?t(ae,Oe):!0)&&we.push(M[Oe]);return we};ne||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor!");var Q=r(arguments.length>0?arguments[0]:void 0),pe=function ye(we){this===ae&&ye.call(J,we),t(this,D)&&t(this[D],Q)&&(this[D][Q]=!1),K(this,Q,O(1,we))};return v&&be&&K(ae,Q,{configurable:!0,set:pe}),Ne(Q)},f(Y[G],"toString",function(){return this._k}),P.f=U,R.f=ee,e("./_object-gopn").f=p.f=B,e("./_object-pie").f=ce,N.f=oe,v&&!e("./_library")&&f(ae,"propertyIsEnumerable",ce,!0),b.f=function(W){return Ne(s(W))}),d(d.G+d.W+d.F*!ne,{Symbol:Y});for(var k="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),x=0;k.length>x;)s(k[x++]);for(var a=A(s.store),m=0;a.length>m;)h(a[m++]);d(d.S+d.F*!ne,"Symbol",{for:function(Q){return t(q,Q+="")?q[Q]:q[Q]=Y(Q)},keyFor:function(Q){if(!ue(Q))throw TypeError(Q+" is not a symbol!");for(var pe in q)if(q[pe]===Q)return pe},useSetter:function(){be=!0},useSimple:function(){be=!1}}),d(d.S+d.F*!ne,"Object",{create:re,defineProperty:ee,defineProperties:Z,getOwnPropertyDescriptor:U,getOwnPropertyNames:B,getOwnPropertySymbols:oe});var H=n(function(){N.f(1)});d(d.S+d.F*H,"Object",{getOwnPropertySymbols:function(Q){return N.f(T(Q))}}),I&&d(d.S+d.F*(!ne||n(function(){var W=Y();return te([W])!="[null]"||te({a:W})!="{}"||te(Object(W))!="{}"})),"JSON",{stringify:function(Q){for(var pe=[Q],ye=1,we,Re;arguments.length>ye;)pe.push(arguments[ye++]);return Re=we=pe[1],!C(we)&&Q===void 0||ue(Q)?void 0:(S(we)||(we=function(_e,de){if(typeof Re=="function"&&(de=Re.call(this,_e,de)),!ue(de))return de}),pe[1]=we,te.apply(I,pe))}}),Y[G][F]||e("./_hide")(Y[G],F,Y[G].valueOf),o(Y,"Symbol"),o(Math,"Math",!0),o(u.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(e,y,i){var u=e("./_export"),t=e("./_object-to-array")(!0);u(u.S,"Object",{entries:function(d){return t(d)}})},{"./_export":107,"./_object-to-array":143}],183:[function(e,y,i){"use strict";var u=e("./_export"),t=e("./_core"),v=e("./_global"),d=e("./_species-constructor"),f=e("./_promise-resolve");u(u.P+u.R,"Promise",{finally:function(n){var l=d(this,t.Promise||v.Promise),o=typeof n=="function";return this.then(o?function(r){return f(l,n()).then(function(){return r})}:n,o?function(r){return f(l,n()).then(function(){throw r})}:n)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(e,y,i){"use strict";var u=e("./_export"),t=e("./_new-promise-capability"),v=e("./_perform");u(u.S,"Promise",{try:function(f){var c=t.f(this),n=v(f);return(n.e?c.reject:c.resolve)(n.v),c.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(e,y,i){e("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(e,y,i){e("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(e,y,i){e("./es6.array.iterator");for(var u=e("./_global"),t=e("./_hide"),v=e("./_iterators"),d=e("./_wks")("toStringTag"),f="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<f.length;c++){var n=f[c],l=u[n],o=l&&l.prototype;o&&!o[d]&&t(o,d,n),v[n]=v.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(e,y,i){var u=e("./_export"),t=e("./_task");u(u.G+u.B,{setImmediate:t.set,clearImmediate:t.clear})},{"./_export":107,"./_task":155}],189:[function(e,y,i){(function(u){"use strict";var t=e("babel-runtime/helpers/typeof"),v=d(t);function d(E){return E&&E.__esModule?E:{default:E}}function f(E){return Array.isArray?Array.isArray(E):j(E)==="[object Array]"}i.isArray=f;function c(E){return typeof E=="boolean"}i.isBoolean=c;function n(E){return E===null}i.isNull=n;function l(E){return E==null}i.isNullOrUndefined=l;function o(E){return typeof E=="number"}i.isNumber=o;function r(E){return typeof E=="string"}i.isString=r;function s(E){return(typeof E=="undefined"?"undefined":(0,v.default)(E))==="symbol"}i.isSymbol=s;function b(E){return E===void 0}i.isUndefined=b;function h(E){return j(E)==="[object RegExp]"}i.isRegExp=h;function g(E){return(typeof E=="undefined"?"undefined":(0,v.default)(E))==="object"&&E!==null}i.isObject=g;function S(E){return j(E)==="[object Date]"}i.isDate=S;function w(E){return j(E)==="[object Error]"||E instanceof Error}i.isError=w;function C(E){return typeof E=="function"}i.isFunction=C;function T(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||(typeof E=="undefined"?"undefined":(0,v.default)(E))==="symbol"||typeof E=="undefined"}i.isPrimitive=T,i.isBuffer=u.isBuffer;function j(E){return Object.prototype.toString.call(E)}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(e,y,i){"use strict";var u=e("babel-runtime/helpers/typeof"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(d){"use strict";var f=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,s=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,b=/[^-+\dA-Z]/g;return function(h,g,S,w){if(arguments.length===1&&o(h)==="string"&&!/\d/.test(h)&&(g=h,h=void 0),h=h||new Date,h instanceof Date||(h=new Date(h)),isNaN(h))throw TypeError("Invalid date");g=String(f.masks[g]||g||f.masks.default);var C=g.slice(0,4);(C==="UTC:"||C==="GMT:")&&(g=g.slice(4),S=!0,C==="GMT:"&&(w=!0));var T=S?"getUTC":"get",j=h[T+"Date"](),E=h[T+"Day"](),O=h[T+"Month"](),_=h[T+"FullYear"](),p=h[T+"Hours"](),P=h[T+"Minutes"](),N=h[T+"Seconds"](),R=h[T+"Milliseconds"](),A=S?0:h.getTimezoneOffset(),L=n(h),$=l(h),V={d:j,dd:c(j),ddd:f.i18n.dayNames[E],dddd:f.i18n.dayNames[E+7],m:O+1,mm:c(O+1),mmm:f.i18n.monthNames[O],mmmm:f.i18n.monthNames[O+12],yy:String(_).slice(2),yyyy:_,h:p%12||12,hh:c(p%12||12),H:p,HH:c(p),M:P,MM:c(P),s:N,ss:c(N),l:c(R,3),L:c(Math.round(R/10)),t:p<12?"a":"p",tt:p<12?"am":"pm",T:p<12?"A":"P",TT:p<12?"AM":"PM",Z:w?"GMT":S?"UTC":(String(h).match(s)||[""]).pop().replace(b,""),o:(A>0?"-":"+")+c(Math.floor(Math.abs(A)/60)*100+Math.abs(A)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10],W:L,N:$};return g.replace(r,function(Y){return Y in V?V[Y]:Y.slice(1,Y.length-1)})}}();f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function c(r,s){for(r=String(r),s=s||2;r.length<s;)r="0"+r;return r}function n(r){var s=new Date(r.getFullYear(),r.getMonth(),r.getDate());s.setDate(s.getDate()-(s.getDay()+6)%7+3);var b=new Date(s.getFullYear(),0,4);b.setDate(b.getDate()-(b.getDay()+6)%7+3);var h=s.getTimezoneOffset()-b.getTimezoneOffset();s.setHours(s.getHours()-h);var g=(s-b)/(864e5*7);return 1+Math.floor(g)}function l(r){var s=r.getDay();return s===0&&(s=7),s}function o(r){return r===null?"null":r===void 0?"undefined":(typeof r=="undefined"?"undefined":(0,t.default)(r))!=="object"?typeof r=="undefined"?"undefined":(0,t.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return f}):(typeof i=="undefined"?"undefined":(0,t.default)(i))==="object"?y.exports=f:d.dateFormat=f})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(e,y,i){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var u=/["'&<>]/;y.exports=t;function t(v){var d=""+v,f=u.exec(d);if(!f)return d;var c,n="",l=0,o=0;for(l=f.index;l<d.length;l++){switch(d.charCodeAt(l)){case 34:c="&quot;";break;case 38:c="&amp;";break;case 39:c="&#39;";break;case 60:c="&lt;";break;case 62:c="&gt;";break;default:continue}o!==l&&(n+=d.substring(o,l)),o=l+1,n+=c}return o!==l?n+d.substring(o,l):n}},{}],192:[function(e,y,i){function u(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}y.exports=u,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._maxListeners=void 0,u.defaultMaxListeners=10,u.prototype.setMaxListeners=function(c){if(!v(c)||c<0||isNaN(c))throw TypeError("n must be a positive number");return this._maxListeners=c,this},u.prototype.emit=function(c){var n,l,o,r,s,b;if(this._events||(this._events={}),c==="error"&&(!this._events.error||d(this._events.error)&&!this._events.error.length)){if(n=arguments[1],n instanceof Error)throw n;var h=new Error('Uncaught, unspecified "error" event. ('+n+")");throw h.context=n,h}if(l=this._events[c],f(l))return!1;if(t(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),l.apply(this,r)}else if(d(l))for(r=Array.prototype.slice.call(arguments,1),b=l.slice(),o=b.length,s=0;s<o;s++)b[s].apply(this,r);return!0},u.prototype.addListener=function(c,n){var l;if(!t(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",c,t(n.listener)?n.listener:n),this._events[c]?d(this._events[c])?this._events[c].push(n):this._events[c]=[this._events[c],n]:this._events[c]=n,d(this._events[c])&&!this._events[c].warned&&(f(this._maxListeners)?l=u.defaultMaxListeners:l=this._maxListeners,l&&l>0&&this._events[c].length>l&&(this._events[c].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[c].length),typeof console.trace=="function"&&console.trace())),this},u.prototype.on=u.prototype.addListener,u.prototype.once=function(c,n){if(!t(n))throw TypeError("listener must be a function");var l=!1;function o(){this.removeListener(c,o),l||(l=!0,n.apply(this,arguments))}return o.listener=n,this.on(c,o),this},u.prototype.removeListener=function(c,n){var l,o,r,s;if(!t(n))throw TypeError("listener must be a function");if(!this._events||!this._events[c])return this;if(l=this._events[c],r=l.length,o=-1,l===n||t(l.listener)&&l.listener===n)delete this._events[c],this._events.removeListener&&this.emit("removeListener",c,n);else if(d(l)){for(s=r;s-- >0;)if(l[s]===n||l[s].listener&&l[s].listener===n){o=s;break}if(o<0)return this;l.length===1?(l.length=0,delete this._events[c]):l.splice(o,1),this._events.removeListener&&this.emit("removeListener",c,n)}return this},u.prototype.removeAllListeners=function(c){var n,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[c]&&delete this._events[c],this;if(arguments.length===0){for(n in this._events){if(n==="removeListener")continue;this.removeAllListeners(n)}return this.removeAllListeners("removeListener"),this._events={},this}if(l=this._events[c],t(l))this.removeListener(c,l);else if(l)for(;l.length;)this.removeListener(c,l[l.length-1]);return delete this._events[c],this},u.prototype.listeners=function(c){var n;return!this._events||!this._events[c]?n=[]:t(this._events[c])?n=[this._events[c]]:n=this._events[c].slice(),n},u.prototype.listenerCount=function(c){if(this._events){var n=this._events[c];if(t(n))return 1;if(n)return n.length}return 0},u.listenerCount=function(c,n){return c.listenerCount(n)};function t(c){return typeof c=="function"}function v(c){return typeof c=="number"}function d(c){return typeof c=="object"&&c!==null}function f(c){return c===void 0}},{}],193:[function(e,y,i){var u=e("http"),t=y.exports;for(var v in u)u.hasOwnProperty(v)&&(t[v]=u[v]);t.request=function(d,f){return d||(d={}),d.scheme="https",d.protocol="https:",u.request.call(this,d,f)}},{http:231}],194:[function(e,y,i){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var u=e("util"),t=e("ms");y.exports=function(v){if(typeof v=="number")return v;var d=t(v);if(d===void 0){var f=new Error(u.format("humanize-ms(%j) result undefined",v));console.warn(f.stack)}return d}},{ms:204,util:243}],195:[function(e,y,i){i.read=function(u,t,v,d,f){var c,n,l=f*8-d-1,o=(1<<l)-1,r=o>>1,s=-7,b=v?f-1:0,h=v?-1:1,g=u[t+b];for(b+=h,c=g&(1<<-s)-1,g>>=-s,s+=l;s>0;c=c*256+u[t+b],b+=h,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=d;s>0;n=n*256+u[t+b],b+=h,s-=8);if(c===0)c=1-r;else{if(c===o)return n?NaN:(g?-1:1)*Infinity;n=n+Math.pow(2,d),c=c-r}return(g?-1:1)*n*Math.pow(2,c-d)},i.write=function(u,t,v,d,f,c){var n,l,o,r=c*8-f-1,s=(1<<r)-1,b=s>>1,h=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=d?0:c-1,S=d?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(l=isNaN(t)?1:0,n=s):(n=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-n))<1&&(n--,o*=2),n+b>=1?t+=h/o:t+=h*Math.pow(2,1-b),t*o>=2&&(n++,o/=2),n+b>=s?(l=0,n=s):n+b>=1?(l=(t*o-1)*Math.pow(2,f),n=n+b):(l=t*Math.pow(2,b-1)*Math.pow(2,f),n=0));f>=8;u[v+g]=l&255,g+=S,l/=256,f-=8);for(n=n<<f|l,r+=f;r>0;u[v+g]=n&255,g+=S,n/=256,r-=8);u[v+g-S]|=w*128}},{}],196:[function(e,y,i){typeof Object.create=="function"?y.exports=function(t,v){v&&(t.super_=v,t.prototype=Object.create(v.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:y.exports=function(t,v){if(v){t.super_=v;var d=function(){};d.prototype=v.prototype,t.prototype=new d,t.prototype.constructor=t}}},{}],197:[function(e,y,i){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/y.exports=function(v){return v!=null&&(u(v)||t(v)||!!v._isBuffer)};function u(v){return!!v.constructor&&typeof v.constructor.isBuffer=="function"&&v.constructor.isBuffer(v)}function t(v){return typeof v.readFloatLE=="function"&&typeof v.slice=="function"&&u(v.slice(0,0))}},{}],198:[function(e,y,i){var u={}.toString;y.exports=Array.isArray||function(t){return u.call(t)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(e,y){typeof exports=="object"&&typeof module!="undefined"?module.exports=y(e):typeof define=="function"&&define.amd?define(y):y(e)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var y={},i=0,u=e.length;i<u;i++)y[e.charAt(i)]=i;return y}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(y){if(y.length<2){var i=y.charCodeAt(0);return i<128?y:i<2048?fromCharCode(192|i>>>6)+fromCharCode(128|i&63):fromCharCode(224|i>>>12&15)+fromCharCode(128|i>>>6&63)+fromCharCode(128|i&63)}else{var i=65536+(y.charCodeAt(0)-55296)*1024+(y.charCodeAt(1)-56320);return fromCharCode(240|i>>>18&7)+fromCharCode(128|i>>>12&63)+fromCharCode(128|i>>>6&63)+fromCharCode(128|i&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(y){return y.replace(re_utob,cb_utob)},cb_encode=function(y){var i=[0,2,1][y.length%3],u=y.charCodeAt(0)<<16|(y.length>1?y.charCodeAt(1):0)<<8|(y.length>2?y.charCodeAt(2):0),t=[b64chars.charAt(u>>>18),b64chars.charAt(u>>>12&63),i>=2?"=":b64chars.charAt(u>>>6&63),i>=1?"=":b64chars.charAt(u&63)];return t.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(y){var i=Object.prototype.toString.call(y)==="[object Uint8Array]";return i?y.toString("base64"):btoa(utob(String(y)))},encode=function(y,i){return i?_encode(String(y)).replace(/[+\/]/g,function(u){return u=="+"?"-":"_"}).replace(/=/g,""):_encode(y)},encodeURI=function(y){return encode(y,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(y){switch(y.length){case 4:var i=(7&y.charCodeAt(0))<<18|(63&y.charCodeAt(1))<<12|(63&y.charCodeAt(2))<<6|63&y.charCodeAt(3),u=i-65536;return fromCharCode((u>>>10)+55296)+fromCharCode((u&1023)+56320);case 3:return fromCharCode((15&y.charCodeAt(0))<<12|(63&y.charCodeAt(1))<<6|63&y.charCodeAt(2));default:return fromCharCode((31&y.charCodeAt(0))<<6|63&y.charCodeAt(1))}},btou=function(y){return y.replace(re_btou,cb_btou)},cb_decode=function(y){var i=y.length,u=i%4,t=(i>0?b64tab[y.charAt(0)]<<18:0)|(i>1?b64tab[y.charAt(1)]<<12:0)|(i>2?b64tab[y.charAt(2)]<<6:0)|(i>3?b64tab[y.charAt(3)]:0),v=[fromCharCode(t>>>16),fromCharCode(t>>>8&255),fromCharCode(t&255)];return v.length-=[0,0,2,1][u],v.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(y){return _atob(String(y).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(y){return _decode(String(y).replace(/[-_]/g,function(i){return i=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var y=global.Base64;return global.Base64=_Base64,y};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(y){return{value:y,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(e,y,i){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";y.exports=t;var u=Object.prototype.hasOwnProperty;function t(v,d,f){if(!v)throw new TypeError("argument dest is required");if(!d)throw new TypeError("argument src is required");return f===void 0&&(f=!0),Object.getOwnPropertyNames(d).forEach(function(n){if(!f&&u.call(v,n))return;var l=Object.getOwnPropertyDescriptor(d,n);Object.defineProperty(v,n,l)}),v}},{}],201:[function(e,y,i){"use strict";function u(){this._types=Object.create(null),this._extensions=Object.create(null);for(var t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}u.prototype.define=function(t,v){for(var d in t){var f=t[d].map(function(l){return l.toLowerCase()});d=d.toLowerCase();for(var c=0;c<f.length;c++){var n=f[c];if(n[0]=="*")continue;if(!v&&n in this._types)throw new Error('Attempt to change mapping for "'+n+'" extension from "'+this._types[n]+'" to "'+d+'". Pass `force=true` to allow this, otherwise remove "'+n+'" from the list of extensions for "'+d+'".');this._types[n]=d}if(v||!this._extensions[d]){var n=f[0];this._extensions[d]=n[0]!="*"?n:n.substr(1)}}},u.prototype.getType=function(t){t=String(t);var v=t.replace(/^.*[/\\]/,"").toLowerCase(),d=v.replace(/^.*\./,"").toLowerCase(),f=v.length<t.length,c=d.length<v.length-1;return(c||!f)&&this._types[d]||null},u.prototype.getExtension=function(t){return t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1,t&&this._extensions[t.toLowerCase()]||null},y.exports=u},{}],202:[function(e,y,i){"use strict";var u=e("./Mime");y.exports=new u(e("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(e,y,i){y.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(e,y,i){var u=1e3,t=u*60,v=t*60,d=v*24,f=d*7,c=d*365.25;y.exports=function(s,b){b=b||{};var h=typeof s;if(h==="string"&&s.length>0)return n(s);if(h==="number"&&isFinite(s))return b.long?o(s):l(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function n(s){if(s=String(s),s.length>100)return;var b=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!b)return;var h=parseFloat(b[1]),g=(b[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*c;case"weeks":case"week":case"w":return h*f;case"days":case"day":case"d":return h*d;case"hours":case"hour":case"hrs":case"hr":case"h":return h*v;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}function l(s){var b=Math.abs(s);return b>=d?Math.round(s/d)+"d":b>=v?Math.round(s/v)+"h":b>=t?Math.round(s/t)+"m":b>=u?Math.round(s/u)+"s":s+"ms"}function o(s){var b=Math.abs(s);return b>=d?r(s,b,d,"day"):b>=v?r(s,b,v,"hour"):b>=t?r(s,b,t,"minute"):b>=u?r(s,b,u,"second"):s+" ms"}function r(s,b,h,g){var S=b>=h*1.5;return Math.round(s/h)+" "+g+(S?"s":"")}},{}],205:[function(e,y,i){(function(u){function t(c,n){for(var l=0,o=c.length-1;o>=0;o--){var r=c[o];r==="."?c.splice(o,1):r===".."?(c.splice(o,1),l++):l&&(c.splice(o,1),l--)}if(n)for(;l--;l)c.unshift("..");return c}i.resolve=function(){for(var c="",n=!1,l=arguments.length-1;l>=-1&&!n;l--){var o=l>=0?arguments[l]:u.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;c=o+"/"+c,n=o.charAt(0)==="/"}return c=t(d(c.split("/"),function(r){return!!r}),!n).join("/"),(n?"/":"")+c||"."},i.normalize=function(c){var n=i.isAbsolute(c),l=f(c,-1)==="/";return c=t(d(c.split("/"),function(o){return!!o}),!n).join("/"),!c&&!n&&(c="."),c&&l&&(c+="/"),(n?"/":"")+c},i.isAbsolute=function(c){return c.charAt(0)==="/"},i.join=function(){var c=Array.prototype.slice.call(arguments,0);return i.normalize(d(c,function(n,l){if(typeof n!="string")throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))},i.relative=function(c,n){c=i.resolve(c).substr(1),n=i.resolve(n).substr(1);function l(S){for(var w=0;w<S.length&&!(S[w]!=="");w++);for(var C=S.length-1;C>=0&&!(S[C]!=="");C--);return w>C?[]:S.slice(w,C-w+1)}for(var o=l(c.split("/")),r=l(n.split("/")),s=Math.min(o.length,r.length),b=s,h=0;h<s;h++)if(o[h]!==r[h]){b=h;break}for(var g=[],h=b;h<o.length;h++)g.push("..");return g=g.concat(r.slice(b)),g.join("/")},i.sep="/",i.delimiter=":",i.dirname=function(c){if(typeof c!="string"&&(c=c+""),c.length===0)return".";for(var n=c.charCodeAt(0),l=n===47,o=-1,r=!0,s=c.length-1;s>=1;--s)if(n=c.charCodeAt(s),n===47){if(!r){o=s;break}}else r=!1;return o===-1?l?"/":".":l&&o===1?"/":c.slice(0,o)};function v(c){typeof c!="string"&&(c=c+"");var n=0,l=-1,o=!0,r;for(r=c.length-1;r>=0;--r)if(c.charCodeAt(r)===47){if(!o){n=r+1;break}}else l===-1&&(o=!1,l=r+1);return l===-1?"":c.slice(n,l)}i.basename=function(c,n){var l=v(c);return n&&l.substr(-1*n.length)===n&&(l=l.substr(0,l.length-n.length)),l},i.extname=function(c){typeof c!="string"&&(c=c+"");for(var n=-1,l=0,o=-1,r=!0,s=0,b=c.length-1;b>=0;--b){var h=c.charCodeAt(b);if(h===47){if(!r){l=b+1;break}continue}o===-1&&(r=!1,o=b+1),h===46?n===-1?n=b:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||o===-1||s===0||s===1&&n===o-1&&n===l+1?"":c.slice(n,o)};function d(c,n){if(c.filter)return c.filter(n);for(var l=[],o=0;o<c.length;o++)n(c[o],o,c)&&l.push(c[o]);return l}var f="ab".substr(-1)==="b"?function(c,n,l){return c.substr(n,l)}:function(c,n,l){return n<0&&(n=c.length+n),c.substr(n,l)}}).call(this,e("_process"))},{_process:208}],206:[function(e,y,i){(function(u){/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var t={function:!0,object:!0},v=t[typeof window]&&window||this,d=v,f=t[typeof i]&&i,c=t[typeof y]&&y&&!y.nodeType&&y,n=f&&c&&typeof u=="object"&&u;n&&(n.global===n||n.window===n||n.self===n)&&(v=n);var l=Math.pow(2,53)-1,o=/\bOpera/,r=this,s=Object.prototype,b=s.hasOwnProperty,h=s.toString;function g(R){return R=String(R),R.charAt(0).toUpperCase()+R.slice(1)}function S(R,A,L){var $={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return A&&L&&/^Win/i.test(R)&&!/^Windows Phone /i.test(R)&&($=$[/[\d.]+$/.exec(R)])&&(R="Windows "+$),R=String(R),A&&L&&(R=R.replace(RegExp(A,"i"),L)),R=C(R.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),R}function w(R,A){var L=-1,$=R?R.length:0;if(typeof $=="number"&&$>-1&&$<=l)for(;++L<$;)A(R[L],L,R);else T(R,A)}function C(R){return R=p(R),/^(?:webOS|i(?:OS|P))/.test(R)?R:g(R)}function T(R,A){for(var L in R)b.call(R,L)&&A(R[L],L,R)}function j(R){return R==null?g(R):h.call(R).slice(8,-1)}function E(R,A){var L=R!=null?typeof R[A]:"number";return!/^(?:boolean|number|string|undefined)$/.test(L)&&(L=="object"?!!R[A]:!0)}function O(R){return String(R).replace(/([ -])(?!$)/g,"$1?")}function _(R,A){var L=null;return w(R,function($,V){L=A(L,$,V,R)}),L}function p(R){return String(R).replace(/^ +| +$/g,"")}function P(R){var A=v,L=R&&typeof R=="object"&&j(R)!="String";L&&(A=R,R=null);var $=A.navigator||{},V=$.userAgent||"";R||(R=V);var Y=L||r==d,I=L?!!$.likeChrome:/\bChrome\b/.test(R)&&!/internal|\n/i.test(h.toString()),te="Object",G=L?te:"ScriptBridgingProxyObject",D=L?te:"Environment",F=L&&A.java?"JavaPackage":j(A.java),z=L?te:"RuntimeObject",q=/\bJava/.test(F)&&A.java,M=q&&j(A.environment)==D,J=q?"a":"\u03B1",ae=q?"b":"\u03B2",ne=A.document||{},me=A.operamini||A.opera,be=o.test(be=L&&me?me["[[Class]]"]:j(me))?be:me=null,K,Ne=R,ue=[],ee=null,Z=R==V,re=Z&&me&&typeof me.version=="function"&&me.version(),ce,U=a([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),B=H(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),oe=Q([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),k=m({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),x=W(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function a(Re){return _(Re,function(Oe,_e){return Oe||RegExp("\\b"+(_e.pattern||O(_e))+"\\b","i").exec(R)&&(_e.label||_e)})}function m(Re){return _(Re,function(Oe,_e,de){return Oe||(_e[oe]||_e[/^[a-z]+(?: +[a-z]+\b)*/i.exec(oe)]||RegExp("\\b"+O(de)+"(?:\\b|\\w*\\d)","i").exec(R))&&de})}function H(Re){return _(Re,function(Oe,_e){return Oe||RegExp("\\b"+(_e.pattern||O(_e))+"\\b","i").exec(R)&&(_e.label||_e)})}function W(Re){return _(Re,function(Oe,_e){var de=_e.pattern||O(_e);return!Oe&&(Oe=RegExp("\\b"+de+"(?:/[\\d.]+|[ \\w.]*)","i").exec(R))&&(Oe=S(Oe,de,_e.label||_e)),Oe})}function Q(Re){return _(Re,function(Oe,_e){var de=_e.pattern||O(_e);return!Oe&&(Oe=RegExp("\\b"+de+" *\\d+[.\\w_]*","i").exec(R)||RegExp("\\b"+de+" *\\w+-[\\w]*","i").exec(R)||RegExp("\\b"+de+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(R))&&((Oe=String(_e.label&&!RegExp(de,"i").test(_e.label)?_e.label:Oe).split("/"))[1]&&!/[\d.]+/.test(Oe[0])&&(Oe[0]+=" "+Oe[1]),_e=_e.label||_e,Oe=C(Oe[0].replace(RegExp(de,"i"),_e).replace(RegExp("; *(?:"+_e+"[_-])?","i")," ").replace(RegExp("("+_e+")[-_.]?(\\w)","i"),"$1 $2"))),Oe})}function pe(Re){return _(Re,function(Oe,_e){return Oe||(RegExp(_e+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(R)||0)[1]||null})}function ye(){return this.description||""}if(U&&(U=[U]),k&&!oe&&(oe=Q([k])),(K=/\bGoogle TV\b/.exec(oe))&&(oe=K[0]),/\bSimulator\b/i.test(R)&&(oe=(oe?oe+" ":"")+"Simulator"),B=="Opera Mini"&&/\bOPiOS\b/.test(R)&&ue.push("running in Turbo/Uncompressed mode"),B=="IE"&&/\blike iPhone OS\b/.test(R)?(K=P(R.replace(/like iPhone OS/,"")),k=K.manufacturer,oe=K.product):/^iP/.test(oe)?(B||(B="Safari"),x="iOS"+((K=/ OS ([\d_]+)/i.exec(R))?" "+K[1].replace(/_/g,"."):"")):B=="Konqueror"&&!/buntu/i.test(x)?x="Kubuntu":k&&k!="Google"&&(/Chrome/.test(B)&&!/\bMobile Safari\b/i.test(R)||/\bVita\b/.test(oe))||/\bAndroid\b/.test(x)&&/^Chrome/.test(B)&&/\bVersion\//i.test(R)?(B="Android Browser",x=/\bAndroid\b/.test(x)?x:"Android"):B=="Silk"?(/\bMobi/i.test(R)||(x="Android",ue.unshift("desktop mode")),/Accelerated *= *true/i.test(R)&&ue.unshift("accelerated")):B=="PaleMoon"&&(K=/\bFirefox\/([\d.]+)\b/.exec(R))?ue.push("identifying as Firefox "+K[1]):B=="Firefox"&&(K=/\b(Mobile|Tablet|TV)\b/i.exec(R))?(x||(x="Firefox OS"),oe||(oe=K[1])):!B||(K=!/\bMinefield\b/i.test(R)&&/\b(?:Firefox|Safari)\b/.exec(B))?(B&&!oe&&/[\/,]|^[^(]+?\)/.test(R.slice(R.indexOf(K+"/")+8))&&(B=null),(K=oe||k||x)&&(oe||k||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(x))&&(B=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(x)?x:K)+" Browser")):B=="Electron"&&(K=(/\bChrome\/([\d.]+)\b/.exec(R)||0)[1])&&ue.push("Chromium "+K),re||(re=pe(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",O(B),"(?:Firefox|Minefield|NetFront)"])),(K=U=="iCab"&&parseFloat(re)>3&&"WebKit"||/\bOpera\b/.test(B)&&(/\bOPR\b/.test(R)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(R)&&!/^(?:Trident|EdgeHTML)$/.test(U)&&"WebKit"||!U&&/\bMSIE\b/i.test(R)&&(x=="Mac OS"?"Tasman":"Trident")||U=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(U=[K]),B=="IE"&&(K=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(R)||0)[1])?(B+=" Mobile",x="Windows Phone "+(/\+$/.test(K)?K:K+".x"),ue.unshift("desktop mode")):/\bWPDesktop\b/i.test(R)?(B="IE Mobile",x="Windows Phone 8.x",ue.unshift("desktop mode"),re||(re=(/\brv:([\d.]+)/.exec(R)||0)[1])):B!="IE"&&U=="Trident"&&(K=/\brv:([\d.]+)/.exec(R))&&(B&&ue.push("identifying as "+B+(re?" "+re:"")),B="IE",re=K[1]),Z){if(E(A,"global"))if(q&&(K=q.lang.System,Ne=K.getProperty("os.arch"),x=x||K.getProperty("os.name")+" "+K.getProperty("os.version")),M){try{re=A.require("ringo/engine").version.join("."),B="RingoJS"}catch(Re){(K=A.system)&&K.global.system==A.system&&(B="Narwhal",x||(x=K[0].os||null))}B||(B="Rhino")}else typeof A.process=="object"&&!A.process.browser&&(K=A.process)&&(typeof K.versions=="object"&&(typeof K.versions.electron=="string"?(ue.push("Node "+K.versions.node),B="Electron",re=K.versions.electron):typeof K.versions.nw=="string"&&(ue.push("Chromium "+re,"Node "+K.versions.node),B="NW.js",re=K.versions.nw)),B||(B="Node.js",Ne=K.arch,x=K.platform,re=/[\d.]+/.exec(K.version),re=re?re[0]:null));else j(K=A.runtime)==G?(B="Adobe AIR",x=K.flash.system.Capabilities.os):j(K=A.phantom)==z?(B="PhantomJS",re=(K=K.version||null)&&K.major+"."+K.minor+"."+K.patch):typeof ne.documentMode=="number"&&(K=/\bTrident\/(\d+)/i.exec(R))?(re=[re,ne.documentMode],(K=+K[1]+4)!=re[1]&&(ue.push("IE "+re[1]+" mode"),U&&(U[1]=""),re[1]=K),re=B=="IE"?String(re[1].toFixed(1)):re[0]):typeof ne.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(B)&&(ue.push("masking as "+B+" "+re),B="IE",re="11.0",U=["Trident"],x="Windows");x=x&&C(x)}if(re&&(K=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(re)||/(?:alpha|beta)(?: ?\d)?/i.exec(R+";"+(Z&&$.appMinorVersion))||/\bMinefield\b/i.test(R)&&"a")&&(ee=/b/i.test(K)?"beta":"alpha",re=re.replace(RegExp(K+"\\+?$"),"")+(ee=="beta"?ae:J)+(/\d+\+?/.exec(K)||"")),B=="Fennec"||B=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(x))B="Firefox Mobile";else if(B=="Maxthon"&&re)re=re.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(oe))oe=="Xbox 360"&&(x=null),oe=="Xbox 360"&&/\bIEMobile\b/.test(R)&&ue.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(B)||B&&!oe&&!/Browser|Mobi/.test(B))&&(x=="Windows CE"||/Mobi/i.test(R)))B+=" Mobile";else if(B=="IE"&&Z)try{A.external===null&&ue.unshift("platform preview")}catch(Re){ue.unshift("embedded")}else(/\bBlackBerry\b/.test(oe)||/\bBB10\b/.test(R))&&(K=(RegExp(oe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(R)||0)[1]||re)?(K=[K,/BB10/.test(R)],x=(K[1]?(oe=null,k="BlackBerry"):"Device Software")+" "+K[0],re=null):this!=T&&oe!="Wii"&&(Z&&me||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(R)||B=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(x)||B=="IE"&&(x&&!/^Win/.test(x)&&re>5.5||/\bWindows XP\b/.test(x)&&re>8||re==8&&!/\bTrident\b/.test(R)))&&!o.test(K=P.call(T,R.replace(o,"")+";"))&&K.name&&(K="ing as "+K.name+((K=K.version)?" "+K:""),o.test(B)?(/\bIE\b/.test(K)&&x=="Mac OS"&&(x=null),K="identify"+K):(K="mask"+K,be?B=C(be.replace(/([a-z])([A-Z])/g,"$1 $2")):B="Opera",/\bIE\b/.test(K)&&(x=null),Z||(re=null)),U=["Presto"],ue.push(K));(K=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(R)||0)[1])&&(K=[parseFloat(K.replace(/\.(\d)$/,".0$1")),K],B=="Safari"&&K[1].slice(-1)=="+"?(B="WebKit Nightly",ee="alpha",re=K[1].slice(0,-1)):(re==K[1]||re==(K[2]=(/\bSafari\/([\d.]+\+?)/i.exec(R)||0)[1]))&&(re=null),K[1]=(/\bChrome\/([\d.]+)/i.exec(R)||0)[1],K[0]==537.36&&K[2]==537.36&&parseFloat(K[1])>=28&&U=="WebKit"&&(U=["Blink"]),!Z||!I&&!K[1]?(U&&(U[1]="like Safari"),K=(K=K[0],K<400?1:K<500?2:K<526?3:K<533?4:K<534?"4+":K<535?5:K<537?6:K<538?7:K<601?8:"8")):(U&&(U[1]="like Chrome"),K=K[1]||(K=K[0],K<530?1:K<532?2:K<532.05?3:K<533?4:K<534.03?5:K<534.07?6:K<534.1?7:K<534.13?8:K<534.16?9:K<534.24?10:K<534.3?11:K<535.01?12:K<535.02?"13+":K<535.07?15:K<535.11?16:K<535.19?17:K<536.05?18:K<536.1?19:K<537.01?20:K<537.11?"21+":K<537.13?23:K<537.18?24:K<537.24?25:K<537.36?26:U!="Blink"?"27":"28")),U&&(U[1]+=" "+(K+=typeof K=="number"?".x":/[.+]/.test(K)?"":"+")),B=="Safari"&&(!re||parseInt(re)>45)&&(re=K)),B=="Opera"&&(K=/\bzbov|zvav$/.exec(x))?(B+=" ",ue.unshift("desktop mode"),K=="zvav"?(B+="Mini",re=null):B+="Mobile",x=x.replace(RegExp(" *"+K+"$"),"")):B=="Safari"&&/\bChrome\b/.exec(U&&U[1])&&(ue.unshift("desktop mode"),B="Chrome Mobile",re=null,/\bOS X\b/.test(x)?(k="Apple",x="iOS 4.3+"):x=null),re&&re.indexOf(K=/[\d.]+$/.exec(x))==0&&R.indexOf("/"+K+"-")>-1&&(x=p(x.replace(K,""))),U&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||B!="Safari"&&/^iOS/.test(x)&&/\bSafari\b/.test(U[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(B)&&U[1])&&((K=U[U.length-1])&&ue.push(K)),ue.length&&(ue=["("+ue.join("; ")+")"]),k&&oe&&oe.indexOf(k)<0&&ue.push("on "+k),oe&&ue.push((/^on /.test(ue[ue.length-1])?"":"on ")+oe),x&&(K=/ ([\d.+]+)$/.exec(x),ce=K&&x.charAt(x.length-K[0].length-1)=="/",x={architecture:32,family:K&&!ce?x.replace(K[0],""):x,version:K?K[1]:null,toString:function(){var Oe=this.version;return this.family+(Oe&&!ce?" "+Oe:"")+(this.architecture==64?" 64-bit":"")}}),(K=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ne))&&!/\bi686\b/i.test(Ne)?(x&&(x.architecture=64,x.family=x.family.replace(RegExp(" *"+K),"")),B&&(/\bWOW64\b/i.test(R)||Z&&/\w(?:86|32)$/.test($.cpuClass||$.platform)&&!/\bWin64; x64\b/i.test(R))&&ue.unshift("32-bit")):x&&/^OS X/.test(x.family)&&B=="Chrome"&&parseFloat(re)>=39&&(x.architecture=64),R||(R=null);var we={};return we.description=R,we.layout=U&&U[0],we.manufacturer=k,we.name=B,we.prerelease=ee,we.product=oe,we.ua=R,we.version=B&&re,we.os=x||{architecture:null,family:null,version:null,toString:function(){return"null"}},we.parse=P,we.toString=ye,we.version&&ue.unshift(re),we.name&&ue.unshift(B),x&&B&&!(x==String(x).split(" ")[0]&&(x==B.split(" ")[0]||oe))&&ue.push(oe?"("+x+")":"on "+x),ue.length&&(we.description=ue.join(" ")),we}var N=P();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(v.platform=N,define(function(){return N})):f&&c?T(N,function(R,A){f[A]=R}):v.platform=N}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(e,y,i){(function(u){"use strict";typeof u=="undefined"||!u.version||u.version.indexOf("v0.")===0||u.version.indexOf("v1.")===0&&u.version.indexOf("v1.8.")!==0?y.exports={nextTick:t}:y.exports=u;function t(v,d,f,c){if(typeof v!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,l,o;switch(n){case 0:case 1:return u.nextTick(v);case 2:return u.nextTick(function(){v.call(null,d)});case 3:return u.nextTick(function(){v.call(null,d,f)});case 4:return u.nextTick(function(){v.call(null,d,f,c)});default:for(l=new Array(n-1),o=0;o<l.length;)l[o++]=arguments[o];return u.nextTick(function(){v.apply(null,l)})}}}).call(this,e("_process"))},{_process:208}],208:[function(e,y,i){var u=y.exports={},t,v;function d(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=d}catch(w){t=d}try{typeof clearTimeout=="function"?v=clearTimeout:v=f}catch(w){v=f}})();function c(w){if(t===setTimeout)return setTimeout(w,0);if((t===d||!t)&&setTimeout)return t=setTimeout,setTimeout(w,0);try{return t(w,0)}catch(C){try{return t.call(null,w,0)}catch(T){return t.call(this,w,0)}}}function n(w){if(v===clearTimeout)return clearTimeout(w);if((v===f||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(w);try{return v(w)}catch(C){try{return v.call(null,w)}catch(T){return v.call(this,w)}}}var l=[],o=!1,r,s=-1;function b(){if(!o||!r)return;o=!1,r.length?l=r.concat(l):s=-1,l.length&&h()}function h(){if(o)return;var w=c(b);o=!0;for(var C=l.length;C;){for(r=l,l=[];++s<C;)r&&r[s].run();s=-1,C=l.length}r=null,o=!1,n(w)}u.nextTick=function(w){var C=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)C[T-1]=arguments[T];l.push(new g(w,C)),l.length===1&&!o&&c(h)};function g(w,C){this.fun=w,this.array=C}g.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function S(){}u.on=S,u.addListener=S,u.once=S,u.off=S,u.removeListener=S,u.removeAllListeners=S,u.emit=S,u.prependListener=S,u.prependOnceListener=S,u.listeners=function(w){return[]},u.binding=function(w){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(w){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],209:[function(e,y,i){(function(u){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(t){var v=typeof i=="object"&&i&&!i.nodeType&&i,d=typeof y=="object"&&y&&!y.nodeType&&y,f=typeof u=="object"&&u;(f.global===f||f.window===f||f.self===f)&&(t=f);var c,n=2147483647,l=36,o=1,r=26,s=38,b=700,h=72,g=128,S="-",w=/^xn--/,C=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=l-o,O=Math.floor,_=String.fromCharCode,p;function P(F){throw new RangeError(j[F])}function N(F,z){for(var q=F.length,M=[];q--;)M[q]=z(F[q]);return M}function R(F,z){var q=F.split("@"),M="";q.length>1&&(M=q[0]+"@",F=q[1]),F=F.replace(T,".");var J=F.split("."),ae=N(J,z).join(".");return M+ae}function A(F){for(var z=[],q=0,M=F.length,J,ae;q<M;)J=F.charCodeAt(q++),J>=55296&&J<=56319&&q<M?(ae=F.charCodeAt(q++),(ae&64512)==56320?z.push(((J&1023)<<10)+(ae&1023)+65536):(z.push(J),q--)):z.push(J);return z}function L(F){return N(F,function(z){var q="";return z>65535&&(z-=65536,q+=_(z>>>10&1023|55296),z=56320|z&1023),q+=_(z),q}).join("")}function $(F){return F-48<10?F-22:F-65<26?F-65:F-97<26?F-97:l}function V(F,z){return F+22+75*(F<26)-((z!=0)<<5)}function Y(F,z,q){var M=0;for(F=q?O(F/b):F>>1,F+=O(F/z);F>E*r>>1;M+=l)F=O(F/E);return O(M+(E+1)*F/(F+s))}function I(F){var z=[],q=F.length,M,J=0,ae=g,ne=h,me,be,K,Ne,ue,ee,Z,re,ce;for(me=F.lastIndexOf(S),me<0&&(me=0),be=0;be<me;++be)F.charCodeAt(be)>=128&&P("not-basic"),z.push(F.charCodeAt(be));for(K=me>0?me+1:0;K<q;){for(Ne=J,ue=1,ee=l;!(K>=q&&P("invalid-input"),Z=$(F.charCodeAt(K++)),(Z>=l||Z>O((n-J)/ue))&&P("overflow"),J+=Z*ue,re=ee<=ne?o:ee>=ne+r?r:ee-ne,Z<re);ee+=l)ce=l-re,ue>O(n/ce)&&P("overflow"),ue*=ce;M=z.length+1,ne=Y(J-Ne,M,Ne==0),O(J/M)>n-ae&&P("overflow"),ae+=O(J/M),J%=M,z.splice(J++,0,ae)}return L(z)}function te(F){var z,q,M,J,ae,ne,me,be,K,Ne,ue,ee=[],Z,re,ce,U;for(F=A(F),Z=F.length,z=g,q=0,ae=h,ne=0;ne<Z;++ne)ue=F[ne],ue<128&&ee.push(_(ue));for(M=J=ee.length,J&&ee.push(S);M<Z;){for(me=n,ne=0;ne<Z;++ne)ue=F[ne],ue>=z&&ue<me&&(me=ue);for(re=M+1,me-z>O((n-q)/re)&&P("overflow"),q+=(me-z)*re,z=me,ne=0;ne<Z;++ne)if(ue=F[ne],ue<z&&++q>n&&P("overflow"),ue==z){for(be=q,K=l;!(Ne=K<=ae?o:K>=ae+r?r:K-ae,be<Ne);K+=l)U=be-Ne,ce=l-Ne,ee.push(_(V(Ne+U%ce,0))),be=O(U/ce);ee.push(_(V(be,0))),ae=Y(q,re,M==J),q=0,++M}++q,++z}return ee.join("")}function G(F){return R(F,function(z){return w.test(z)?I(z.slice(4).toLowerCase()):z})}function D(F){return R(F,function(z){return C.test(z)?"xn--"+te(z):z})}if(c={version:"1.4.1",ucs2:{decode:A,encode:L},decode:I,encode:te,toASCII:D,toUnicode:G},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return c});else if(v&&d)if(y.exports==v)d.exports=c;else for(p in c)c.hasOwnProperty(p)&&(v[p]=c[p]);else t.punycode=c})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(e,y,i){"use strict";function u(v,d){return Object.prototype.hasOwnProperty.call(v,d)}y.exports=function(v,d,f,c){d=d||"&",f=f||"=";var n={};if(typeof v!="string"||v.length===0)return n;var l=/\+/g;v=v.split(d);var o=1e3;c&&typeof c.maxKeys=="number"&&(o=c.maxKeys);var r=v.length;o>0&&r>o&&(r=o);for(var s=0;s<r;++s){var b=v[s].replace(l,"%20"),h=b.indexOf(f),g,S,w,C;h>=0?(g=b.substr(0,h),S=b.substr(h+1)):(g=b,S=""),w=decodeURIComponent(g),C=decodeURIComponent(S),u(n,w)?t(n[w])?n[w].push(C):n[w]=[n[w],C]:n[w]=C}return n};var t=Array.isArray||function(v){return Object.prototype.toString.call(v)==="[object Array]"}},{}],211:[function(e,y,i){"use strict";var u=function(c){switch(typeof c){case"string":return c;case"boolean":return c?"true":"false";case"number":return isFinite(c)?c:"";default:return""}};y.exports=function(f,c,n,l){return c=c||"&",n=n||"=",f===null&&(f=void 0),typeof f=="object"?v(d(f),function(o){var r=encodeURIComponent(u(o))+n;return t(f[o])?v(f[o],function(s){return r+encodeURIComponent(u(s))}).join(c):r+encodeURIComponent(u(f[o]))}).join(c):l?encodeURIComponent(u(l))+n+encodeURIComponent(u(f)):""};var t=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};function v(f,c){if(f.map)return f.map(c);for(var n=[],l=0;l<f.length;l++)n.push(c(f[l],l));return n}var d=Object.keys||function(f){var c=[];for(var n in f)Object.prototype.hasOwnProperty.call(f,n)&&c.push(n);return c}},{}],212:[function(e,y,i){"use strict";i.decode=i.parse=e("./decode"),i.encode=i.stringify=e("./encode")},{"./decode":210,"./encode":211}],213:[function(e,y,i){y.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=f(u),v=e("babel-runtime/core-js/object/keys"),d=f(v);function f(C){return C&&C.__esModule?C:{default:C}}var c=e("process-nextick-args"),n=d.default||function(C){var T=[];for(var j in C)T.push(j);return T};y.exports=g;var l=(0,t.default)(e("core-util-is"));l.inherits=e("inherits");var o=e("./_stream_readable"),r=e("./_stream_writable");l.inherits(g,o);for(var s=n(r.prototype),b=0;b<s.length;b++){var h=s[b];g.prototype[h]||(g.prototype[h]=r.prototype[h])}function g(C){if(!(this instanceof g))return new g(C);o.call(this,C),r.call(this,C),C&&C.readable===!1&&(this.readable=!1),C&&C.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,C&&C.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",S)}Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S(){if(this.allowHalfOpen||this._writableState.ended)return;c.nextTick(w,this)}function w(C){C.end()}Object.defineProperty(g.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(T){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=T,this._writableState.destroyed=T}}),g.prototype._destroy=function(C,T){this.push(null),this.end(),c.nextTick(T,C)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(n){return n&&n.__esModule?n:{default:n}}y.exports=c;var d=e("./_stream_transform"),f=(0,t.default)(e("core-util-is"));f.inherits=e("inherits"),f.inherits(c,d);function c(n){if(!(this instanceof c))return new c(n);d.call(this,n)}c.prototype._transform=function(n,l,o){o(null,n)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(e,y,i){(function(u,t){"use strict";var v=e("babel-runtime/core-js/object/get-prototype-of"),d=n(v),f=e("babel-runtime/core-js/object/create"),c=n(f);function n(U){return U&&U.__esModule?U:{default:U}}var l=e("process-nextick-args");y.exports=A;var o=e("isarray"),r;A.ReadableState=R;var s=e("events").EventEmitter,b=function(B,oe){return B.listeners(oe).length},h=e("./internal/streams/stream"),g=e("safe-buffer").Buffer,S=t.Uint8Array||function(){};function w(U){return g.from(U)}function C(U){return g.isBuffer(U)||U instanceof S}var T=(0,c.default)(e("core-util-is"));T.inherits=e("inherits");var j=e("util"),E=void 0;j&&j.debuglog?E=j.debuglog("stream"):E=function(){};var O=e("./internal/streams/BufferList"),_=e("./internal/streams/destroy"),p;T.inherits(A,h);var P=["error","close","destroy","pause","resume"];function N(U,B,oe){if(typeof U.prependListener=="function")return U.prependListener(B,oe);!U._events||!U._events[B]?U.on(B,oe):o(U._events[B])?U._events[B].unshift(oe):U._events[B]=[oe,U._events[B]]}function R(U,B){r=r||e("./_stream_duplex"),U=U||{};var oe=B instanceof r;this.objectMode=!!U.objectMode,oe&&(this.objectMode=this.objectMode||!!U.readableObjectMode);var k=U.highWaterMark,x=U.readableHighWaterMark,a=this.objectMode?16:16*1024;k||k===0?this.highWaterMark=k:oe&&(x||x===0)?this.highWaterMark=x:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new O,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=U.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,U.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(U.encoding),this.encoding=U.encoding)}function A(U){if(r=r||e("./_stream_duplex"),!(this instanceof A))return new A(U);this._readableState=new R(U,this),this.readable=!0,U&&(typeof U.read=="function"&&(this._read=U.read),typeof U.destroy=="function"&&(this._destroy=U.destroy)),h.call(this)}Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(B){if(!this._readableState)return;this._readableState.destroyed=B}}),A.prototype.destroy=_.destroy,A.prototype._undestroy=_.undestroy,A.prototype._destroy=function(U,B){this.push(null),B(U)},A.prototype.push=function(U,B){var oe=this._readableState,k;return oe.objectMode?k=!0:typeof U=="string"&&(B=B||oe.defaultEncoding,B!==oe.encoding&&(U=g.from(U,B),B=""),k=!0),L(this,U,B,!1,k)},A.prototype.unshift=function(U){return L(this,U,null,!0,!1)};function L(U,B,oe,k,x){var a=U._readableState;if(B===null)a.reading=!1,D(U,a);else{var m;x||(m=V(a,B)),m?U.emit("error",m):a.objectMode||B&&B.length>0?(typeof B!="string"&&!a.objectMode&&(0,d.default)(B)!==g.prototype&&(B=w(B)),k?a.endEmitted?U.emit("error",new Error("stream.unshift() after end event")):$(U,a,B,!0):a.ended?U.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!oe?(B=a.decoder.write(B),a.objectMode||B.length!==0?$(U,a,B,!1):q(U,a)):$(U,a,B,!1))):k||(a.reading=!1)}return Y(a)}function $(U,B,oe,k){B.flowing&&B.length===0&&!B.sync?(U.emit("data",oe),U.read(0)):(B.length+=B.objectMode?1:oe.length,k?B.buffer.unshift(oe):B.buffer.push(oe),B.needReadable&&F(U)),q(U,B)}function V(U,B){var oe;return!C(B)&&typeof B!="string"&&B!==void 0&&!U.objectMode&&(oe=new TypeError("Invalid non-string/buffer chunk")),oe}function Y(U){return!U.ended&&(U.needReadable||U.length<U.highWaterMark||U.length===0)}A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(U){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(U),this._readableState.encoding=U,this};var I=8388608;function te(U){return U>=I?U=I:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}function G(U,B){return U<=0||B.length===0&&B.ended?0:B.objectMode?1:U!==U?B.flowing&&B.length?B.buffer.head.data.length:B.length:(U>B.highWaterMark&&(B.highWaterMark=te(U)),U<=B.length?U:B.ended?B.length:(B.needReadable=!0,0))}A.prototype.read=function(U){E("read",U),U=parseInt(U,10);var B=this._readableState,oe=U;if(U!==0&&(B.emittedReadable=!1),U===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return E("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?Z(this):F(this),null;if(U=G(U,B),U===0&&B.ended)return B.length===0&&Z(this),null;var k=B.needReadable;E("need readable",k),(B.length===0||B.length-U<B.highWaterMark)&&(k=!0,E("length less than watermark",k)),B.ended||B.reading?(k=!1,E("reading or ended",k)):k&&(E("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(U=G(oe,B)));var x;return U>0?x=K(U,B):x=null,x===null?(B.needReadable=!0,U=0):B.length-=U,B.length===0&&(B.ended||(B.needReadable=!0),oe!==U&&B.ended&&Z(this)),x!==null&&this.emit("data",x),x};function D(U,B){if(B.ended)return;if(B.decoder){var oe=B.decoder.end();oe&&oe.length&&(B.buffer.push(oe),B.length+=B.objectMode?1:oe.length)}B.ended=!0,F(U)}function F(U){var B=U._readableState;B.needReadable=!1,B.emittedReadable||(E("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?l.nextTick(z,U):z(U))}function z(U){E("emit readable"),U.emit("readable"),be(U)}function q(U,B){B.readingMore||(B.readingMore=!0,l.nextTick(M,U,B))}function M(U,B){for(var oe=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&!(E("maybeReadMore read 0"),U.read(0),oe===B.length);)oe=B.length;B.readingMore=!1}A.prototype._read=function(U){this.emit("error",new Error("_read() is not implemented"))},A.prototype.pipe=function(U,B){var oe=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=U;break;case 1:k.pipes=[k.pipes,U];break;default:k.pipes.push(U);break}k.pipesCount+=1,E("pipe count=%d opts=%j",k.pipesCount,B);var x=(!B||B.end!==!1)&&U!==u.stdout&&U!==u.stderr,a=x?H:de;k.endEmitted?l.nextTick(a):oe.once("end",a),U.on("unpipe",m);function m(le,xe){E("onunpipe"),le===oe&&(xe&&xe.hasUnpiped===!1&&(xe.hasUnpiped=!0,pe()))}function H(){E("onend"),U.end()}var W=J(oe);U.on("drain",W);var Q=!1;function pe(){E("cleanup"),U.removeListener("close",Oe),U.removeListener("finish",_e),U.removeListener("drain",W),U.removeListener("error",Re),U.removeListener("unpipe",m),oe.removeListener("end",H),oe.removeListener("end",de),oe.removeListener("data",we),Q=!0,k.awaitDrain&&(!U._writableState||U._writableState.needDrain)&&W()}var ye=!1;oe.on("data",we);function we(le){E("ondata"),ye=!1;var xe=U.write(le);xe===!1&&!ye&&((k.pipesCount===1&&k.pipes===U||k.pipesCount>1&&ce(k.pipes,U)!==-1)&&!Q&&(E("false write response, pause",oe._readableState.awaitDrain),oe._readableState.awaitDrain++,ye=!0),oe.pause())}function Re(le){E("onerror",le),de(),U.removeListener("error",Re),b(U,"error")===0&&U.emit("error",le)}N(U,"error",Re);function Oe(){U.removeListener("finish",_e),de()}U.once("close",Oe);function _e(){E("onfinish"),U.removeListener("close",Oe),de()}U.once("finish",_e);function de(){E("unpipe"),oe.unpipe(U)}return U.emit("pipe",oe),k.flowing||(E("pipe resume"),oe.resume()),U};function J(U){return function(){var B=U._readableState;E("pipeOnDrain",B.awaitDrain),B.awaitDrain&&B.awaitDrain--,B.awaitDrain===0&&b(U,"data")&&(B.flowing=!0,be(U))}}A.prototype.unpipe=function(U){var B=this._readableState,oe={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return U&&U!==B.pipes?this:(U||(U=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,U&&U.emit("unpipe",this,oe),this);if(!U){var k=B.pipes,x=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var a=0;a<x;a++)k[a].emit("unpipe",this,oe);return this}var m=ce(B.pipes,U);return m===-1?this:(B.pipes.splice(m,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),U.emit("unpipe",this,oe),this)},A.prototype.on=function(U,B){var oe=h.prototype.on.call(this,U,B);if(U==="data")this._readableState.flowing!==!1&&this.resume();else if(U==="readable"){var k=this._readableState;!k.endEmitted&&!k.readableListening&&(k.readableListening=k.needReadable=!0,k.emittedReadable=!1,k.reading?k.length&&F(this):l.nextTick(ae,this))}return oe},A.prototype.addListener=A.prototype.on;function ae(U){E("readable nexttick read 0"),U.read(0)}A.prototype.resume=function(){var U=this._readableState;return U.flowing||(E("resume"),U.flowing=!0,ne(this,U)),this};function ne(U,B){B.resumeScheduled||(B.resumeScheduled=!0,l.nextTick(me,U,B))}function me(U,B){B.reading||(E("resume read 0"),U.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,U.emit("resume"),be(U),B.flowing&&!B.reading&&U.read(0)}A.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function be(U){var B=U._readableState;for(E("flow",B.flowing);B.flowing&&U.read()!==null;);}A.prototype.wrap=function(U){var B=this,oe=this._readableState,k=!1;U.on("end",function(){if(E("wrapped end"),oe.decoder&&!oe.ended){var m=oe.decoder.end();m&&m.length&&B.push(m)}B.push(null)}),U.on("data",function(m){if(E("wrapped data"),oe.decoder&&(m=oe.decoder.write(m)),oe.objectMode&&m==null)return;if(!oe.objectMode&&(!m||!m.length))return;var H=B.push(m);H||(k=!0,U.pause())});for(var x in U)this[x]===void 0&&typeof U[x]=="function"&&(this[x]=function(m){return function(){return U[m].apply(U,arguments)}}(x));for(var a=0;a<P.length;a++)U.on(P[a],this.emit.bind(this,P[a]));return this._read=function(m){E("wrapped _read",m),k&&(k=!1,U.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=K;function K(U,B){if(B.length===0)return null;var oe;return B.objectMode?oe=B.buffer.shift():!U||U>=B.length?(B.decoder?oe=B.buffer.join(""):B.buffer.length===1?oe=B.buffer.head.data:oe=B.buffer.concat(B.length),B.buffer.clear()):oe=Ne(U,B.buffer,B.decoder),oe}function Ne(U,B,oe){var k;return U<B.head.data.length?(k=B.head.data.slice(0,U),B.head.data=B.head.data.slice(U)):U===B.head.data.length?k=B.shift():k=oe?ue(U,B):ee(U,B),k}function ue(U,B){var oe=B.head,k=1,x=oe.data;for(U-=x.length;oe=oe.next;){var a=oe.data,m=U>a.length?a.length:U;if(m===a.length?x+=a:x+=a.slice(0,U),U-=m,U===0){m===a.length?(++k,oe.next?B.head=oe.next:B.head=B.tail=null):(B.head=oe,oe.data=a.slice(m));break}++k}return B.length-=k,x}function ee(U,B){var oe=g.allocUnsafe(U),k=B.head,x=1;for(k.data.copy(oe),U-=k.data.length;k=k.next;){var a=k.data,m=U>a.length?a.length:U;if(a.copy(oe,oe.length-U,0,m),U-=m,U===0){m===a.length?(++x,k.next?B.head=k.next:B.head=B.tail=null):(B.head=k,k.data=a.slice(m));break}++x}return B.length-=x,oe}function Z(U){var B=U._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,l.nextTick(re,B,U))}function re(U,B){!U.endEmitted&&U.length===0&&(U.endEmitted=!0,B.readable=!1,B.emit("end"))}function ce(U,B){for(var oe=0,k=U.length;oe<k;oe++)if(U[oe]===B)return oe;return-1}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(r){return r&&r.__esModule?r:{default:r}}y.exports=n;var d=e("./_stream_duplex"),f=(0,t.default)(e("core-util-is"));f.inherits=e("inherits"),f.inherits(n,d);function c(r,s){var b=this._transformState;b.transforming=!1;var h=b.writecb;if(!h)return this.emit("error",new Error("write callback called multiple times"));b.writechunk=null,b.writecb=null,s!=null&&this.push(s),h(r);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function n(r){if(!(this instanceof n))return new n(r);d.call(this,r),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",l)}function l(){var r=this;typeof this._flush=="function"?this._flush(function(s,b){o(r,s,b)}):o(this,null,null)}n.prototype.push=function(r,s){return this._transformState.needTransform=!1,d.prototype.push.call(this,r,s)},n.prototype._transform=function(r,s,b){throw new Error("_transform() is not implemented")},n.prototype._write=function(r,s,b){var h=this._transformState;if(h.writecb=b,h.writechunk=r,h.writeencoding=s,!h.transforming){var g=this._readableState;(h.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},n.prototype._read=function(r){var s=this._transformState;s.writechunk!==null&&s.writecb&&!s.transforming?(s.transforming=!0,this._transform(s.writechunk,s.writeencoding,s.afterTransform)):s.needTransform=!0},n.prototype._destroy=function(r,s){var b=this;d.prototype._destroy.call(this,r,function(h){s(h),b.emit("close")})};function o(r,s,b){if(s)return r.emit("error",s);if(b!=null&&r.push(b),r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(e,y,i){(function(u,t){"use strict";var v=e("babel-runtime/core-js/object/define-property"),d=h(v),f=e("babel-runtime/core-js/symbol/has-instance"),c=h(f),n=e("babel-runtime/core-js/symbol"),l=h(n),o=e("babel-runtime/core-js/object/create"),r=h(o),s=e("babel-runtime/core-js/set-immediate"),b=h(s);function h(ee){return ee&&ee.__esModule?ee:{default:ee}}var g=e("process-nextick-args");y.exports=V;function S(ee,Z,re){this.chunk=ee,this.encoding=Z,this.callback=re,this.next=null}function w(ee){var Z=this;this.next=null,this.entry=null,this.finish=function(){ue(Z,ee)}}var C=!u.browser&&["v0.10","v0.9."].indexOf(u.version.slice(0,5))>-1?b.default:g.nextTick,T;V.WritableState=L;var j=(0,r.default)(e("core-util-is"));j.inherits=e("inherits");var E={deprecate:e("util-deprecate")},O=e("./internal/streams/stream"),_=e("safe-buffer").Buffer,p=t.Uint8Array||function(){};function P(ee){return _.from(ee)}function N(ee){return _.isBuffer(ee)||ee instanceof p}var R=e("./internal/streams/destroy");j.inherits(V,O);function A(){}function L(ee,Z){T=T||e("./_stream_duplex"),ee=ee||{};var re=Z instanceof T;this.objectMode=!!ee.objectMode,re&&(this.objectMode=this.objectMode||!!ee.writableObjectMode);var ce=ee.highWaterMark,U=ee.writableHighWaterMark,B=this.objectMode?16:16*1024;ce||ce===0?this.highWaterMark=ce:re&&(U||U===0)?this.highWaterMark=U:this.highWaterMark=B,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var oe=ee.decodeStrings===!1;this.decodeStrings=!oe,this.defaultEncoding=ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(k){q(Z,k)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new w(this)}L.prototype.getBuffer=function(){for(var Z=this.bufferedRequest,re=[];Z;)re.push(Z),Z=Z.next;return re},function(){try{Object.defineProperty(L.prototype,"buffer",{get:E.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ee){}}();var $;typeof l.default=="function"&&c.default&&typeof Function.prototype[c.default]=="function"?($=Function.prototype[c.default],(0,d.default)(V,c.default,{value:function(Z){return $.call(this,Z)?!0:this!==V?!1:Z&&Z._writableState instanceof L}})):$=function(Z){return Z instanceof this};function V(ee){if(T=T||e("./_stream_duplex"),!$.call(V,this)&&!(this instanceof T))return new V(ee);this._writableState=new L(ee,this),this.writable=!0,ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final)),O.call(this)}V.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Y(ee,Z){var re=new Error("write after end");ee.emit("error",re),g.nextTick(Z,re)}function I(ee,Z,re,ce){var U=!0,B=!1;return re===null?B=new TypeError("May not write null values to stream"):typeof re!="string"&&re!==void 0&&!Z.objectMode&&(B=new TypeError("Invalid non-string/buffer chunk")),B&&(ee.emit("error",B),g.nextTick(ce,B),U=!1),U}V.prototype.write=function(ee,Z,re){var ce=this._writableState,U=!1,B=!ce.objectMode&&N(ee);return B&&!_.isBuffer(ee)&&(ee=P(ee)),typeof Z=="function"&&(re=Z,Z=null),B?Z="buffer":Z||(Z=ce.defaultEncoding),typeof re!="function"&&(re=A),ce.ended?Y(this,re):(B||I(this,ce,ee,re))&&(ce.pendingcb++,U=G(this,ce,B,ee,Z,re)),U},V.prototype.cork=function(){var ee=this._writableState;ee.corked++},V.prototype.uncork=function(){var ee=this._writableState;ee.corked&&(ee.corked--,!ee.writing&&!ee.corked&&!ee.finished&&!ee.bufferProcessing&&ee.bufferedRequest&&ae(this,ee))},V.prototype.setDefaultEncoding=function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Z+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Z);return this._writableState.defaultEncoding=Z,this};function te(ee,Z,re){return!ee.objectMode&&ee.decodeStrings!==!1&&typeof Z=="string"&&(Z=_.from(Z,re)),Z}Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G(ee,Z,re,ce,U,B){if(!re){var oe=te(Z,ce,U);ce!==oe&&(re=!0,U="buffer",ce=oe)}var k=Z.objectMode?1:ce.length;Z.length+=k;var x=Z.length<Z.highWaterMark;if(x||(Z.needDrain=!0),Z.writing||Z.corked){var a=Z.lastBufferedRequest;Z.lastBufferedRequest={chunk:ce,encoding:U,isBuf:re,callback:B,next:null},a?a.next=Z.lastBufferedRequest:Z.bufferedRequest=Z.lastBufferedRequest,Z.bufferedRequestCount+=1}else D(ee,Z,!1,k,ce,U,B);return x}function D(ee,Z,re,ce,U,B,oe){Z.writelen=ce,Z.writecb=oe,Z.writing=!0,Z.sync=!0,re?ee._writev(U,Z.onwrite):ee._write(U,B,Z.onwrite),Z.sync=!1}function F(ee,Z,re,ce,U){--Z.pendingcb,re?(g.nextTick(U,ce),g.nextTick(K,ee,Z),ee._writableState.errorEmitted=!0,ee.emit("error",ce)):(U(ce),ee._writableState.errorEmitted=!0,ee.emit("error",ce),K(ee,Z))}function z(ee){ee.writing=!1,ee.writecb=null,ee.length-=ee.writelen,ee.writelen=0}function q(ee,Z){var re=ee._writableState,ce=re.sync,U=re.writecb;if(z(re),Z)F(ee,re,ce,Z,U);else{var B=ne(re);!B&&!re.corked&&!re.bufferProcessing&&re.bufferedRequest&&ae(ee,re),ce?C(M,ee,re,B,U):M(ee,re,B,U)}}function M(ee,Z,re,ce){re||J(ee,Z),Z.pendingcb--,ce(),K(ee,Z)}function J(ee,Z){Z.length===0&&Z.needDrain&&(Z.needDrain=!1,ee.emit("drain"))}function ae(ee,Z){Z.bufferProcessing=!0;var re=Z.bufferedRequest;if(ee._writev&&re&&re.next){var ce=Z.bufferedRequestCount,U=new Array(ce),B=Z.corkedRequestsFree;B.entry=re;for(var oe=0,k=!0;re;)U[oe]=re,re.isBuf||(k=!1),re=re.next,oe+=1;U.allBuffers=k,D(ee,Z,!0,Z.length,U,"",B.finish),Z.pendingcb++,Z.lastBufferedRequest=null,B.next?(Z.corkedRequestsFree=B.next,B.next=null):Z.corkedRequestsFree=new w(Z),Z.bufferedRequestCount=0}else{for(;re;){var x=re.chunk,a=re.encoding,m=re.callback,H=Z.objectMode?1:x.length;if(D(ee,Z,!1,H,x,a,m),re=re.next,Z.bufferedRequestCount--,Z.writing)break}re===null&&(Z.lastBufferedRequest=null)}Z.bufferedRequest=re,Z.bufferProcessing=!1}V.prototype._write=function(ee,Z,re){re(new Error("_write() is not implemented"))},V.prototype._writev=null,V.prototype.end=function(ee,Z,re){var ce=this._writableState;typeof ee=="function"?(re=ee,ee=null,Z=null):typeof Z=="function"&&(re=Z,Z=null),ee!=null&&this.write(ee,Z),ce.corked&&(ce.corked=1,this.uncork()),!ce.ending&&!ce.finished&&Ne(this,ce,re)};function ne(ee){return ee.ending&&ee.length===0&&ee.bufferedRequest===null&&!ee.finished&&!ee.writing}function me(ee,Z){ee._final(function(re){Z.pendingcb--,re&&ee.emit("error",re),Z.prefinished=!0,ee.emit("prefinish"),K(ee,Z)})}function be(ee,Z){!Z.prefinished&&!Z.finalCalled&&(typeof ee._final=="function"?(Z.pendingcb++,Z.finalCalled=!0,g.nextTick(me,ee,Z)):(Z.prefinished=!0,ee.emit("prefinish")))}function K(ee,Z){var re=ne(Z);return re&&(be(ee,Z),Z.pendingcb===0&&(Z.finished=!0,ee.emit("finish"))),re}function Ne(ee,Z,re){Z.ending=!0,K(ee,Z),re&&(Z.finished?g.nextTick(re):ee.once("finish",re)),Z.ended=!0,ee.writable=!1}function ue(ee,Z,re){var ce=ee.entry;for(ee.entry=null;ce;){var U=ce.callback;Z.pendingcb--,U(re),ce=ce.next}Z.corkedRequestsFree?Z.corkedRequestsFree.next=ee:Z.corkedRequestsFree=ee}Object.defineProperty(V.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Z){if(!this._writableState)return;this._writableState.destroyed=Z}}),V.prototype.destroy=R.destroy,V.prototype._undestroy=R.undestroy,V.prototype._destroy=function(ee,Z){this.end(),Z(ee)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(e,y,i){"use strict";function u(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}var t=e("safe-buffer").Buffer,v=e("util");function d(f,c,n){f.copy(c,n)}y.exports=function(){function f(){u(this,f),this.head=null,this.tail=null,this.length=0}return f.prototype.push=function(n){var l={data:n,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},f.prototype.unshift=function(n){var l={data:n,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},f.prototype.shift=function(){if(this.length===0)return;var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n},f.prototype.clear=function(){this.head=this.tail=null,this.length=0},f.prototype.join=function(n){if(this.length===0)return"";for(var l=this.head,o=""+l.data;l=l.next;)o+=n+l.data;return o},f.prototype.concat=function(n){if(this.length===0)return t.alloc(0);if(this.length===1)return this.head.data;for(var l=t.allocUnsafe(n>>>0),o=this.head,r=0;o;)d(o.data,l,r),r+=o.data.length,o=o.next;return l},f}(),v&&v.inspect&&v.inspect.custom&&(y.exports.prototype[v.inspect.custom]=function(){var f=v.inspect({length:this.length});return this.constructor.name+" "+f})},{"safe-buffer":228,util:71}],220:[function(e,y,i){"use strict";var u=e("process-nextick-args");function t(f,c){var n=this,l=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return l||o?(c?c(f):f&&(!this._writableState||!this._writableState.errorEmitted)&&u.nextTick(d,this,f),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(r){!c&&r?(u.nextTick(d,n,r),n._writableState&&(n._writableState.errorEmitted=!0)):c&&c(r)}),this)}function v(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function d(f,c){f.emit("error",c)}y.exports={destroy:t,undestroy:v}},{"process-nextick-args":207}],221:[function(e,y,i){"use strict";y.exports=e("events").EventEmitter},{events:192}],222:[function(e,y,i){y.exports=e("./readable").PassThrough},{"./readable":223}],223:[function(e,y,i){i=y.exports=e("./lib/_stream_readable.js"),i.Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(e,y,i){y.exports=e("./readable").Transform},{"./readable":223}],225:[function(e,y,i){y.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(e,y,i){var u=function(){return this}()||Function("return this")(),t=u.regeneratorRuntime&&Object.getOwnPropertyNames(u).indexOf("regeneratorRuntime")>=0,v=t&&u.regeneratorRuntime;if(u.regeneratorRuntime=void 0,y.exports=e("./runtime"),t)u.regeneratorRuntime=v;else try{delete u.regeneratorRuntime}catch(d){u.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(e,y,i){!function(u){"use strict";var t=Object.prototype,v=t.hasOwnProperty,d,f=typeof Symbol=="function"?Symbol:{},c=f.iterator||"@@iterator",n=f.asyncIterator||"@@asyncIterator",l=f.toStringTag||"@@toStringTag",o=typeof y=="object",r=u.regeneratorRuntime;if(r){o&&(y.exports=r);return}r=u.regeneratorRuntime=o?y.exports:{};function s(G,D,F,z){var q=D&&D.prototype instanceof T?D:T,M=Object.create(q.prototype),J=new Y(z||[]);return M._invoke=A(G,F,J),M}r.wrap=s;function b(G,D,F){try{return{type:"normal",arg:G.call(D,F)}}catch(z){return{type:"throw",arg:z}}}var h="suspendedStart",g="suspendedYield",S="executing",w="completed",C={};function T(){}function j(){}function E(){}var O={};O[c]=function(){return this};var _=Object.getPrototypeOf,p=_&&_(_(I([])));p&&p!==t&&v.call(p,c)&&(O=p);var P=E.prototype=T.prototype=Object.create(O);j.prototype=P.constructor=E,E.constructor=j,E[l]=j.displayName="GeneratorFunction";function N(G){["next","throw","return"].forEach(function(D){G[D]=function(F){return this._invoke(D,F)}})}r.isGeneratorFunction=function(G){var D=typeof G=="function"&&G.constructor;return D?D===j||(D.displayName||D.name)==="GeneratorFunction":!1},r.mark=function(G){return Object.setPrototypeOf?Object.setPrototypeOf(G,E):(G.__proto__=E,l in G||(G[l]="GeneratorFunction")),G.prototype=Object.create(P),G},r.awrap=function(G){return{__await:G}};function R(G){function D(q,M,J,ae){var ne=b(G[q],G,M);if(ne.type==="throw")ae(ne.arg);else{var me=ne.arg,be=me.value;return be&&typeof be=="object"&&v.call(be,"__await")?Promise.resolve(be.__await).then(function(K){D("next",K,J,ae)},function(K){D("throw",K,J,ae)}):Promise.resolve(be).then(function(K){me.value=K,J(me)},ae)}}var F;function z(q,M){function J(){return new Promise(function(ae,ne){D(q,M,ae,ne)})}return F=F?F.then(J,J):J()}this._invoke=z}N(R.prototype),R.prototype[n]=function(){return this},r.AsyncIterator=R,r.async=function(G,D,F,z){var q=new R(s(G,D,F,z));return r.isGeneratorFunction(D)?q:q.next().then(function(M){return M.done?M.value:q.next()})};function A(G,D,F){var z=h;return function(M,J){if(z===S)throw new Error("Generator is already running");if(z===w){if(M==="throw")throw J;return te()}for(F.method=M,F.arg=J;;){var ae=F.delegate;if(ae){var ne=L(ae,F);if(ne){if(ne===C)continue;return ne}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(z===h)throw z=w,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);z=S;var me=b(G,D,F);if(me.type==="normal"){if(z=F.done?w:g,me.arg===C)continue;return{value:me.arg,done:F.done}}else me.type==="throw"&&(z=w,F.method="throw",F.arg=me.arg)}}}function L(G,D){var F=G.iterator[D.method];if(F===d){if(D.delegate=null,D.method==="throw"){if(G.iterator.return&&(D.method="return",D.arg=d,L(G,D),D.method==="throw"))return C;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var z=b(F,G.iterator,D.arg);if(z.type==="throw")return D.method="throw",D.arg=z.arg,D.delegate=null,C;var q=z.arg;if(!q)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,C;if(q.done)D[G.resultName]=q.value,D.next=G.nextLoc,D.method!=="return"&&(D.method="next",D.arg=d);else return q;return D.delegate=null,C}N(P),P[l]="Generator",P[c]=function(){return this},P.toString=function(){return"[object Generator]"};function $(G){var D={tryLoc:G[0]};1 in G&&(D.catchLoc=G[1]),2 in G&&(D.finallyLoc=G[2],D.afterLoc=G[3]),this.tryEntries.push(D)}function V(G){var D=G.completion||{};D.type="normal",delete D.arg,G.completion=D}function Y(G){this.tryEntries=[{tryLoc:"root"}],G.forEach($,this),this.reset(!0)}r.keys=function(G){var D=[];for(var F in G)D.push(F);return D.reverse(),function z(){for(;D.length;){var q=D.pop();if(q in G)return z.value=q,z.done=!1,z}return z.done=!0,z}};function I(G){if(G){var D=G[c];if(D)return D.call(G);if(typeof G.next=="function")return G;if(!isNaN(G.length)){var F=-1,z=function q(){for(;++F<G.length;)if(v.call(G,F))return q.value=G[F],q.done=!1,q;return q.value=d,q.done=!0,q};return z.next=z}}return{next:te}}r.values=I;function te(){return{value:d,done:!0}}Y.prototype={constructor:Y,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=d,this.done=!1,this.delegate=null,this.method="next",this.arg=d,this.tryEntries.forEach(V),!D)for(var F in this)F.charAt(0)==="t"&&v.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=d)},stop:function(){this.done=!0;var D=this.tryEntries[0],F=D.completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var F=this;function z(me,be){return J.type="throw",J.arg=D,F.next=me,be&&(F.method="next",F.arg=d),!!be}for(var q=this.tryEntries.length-1;q>=0;--q){var M=this.tryEntries[q],J=M.completion;if(M.tryLoc==="root")return z("end");if(M.tryLoc<=this.prev){var ae=v.call(M,"catchLoc"),ne=v.call(M,"finallyLoc");if(ae&&ne){if(this.prev<M.catchLoc)return z(M.catchLoc,!0);if(this.prev<M.finallyLoc)return z(M.finallyLoc)}else if(ae){if(this.prev<M.catchLoc)return z(M.catchLoc,!0)}else if(ne){if(this.prev<M.finallyLoc)return z(M.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(D,F){for(var z=this.tryEntries.length-1;z>=0;--z){var q=this.tryEntries[z];if(q.tryLoc<=this.prev&&v.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var M=q;break}}M&&(D==="break"||D==="continue")&&M.tryLoc<=F&&F<=M.finallyLoc&&(M=null);var J=M?M.completion:{};return J.type=D,J.arg=F,M?(this.method="next",this.next=M.finallyLoc,C):this.complete(J)},complete:function(D,F){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&F&&(this.next=F),C},finish:function(D){for(var F=this.tryEntries.length-1;F>=0;--F){var z=this.tryEntries[F];if(z.finallyLoc===D)return this.complete(z.completion,z.afterLoc),V(z),C}},catch:function(D){for(var F=this.tryEntries.length-1;F>=0;--F){var z=this.tryEntries[F];if(z.tryLoc===D){var q=z.completion;if(q.type==="throw"){var M=q.arg;V(z)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(D,F,z){return this.delegate={iterator:I(D),resultName:F,nextLoc:z},this.method==="next"&&(this.arg=d),C}}}(function(){return this}()||Function("return this")())},{}],228:[function(e,y,i){var u=e("buffer"),t=u.Buffer;function v(f,c){for(var n in f)c[n]=f[n]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?y.exports=u:(v(u,i),i.Buffer=d);function d(f,c,n){return t(f,c,n)}v(t,d),d.from=function(f,c,n){if(typeof f=="number")throw new TypeError("Argument must not be a number");return t(f,c,n)},d.alloc=function(f,c,n){if(typeof f!="number")throw new TypeError("Argument must be a number");var l=t(f);return c!==void 0?typeof n=="string"?l.fill(c,n):l.fill(c):l.fill(0),l},d.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return t(f)},d.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(f)}},{buffer:73}],229:[function(e,y,i){(function(u){"use strict";var t=e("babel-runtime/core-js/string/from-code-point"),v=g(t),d=e("babel-runtime/core-js/json/stringify"),f=g(d),c=e("babel-runtime/helpers/typeof"),n=g(c),l=e("babel-runtime/core-js/object/define-property"),o=g(l),r=e("babel-runtime/core-js/object/keys"),s=g(r),b=e("babel-runtime/core-js/object/create"),h=g(b);function g(S){return S&&S.__esModule?S:{default:S}}(function(S){S.parser=function(a,m){return new C(a,m)},S.SAXParser=C,S.SAXStream=P,S.createStream=p,S.MAX_BUFFER_LENGTH=64*1024;var w=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];S.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function C(a,m){if(!(this instanceof C))return new C(a,m);var H=this;j(H),H.q=H.c="",H.bufferCheckPosition=S.MAX_BUFFER_LENGTH,H.opt=m||{},H.opt.lowercase=H.opt.lowercase||H.opt.lowercasetags,H.looseCase=H.opt.lowercase?"toLowerCase":"toUpperCase",H.tags=[],H.closed=H.closedRoot=H.sawRoot=!1,H.tag=H.error=null,H.strict=!!a,H.noscript=!!(a||H.opt.noscript),H.state=M.BEGIN,H.strictEntities=H.opt.strictEntities,H.ENTITIES=H.strictEntities?(0,h.default)(S.XML_ENTITIES):(0,h.default)(S.ENTITIES),H.attribList=[],H.opt.xmlns&&(H.ns=(0,h.default)($)),H.trackPosition=H.opt.position!==!1,H.trackPosition&&(H.position=H.line=H.column=0),ae(H,"onready")}h.default||(Object.create=function(a){function m(){}m.prototype=a;var H=new m;return H}),s.default||(Object.keys=function(a){var m=[];for(var H in a)a.hasOwnProperty(H)&&m.push(H);return m});function T(a){for(var m=Math.max(S.MAX_BUFFER_LENGTH,10),H=0,W=0,Q=w.length;W<Q;W++){var pe=a[w[W]].length;if(pe>m)switch(w[W]){case"textNode":me(a);break;case"cdata":ne(a,"oncdata",a.cdata),a.cdata="";break;case"script":ne(a,"onscript",a.script),a.script="";break;default:K(a,"Max buffer length exceeded: "+w[W])}H=Math.max(H,pe)}var ye=S.MAX_BUFFER_LENGTH-H;a.bufferCheckPosition=ye+a.position}function j(a){for(var m=0,H=w.length;m<H;m++)a[w[m]]=""}function E(a){me(a),a.cdata!==""&&(ne(a,"oncdata",a.cdata),a.cdata=""),a.script!==""&&(ne(a,"onscript",a.script),a.script="")}C.prototype={end:function(){Ne(this)},write:x,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var O;try{O=e("stream").Stream}catch(a){O=function(){}}var _=S.EVENTS.filter(function(a){return a!=="error"&&a!=="end"});function p(a,m){return new P(a,m)}function P(a,m){if(!(this instanceof P))return new P(a,m);O.apply(this),this._parser=new C(a,m),this.writable=!0,this.readable=!0;var H=this;this._parser.onend=function(){H.emit("end")},this._parser.onerror=function(W){H.emit("error",W),H._parser.error=null},this._decoder=null,_.forEach(function(W){(0,o.default)(H,"on"+W,{get:function(){return H._parser["on"+W]},set:function(pe){if(!pe)return H.removeAllListeners(W),H._parser["on"+W]=pe,pe;H.on(W,pe)},enumerable:!0,configurable:!1})})}P.prototype=(0,h.default)(O.prototype,{constructor:{value:P}}),P.prototype.write=function(a){if(typeof u=="function"&&typeof u.isBuffer=="function"&&u.isBuffer(a)){if(!this._decoder){var m=e("string_decoder").StringDecoder;this._decoder=new m("utf8")}a=this._decoder.write(a)}return this._parser.write(a.toString()),this.emit("data",a),!0},P.prototype.end=function(a){return a&&a.length&&this.write(a),this._parser.end(),!0},P.prototype.on=function(a,m){var H=this;return!H._parser["on"+a]&&_.indexOf(a)!==-1&&(H._parser["on"+a]=function(){var W=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,a),H.emit.apply(H,W)}),O.prototype.on.call(H,a,m)};var N="[CDATA[",R="DOCTYPE",A="http://www.w3.org/XML/1998/namespace",L="http://www.w3.org/2000/xmlns/",$={xml:A,xmlns:L},V=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,I=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,te=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function G(a){return a===" "||a===`
`||a==="\r"||a===" "}function D(a){return a==='"'||a==="'"}function F(a){return a===">"||G(a)}function z(a,m){return a.test(m)}function q(a,m){return!z(a,m)}var M=0;S.STATE={BEGIN:M++,BEGIN_WHITESPACE:M++,TEXT:M++,TEXT_ENTITY:M++,OPEN_WAKA:M++,SGML_DECL:M++,SGML_DECL_QUOTED:M++,DOCTYPE:M++,DOCTYPE_QUOTED:M++,DOCTYPE_DTD:M++,DOCTYPE_DTD_QUOTED:M++,COMMENT_STARTING:M++,COMMENT:M++,COMMENT_ENDING:M++,COMMENT_ENDED:M++,CDATA:M++,CDATA_ENDING:M++,CDATA_ENDING_2:M++,PROC_INST:M++,PROC_INST_BODY:M++,PROC_INST_ENDING:M++,OPEN_TAG:M++,OPEN_TAG_SLASH:M++,ATTRIB:M++,ATTRIB_NAME:M++,ATTRIB_NAME_SAW_WHITE:M++,ATTRIB_VALUE:M++,ATTRIB_VALUE_QUOTED:M++,ATTRIB_VALUE_CLOSED:M++,ATTRIB_VALUE_UNQUOTED:M++,ATTRIB_VALUE_ENTITY_Q:M++,ATTRIB_VALUE_ENTITY_U:M++,CLOSE_TAG:M++,CLOSE_TAG_SAW_WHITE:M++,SCRIPT:M++,SCRIPT_ENDING:M++},S.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},S.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,s.default)(S.ENTITIES).forEach(function(a){var m=S.ENTITIES[a],H=typeof m=="number"?String.fromCharCode(m):m;S.ENTITIES[a]=H});for(var J in S.STATE)S.STATE[S.STATE[J]]=J;M=S.STATE;function ae(a,m,H){a[m]&&a[m](H)}function ne(a,m,H){a.textNode&&me(a),ae(a,m,H)}function me(a){a.textNode=be(a.opt,a.textNode),a.textNode&&ae(a,"ontext",a.textNode),a.textNode=""}function be(a,m){return a.trim&&(m=m.trim()),a.normalize&&(m=m.replace(/\s+/g," ")),m}function K(a,m){return me(a),a.trackPosition&&(m+=`
Line: `+a.line+`
Column: `+a.column+`
Char: `+a.c),m=new Error(m),a.error=m,ae(a,"onerror",m),a}function Ne(a){return a.sawRoot&&!a.closedRoot&&ue(a,"Unclosed root tag"),a.state!==M.BEGIN&&a.state!==M.BEGIN_WHITESPACE&&a.state!==M.TEXT&&K(a,"Unexpected end"),me(a),a.c="",a.closed=!0,ae(a,"onend"),C.call(a,a.strict,a.opt),a}function ue(a,m){if((typeof a=="undefined"?"undefined":(0,n.default)(a))!=="object"||!(a instanceof C))throw new Error("bad call to strictFail");a.strict&&K(a,m)}function ee(a){a.strict||(a.tagName=a.tagName[a.looseCase]());var m=a.tags[a.tags.length-1]||a,H=a.tag={name:a.tagName,attributes:{}};a.opt.xmlns&&(H.ns=m.ns),a.attribList.length=0,ne(a,"onopentagstart",H)}function Z(a,m){var H=a.indexOf(":"),W=H<0?["",a]:a.split(":"),Q=W[0],pe=W[1];return m&&a==="xmlns"&&(Q="xmlns",pe=""),{prefix:Q,local:pe}}function re(a){if(a.strict||(a.attribName=a.attribName[a.looseCase]()),a.attribList.indexOf(a.attribName)!==-1||a.tag.attributes.hasOwnProperty(a.attribName)){a.attribName=a.attribValue="";return}if(a.opt.xmlns){var m=Z(a.attribName,!0),H=m.prefix,W=m.local;if(H==="xmlns")if(W==="xml"&&a.attribValue!==A)ue(a,"xml: prefix must be bound to "+A+`
Actual: `+a.attribValue);else if(W==="xmlns"&&a.attribValue!==L)ue(a,"xmlns: prefix must be bound to "+L+`
Actual: `+a.attribValue);else{var Q=a.tag,pe=a.tags[a.tags.length-1]||a;Q.ns===pe.ns&&(Q.ns=(0,h.default)(pe.ns)),Q.ns[W]=a.attribValue}a.attribList.push([a.attribName,a.attribValue])}else a.tag.attributes[a.attribName]=a.attribValue,ne(a,"onattribute",{name:a.attribName,value:a.attribValue});a.attribName=a.attribValue=""}function ce(a,m){if(a.opt.xmlns){var H=a.tag,W=Z(a.tagName);H.prefix=W.prefix,H.local=W.local,H.uri=H.ns[W.prefix]||"",H.prefix&&!H.uri&&(ue(a,"Unbound namespace prefix: "+(0,f.default)(a.tagName)),H.uri=W.prefix);var Q=a.tags[a.tags.length-1]||a;H.ns&&Q.ns!==H.ns&&(0,s.default)(H.ns).forEach(function(Le){ne(a,"onopennamespace",{prefix:Le,uri:H.ns[Le]})});for(var pe=0,ye=a.attribList.length;pe<ye;pe++){var we=a.attribList[pe],Re=we[0],Oe=we[1],_e=Z(Re,!0),de=_e.prefix,le=_e.local,xe=de===""?"":H.ns[de]||"",je={name:Re,value:Oe,prefix:de,local:le,uri:xe};de&&de!=="xmlns"&&!xe&&(ue(a,"Unbound namespace prefix: "+(0,f.default)(de)),je.uri=de),a.tag.attributes[Re]=je,ne(a,"onattribute",je)}a.attribList.length=0}a.tag.isSelfClosing=!!m,a.sawRoot=!0,a.tags.push(a.tag),ne(a,"onopentag",a.tag),m||(!a.noscript&&a.tagName.toLowerCase()==="script"?a.state=M.SCRIPT:a.state=M.TEXT,a.tag=null,a.tagName=""),a.attribName=a.attribValue="",a.attribList.length=0}function U(a){if(!a.tagName){ue(a,"Weird empty close tag."),a.textNode+="</>",a.state=M.TEXT;return}if(a.script){if(a.tagName!=="script"){a.script+="</"+a.tagName+">",a.tagName="",a.state=M.SCRIPT;return}ne(a,"onscript",a.script),a.script=""}var m=a.tags.length,H=a.tagName;a.strict||(H=H[a.looseCase]());for(var W=H;m--;){var Q=a.tags[m];if(Q.name!==W)ue(a,"Unexpected close tag");else break}if(m<0){ue(a,"Unmatched closing tag: "+a.tagName),a.textNode+="</"+a.tagName+">",a.state=M.TEXT;return}a.tagName=H;for(var pe=a.tags.length;pe-- >m;){var ye=a.tag=a.tags.pop();a.tagName=a.tag.name,ne(a,"onclosetag",a.tagName);var we={};for(var Re in ye.ns)we[Re]=ye.ns[Re];var Oe=a.tags[a.tags.length-1]||a;a.opt.xmlns&&ye.ns!==Oe.ns&&(0,s.default)(ye.ns).forEach(function(_e){var de=ye.ns[_e];ne(a,"onclosenamespace",{prefix:_e,uri:de})})}m===0&&(a.closedRoot=!0),a.tagName=a.attribValue=a.attribName="",a.attribList.length=0,a.state=M.TEXT}function B(a){var m=a.entity,H=m.toLowerCase(),W,Q="";return a.ENTITIES[m]?a.ENTITIES[m]:a.ENTITIES[H]?a.ENTITIES[H]:(m=H,m.charAt(0)==="#"&&(m.charAt(1)==="x"?(m=m.slice(2),W=parseInt(m,16),Q=W.toString(16)):(m=m.slice(1),W=parseInt(m,10),Q=W.toString(10))),m=m.replace(/^0+/,""),isNaN(W)||Q.toLowerCase()!==m?(ue(a,"Invalid character entity"),"&"+a.entity+";"):(0,v.default)(W))}function oe(a,m){m==="<"?(a.state=M.OPEN_WAKA,a.startTagPosition=a.position):G(m)||(ue(a,"Non-whitespace before first tag."),a.textNode=m,a.state=M.TEXT)}function k(a,m){var H="";return m<a.length&&(H=a.charAt(m)),H}function x(a){var m=this;if(this.error)throw this.error;if(m.closed)return K(m,"Cannot write after close. Assign an onready handler.");if(a===null)return Ne(m);(typeof a=="undefined"?"undefined":(0,n.default)(a))==="object"&&(a=a.toString());for(var H=0,W="";!(W=k(a,H++),m.c=W,!W);){m.trackPosition&&(m.position++,W===`
`?(m.line++,m.column=0):m.column++);switch(m.state){case M.BEGIN:if(m.state=M.BEGIN_WHITESPACE,W==="\uFEFF")continue;oe(m,W);continue;case M.BEGIN_WHITESPACE:oe(m,W);continue;case M.TEXT:if(m.sawRoot&&!m.closedRoot){for(var Q=H-1;W&&W!=="<"&&W!=="&";)W=k(a,H++),W&&m.trackPosition&&(m.position++,W===`
`?(m.line++,m.column=0):m.column++);m.textNode+=a.substring(Q,H-1)}W==="<"&&!(m.sawRoot&&m.closedRoot&&!m.strict)?(m.state=M.OPEN_WAKA,m.startTagPosition=m.position):(!G(W)&&(!m.sawRoot||m.closedRoot)&&ue(m,"Text data outside of root node."),W==="&"?m.state=M.TEXT_ENTITY:m.textNode+=W);continue;case M.SCRIPT:W==="<"?m.state=M.SCRIPT_ENDING:m.script+=W;continue;case M.SCRIPT_ENDING:W==="/"?m.state=M.CLOSE_TAG:(m.script+="<"+W,m.state=M.SCRIPT);continue;case M.OPEN_WAKA:if(W==="!")m.state=M.SGML_DECL,m.sgmlDecl="";else if(!G(W))if(z(V,W))m.state=M.OPEN_TAG,m.tagName=W;else if(W==="/")m.state=M.CLOSE_TAG,m.tagName="";else if(W==="?")m.state=M.PROC_INST,m.procInstName=m.procInstBody="";else{if(ue(m,"Unencoded <"),m.startTagPosition+1<m.position){var pe=m.position-m.startTagPosition;W=new Array(pe).join(" ")+W}m.textNode+="<"+W,m.state=M.TEXT}continue;case M.SGML_DECL:(m.sgmlDecl+W).toUpperCase()===N?(ne(m,"onopencdata"),m.state=M.CDATA,m.sgmlDecl="",m.cdata=""):m.sgmlDecl+W==="--"?(m.state=M.COMMENT,m.comment="",m.sgmlDecl=""):(m.sgmlDecl+W).toUpperCase()===R?(m.state=M.DOCTYPE,(m.doctype||m.sawRoot)&&ue(m,"Inappropriately located doctype declaration"),m.doctype="",m.sgmlDecl=""):W===">"?(ne(m,"onsgmldeclaration",m.sgmlDecl),m.sgmlDecl="",m.state=M.TEXT):(D(W)&&(m.state=M.SGML_DECL_QUOTED),m.sgmlDecl+=W);continue;case M.SGML_DECL_QUOTED:W===m.q&&(m.state=M.SGML_DECL,m.q=""),m.sgmlDecl+=W;continue;case M.DOCTYPE:W===">"?(m.state=M.TEXT,ne(m,"ondoctype",m.doctype),m.doctype=!0):(m.doctype+=W,W==="["?m.state=M.DOCTYPE_DTD:D(W)&&(m.state=M.DOCTYPE_QUOTED,m.q=W));continue;case M.DOCTYPE_QUOTED:m.doctype+=W,W===m.q&&(m.q="",m.state=M.DOCTYPE);continue;case M.DOCTYPE_DTD:m.doctype+=W,W==="]"?m.state=M.DOCTYPE:D(W)&&(m.state=M.DOCTYPE_DTD_QUOTED,m.q=W);continue;case M.DOCTYPE_DTD_QUOTED:m.doctype+=W,W===m.q&&(m.state=M.DOCTYPE_DTD,m.q="");continue;case M.COMMENT:W==="-"?m.state=M.COMMENT_ENDING:m.comment+=W;continue;case M.COMMENT_ENDING:W==="-"?(m.state=M.COMMENT_ENDED,m.comment=be(m.opt,m.comment),m.comment&&ne(m,"oncomment",m.comment),m.comment=""):(m.comment+="-"+W,m.state=M.COMMENT);continue;case M.COMMENT_ENDED:W!==">"?(ue(m,"Malformed comment"),m.comment+="--"+W,m.state=M.COMMENT):m.state=M.TEXT;continue;case M.CDATA:W==="]"?m.state=M.CDATA_ENDING:m.cdata+=W;continue;case M.CDATA_ENDING:W==="]"?m.state=M.CDATA_ENDING_2:(m.cdata+="]"+W,m.state=M.CDATA);continue;case M.CDATA_ENDING_2:W===">"?(m.cdata&&ne(m,"oncdata",m.cdata),ne(m,"onclosecdata"),m.cdata="",m.state=M.TEXT):W==="]"?m.cdata+="]":(m.cdata+="]]"+W,m.state=M.CDATA);continue;case M.PROC_INST:W==="?"?m.state=M.PROC_INST_ENDING:G(W)?m.state=M.PROC_INST_BODY:m.procInstName+=W;continue;case M.PROC_INST_BODY:if(!m.procInstBody&&G(W))continue;W==="?"?m.state=M.PROC_INST_ENDING:m.procInstBody+=W;continue;case M.PROC_INST_ENDING:W===">"?(ne(m,"onprocessinginstruction",{name:m.procInstName,body:m.procInstBody}),m.procInstName=m.procInstBody="",m.state=M.TEXT):(m.procInstBody+="?"+W,m.state=M.PROC_INST_BODY);continue;case M.OPEN_TAG:z(Y,W)?m.tagName+=W:(ee(m),W===">"?ce(m):W==="/"?m.state=M.OPEN_TAG_SLASH:(G(W)||ue(m,"Invalid character in tag name"),m.state=M.ATTRIB));continue;case M.OPEN_TAG_SLASH:W===">"?(ce(m,!0),U(m)):(ue(m,"Forward-slash in opening tag not followed by >"),m.state=M.ATTRIB);continue;case M.ATTRIB:if(G(W))continue;W===">"?ce(m):W==="/"?m.state=M.OPEN_TAG_SLASH:z(V,W)?(m.attribName=W,m.attribValue="",m.state=M.ATTRIB_NAME):ue(m,"Invalid attribute name");continue;case M.ATTRIB_NAME:W==="="?m.state=M.ATTRIB_VALUE:W===">"?(ue(m,"Attribute without value"),m.attribValue=m.attribName,re(m),ce(m)):G(W)?m.state=M.ATTRIB_NAME_SAW_WHITE:z(Y,W)?m.attribName+=W:ue(m,"Invalid attribute name");continue;case M.ATTRIB_NAME_SAW_WHITE:if(W==="=")m.state=M.ATTRIB_VALUE;else{if(G(W))continue;ue(m,"Attribute without value"),m.tag.attributes[m.attribName]="",m.attribValue="",ne(m,"onattribute",{name:m.attribName,value:""}),m.attribName="",W===">"?ce(m):z(V,W)?(m.attribName=W,m.state=M.ATTRIB_NAME):(ue(m,"Invalid attribute name"),m.state=M.ATTRIB)}continue;case M.ATTRIB_VALUE:if(G(W))continue;D(W)?(m.q=W,m.state=M.ATTRIB_VALUE_QUOTED):(ue(m,"Unquoted attribute value"),m.state=M.ATTRIB_VALUE_UNQUOTED,m.attribValue=W);continue;case M.ATTRIB_VALUE_QUOTED:if(W!==m.q){W==="&"?m.state=M.ATTRIB_VALUE_ENTITY_Q:m.attribValue+=W;continue}re(m),m.q="",m.state=M.ATTRIB_VALUE_CLOSED;continue;case M.ATTRIB_VALUE_CLOSED:G(W)?m.state=M.ATTRIB:W===">"?ce(m):W==="/"?m.state=M.OPEN_TAG_SLASH:z(V,W)?(ue(m,"No whitespace between attributes"),m.attribName=W,m.attribValue="",m.state=M.ATTRIB_NAME):ue(m,"Invalid attribute name");continue;case M.ATTRIB_VALUE_UNQUOTED:if(!F(W)){W==="&"?m.state=M.ATTRIB_VALUE_ENTITY_U:m.attribValue+=W;continue}re(m),W===">"?ce(m):m.state=M.ATTRIB;continue;case M.CLOSE_TAG:if(m.tagName)W===">"?U(m):z(Y,W)?m.tagName+=W:m.script?(m.script+="</"+m.tagName,m.tagName="",m.state=M.SCRIPT):(G(W)||ue(m,"Invalid tagname in closing tag"),m.state=M.CLOSE_TAG_SAW_WHITE);else{if(G(W))continue;q(V,W)?m.script?(m.script+="</"+W,m.state=M.SCRIPT):ue(m,"Invalid tagname in closing tag."):m.tagName=W}continue;case M.CLOSE_TAG_SAW_WHITE:if(G(W))continue;W===">"?U(m):ue(m,"Invalid characters in closing tag");continue;case M.TEXT_ENTITY:case M.ATTRIB_VALUE_ENTITY_Q:case M.ATTRIB_VALUE_ENTITY_U:var ye,we;switch(m.state){case M.TEXT_ENTITY:ye=M.TEXT,we="textNode";break;case M.ATTRIB_VALUE_ENTITY_Q:ye=M.ATTRIB_VALUE_QUOTED,we="attribValue";break;case M.ATTRIB_VALUE_ENTITY_U:ye=M.ATTRIB_VALUE_UNQUOTED,we="attribValue";break}W===";"?(m[we]+=B(m),m.entity="",m.state=ye):z(m.entity.length?te:I,W)?m.entity+=W:(ue(m,"Invalid character in entity name"),m[we]+="&"+m.entity+W,m.entity="",m.state=ye);continue;default:throw new Error(m,"Unknown state: "+m.state)}}return m.position>=m.bufferCheckPosition&&T(m),m}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */v.default||function(){var a=String.fromCharCode,m=Math.floor,H=function(){var Q=16384,pe=[],ye,we,Re=-1,Oe=arguments.length;if(!Oe)return"";for(var _e="";++Re<Oe;){var de=Number(arguments[Re]);if(!isFinite(de)||de<0||de>1114111||m(de)!==de)throw RangeError("Invalid code point: "+de);de<=65535?pe.push(de):(de-=65536,ye=(de>>10)+55296,we=de%1024+56320,pe.push(ye,we)),(Re+1===Oe||pe.length>Q)&&(_e+=a.apply(null,pe),pe.length=0)}return _e};o.default?Object.defineProperty(String,"fromCodePoint",{value:H,configurable:!0,writable:!0}):String.fromCodePoint=H}()})(typeof i=="undefined"?(void 0).sax={}:i)}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(e,y,i){y.exports=v;var u=e("events").EventEmitter,t=e("inherits");t(v,u),v.Readable=e("readable-stream/readable.js"),v.Writable=e("readable-stream/writable.js"),v.Duplex=e("readable-stream/duplex.js"),v.Transform=e("readable-stream/transform.js"),v.PassThrough=e("readable-stream/passthrough.js"),v.Stream=v;function v(){u.call(this)}v.prototype.pipe=function(d,f){var c=this;function n(g){d.writable&&(d.write(g)===!1&&c.pause&&c.pause())}c.on("data",n);function l(){c.readable&&c.resume&&c.resume()}d.on("drain",l),!d._isStdio&&(!f||f.end!==!1)&&(c.on("end",r),c.on("close",s));var o=!1;function r(){if(o)return;o=!0,d.end()}function s(){if(o)return;o=!0,typeof d.destroy=="function"&&d.destroy()}function b(g){if(h(),u.listenerCount(this,"error")===0)throw g}c.on("error",b),d.on("error",b);function h(){c.removeListener("data",n),d.removeListener("drain",l),c.removeListener("end",r),c.removeListener("close",s),c.removeListener("error",b),d.removeListener("error",b),c.removeListener("end",h),c.removeListener("close",h),d.removeListener("close",h)}return c.on("end",h),c.on("close",h),d.on("close",h),d.emit("pipe",c),d}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(e,y,i){(function(u){var t=e("./lib/request"),v=e("./lib/response"),d=e("xtend"),f=e("builtin-status-codes"),c=e("url"),n=i;n.request=function(l,o){typeof l=="string"?l=c.parse(l):l=d(l);var r=u.location.protocol.search(/^https?:$/)===-1?"http:":"",s=l.protocol||r,b=l.hostname||l.host,h=l.port,g=l.path||"/";b&&b.indexOf(":")!==-1&&(b="["+b+"]"),l.url=(b?s+"//"+b:"")+(h?":"+h:"")+g,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var S=new t(l);return o&&S.on("response",o),S},n.get=function(o,r){var s=n.request(o,r);return s.end(),s},n.ClientRequest=t,n.IncomingMessage=v.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=f,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(e,y,i){(function(u){"use strict";i.fetch=n(u.fetch)&&n(u.ReadableStream),i.writableStream=n(u.WritableStream),i.abortController=n(u.AbortController),i.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),i.blobConstructor=!0}catch(l){}var t;function v(){if(t!==void 0)return t;if(u.XMLHttpRequest){t=new u.XMLHttpRequest;try{t.open("GET",u.XDomainRequest?"/":"https://example.com")}catch(l){t=null}}else t=null;return t}function d(l){var o=v();if(!o)return!1;try{return o.responseType=l,o.responseType===l}catch(r){}return!1}var f=typeof u.ArrayBuffer!="undefined",c=f&&n(u.ArrayBuffer.prototype.slice);i.arraybuffer=i.fetch||f&&d("arraybuffer"),i.msstream=!i.fetch&&c&&d("ms-stream"),i.mozchunkedarraybuffer=!i.fetch&&f&&d("moz-chunked-arraybuffer"),i.overrideMimeType=i.fetch||(v()?n(v().overrideMimeType):!1),i.vbArray=n(u.VBArray);function n(l){return typeof l=="function"}t=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(e,y,i){(function(u,t,v){"use strict";var d=e("babel-runtime/core-js/object/keys"),f=c(d);function c(T){return T&&T.__esModule?T:{default:T}}var n=e("./capability"),l=e("inherits"),o=e("./response"),r=e("readable-stream"),s=e("to-arraybuffer"),b=o.IncomingMessage,h=o.readyStates;function g(T,j){return n.fetch&&j?"fetch":n.mozchunkedarraybuffer?"moz-chunked-arraybuffer":n.msstream?"ms-stream":n.arraybuffer&&T?"arraybuffer":n.vbArray&&T?"text:vbarray":"text"}var S=y.exports=function(T){var j=this;r.Writable.call(j),j._opts=T,j._body=[],j._headers={},T.auth&&j.setHeader("Authorization","Basic "+new v(T.auth).toString("base64")),(0,f.default)(T.headers).forEach(function(_){j.setHeader(_,T.headers[_])});var E,O=!0;if(T.mode==="disable-fetch"||"requestTimeout"in T&&!n.abortController)O=!1,E=!0;else if(T.mode==="prefer-streaming")E=!1;else if(T.mode==="allow-wrong-content-type")E=!n.overrideMimeType;else if(!T.mode||T.mode==="default"||T.mode==="prefer-fast")E=!0;else throw new Error("Invalid value for opts.mode");j._mode=g(E,O),j._fetchTimer=null,j.on("finish",function(){j._onFinish()})};l(S,r.Writable),S.prototype.setHeader=function(T,j){var E=this,O=T.toLowerCase();if(C.indexOf(O)!==-1)return;E._headers[O]={name:T,value:j}},S.prototype.getHeader=function(T){var j=this._headers[T.toLowerCase()];return j?j.value:null},S.prototype.removeHeader=function(T){var j=this;delete j._headers[T.toLowerCase()]},S.prototype._onFinish=function(){var T=this;if(T._destroyed)return;var j=T._opts,E=T._headers,O=null;j.method!=="GET"&&j.method!=="HEAD"&&(n.arraybuffer?O=s(v.concat(T._body)):n.blobConstructor?O=new t.Blob(T._body.map(function(A){return s(A)}),{type:(E["content-type"]||{}).value||""}):O=v.concat(T._body).toString());var _=[];if((0,f.default)(E).forEach(function(A){var L=E[A].name,$=E[A].value;Array.isArray($)?$.forEach(function(V){_.push([L,V])}):_.push([L,$])}),T._mode==="fetch"){var p=null,P=null;if(n.abortController){var N=new AbortController;p=N.signal,T._fetchAbortController=N,"requestTimeout"in j&&j.requestTimeout!==0&&(T._fetchTimer=t.setTimeout(function(){T.emit("requestTimeout"),T._fetchAbortController&&T._fetchAbortController.abort()},j.requestTimeout))}t.fetch(T._opts.url,{method:T._opts.method,headers:_,body:O||void 0,mode:"cors",credentials:j.withCredentials?"include":"same-origin",signal:p}).then(function(A){T._fetchResponse=A,T._connect()},function(A){t.clearTimeout(T._fetchTimer),T._destroyed||T.emit("error",A)})}else{var R=T._xhr=new t.XMLHttpRequest;try{R.open(T._opts.method,T._opts.url,!0)}catch(A){u.nextTick(function(){T.emit("error",A)});return}"responseType"in R&&(R.responseType=T._mode.split(":")[0]),"withCredentials"in R&&(R.withCredentials=!!j.withCredentials),T._mode==="text"&&"overrideMimeType"in R&&R.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in j&&(R.timeout=j.requestTimeout,R.ontimeout=function(){T.emit("requestTimeout")}),_.forEach(function(A){R.setRequestHeader(A[0],A[1])}),T._response=null,R.onreadystatechange=function(){switch(R.readyState){case h.LOADING:case h.DONE:T._onXHRProgress();break}},T._mode==="moz-chunked-arraybuffer"&&(R.onprogress=function(){T._onXHRProgress()}),R.onerror=function(){if(T._destroyed)return;T.emit("error",new Error("XHR error"))};try{R.send(O)}catch(A){u.nextTick(function(){T.emit("error",A)});return}}};function w(T){try{var j=T.status;return j!==null&&j!==0}catch(E){return!1}}S.prototype._onXHRProgress=function(){var T=this;if(!w(T._xhr)||T._destroyed)return;T._response||T._connect(),T._response._onXHRProgress()},S.prototype._connect=function(){var T=this;if(T._destroyed)return;T._response=new b(T._xhr,T._fetchResponse,T._mode,T._fetchTimer),T._response.on("error",function(j){T.emit("error",j)}),T.emit("response",T._response)},S.prototype._write=function(T,j,E){var O=this;O._body.push(T),E()},S.prototype.abort=S.prototype.destroy=function(){var T=this;T._destroyed=!0,t.clearTimeout(T._fetchTimer),T._response&&(T._response._destroyed=!0),T._xhr?T._xhr.abort():T._fetchAbortController&&T._fetchAbortController.abort()},S.prototype.end=function(T,j,E){var O=this;typeof T=="function"&&(E=T,T=void 0),r.Writable.prototype.end.call(O,T,j,E)},S.prototype.flushHeaders=function(){},S.prototype.setTimeout=function(){},S.prototype.setNoDelay=function(){},S.prototype.setSocketKeepAlive=function(){};var C=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(e,y,i){(function(u,t,v){"use strict";var d=e("babel-runtime/core-js/promise"),f=c(d);function c(b){return b&&b.__esModule?b:{default:b}}var n=e("./capability"),l=e("inherits"),o=e("readable-stream"),r=i.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s=i.IncomingMessage=function(b,h,g,S){var w=this;if(o.Readable.call(w),w._mode=g,w.headers={},w.rawHeaders=[],w.trailers={},w.rawTrailers=[],w.on("end",function(){u.nextTick(function(){w.emit("close")})}),g==="fetch"){var C=function p(){j.read().then(function(P){if(w._destroyed)return;if(P.done){t.clearTimeout(S),w.push(null);return}w.push(new v(P.value)),p()}).catch(function(P){t.clearTimeout(S),w._destroyed||w.emit("error",P)})};if(w._fetchResponse=h,w.url=h.url,w.statusCode=h.status,w.statusMessage=h.statusText,h.headers.forEach(function(p,P){w.headers[P.toLowerCase()]=p,w.rawHeaders.push(P,p)}),n.writableStream){var T=new WritableStream({write:function(P){return new f.default(function(N,R){w._destroyed?R():w.push(new v(P))?N():w._resumeFetch=N})},close:function(){t.clearTimeout(S),w._destroyed||w.push(null)},abort:function(P){w._destroyed||w.emit("error",P)}});try{h.body.pipeTo(T).catch(function(p){t.clearTimeout(S),w._destroyed||w.emit("error",p)});return}catch(p){}}var j=h.body.getReader();C()}else{w._xhr=b,w._pos=0,w.url=b.responseURL,w.statusCode=b.status,w.statusMessage=b.statusText;var E=b.getAllResponseHeaders().split(/\r?\n/);if(E.forEach(function(p){var P=p.match(/^([^:]+):\s*(.*)/);if(P){var N=P[1].toLowerCase();N==="set-cookie"?(w.headers[N]===void 0&&(w.headers[N]=[]),w.headers[N].push(P[2])):w.headers[N]!==void 0?w.headers[N]+=", "+P[2]:w.headers[N]=P[2],w.rawHeaders.push(P[1],P[2])}}),w._charset="x-user-defined",!n.overrideMimeType){var O=w.rawHeaders["mime-type"];if(O){var _=O.match(/;\s*charset=([^;])(;|$)/);_&&(w._charset=_[1].toLowerCase())}w._charset||(w._charset="utf-8")}}};l(s,o.Readable),s.prototype._read=function(){var b=this,h=b._resumeFetch;h&&(b._resumeFetch=null,h())},s.prototype._onXHRProgress=function(){var b=this,h=b._xhr,g=null;switch(b._mode){case"text:vbarray":if(h.readyState!==r.DONE)break;try{g=new t.VBArray(h.responseBody).toArray()}catch(j){}if(g!==null){b.push(new v(g));break}case"text":try{g=h.responseText}catch(j){b._mode="text:vbarray";break}if(g.length>b._pos){var S=g.substr(b._pos);if(b._charset==="x-user-defined"){for(var w=new v(S.length),C=0;C<S.length;C++)w[C]=S.charCodeAt(C)&255;b.push(w)}else b.push(S,b._charset);b._pos=g.length}break;case"arraybuffer":if(h.readyState!==r.DONE||!h.response)break;g=h.response,b.push(new v(new Uint8Array(g)));break;case"moz-chunked-arraybuffer":if(g=h.response,h.readyState!==r.LOADING||!g)break;b.push(new v(new Uint8Array(g)));break;case"ms-stream":if(g=h.response,h.readyState!==r.LOADING)break;var T=new t.MSStreamReader;T.onprogress=function(){T.result.byteLength>b._pos&&(b.push(new v(new Uint8Array(T.result.slice(b._pos)))),b._pos=T.result.byteLength)},T.onload=function(){b.push(null)},T.readAsArrayBuffer(g);break}b._xhr.readyState===r.DONE&&b._mode!=="ms-stream"&&b.push(null)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(e,y,i){"use strict";var u=e("safe-buffer").Buffer,t=u.isEncoding||function(T){T=""+T;switch(T&&T.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function v(T){if(!T)return"utf8";for(var j;;)switch(T){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return T;default:if(j)return;T=(""+T).toLowerCase(),j=!0}}function d(T){var j=v(T);if(typeof j!="string"&&(u.isEncoding===t||!t(T)))throw new Error("Unknown encoding: "+T);return j||T}i.StringDecoder=f;function f(T){this.encoding=d(T);var j;switch(this.encoding){case"utf16le":this.text=b,this.end=h,j=4;break;case"utf8":this.fillLast=o,j=4;break;case"base64":this.text=g,this.end=S,j=3;break;default:this.write=w,this.end=C;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=u.allocUnsafe(j)}f.prototype.write=function(T){if(T.length===0)return"";var j,E;if(this.lastNeed){if(j=this.fillLast(T),j===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E<T.length?j?j+this.text(T,E):this.text(T,E):j||""},f.prototype.end=s,f.prototype.text=r,f.prototype.fillLast=function(T){if(this.lastNeed<=T.length)return T.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);T.copy(this.lastChar,this.lastTotal-this.lastNeed,0,T.length),this.lastNeed-=T.length};function c(T){return T<=127?0:T>>5===6?2:T>>4===14?3:T>>3===30?4:T>>6===2?-1:-2}function n(T,j,E){var O=j.length-1;if(O<E)return 0;var _=c(j[O]);return _>=0?(_>0&&(T.lastNeed=_-1),_):--O<E||_===-2?0:(_=c(j[O]),_>=0?(_>0&&(T.lastNeed=_-2),_):--O<E||_===-2?0:(_=c(j[O]),_>=0?(_>0&&(_===2?_=0:T.lastNeed=_-3),_):0))}function l(T,j,E){if((j[0]&192)!==128)return T.lastNeed=0,"\uFFFD";if(T.lastNeed>1&&j.length>1){if((j[1]&192)!==128)return T.lastNeed=1,"\uFFFD";if(T.lastNeed>2&&j.length>2&&(j[2]&192)!==128)return T.lastNeed=2,"\uFFFD"}}function o(T){var j=this.lastTotal-this.lastNeed,E=l(this,T,j);if(E!==void 0)return E;if(this.lastNeed<=T.length)return T.copy(this.lastChar,j,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);T.copy(this.lastChar,j,0,T.length),this.lastNeed-=T.length}function r(T,j){var E=n(this,T,j);if(!this.lastNeed)return T.toString("utf8",j);this.lastTotal=E;var O=T.length-(E-this.lastNeed);return T.copy(this.lastChar,0,O),T.toString("utf8",j,O)}function s(T){var j=T&&T.length?this.write(T):"";return this.lastNeed?j+"\uFFFD":j}function b(T,j){if((T.length-j)%2===0){var E=T.toString("utf16le",j);if(E){var O=E.charCodeAt(E.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=T[T.length-1],T.toString("utf16le",j,T.length-1)}function h(T){var j=T&&T.length?this.write(T):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return j+this.lastChar.toString("utf16le",0,E)}return j}function g(T,j){var E=(T.length-j)%3;return E===0?T.toString("base64",j):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=T[T.length-1]:(this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1]),T.toString("base64",j,T.length-E))}function S(T){var j=T&&T.length?this.write(T):"";return this.lastNeed?j+this.lastChar.toString("base64",0,3-this.lastNeed):j}function w(T){return T.toString(this.encoding)}function C(T){return T&&T.length?this.write(T):""}},{"safe-buffer":228}],236:[function(e,y,i){(function(u,t){var v=e("process/browser.js").nextTick,d=Function.prototype.apply,f=Array.prototype.slice,c={},n=0;i.setTimeout=function(){return new l(d.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new l(d.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(o){o.close()};function l(o,r){this._id=o,this._clearFn=r}l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(o,r){clearTimeout(o._idleTimeoutId),o._idleTimeout=r},i.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},i._unrefActive=i.active=function(o){clearTimeout(o._idleTimeoutId);var r=o._idleTimeout;r>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},r))},i.setImmediate=typeof u=="function"?u:function(o){var r=n++,s=arguments.length<2?!1:f.call(arguments,1);return c[r]=!0,v(function(){c[r]&&(s?o.apply(null,s):o.call(null),i.clearImmediate(r))}),r},i.clearImmediate=typeof t=="function"?t:function(o){delete c[o]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(e,y,i){var u=e("buffer").Buffer;y.exports=function(t){if(t instanceof Uint8Array){if(t.byteOffset===0&&t.byteLength===t.buffer.byteLength)return t.buffer;if(typeof t.buffer.slice=="function")return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(u.isBuffer(t)){for(var v=new Uint8Array(t.length),d=t.length,f=0;f<d;f++)v[f]=t[f];return v.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(e,y,i){"use strict";var u=e("punycode"),t=e("./util");i.parse=j,i.resolve=O,i.resolveObject=_,i.format=E,i.Url=v;function v(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var d=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r",`
`," "],l=["{","}","|","\\","^","`"].concat(n),o=["'"].concat(l),r=["%","/","?",";","#"].concat(o),s=["/","?","#"],b=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},T=e("querystring");function j(p,P,N){if(p&&t.isObject(p)&&p instanceof v)return p;var R=new v;return R.parse(p,P,N),R}v.prototype.parse=function(p,P,N){if(!t.isString(p))throw new TypeError("Parameter 'url' must be a string, not "+typeof p);var R=p.indexOf("?"),A=R!==-1&&R<p.indexOf("#")?"?":"#",L=p.split(A),$=/\\/g;L[0]=L[0].replace($,"/"),p=L.join(A);var V=p;if(V=V.trim(),!N&&p.split("#").length===1){var Y=c.exec(V);if(Y)return this.path=V,this.href=V,this.pathname=Y[1],Y[2]?(this.search=Y[2],P?this.query=T.parse(this.search.substr(1)):this.query=this.search.substr(1)):P&&(this.search="",this.query={}),this}var I=d.exec(V);if(I){I=I[0];var te=I.toLowerCase();this.protocol=te,V=V.substr(I.length)}if(N||I||V.match(/^\/\/[^@\/]+@[^@\/]+/)){var G=V.substr(0,2)==="//";G&&!(I&&w[I])&&(V=V.substr(2),this.slashes=!0)}if(!w[I]&&(G||I&&!C[I])){for(var D=-1,F=0;F<s.length;F++){var z=V.indexOf(s[F]);z!==-1&&(D===-1||z<D)&&(D=z)}var q,M;D===-1?M=V.lastIndexOf("@"):M=V.lastIndexOf("@",D),M!==-1&&(q=V.slice(0,M),V=V.slice(M+1),this.auth=decodeURIComponent(q)),D=-1;for(var F=0;F<r.length;F++){var z=V.indexOf(r[F]);z!==-1&&(D===-1||z<D)&&(D=z)}D===-1&&(D=V.length),this.host=V.slice(0,D),V=V.slice(D),this.parseHost(),this.hostname=this.hostname||"";var J=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!J)for(var ae=this.hostname.split(/\./),F=0,ne=ae.length;F<ne;F++){var me=ae[F];if(!me)continue;if(!me.match(h)){for(var be="",K=0,Ne=me.length;K<Ne;K++)me.charCodeAt(K)>127?be+="x":be+=me[K];if(!be.match(h)){var ue=ae.slice(0,F),ee=ae.slice(F+1),Z=me.match(g);Z&&(ue.push(Z[1]),ee.unshift(Z[2])),ee.length&&(V="/"+ee.join(".")+V),this.hostname=ue.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),J||(this.hostname=u.toASCII(this.hostname));var re=this.port?":"+this.port:"",ce=this.hostname||"";this.host=ce+re,this.href+=this.host,J&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),V[0]!=="/"&&(V="/"+V))}if(!S[te])for(var F=0,ne=o.length;F<ne;F++){var U=o[F];if(V.indexOf(U)===-1)continue;var B=encodeURIComponent(U);B===U&&(B=escape(U)),V=V.split(U).join(B)}var oe=V.indexOf("#");oe!==-1&&(this.hash=V.substr(oe),V=V.slice(0,oe));var k=V.indexOf("?");if(k!==-1?(this.search=V.substr(k),this.query=V.substr(k+1),P&&(this.query=T.parse(this.query)),V=V.slice(0,k)):P&&(this.search="",this.query={}),V&&(this.pathname=V),C[te]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var re=this.pathname||"",x=this.search||"";this.path=re+x}return this.href=this.format(),this};function E(p){return t.isString(p)&&(p=j(p)),p instanceof v?p.format():v.prototype.format.call(p)}v.prototype.format=function(){var p=this.auth||"";p&&(p=encodeURIComponent(p),p=p.replace(/%3A/i,":"),p+="@");var P=this.protocol||"",N=this.pathname||"",R=this.hash||"",A=!1,L="";this.host?A=p+this.host:this.hostname&&(A=p+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(A+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(L=T.stringify(this.query));var $=this.search||L&&"?"+L||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||C[P])&&A!==!1?(A="//"+(A||""),N&&N.charAt(0)!=="/"&&(N="/"+N)):A||(A=""),R&&R.charAt(0)!=="#"&&(R="#"+R),$&&$.charAt(0)!=="?"&&($="?"+$),N=N.replace(/[?#]/g,function(V){return encodeURIComponent(V)}),$=$.replace("#","%23"),P+A+N+$+R};function O(p,P){return j(p,!1,!0).resolve(P)}v.prototype.resolve=function(p){return this.resolveObject(j(p,!1,!0)).format()};function _(p,P){return p?j(p,!1,!0).resolveObject(P):P}v.prototype.resolveObject=function(p){if(t.isString(p)){var P=new v;P.parse(p,!1,!0),p=P}for(var N=new v,R=Object.keys(this),A=0;A<R.length;A++){var L=R[A];N[L]=this[L]}if(N.hash=p.hash,p.href==="")return N.href=N.format(),N;if(p.slashes&&!p.protocol){for(var $=Object.keys(p),V=0;V<$.length;V++){var Y=$[V];Y!=="protocol"&&(N[Y]=p[Y])}return C[N.protocol]&&N.hostname&&!N.pathname&&(N.path=N.pathname="/"),N.href=N.format(),N}if(p.protocol&&p.protocol!==N.protocol){if(!C[p.protocol]){for(var I=Object.keys(p),te=0;te<I.length;te++){var G=I[te];N[G]=p[G]}return N.href=N.format(),N}if(N.protocol=p.protocol,!p.host&&!w[p.protocol]){for(var ne=(p.pathname||"").split("/");ne.length&&!(p.host=ne.shift()););p.host||(p.host=""),p.hostname||(p.hostname=""),ne[0]!==""&&ne.unshift(""),ne.length<2&&ne.unshift(""),N.pathname=ne.join("/")}else N.pathname=p.pathname;if(N.search=p.search,N.query=p.query,N.host=p.host||"",N.auth=p.auth,N.hostname=p.hostname||p.host,N.port=p.port,N.pathname||N.search){var D=N.pathname||"",F=N.search||"";N.path=D+F}return N.slashes=N.slashes||p.slashes,N.href=N.format(),N}var z=N.pathname&&N.pathname.charAt(0)==="/",q=p.host||p.pathname&&p.pathname.charAt(0)==="/",M=q||z||N.host&&p.pathname,J=M,ae=N.pathname&&N.pathname.split("/")||[],ne=p.pathname&&p.pathname.split("/")||[],me=N.protocol&&!C[N.protocol];if(me&&(N.hostname="",N.port=null,N.host&&(ae[0]===""?ae[0]=N.host:ae.unshift(N.host)),N.host="",p.protocol&&(p.hostname=null,p.port=null,p.host&&(ne[0]===""?ne[0]=p.host:ne.unshift(p.host)),p.host=null),M=M&&(ne[0]===""||ae[0]==="")),q)N.host=p.host||p.host===""?p.host:N.host,N.hostname=p.hostname||p.hostname===""?p.hostname:N.hostname,N.search=p.search,N.query=p.query,ae=ne;else if(ne.length)ae||(ae=[]),ae.pop(),ae=ae.concat(ne),N.search=p.search,N.query=p.query;else if(!t.isNullOrUndefined(p.search)){if(me){N.hostname=N.host=ae.shift();var be=N.host&&N.host.indexOf("@")>0?N.host.split("@"):!1;be&&(N.auth=be.shift(),N.host=N.hostname=be.shift())}return N.search=p.search,N.query=p.query,(!t.isNull(N.pathname)||!t.isNull(N.search))&&(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.href=N.format(),N}if(!ae.length)return N.pathname=null,N.search?N.path="/"+N.search:N.path=null,N.href=N.format(),N;for(var K=ae.slice(-1)[0],Ne=(N.host||p.host||ae.length>1)&&(K==="."||K==="..")||K==="",ue=0,ee=ae.length;ee>=0;ee--)K=ae[ee],K==="."?ae.splice(ee,1):K===".."?(ae.splice(ee,1),ue++):ue&&(ae.splice(ee,1),ue--);if(!M&&!J)for(;ue--;ue)ae.unshift("..");M&&ae[0]!==""&&(!ae[0]||ae[0].charAt(0)!=="/")&&ae.unshift(""),Ne&&ae.join("/").substr(-1)!=="/"&&ae.push("");var Z=ae[0]===""||ae[0]&&ae[0].charAt(0)==="/";if(me){N.hostname=N.host=Z?"":ae.length?ae.shift():"";var be=N.host&&N.host.indexOf("@")>0?N.host.split("@"):!1;be&&(N.auth=be.shift(),N.host=N.hostname=be.shift())}return M=M||N.host&&ae.length,M&&!Z&&ae.unshift(""),ae.length?N.pathname=ae.join("/"):(N.pathname=null,N.path=null),(!t.isNull(N.pathname)||!t.isNull(N.search))&&(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.auth=p.auth||N.auth,N.slashes=N.slashes||p.slashes,N.href=N.format(),N},v.prototype.parseHost=function(){var p=this.host,P=f.exec(p);P&&(P=P[0],P!==":"&&(this.port=P.substr(1)),p=p.substr(0,p.length-P.length)),p&&(this.hostname=p)}},{"./util":239,punycode:209,querystring:212}],239:[function(e,y,i){"use strict";y.exports={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}}},{}],240:[function(e,y,i){(function(u){y.exports=t;function t(d,f){if(v("noDeprecation"))return d;var c=!1;function n(){if(!c){if(v("throwDeprecation"))throw new Error(f);v("traceDeprecation")?console.trace(f):console.warn(f),c=!0}return d.apply(this,arguments)}return n}function v(d){try{if(!u.localStorage)return!1}catch(c){return!1}var f=u.localStorage[d];return f==null?!1:String(f).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(e,y,i){typeof Object.create=="function"?y.exports=function(t,v){t.super_=v,t.prototype=Object.create(v.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:y.exports=function(t,v){t.super_=v;var d=function(){};d.prototype=v.prototype,t.prototype=new d,t.prototype.constructor=t}},{}],242:[function(e,y,i){y.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}},{}],243:[function(e,y,i){(function(u,t){var v=/%[sdj%]/g;i.format=function(D){if(!O(D)){for(var F=[],z=0;z<arguments.length;z++)F.push(c(arguments[z]));return F.join(" ")}for(var z=1,q=arguments,M=q.length,J=String(D).replace(v,function(ne){if(ne==="%%")return"%";if(z>=M)return ne;switch(ne){case"%s":return String(q[z++]);case"%d":return Number(q[z++]);case"%j":try{return JSON.stringify(q[z++])}catch(me){return"[Circular]"}default:return ne}}),ae=q[z];z<M;ae=q[++z])T(ae)||!N(ae)?J+=" "+ae:J+=" "+c(ae);return J},i.deprecate=function(D,F){if(p(t.process))return function(){return i.deprecate(D,F).apply(this,arguments)};if(u.noDeprecation===!0)return D;var z=!1;function q(){if(!z){if(u.throwDeprecation)throw new Error(F);u.traceDeprecation?console.trace(F):console.error(F),z=!0}return D.apply(this,arguments)}return q};var d={},f;i.debuglog=function(D){if(p(f)&&(f=u.env.NODE_DEBUG||""),D=D.toUpperCase(),!d[D])if(new RegExp("\\b"+D+"\\b","i").test(f)){var F=u.pid;d[D]=function(){var z=i.format.apply(i,arguments);console.error("%s %d: %s",D,F,z)}}else d[D]=function(){};return d[D]};function c(D,F){var z={seen:[],stylize:l};return arguments.length>=3&&(z.depth=arguments[2]),arguments.length>=4&&(z.colors=arguments[3]),C(F)?z.showHidden=F:F&&i._extend(z,F),p(z.showHidden)&&(z.showHidden=!1),p(z.depth)&&(z.depth=2),p(z.colors)&&(z.colors=!1),p(z.customInspect)&&(z.customInspect=!0),z.colors&&(z.stylize=n),r(z,D,z.depth)}i.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(D,F){var z=c.styles[F];return z?"["+c.colors[z][0]+"m"+D+"["+c.colors[z][1]+"m":D}function l(D,F){return D}function o(D){var F={};return D.forEach(function(z,q){F[z]=!0}),F}function r(D,F,z){if(D.customInspect&&F&&L(F.inspect)&&F.inspect!==i.inspect&&!(F.constructor&&F.constructor.prototype===F)){var q=F.inspect(z,D);return O(q)||(q=r(D,q,z)),q}var M=s(D,F);if(M)return M;var J=Object.keys(F),ae=o(J);if(D.showHidden&&(J=Object.getOwnPropertyNames(F)),A(F)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return b(F);if(J.length===0){if(L(F)){var ne=F.name?": "+F.name:"";return D.stylize("[Function"+ne+"]","special")}if(P(F))return D.stylize(RegExp.prototype.toString.call(F),"regexp");if(R(F))return D.stylize(Date.prototype.toString.call(F),"date");if(A(F))return b(F)}var me="",be=!1,K=["{","}"];if(w(F)&&(be=!0,K=["[","]"]),L(F)){var Ne=F.name?": "+F.name:"";me=" [Function"+Ne+"]"}if(P(F)&&(me=" "+RegExp.prototype.toString.call(F)),R(F)&&(me=" "+Date.prototype.toUTCString.call(F)),A(F)&&(me=" "+b(F)),J.length===0&&(!be||F.length==0))return K[0]+me+K[1];if(z<0)return P(F)?D.stylize(RegExp.prototype.toString.call(F),"regexp"):D.stylize("[Object]","special");D.seen.push(F);var ue;return be?ue=h(D,F,z,ae,J):ue=J.map(function(ee){return g(D,F,z,ae,ee,be)}),D.seen.pop(),S(ue,me,K)}function s(D,F){if(p(F))return D.stylize("undefined","undefined");if(O(F)){var z="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(z,"string")}if(E(F))return D.stylize(""+F,"number");if(C(F))return D.stylize(""+F,"boolean");if(T(F))return D.stylize("null","null")}function b(D){return"["+Error.prototype.toString.call(D)+"]"}function h(D,F,z,q,M){for(var J=[],ae=0,ne=F.length;ae<ne;++ae)G(F,String(ae))?J.push(g(D,F,z,q,String(ae),!0)):J.push("");return M.forEach(function(me){me.match(/^\d+$/)||J.push(g(D,F,z,q,me,!0))}),J}function g(D,F,z,q,M,J){var ae,ne,me;if(me=Object.getOwnPropertyDescriptor(F,M)||{value:F[M]},me.get?me.set?ne=D.stylize("[Getter/Setter]","special"):ne=D.stylize("[Getter]","special"):me.set&&(ne=D.stylize("[Setter]","special")),G(q,M)||(ae="["+M+"]"),ne||(D.seen.indexOf(me.value)<0?(T(z)?ne=r(D,me.value,null):ne=r(D,me.value,z-1),ne.indexOf(`
`)>-1&&(J?ne=ne.split(`
`).map(function(be){return" "+be}).join(`
`).substr(2):ne=`
`+ne.split(`
`).map(function(be){return" "+be}).join(`
`))):ne=D.stylize("[Circular]","special")),p(ae)){if(J&&M.match(/^\d+$/))return ne;ae=JSON.stringify(""+M),ae.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=D.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=D.stylize(ae,"string"))}return ae+": "+ne}function S(D,F,z){var q=0,M=D.reduce(function(J,ae){return q++,ae.indexOf(`
`)>=0&&q++,J+ae.replace(/\u001b\[\d\d?m/g,"").length+1},0);return M>60?z[0]+(F===""?"":F+`
`)+" "+D.join(`,
`)+" "+z[1]:z[0]+F+" "+D.join(", ")+" "+z[1]}function w(D){return Array.isArray(D)}i.isArray=w;function C(D){return typeof D=="boolean"}i.isBoolean=C;function T(D){return D===null}i.isNull=T;function j(D){return D==null}i.isNullOrUndefined=j;function E(D){return typeof D=="number"}i.isNumber=E;function O(D){return typeof D=="string"}i.isString=O;function _(D){return typeof D=="symbol"}i.isSymbol=_;function p(D){return D===void 0}i.isUndefined=p;function P(D){return N(D)&&V(D)==="[object RegExp]"}i.isRegExp=P;function N(D){return typeof D=="object"&&D!==null}i.isObject=N;function R(D){return N(D)&&V(D)==="[object Date]"}i.isDate=R;function A(D){return N(D)&&(V(D)==="[object Error]"||D instanceof Error)}i.isError=A;function L(D){return typeof D=="function"}i.isFunction=L;function $(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D=="undefined"}i.isPrimitive=$,i.isBuffer=e("./support/isBuffer");function V(D){return Object.prototype.toString.call(D)}function Y(D){return D<10?"0"+D.toString(10):D.toString(10)}var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function te(){var D=new Date,F=[Y(D.getHours()),Y(D.getMinutes()),Y(D.getSeconds())].join(":");return[D.getDate(),I[D.getMonth()],F].join(" ")}i.log=function(){console.log("%s - %s",te(),i.format.apply(i,arguments))},i.inherits=e("inherits"),i._extend=function(D,F){if(!F||!N(F))return D;for(var z=Object.keys(F),q=z.length;q--;)D[z[q]]=F[z[q]];return D};function G(D,F){return Object.prototype.hasOwnProperty.call(D,F)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(e,y,i){"use strict";(function(){"use strict";i.stripBOM=function(u){return u[0]==="\uFEFF"?u.substring(1):u}}).call(void 0)},{}],245:[function(e,y,i){"use strict";var u=e("babel-runtime/helpers/typeof"),t=f(u),v=e("babel-runtime/core-js/object/keys"),d=f(v);function f(c){return c&&c.__esModule?c:{default:c}}(function(){"use strict";var c,n,l,o,r,s={}.hasOwnProperty;c=e("xmlbuilder"),n=e("./defaults").defaults,o=function(h){return typeof h=="string"&&(h.indexOf("&")>=0||h.indexOf(">")>=0||h.indexOf("<")>=0)},r=function(h){return"<![CDATA["+l(h)+"]]>"},l=function(h){return h.replace("]]>","]]]]><![CDATA[>")},i.Builder=function(){function b(h){var g,S,w;this.options={},S=n["0.2"];for(g in S){if(!s.call(S,g))continue;w=S[g],this.options[g]=w}for(g in h){if(!s.call(h,g))continue;w=h[g],this.options[g]=w}}return b.prototype.buildObject=function(h){var g,S,w,C,T;return g=this.options.attrkey,S=this.options.charkey,(0,d.default)(h).length===1&&this.options.rootName===n["0.2"].rootName?(T=(0,d.default)(h)[0],h=h[T]):T=this.options.rootName,w=function(j){return function(E,O){var _,p,P,N,R,A;if((typeof O=="undefined"?"undefined":(0,t.default)(O))!=="object")j.options.cdata&&o(O)?E.raw(r(O)):E.txt(O);else if(Array.isArray(O))for(N in O){if(!s.call(O,N))continue;p=O[N];for(R in p)P=p[R],E=w(E.ele(R),P).up()}else for(R in O){if(!s.call(O,R))continue;if(p=O[R],R===g){if((typeof p=="undefined"?"undefined":(0,t.default)(p))==="object")for(_ in p)A=p[_],E=E.att(_,A)}else if(R===S)j.options.cdata&&o(p)?E=E.raw(r(p)):E=E.txt(p);else if(Array.isArray(p))for(N in p){if(!s.call(p,N))continue;P=p[N],typeof P=="string"?j.options.cdata&&o(P)?E=E.ele(R).raw(r(P)).up():E=E.ele(R,P).up():E=w(E.ele(R),P).up()}else(typeof p=="undefined"?"undefined":(0,t.default)(p))==="object"?E=w(E.ele(R),p).up():typeof p=="string"&&j.options.cdata&&o(p)?E=E.ele(R).raw(r(p)).up():(p==null&&(p=""),E=E.ele(R,p.toString()).up())}return E}}(this),C=c.create(T,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),w(C,h).end(this.options.renderOpts)},b}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(e,y,i){"use strict";(function(){i.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/promise"),t=o(u),v=e("babel-runtime/core-js/object/get-own-property-names"),d=o(v),f=e("babel-runtime/core-js/object/keys"),c=o(f),n=e("babel-runtime/helpers/typeof"),l=o(n);function o(r){return r&&r.__esModule?r:{default:r}}(function(){"use strict";var r,s,b,h,g,S,w,C,T=function(_,p){return function(){return _.apply(p,arguments)}},j=function(_,p){for(var P in p)E.call(p,P)&&(_[P]=p[P]);function N(){this.constructor=_}return N.prototype=p.prototype,_.prototype=new N,_.__super__=p.prototype,_},E={}.hasOwnProperty;w=e("sax"),b=e("events"),r=e("./bom"),S=e("./processors"),C=e("timers").setImmediate,s=e("./defaults").defaults,h=function(_){return(typeof _=="undefined"?"undefined":(0,l.default)(_))==="object"&&_!=null&&(0,c.default)(_).length===0},g=function(_,p,P){var N,R,A;for(N=0,R=_.length;N<R;N++)A=_[N],p=A(p,P);return p},i.Parser=function(O){j(_,O);function _(p){this.parseStringPromise=T(this.parseStringPromise,this),this.parseString=T(this.parseString,this),this.reset=T(this.reset,this),this.assignOrPush=T(this.assignOrPush,this),this.processAsync=T(this.processAsync,this);var P,N,R;if(!(this instanceof i.Parser))return new i.Parser(p);this.options={},N=s["0.2"];for(P in N){if(!E.call(N,P))continue;R=N[P],this.options[P]=R}for(P in p){if(!E.call(p,P))continue;R=p[P],this.options[P]=R}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(S.normalize)),this.reset()}return _.prototype.processAsync=function(){var p,P;try{return this.remaining.length<=this.options.chunkSize?(p=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(p),this.saxParser.close()):(p=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(p),C(this.processAsync))}catch(N){if(P=N,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(P)}},_.prototype.assignOrPush=function(p,P,N){return P in p?(p[P]instanceof Array||(p[P]=[p[P]]),p[P].push(N)):this.options.explicitArray?p[P]=[N]:p[P]=N},_.prototype.reset=function(){var p,P,N,R;return this.removeAllListeners(),this.saxParser=w.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(A){return function(L){if(A.saxParser.resume(),!A.saxParser.errThrown)return A.saxParser.errThrown=!0,A.emit("error",L)}}(this),this.saxParser.onend=function(A){return function(){if(!A.saxParser.ended)return A.saxParser.ended=!0,A.emit("end",A.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,R=[],p=this.options.attrkey,P=this.options.charkey,this.saxParser.onopentag=function(A){return function(L){var $,V,Y,I,te;if(Y={},Y[P]="",!A.options.ignoreAttrs){te=L.attributes;for($ in te){if(!E.call(te,$))continue;!(p in Y)&&!A.options.mergeAttrs&&(Y[p]={}),V=A.options.attrValueProcessors?g(A.options.attrValueProcessors,L.attributes[$],$):L.attributes[$],I=A.options.attrNameProcessors?g(A.options.attrNameProcessors,$):$,A.options.mergeAttrs?A.assignOrPush(Y,I,V):Y[p][I]=V}}return Y["#name"]=A.options.tagNameProcessors?g(A.options.tagNameProcessors,L.name):L.name,A.options.xmlns&&(Y[A.options.xmlnskey]={uri:L.uri,local:L.local}),R.push(Y)}}(this),this.saxParser.onclosetag=function(A){return function(){var L,$,V,Y,I,te,G,D,F,z;if(te=R.pop(),I=te["#name"],(!A.options.explicitChildren||!A.options.preserveChildrenOrder)&&delete te["#name"],te.cdata===!0&&(L=te.cdata,delete te.cdata),F=R[R.length-1],te[P].match(/^\s*$/)&&!L?($=te[P],delete te[P]):(A.options.trim&&(te[P]=te[P].trim()),A.options.normalize&&(te[P]=te[P].replace(/\s{2,}/g," ").trim()),te[P]=A.options.valueProcessors?g(A.options.valueProcessors,te[P],I):te[P],(0,c.default)(te).length===1&&P in te&&!A.EXPLICIT_CHARKEY&&(te=te[P])),h(te)&&(te=A.options.emptyTag!==""?A.options.emptyTag:$),A.options.validator!=null&&(z="/"+function(){var q,M,J;for(J=[],q=0,M=R.length;q<M;q++)Y=R[q],J.push(Y["#name"]);return J}().concat(I).join("/"),function(){var q;try{return te=A.options.validator(z,F&&F[I],te)}catch(M){return q=M,A.emit("error",q)}}()),A.options.explicitChildren&&!A.options.mergeAttrs&&(typeof te=="undefined"?"undefined":(0,l.default)(te))==="object"){if(!A.options.preserveChildrenOrder)Y={},A.options.attrkey in te&&(Y[A.options.attrkey]=te[A.options.attrkey],delete te[A.options.attrkey]),!A.options.charsAsChildren&&A.options.charkey in te&&(Y[A.options.charkey]=te[A.options.charkey],delete te[A.options.charkey]),(0,d.default)(te).length>0&&(Y[A.options.childkey]=te),te=Y;else if(F){F[A.options.childkey]=F[A.options.childkey]||[],G={};for(V in te){if(!E.call(te,V))continue;G[V]=te[V]}F[A.options.childkey].push(G),delete te["#name"],(0,c.default)(te).length===1&&P in te&&!A.EXPLICIT_CHARKEY&&(te=te[P])}}return R.length>0?A.assignOrPush(F,I,te):(A.options.explicitRoot&&(D=te,te={},te[I]=D),A.resultObject=te,A.saxParser.ended=!0,A.emit("end",A.resultObject))}}(this),N=function(A){return function(L){var $,V;if(V=R[R.length-1],V)return V[P]+=L,A.options.explicitChildren&&A.options.preserveChildrenOrder&&A.options.charsAsChildren&&(A.options.includeWhiteChars||L.replace(/\\n/g,"").trim()!=="")&&(V[A.options.childkey]=V[A.options.childkey]||[],$={"#name":"__text__"},$[P]=L,A.options.normalize&&($[P]=$[P].replace(/\s{2,}/g," ").trim()),V[A.options.childkey].push($)),V}}(this),this.saxParser.ontext=N,this.saxParser.oncdata=function(A){return function(L){var $;if($=N(L),$)return $.cdata=!0}}(this)},_.prototype.parseString=function(p,P){var N;P!=null&&typeof P=="function"&&(this.on("end",function(R){return this.reset(),P(null,R)}),this.on("error",function(R){return this.reset(),P(R)}));try{return p=p.toString(),p.trim()===""?(this.emit("end",null),!0):(p=r.stripBOM(p),this.options.async?(this.remaining=p,C(this.processAsync),this.saxParser):this.saxParser.write(p).close())}catch(R){if(N=R,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw N}else return this.emit("error",N),this.saxParser.errThrown=!0}},_.prototype.parseStringPromise=function(p){return new t.default(function(P){return function(N,R){return P.parseString(p,function(A,L){return A?R(A):N(L)})}}(this))},_}(b),i.parseString=function(O,_,p){var P,N,R;return p!=null?(typeof p=="function"&&(P=p),(typeof _=="undefined"?"undefined":(0,l.default)(_))==="object"&&(N=_)):(typeof _=="function"&&(P=_),N={}),R=new i.Parser(N),R.parseString(O,P)},i.parseStringPromise=function(O,_){var p,P;return(typeof _=="undefined"?"undefined":(0,l.default)(_))==="object"&&(p=_),P=new i.Parser(p),P.parseStringPromise(O)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(e,y,i){"use strict";(function(){"use strict";var u;u=new RegExp(/(?!xmlns)^.*:/),i.normalize=function(t){return t.toLowerCase()},i.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},i.stripPrefix=function(t){return t.replace(u,"")},i.parseNumbers=function(t){return isNaN(t)||(t=t%1===0?parseInt(t,10):parseFloat(t)),t},i.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t=t.toLowerCase()==="true"),t}}).call(void 0)},{}],249:[function(e,y,i){"use strict";(function(){"use strict";var u,t,v,d,f=function(l,o){for(var r in o)c.call(o,r)&&(l[r]=o[r]);function s(){this.constructor=l}return s.prototype=o.prototype,l.prototype=new s,l.__super__=o.prototype,l},c={}.hasOwnProperty;t=e("./defaults"),u=e("./builder"),v=e("./parser"),d=e("./processors"),i.defaults=t.defaults,i.processors=d,i.ValidationError=function(n){f(l,n);function l(o){this.message=o}return l}(Error),i.Builder=u.Builder,i.Parser=v.Parser,i.parseString=v.parseString,i.parseStringPromise=v.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(e,y,i){"use strict";(function(){y.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(e,y,i){"use strict";(function(){y.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/get-prototype-of"),t=n(u),v=e("babel-runtime/helpers/typeof"),d=n(v),f=e("babel-runtime/core-js/object/assign"),c=n(f);function n(l){return l&&l.__esModule?l:{default:l}}(function(){var l,o,r,s,b,h,g,S=[].slice,w={}.hasOwnProperty;l=function(){var T,j,E,O,_,p;if(p=arguments[0],_=2<=arguments.length?S.call(arguments,1):[],b(c.default))c.default.apply(null,arguments);else for(T=0,E=_.length;T<E;T++)if(O=_[T],O!=null)for(j in O){if(!w.call(O,j))continue;p[j]=O[j]}return p},b=function(T){return!!T&&Object.prototype.toString.call(T)==="[object Function]"},h=function(T){var j;return!!T&&((j=typeof T=="undefined"?"undefined":(0,d.default)(T))==="function"||j==="object")},r=function(T){return b(Array.isArray)?Array.isArray(T):Object.prototype.toString.call(T)==="[object Array]"},s=function(T){var j;if(r(T))return!T.length;for(j in T){if(!w.call(T,j))continue;return!1}return!0},g=function(T){var j,E;return h(T)&&(E=(0,t.default)(T))&&(j=E.constructor)&&typeof j=="function"&&j instanceof j&&Function.prototype.toString.call(j)===Function.prototype.toString.call(Object)},o=function(T){return b(T.valueOf)?T.valueOf():T},y.exports.assign=l,y.exports.isFunction=b,y.exports.isObject=h,y.exports.isArray=r,y.exports.isEmpty=s,y.exports.isPlainObject=g,y.exports.getValue=o}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(e,y,i){"use strict";(function(){y.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d,f,c;d=e("./NodeType"),c=e("./XMLNode"),y.exports=f=function(){function n(l,o,r){if(this.parent=l,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),o==null)throw new Error("Missing attribute name. "+this.debugInfo(o));this.name=this.stringify.name(o),this.value=this.stringify.attValue(r),this.type=d.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(n.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(n.prototype,"textContent",{get:function(){return this.value},set:function(o){return this.value=o||""}}),Object.defineProperty(n.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(n.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(n.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(n.prototype,"specified",{get:function(){return!0}}),n.prototype.clone=function(){return(0,t.default)(this)},n.prototype.toString=function(l){return this.options.writer.attribute(this,this.options.writer.filterOptions(l))},n.prototype.debugInfo=function(l){return l=l||this.name,l==null?"parent: <"+this.parent.name+">":"attribute: {"+l+"}, parent: <"+this.parent.name+">"},n.prototype.isEqualNode=function(l){return l.namespaceURI!==this.namespaceURI||(l.prefix!==this.prefix||l.localName!==this.localName)?!1:!(l.value!==this.value)},n}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d,f,c,n=function(r,s){for(var b in s)l.call(s,b)&&(r[b]=s[b]);function h(){this.constructor=r}return h.prototype=s.prototype,r.prototype=new h,r.__super__=s.prototype,r},l={}.hasOwnProperty;d=e("./NodeType"),c=e("./XMLCharacterData"),y.exports=f=function(o){n(r,o);function r(s,b){if(r.__super__.constructor.call(this,s),b==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=d.CData,this.value=this.stringify.cdata(b)}return r.prototype.clone=function(){return(0,t.default)(this)},r.prototype.toString=function(s){return this.options.writer.cdata(this,this.options.writer.filterOptions(s))},r}(c)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d,f,c=function(o,r){for(var s in r)n.call(r,s)&&(o[s]=r[s]);function b(){this.constructor=o}return b.prototype=r.prototype,o.prototype=new b,o.__super__=r.prototype,o},n={}.hasOwnProperty;f=e("./XMLNode"),y.exports=d=function(l){c(o,l);function o(r){o.__super__.constructor.call(this,r),this.value=""}return Object.defineProperty(o.prototype,"data",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(o.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(o.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),o.prototype.clone=function(){return(0,t.default)(this)},o.prototype.substringData=function(r,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.appendData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.insertData=function(r,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.deleteData=function(r,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceData=function(r,s,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(r){return o.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.data!==this.data):!1},o}(f)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d,f,c,n=function(r,s){for(var b in s)l.call(s,b)&&(r[b]=s[b]);function h(){this.constructor=r}return h.prototype=s.prototype,r.prototype=new h,r.__super__=s.prototype,r},l={}.hasOwnProperty;d=e("./NodeType"),f=e("./XMLCharacterData"),y.exports=c=function(o){n(r,o);function r(s,b){if(r.__super__.constructor.call(this,s),b==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=d.Comment,this.value=this.stringify.comment(b)}return r.prototype.clone=function(){return(0,t.default)(this)},r.prototype.toString=function(s){return this.options.writer.comment(this,this.options.writer.filterOptions(s))},r}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=f(u),v=e("babel-runtime/core-js/object/create"),d=f(v);function f(c){return c&&c.__esModule?c:{default:c}}(function(){var c,n,l;n=e("./XMLDOMErrorHandler"),l=e("./XMLDOMStringList"),y.exports=c=function(){function o(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new n,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=(0,d.default)(this.defaultParams)}return Object.defineProperty(o.prototype,"parameterNames",{get:function(){return new l((0,t.default)(this.defaultParams))}}),o.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},o.prototype.canSetParameter=function(r,s){return!0},o.prototype.setParameter=function(r,s){return s!=null?this.params[r]=s:delete this.params[r]},o}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(e,y,i){"use strict";(function(){var u;y.exports=u=function(){function t(){}return t.prototype.handleError=function(v){throw new Error(v)},t}()}).call(void 0)},{}],260:[function(e,y,i){"use strict";(function(){var u;y.exports=u=function(){function t(){}return t.prototype.hasFeature=function(v,d){return!0},t.prototype.createDocumentType=function(v,d,f){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(v,d,f){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(v){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(v,d){throw new Error("This DOM method is not implemented.")},t}()}).call(void 0)},{}],261:[function(e,y,i){"use strict";(function(){var u;y.exports=u=function(){function t(v){this.arr=v||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(v){return this.arr[v]||null},t.prototype.contains=function(v){return this.arr.indexOf(v)!==-1},t}()}).call(void 0)},{}],262:[function(e,y,i){"use strict";(function(){var u,t,v,d=function(n,l){for(var o in l)f.call(l,o)&&(n[o]=l[o]);function r(){this.constructor=n}return r.prototype=l.prototype,n.prototype=new r,n.__super__=l.prototype,n},f={}.hasOwnProperty;v=e("./XMLNode"),u=e("./NodeType"),y.exports=t=function(c){d(n,c);function n(l,o,r,s,b,h){if(n.__super__.constructor.call(this,l),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(r==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!s)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!b)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(b.indexOf("#")!==0&&(b="#"+b),!b.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(h&&!b.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.name(o),this.type=u.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(s),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=b}return n.prototype.toString=function(l){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(l))},n}(v)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(e,y,i){"use strict";(function(){var u,t,v,d=function(n,l){for(var o in l)f.call(l,o)&&(n[o]=l[o]);function r(){this.constructor=n}return r.prototype=l.prototype,n.prototype=new r,n.__super__=l.prototype,n},f={}.hasOwnProperty;v=e("./XMLNode"),u=e("./NodeType"),y.exports=t=function(c){d(n,c);function n(l,o,r){if(n.__super__.constructor.call(this,l),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(o),this.type=u.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}return n.prototype.toString=function(l){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(l))},n}(v)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(e,y,i){"use strict";(function(){var u,t,v,d,f=function(l,o){for(var r in o)c.call(o,r)&&(l[r]=o[r]);function s(){this.constructor=l}return s.prototype=o.prototype,l.prototype=new s,l.__super__=o.prototype,l},c={}.hasOwnProperty;d=e("./Utility").isObject,v=e("./XMLNode"),u=e("./NodeType"),y.exports=t=function(n){f(l,n);function l(o,r,s,b){if(l.__super__.constructor.call(this,o),s==null)throw new Error("Missing DTD entity name. "+this.debugInfo(s));if(b==null)throw new Error("Missing DTD entity value. "+this.debugInfo(s));if(this.pe=!!r,this.name=this.stringify.name(s),this.type=u.EntityDeclaration,!d(b))this.value=this.stringify.dtdEntityValue(b),this.internal=!0;else{if(!b.pubID&&!b.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(s));if(b.pubID&&!b.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(s));if(this.internal=!1,b.pubID!=null&&(this.pubID=this.stringify.dtdPubID(b.pubID)),b.sysID!=null&&(this.sysID=this.stringify.dtdSysID(b.sysID)),b.nData!=null&&(this.nData=this.stringify.dtdNData(b.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(s))}}return Object.defineProperty(l.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(l.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(l.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(l.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"xmlVersion",{get:function(){return null}}),l.prototype.toString=function(o){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(o))},l}(v)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(e,y,i){"use strict";(function(){var u,t,v,d=function(n,l){for(var o in l)f.call(l,o)&&(n[o]=l[o]);function r(){this.constructor=n}return r.prototype=l.prototype,n.prototype=new r,n.__super__=l.prototype,n},f={}.hasOwnProperty;v=e("./XMLNode"),u=e("./NodeType"),y.exports=t=function(c){d(n,c);function n(l,o,r){if(n.__super__.constructor.call(this,l),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.name(o),this.type=u.NotationDeclaration,r.pubID!=null&&(this.pubID=this.stringify.dtdPubID(r.pubID)),r.sysID!=null&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),n.prototype.toString=function(l){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(l))},n}(v)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(e,y,i){"use strict";(function(){var u,t,v,d,f=function(l,o){for(var r in o)c.call(o,r)&&(l[r]=o[r]);function s(){this.constructor=l}return s.prototype=o.prototype,l.prototype=new s,l.__super__=o.prototype,l},c={}.hasOwnProperty;d=e("./Utility").isObject,v=e("./XMLNode"),u=e("./NodeType"),y.exports=t=function(n){f(l,n);function l(o,r,s,b){var h;l.__super__.constructor.call(this,o),d(r)&&(h=r,r=h.version,s=h.encoding,b=h.standalone),r||(r="1.0"),this.type=u.Declaration,this.version=this.stringify.xmlVersion(r),s!=null&&(this.encoding=this.stringify.xmlEncoding(s)),b!=null&&(this.standalone=this.stringify.xmlStandalone(b))}return l.prototype.toString=function(o){return this.options.writer.declaration(this,this.options.writer.filterOptions(o))},l}(v)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(e,y,i){"use strict";(function(){var u,t,v,d,f,c,n,l,o,r=function(h,g){for(var S in g)s.call(g,S)&&(h[S]=g[S]);function w(){this.constructor=h}return w.prototype=g.prototype,h.prototype=new w,h.__super__=g.prototype,h},s={}.hasOwnProperty;o=e("./Utility").isObject,l=e("./XMLNode"),u=e("./NodeType"),t=e("./XMLDTDAttList"),d=e("./XMLDTDEntity"),v=e("./XMLDTDElement"),f=e("./XMLDTDNotation"),n=e("./XMLNamedNodeMap"),y.exports=c=function(b){r(h,b);function h(g,S,w){var C,T,j,E,O,_;if(h.__super__.constructor.call(this,g),this.type=u.DocType,g.children){for(E=g.children,T=0,j=E.length;T<j;T++)if(C=E[T],C.type===u.Element){this.name=C.name;break}}this.documentObject=g,o(S)&&(O=S,S=O.pubID,w=O.sysID),w==null&&(_=[S,w],w=_[0],S=_[1]),S!=null&&(this.pubID=this.stringify.dtdPubID(S)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}return Object.defineProperty(h.prototype,"entities",{get:function(){var S,w,C,T,j;for(T={},j=this.children,w=0,C=j.length;w<C;w++)S=j[w],S.type===u.EntityDeclaration&&!S.pe&&(T[S.name]=S);return new n(T)}}),Object.defineProperty(h.prototype,"notations",{get:function(){var S,w,C,T,j;for(T={},j=this.children,w=0,C=j.length;w<C;w++)S=j[w],S.type===u.NotationDeclaration&&(T[S.name]=S);return new n(T)}}),Object.defineProperty(h.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(h.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(h.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),h.prototype.element=function(g,S){var w;return w=new v(this,g,S),this.children.push(w),this},h.prototype.attList=function(g,S,w,C,T){var j;return j=new t(this,g,S,w,C,T),this.children.push(j),this},h.prototype.entity=function(g,S){var w;return w=new d(this,!1,g,S),this.children.push(w),this},h.prototype.pEntity=function(g,S){var w;return w=new d(this,!0,g,S),this.children.push(w),this},h.prototype.notation=function(g,S){var w;return w=new f(this,g,S),this.children.push(w),this},h.prototype.toString=function(g){return this.options.writer.docType(this,this.options.writer.filterOptions(g))},h.prototype.ele=function(g,S){return this.element(g,S)},h.prototype.att=function(g,S,w,C,T){return this.attList(g,S,w,C,T)},h.prototype.ent=function(g,S){return this.entity(g,S)},h.prototype.pent=function(g,S){return this.pEntity(g,S)},h.prototype.not=function(g,S){return this.notation(g,S)},h.prototype.up=function(){return this.root()||this.documentObject},h.prototype.isEqualNode=function(g){return h.__super__.isEqualNode.apply(this,arguments).isEqualNode(g)?g.name!==this.name||g.publicId!==this.publicId?!1:!(g.systemId!==this.systemId):!1},h}(l)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(e,y,i){"use strict";(function(){var u,t,v,d,f,c,n,l,o=function(b,h){for(var g in h)r.call(h,g)&&(b[g]=h[g]);function S(){this.constructor=b}return S.prototype=h.prototype,b.prototype=new S,b.__super__=h.prototype,b},r={}.hasOwnProperty;l=e("./Utility").isPlainObject,v=e("./XMLDOMImplementation"),t=e("./XMLDOMConfiguration"),f=e("./XMLNode"),u=e("./NodeType"),n=e("./XMLStringifier"),c=e("./XMLStringWriter"),y.exports=d=function(s){o(b,s);function b(h){b.__super__.constructor.call(this,null),this.name="#document",this.type=u.Document,this.documentURI=null,this.domConfig=new t,h||(h={}),h.writer||(h.writer=new c),this.options=h,this.stringify=new n(h)}return Object.defineProperty(b.prototype,"implementation",{value:new v}),Object.defineProperty(b.prototype,"doctype",{get:function(){var g,S,w,C;for(C=this.children,S=0,w=C.length;S<w;S++)if(g=C[S],g.type===u.DocType)return g;return null}}),Object.defineProperty(b.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(b.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(b.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].encoding:null}}),Object.defineProperty(b.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(b.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===u.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(b.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(b.prototype,"origin",{get:function(){return null}}),Object.defineProperty(b.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(b.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(b.prototype,"contentType",{get:function(){return null}}),b.prototype.end=function(h){var g;return g={},h?l(h)&&(g=h,h=this.options.writer):h=this.options.writer,h.document(this,h.filterOptions(g))},b.prototype.toString=function(h){return this.options.writer.document(this,this.options.writer.filterOptions(h))},b.prototype.createElement=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createTextNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createComment=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createCDATASection=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createProcessingInstruction=function(h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createAttribute=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createEntityReference=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.importNode=function(h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createElementNS=function(h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createAttributeNS=function(h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagNameNS=function(h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementById=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.adoptNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.renameNode=function(h,g,S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByClassName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createEvent=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createNodeIterator=function(h,g,S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.createTreeWalker=function(h,g,S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b}(f)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(e,y,i){"use strict";(function(){var u,t,v,d,f,c,n,l,o,r,s,b,h,g,S,w,C,T,j,E,O,_,p,P,N={}.hasOwnProperty;P=e("./Utility"),_=P.isObject,O=P.isFunction,p=P.isPlainObject,E=P.getValue,u=e("./NodeType"),b=e("./XMLDocument"),g=e("./XMLElement"),d=e("./XMLCData"),f=e("./XMLComment"),w=e("./XMLRaw"),j=e("./XMLText"),S=e("./XMLProcessingInstruction"),r=e("./XMLDeclaration"),s=e("./XMLDocType"),c=e("./XMLDTDAttList"),l=e("./XMLDTDEntity"),n=e("./XMLDTDElement"),o=e("./XMLDTDNotation"),v=e("./XMLAttribute"),T=e("./XMLStringifier"),C=e("./XMLStringWriter"),t=e("./WriterState"),y.exports=h=function(){function R(A,L,$){var V;this.name="?xml",this.type=u.Document,A||(A={}),V={},A.writer?p(A.writer)&&(V=A.writer,A.writer=new C):A.writer=new C,this.options=A,this.writer=A.writer,this.writerOptions=this.writer.filterOptions(V),this.stringify=new T(A),this.onDataCallback=L||function(){},this.onEndCallback=$||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return R.prototype.createChildNode=function(A){var L,$,V,Y,I,te,G,D;switch(A.type){case u.CData:this.cdata(A.value);break;case u.Comment:this.comment(A.value);break;case u.Element:V={},G=A.attribs;for($ in G){if(!N.call(G,$))continue;L=G[$],V[$]=L.value}this.node(A.name,V);break;case u.Dummy:this.dummy();break;case u.Raw:this.raw(A.value);break;case u.Text:this.text(A.value);break;case u.ProcessingInstruction:this.instruction(A.target,A.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+A.constructor.name)}for(D=A.children,I=0,te=D.length;I<te;I++)Y=D[I],this.createChildNode(Y),Y.type===u.Element&&this.up();return this},R.prototype.dummy=function(){return this},R.prototype.node=function(A,L,$){var V;if(A==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(A));return this.openCurrent(),A=E(A),L==null&&(L={}),L=E(L),_(L)||(V=[L,$],$=V[0],L=V[1]),this.currentNode=new g(this,A,L),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,$!=null&&this.text($),this},R.prototype.element=function(A,L,$){var V,Y,I,te,G,D;if(this.currentNode&&this.currentNode.type===u.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(A)||_(A)||O(A))for(te=this.options.noValidation,this.options.noValidation=!0,D=new b(this.options).element("TEMP_ROOT"),D.element(A),this.options.noValidation=te,G=D.children,Y=0,I=G.length;Y<I;Y++)V=G[Y],this.createChildNode(V),V.type===u.Element&&this.up();else this.node(A,L,$);return this},R.prototype.attribute=function(A,L){var $,V;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(A));if(A!=null&&(A=E(A)),_(A))for($ in A){if(!N.call(A,$))continue;V=A[$],this.attribute($,V)}else O(L)&&(L=L.apply()),this.options.keepNullAttributes&&L==null?this.currentNode.attribs[A]=new v(this,A,""):L!=null&&(this.currentNode.attribs[A]=new v(this,A,L));return this},R.prototype.text=function(A){var L;return this.openCurrent(),L=new j(this,A),this.onData(this.writer.text(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.cdata=function(A){var L;return this.openCurrent(),L=new d(this,A),this.onData(this.writer.cdata(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.comment=function(A){var L;return this.openCurrent(),L=new f(this,A),this.onData(this.writer.comment(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.raw=function(A){var L;return this.openCurrent(),L=new w(this,A),this.onData(this.writer.raw(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.instruction=function(A,L){var $,V,Y,I,te;if(this.openCurrent(),A!=null&&(A=E(A)),L!=null&&(L=E(L)),Array.isArray(A))for($=0,I=A.length;$<I;$++)V=A[$],this.instruction(V);else if(_(A))for(V in A){if(!N.call(A,V))continue;Y=A[V],this.instruction(V,Y)}else O(L)&&(L=L.apply()),te=new S(this,A,L),this.onData(this.writer.processingInstruction(te,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},R.prototype.declaration=function(A,L,$){var V;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return V=new r(this,A,L,$),this.onData(this.writer.declaration(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.doctype=function(A,L,$){if(this.openCurrent(),A==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new s(this,L,$),this.currentNode.rootNodeName=A,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},R.prototype.dtdElement=function(A,L){var $;return this.openCurrent(),$=new n(this,A,L),this.onData(this.writer.dtdElement($,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.attList=function(A,L,$,V,Y){var I;return this.openCurrent(),I=new c(this,A,L,$,V,Y),this.onData(this.writer.dtdAttList(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.entity=function(A,L){var $;return this.openCurrent(),$=new l(this,!1,A,L),this.onData(this.writer.dtdEntity($,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.pEntity=function(A,L){var $;return this.openCurrent(),$=new l(this,!0,A,L),this.onData(this.writer.dtdEntity($,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.notation=function(A,L){var $;return this.openCurrent(),$=new o(this,A,L),this.onData(this.writer.dtdNotation($,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},R.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},R.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},R.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},R.prototype.openNode=function(A){var L,$,V,Y;if(!A.isOpen){if(!this.root&&this.currentLevel===0&&A.type===u.Element&&(this.root=A),$="",A.type===u.Element){this.writerOptions.state=t.OpenTag,$=this.writer.indent(A,this.writerOptions,this.currentLevel)+"<"+A.name,Y=A.attribs;for(V in Y){if(!N.call(Y,V))continue;L=Y[V],$+=this.writer.attribute(L,this.writerOptions,this.currentLevel)}$+=(A.children?">":"/>")+this.writer.endline(A,this.writerOptions,this.currentLevel),this.writerOptions.state=t.InsideTag}else this.writerOptions.state=t.OpenTag,$=this.writer.indent(A,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+A.rootNodeName,A.pubID&&A.sysID?$+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&($+=' SYSTEM "'+A.sysID+'"'),A.children?($+=" [",this.writerOptions.state=t.InsideTag):(this.writerOptions.state=t.CloseTag,$+=">"),$+=this.writer.endline(A,this.writerOptions,this.currentLevel);return this.onData($,this.currentLevel),A.isOpen=!0}},R.prototype.closeNode=function(A){var L;if(!A.isClosed)return L="",this.writerOptions.state=t.CloseTag,A.type===u.Element?L=this.writer.indent(A,this.writerOptions,this.currentLevel)+"</"+A.name+">"+this.writer.endline(A,this.writerOptions,this.currentLevel):L=this.writer.indent(A,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(A,this.writerOptions,this.currentLevel),this.writerOptions.state=t.None,this.onData(L,this.currentLevel),A.isClosed=!0},R.prototype.onData=function(A,L){return this.documentStarted=!0,this.onDataCallback(A,L+1)},R.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},R.prototype.debugInfo=function(A){return A==null?"":"node: <"+A+">"},R.prototype.ele=function(){return this.element.apply(this,arguments)},R.prototype.nod=function(A,L,$){return this.node(A,L,$)},R.prototype.txt=function(A){return this.text(A)},R.prototype.dat=function(A){return this.cdata(A)},R.prototype.com=function(A){return this.comment(A)},R.prototype.ins=function(A,L){return this.instruction(A,L)},R.prototype.dec=function(A,L,$){return this.declaration(A,L,$)},R.prototype.dtd=function(A,L,$){return this.doctype(A,L,$)},R.prototype.e=function(A,L,$){return this.element(A,L,$)},R.prototype.n=function(A,L,$){return this.node(A,L,$)},R.prototype.t=function(A){return this.text(A)},R.prototype.d=function(A){return this.cdata(A)},R.prototype.c=function(A){return this.comment(A)},R.prototype.r=function(A){return this.raw(A)},R.prototype.i=function(A,L){return this.instruction(A,L)},R.prototype.att=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.a=function(){return this.currentNode&&this.currentNode.type===u.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.ent=function(A,L){return this.entity(A,L)},R.prototype.pent=function(A,L){return this.pEntity(A,L)},R.prototype.not=function(A,L){return this.notation(A,L)},R}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d,f,c,n=function(r,s){for(var b in s)l.call(s,b)&&(r[b]=s[b]);function h(){this.constructor=r}return h.prototype=s.prototype,r.prototype=new h,r.__super__=s.prototype,r},l={}.hasOwnProperty;c=e("./XMLNode"),d=e("./NodeType"),y.exports=f=function(o){n(r,o);function r(s){r.__super__.constructor.call(this,s),this.type=d.Dummy}return r.prototype.clone=function(){return(0,t.default)(this)},r.prototype.toString=function(s){return""},r}(c)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d,f,c,n,l,o,r,s,b,h=function(w,C){for(var T in C)g.call(C,T)&&(w[T]=C[T]);function j(){this.constructor=w}return j.prototype=C.prototype,w.prototype=new j,w.__super__=C.prototype,w},g={}.hasOwnProperty;b=e("./Utility"),s=b.isObject,r=b.isFunction,o=b.getValue,l=e("./XMLNode"),d=e("./NodeType"),f=e("./XMLAttribute"),n=e("./XMLNamedNodeMap"),y.exports=c=function(S){h(w,S);function w(C,T,j){var E,O,_,p;if(w.__super__.constructor.call(this,C),T==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(T),this.type=d.Element,this.attribs={},this.schemaTypeInfo=null,j!=null&&this.attribute(j),C.type===d.Document&&(this.isRoot=!0,this.documentObject=C,C.rootObject=this,C.children)){for(p=C.children,O=0,_=p.length;O<_;O++)if(E=p[O],E.type===d.DocType){E.name=this.name;break}}}return Object.defineProperty(w.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(w.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(w.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(w.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(w.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(w.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new n(this.attribs)),this.attributeMap}}),w.prototype.clone=function(){var C,T,j,E;j=(0,t.default)(this),j.isRoot&&(j.documentObject=null),j.attribs={},E=this.attribs;for(T in E){if(!g.call(E,T))continue;C=E[T],j.attribs[T]=C.clone()}return j.children=[],this.children.forEach(function(O){var _;return _=O.clone(),_.parent=j,j.children.push(_)}),j},w.prototype.attribute=function(C,T){var j,E;if(C!=null&&(C=o(C)),s(C))for(j in C){if(!g.call(C,j))continue;E=C[j],this.attribute(j,E)}else r(T)&&(T=T.apply()),this.options.keepNullAttributes&&T==null?this.attribs[C]=new f(this,C,""):T!=null&&(this.attribs[C]=new f(this,C,T));return this},w.prototype.removeAttribute=function(C){var T,j,E;if(C==null)throw new Error("Missing attribute name. "+this.debugInfo());if(C=o(C),Array.isArray(C))for(j=0,E=C.length;j<E;j++)T=C[j],delete this.attribs[T];else delete this.attribs[C];return this},w.prototype.toString=function(C){return this.options.writer.element(this,this.options.writer.filterOptions(C))},w.prototype.att=function(C,T){return this.attribute(C,T)},w.prototype.a=function(C,T){return this.attribute(C,T)},w.prototype.getAttribute=function(C){return this.attribs.hasOwnProperty(C)?this.attribs[C].value:null},w.prototype.setAttribute=function(C,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getAttributeNode=function(C){return this.attribs.hasOwnProperty(C)?this.attribs[C]:null},w.prototype.setAttributeNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeAttributeNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagName=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getAttributeNS=function(C,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setAttributeNS=function(C,T,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeAttributeNS=function(C,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getAttributeNodeNS=function(C,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setAttributeNodeNS=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagNameNS=function(C,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasAttribute=function(C){return this.attribs.hasOwnProperty(C)},w.prototype.hasAttributeNS=function(C,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setIdAttribute=function(C,T){return this.attribs.hasOwnProperty(C)?this.attribs[C].isId:T},w.prototype.setIdAttributeNS=function(C,T,j){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setIdAttributeNode=function(C,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagName=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagNameNS=function(C,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByClassName=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(C){var T,j,E;if(!w.__super__.isEqualNode.apply(this,arguments).isEqualNode(C))return!1;if(C.namespaceURI!==this.namespaceURI)return!1;if(C.prefix!==this.prefix)return!1;if(C.localName!==this.localName)return!1;if(C.attribs.length!==this.attribs.length)return!1;for(T=j=0,E=this.attribs.length-1;0<=E?j<=E:j>=E;T=0<=E?++j:--j)if(!this.attribs[T].isEqualNode(C.attribs[T]))return!1;return!0},w}(l)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/keys"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d;y.exports=d=function(){function f(c){this.nodes=c}return Object.defineProperty(f.prototype,"length",{get:function(){return(0,t.default)(this.nodes).length||0}}),f.prototype.clone=function(){return this.nodes=null},f.prototype.getNamedItem=function(c){return this.nodes[c]},f.prototype.setNamedItem=function(c){var n;return n=this.nodes[c.nodeName],this.nodes[c.nodeName]=c,n||null},f.prototype.removeNamedItem=function(c){var n;return n=this.nodes[c],delete this.nodes[c],n||null},f.prototype.item=function(c){return this.nodes[(0,t.default)(this.nodes)[c]]||null},f.prototype.getNamedItemNS=function(c,n){throw new Error("This DOM method is not implemented.")},f.prototype.setNamedItemNS=function(c){throw new Error("This DOM method is not implemented.")},f.prototype.removeNamedItemNS=function(c,n){throw new Error("This DOM method is not implemented.")},f}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(e,y,i){"use strict";(function(){var u,t,v,d,f,c,n,l,o,r,s,b,h,g,S,w,C,T,j,E={}.hasOwnProperty;j=e("./Utility"),T=j.isObject,C=j.isFunction,w=j.isEmpty,S=j.getValue,l=null,v=null,d=null,f=null,c=null,h=null,g=null,b=null,n=null,t=null,s=null,o=null,u=null,y.exports=r=function(){function O(_){this.parent=_,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=e("./XMLElement"),v=e("./XMLCData"),d=e("./XMLComment"),f=e("./XMLDeclaration"),c=e("./XMLDocType"),h=e("./XMLRaw"),g=e("./XMLText"),b=e("./XMLProcessingInstruction"),n=e("./XMLDummy"),t=e("./NodeType"),s=e("./XMLNodeList"),o=e("./XMLNamedNodeMap"),u=e("./DocumentPosition"))}return Object.defineProperty(O.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(O.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(O.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(O.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(O.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new s(this.children)),this.childNodeList}}),Object.defineProperty(O.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(O.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(O.prototype,"previousSibling",{get:function(){var p;return p=this.parent.children.indexOf(this),this.parent.children[p-1]||null}}),Object.defineProperty(O.prototype,"nextSibling",{get:function(){var p;return p=this.parent.children.indexOf(this),this.parent.children[p+1]||null}}),Object.defineProperty(O.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(O.prototype,"textContent",{get:function(){var p,P,N,R,A;if(this.nodeType===t.Element||this.nodeType===t.DocumentFragment){for(A="",R=this.children,P=0,N=R.length;P<N;P++)p=R[P],p.textContent&&(A+=p.textContent);return A}else return null},set:function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),O.prototype.setParent=function(_){var p,P,N,R,A;for(this.parent=_,_&&(this.options=_.options,this.stringify=_.stringify),R=this.children,A=[],P=0,N=R.length;P<N;P++)p=R[P],A.push(p.setParent(this));return A},O.prototype.element=function(_,p,P){var N,R,A,L,$,V,Y,I,te,G,D;if(V=null,p===null&&P==null&&(te=[{},null],p=te[0],P=te[1]),p==null&&(p={}),p=S(p),T(p)||(G=[p,P],P=G[0],p=G[1]),_!=null&&(_=S(_)),Array.isArray(_))for(A=0,Y=_.length;A<Y;A++)R=_[A],V=this.element(R);else if(C(_))V=this.element(_.apply());else if(T(_))for($ in _){if(!E.call(_,$))continue;if(D=_[$],C(D)&&(D=D.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&$.indexOf(this.stringify.convertAttKey)===0)V=this.attribute($.substr(this.stringify.convertAttKey.length),D);else if(!this.options.separateArrayItems&&Array.isArray(D)&&w(D))V=this.dummy();else if(T(D)&&w(D))V=this.element($);else if(!this.options.keepNullNodes&&D==null)V=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(D))for(L=0,I=D.length;L<I;L++)R=D[L],N={},N[$]=R,V=this.element(N);else T(D)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&$.indexOf(this.stringify.convertTextKey)===0?V=this.element(D):(V=this.element($),V.element(D)):V=this.element($,D)}else!this.options.keepNullNodes&&P===null?V=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&_.indexOf(this.stringify.convertTextKey)===0?V=this.text(P):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&_.indexOf(this.stringify.convertCDataKey)===0?V=this.cdata(P):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&_.indexOf(this.stringify.convertCommentKey)===0?V=this.comment(P):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&_.indexOf(this.stringify.convertRawKey)===0?V=this.raw(P):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&_.indexOf(this.stringify.convertPIKey)===0?V=this.instruction(_.substr(this.stringify.convertPIKey.length),P):V=this.node(_,p,P);if(V==null)throw new Error("Could not create any elements with: "+_+". "+this.debugInfo());return V},O.prototype.insertBefore=function(_,p,P){var N,R,A,L,$;if(_!=null?_.type:void 0)return A=_,L=p,A.setParent(this),L?(R=children.indexOf(L),$=children.splice(R),children.push(A),Array.prototype.push.apply(children,$)):children.push(A),A;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(_));return R=this.parent.children.indexOf(this),$=this.parent.children.splice(R),N=this.parent.element(_,p,P),Array.prototype.push.apply(this.parent.children,$),N},O.prototype.insertAfter=function(_,p,P){var N,R,A;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(_));return R=this.parent.children.indexOf(this),A=this.parent.children.splice(R+1),N=this.parent.element(_,p,P),Array.prototype.push.apply(this.parent.children,A),N},O.prototype.remove=function(){var _,p;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return _=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[_,_-_+1].concat(p=[])),this.parent},O.prototype.node=function(_,p,P){var N,R;return _!=null&&(_=S(_)),p||(p={}),p=S(p),T(p)||(R=[p,P],P=R[0],p=R[1]),N=new l(this,_,p),P!=null&&N.text(P),this.children.push(N),N},O.prototype.text=function(_){var p;return T(_)&&this.element(_),p=new g(this,_),this.children.push(p),this},O.prototype.cdata=function(_){var p;return p=new v(this,_),this.children.push(p),this},O.prototype.comment=function(_){var p;return p=new d(this,_),this.children.push(p),this},O.prototype.commentBefore=function(_){var p,P,N;return P=this.parent.children.indexOf(this),N=this.parent.children.splice(P),p=this.parent.comment(_),Array.prototype.push.apply(this.parent.children,N),this},O.prototype.commentAfter=function(_){var p,P,N;return P=this.parent.children.indexOf(this),N=this.parent.children.splice(P+1),p=this.parent.comment(_),Array.prototype.push.apply(this.parent.children,N),this},O.prototype.raw=function(_){var p;return p=new h(this,_),this.children.push(p),this},O.prototype.dummy=function(){var _;return _=new n(this),_},O.prototype.instruction=function(_,p){var P,N,R,A,L;if(_!=null&&(_=S(_)),p!=null&&(p=S(p)),Array.isArray(_))for(A=0,L=_.length;A<L;A++)P=_[A],this.instruction(P);else if(T(_))for(P in _){if(!E.call(_,P))continue;N=_[P],this.instruction(P,N)}else C(p)&&(p=p.apply()),R=new b(this,_,p),this.children.push(R);return this},O.prototype.instructionBefore=function(_,p){var P,N,R;return N=this.parent.children.indexOf(this),R=this.parent.children.splice(N),P=this.parent.instruction(_,p),Array.prototype.push.apply(this.parent.children,R),this},O.prototype.instructionAfter=function(_,p){var P,N,R;return N=this.parent.children.indexOf(this),R=this.parent.children.splice(N+1),P=this.parent.instruction(_,p),Array.prototype.push.apply(this.parent.children,R),this},O.prototype.declaration=function(_,p,P){var N,R;return N=this.document(),R=new f(N,_,p,P),N.children.length===0?N.children.unshift(R):N.children[0].type===t.Declaration?N.children[0]=R:N.children.unshift(R),N.root()||N},O.prototype.dtd=function(_,p){var P,N,R,A,L,$,V,Y,I,te;for(N=this.document(),R=new c(N,_,p),I=N.children,A=L=0,V=I.length;L<V;A=++L)if(P=I[A],P.type===t.DocType)return N.children[A]=R,R;for(te=N.children,A=$=0,Y=te.length;$<Y;A=++$)if(P=te[A],P.isRoot)return N.children.splice(A,0,R),R;return N.children.push(R),R},O.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},O.prototype.root=function(){var _;for(_=this;_;){if(_.type===t.Document)return _.rootObject;if(_.isRoot)return _;_=_.parent}},O.prototype.document=function(){var _;for(_=this;_;){if(_.type===t.Document)return _;_=_.parent}},O.prototype.end=function(_){return this.document().end(_)},O.prototype.prev=function(){var _;if(_=this.parent.children.indexOf(this),_<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[_-1]},O.prototype.next=function(){var _;if(_=this.parent.children.indexOf(this),_===-1||_===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[_+1]},O.prototype.importDocument=function(_){var p;return p=_.root().clone(),p.parent=this,p.isRoot=!1,this.children.push(p),this},O.prototype.debugInfo=function(_){var p,P;return _=_||this.name,_==null&&!((p=this.parent)!=null?p.name:void 0)?"":_==null?"parent: <"+this.parent.name+">":((P=this.parent)!=null?P.name:void 0)?"node: <"+_+">, parent: <"+this.parent.name+">":"node: <"+_+">"},O.prototype.ele=function(_,p,P){return this.element(_,p,P)},O.prototype.nod=function(_,p,P){return this.node(_,p,P)},O.prototype.txt=function(_){return this.text(_)},O.prototype.dat=function(_){return this.cdata(_)},O.prototype.com=function(_){return this.comment(_)},O.prototype.ins=function(_,p){return this.instruction(_,p)},O.prototype.doc=function(){return this.document()},O.prototype.dec=function(_,p,P){return this.declaration(_,p,P)},O.prototype.e=function(_,p,P){return this.element(_,p,P)},O.prototype.n=function(_,p,P){return this.node(_,p,P)},O.prototype.t=function(_){return this.text(_)},O.prototype.d=function(_){return this.cdata(_)},O.prototype.c=function(_){return this.comment(_)},O.prototype.r=function(_){return this.raw(_)},O.prototype.i=function(_,p){return this.instruction(_,p)},O.prototype.u=function(){return this.up()},O.prototype.importXMLBuilder=function(_){return this.importDocument(_)},O.prototype.replaceChild=function(_,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.removeChild=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.appendChild=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.hasChildNodes=function(){return this.children.length!==0},O.prototype.cloneNode=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.isSupported=function(_,p){return!0},O.prototype.hasAttributes=function(){return this.attribs.length!==0},O.prototype.compareDocumentPosition=function(_){var p,P;return p=this,p===_?0:this.document()!==_.document()?(P=u.Disconnected|u.ImplementationSpecific,Math.random()<.5?P|=u.Preceding:P|=u.Following,P):p.isAncestor(_)?u.Contains|u.Preceding:p.isDescendant(_)?u.Contains|u.Following:p.isPreceding(_)?u.Preceding:u.Following},O.prototype.isSameNode=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.lookupPrefix=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.isDefaultNamespace=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.lookupNamespaceURI=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.isEqualNode=function(_){var p,P,N;if(_.nodeType!==this.nodeType)return!1;if(_.children.length!==this.children.length)return!1;for(p=P=0,N=this.children.length-1;0<=N?P<=N:P>=N;p=0<=N?++P:--P)if(!this.children[p].isEqualNode(_.children[p]))return!1;return!0},O.prototype.getFeature=function(_,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.setUserData=function(_,p,P){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getUserData=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.contains=function(_){return _?_===this||this.isDescendant(_):!1},O.prototype.isDescendant=function(_){var p,P,N,R,A;for(A=this.children,N=0,R=A.length;N<R;N++){if(p=A[N],_===p)return!0;if(P=p.isDescendant(_),P)return!0}return!1},O.prototype.isAncestor=function(_){return _.isDescendant(this)},O.prototype.isPreceding=function(_){var p,P;return p=this.treePosition(_),P=this.treePosition(this),p===-1||P===-1?!1:p<P},O.prototype.isFollowing=function(_){var p,P;return p=this.treePosition(_),P=this.treePosition(this),p===-1||P===-1?!1:p>P},O.prototype.treePosition=function(_){var p,P;return P=0,p=!1,this.foreachTreeNode(this.document(),function(N){if(P++,!p&&N===_)return p=!0}),p?P:-1},O.prototype.foreachTreeNode=function(_,p){var P,N,R,A,L;for(_||(_=this.document()),A=_.children,N=0,R=A.length;N<R;N++){if(P=A[N],L=p(P))return L;if(L=this.foreachTreeNode(P,p),L)return L}},O}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(e,y,i){"use strict";(function(){var u;y.exports=u=function(){function t(v){this.nodes=v}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.item=function(v){return this.nodes[v]||null},t}()}).call(void 0)},{}],275:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d,f,c,n=function(r,s){for(var b in s)l.call(s,b)&&(r[b]=s[b]);function h(){this.constructor=r}return h.prototype=s.prototype,r.prototype=new h,r.__super__=s.prototype,r},l={}.hasOwnProperty;d=e("./NodeType"),f=e("./XMLCharacterData"),y.exports=c=function(o){n(r,o);function r(s,b,h){if(r.__super__.constructor.call(this,s),b==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=d.ProcessingInstruction,this.target=this.stringify.insTarget(b),this.name=this.target,h&&(this.value=this.stringify.insValue(h))}return r.prototype.clone=function(){return(0,t.default)(this)},r.prototype.toString=function(s){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(s))},r.prototype.isEqualNode=function(s){return r.__super__.isEqualNode.apply(this,arguments).isEqualNode(s)?!(s.target!==this.target):!1},r}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d,f,c,n=function(r,s){for(var b in s)l.call(s,b)&&(r[b]=s[b]);function h(){this.constructor=r}return h.prototype=s.prototype,r.prototype=new h,r.__super__=s.prototype,r},l={}.hasOwnProperty;d=e("./NodeType"),f=e("./XMLNode"),y.exports=c=function(o){n(r,o);function r(s,b){if(r.__super__.constructor.call(this,s),b==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=d.Raw,this.value=this.stringify.raw(b)}return r.prototype.clone=function(){return(0,t.default)(this)},r.prototype.toString=function(s){return this.options.writer.raw(this,this.options.writer.filterOptions(s))},r}(f)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(e,y,i){"use strict";(function(){var u,t,v,d,f=function(l,o){for(var r in o)c.call(o,r)&&(l[r]=o[r]);function s(){this.constructor=l}return s.prototype=o.prototype,l.prototype=new s,l.__super__=o.prototype,l},c={}.hasOwnProperty;u=e("./NodeType"),d=e("./XMLWriterBase"),t=e("./WriterState"),y.exports=v=function(n){f(l,n);function l(o,r){this.stream=o,l.__super__.constructor.call(this,r)}return l.prototype.endline=function(o,r,s){return o.isLastRootNode&&r.state===t.CloseTag?"":l.__super__.endline.call(this,o,r,s)},l.prototype.document=function(o,r){var s,b,h,g,S,w,C,T,j;for(C=o.children,b=h=0,S=C.length;h<S;b=++h)s=C[b],s.isLastRootNode=b===o.children.length-1;for(r=this.filterOptions(r),T=o.children,j=[],g=0,w=T.length;g<w;g++)s=T[g],j.push(this.writeChildNode(s,r,0));return j},l.prototype.attribute=function(o,r,s){return this.stream.write(l.__super__.attribute.call(this,o,r,s))},l.prototype.cdata=function(o,r,s){return this.stream.write(l.__super__.cdata.call(this,o,r,s))},l.prototype.comment=function(o,r,s){return this.stream.write(l.__super__.comment.call(this,o,r,s))},l.prototype.declaration=function(o,r,s){return this.stream.write(l.__super__.declaration.call(this,o,r,s))},l.prototype.docType=function(o,r,s){var b,h,g,S;if(s||(s=0),this.openNode(o,r,s),r.state=t.OpenTag,this.stream.write(this.indent(o,r,s)),this.stream.write("<!DOCTYPE "+o.root().name),o.pubID&&o.sysID?this.stream.write(' PUBLIC "'+o.pubID+'" "'+o.sysID+'"'):o.sysID&&this.stream.write(' SYSTEM "'+o.sysID+'"'),o.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(o,r,s)),r.state=t.InsideTag,S=o.children,h=0,g=S.length;h<g;h++)b=S[h],this.writeChildNode(b,r,s+1);r.state=t.CloseTag,this.stream.write("]")}return r.state=t.CloseTag,this.stream.write(r.spaceBeforeSlash+">"),this.stream.write(this.endline(o,r,s)),r.state=t.None,this.closeNode(o,r,s)},l.prototype.element=function(o,r,s){var b,h,g,S,w,C,T,j,E,O;s||(s=0),this.openNode(o,r,s),r.state=t.OpenTag,this.stream.write(this.indent(o,r,s)+"<"+o.name),E=o.attribs;for(T in E){if(!c.call(E,T))continue;b=E[T],this.attribute(b,r,s)}if(g=o.children.length,S=g===0?null:o.children[0],g===0||o.children.every(function(_){return(_.type===u.Text||_.type===u.Raw)&&_.value===""}))r.allowEmpty?(this.stream.write(">"),r.state=t.CloseTag,this.stream.write("</"+o.name+">")):(r.state=t.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(r.pretty&&g===1&&(S.type===u.Text||S.type===u.Raw)&&S.value!=null)this.stream.write(">"),r.state=t.InsideTag,r.suppressPrettyCount++,j=!0,this.writeChildNode(S,r,s+1),r.suppressPrettyCount--,j=!1,r.state=t.CloseTag,this.stream.write("</"+o.name+">");else{for(this.stream.write(">"+this.endline(o,r,s)),r.state=t.InsideTag,O=o.children,w=0,C=O.length;w<C;w++)h=O[w],this.writeChildNode(h,r,s+1);r.state=t.CloseTag,this.stream.write(this.indent(o,r,s)+"</"+o.name+">")}return this.stream.write(this.endline(o,r,s)),r.state=t.None,this.closeNode(o,r,s)},l.prototype.processingInstruction=function(o,r,s){return this.stream.write(l.__super__.processingInstruction.call(this,o,r,s))},l.prototype.raw=function(o,r,s){return this.stream.write(l.__super__.raw.call(this,o,r,s))},l.prototype.text=function(o,r,s){return this.stream.write(l.__super__.text.call(this,o,r,s))},l.prototype.dtdAttList=function(o,r,s){return this.stream.write(l.__super__.dtdAttList.call(this,o,r,s))},l.prototype.dtdElement=function(o,r,s){return this.stream.write(l.__super__.dtdElement.call(this,o,r,s))},l.prototype.dtdEntity=function(o,r,s){return this.stream.write(l.__super__.dtdEntity.call(this,o,r,s))},l.prototype.dtdNotation=function(o,r,s){return this.stream.write(l.__super__.dtdNotation.call(this,o,r,s))},l}(d)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(e,y,i){"use strict";(function(){var u,t,v=function(c,n){for(var l in n)d.call(n,l)&&(c[l]=n[l]);function o(){this.constructor=c}return o.prototype=n.prototype,c.prototype=new o,c.__super__=n.prototype,c},d={}.hasOwnProperty;t=e("./XMLWriterBase"),y.exports=u=function(f){v(c,f);function c(n){c.__super__.constructor.call(this,n)}return c.prototype.document=function(n,l){var o,r,s,b,h;for(l=this.filterOptions(l),b="",h=n.children,r=0,s=h.length;r<s;r++)o=h[r],b+=this.writeChildNode(o,l,0);return l.pretty&&b.slice(-l.newline.length)===l.newline&&(b=b.slice(0,-l.newline.length)),b},c}(t)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(e,y,i){"use strict";(function(){var u,t=function(f,c){return function(){return f.apply(c,arguments)}},v={}.hasOwnProperty;y.exports=u=function(){function d(f){this.assertLegalName=t(this.assertLegalName,this),this.assertLegalChar=t(this.assertLegalChar,this);var c,n,l;f||(f={}),this.options=f,this.options.version||(this.options.version="1.0"),n=f.stringify||{};for(c in n){if(!v.call(n,c))continue;l=n[c],this[c]=l}}return d.prototype.name=function(f){return this.options.noValidation?f:this.assertLegalName(""+f||"")},d.prototype.text=function(f){return this.options.noValidation?f:this.assertLegalChar(this.textEscape(""+f||""))},d.prototype.cdata=function(f){return this.options.noValidation?f:(f=""+f||"",f=f.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(f))},d.prototype.comment=function(f){if(this.options.noValidation)return f;if(f=""+f||"",f.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+f);return this.assertLegalChar(f)},d.prototype.raw=function(f){return this.options.noValidation?f:""+f||""},d.prototype.attValue=function(f){return this.options.noValidation?f:this.assertLegalChar(this.attEscape(f=""+f||""))},d.prototype.insTarget=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},d.prototype.insValue=function(f){if(this.options.noValidation)return f;if(f=""+f||"",f.match(/\?>/))throw new Error("Invalid processing instruction value: "+f);return this.assertLegalChar(f)},d.prototype.xmlVersion=function(f){if(this.options.noValidation)return f;if(f=""+f||"",!f.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+f);return f},d.prototype.xmlEncoding=function(f){if(this.options.noValidation)return f;if(f=""+f||"",!f.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+f);return this.assertLegalChar(f)},d.prototype.xmlStandalone=function(f){return this.options.noValidation?f:f?"yes":"no"},d.prototype.dtdPubID=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},d.prototype.dtdSysID=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},d.prototype.dtdElementValue=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},d.prototype.dtdAttType=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},d.prototype.dtdAttDefault=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},d.prototype.dtdEntityValue=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},d.prototype.dtdNData=function(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")},d.prototype.convertAttKey="@",d.prototype.convertPIKey="?",d.prototype.convertTextKey="#text",d.prototype.convertCDataKey="#cdata",d.prototype.convertCommentKey="#comment",d.prototype.convertRawKey="#raw",d.prototype.assertLegalChar=function(f){var c,n;if(this.options.noValidation)return f;if(c="",this.options.version==="1.0"){if(c=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=f.match(c))throw new Error("Invalid character in string: "+f+" at index "+n.index)}else if(this.options.version==="1.1"&&(c=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=f.match(c)))throw new Error("Invalid character in string: "+f+" at index "+n.index);return f},d.prototype.assertLegalName=function(f){var c;if(this.options.noValidation)return f;if(this.assertLegalChar(f),c=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!f.match(c))throw new Error("Invalid character in name");return f},d.prototype.textEscape=function(f){var c;return this.options.noValidation?f:(c=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,f.replace(c,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},d.prototype.attEscape=function(f){var c;return this.options.noValidation?f:(c=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,f.replace(c,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},d}()}).call(void 0)},{}],280:[function(e,y,i){"use strict";var u=e("babel-runtime/core-js/object/create"),t=v(u);function v(d){return d&&d.__esModule?d:{default:d}}(function(){var d,f,c,n=function(r,s){for(var b in s)l.call(s,b)&&(r[b]=s[b]);function h(){this.constructor=r}return h.prototype=s.prototype,r.prototype=new h,r.__super__=s.prototype,r},l={}.hasOwnProperty;d=e("./NodeType"),f=e("./XMLCharacterData"),y.exports=c=function(o){n(r,o);function r(s,b){if(r.__super__.constructor.call(this,s),b==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=d.Text,this.value=this.stringify.text(b)}return Object.defineProperty(r.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"wholeText",{get:function(){var b,h,g;for(g="",h=this.previousSibling;h;)g=h.data+g,h=h.previousSibling;for(g+=this.data,b=this.nextSibling;b;)g=g+b.data,b=b.nextSibling;return g}}),r.prototype.clone=function(){return(0,t.default)(this)},r.prototype.toString=function(s){return this.options.writer.text(this,this.options.writer.filterOptions(s))},r.prototype.splitText=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceWholeText=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},r}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(e,y,i){"use strict";(function(){var u,t,v,d,f,c,n,l,o,r,s,b,h,g,S,w,C,T={}.hasOwnProperty;C=e("./Utility").assign,u=e("./NodeType"),o=e("./XMLDeclaration"),r=e("./XMLDocType"),v=e("./XMLCData"),d=e("./XMLComment"),b=e("./XMLElement"),g=e("./XMLRaw"),S=e("./XMLText"),h=e("./XMLProcessingInstruction"),s=e("./XMLDummy"),f=e("./XMLDTDAttList"),c=e("./XMLDTDElement"),n=e("./XMLDTDEntity"),l=e("./XMLDTDNotation"),t=e("./WriterState"),y.exports=w=function(){function j(E){var O,_,p;E||(E={}),this.options=E,_=E.writer||{};for(O in _){if(!T.call(_,O))continue;p=_[O],this["_"+O]=this[O],this[O]=p}}return j.prototype.filterOptions=function(E){var O,_,p,P,N,R,A,L;return E||(E={}),E=C({},this.options,E),O={writer:this},O.pretty=E.pretty||!1,O.allowEmpty=E.allowEmpty||!1,O.indent=(_=E.indent)!=null?_:" ",O.newline=(p=E.newline)!=null?p:`
`,O.offset=(P=E.offset)!=null?P:0,O.dontPrettyTextNodes=(N=(R=E.dontPrettyTextNodes)!=null?R:E.dontprettytextnodes)!=null?N:0,O.spaceBeforeSlash=(A=(L=E.spaceBeforeSlash)!=null?L:E.spacebeforeslash)!=null?A:"",O.spaceBeforeSlash===!0&&(O.spaceBeforeSlash=" "),O.suppressPrettyCount=0,O.user={},O.state=t.None,O},j.prototype.indent=function(E,O,_){var p;return!O.pretty||O.suppressPrettyCount?"":O.pretty&&(p=(_||0)+O.offset+1,p>0)?new Array(p).join(O.indent):""},j.prototype.endline=function(E,O,_){return!O.pretty||O.suppressPrettyCount?"":O.newline},j.prototype.attribute=function(E,O,_){var p;return this.openAttribute(E,O,_),p=" "+E.name+'="'+E.value+'"',this.closeAttribute(E,O,_),p},j.prototype.cdata=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_)+"<![CDATA[",O.state=t.InsideTag,p+=E.value,O.state=t.CloseTag,p+="]]>"+this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.comment=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_)+"<!-- ",O.state=t.InsideTag,p+=E.value,O.state=t.CloseTag,p+=" -->"+this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.declaration=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_)+"<?xml",O.state=t.InsideTag,p+=' version="'+E.version+'"',E.encoding!=null&&(p+=' encoding="'+E.encoding+'"'),E.standalone!=null&&(p+=' standalone="'+E.standalone+'"'),O.state=t.CloseTag,p+=O.spaceBeforeSlash+"?>",p+=this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.docType=function(E,O,_){var p,P,N,R,A;if(_||(_=0),this.openNode(E,O,_),O.state=t.OpenTag,R=this.indent(E,O,_),R+="<!DOCTYPE "+E.root().name,E.pubID&&E.sysID?R+=' PUBLIC "'+E.pubID+'" "'+E.sysID+'"':E.sysID&&(R+=' SYSTEM "'+E.sysID+'"'),E.children.length>0){for(R+=" [",R+=this.endline(E,O,_),O.state=t.InsideTag,A=E.children,P=0,N=A.length;P<N;P++)p=A[P],R+=this.writeChildNode(p,O,_+1);O.state=t.CloseTag,R+="]"}return O.state=t.CloseTag,R+=O.spaceBeforeSlash+">",R+=this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),R},j.prototype.element=function(E,O,_){var p,P,N,R,A,L,$,V,Y,I,te,G,D,F;_||(_=0),I=!1,te="",this.openNode(E,O,_),O.state=t.OpenTag,te+=this.indent(E,O,_)+"<"+E.name,G=E.attribs;for(Y in G){if(!T.call(G,Y))continue;p=G[Y],te+=this.attribute(p,O,_)}if(N=E.children.length,R=N===0?null:E.children[0],N===0||E.children.every(function(z){return(z.type===u.Text||z.type===u.Raw)&&z.value===""}))O.allowEmpty?(te+=">",O.state=t.CloseTag,te+="</"+E.name+">"+this.endline(E,O,_)):(O.state=t.CloseTag,te+=O.spaceBeforeSlash+"/>"+this.endline(E,O,_));else if(O.pretty&&N===1&&(R.type===u.Text||R.type===u.Raw)&&R.value!=null)te+=">",O.state=t.InsideTag,O.suppressPrettyCount++,I=!0,te+=this.writeChildNode(R,O,_+1),O.suppressPrettyCount--,I=!1,O.state=t.CloseTag,te+="</"+E.name+">"+this.endline(E,O,_);else{if(O.dontPrettyTextNodes){for(D=E.children,A=0,$=D.length;A<$;A++)if(P=D[A],(P.type===u.Text||P.type===u.Raw)&&P.value!=null){O.suppressPrettyCount++,I=!0;break}}for(te+=">"+this.endline(E,O,_),O.state=t.InsideTag,F=E.children,L=0,V=F.length;L<V;L++)P=F[L],te+=this.writeChildNode(P,O,_+1);O.state=t.CloseTag,te+=this.indent(E,O,_)+"</"+E.name+">",I&&O.suppressPrettyCount--,te+=this.endline(E,O,_),O.state=t.None}return this.closeNode(E,O,_),te},j.prototype.writeChildNode=function(E,O,_){switch(E.type){case u.CData:return this.cdata(E,O,_);case u.Comment:return this.comment(E,O,_);case u.Element:return this.element(E,O,_);case u.Raw:return this.raw(E,O,_);case u.Text:return this.text(E,O,_);case u.ProcessingInstruction:return this.processingInstruction(E,O,_);case u.Dummy:return"";case u.Declaration:return this.declaration(E,O,_);case u.DocType:return this.docType(E,O,_);case u.AttributeDeclaration:return this.dtdAttList(E,O,_);case u.ElementDeclaration:return this.dtdElement(E,O,_);case u.EntityDeclaration:return this.dtdEntity(E,O,_);case u.NotationDeclaration:return this.dtdNotation(E,O,_);default:throw new Error("Unknown XML node type: "+E.constructor.name)}},j.prototype.processingInstruction=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_)+"<?",O.state=t.InsideTag,p+=E.target,E.value&&(p+=" "+E.value),O.state=t.CloseTag,p+=O.spaceBeforeSlash+"?>",p+=this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.raw=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_),O.state=t.InsideTag,p+=E.value,O.state=t.CloseTag,p+=this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.text=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_),O.state=t.InsideTag,p+=E.value,O.state=t.CloseTag,p+=this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.dtdAttList=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_)+"<!ATTLIST",O.state=t.InsideTag,p+=" "+E.elementName+" "+E.attributeName+" "+E.attributeType,E.defaultValueType!=="#DEFAULT"&&(p+=" "+E.defaultValueType),E.defaultValue&&(p+=' "'+E.defaultValue+'"'),O.state=t.CloseTag,p+=O.spaceBeforeSlash+">"+this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.dtdElement=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_)+"<!ELEMENT",O.state=t.InsideTag,p+=" "+E.name+" "+E.value,O.state=t.CloseTag,p+=O.spaceBeforeSlash+">"+this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.dtdEntity=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_)+"<!ENTITY",O.state=t.InsideTag,E.pe&&(p+=" %"),p+=" "+E.name,E.value?p+=' "'+E.value+'"':(E.pubID&&E.sysID?p+=' PUBLIC "'+E.pubID+'" "'+E.sysID+'"':E.sysID&&(p+=' SYSTEM "'+E.sysID+'"'),E.nData&&(p+=" NDATA "+E.nData)),O.state=t.CloseTag,p+=O.spaceBeforeSlash+">"+this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.dtdNotation=function(E,O,_){var p;return this.openNode(E,O,_),O.state=t.OpenTag,p=this.indent(E,O,_)+"<!NOTATION",O.state=t.InsideTag,p+=" "+E.name,E.pubID&&E.sysID?p+=' PUBLIC "'+E.pubID+'" "'+E.sysID+'"':E.pubID?p+=' PUBLIC "'+E.pubID+'"':E.sysID&&(p+=' SYSTEM "'+E.sysID+'"'),O.state=t.CloseTag,p+=O.spaceBeforeSlash+">"+this.endline(E,O,_),O.state=t.None,this.closeNode(E,O,_),p},j.prototype.openNode=function(E,O,_){},j.prototype.closeNode=function(E,O,_){},j.prototype.openAttribute=function(E,O,_){},j.prototype.closeAttribute=function(E,O,_){},j}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(e,y,i){"use strict";(function(){var u,t,v,d,f,c,n,l,o,r;r=e("./Utility"),l=r.assign,o=r.isFunction,v=e("./XMLDOMImplementation"),d=e("./XMLDocument"),f=e("./XMLDocumentCB"),n=e("./XMLStringWriter"),c=e("./XMLStreamWriter"),u=e("./NodeType"),t=e("./WriterState"),y.exports.create=function(s,b,h,g){var S,w;if(s==null)throw new Error("Root element needs a name.");return g=l({},b,h,g),S=new d(g),w=S.element(s),g.headless||(S.declaration(g),(g.pubID!=null||g.sysID!=null)&&S.dtd(g)),w},y.exports.begin=function(s,b,h){var g;return o(s)&&(g=[s,b],b=g[0],h=g[1],s={}),b?new f(s,b,h):new d(s)},y.exports.stringWriter=function(s){return new n(s)},y.exports.streamWriter=function(s,b){return new c(s,b)},y.exports.implementation=new v,y.exports.nodeType=u,y.exports.writerState=t}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(e,y,i){y.exports=t;var u=Object.prototype.hasOwnProperty;function t(){for(var v={},d=0;d<arguments.length;d++){var f=arguments[d];for(var c in f)u.call(f,c)&&(v[c]=f[c])}return v}},{}],284:[function(e,y,i){"use strict";var u=e("buffer").Buffer,t=e("./sha"),v=e("./md5"),d={sha1:t,md5:v},f=64,c=u.alloc(f);c.fill(0);function n(r,s,b){u.isBuffer(s)||(s=u.from(s)),u.isBuffer(b)||(b=u.from(b)),s.length>f?s=r(s):s.length<f&&(s=u.concat([s,c],f));for(var h=u.alloc(f),g=u.alloc(f),S=0;S<f;S++)h[S]=s[S]^54,g[S]=s[S]^92;var w=r(u.concat([h,b]));return r(u.concat([g,w]))}function l(r,s){r=r||"sha1";var b=d[r],h=[],g=0;return b||o("algorithm:",r,"is not yet supported"),{update:function(w){return u.isBuffer(w)||(w=u.from(w)),h.push(w),g+=w.length,this},digest:function(w){var C=u.concat(h),T=s?n(b,s,C):b(C);return h=null,w?T.toString(w):T}}}function o(){var r=[].slice.call(arguments).join(" ");throw new Error([r,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}i.createHash=function(r){return l(r)},i.createHmac=function(r,s){return l(r,s)},i.createCredentials=function(){o("sorry,createCredentials is not implemented yet")},i.createCipher=function(){o("sorry,createCipher is not implemented yet")},i.createCipheriv=function(){o("sorry,createCipheriv is not implemented yet")},i.createDecipher=function(){o("sorry,createDecipher is not implemented yet")},i.createDecipheriv=function(){o("sorry,createDecipheriv is not implemented yet")},i.createSign=function(){o("sorry,createSign is not implemented yet")},i.createVerify=function(){o("sorry,createVerify is not implemented yet")},i.createDiffieHellman=function(){o("sorry,createDiffieHellman is not implemented yet")},i.pbkdf2=function(){o("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(e,y,i){"use strict";var u=e("buffer").Buffer,t=4,v=u.alloc(t);v.fill(0);var d=8;function f(l,o){if(l.length%t!==0){var r=l.length+(t-l.length%t);l=u.concat([l,v],r)}for(var s=[],b=o?l.readInt32BE:l.readInt32LE,h=0;h<l.length;h+=t)s.push(b.call(l,h));return s}function c(l,o,r){for(var s=u.alloc(o),b=r?s.writeInt32BE:s.writeInt32LE,h=0;h<l.length;h++)b.call(s,l[h],h*4,!0);return s}function n(l,o,r,s){u.isBuffer(l)||(l=u.from(l));var b=o(f(l,s),l.length*d);return c(b,r,s)}y.exports={hash:n}},{buffer:73}],286:[function(e,y,i){"use strict";var u=e("./helpers");function t(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function v(s,b){s[b>>5]|=128<<b%32,s[(b+64>>>9<<4)+14]=b;for(var h=1732584193,g=-271733879,S=-1732584194,w=271733878,C=0;C<s.length;C+=16){var T=h,j=g,E=S,O=w;h=f(h,g,S,w,s[C+0],7,-680876936),w=f(w,h,g,S,s[C+1],12,-389564586),S=f(S,w,h,g,s[C+2],17,606105819),g=f(g,S,w,h,s[C+3],22,-1044525330),h=f(h,g,S,w,s[C+4],7,-176418897),w=f(w,h,g,S,s[C+5],12,1200080426),S=f(S,w,h,g,s[C+6],17,-1473231341),g=f(g,S,w,h,s[C+7],22,-45705983),h=f(h,g,S,w,s[C+8],7,1770035416),w=f(w,h,g,S,s[C+9],12,-1958414417),S=f(S,w,h,g,s[C+10],17,-42063),g=f(g,S,w,h,s[C+11],22,-1990404162),h=f(h,g,S,w,s[C+12],7,1804603682),w=f(w,h,g,S,s[C+13],12,-40341101),S=f(S,w,h,g,s[C+14],17,-1502002290),g=f(g,S,w,h,s[C+15],22,1236535329),h=c(h,g,S,w,s[C+1],5,-165796510),w=c(w,h,g,S,s[C+6],9,-1069501632),S=c(S,w,h,g,s[C+11],14,643717713),g=c(g,S,w,h,s[C+0],20,-373897302),h=c(h,g,S,w,s[C+5],5,-701558691),w=c(w,h,g,S,s[C+10],9,38016083),S=c(S,w,h,g,s[C+15],14,-660478335),g=c(g,S,w,h,s[C+4],20,-405537848),h=c(h,g,S,w,s[C+9],5,568446438),w=c(w,h,g,S,s[C+14],9,-1019803690),S=c(S,w,h,g,s[C+3],14,-187363961),g=c(g,S,w,h,s[C+8],20,1163531501),h=c(h,g,S,w,s[C+13],5,-1444681467),w=c(w,h,g,S,s[C+2],9,-51403784),S=c(S,w,h,g,s[C+7],14,1735328473),g=c(g,S,w,h,s[C+12],20,-1926607734),h=n(h,g,S,w,s[C+5],4,-378558),w=n(w,h,g,S,s[C+8],11,-2022574463),S=n(S,w,h,g,s[C+11],16,1839030562),g=n(g,S,w,h,s[C+14],23,-35309556),h=n(h,g,S,w,s[C+1],4,-1530992060),w=n(w,h,g,S,s[C+4],11,1272893353),S=n(S,w,h,g,s[C+7],16,-155497632),g=n(g,S,w,h,s[C+10],23,-1094730640),h=n(h,g,S,w,s[C+13],4,681279174),w=n(w,h,g,S,s[C+0],11,-358537222),S=n(S,w,h,g,s[C+3],16,-722521979),g=n(g,S,w,h,s[C+6],23,76029189),h=n(h,g,S,w,s[C+9],4,-640364487),w=n(w,h,g,S,s[C+12],11,-421815835),S=n(S,w,h,g,s[C+15],16,530742520),g=n(g,S,w,h,s[C+2],23,-995338651),h=l(h,g,S,w,s[C+0],6,-198630844),w=l(w,h,g,S,s[C+7],10,1126891415),S=l(S,w,h,g,s[C+14],15,-1416354905),g=l(g,S,w,h,s[C+5],21,-57434055),h=l(h,g,S,w,s[C+12],6,1700485571),w=l(w,h,g,S,s[C+3],10,-1894986606),S=l(S,w,h,g,s[C+10],15,-1051523),g=l(g,S,w,h,s[C+1],21,-2054922799),h=l(h,g,S,w,s[C+8],6,1873313359),w=l(w,h,g,S,s[C+15],10,-30611744),S=l(S,w,h,g,s[C+6],15,-1560198380),g=l(g,S,w,h,s[C+13],21,1309151649),h=l(h,g,S,w,s[C+4],6,-145523070),w=l(w,h,g,S,s[C+11],10,-1120210379),S=l(S,w,h,g,s[C+2],15,718787259),g=l(g,S,w,h,s[C+9],21,-343485551),h=o(h,T),g=o(g,j),S=o(S,E),w=o(w,O)}return Array(h,g,S,w)}function d(s,b,h,g,S,w){return o(r(o(o(b,s),o(g,w)),S),h)}function f(s,b,h,g,S,w,C){return d(b&h|~b&g,s,b,S,w,C)}function c(s,b,h,g,S,w,C){return d(b&g|h&~g,s,b,S,w,C)}function n(s,b,h,g,S,w,C){return d(b^h^g,s,b,S,w,C)}function l(s,b,h,g,S,w,C){return d(h^(b|~g),s,b,S,w,C)}function o(s,b){var h=(s&65535)+(b&65535),g=(s>>16)+(b>>16)+(h>>16);return g<<16|h&65535}function r(s,b){return s<<b|s>>>32-b}y.exports=function(b){return u.hash(b,v,16)}},{"./helpers":285}],287:[function(e,y,i){"use strict";var u=e("./helpers");function t(n,l){n[l>>5]|=128<<24-l%32,n[(l+64>>9<<4)+15]=l;for(var o=Array(80),r=1732584193,s=-271733879,b=-1732584194,h=271733878,g=-1009589776,S=0;S<n.length;S+=16){for(var w=r,C=s,T=b,j=h,E=g,O=0;O<80;O++){O<16?o[O]=n[S+O]:o[O]=c(o[O-3]^o[O-8]^o[O-14]^o[O-16],1);var _=f(f(c(r,5),v(O,s,b,h)),f(f(g,o[O]),d(O)));g=h,h=b,b=c(s,30),s=r,r=_}r=f(r,w),s=f(s,C),b=f(b,T),h=f(h,j),g=f(g,E)}return Array(r,s,b,h,g)}function v(n,l,o,r){return n<20?l&o|~l&r:n<40?l^o^r:n<60?l&o|l&r|o&r:l^o^r}function d(n){return n<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514}function f(n,l){var o=(n&65535)+(l&65535),r=(n>>16)+(l>>16)+(o>>16);return r<<16|o&65535}function c(n,l){return n<<l|n>>>32-l}y.exports=function(l){return u.hash(l,t,20,!0)}},{"./helpers":285}],288:[function(e,y,i){"use strict";y.exports=function(){return function(){}}},{}],289:[function(e,y,i){(function(u){"use strict";var t=e("babel-runtime/helpers/typeof"),v=d(t);function d(r){return r&&r.__esModule?r:{default:r}}var f=e("stream"),c=f.Stream,n=e("../lib/common/utils/isArray"),l=n.isArray;y.exports.string=function(s){return typeof s=="string"},y.exports.array=l,y.exports.buffer=u.isBuffer;function o(r){return r instanceof c}y.exports.writableStream=function(s){return o(s)&&typeof s._write=="function"&&(0,v.default)(s._writableState)==="object"}}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(e,y,i){"use strict";i.encodeURIComponent=function(u){try{return encodeURIComponent(u)}catch(t){return u}},i.escape=e("escape-html"),i.timestamp=function(t){if(t){var v=t;return typeof v=="string"&&(v=Number(v)),String(t).length===10&&(v*=1e3),new Date(v)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(e,y,i){(function(u,t){"use strict";var v=e("babel-runtime/core-js/json/stringify"),d=n(v),f=e("babel-runtime/helpers/typeof"),c=n(f);function n(O){return O&&O.__esModule?O:{default:O}}var l=e("util"),o=e("url"),r=e("http"),s=e("https"),b=e("debug")("urllib"),h=e("humanize-ms"),g,S=0,w=Math.pow(2,31)-10,C=/^https?:\/\//i;function T(O,_){return O===void 0?_:O}function j(O,_){return function(p,P,N){if(p)return _(p);O({data:P,status:N.statusCode,headers:N.headers,res:N})}}i.TIMEOUTS=[h("300s"),h("300s")];var E=["json","text"];i.request=function(_,p,P){return arguments.length===2&&typeof p=="function"&&(P=p,p=null),typeof P=="function"?i.requestWithCallback(_,p,P):(g||(g=e("any-promise")),new g(function(N,R){i.requestWithCallback(_,p,j(N,R))}))},i.requestWithCallback=function(_,p,P){if(!_||typeof _!="string"&&(typeof _=="undefined"?"undefined":(0,c.default)(_))!=="object"){var N=l.format("expect request url to be a string or a http request options, but got %j",_);throw new Error(N)}arguments.length===2&&typeof p=="function"&&(P=p,p=null),p=p||{},S>=w&&(S=0);var R=++S;p.requestUrls=p.requestUrls||[];var A={requestId:R,url:_,args:p,ctx:p.ctx};p.emitter&&p.emitter.emit("request",A),p.timeout=p.timeout||i.TIMEOUTS,p.maxRedirects=p.maxRedirects||10,p.streaming=p.streaming||p.customResponse;var L=Date.now(),$;typeof _=="string"?(C.test(_)||(_="http://"+_),$=o.parse(_)):$=_;var V=(p.type||p.method||$.method||"GET").toUpperCase(),Y=$.port||80,I=r,te=T(p.agent,i.agent),G=p.fixJSONCtlChars;$.protocol==="https:"&&(I=s,te=T(p.httpsAgent,i.httpsAgent),$.port||(Y=443));var D={host:$.hostname||$.host||"localhost",path:$.path||"/",method:V,port:Y,agent:te,headers:p.headers||{},lookup:p.lookup};Array.isArray(p.timeout)?D.requestTimeout=p.timeout[p.timeout.length-1]:typeof p.timeout!="undefined"&&(D.requestTimeout=p.timeout);for(var F=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],z=0;z<F.length;z++){var q=F[z];p.hasOwnProperty(q)&&(D[q]=p[q])}D.rejectUnauthorized===!1&&!D.hasOwnProperty("secureOptions")&&(D.secureOptions=e("constants").SSL_OP_NO_TLSv1_2);var M=p.auth||$.auth;M&&(D.auth=M);var J=p.content||p.data,ae=V==="GET"||V==="HEAD"||p.dataAsQueryString;if(!p.content&&(J&&!(typeof J=="string"||t.isBuffer(J))))if(ae)J=p.nestedQuerystring?qs.stringify(J):querystring.stringify(J);else{var ne=D.headers["Content-Type"]||D.headers["content-type"];ne||(p.contentType==="json"?ne="application/json":ne="application/x-www-form-urlencoded",D.headers["Content-Type"]=ne),parseContentType(ne).type==="application/json"?J=(0,d.default)(J):J=p.nestedQuerystring?qs.stringify(J):querystring.stringify(J)}ae&&J&&(D.path+=($.query?"&":"?")+J,J=null);var me=0;if(J){var be=J.length;t.isBuffer(J)||(be=t.byteLength(J)),me=D.headers["Content-Length"]=be}p.dataType==="json"&&(D.headers.Accept="application/json"),typeof p.beforeRequest=="function"&&p.beforeRequest(D);var K=null,Ne=null,ue=null,ee=!1,Z=!1,re=0,ce=-1,U=!1,B="",oe="",k=null;p.timing&&(k={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function x(){K&&(clearTimeout(K),K=null)}function a(){Ne&&(clearTimeout(Ne),Ne=null)}function m(le,xe,je){if(a(),!P){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),R,u.pid,D.method,_),le&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),R,u.pid,le.name,le.message,le.stack);return}var Le=P;P=null;var Te={};if(je&&(ce=je.statusCode,Te=je.headers),ce===401&&Te["www-authenticate"]&&(!p.headers||!p.headers.Authorization)&&p.digestAuth){var X=Te["www-authenticate"];if(X.indexOf("Digest ")>=0)return b("Request#%d %s: got digest auth header WWW-Authenticate: %s",R,_,X),p.headers=p.headers||{},p.headers.Authorization=digestAuthHeader(D.method,D.path,X,p.digestAuth),b("Request#%d %s: auth with digest header: %s",R,_,p.headers.Authorization),je.headers["set-cookie"]&&(p.headers.Cookie=je.headers["set-cookie"].join(";")),i.requestWithCallback(_,p,Le)}var ie=Date.now()-L;k&&(k.contentDownload=ie),b("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",ie,re,ce,D.method,D.host,D.path,Z,k);var ge={status:ce,statusCode:ce,headers:Te,size:re,aborted:U,rt:ie,keepAliveSocket:Z,data:xe,requestUrls:p.requestUrls,timing:k,remoteAddress:B,remotePort:oe};if(le){var Se="";te&&typeof te.getCurrentStatus=="function"&&(Se=", agent status: "+(0,d.default)(te.getCurrentStatus())),le.message+=", "+D.method+" "+_+" "+ce+" (connected: "+ee+", keepalive socket: "+Z+Se+`)
headers: `+(0,d.default)(Te),le.data=xe,le.path=D.path,le.status=ce,le.headers=Te,le.res=ge}Le(le,xe,p.streaming?je:ge),p.emitter&&(A.url=_,A.socket=_e&&_e.connection,A.options=D,A.size=me,p.emitter.emit("response",{requestId:R,error:le,ctx:p.ctx,req:A,res:ge}))}function H(le){var xe=null;if(p.followRedirect&&statuses.redirect[le.statusCode]){p._followRedirectCount=(p._followRedirectCount||0)+1;var je=le.headers.location;if(!je)xe=new Error("Got statusCode "+le.statusCode+" but cannot resolve next location from headers"),xe.name="FollowRedirectError";else if(p._followRedirectCount>p.maxRedirects)xe=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+_),xe.name="MaxRedirectError";else{var Le=p.formatRedirectUrl?p.formatRedirectUrl(_,je):o.resolve(_,je);b("Request#%d %s: `redirected` from %s to %s",R,D.path,_,Le),a(),p.headers&&p.headers.Host&&C.test(je)&&(p.headers.Host=null);var Te=P;return P=null,i.requestWithCallback(Le,p,Te),{redirect:!0,error:null}}}return{redirect:!1,error:xe}}!D.headers["User-Agent"]&&!D.headers["user-agent"]&&(D.headers["User-Agent"]=navigator.userAgent),p.gzip&&(!D.headers["Accept-Encoding"]&&!D.headers["accept-encoding"]&&(D.headers["Accept-Encoding"]="gzip"));function W(le,xe,je){var Le=le.headers["content-encoding"];return je(null,xe,Le)}var Q=p.writeStream;b("Request#%d %s %s with headers %j, options.path: %s",R,V,_,D.headers,D.path),p.requestUrls.push(_);function pe(le){if(k&&(k.waiting=Date.now()-L),b("Request#%d %s `req response` event emit: status %d, headers: %j",R,_,le.statusCode,le.headers),p.streaming){var xe=H(le);if(xe.redirect){le.resume();return}return xe.error?(le.resume(),m(xe.error,null,le)):m(null,null,le)}if(le.on("close",function(){b("Request#%d %s: `res close` event emit, total size %d",R,_,re)}),le.on("error",function(){b("Request#%d %s: `res error` event emit, total size %d",R,_,re)}),le.on("aborted",function(){U=!0,b("Request#%d %s: `res aborted` event emit, total size %d",R,_,re)}),Q){var xe=H(le);if(xe.redirect){le.resume();return}return xe.error?(le.resume(),Q.end(),m(xe.error,null,le)):(p.consumeWriteStream===!1?le.on("end",m.bind(null,null,null,le)):isNode010||isNode012?first([[Q,"close"],[le,"aborted"]],function(Te,X,ie){b("Request#%d %s: writeStream or res %s event emitted",R,_,ie),m(ue||null,null,le)}):Q.on("close",function(){b("Request#%d %s: writeStream close event emitted",R,_),m(ue||null,null,le)}),le.pipe(Q))}var je=[];le.on("data",function(Le){b("Request#%d %s: `res data` event emit, size %d",R,_,Le.length),re+=Le.length,je.push(Le)}),le.on("end",function(){var Le=t.concat(je,re);if(b("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",R,_,re,le._dumped),ue)return m(ue,Le,le);var Te=H(le);if(Te.error)return m(Te.error,Le,le);if(Te.redirect)return;W(le,Le,function(X,ie,ge){if(X)return m(X,Le,le);if(!ge&&E.indexOf(p.dataType)>=0){try{ie=decodeBodyByCharset(ie,le)}catch(Ie){return b("decodeBodyByCharset error: %s",Ie),m(null,ie,le)}if(p.dataType==="json")if(re===0)ie=null;else{var Se=parseJSON(ie,G);Se.error?X=Se.error:ie=Se.data}}U&&b("Request#%d %s: Remote socket was terminated before `response.end()` was called",R,_),m(X,ie,le)})})}var ye,we;Array.isArray(p.timeout)?(ye=h(p.timeout[0]),we=h(p.timeout[1])):ye=we=h(p.timeout),b("ConnectTimeout: %d, ResponseTimeout: %d",ye,we);function Re(){b("Connect timer ticking, timeout: %d",ye),K=setTimeout(function(){K=null,ce===-1&&(ce=-2);var le="Connect timeout for "+ye+"ms",xe="ConnectionTimeoutError";_e.socket||(xe="SocketAssignTimeoutError",le+=", working sockets is full"),ue=new Error(le),ue.name=xe,ue.requestId=R,b("ConnectTimeout: Request#%d %s %s: %s, connected: %s",R,_,ue.name,le,ee),de()},ye)}function Oe(){b("Response timer ticking, timeout: %d",we),Ne=setTimeout(function(){Ne=null;var le="Response timeout for "+we+"ms",xe="ResponseTimeoutError";ue=new Error(le),ue.name=xe,ue.requestId=R,b("ResponseTimeout: Request#%d %s %s: %s, connected: %s",R,_,ue.name,le,ee),de()},we)}var _e;D.mode=p.mode?p.mode:"";try{_e=I.request(D,pe)}catch(le){return m(le)}typeof window=="undefined"?Re():_e.on("requestTimeout",function(){ce===-1&&(ce=-2);var le="Connect timeout for "+ye+"ms",xe="ConnectionTimeoutError";ue=new Error(le),ue.name=xe,ue.requestId=R,de()});function de(){b("Request#%d %s abort, connected: %s",R,_,ee),_e.socket||(ue.noSocket=!0,m(ue)),_e.abort()}return k&&_e.on("finish",function(){k.requestSent=Date.now()-L}),_e.once("socket",function(le){k&&(k.queuing=Date.now()-L),isNode010&&le.socket&&(le=le.socket);var xe=le.readyState;if(xe==="opening"){le.once("lookup",function(je,Le,Te){b("Request#%d %s lookup: %s, %s, %s",R,_,je,Le,Te),k&&(k.dnslookup=Date.now()-L),Le&&(B=Le)}),le.once("connect",function(){k&&(k.connected=Date.now()-L),x(),Oe(),b("Request#%d %s new socket connected",R,_),ee=!0,B||(B=le.remoteAddress),oe=le.remotePort});return}b("Request#%d %s reuse socket connected, readyState: %s",R,_,xe),ee=!0,Z=!0,B||(B=le.remoteAddress),oe=le.remotePort,x(),Oe()}),_e.on("error",function(le){(le.name==="Error"||le.name==="TypeError")&&(le.name=ee?"ResponseError":"RequestError"),le.message+=' (req "error")',b("Request#%d %s `req error` event emit, %s: %s",R,_,le.name,le.message),m(ue||le)}),Q&&Q.once("error",function(le){le.message+=' (writeStream "error")',ue=le,b("Request#%d %s `writeStream error` event emit, %s: %s",R,_,le.name,le.message),de()}),p.stream?(p.stream.pipe(_e),p.stream.once("error",function(le){le.message+=' (stream "error")',ue=le,b("Request#%d %s `readStream error` event emit, %s: %s",R,_,le.name,le.message),de()})):_e.end(J),_e.requestId=R,_e}}).call(this,e("_process"),e("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},o5mm:function(e,y,i){e.exports={flex_box_center:"flex_box_center___yMfGk",flex_space_between:"flex_space_between___3T4Rr",flex_box_vertical_center:"flex_box_vertical_center___2K9ch",flex_box_center_end:"flex_box_center_end___1GgKp",flex_box_column:"flex_box_column___2DSuN",shixunWrp:"shixunWrp___2_2ep"}},s8TD:function(e,y,i){"use strict";i.d(y,"a",function(){return s});var u=i("Pv/L"),t=i("14J3"),v=i("BMrR"),d=i("jCWc"),f=i("kPKH"),c=i("2qtc"),n=i("kLXV"),l=i("q1tI"),o=i.n(l),r=i("dfu6"),s=function(h){return new Promise(function(g,S){if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return S("WebRTC not supported by browser");var w=new RTCPeerConnection,C=[];w.createDataChannel(""),w.createOffer().then(function(T){return w.setLocalDescription(T)}).catch(function(T){return S(T)}),w.onicecandidate=function(T){console.log("event:",T);var j=[];if(!T||!T.candidate){if(console.log("ips",C),C.length==0||!Object(r.a)(C[0])){var E=n.a.info({title:o.a.createElement(v.a,null,o.a.createElement(f.a,{flex:"1"},"\u63D0\u793A"),o.a.createElement(f.a,null,o.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return E.destroy()}}))),icon:null,width:500,className:"custom-modal-divider",content:o.a.createElement(v.a,null,o.a.createElement(f.a,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",h.ip_limit==="inner"&&o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),o.a.createElement("br",null),o.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return S("WebRTC disabled or restricted by browser")}var O=C.filter(function(G){return Object(r.a)(G)});return g(O.join(""))}var _=T.candidate.candidate.split(" "),p=Object(u.a)(_),P=p[0],N=p[1],R=p[2],A=p[3],L=p[4],$=p[5],V=p[7],Y=p.slice(8),I=["rtp","rtpc"];if(console.log("event:",T),C.some(function(G){return G==L})||C.push(L),console.log(" candidate: "+P.split(":")[1]),console.log(" component: "+I[N-1]),console.log(" protocol: "+R),console.log(" priority: "+A),console.log(" ip: "+L),console.log(" port: "+$),console.log(" type: "+V),Y.length){console.log("attributes: ");for(var te=0;te<Y.length;te+=2)console.log("> "+Y[te]+": "+Y[te+1])}}})}},xKgJ:function(e,y,i){"use strict";i.d(y,"o",function(){return c}),i.d(y,"b",function(){return n}),i.d(y,"c",function(){return l}),i.d(y,"e",function(){return o}),i.d(y,"f",function(){return r}),i.d(y,"s",function(){return s}),i.d(y,"g",function(){return b}),i.d(y,"t",function(){return h}),i.d(y,"d",function(){return g}),i.d(y,"i",function(){return S}),i.d(y,"j",function(){return w}),i.d(y,"q",function(){return T}),i.d(y,"h",function(){return j}),i.d(y,"p",function(){return O}),i.d(y,"r",function(){return N}),i.d(y,"a",function(){return L}),i.d(y,"l",function(){return ce}),i.d(y,"m",function(){return U}),i.d(y,"k",function(){return B}),i.d(y,"n",function(){return k}),i.d(y,"u",function(){return x});var u=i("9kvl"),t;(function(a){a[a.SuperAdmin=1]="SuperAdmin",a[a.Operation=2]="Operation",a[a.CertifiedTeacher=5]="CertifiedTeacher",a[a.TrainingProduction=8]="TrainingProduction",a[a.UncertifiedTeacher=12]="UncertifiedTeacher",a[a.Student=15]="Student"})(t||(t={}));var v;(function(a){a[a.SuperAdmin=1]="SuperAdmin",a[a.Operation=2]="Operation",a[a.Admin=5]="Admin",a[a.Teacher=8]="Teacher",a[a.Assistant=12]="Assistant",a[a.Student=15]="Student"})(v||(v={}));var d=function(m){var H=Object(u.b)()._store.getState(),W=H.user,Q=W.userInfo;return m.some(function(pe){return pe==(Q==null?void 0:Q.role)})},f=function(m){var H=Object(u.b)()._store.getState(),W=H.user,Q=W.userInfo;return(Q==null?void 0:Q.own)?!0:m.some(function(pe){var ye;return pe==(Q==null||((ye=Q.course)===null||ye===void 0)?void 0:ye.course_role)})},c=function(){var m=Object(u.b)()._store.getState(),H=m.user,W=H.userInfo;return W.main_site},n=function(){var m,H=Object(u.b)()._store.getState(),W=H.user,Q=W.userInfo;return Q==null||((m=Q.course)===null||m===void 0)?void 0:m.course_is_end},l=function(){return f([v.SuperAdmin,v.Operation,v.Admin,v.Teacher,v.Assistant])},o=function(){return f([v.SuperAdmin,v.Teacher,v.Admin,v.Assistant,v.Operation])},r=function(){return f([v.SuperAdmin,v.Teacher,v.Admin])},s=function(){return f([v.SuperAdmin])},b=function(){return f([v.SuperAdmin,v.Operation,v.Admin])},h=function(){return d([v.SuperAdmin,v.Operation])},g=function(){return f([v.SuperAdmin,v.Admin])},S=function(){return f([v.SuperAdmin,v.Operation,v.Admin,v.Teacher])},w=function(){return f([v.Assistant])},C=function(){return f([v.Teacher])},T=function(){return f([v.Student])},j=function(){return f([v.SuperAdmin,v.Operation,v.Admin,v.Teacher,v.Assistant,v.Student])},E=function(){return f([v.SuperAdmin,v.Operation,v.Admin,v.Teacher,v.Assistant])},O=function(){var m,H=Object(u.b)()._store.getState(),W=H.user,Q=W.userInfo;return(Q==null||((m=Q.course)===null||m===void 0)?void 0:m.course_role)===null},_=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student])},p=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return H||!H&&d([t.SuperAdmin])},P=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return H||!H&&d([t.SuperAdmin,t.Operation])},N=function(){return d([v.Student])},R=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):H||!H&&d([t.SuperAdmin,t.Operation])},A=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):H||!H&&d([t.SuperAdmin,t.Operation])},L=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction])},$=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin]):H||!H&&d([t.SuperAdmin])},V=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation]):H||!H&&d([t.SuperAdmin,t.Operation])},Y=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):H||!H&&d([t.SuperAdmin,t.Operation])},I=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):H||!H&&d([t.SuperAdmin,t.Operation])},te=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher]):H||!H&&d([t.SuperAdmin,t.Operation])},G=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin]):!1},D=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student])},F=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin]):H||!H&&d([t.SuperAdmin])},z=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation]):H||!H&&d([t.SuperAdmin,t.Operation])},q=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher,t.Student]):H||!H&&d([t.SuperAdmin,t.Operation])},M=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?!1:H||!H&&d([t.SuperAdmin,t.Operation])},J=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?H||!H&&d([t.SuperAdmin,t.Operation]):!1},ae=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):!1},ne=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?!H&&d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):!1},me=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher]):H||!H&&d([t.SuperAdmin,t.Operation])},be=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher])},K=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin]):H||!H&&d([t.SuperAdmin])},Ne=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation]):H||!H&&d([t.SuperAdmin,t.Operation])},ue=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):H||!H&&d([t.SuperAdmin,t.Operation])},ee=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?H||!H&&d([t.SuperAdmin,t.Operation]):!1},Z=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m?d([t.SuperAdmin,t.Operation,t.CertifiedTeacher,t.TrainingProduction,t.UncertifiedTeacher]):H||!H&&d([t.SuperAdmin,t.Operation])},re=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f([v.Teacher])},ce=function(){return d([t.SuperAdmin])},U=function(){return d([t.SuperAdmin,t.Operation])},B=function(){return d([t.Student])},oe=function(){return d([t.SuperAdmin,t.Operation,t.CertifiedTeacher])},k=function(){var m,H=Object(u.b)()._store.getState(),W=H.user;return!!((m=W.userInfo)===null||m===void 0?void 0:m.login)},x=function(){var m=Object(u.b)()._store.getState(),H=m.user;return H.userInfo}}}]);