pdf.worker.js 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269
  1. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  3. /* Copyright 2012 Mozilla Foundation
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /*jshint globalstrict: false */
  18. // Initializing PDFJS global object (if still undefined)
  19. if (typeof PDFJS === 'undefined') {
  20. (typeof window !== 'undefined' ? window : this).PDFJS = {};
  21. }
  22. PDFJS.version = '1.0.385';
  23. PDFJS.build = '0f0f068';
  24. (function pdfjsWrapper() {
  25. // Use strict in our context only - users might not want it
  26. 'use strict';
  27. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  28. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  29. /* Copyright 2012 Mozilla Foundation
  30. *
  31. * Licensed under the Apache License, Version 2.0 (the "License");
  32. * you may not use this file except in compliance with the License.
  33. * You may obtain a copy of the License at
  34. *
  35. * http://www.apache.org/licenses/LICENSE-2.0
  36. *
  37. * Unless required by applicable law or agreed to in writing, software
  38. * distributed under the License is distributed on an "AS IS" BASIS,
  39. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40. * See the License for the specific language governing permissions and
  41. * limitations under the License.
  42. */
  43. /* globals Cmd, ColorSpace, Dict, MozBlobBuilder, Name, PDFJS, Ref, URL,
  44. Promise */
  45. 'use strict';
  46. var globalScope = (typeof window === 'undefined') ? this : window;
  47. var isWorker = (typeof window == 'undefined');
  48. var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
  49. var TextRenderingMode = {
  50. FILL: 0,
  51. STROKE: 1,
  52. FILL_STROKE: 2,
  53. INVISIBLE: 3,
  54. FILL_ADD_TO_PATH: 4,
  55. STROKE_ADD_TO_PATH: 5,
  56. FILL_STROKE_ADD_TO_PATH: 6,
  57. ADD_TO_PATH: 7,
  58. FILL_STROKE_MASK: 3,
  59. ADD_TO_PATH_FLAG: 4
  60. };
  61. var ImageKind = {
  62. GRAYSCALE_1BPP: 1,
  63. RGB_24BPP: 2,
  64. RGBA_32BPP: 3
  65. };
  66. var StreamType = {
  67. UNKNOWN: 0,
  68. FLATE: 1,
  69. LZW: 2,
  70. DCT: 3,
  71. JPX: 4,
  72. JBIG: 5,
  73. A85: 6,
  74. AHX: 7,
  75. CCF: 8,
  76. RL: 9
  77. };
  78. var FontType = {
  79. UNKNOWN: 0,
  80. TYPE1: 1,
  81. TYPE1C: 2,
  82. CIDFONTTYPE0: 3,
  83. CIDFONTTYPE0C: 4,
  84. TRUETYPE: 5,
  85. CIDFONTTYPE2: 6,
  86. TYPE3: 7,
  87. OPENTYPE: 8,
  88. TYPE0: 9,
  89. MMTYPE1: 10
  90. };
  91. // The global PDFJS object exposes the API
  92. // In production, it will be declared outside a global wrapper
  93. // In development, it will be declared here
  94. if (!globalScope.PDFJS) {
  95. globalScope.PDFJS = {};
  96. }
  97. globalScope.PDFJS.pdfBug = false;
  98. PDFJS.VERBOSITY_LEVELS = {
  99. errors: 0,
  100. warnings: 1,
  101. infos: 5
  102. };
  103. // All the possible operations for an operator list.
  104. var OPS = PDFJS.OPS = {
  105. // Intentionally start from 1 so it is easy to spot bad operators that will be
  106. // 0's.
  107. dependency: 1,
  108. setLineWidth: 2,
  109. setLineCap: 3,
  110. setLineJoin: 4,
  111. setMiterLimit: 5,
  112. setDash: 6,
  113. setRenderingIntent: 7,
  114. setFlatness: 8,
  115. setGState: 9,
  116. save: 10,
  117. restore: 11,
  118. transform: 12,
  119. moveTo: 13,
  120. lineTo: 14,
  121. curveTo: 15,
  122. curveTo2: 16,
  123. curveTo3: 17,
  124. closePath: 18,
  125. rectangle: 19,
  126. stroke: 20,
  127. closeStroke: 21,
  128. fill: 22,
  129. eoFill: 23,
  130. fillStroke: 24,
  131. eoFillStroke: 25,
  132. closeFillStroke: 26,
  133. closeEOFillStroke: 27,
  134. endPath: 28,
  135. clip: 29,
  136. eoClip: 30,
  137. beginText: 31,
  138. endText: 32,
  139. setCharSpacing: 33,
  140. setWordSpacing: 34,
  141. setHScale: 35,
  142. setLeading: 36,
  143. setFont: 37,
  144. setTextRenderingMode: 38,
  145. setTextRise: 39,
  146. moveText: 40,
  147. setLeadingMoveText: 41,
  148. setTextMatrix: 42,
  149. nextLine: 43,
  150. showText: 44,
  151. showSpacedText: 45,
  152. nextLineShowText: 46,
  153. nextLineSetSpacingShowText: 47,
  154. setCharWidth: 48,
  155. setCharWidthAndBounds: 49,
  156. setStrokeColorSpace: 50,
  157. setFillColorSpace: 51,
  158. setStrokeColor: 52,
  159. setStrokeColorN: 53,
  160. setFillColor: 54,
  161. setFillColorN: 55,
  162. setStrokeGray: 56,
  163. setFillGray: 57,
  164. setStrokeRGBColor: 58,
  165. setFillRGBColor: 59,
  166. setStrokeCMYKColor: 60,
  167. setFillCMYKColor: 61,
  168. shadingFill: 62,
  169. beginInlineImage: 63,
  170. beginImageData: 64,
  171. endInlineImage: 65,
  172. paintXObject: 66,
  173. markPoint: 67,
  174. markPointProps: 68,
  175. beginMarkedContent: 69,
  176. beginMarkedContentProps: 70,
  177. endMarkedContent: 71,
  178. beginCompat: 72,
  179. endCompat: 73,
  180. paintFormXObjectBegin: 74,
  181. paintFormXObjectEnd: 75,
  182. beginGroup: 76,
  183. endGroup: 77,
  184. beginAnnotations: 78,
  185. endAnnotations: 79,
  186. beginAnnotation: 80,
  187. endAnnotation: 81,
  188. paintJpegXObject: 82,
  189. paintImageMaskXObject: 83,
  190. paintImageMaskXObjectGroup: 84,
  191. paintImageXObject: 85,
  192. paintInlineImageXObject: 86,
  193. paintInlineImageXObjectGroup: 87,
  194. paintImageXObjectRepeat: 88,
  195. paintImageMaskXObjectRepeat: 89,
  196. paintSolidColorImageMask: 90,
  197. constructPath: 91
  198. };
  199. // A notice for devs. These are good for things that are helpful to devs, such
  200. // as warning that Workers were disabled, which is important to devs but not
  201. // end users.
  202. function info(msg) {
  203. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.infos) {
  204. console.log('Info: ' + msg);
  205. }
  206. }
  207. // Non-fatal warnings.
  208. function warn(msg) {
  209. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.warnings) {
  210. console.log('Warning: ' + msg);
  211. }
  212. }
  213. // Fatal errors that should trigger the fallback UI and halt execution by
  214. // throwing an exception.
  215. function error(msg) {
  216. // If multiple arguments were passed, pass them all to the log function.
  217. if (arguments.length > 1) {
  218. var logArguments = ['Error:'];
  219. logArguments.push.apply(logArguments, arguments);
  220. console.log.apply(console, logArguments);
  221. // Join the arguments into a single string for the lines below.
  222. msg = [].join.call(arguments, ' ');
  223. } else {
  224. console.log('Error: ' + msg);
  225. }
  226. console.log(backtrace());
  227. UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
  228. throw new Error(msg);
  229. }
  230. function backtrace() {
  231. try {
  232. throw new Error();
  233. } catch (e) {
  234. return e.stack ? e.stack.split('\n').slice(2).join('\n') : '';
  235. }
  236. }
  237. function assert(cond, msg) {
  238. if (!cond) {
  239. error(msg);
  240. }
  241. }
  242. var UNSUPPORTED_FEATURES = PDFJS.UNSUPPORTED_FEATURES = {
  243. unknown: 'unknown',
  244. forms: 'forms',
  245. javaScript: 'javaScript',
  246. smask: 'smask',
  247. shadingPattern: 'shadingPattern',
  248. font: 'font'
  249. };
  250. var UnsupportedManager = PDFJS.UnsupportedManager =
  251. (function UnsupportedManagerClosure() {
  252. var listeners = [];
  253. return {
  254. listen: function (cb) {
  255. listeners.push(cb);
  256. },
  257. notify: function (featureId) {
  258. warn('Unsupported feature "' + featureId + '"');
  259. for (var i = 0, ii = listeners.length; i < ii; i++) {
  260. listeners[i](featureId);
  261. }
  262. }
  263. };
  264. })();
  265. // Combines two URLs. The baseUrl shall be absolute URL. If the url is an
  266. // absolute URL, it will be returned as is.
  267. function combineUrl(baseUrl, url) {
  268. if (!url) {
  269. return baseUrl;
  270. }
  271. if (/^[a-z][a-z0-9+\-.]*:/i.test(url)) {
  272. return url;
  273. }
  274. var i;
  275. if (url.charAt(0) == '/') {
  276. // absolute path
  277. i = baseUrl.indexOf('://');
  278. if (url.charAt(1) === '/') {
  279. ++i;
  280. } else {
  281. i = baseUrl.indexOf('/', i + 3);
  282. }
  283. return baseUrl.substring(0, i) + url;
  284. } else {
  285. // relative path
  286. var pathLength = baseUrl.length;
  287. i = baseUrl.lastIndexOf('#');
  288. pathLength = i >= 0 ? i : pathLength;
  289. i = baseUrl.lastIndexOf('?', pathLength);
  290. pathLength = i >= 0 ? i : pathLength;
  291. var prefixLength = baseUrl.lastIndexOf('/', pathLength);
  292. return baseUrl.substring(0, prefixLength + 1) + url;
  293. }
  294. }
  295. // Validates if URL is safe and allowed, e.g. to avoid XSS.
  296. function isValidUrl(url, allowRelative) {
  297. if (!url) {
  298. return false;
  299. }
  300. // RFC 3986 (http://tools.ietf.org/html/rfc3986#section-3.1)
  301. // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  302. var protocol = /^[a-z][a-z0-9+\-.]*(?=:)/i.exec(url);
  303. if (!protocol) {
  304. return allowRelative;
  305. }
  306. protocol = protocol[0].toLowerCase();
  307. switch (protocol) {
  308. case 'http':
  309. case 'https':
  310. case 'ftp':
  311. case 'mailto':
  312. return true;
  313. default:
  314. return false;
  315. }
  316. }
  317. PDFJS.isValidUrl = isValidUrl;
  318. function shadow(obj, prop, value) {
  319. Object.defineProperty(obj, prop, { value: value,
  320. enumerable: true,
  321. configurable: true,
  322. writable: false });
  323. return value;
  324. }
  325. var PasswordResponses = PDFJS.PasswordResponses = {
  326. NEED_PASSWORD: 1,
  327. INCORRECT_PASSWORD: 2
  328. };
  329. var PasswordException = (function PasswordExceptionClosure() {
  330. function PasswordException(msg, code) {
  331. this.name = 'PasswordException';
  332. this.message = msg;
  333. this.code = code;
  334. }
  335. PasswordException.prototype = new Error();
  336. PasswordException.constructor = PasswordException;
  337. return PasswordException;
  338. })();
  339. var UnknownErrorException = (function UnknownErrorExceptionClosure() {
  340. function UnknownErrorException(msg, details) {
  341. this.name = 'UnknownErrorException';
  342. this.message = msg;
  343. this.details = details;
  344. }
  345. UnknownErrorException.prototype = new Error();
  346. UnknownErrorException.constructor = UnknownErrorException;
  347. return UnknownErrorException;
  348. })();
  349. var InvalidPDFException = (function InvalidPDFExceptionClosure() {
  350. function InvalidPDFException(msg) {
  351. this.name = 'InvalidPDFException';
  352. this.message = msg;
  353. }
  354. InvalidPDFException.prototype = new Error();
  355. InvalidPDFException.constructor = InvalidPDFException;
  356. return InvalidPDFException;
  357. })();
  358. var MissingPDFException = (function MissingPDFExceptionClosure() {
  359. function MissingPDFException(msg) {
  360. this.name = 'MissingPDFException';
  361. this.message = msg;
  362. }
  363. MissingPDFException.prototype = new Error();
  364. MissingPDFException.constructor = MissingPDFException;
  365. return MissingPDFException;
  366. })();
  367. var NotImplementedException = (function NotImplementedExceptionClosure() {
  368. function NotImplementedException(msg) {
  369. this.message = msg;
  370. }
  371. NotImplementedException.prototype = new Error();
  372. NotImplementedException.prototype.name = 'NotImplementedException';
  373. NotImplementedException.constructor = NotImplementedException;
  374. return NotImplementedException;
  375. })();
  376. var MissingDataException = (function MissingDataExceptionClosure() {
  377. function MissingDataException(begin, end) {
  378. this.begin = begin;
  379. this.end = end;
  380. this.message = 'Missing data [' + begin + ', ' + end + ')';
  381. }
  382. MissingDataException.prototype = new Error();
  383. MissingDataException.prototype.name = 'MissingDataException';
  384. MissingDataException.constructor = MissingDataException;
  385. return MissingDataException;
  386. })();
  387. var XRefParseException = (function XRefParseExceptionClosure() {
  388. function XRefParseException(msg) {
  389. this.message = msg;
  390. }
  391. XRefParseException.prototype = new Error();
  392. XRefParseException.prototype.name = 'XRefParseException';
  393. XRefParseException.constructor = XRefParseException;
  394. return XRefParseException;
  395. })();
  396. function bytesToString(bytes) {
  397. var length = bytes.length;
  398. var MAX_ARGUMENT_COUNT = 8192;
  399. if (length < MAX_ARGUMENT_COUNT) {
  400. return String.fromCharCode.apply(null, bytes);
  401. }
  402. var strBuf = [];
  403. for (var i = 0; i < length; i += MAX_ARGUMENT_COUNT) {
  404. var chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length);
  405. var chunk = bytes.subarray(i, chunkEnd);
  406. strBuf.push(String.fromCharCode.apply(null, chunk));
  407. }
  408. return strBuf.join('');
  409. }
  410. function stringToArray(str) {
  411. var length = str.length;
  412. var array = [];
  413. for (var i = 0; i < length; ++i) {
  414. array[i] = str.charCodeAt(i);
  415. }
  416. return array;
  417. }
  418. function stringToBytes(str) {
  419. var length = str.length;
  420. var bytes = new Uint8Array(length);
  421. for (var i = 0; i < length; ++i) {
  422. bytes[i] = str.charCodeAt(i) & 0xFF;
  423. }
  424. return bytes;
  425. }
  426. function string32(value) {
  427. return String.fromCharCode((value >> 24) & 0xff, (value >> 16) & 0xff,
  428. (value >> 8) & 0xff, value & 0xff);
  429. }
  430. function log2(x) {
  431. var n = 1, i = 0;
  432. while (x > n) {
  433. n <<= 1;
  434. i++;
  435. }
  436. return i;
  437. }
  438. function readInt8(data, start) {
  439. return (data[start] << 24) >> 24;
  440. }
  441. function readUint16(data, offset) {
  442. return (data[offset] << 8) | data[offset + 1];
  443. }
  444. function readUint32(data, offset) {
  445. return ((data[offset] << 24) | (data[offset + 1] << 16) |
  446. (data[offset + 2] << 8) | data[offset + 3]) >>> 0;
  447. }
  448. // Lazy test the endianness of the platform
  449. // NOTE: This will be 'true' for simulated TypedArrays
  450. function isLittleEndian() {
  451. var buffer8 = new Uint8Array(2);
  452. buffer8[0] = 1;
  453. var buffer16 = new Uint16Array(buffer8.buffer);
  454. return (buffer16[0] === 1);
  455. }
  456. Object.defineProperty(PDFJS, 'isLittleEndian', {
  457. configurable: true,
  458. get: function PDFJS_isLittleEndian() {
  459. return shadow(PDFJS, 'isLittleEndian', isLittleEndian());
  460. }
  461. });
  462. // Lazy test if the userAgant support CanvasTypedArrays
  463. function hasCanvasTypedArrays() {
  464. var canvas = document.createElement('canvas');
  465. canvas.width = canvas.height = 1;
  466. var ctx = canvas.getContext('2d');
  467. var imageData = ctx.createImageData(1, 1);
  468. return (typeof imageData.data.buffer !== 'undefined');
  469. }
  470. Object.defineProperty(PDFJS, 'hasCanvasTypedArrays', {
  471. configurable: true,
  472. get: function PDFJS_hasCanvasTypedArrays() {
  473. return shadow(PDFJS, 'hasCanvasTypedArrays', hasCanvasTypedArrays());
  474. }
  475. });
  476. var Uint32ArrayView = (function Uint32ArrayViewClosure() {
  477. function Uint32ArrayView(buffer, length) {
  478. this.buffer = buffer;
  479. this.byteLength = buffer.length;
  480. this.length = length === undefined ? (this.byteLength >> 2) : length;
  481. ensureUint32ArrayViewProps(this.length);
  482. }
  483. Uint32ArrayView.prototype = Object.create(null);
  484. var uint32ArrayViewSetters = 0;
  485. function createUint32ArrayProp(index) {
  486. return {
  487. get: function () {
  488. var buffer = this.buffer, offset = index << 2;
  489. return (buffer[offset] | (buffer[offset + 1] << 8) |
  490. (buffer[offset + 2] << 16) | (buffer[offset + 3] << 24)) >>> 0;
  491. },
  492. set: function (value) {
  493. var buffer = this.buffer, offset = index << 2;
  494. buffer[offset] = value & 255;
  495. buffer[offset + 1] = (value >> 8) & 255;
  496. buffer[offset + 2] = (value >> 16) & 255;
  497. buffer[offset + 3] = (value >>> 24) & 255;
  498. }
  499. };
  500. }
  501. function ensureUint32ArrayViewProps(length) {
  502. while (uint32ArrayViewSetters < length) {
  503. Object.defineProperty(Uint32ArrayView.prototype,
  504. uint32ArrayViewSetters,
  505. createUint32ArrayProp(uint32ArrayViewSetters));
  506. uint32ArrayViewSetters++;
  507. }
  508. }
  509. return Uint32ArrayView;
  510. })();
  511. var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
  512. var Util = PDFJS.Util = (function UtilClosure() {
  513. function Util() {}
  514. Util.makeCssRgb = function Util_makeCssRgb(rgb) {
  515. return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')';
  516. };
  517. // Concatenates two transformation matrices together and returns the result.
  518. Util.transform = function Util_transform(m1, m2) {
  519. return [
  520. m1[0] * m2[0] + m1[2] * m2[1],
  521. m1[1] * m2[0] + m1[3] * m2[1],
  522. m1[0] * m2[2] + m1[2] * m2[3],
  523. m1[1] * m2[2] + m1[3] * m2[3],
  524. m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
  525. m1[1] * m2[4] + m1[3] * m2[5] + m1[5]
  526. ];
  527. };
  528. // For 2d affine transforms
  529. Util.applyTransform = function Util_applyTransform(p, m) {
  530. var xt = p[0] * m[0] + p[1] * m[2] + m[4];
  531. var yt = p[0] * m[1] + p[1] * m[3] + m[5];
  532. return [xt, yt];
  533. };
  534. Util.applyInverseTransform = function Util_applyInverseTransform(p, m) {
  535. var d = m[0] * m[3] - m[1] * m[2];
  536. var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
  537. var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
  538. return [xt, yt];
  539. };
  540. // Applies the transform to the rectangle and finds the minimum axially
  541. // aligned bounding box.
  542. Util.getAxialAlignedBoundingBox =
  543. function Util_getAxialAlignedBoundingBox(r, m) {
  544. var p1 = Util.applyTransform(r, m);
  545. var p2 = Util.applyTransform(r.slice(2, 4), m);
  546. var p3 = Util.applyTransform([r[0], r[3]], m);
  547. var p4 = Util.applyTransform([r[2], r[1]], m);
  548. return [
  549. Math.min(p1[0], p2[0], p3[0], p4[0]),
  550. Math.min(p1[1], p2[1], p3[1], p4[1]),
  551. Math.max(p1[0], p2[0], p3[0], p4[0]),
  552. Math.max(p1[1], p2[1], p3[1], p4[1])
  553. ];
  554. };
  555. Util.inverseTransform = function Util_inverseTransform(m) {
  556. var d = m[0] * m[3] - m[1] * m[2];
  557. return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d,
  558. (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
  559. };
  560. // Apply a generic 3d matrix M on a 3-vector v:
  561. // | a b c | | X |
  562. // | d e f | x | Y |
  563. // | g h i | | Z |
  564. // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i],
  565. // with v as [X,Y,Z]
  566. Util.apply3dTransform = function Util_apply3dTransform(m, v) {
  567. return [
  568. m[0] * v[0] + m[1] * v[1] + m[2] * v[2],
  569. m[3] * v[0] + m[4] * v[1] + m[5] * v[2],
  570. m[6] * v[0] + m[7] * v[1] + m[8] * v[2]
  571. ];
  572. };
  573. // This calculation uses Singular Value Decomposition.
  574. // The SVD can be represented with formula A = USV. We are interested in the
  575. // matrix S here because it represents the scale values.
  576. Util.singularValueDecompose2dScale =
  577. function Util_singularValueDecompose2dScale(m) {
  578. var transpose = [m[0], m[2], m[1], m[3]];
  579. // Multiply matrix m with its transpose.
  580. var a = m[0] * transpose[0] + m[1] * transpose[2];
  581. var b = m[0] * transpose[1] + m[1] * transpose[3];
  582. var c = m[2] * transpose[0] + m[3] * transpose[2];
  583. var d = m[2] * transpose[1] + m[3] * transpose[3];
  584. // Solve the second degree polynomial to get roots.
  585. var first = (a + d) / 2;
  586. var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
  587. var sx = first + second || 1;
  588. var sy = first - second || 1;
  589. // Scale values are the square roots of the eigenvalues.
  590. return [Math.sqrt(sx), Math.sqrt(sy)];
  591. };
  592. // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
  593. // For coordinate systems whose origin lies in the bottom-left, this
  594. // means normalization to (BL,TR) ordering. For systems with origin in the
  595. // top-left, this means (TL,BR) ordering.
  596. Util.normalizeRect = function Util_normalizeRect(rect) {
  597. var r = rect.slice(0); // clone rect
  598. if (rect[0] > rect[2]) {
  599. r[0] = rect[2];
  600. r[2] = rect[0];
  601. }
  602. if (rect[1] > rect[3]) {
  603. r[1] = rect[3];
  604. r[3] = rect[1];
  605. }
  606. return r;
  607. };
  608. // Returns a rectangle [x1, y1, x2, y2] corresponding to the
  609. // intersection of rect1 and rect2. If no intersection, returns 'false'
  610. // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2]
  611. Util.intersect = function Util_intersect(rect1, rect2) {
  612. function compare(a, b) {
  613. return a - b;
  614. }
  615. // Order points along the axes
  616. var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare),
  617. orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare),
  618. result = [];
  619. rect1 = Util.normalizeRect(rect1);
  620. rect2 = Util.normalizeRect(rect2);
  621. // X: first and second points belong to different rectangles?
  622. if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
  623. (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) {
  624. // Intersection must be between second and third points
  625. result[0] = orderedX[1];
  626. result[2] = orderedX[2];
  627. } else {
  628. return false;
  629. }
  630. // Y: first and second points belong to different rectangles?
  631. if ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
  632. (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) {
  633. // Intersection must be between second and third points
  634. result[1] = orderedY[1];
  635. result[3] = orderedY[2];
  636. } else {
  637. return false;
  638. }
  639. return result;
  640. };
  641. Util.sign = function Util_sign(num) {
  642. return num < 0 ? -1 : 1;
  643. };
  644. Util.appendToArray = function Util_appendToArray(arr1, arr2) {
  645. Array.prototype.push.apply(arr1, arr2);
  646. };
  647. Util.prependToArray = function Util_prependToArray(arr1, arr2) {
  648. Array.prototype.unshift.apply(arr1, arr2);
  649. };
  650. Util.extendObj = function extendObj(obj1, obj2) {
  651. for (var key in obj2) {
  652. obj1[key] = obj2[key];
  653. }
  654. };
  655. Util.getInheritableProperty = function Util_getInheritableProperty(dict,
  656. name) {
  657. while (dict && !dict.has(name)) {
  658. dict = dict.get('Parent');
  659. }
  660. if (!dict) {
  661. return null;
  662. }
  663. return dict.get(name);
  664. };
  665. Util.inherit = function Util_inherit(sub, base, prototype) {
  666. sub.prototype = Object.create(base.prototype);
  667. sub.prototype.constructor = sub;
  668. for (var prop in prototype) {
  669. sub.prototype[prop] = prototype[prop];
  670. }
  671. };
  672. Util.loadScript = function Util_loadScript(src, callback) {
  673. var script = document.createElement('script');
  674. var loaded = false;
  675. script.setAttribute('src', src);
  676. if (callback) {
  677. script.onload = function() {
  678. if (!loaded) {
  679. callback();
  680. }
  681. loaded = true;
  682. };
  683. }
  684. document.getElementsByTagName('head')[0].appendChild(script);
  685. };
  686. return Util;
  687. })();
  688. /**
  689. * PDF page viewport created based on scale, rotation and offset.
  690. * @class
  691. * @alias PDFJS.PageViewport
  692. */
  693. var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
  694. /**
  695. * @constructor
  696. * @private
  697. * @param viewBox {Array} xMin, yMin, xMax and yMax coordinates.
  698. * @param scale {number} scale of the viewport.
  699. * @param rotation {number} rotations of the viewport in degrees.
  700. * @param offsetX {number} offset X
  701. * @param offsetY {number} offset Y
  702. * @param dontFlip {boolean} if true, axis Y will not be flipped.
  703. */
  704. function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
  705. this.viewBox = viewBox;
  706. this.scale = scale;
  707. this.rotation = rotation;
  708. this.offsetX = offsetX;
  709. this.offsetY = offsetY;
  710. // creating transform to convert pdf coordinate system to the normal
  711. // canvas like coordinates taking in account scale and rotation
  712. var centerX = (viewBox[2] + viewBox[0]) / 2;
  713. var centerY = (viewBox[3] + viewBox[1]) / 2;
  714. var rotateA, rotateB, rotateC, rotateD;
  715. rotation = rotation % 360;
  716. rotation = rotation < 0 ? rotation + 360 : rotation;
  717. switch (rotation) {
  718. case 180:
  719. rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1;
  720. break;
  721. case 90:
  722. rotateA = 0; rotateB = 1; rotateC = 1; rotateD = 0;
  723. break;
  724. case 270:
  725. rotateA = 0; rotateB = -1; rotateC = -1; rotateD = 0;
  726. break;
  727. //case 0:
  728. default:
  729. rotateA = 1; rotateB = 0; rotateC = 0; rotateD = -1;
  730. break;
  731. }
  732. if (dontFlip) {
  733. rotateC = -rotateC; rotateD = -rotateD;
  734. }
  735. var offsetCanvasX, offsetCanvasY;
  736. var width, height;
  737. if (rotateA === 0) {
  738. offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
  739. offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
  740. width = Math.abs(viewBox[3] - viewBox[1]) * scale;
  741. height = Math.abs(viewBox[2] - viewBox[0]) * scale;
  742. } else {
  743. offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
  744. offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
  745. width = Math.abs(viewBox[2] - viewBox[0]) * scale;
  746. height = Math.abs(viewBox[3] - viewBox[1]) * scale;
  747. }
  748. // creating transform for the following operations:
  749. // translate(-centerX, -centerY), rotate and flip vertically,
  750. // scale, and translate(offsetCanvasX, offsetCanvasY)
  751. this.transform = [
  752. rotateA * scale,
  753. rotateB * scale,
  754. rotateC * scale,
  755. rotateD * scale,
  756. offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY,
  757. offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY
  758. ];
  759. this.width = width;
  760. this.height = height;
  761. this.fontScale = scale;
  762. }
  763. PageViewport.prototype = /** @lends PDFJS.PageViewport.prototype */ {
  764. /**
  765. * Clones viewport with additional properties.
  766. * @param args {Object} (optional) If specified, may contain the 'scale' or
  767. * 'rotation' properties to override the corresponding properties in
  768. * the cloned viewport.
  769. * @returns {PDFJS.PageViewport} Cloned viewport.
  770. */
  771. clone: function PageViewPort_clone(args) {
  772. args = args || {};
  773. var scale = 'scale' in args ? args.scale : this.scale;
  774. var rotation = 'rotation' in args ? args.rotation : this.rotation;
  775. return new PageViewport(this.viewBox.slice(), scale, rotation,
  776. this.offsetX, this.offsetY, args.dontFlip);
  777. },
  778. /**
  779. * Converts PDF point to the viewport coordinates. For examples, useful for
  780. * converting PDF location into canvas pixel coordinates.
  781. * @param x {number} X coordinate.
  782. * @param y {number} Y coordinate.
  783. * @returns {Object} Object that contains 'x' and 'y' properties of the
  784. * point in the viewport coordinate space.
  785. * @see {@link convertToPdfPoint}
  786. * @see {@link convertToViewportRectangle}
  787. */
  788. convertToViewportPoint: function PageViewport_convertToViewportPoint(x, y) {
  789. return Util.applyTransform([x, y], this.transform);
  790. },
  791. /**
  792. * Converts PDF rectangle to the viewport coordinates.
  793. * @param rect {Array} xMin, yMin, xMax and yMax coordinates.
  794. * @returns {Array} Contains corresponding coordinates of the rectangle
  795. * in the viewport coordinate space.
  796. * @see {@link convertToViewportPoint}
  797. */
  798. convertToViewportRectangle:
  799. function PageViewport_convertToViewportRectangle(rect) {
  800. var tl = Util.applyTransform([rect[0], rect[1]], this.transform);
  801. var br = Util.applyTransform([rect[2], rect[3]], this.transform);
  802. return [tl[0], tl[1], br[0], br[1]];
  803. },
  804. /**
  805. * Converts viewport coordinates to the PDF location. For examples, useful
  806. * for converting canvas pixel location into PDF one.
  807. * @param x {number} X coordinate.
  808. * @param y {number} Y coordinate.
  809. * @returns {Object} Object that contains 'x' and 'y' properties of the
  810. * point in the PDF coordinate space.
  811. * @see {@link convertToViewportPoint}
  812. */
  813. convertToPdfPoint: function PageViewport_convertToPdfPoint(x, y) {
  814. return Util.applyInverseTransform([x, y], this.transform);
  815. }
  816. };
  817. return PageViewport;
  818. })();
  819. var PDFStringTranslateTable = [
  820. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  821. 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0,
  822. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  823. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  824. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  825. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014,
  826. 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C,
  827. 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160,
  828. 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC
  829. ];
  830. function stringToPDFString(str) {
  831. var i, n = str.length, strBuf = [];
  832. if (str[0] === '\xFE' && str[1] === '\xFF') {
  833. // UTF16BE BOM
  834. for (i = 2; i < n; i += 2) {
  835. strBuf.push(String.fromCharCode(
  836. (str.charCodeAt(i) << 8) | str.charCodeAt(i + 1)));
  837. }
  838. } else {
  839. for (i = 0; i < n; ++i) {
  840. var code = PDFStringTranslateTable[str.charCodeAt(i)];
  841. strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
  842. }
  843. }
  844. return strBuf.join('');
  845. }
  846. function stringToUTF8String(str) {
  847. return decodeURIComponent(escape(str));
  848. }
  849. function isEmptyObj(obj) {
  850. for (var key in obj) {
  851. return false;
  852. }
  853. return true;
  854. }
  855. function isBool(v) {
  856. return typeof v == 'boolean';
  857. }
  858. function isInt(v) {
  859. return typeof v === 'number' && ((v | 0) === v);
  860. }
  861. function isNum(v) {
  862. return typeof v === 'number';
  863. }
  864. function isString(v) {
  865. return typeof v === 'string';
  866. }
  867. function isNull(v) {
  868. return v === null;
  869. }
  870. function isName(v) {
  871. return v instanceof Name;
  872. }
  873. function isCmd(v, cmd) {
  874. return v instanceof Cmd && (cmd === undefined || v.cmd === cmd);
  875. }
  876. function isDict(v, type) {
  877. if (!(v instanceof Dict)) {
  878. return false;
  879. }
  880. if (!type) {
  881. return true;
  882. }
  883. var dictType = v.get('Type');
  884. return isName(dictType) && dictType.name === type;
  885. }
  886. function isArray(v) {
  887. return v instanceof Array;
  888. }
  889. function isStream(v) {
  890. return typeof v === 'object' && v !== null && v.getBytes !== undefined;
  891. }
  892. function isArrayBuffer(v) {
  893. return typeof v === 'object' && v !== null && v.byteLength !== undefined;
  894. }
  895. function isRef(v) {
  896. return v instanceof Ref;
  897. }
  898. /**
  899. * Promise Capability object.
  900. *
  901. * @typedef {Object} PromiseCapability
  902. * @property {Promise} promise - A promise object.
  903. * @property {function} resolve - Fullfills the promise.
  904. * @property {function} reject - Rejects the promise.
  905. */
  906. /**
  907. * Creates a promise capability object.
  908. * @alias PDFJS.createPromiseCapability
  909. *
  910. * @return {PromiseCapability} A capability object contains:
  911. * - a Promise, resolve and reject methods.
  912. */
  913. function createPromiseCapability() {
  914. var capability = {};
  915. capability.promise = new Promise(function (resolve, reject) {
  916. capability.resolve = resolve;
  917. capability.reject = reject;
  918. });
  919. return capability;
  920. }
  921. PDFJS.createPromiseCapability = createPromiseCapability;
  922. /**
  923. * Polyfill for Promises:
  924. * The following promise implementation tries to generally implement the
  925. * Promise/A+ spec. Some notable differences from other promise libaries are:
  926. * - There currently isn't a seperate deferred and promise object.
  927. * - Unhandled rejections eventually show an error if they aren't handled.
  928. *
  929. * Based off of the work in:
  930. * https://bugzilla.mozilla.org/show_bug.cgi?id=810490
  931. */
  932. (function PromiseClosure() {
  933. if (globalScope.Promise) {
  934. // Promises existing in the DOM/Worker, checking presence of all/resolve
  935. if (typeof globalScope.Promise.all !== 'function') {
  936. globalScope.Promise.all = function (iterable) {
  937. var count = 0, results = [], resolve, reject;
  938. var promise = new globalScope.Promise(function (resolve_, reject_) {
  939. resolve = resolve_;
  940. reject = reject_;
  941. });
  942. iterable.forEach(function (p, i) {
  943. count++;
  944. p.then(function (result) {
  945. results[i] = result;
  946. count--;
  947. if (count === 0) {
  948. resolve(results);
  949. }
  950. }, reject);
  951. });
  952. if (count === 0) {
  953. resolve(results);
  954. }
  955. return promise;
  956. };
  957. }
  958. if (typeof globalScope.Promise.resolve !== 'function') {
  959. globalScope.Promise.resolve = function (value) {
  960. return new globalScope.Promise(function (resolve) { resolve(value); });
  961. };
  962. }
  963. if (typeof globalScope.Promise.reject !== 'function') {
  964. globalScope.Promise.reject = function (reason) {
  965. return new globalScope.Promise(function (resolve, reject) {
  966. reject(reason);
  967. });
  968. };
  969. }
  970. if (typeof globalScope.Promise.prototype.catch !== 'function') {
  971. globalScope.Promise.prototype.catch = function (onReject) {
  972. return globalScope.Promise.prototype.then(undefined, onReject);
  973. };
  974. }
  975. return;
  976. }
  977. var STATUS_PENDING = 0;
  978. var STATUS_RESOLVED = 1;
  979. var STATUS_REJECTED = 2;
  980. // In an attempt to avoid silent exceptions, unhandled rejections are
  981. // tracked and if they aren't handled in a certain amount of time an
  982. // error is logged.
  983. var REJECTION_TIMEOUT = 500;
  984. var HandlerManager = {
  985. handlers: [],
  986. running: false,
  987. unhandledRejections: [],
  988. pendingRejectionCheck: false,
  989. scheduleHandlers: function scheduleHandlers(promise) {
  990. if (promise._status == STATUS_PENDING) {
  991. return;
  992. }
  993. this.handlers = this.handlers.concat(promise._handlers);
  994. promise._handlers = [];
  995. if (this.running) {
  996. return;
  997. }
  998. this.running = true;
  999. setTimeout(this.runHandlers.bind(this), 0);
  1000. },
  1001. runHandlers: function runHandlers() {
  1002. var RUN_TIMEOUT = 1; // ms
  1003. var timeoutAt = Date.now() + RUN_TIMEOUT;
  1004. while (this.handlers.length > 0) {
  1005. var handler = this.handlers.shift();
  1006. var nextStatus = handler.thisPromise._status;
  1007. var nextValue = handler.thisPromise._value;
  1008. try {
  1009. if (nextStatus === STATUS_RESOLVED) {
  1010. if (typeof(handler.onResolve) == 'function') {
  1011. nextValue = handler.onResolve(nextValue);
  1012. }
  1013. } else if (typeof(handler.onReject) === 'function') {
  1014. nextValue = handler.onReject(nextValue);
  1015. nextStatus = STATUS_RESOLVED;
  1016. if (handler.thisPromise._unhandledRejection) {
  1017. this.removeUnhandeledRejection(handler.thisPromise);
  1018. }
  1019. }
  1020. } catch (ex) {
  1021. nextStatus = STATUS_REJECTED;
  1022. nextValue = ex;
  1023. }
  1024. handler.nextPromise._updateStatus(nextStatus, nextValue);
  1025. if (Date.now() >= timeoutAt) {
  1026. break;
  1027. }
  1028. }
  1029. if (this.handlers.length > 0) {
  1030. setTimeout(this.runHandlers.bind(this), 0);
  1031. return;
  1032. }
  1033. this.running = false;
  1034. },
  1035. addUnhandledRejection: function addUnhandledRejection(promise) {
  1036. this.unhandledRejections.push({
  1037. promise: promise,
  1038. time: Date.now()
  1039. });
  1040. this.scheduleRejectionCheck();
  1041. },
  1042. removeUnhandeledRejection: function removeUnhandeledRejection(promise) {
  1043. promise._unhandledRejection = false;
  1044. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1045. if (this.unhandledRejections[i].promise === promise) {
  1046. this.unhandledRejections.splice(i);
  1047. i--;
  1048. }
  1049. }
  1050. },
  1051. scheduleRejectionCheck: function scheduleRejectionCheck() {
  1052. if (this.pendingRejectionCheck) {
  1053. return;
  1054. }
  1055. this.pendingRejectionCheck = true;
  1056. setTimeout(function rejectionCheck() {
  1057. this.pendingRejectionCheck = false;
  1058. var now = Date.now();
  1059. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1060. if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
  1061. var unhandled = this.unhandledRejections[i].promise._value;
  1062. var msg = 'Unhandled rejection: ' + unhandled;
  1063. if (unhandled.stack) {
  1064. msg += '\n' + unhandled.stack;
  1065. }
  1066. warn(msg);
  1067. this.unhandledRejections.splice(i);
  1068. i--;
  1069. }
  1070. }
  1071. if (this.unhandledRejections.length) {
  1072. this.scheduleRejectionCheck();
  1073. }
  1074. }.bind(this), REJECTION_TIMEOUT);
  1075. }
  1076. };
  1077. function Promise(resolver) {
  1078. this._status = STATUS_PENDING;
  1079. this._handlers = [];
  1080. try {
  1081. resolver.call(this, this._resolve.bind(this), this._reject.bind(this));
  1082. } catch (e) {
  1083. this._reject(e);
  1084. }
  1085. }
  1086. /**
  1087. * Builds a promise that is resolved when all the passed in promises are
  1088. * resolved.
  1089. * @param {array} array of data and/or promises to wait for.
  1090. * @return {Promise} New dependant promise.
  1091. */
  1092. Promise.all = function Promise_all(promises) {
  1093. var resolveAll, rejectAll;
  1094. var deferred = new Promise(function (resolve, reject) {
  1095. resolveAll = resolve;
  1096. rejectAll = reject;
  1097. });
  1098. var unresolved = promises.length;
  1099. var results = [];
  1100. if (unresolved === 0) {
  1101. resolveAll(results);
  1102. return deferred;
  1103. }
  1104. function reject(reason) {
  1105. if (deferred._status === STATUS_REJECTED) {
  1106. return;
  1107. }
  1108. results = [];
  1109. rejectAll(reason);
  1110. }
  1111. for (var i = 0, ii = promises.length; i < ii; ++i) {
  1112. var promise = promises[i];
  1113. var resolve = (function(i) {
  1114. return function(value) {
  1115. if (deferred._status === STATUS_REJECTED) {
  1116. return;
  1117. }
  1118. results[i] = value;
  1119. unresolved--;
  1120. if (unresolved === 0) {
  1121. resolveAll(results);
  1122. }
  1123. };
  1124. })(i);
  1125. if (Promise.isPromise(promise)) {
  1126. promise.then(resolve, reject);
  1127. } else {
  1128. resolve(promise);
  1129. }
  1130. }
  1131. return deferred;
  1132. };
  1133. /**
  1134. * Checks if the value is likely a promise (has a 'then' function).
  1135. * @return {boolean} true if value is thenable
  1136. */
  1137. Promise.isPromise = function Promise_isPromise(value) {
  1138. return value && typeof value.then === 'function';
  1139. };
  1140. /**
  1141. * Creates resolved promise
  1142. * @param value resolve value
  1143. * @returns {Promise}
  1144. */
  1145. Promise.resolve = function Promise_resolve(value) {
  1146. return new Promise(function (resolve) { resolve(value); });
  1147. };
  1148. /**
  1149. * Creates rejected promise
  1150. * @param reason rejection value
  1151. * @returns {Promise}
  1152. */
  1153. Promise.reject = function Promise_reject(reason) {
  1154. return new Promise(function (resolve, reject) { reject(reason); });
  1155. };
  1156. Promise.prototype = {
  1157. _status: null,
  1158. _value: null,
  1159. _handlers: null,
  1160. _unhandledRejection: null,
  1161. _updateStatus: function Promise__updateStatus(status, value) {
  1162. if (this._status === STATUS_RESOLVED ||
  1163. this._status === STATUS_REJECTED) {
  1164. return;
  1165. }
  1166. if (status == STATUS_RESOLVED &&
  1167. Promise.isPromise(value)) {
  1168. value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
  1169. this._updateStatus.bind(this, STATUS_REJECTED));
  1170. return;
  1171. }
  1172. this._status = status;
  1173. this._value = value;
  1174. if (status === STATUS_REJECTED && this._handlers.length === 0) {
  1175. this._unhandledRejection = true;
  1176. HandlerManager.addUnhandledRejection(this);
  1177. }
  1178. HandlerManager.scheduleHandlers(this);
  1179. },
  1180. _resolve: function Promise_resolve(value) {
  1181. this._updateStatus(STATUS_RESOLVED, value);
  1182. },
  1183. _reject: function Promise_reject(reason) {
  1184. this._updateStatus(STATUS_REJECTED, reason);
  1185. },
  1186. then: function Promise_then(onResolve, onReject) {
  1187. var nextPromise = new Promise(function (resolve, reject) {
  1188. this.resolve = reject;
  1189. this.reject = reject;
  1190. });
  1191. this._handlers.push({
  1192. thisPromise: this,
  1193. onResolve: onResolve,
  1194. onReject: onReject,
  1195. nextPromise: nextPromise
  1196. });
  1197. HandlerManager.scheduleHandlers(this);
  1198. return nextPromise;
  1199. },
  1200. catch: function Promise_catch(onReject) {
  1201. return this.then(undefined, onReject);
  1202. }
  1203. };
  1204. globalScope.Promise = Promise;
  1205. })();
  1206. var StatTimer = (function StatTimerClosure() {
  1207. function rpad(str, pad, length) {
  1208. while (str.length < length) {
  1209. str += pad;
  1210. }
  1211. return str;
  1212. }
  1213. function StatTimer() {
  1214. this.started = {};
  1215. this.times = [];
  1216. this.enabled = true;
  1217. }
  1218. StatTimer.prototype = {
  1219. time: function StatTimer_time(name) {
  1220. if (!this.enabled) {
  1221. return;
  1222. }
  1223. if (name in this.started) {
  1224. warn('Timer is already running for ' + name);
  1225. }
  1226. this.started[name] = Date.now();
  1227. },
  1228. timeEnd: function StatTimer_timeEnd(name) {
  1229. if (!this.enabled) {
  1230. return;
  1231. }
  1232. if (!(name in this.started)) {
  1233. warn('Timer has not been started for ' + name);
  1234. }
  1235. this.times.push({
  1236. 'name': name,
  1237. 'start': this.started[name],
  1238. 'end': Date.now()
  1239. });
  1240. // Remove timer from started so it can be called again.
  1241. delete this.started[name];
  1242. },
  1243. toString: function StatTimer_toString() {
  1244. var i, ii;
  1245. var times = this.times;
  1246. var out = '';
  1247. // Find the longest name for padding purposes.
  1248. var longest = 0;
  1249. for (i = 0, ii = times.length; i < ii; ++i) {
  1250. var name = times[i]['name'];
  1251. if (name.length > longest) {
  1252. longest = name.length;
  1253. }
  1254. }
  1255. for (i = 0, ii = times.length; i < ii; ++i) {
  1256. var span = times[i];
  1257. var duration = span.end - span.start;
  1258. out += rpad(span['name'], ' ', longest) + ' ' + duration + 'ms\n';
  1259. }
  1260. return out;
  1261. }
  1262. };
  1263. return StatTimer;
  1264. })();
  1265. PDFJS.createBlob = function createBlob(data, contentType) {
  1266. if (typeof Blob !== 'undefined') {
  1267. return new Blob([data], { type: contentType });
  1268. }
  1269. // Blob builder is deprecated in FF14 and removed in FF18.
  1270. var bb = new MozBlobBuilder();
  1271. bb.append(data);
  1272. return bb.getBlob(contentType);
  1273. };
  1274. PDFJS.createObjectURL = (function createObjectURLClosure() {
  1275. // Blob/createObjectURL is not available, falling back to data schema.
  1276. var digits =
  1277. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1278. return function createObjectURL(data, contentType) {
  1279. if (!PDFJS.disableCreateObjectURL &&
  1280. typeof URL !== 'undefined' && URL.createObjectURL) {
  1281. var blob = PDFJS.createBlob(data, contentType);
  1282. return URL.createObjectURL(blob);
  1283. }
  1284. var buffer = 'data:' + contentType + ';base64,';
  1285. for (var i = 0, ii = data.length; i < ii; i += 3) {
  1286. var b1 = data[i] & 0xFF;
  1287. var b2 = data[i + 1] & 0xFF;
  1288. var b3 = data[i + 2] & 0xFF;
  1289. var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
  1290. var d3 = i + 1 < ii ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
  1291. var d4 = i + 2 < ii ? (b3 & 0x3F) : 64;
  1292. buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
  1293. }
  1294. return buffer;
  1295. };
  1296. })();
  1297. function MessageHandler(name, comObj) {
  1298. this.name = name;
  1299. this.comObj = comObj;
  1300. this.callbackIndex = 1;
  1301. this.postMessageTransfers = true;
  1302. var callbacksCapabilities = this.callbacksCapabilities = {};
  1303. var ah = this.actionHandler = {};
  1304. ah['console_log'] = [function ahConsoleLog(data) {
  1305. console.log.apply(console, data);
  1306. }];
  1307. ah['console_error'] = [function ahConsoleError(data) {
  1308. console.error.apply(console, data);
  1309. }];
  1310. ah['_unsupported_feature'] = [function ah_unsupportedFeature(data) {
  1311. UnsupportedManager.notify(data);
  1312. }];
  1313. comObj.onmessage = function messageHandlerComObjOnMessage(event) {
  1314. var data = event.data;
  1315. if (data.isReply) {
  1316. var callbackId = data.callbackId;
  1317. if (data.callbackId in callbacksCapabilities) {
  1318. var callback = callbacksCapabilities[callbackId];
  1319. delete callbacksCapabilities[callbackId];
  1320. if ('error' in data) {
  1321. callback.reject(data.error);
  1322. } else {
  1323. callback.resolve(data.data);
  1324. }
  1325. } else {
  1326. error('Cannot resolve callback ' + callbackId);
  1327. }
  1328. } else if (data.action in ah) {
  1329. var action = ah[data.action];
  1330. if (data.callbackId) {
  1331. Promise.resolve().then(function () {
  1332. return action[0].call(action[1], data.data);
  1333. }).then(function (result) {
  1334. comObj.postMessage({
  1335. isReply: true,
  1336. callbackId: data.callbackId,
  1337. data: result
  1338. });
  1339. }, function (reason) {
  1340. comObj.postMessage({
  1341. isReply: true,
  1342. callbackId: data.callbackId,
  1343. error: reason
  1344. });
  1345. });
  1346. } else {
  1347. action[0].call(action[1], data.data);
  1348. }
  1349. } else {
  1350. error('Unknown action from worker: ' + data.action);
  1351. }
  1352. };
  1353. }
  1354. MessageHandler.prototype = {
  1355. on: function messageHandlerOn(actionName, handler, scope) {
  1356. var ah = this.actionHandler;
  1357. if (ah[actionName]) {
  1358. error('There is already an actionName called "' + actionName + '"');
  1359. }
  1360. ah[actionName] = [handler, scope];
  1361. },
  1362. /**
  1363. * Sends a message to the comObj to invoke the action with the supplied data.
  1364. * @param {String} actionName Action to call.
  1365. * @param {JSON} data JSON data to send.
  1366. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers
  1367. */
  1368. send: function messageHandlerSend(actionName, data, transfers) {
  1369. var message = {
  1370. action: actionName,
  1371. data: data
  1372. };
  1373. this.postMessage(message, transfers);
  1374. },
  1375. /**
  1376. * Sends a message to the comObj to invoke the action with the supplied data.
  1377. * Expects that other side will callback with the response.
  1378. * @param {String} actionName Action to call.
  1379. * @param {JSON} data JSON data to send.
  1380. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers.
  1381. * @returns {Promise} Promise to be resolved with response data.
  1382. */
  1383. sendWithPromise:
  1384. function messageHandlerSendWithPromise(actionName, data, transfers) {
  1385. var callbackId = this.callbackIndex++;
  1386. var message = {
  1387. action: actionName,
  1388. data: data,
  1389. callbackId: callbackId
  1390. };
  1391. var capability = createPromiseCapability();
  1392. this.callbacksCapabilities[callbackId] = capability;
  1393. try {
  1394. this.postMessage(message, transfers);
  1395. } catch (e) {
  1396. capability.reject(e);
  1397. }
  1398. return capability.promise;
  1399. },
  1400. /**
  1401. * Sends raw message to the comObj.
  1402. * @private
  1403. * @param message {Object} Raw message.
  1404. * @param transfers List of transfers/ArrayBuffers, or undefined.
  1405. */
  1406. postMessage: function (message, transfers) {
  1407. if (transfers && this.postMessageTransfers) {
  1408. this.comObj.postMessage(message, transfers);
  1409. } else {
  1410. this.comObj.postMessage(message);
  1411. }
  1412. }
  1413. };
  1414. function loadJpegStream(id, imageUrl, objs) {
  1415. var img = new Image();
  1416. img.onload = (function loadJpegStream_onloadClosure() {
  1417. objs.resolve(id, img);
  1418. });
  1419. img.src = imageUrl;
  1420. }
  1421. var DEFAULT_ICON_SIZE = 22; // px
  1422. var HIGHLIGHT_OFFSET = 4; // px
  1423. var SUPPORTED_TYPES = ['Link', 'Text', 'Widget'];
  1424. var Annotation = (function AnnotationClosure() {
  1425. // 12.5.5: Algorithm: Appearance streams
  1426. function getTransformMatrix(rect, bbox, matrix) {
  1427. var bounds = Util.getAxialAlignedBoundingBox(bbox, matrix);
  1428. var minX = bounds[0];
  1429. var minY = bounds[1];
  1430. var maxX = bounds[2];
  1431. var maxY = bounds[3];
  1432. if (minX === maxX || minY === maxY) {
  1433. // From real-life file, bbox was [0, 0, 0, 0]. In this case,
  1434. // just apply the transform for rect
  1435. return [1, 0, 0, 1, rect[0], rect[1]];
  1436. }
  1437. var xRatio = (rect[2] - rect[0]) / (maxX - minX);
  1438. var yRatio = (rect[3] - rect[1]) / (maxY - minY);
  1439. return [
  1440. xRatio,
  1441. 0,
  1442. 0,
  1443. yRatio,
  1444. rect[0] - minX * xRatio,
  1445. rect[1] - minY * yRatio
  1446. ];
  1447. }
  1448. function getDefaultAppearance(dict) {
  1449. var appearanceState = dict.get('AP');
  1450. if (!isDict(appearanceState)) {
  1451. return;
  1452. }
  1453. var appearance;
  1454. var appearances = appearanceState.get('N');
  1455. if (isDict(appearances)) {
  1456. var as = dict.get('AS');
  1457. if (as && appearances.has(as.name)) {
  1458. appearance = appearances.get(as.name);
  1459. }
  1460. } else {
  1461. appearance = appearances;
  1462. }
  1463. return appearance;
  1464. }
  1465. function Annotation(params) {
  1466. if (params.data) {
  1467. this.data = params.data;
  1468. return;
  1469. }
  1470. var dict = params.dict;
  1471. var data = this.data = {};
  1472. data.subtype = dict.get('Subtype').name;
  1473. var rect = dict.get('Rect') || [0, 0, 0, 0];
  1474. data.rect = Util.normalizeRect(rect);
  1475. data.annotationFlags = dict.get('F');
  1476. var color = dict.get('C');
  1477. if (isArray(color) && color.length === 3) {
  1478. // TODO(mack): currently only supporting rgb; need support different
  1479. // colorspaces
  1480. data.color = color;
  1481. } else {
  1482. data.color = [0, 0, 0];
  1483. }
  1484. // Some types of annotations have border style dict which has more
  1485. // info than the border array
  1486. if (dict.has('BS')) {
  1487. var borderStyle = dict.get('BS');
  1488. data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1;
  1489. } else {
  1490. var borderArray = dict.get('Border') || [0, 0, 1];
  1491. data.borderWidth = borderArray[2] || 0;
  1492. // TODO: implement proper support for annotations with line dash patterns.
  1493. var dashArray = borderArray[3];
  1494. if (data.borderWidth > 0 && dashArray) {
  1495. if (!isArray(dashArray)) {
  1496. // Ignore the border if dashArray is not actually an array,
  1497. // this is consistent with the behaviour in Adobe Reader.
  1498. data.borderWidth = 0;
  1499. } else {
  1500. var dashArrayLength = dashArray.length;
  1501. if (dashArrayLength > 0) {
  1502. // According to the PDF specification: the elements in a dashArray
  1503. // shall be numbers that are nonnegative and not all equal to zero.
  1504. var isInvalid = false;
  1505. var numPositive = 0;
  1506. for (var i = 0; i < dashArrayLength; i++) {
  1507. var validNumber = (+dashArray[i] >= 0);
  1508. if (!validNumber) {
  1509. isInvalid = true;
  1510. break;
  1511. } else if (dashArray[i] > 0) {
  1512. numPositive++;
  1513. }
  1514. }
  1515. if (isInvalid || numPositive === 0) {
  1516. data.borderWidth = 0;
  1517. }
  1518. }
  1519. }
  1520. }
  1521. }
  1522. this.appearance = getDefaultAppearance(dict);
  1523. data.hasAppearance = !!this.appearance;
  1524. data.id = params.ref.num;
  1525. }
  1526. Annotation.prototype = {
  1527. getData: function Annotation_getData() {
  1528. return this.data;
  1529. },
  1530. hasHtml: function Annotation_hasHtml() {
  1531. return false;
  1532. },
  1533. getHtmlElement: function Annotation_getHtmlElement(commonObjs) {
  1534. throw new NotImplementedException(
  1535. 'getHtmlElement() should be implemented in subclass');
  1536. },
  1537. // TODO(mack): Remove this, it's not really that helpful.
  1538. getEmptyContainer: function Annotation_getEmptyContainer(tagName, rect,
  1539. borderWidth) {
  1540. assert(!isWorker,
  1541. 'getEmptyContainer() should be called from main thread');
  1542. var bWidth = borderWidth || 0;
  1543. rect = rect || this.data.rect;
  1544. var element = document.createElement(tagName);
  1545. element.style.borderWidth = bWidth + 'px';
  1546. var width = rect[2] - rect[0] - 2 * bWidth;
  1547. var height = rect[3] - rect[1] - 2 * bWidth;
  1548. element.style.width = width + 'px';
  1549. element.style.height = height + 'px';
  1550. return element;
  1551. },
  1552. isInvisible: function Annotation_isInvisible() {
  1553. var data = this.data;
  1554. if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {
  1555. return false;
  1556. } else {
  1557. return !!(data &&
  1558. data.annotationFlags && // Default: not invisible
  1559. data.annotationFlags & 0x1); // Invisible
  1560. }
  1561. },
  1562. isViewable: function Annotation_isViewable() {
  1563. var data = this.data;
  1564. return !!(!this.isInvisible() &&
  1565. data &&
  1566. (!data.annotationFlags ||
  1567. !(data.annotationFlags & 0x22)) && // Hidden or NoView
  1568. data.rect); // rectangle is necessary
  1569. },
  1570. isPrintable: function Annotation_isPrintable() {
  1571. var data = this.data;
  1572. return !!(!this.isInvisible() &&
  1573. data &&
  1574. data.annotationFlags && // Default: not printable
  1575. data.annotationFlags & 0x4 && // Print
  1576. !(data.annotationFlags & 0x2) && // Hidden
  1577. data.rect); // rectangle is necessary
  1578. },
  1579. loadResources: function Annotation_loadResources(keys) {
  1580. return new Promise(function (resolve, reject) {
  1581. this.appearance.dict.getAsync('Resources').then(function (resources) {
  1582. if (!resources) {
  1583. resolve();
  1584. return;
  1585. }
  1586. var objectLoader = new ObjectLoader(resources.map,
  1587. keys,
  1588. resources.xref);
  1589. objectLoader.load().then(function() {
  1590. resolve(resources);
  1591. }, reject);
  1592. }, reject);
  1593. }.bind(this));
  1594. },
  1595. getOperatorList: function Annotation_getOperatorList(evaluator) {
  1596. if (!this.appearance) {
  1597. return Promise.resolve(new OperatorList());
  1598. }
  1599. var data = this.data;
  1600. var appearanceDict = this.appearance.dict;
  1601. var resourcesPromise = this.loadResources([
  1602. 'ExtGState',
  1603. 'ColorSpace',
  1604. 'Pattern',
  1605. 'Shading',
  1606. 'XObject',
  1607. 'Font'
  1608. // ProcSet
  1609. // Properties
  1610. ]);
  1611. var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
  1612. var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
  1613. var transform = getTransformMatrix(data.rect, bbox, matrix);
  1614. var self = this;
  1615. return resourcesPromise.then(function(resources) {
  1616. var opList = new OperatorList();
  1617. opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
  1618. return evaluator.getOperatorList(self.appearance, resources, opList).
  1619. then(function () {
  1620. opList.addOp(OPS.endAnnotation, []);
  1621. self.appearance.reset();
  1622. return opList;
  1623. });
  1624. });
  1625. }
  1626. };
  1627. Annotation.getConstructor =
  1628. function Annotation_getConstructor(subtype, fieldType) {
  1629. if (!subtype) {
  1630. return;
  1631. }
  1632. // TODO(mack): Implement FreeText annotations
  1633. if (subtype === 'Link') {
  1634. return LinkAnnotation;
  1635. } else if (subtype === 'Text') {
  1636. return TextAnnotation;
  1637. } else if (subtype === 'Widget') {
  1638. if (!fieldType) {
  1639. return;
  1640. }
  1641. if (fieldType === 'Tx') {
  1642. return TextWidgetAnnotation;
  1643. } else {
  1644. return WidgetAnnotation;
  1645. }
  1646. } else {
  1647. return Annotation;
  1648. }
  1649. };
  1650. // TODO(mack): Support loading annotation from data
  1651. Annotation.fromData = function Annotation_fromData(data) {
  1652. var subtype = data.subtype;
  1653. var fieldType = data.fieldType;
  1654. var Constructor = Annotation.getConstructor(subtype, fieldType);
  1655. if (Constructor) {
  1656. return new Constructor({ data: data });
  1657. }
  1658. };
  1659. Annotation.fromRef = function Annotation_fromRef(xref, ref) {
  1660. var dict = xref.fetchIfRef(ref);
  1661. if (!isDict(dict)) {
  1662. return;
  1663. }
  1664. var subtype = dict.get('Subtype');
  1665. subtype = isName(subtype) ? subtype.name : '';
  1666. if (!subtype) {
  1667. return;
  1668. }
  1669. var fieldType = Util.getInheritableProperty(dict, 'FT');
  1670. fieldType = isName(fieldType) ? fieldType.name : '';
  1671. var Constructor = Annotation.getConstructor(subtype, fieldType);
  1672. if (!Constructor) {
  1673. return;
  1674. }
  1675. var params = {
  1676. dict: dict,
  1677. ref: ref,
  1678. };
  1679. var annotation = new Constructor(params);
  1680. if (annotation.isViewable() || annotation.isPrintable()) {
  1681. return annotation;
  1682. } else {
  1683. if (SUPPORTED_TYPES.indexOf(subtype) === -1) {
  1684. warn('unimplemented annotation type: ' + subtype);
  1685. }
  1686. }
  1687. };
  1688. Annotation.appendToOperatorList = function Annotation_appendToOperatorList(
  1689. annotations, opList, pdfManager, partialEvaluator, intent) {
  1690. function reject(e) {
  1691. annotationsReadyCapability.reject(e);
  1692. }
  1693. var annotationsReadyCapability = createPromiseCapability();
  1694. var annotationPromises = [];
  1695. for (var i = 0, n = annotations.length; i < n; ++i) {
  1696. if (intent === 'display' && annotations[i].isViewable() ||
  1697. intent === 'print' && annotations[i].isPrintable()) {
  1698. annotationPromises.push(
  1699. annotations[i].getOperatorList(partialEvaluator));
  1700. }
  1701. }
  1702. Promise.all(annotationPromises).then(function(datas) {
  1703. opList.addOp(OPS.beginAnnotations, []);
  1704. for (var i = 0, n = datas.length; i < n; ++i) {
  1705. var annotOpList = datas[i];
  1706. opList.addOpList(annotOpList);
  1707. }
  1708. opList.addOp(OPS.endAnnotations, []);
  1709. annotationsReadyCapability.resolve();
  1710. }, reject);
  1711. return annotationsReadyCapability.promise;
  1712. };
  1713. return Annotation;
  1714. })();
  1715. PDFJS.Annotation = Annotation;
  1716. var WidgetAnnotation = (function WidgetAnnotationClosure() {
  1717. function WidgetAnnotation(params) {
  1718. Annotation.call(this, params);
  1719. if (params.data) {
  1720. return;
  1721. }
  1722. var dict = params.dict;
  1723. var data = this.data;
  1724. data.fieldValue = stringToPDFString(
  1725. Util.getInheritableProperty(dict, 'V') || '');
  1726. data.alternativeText = stringToPDFString(dict.get('TU') || '');
  1727. data.defaultAppearance = Util.getInheritableProperty(dict, 'DA') || '';
  1728. var fieldType = Util.getInheritableProperty(dict, 'FT');
  1729. data.fieldType = isName(fieldType) ? fieldType.name : '';
  1730. data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
  1731. this.fieldResources = Util.getInheritableProperty(dict, 'DR') || Dict.empty;
  1732. // Building the full field name by collecting the field and
  1733. // its ancestors 'T' data and joining them using '.'.
  1734. var fieldName = [];
  1735. var namedItem = dict;
  1736. var ref = params.ref;
  1737. while (namedItem) {
  1738. var parent = namedItem.get('Parent');
  1739. var parentRef = namedItem.getRaw('Parent');
  1740. var name = namedItem.get('T');
  1741. if (name) {
  1742. fieldName.unshift(stringToPDFString(name));
  1743. } else {
  1744. // The field name is absent, that means more than one field
  1745. // with the same name may exist. Replacing the empty name
  1746. // with the '`' plus index in the parent's 'Kids' array.
  1747. // This is not in the PDF spec but necessary to id the
  1748. // the input controls.
  1749. var kids = parent.get('Kids');
  1750. var j, jj;
  1751. for (j = 0, jj = kids.length; j < jj; j++) {
  1752. var kidRef = kids[j];
  1753. if (kidRef.num == ref.num && kidRef.gen == ref.gen) {
  1754. break;
  1755. }
  1756. }
  1757. fieldName.unshift('`' + j);
  1758. }
  1759. namedItem = parent;
  1760. ref = parentRef;
  1761. }
  1762. data.fullName = fieldName.join('.');
  1763. }
  1764. var parent = Annotation.prototype;
  1765. Util.inherit(WidgetAnnotation, Annotation, {
  1766. isViewable: function WidgetAnnotation_isViewable() {
  1767. if (this.data.fieldType === 'Sig') {
  1768. warn('unimplemented annotation type: Widget signature');
  1769. return false;
  1770. }
  1771. return parent.isViewable.call(this);
  1772. }
  1773. });
  1774. return WidgetAnnotation;
  1775. })();
  1776. var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
  1777. function TextWidgetAnnotation(params) {
  1778. WidgetAnnotation.call(this, params);
  1779. if (params.data) {
  1780. return;
  1781. }
  1782. this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
  1783. }
  1784. // TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()
  1785. function setTextStyles(element, item, fontObj) {
  1786. var style = element.style;
  1787. style.fontSize = item.fontSize + 'px';
  1788. style.direction = item.fontDirection < 0 ? 'rtl': 'ltr';
  1789. if (!fontObj) {
  1790. return;
  1791. }
  1792. style.fontWeight = fontObj.black ?
  1793. (fontObj.bold ? 'bolder' : 'bold') :
  1794. (fontObj.bold ? 'bold' : 'normal');
  1795. style.fontStyle = fontObj.italic ? 'italic' : 'normal';
  1796. var fontName = fontObj.loadedName;
  1797. var fontFamily = fontName ? '"' + fontName + '", ' : '';
  1798. // Use a reasonable default font if the font doesn't specify a fallback
  1799. var fallbackName = fontObj.fallbackName || 'Helvetica, sans-serif';
  1800. style.fontFamily = fontFamily + fallbackName;
  1801. }
  1802. Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
  1803. hasHtml: function TextWidgetAnnotation_hasHtml() {
  1804. return !this.data.hasAppearance && !!this.data.fieldValue;
  1805. },
  1806. getHtmlElement: function TextWidgetAnnotation_getHtmlElement(commonObjs) {
  1807. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  1808. var item = this.data;
  1809. var element = this.getEmptyContainer('div');
  1810. element.style.display = 'table';
  1811. var content = document.createElement('div');
  1812. content.textContent = item.fieldValue;
  1813. var textAlignment = item.textAlignment;
  1814. content.style.textAlign = ['left', 'center', 'right'][textAlignment];
  1815. content.style.verticalAlign = 'middle';
  1816. content.style.display = 'table-cell';
  1817. var fontObj = item.fontRefName ?
  1818. commonObjs.getData(item.fontRefName) : null;
  1819. setTextStyles(content, item, fontObj);
  1820. element.appendChild(content);
  1821. return element;
  1822. },
  1823. getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {
  1824. if (this.appearance) {
  1825. return Annotation.prototype.getOperatorList.call(this, evaluator);
  1826. }
  1827. var opList = new OperatorList();
  1828. var data = this.data;
  1829. // Even if there is an appearance stream, ignore it. This is the
  1830. // behaviour used by Adobe Reader.
  1831. if (!data.defaultAppearance) {
  1832. return Promise.resolve(opList);
  1833. }
  1834. var stream = new Stream(stringToBytes(data.defaultAppearance));
  1835. return evaluator.getOperatorList(stream, this.fieldResources, opList).
  1836. then(function () {
  1837. return opList;
  1838. });
  1839. }
  1840. });
  1841. return TextWidgetAnnotation;
  1842. })();
  1843. var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
  1844. function InteractiveAnnotation(params) {
  1845. Annotation.call(this, params);
  1846. }
  1847. Util.inherit(InteractiveAnnotation, Annotation, {
  1848. hasHtml: function InteractiveAnnotation_hasHtml() {
  1849. return true;
  1850. },
  1851. highlight: function InteractiveAnnotation_highlight() {
  1852. if (this.highlightElement &&
  1853. this.highlightElement.hasAttribute('hidden')) {
  1854. this.highlightElement.removeAttribute('hidden');
  1855. }
  1856. },
  1857. unhighlight: function InteractiveAnnotation_unhighlight() {
  1858. if (this.highlightElement &&
  1859. !this.highlightElement.hasAttribute('hidden')) {
  1860. this.highlightElement.setAttribute('hidden', true);
  1861. }
  1862. },
  1863. initContainer: function InteractiveAnnotation_initContainer() {
  1864. var item = this.data;
  1865. var rect = item.rect;
  1866. var container = this.getEmptyContainer('section', rect, item.borderWidth);
  1867. container.style.backgroundColor = item.color;
  1868. var color = item.color;
  1869. var rgb = [];
  1870. for (var i = 0; i < 3; ++i) {
  1871. rgb[i] = Math.round(color[i] * 255);
  1872. }
  1873. item.colorCssRgb = Util.makeCssRgb(rgb);
  1874. var highlight = document.createElement('div');
  1875. highlight.className = 'annotationHighlight';
  1876. highlight.style.left = highlight.style.top = -HIGHLIGHT_OFFSET + 'px';
  1877. highlight.style.right = highlight.style.bottom = -HIGHLIGHT_OFFSET + 'px';
  1878. highlight.setAttribute('hidden', true);
  1879. this.highlightElement = highlight;
  1880. container.appendChild(this.highlightElement);
  1881. return container;
  1882. }
  1883. });
  1884. return InteractiveAnnotation;
  1885. })();
  1886. var TextAnnotation = (function TextAnnotationClosure() {
  1887. function TextAnnotation(params) {
  1888. InteractiveAnnotation.call(this, params);
  1889. if (params.data) {
  1890. return;
  1891. }
  1892. var dict = params.dict;
  1893. var data = this.data;
  1894. var content = dict.get('Contents');
  1895. var title = dict.get('T');
  1896. data.content = stringToPDFString(content || '');
  1897. data.title = stringToPDFString(title || '');
  1898. if (data.hasAppearance) {
  1899. data.name = 'NoIcon';
  1900. } else {
  1901. data.rect[1] = data.rect[3] - DEFAULT_ICON_SIZE;
  1902. data.rect[2] = data.rect[0] + DEFAULT_ICON_SIZE;
  1903. data.name = dict.has('Name') ? dict.get('Name').name : 'Note';
  1904. }
  1905. if (dict.has('C')) {
  1906. data.hasBgColor = true;
  1907. }
  1908. }
  1909. var ANNOT_MIN_SIZE = 10;
  1910. Util.inherit(TextAnnotation, InteractiveAnnotation, {
  1911. getHtmlElement: function TextAnnotation_getHtmlElement(commonObjs) {
  1912. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  1913. var item = this.data;
  1914. var rect = item.rect;
  1915. // sanity check because of OOo-generated PDFs
  1916. if ((rect[3] - rect[1]) < ANNOT_MIN_SIZE) {
  1917. rect[3] = rect[1] + ANNOT_MIN_SIZE;
  1918. }
  1919. if ((rect[2] - rect[0]) < ANNOT_MIN_SIZE) {
  1920. rect[2] = rect[0] + (rect[3] - rect[1]); // make it square
  1921. }
  1922. var container = this.initContainer();
  1923. container.className = 'annotText';
  1924. var image = document.createElement('img');
  1925. image.style.height = container.style.height;
  1926. image.style.width = container.style.width;
  1927. var iconName = item.name;
  1928. image.src = PDFJS.imageResourcesPath + 'annotation-' +
  1929. iconName.toLowerCase() + '.svg';
  1930. image.alt = '[{{type}} Annotation]';
  1931. image.dataset.l10nId = 'text_annotation_type';
  1932. image.dataset.l10nArgs = JSON.stringify({type: iconName});
  1933. var contentWrapper = document.createElement('div');
  1934. contentWrapper.className = 'annotTextContentWrapper';
  1935. contentWrapper.style.left = Math.floor(rect[2] - rect[0] + 5) + 'px';
  1936. contentWrapper.style.top = '-10px';
  1937. var content = document.createElement('div');
  1938. content.className = 'annotTextContent';
  1939. content.setAttribute('hidden', true);
  1940. var i, ii;
  1941. if (item.hasBgColor) {
  1942. var color = item.color;
  1943. var rgb = [];
  1944. for (i = 0; i < 3; ++i) {
  1945. // Enlighten the color (70%)
  1946. var c = Math.round(color[i] * 255);
  1947. rgb[i] = Math.round((255 - c) * 0.7) + c;
  1948. }
  1949. content.style.backgroundColor = Util.makeCssRgb(rgb);
  1950. }
  1951. var title = document.createElement('h1');
  1952. var text = document.createElement('p');
  1953. title.textContent = item.title;
  1954. if (!item.content && !item.title) {
  1955. content.setAttribute('hidden', true);
  1956. } else {
  1957. var e = document.createElement('span');
  1958. var lines = item.content.split(/(?:\r\n?|\n)/);
  1959. for (i = 0, ii = lines.length; i < ii; ++i) {
  1960. var line = lines[i];
  1961. e.appendChild(document.createTextNode(line));
  1962. if (i < (ii - 1)) {
  1963. e.appendChild(document.createElement('br'));
  1964. }
  1965. }
  1966. text.appendChild(e);
  1967. var pinned = false;
  1968. var showAnnotation = function showAnnotation(pin) {
  1969. if (pin) {
  1970. pinned = true;
  1971. }
  1972. if (content.hasAttribute('hidden')) {
  1973. container.style.zIndex += 1;
  1974. content.removeAttribute('hidden');
  1975. }
  1976. };
  1977. var hideAnnotation = function hideAnnotation(unpin) {
  1978. if (unpin) {
  1979. pinned = false;
  1980. }
  1981. if (!content.hasAttribute('hidden') && !pinned) {
  1982. container.style.zIndex -= 1;
  1983. content.setAttribute('hidden', true);
  1984. }
  1985. };
  1986. var toggleAnnotation = function toggleAnnotation() {
  1987. if (pinned) {
  1988. hideAnnotation(true);
  1989. } else {
  1990. showAnnotation(true);
  1991. }
  1992. };
  1993. image.addEventListener('click', function image_clickHandler() {
  1994. toggleAnnotation();
  1995. }, false);
  1996. image.addEventListener('mouseover', function image_mouseOverHandler() {
  1997. showAnnotation();
  1998. }, false);
  1999. image.addEventListener('mouseout', function image_mouseOutHandler() {
  2000. hideAnnotation();
  2001. }, false);
  2002. content.addEventListener('click', function content_clickHandler() {
  2003. hideAnnotation(true);
  2004. }, false);
  2005. }
  2006. content.appendChild(title);
  2007. content.appendChild(text);
  2008. contentWrapper.appendChild(content);
  2009. container.appendChild(image);
  2010. container.appendChild(contentWrapper);
  2011. return container;
  2012. }
  2013. });
  2014. return TextAnnotation;
  2015. })();
  2016. var LinkAnnotation = (function LinkAnnotationClosure() {
  2017. function LinkAnnotation(params) {
  2018. InteractiveAnnotation.call(this, params);
  2019. if (params.data) {
  2020. return;
  2021. }
  2022. var dict = params.dict;
  2023. var data = this.data;
  2024. var action = dict.get('A');
  2025. if (action) {
  2026. var linkType = action.get('S').name;
  2027. if (linkType === 'URI') {
  2028. var url = action.get('URI');
  2029. if (isName(url)) {
  2030. // Some bad PDFs do not put parentheses around relative URLs.
  2031. url = '/' + url.name;
  2032. } else if (url) {
  2033. url = addDefaultProtocolToUrl(url);
  2034. }
  2035. // TODO: pdf spec mentions urls can be relative to a Base
  2036. // entry in the dictionary.
  2037. if (!isValidUrl(url, false)) {
  2038. url = '';
  2039. }
  2040. data.url = url;
  2041. } else if (linkType === 'GoTo') {
  2042. data.dest = action.get('D');
  2043. } else if (linkType === 'GoToR') {
  2044. var urlDict = action.get('F');
  2045. if (isDict(urlDict)) {
  2046. // We assume that the 'url' is a Filspec dictionary
  2047. // and fetch the url without checking any further
  2048. url = urlDict.get('F') || '';
  2049. }
  2050. // TODO: pdf reference says that GoToR
  2051. // can also have 'NewWindow' attribute
  2052. if (!isValidUrl(url, false)) {
  2053. url = '';
  2054. }
  2055. data.url = url;
  2056. data.dest = action.get('D');
  2057. } else if (linkType === 'Named') {
  2058. data.action = action.get('N').name;
  2059. } else {
  2060. warn('unrecognized link type: ' + linkType);
  2061. }
  2062. } else if (dict.has('Dest')) {
  2063. // simple destination link
  2064. var dest = dict.get('Dest');
  2065. data.dest = isName(dest) ? dest.name : dest;
  2066. }
  2067. }
  2068. // Lets URLs beginning with 'www.' default to using the 'http://' protocol.
  2069. function addDefaultProtocolToUrl(url) {
  2070. if (url && url.indexOf('www.') === 0) {
  2071. return ('http://' + url);
  2072. }
  2073. return url;
  2074. }
  2075. Util.inherit(LinkAnnotation, InteractiveAnnotation, {
  2076. hasOperatorList: function LinkAnnotation_hasOperatorList() {
  2077. return false;
  2078. },
  2079. getHtmlElement: function LinkAnnotation_getHtmlElement(commonObjs) {
  2080. var container = this.initContainer();
  2081. container.className = 'annotLink';
  2082. var item = this.data;
  2083. container.style.borderColor = item.colorCssRgb;
  2084. container.style.borderStyle = 'solid';
  2085. var link = document.createElement('a');
  2086. link.href = link.title = this.data.url || '';
  2087. container.appendChild(link);
  2088. return container;
  2089. }
  2090. });
  2091. return LinkAnnotation;
  2092. })();
  2093. var NetworkManager = (function NetworkManagerClosure() {
  2094. var OK_RESPONSE = 200;
  2095. var PARTIAL_CONTENT_RESPONSE = 206;
  2096. function NetworkManager(url, args) {
  2097. this.url = url;
  2098. args = args || {};
  2099. this.isHttp = /^https?:/i.test(url);
  2100. this.httpHeaders = (this.isHttp && args.httpHeaders) || {};
  2101. this.withCredentials = args.withCredentials || false;
  2102. this.getXhr = args.getXhr ||
  2103. function NetworkManager_getXhr() {
  2104. return new XMLHttpRequest();
  2105. };
  2106. this.currXhrId = 0;
  2107. this.pendingRequests = {};
  2108. this.loadedRequests = {};
  2109. }
  2110. function getArrayBuffer(xhr) {
  2111. var data = xhr.response;
  2112. if (typeof data !== 'string') {
  2113. return data;
  2114. }
  2115. var length = data.length;
  2116. var buffer = new Uint8Array(length);
  2117. for (var i = 0; i < length; i++) {
  2118. buffer[i] = data.charCodeAt(i) & 0xFF;
  2119. }
  2120. return buffer;
  2121. }
  2122. NetworkManager.prototype = {
  2123. requestRange: function NetworkManager_requestRange(begin, end, listeners) {
  2124. var args = {
  2125. begin: begin,
  2126. end: end
  2127. };
  2128. for (var prop in listeners) {
  2129. args[prop] = listeners[prop];
  2130. }
  2131. return this.request(args);
  2132. },
  2133. requestFull: function NetworkManager_requestRange(listeners) {
  2134. return this.request(listeners);
  2135. },
  2136. request: function NetworkManager_requestRange(args) {
  2137. var xhr = this.getXhr();
  2138. var xhrId = this.currXhrId++;
  2139. var pendingRequest = this.pendingRequests[xhrId] = {
  2140. xhr: xhr
  2141. };
  2142. xhr.open('GET', this.url);
  2143. xhr.withCredentials = this.withCredentials;
  2144. for (var property in this.httpHeaders) {
  2145. var value = this.httpHeaders[property];
  2146. if (typeof value === 'undefined') {
  2147. continue;
  2148. }
  2149. xhr.setRequestHeader(property, value);
  2150. }
  2151. if (this.isHttp && 'begin' in args && 'end' in args) {
  2152. var rangeStr = args.begin + '-' + (args.end - 1);
  2153. xhr.setRequestHeader('Range', 'bytes=' + rangeStr);
  2154. pendingRequest.expectedStatus = 206;
  2155. } else {
  2156. pendingRequest.expectedStatus = 200;
  2157. }
  2158. xhr.responseType = 'arraybuffer';
  2159. if (args.onProgress) {
  2160. xhr.onprogress = args.onProgress;
  2161. }
  2162. if (args.onError) {
  2163. xhr.onerror = function(evt) {
  2164. args.onError(xhr.status);
  2165. };
  2166. }
  2167. xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
  2168. pendingRequest.onHeadersReceived = args.onHeadersReceived;
  2169. pendingRequest.onDone = args.onDone;
  2170. pendingRequest.onError = args.onError;
  2171. xhr.send(null);
  2172. return xhrId;
  2173. },
  2174. onStateChange: function NetworkManager_onStateChange(xhrId, evt) {
  2175. var pendingRequest = this.pendingRequests[xhrId];
  2176. if (!pendingRequest) {
  2177. // Maybe abortRequest was called...
  2178. return;
  2179. }
  2180. var xhr = pendingRequest.xhr;
  2181. if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
  2182. pendingRequest.onHeadersReceived();
  2183. delete pendingRequest.onHeadersReceived;
  2184. }
  2185. if (xhr.readyState !== 4) {
  2186. return;
  2187. }
  2188. if (!(xhrId in this.pendingRequests)) {
  2189. // The XHR request might have been aborted in onHeadersReceived()
  2190. // callback, in which case we should abort request
  2191. return;
  2192. }
  2193. delete this.pendingRequests[xhrId];
  2194. // success status == 0 can be on ftp, file and other protocols
  2195. if (xhr.status === 0 && this.isHttp) {
  2196. if (pendingRequest.onError) {
  2197. pendingRequest.onError(xhr.status);
  2198. }
  2199. return;
  2200. }
  2201. var xhrStatus = xhr.status || OK_RESPONSE;
  2202. // From http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2:
  2203. // "A server MAY ignore the Range header". This means it's possible to
  2204. // get a 200 rather than a 206 response from a range request.
  2205. var ok_response_on_range_request =
  2206. xhrStatus === OK_RESPONSE &&
  2207. pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;
  2208. if (!ok_response_on_range_request &&
  2209. xhrStatus !== pendingRequest.expectedStatus) {
  2210. if (pendingRequest.onError) {
  2211. pendingRequest.onError(xhr.status);
  2212. }
  2213. return;
  2214. }
  2215. this.loadedRequests[xhrId] = true;
  2216. var chunk = getArrayBuffer(xhr);
  2217. if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
  2218. var rangeHeader = xhr.getResponseHeader('Content-Range');
  2219. var matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
  2220. var begin = parseInt(matches[1], 10);
  2221. pendingRequest.onDone({
  2222. begin: begin,
  2223. chunk: chunk
  2224. });
  2225. } else {
  2226. pendingRequest.onDone({
  2227. begin: 0,
  2228. chunk: chunk
  2229. });
  2230. }
  2231. },
  2232. hasPendingRequests: function NetworkManager_hasPendingRequests() {
  2233. for (var xhrId in this.pendingRequests) {
  2234. return true;
  2235. }
  2236. return false;
  2237. },
  2238. getRequestXhr: function NetworkManager_getXhr(xhrId) {
  2239. return this.pendingRequests[xhrId].xhr;
  2240. },
  2241. isPendingRequest: function NetworkManager_isPendingRequest(xhrId) {
  2242. return xhrId in this.pendingRequests;
  2243. },
  2244. isLoadedRequest: function NetworkManager_isLoadedRequest(xhrId) {
  2245. return xhrId in this.loadedRequests;
  2246. },
  2247. abortAllRequests: function NetworkManager_abortAllRequests() {
  2248. for (var xhrId in this.pendingRequests) {
  2249. this.abortRequest(xhrId | 0);
  2250. }
  2251. },
  2252. abortRequest: function NetworkManager_abortRequest(xhrId) {
  2253. var xhr = this.pendingRequests[xhrId].xhr;
  2254. delete this.pendingRequests[xhrId];
  2255. xhr.abort();
  2256. }
  2257. };
  2258. return NetworkManager;
  2259. })();
  2260. var ChunkedStream = (function ChunkedStreamClosure() {
  2261. function ChunkedStream(length, chunkSize, manager) {
  2262. this.bytes = new Uint8Array(length);
  2263. this.start = 0;
  2264. this.pos = 0;
  2265. this.end = length;
  2266. this.chunkSize = chunkSize;
  2267. this.loadedChunks = [];
  2268. this.numChunksLoaded = 0;
  2269. this.numChunks = Math.ceil(length / chunkSize);
  2270. this.manager = manager;
  2271. this.initialDataLength = 0;
  2272. }
  2273. // required methods for a stream. if a particular stream does not
  2274. // implement these, an error should be thrown
  2275. ChunkedStream.prototype = {
  2276. getMissingChunks: function ChunkedStream_getMissingChunks() {
  2277. var chunks = [];
  2278. for (var chunk = 0, n = this.numChunks; chunk < n; ++chunk) {
  2279. if (!(chunk in this.loadedChunks)) {
  2280. chunks.push(chunk);
  2281. }
  2282. }
  2283. return chunks;
  2284. },
  2285. getBaseStreams: function ChunkedStream_getBaseStreams() {
  2286. return [this];
  2287. },
  2288. allChunksLoaded: function ChunkedStream_allChunksLoaded() {
  2289. return this.numChunksLoaded === this.numChunks;
  2290. },
  2291. onReceiveData: function ChunkedStream_onReceiveData(begin, chunk) {
  2292. var end = begin + chunk.byteLength;
  2293. assert(begin % this.chunkSize === 0, 'Bad begin offset: ' + begin);
  2294. // Using this.length is inaccurate here since this.start can be moved
  2295. // See ChunkedStream.moveStart()
  2296. var length = this.bytes.length;
  2297. assert(end % this.chunkSize === 0 || end === length,
  2298. 'Bad end offset: ' + end);
  2299. this.bytes.set(new Uint8Array(chunk), begin);
  2300. var chunkSize = this.chunkSize;
  2301. var beginChunk = Math.floor(begin / chunkSize);
  2302. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  2303. var curChunk;
  2304. for (curChunk = beginChunk; curChunk < endChunk; ++curChunk) {
  2305. if (!(curChunk in this.loadedChunks)) {
  2306. this.loadedChunks[curChunk] = true;
  2307. ++this.numChunksLoaded;
  2308. }
  2309. }
  2310. },
  2311. onReceiveInitialData: function ChunkedStream_onReceiveInitialData(data) {
  2312. this.bytes.set(data);
  2313. this.initialDataLength = data.length;
  2314. var endChunk = (this.end === data.length ?
  2315. this.numChunks : Math.floor(data.length / this.chunkSize));
  2316. for (var i = 0; i < endChunk; i++) {
  2317. this.loadedChunks[i] = true;
  2318. ++this.numChunksLoaded;
  2319. }
  2320. },
  2321. ensureRange: function ChunkedStream_ensureRange(begin, end) {
  2322. if (begin >= end) {
  2323. return;
  2324. }
  2325. if (end <= this.initialDataLength) {
  2326. return;
  2327. }
  2328. var chunkSize = this.chunkSize;
  2329. var beginChunk = Math.floor(begin / chunkSize);
  2330. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  2331. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  2332. if (!(chunk in this.loadedChunks)) {
  2333. throw new MissingDataException(begin, end);
  2334. }
  2335. }
  2336. },
  2337. nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
  2338. var chunk, n;
  2339. for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
  2340. if (!(chunk in this.loadedChunks)) {
  2341. return chunk;
  2342. }
  2343. }
  2344. // Wrap around to beginning
  2345. for (chunk = 0; chunk < beginChunk; ++chunk) {
  2346. if (!(chunk in this.loadedChunks)) {
  2347. return chunk;
  2348. }
  2349. }
  2350. return null;
  2351. },
  2352. hasChunk: function ChunkedStream_hasChunk(chunk) {
  2353. return chunk in this.loadedChunks;
  2354. },
  2355. get length() {
  2356. return this.end - this.start;
  2357. },
  2358. get isEmpty() {
  2359. return this.length === 0;
  2360. },
  2361. getByte: function ChunkedStream_getByte() {
  2362. var pos = this.pos;
  2363. if (pos >= this.end) {
  2364. return -1;
  2365. }
  2366. this.ensureRange(pos, pos + 1);
  2367. return this.bytes[this.pos++];
  2368. },
  2369. getUint16: function ChunkedStream_getUint16() {
  2370. var b0 = this.getByte();
  2371. var b1 = this.getByte();
  2372. return (b0 << 8) + b1;
  2373. },
  2374. getInt32: function ChunkedStream_getInt32() {
  2375. var b0 = this.getByte();
  2376. var b1 = this.getByte();
  2377. var b2 = this.getByte();
  2378. var b3 = this.getByte();
  2379. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  2380. },
  2381. // returns subarray of original buffer
  2382. // should only be read
  2383. getBytes: function ChunkedStream_getBytes(length) {
  2384. var bytes = this.bytes;
  2385. var pos = this.pos;
  2386. var strEnd = this.end;
  2387. if (!length) {
  2388. this.ensureRange(pos, strEnd);
  2389. return bytes.subarray(pos, strEnd);
  2390. }
  2391. var end = pos + length;
  2392. if (end > strEnd) {
  2393. end = strEnd;
  2394. }
  2395. this.ensureRange(pos, end);
  2396. this.pos = end;
  2397. return bytes.subarray(pos, end);
  2398. },
  2399. peekBytes: function ChunkedStream_peekBytes(length) {
  2400. var bytes = this.getBytes(length);
  2401. this.pos -= bytes.length;
  2402. return bytes;
  2403. },
  2404. getByteRange: function ChunkedStream_getBytes(begin, end) {
  2405. this.ensureRange(begin, end);
  2406. return this.bytes.subarray(begin, end);
  2407. },
  2408. skip: function ChunkedStream_skip(n) {
  2409. if (!n) {
  2410. n = 1;
  2411. }
  2412. this.pos += n;
  2413. },
  2414. reset: function ChunkedStream_reset() {
  2415. this.pos = this.start;
  2416. },
  2417. moveStart: function ChunkedStream_moveStart() {
  2418. this.start = this.pos;
  2419. },
  2420. makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) {
  2421. this.ensureRange(start, start + length);
  2422. function ChunkedStreamSubstream() {}
  2423. ChunkedStreamSubstream.prototype = Object.create(this);
  2424. ChunkedStreamSubstream.prototype.getMissingChunks = function() {
  2425. var chunkSize = this.chunkSize;
  2426. var beginChunk = Math.floor(this.start / chunkSize);
  2427. var endChunk = Math.floor((this.end - 1) / chunkSize) + 1;
  2428. var missingChunks = [];
  2429. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  2430. if (!(chunk in this.loadedChunks)) {
  2431. missingChunks.push(chunk);
  2432. }
  2433. }
  2434. return missingChunks;
  2435. };
  2436. var subStream = new ChunkedStreamSubstream();
  2437. subStream.pos = subStream.start = start;
  2438. subStream.end = start + length || this.end;
  2439. subStream.dict = dict;
  2440. return subStream;
  2441. },
  2442. isStream: true
  2443. };
  2444. return ChunkedStream;
  2445. })();
  2446. var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
  2447. function ChunkedStreamManager(length, chunkSize, url, args) {
  2448. this.stream = new ChunkedStream(length, chunkSize, this);
  2449. this.length = length;
  2450. this.chunkSize = chunkSize;
  2451. this.url = url;
  2452. this.disableAutoFetch = args.disableAutoFetch;
  2453. var msgHandler = this.msgHandler = args.msgHandler;
  2454. if (args.chunkedViewerLoading) {
  2455. msgHandler.on('OnDataRange', this.onReceiveData.bind(this));
  2456. msgHandler.on('OnDataProgress', this.onProgress.bind(this));
  2457. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  2458. msgHandler.send('RequestDataRange', { begin: begin, end: end });
  2459. };
  2460. } else {
  2461. var getXhr = function getXhr() {
  2462. return new XMLHttpRequest();
  2463. };
  2464. this.networkManager = new NetworkManager(this.url, {
  2465. getXhr: getXhr,
  2466. httpHeaders: args.httpHeaders,
  2467. withCredentials: args.withCredentials
  2468. });
  2469. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  2470. this.networkManager.requestRange(begin, end, {
  2471. onDone: this.onReceiveData.bind(this),
  2472. onProgress: this.onProgress.bind(this)
  2473. });
  2474. };
  2475. }
  2476. this.currRequestId = 0;
  2477. this.chunksNeededByRequest = {};
  2478. this.requestsByChunk = {};
  2479. this.callbacksByRequest = {};
  2480. this._loadedStreamCapability = createPromiseCapability();
  2481. if (args.initialData) {
  2482. this.setInitialData(args.initialData);
  2483. }
  2484. }
  2485. ChunkedStreamManager.prototype = {
  2486. setInitialData: function ChunkedStreamManager_setInitialData(data) {
  2487. this.stream.onReceiveInitialData(data);
  2488. if (this.stream.allChunksLoaded()) {
  2489. this._loadedStreamCapability.resolve(this.stream);
  2490. } else if (this.msgHandler) {
  2491. this.msgHandler.send('DocProgress', {
  2492. loaded: data.length,
  2493. total: this.length
  2494. });
  2495. }
  2496. },
  2497. onLoadedStream: function ChunkedStreamManager_getLoadedStream() {
  2498. return this._loadedStreamCapability.promise;
  2499. },
  2500. // Get all the chunks that are not yet loaded and groups them into
  2501. // contiguous ranges to load in as few requests as possible
  2502. requestAllChunks: function ChunkedStreamManager_requestAllChunks() {
  2503. var missingChunks = this.stream.getMissingChunks();
  2504. this.requestChunks(missingChunks);
  2505. return this._loadedStreamCapability.promise;
  2506. },
  2507. requestChunks: function ChunkedStreamManager_requestChunks(chunks,
  2508. callback) {
  2509. var requestId = this.currRequestId++;
  2510. var chunksNeeded;
  2511. var i, ii;
  2512. this.chunksNeededByRequest[requestId] = chunksNeeded = {};
  2513. for (i = 0, ii = chunks.length; i < ii; i++) {
  2514. if (!this.stream.hasChunk(chunks[i])) {
  2515. chunksNeeded[chunks[i]] = true;
  2516. }
  2517. }
  2518. if (isEmptyObj(chunksNeeded)) {
  2519. if (callback) {
  2520. callback();
  2521. }
  2522. return;
  2523. }
  2524. this.callbacksByRequest[requestId] = callback;
  2525. var chunksToRequest = [];
  2526. for (var chunk in chunksNeeded) {
  2527. chunk = chunk | 0;
  2528. if (!(chunk in this.requestsByChunk)) {
  2529. this.requestsByChunk[chunk] = [];
  2530. chunksToRequest.push(chunk);
  2531. }
  2532. this.requestsByChunk[chunk].push(requestId);
  2533. }
  2534. if (!chunksToRequest.length) {
  2535. return;
  2536. }
  2537. var groupedChunksToRequest = this.groupChunks(chunksToRequest);
  2538. for (i = 0; i < groupedChunksToRequest.length; ++i) {
  2539. var groupedChunk = groupedChunksToRequest[i];
  2540. var begin = groupedChunk.beginChunk * this.chunkSize;
  2541. var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);
  2542. this.sendRequest(begin, end);
  2543. }
  2544. },
  2545. getStream: function ChunkedStreamManager_getStream() {
  2546. return this.stream;
  2547. },
  2548. // Loads any chunks in the requested range that are not yet loaded
  2549. requestRange: function ChunkedStreamManager_requestRange(
  2550. begin, end, callback) {
  2551. end = Math.min(end, this.length);
  2552. var beginChunk = this.getBeginChunk(begin);
  2553. var endChunk = this.getEndChunk(end);
  2554. var chunks = [];
  2555. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  2556. chunks.push(chunk);
  2557. }
  2558. this.requestChunks(chunks, callback);
  2559. },
  2560. requestRanges: function ChunkedStreamManager_requestRanges(ranges,
  2561. callback) {
  2562. ranges = ranges || [];
  2563. var chunksToRequest = [];
  2564. for (var i = 0; i < ranges.length; i++) {
  2565. var beginChunk = this.getBeginChunk(ranges[i].begin);
  2566. var endChunk = this.getEndChunk(ranges[i].end);
  2567. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  2568. if (chunksToRequest.indexOf(chunk) < 0) {
  2569. chunksToRequest.push(chunk);
  2570. }
  2571. }
  2572. }
  2573. chunksToRequest.sort(function(a, b) { return a - b; });
  2574. this.requestChunks(chunksToRequest, callback);
  2575. },
  2576. // Groups a sorted array of chunks into as few continguous larger
  2577. // chunks as possible
  2578. groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
  2579. var groupedChunks = [];
  2580. var beginChunk = -1;
  2581. var prevChunk = -1;
  2582. for (var i = 0; i < chunks.length; ++i) {
  2583. var chunk = chunks[i];
  2584. if (beginChunk < 0) {
  2585. beginChunk = chunk;
  2586. }
  2587. if (prevChunk >= 0 && prevChunk + 1 !== chunk) {
  2588. groupedChunks.push({ beginChunk: beginChunk,
  2589. endChunk: prevChunk + 1 });
  2590. beginChunk = chunk;
  2591. }
  2592. if (i + 1 === chunks.length) {
  2593. groupedChunks.push({ beginChunk: beginChunk,
  2594. endChunk: chunk + 1 });
  2595. }
  2596. prevChunk = chunk;
  2597. }
  2598. return groupedChunks;
  2599. },
  2600. onProgress: function ChunkedStreamManager_onProgress(args) {
  2601. var bytesLoaded = (this.stream.numChunksLoaded * this.chunkSize +
  2602. args.loaded);
  2603. this.msgHandler.send('DocProgress', {
  2604. loaded: bytesLoaded,
  2605. total: this.length
  2606. });
  2607. },
  2608. onReceiveData: function ChunkedStreamManager_onReceiveData(args) {
  2609. var chunk = args.chunk;
  2610. var begin = args.begin;
  2611. var end = begin + chunk.byteLength;
  2612. var beginChunk = this.getBeginChunk(begin);
  2613. var endChunk = this.getEndChunk(end);
  2614. this.stream.onReceiveData(begin, chunk);
  2615. if (this.stream.allChunksLoaded()) {
  2616. this._loadedStreamCapability.resolve(this.stream);
  2617. }
  2618. var loadedRequests = [];
  2619. var i, requestId;
  2620. for (chunk = beginChunk; chunk < endChunk; ++chunk) {
  2621. // The server might return more chunks than requested
  2622. var requestIds = this.requestsByChunk[chunk] || [];
  2623. delete this.requestsByChunk[chunk];
  2624. for (i = 0; i < requestIds.length; ++i) {
  2625. requestId = requestIds[i];
  2626. var chunksNeeded = this.chunksNeededByRequest[requestId];
  2627. if (chunk in chunksNeeded) {
  2628. delete chunksNeeded[chunk];
  2629. }
  2630. if (!isEmptyObj(chunksNeeded)) {
  2631. continue;
  2632. }
  2633. loadedRequests.push(requestId);
  2634. }
  2635. }
  2636. // If there are no pending requests, automatically fetch the next
  2637. // unfetched chunk of the PDF
  2638. if (!this.disableAutoFetch && isEmptyObj(this.requestsByChunk)) {
  2639. var nextEmptyChunk;
  2640. if (this.stream.numChunksLoaded === 1) {
  2641. // This is a special optimization so that after fetching the first
  2642. // chunk, rather than fetching the second chunk, we fetch the last
  2643. // chunk.
  2644. var lastChunk = this.stream.numChunks - 1;
  2645. if (!this.stream.hasChunk(lastChunk)) {
  2646. nextEmptyChunk = lastChunk;
  2647. }
  2648. } else {
  2649. nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
  2650. }
  2651. if (isInt(nextEmptyChunk)) {
  2652. this.requestChunks([nextEmptyChunk]);
  2653. }
  2654. }
  2655. for (i = 0; i < loadedRequests.length; ++i) {
  2656. requestId = loadedRequests[i];
  2657. var callback = this.callbacksByRequest[requestId];
  2658. delete this.callbacksByRequest[requestId];
  2659. if (callback) {
  2660. callback();
  2661. }
  2662. }
  2663. this.msgHandler.send('DocProgress', {
  2664. loaded: this.stream.numChunksLoaded * this.chunkSize,
  2665. total: this.length
  2666. });
  2667. },
  2668. onError: function ChunkedStreamManager_onError(err) {
  2669. this._loadedStreamCapability.reject(err);
  2670. },
  2671. getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
  2672. var chunk = Math.floor(begin / this.chunkSize);
  2673. return chunk;
  2674. },
  2675. getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
  2676. if (end % this.chunkSize === 0) {
  2677. return end / this.chunkSize;
  2678. }
  2679. // 0 -> 0
  2680. // 1 -> 1
  2681. // 99 -> 1
  2682. // 100 -> 1
  2683. // 101 -> 2
  2684. var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
  2685. return chunk;
  2686. }
  2687. };
  2688. return ChunkedStreamManager;
  2689. })();
  2690. // The maximum number of bytes fetched per range request
  2691. var RANGE_CHUNK_SIZE = 65536;
  2692. // TODO(mack): Make use of PDFJS.Util.inherit() when it becomes available
  2693. var BasePdfManager = (function BasePdfManagerClosure() {
  2694. function BasePdfManager() {
  2695. throw new Error('Cannot initialize BaseManagerManager');
  2696. }
  2697. BasePdfManager.prototype = {
  2698. onLoadedStream: function BasePdfManager_onLoadedStream() {
  2699. throw new NotImplementedException();
  2700. },
  2701. ensureDoc: function BasePdfManager_ensureDoc(prop, args) {
  2702. return this.ensure(this.pdfDocument, prop, args);
  2703. },
  2704. ensureXRef: function BasePdfManager_ensureXRef(prop, args) {
  2705. return this.ensure(this.pdfDocument.xref, prop, args);
  2706. },
  2707. ensureCatalog: function BasePdfManager_ensureCatalog(prop, args) {
  2708. return this.ensure(this.pdfDocument.catalog, prop, args);
  2709. },
  2710. getPage: function BasePdfManager_pagePage(pageIndex) {
  2711. return this.pdfDocument.getPage(pageIndex);
  2712. },
  2713. cleanup: function BasePdfManager_cleanup() {
  2714. return this.pdfDocument.cleanup();
  2715. },
  2716. ensure: function BasePdfManager_ensure(obj, prop, args) {
  2717. return new NotImplementedException();
  2718. },
  2719. requestRange: function BasePdfManager_ensure(begin, end) {
  2720. return new NotImplementedException();
  2721. },
  2722. requestLoadedStream: function BasePdfManager_requestLoadedStream() {
  2723. return new NotImplementedException();
  2724. },
  2725. updatePassword: function BasePdfManager_updatePassword(password) {
  2726. this.pdfDocument.xref.password = this.password = password;
  2727. if (this._passwordChangedCapability) {
  2728. this._passwordChangedCapability.resolve();
  2729. }
  2730. },
  2731. passwordChanged: function BasePdfManager_passwordChanged() {
  2732. this._passwordChangedCapability = createPromiseCapability();
  2733. return this._passwordChangedCapability.promise;
  2734. },
  2735. terminate: function BasePdfManager_terminate() {
  2736. return new NotImplementedException();
  2737. }
  2738. };
  2739. return BasePdfManager;
  2740. })();
  2741. var LocalPdfManager = (function LocalPdfManagerClosure() {
  2742. function LocalPdfManager(data, password) {
  2743. var stream = new Stream(data);
  2744. this.pdfDocument = new PDFDocument(this, stream, password);
  2745. this._loadedStreamCapability = createPromiseCapability();
  2746. this._loadedStreamCapability.resolve(stream);
  2747. }
  2748. LocalPdfManager.prototype = Object.create(BasePdfManager.prototype);
  2749. LocalPdfManager.prototype.constructor = LocalPdfManager;
  2750. LocalPdfManager.prototype.ensure =
  2751. function LocalPdfManager_ensure(obj, prop, args) {
  2752. return new Promise(function (resolve, reject) {
  2753. try {
  2754. var value = obj[prop];
  2755. var result;
  2756. if (typeof value === 'function') {
  2757. result = value.apply(obj, args);
  2758. } else {
  2759. result = value;
  2760. }
  2761. resolve(result);
  2762. } catch (e) {
  2763. reject(e);
  2764. }
  2765. });
  2766. };
  2767. LocalPdfManager.prototype.requestRange =
  2768. function LocalPdfManager_requestRange(begin, end) {
  2769. return Promise.resolve();
  2770. };
  2771. LocalPdfManager.prototype.requestLoadedStream =
  2772. function LocalPdfManager_requestLoadedStream() {
  2773. };
  2774. LocalPdfManager.prototype.onLoadedStream =
  2775. function LocalPdfManager_getLoadedStream() {
  2776. return this._loadedStreamCapability.promise;
  2777. };
  2778. LocalPdfManager.prototype.terminate =
  2779. function LocalPdfManager_terminate() {
  2780. return;
  2781. };
  2782. return LocalPdfManager;
  2783. })();
  2784. var NetworkPdfManager = (function NetworkPdfManagerClosure() {
  2785. function NetworkPdfManager(args, msgHandler) {
  2786. this.msgHandler = msgHandler;
  2787. var params = {
  2788. msgHandler: msgHandler,
  2789. httpHeaders: args.httpHeaders,
  2790. withCredentials: args.withCredentials,
  2791. chunkedViewerLoading: args.chunkedViewerLoading,
  2792. disableAutoFetch: args.disableAutoFetch,
  2793. initialData: args.initialData
  2794. };
  2795. this.streamManager = new ChunkedStreamManager(args.length, RANGE_CHUNK_SIZE,
  2796. args.url, params);
  2797. this.pdfDocument = new PDFDocument(this, this.streamManager.getStream(),
  2798. args.password);
  2799. }
  2800. NetworkPdfManager.prototype = Object.create(BasePdfManager.prototype);
  2801. NetworkPdfManager.prototype.constructor = NetworkPdfManager;
  2802. NetworkPdfManager.prototype.ensure =
  2803. function NetworkPdfManager_ensure(obj, prop, args) {
  2804. var pdfManager = this;
  2805. return new Promise(function (resolve, reject) {
  2806. function ensureHelper() {
  2807. try {
  2808. var result;
  2809. var value = obj[prop];
  2810. if (typeof value === 'function') {
  2811. result = value.apply(obj, args);
  2812. } else {
  2813. result = value;
  2814. }
  2815. resolve(result);
  2816. } catch(e) {
  2817. if (!(e instanceof MissingDataException)) {
  2818. reject(e);
  2819. return;
  2820. }
  2821. pdfManager.streamManager.requestRange(e.begin, e.end, ensureHelper);
  2822. }
  2823. }
  2824. ensureHelper();
  2825. });
  2826. };
  2827. NetworkPdfManager.prototype.requestRange =
  2828. function NetworkPdfManager_requestRange(begin, end) {
  2829. return new Promise(function (resolve) {
  2830. this.streamManager.requestRange(begin, end, function() {
  2831. resolve();
  2832. });
  2833. }.bind(this));
  2834. };
  2835. NetworkPdfManager.prototype.requestLoadedStream =
  2836. function NetworkPdfManager_requestLoadedStream() {
  2837. this.streamManager.requestAllChunks();
  2838. };
  2839. NetworkPdfManager.prototype.onLoadedStream =
  2840. function NetworkPdfManager_getLoadedStream() {
  2841. return this.streamManager.onLoadedStream();
  2842. };
  2843. NetworkPdfManager.prototype.terminate =
  2844. function NetworkPdfManager_terminate() {
  2845. this.streamManager.networkManager.abortAllRequests();
  2846. };
  2847. return NetworkPdfManager;
  2848. })();
  2849. var Page = (function PageClosure() {
  2850. var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];
  2851. function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache) {
  2852. this.pdfManager = pdfManager;
  2853. this.pageIndex = pageIndex;
  2854. this.pageDict = pageDict;
  2855. this.xref = xref;
  2856. this.ref = ref;
  2857. this.fontCache = fontCache;
  2858. this.idCounters = {
  2859. obj: 0
  2860. };
  2861. this.resourcesPromise = null;
  2862. }
  2863. Page.prototype = {
  2864. getPageProp: function Page_getPageProp(key) {
  2865. return this.pageDict.get(key);
  2866. },
  2867. getInheritedPageProp: function Page_inheritPageProp(key) {
  2868. var dict = this.pageDict;
  2869. var value = dict.get(key);
  2870. while (value === undefined) {
  2871. dict = dict.get('Parent');
  2872. if (!dict) {
  2873. break;
  2874. }
  2875. value = dict.get(key);
  2876. }
  2877. return value;
  2878. },
  2879. get content() {
  2880. return this.getPageProp('Contents');
  2881. },
  2882. get resources() {
  2883. var value = this.getInheritedPageProp('Resources');
  2884. // For robustness: The spec states that a \Resources entry has to be
  2885. // present, but can be empty. Some document omit it still. In this case
  2886. // return an empty dictionary:
  2887. if (value === undefined) {
  2888. value = Dict.empty;
  2889. }
  2890. return shadow(this, 'resources', value);
  2891. },
  2892. get mediaBox() {
  2893. var obj = this.getInheritedPageProp('MediaBox');
  2894. // Reset invalid media box to letter size.
  2895. if (!isArray(obj) || obj.length !== 4) {
  2896. obj = LETTER_SIZE_MEDIABOX;
  2897. }
  2898. return shadow(this, 'mediaBox', obj);
  2899. },
  2900. get view() {
  2901. var mediaBox = this.mediaBox;
  2902. var cropBox = this.getInheritedPageProp('CropBox');
  2903. if (!isArray(cropBox) || cropBox.length !== 4) {
  2904. return shadow(this, 'view', mediaBox);
  2905. }
  2906. // From the spec, 6th ed., p.963:
  2907. // "The crop, bleed, trim, and art boxes should not ordinarily
  2908. // extend beyond the boundaries of the media box. If they do, they are
  2909. // effectively reduced to their intersection with the media box."
  2910. cropBox = Util.intersect(cropBox, mediaBox);
  2911. if (!cropBox) {
  2912. return shadow(this, 'view', mediaBox);
  2913. }
  2914. return shadow(this, 'view', cropBox);
  2915. },
  2916. get annotationRefs() {
  2917. return shadow(this, 'annotationRefs',
  2918. this.getInheritedPageProp('Annots'));
  2919. },
  2920. get rotate() {
  2921. var rotate = this.getInheritedPageProp('Rotate') || 0;
  2922. // Normalize rotation so it's a multiple of 90 and between 0 and 270
  2923. if (rotate % 90 !== 0) {
  2924. rotate = 0;
  2925. } else if (rotate >= 360) {
  2926. rotate = rotate % 360;
  2927. } else if (rotate < 0) {
  2928. // The spec doesn't cover negatives, assume its counterclockwise
  2929. // rotation. The following is the other implementation of modulo.
  2930. rotate = ((rotate % 360) + 360) % 360;
  2931. }
  2932. return shadow(this, 'rotate', rotate);
  2933. },
  2934. getContentStream: function Page_getContentStream() {
  2935. var content = this.content;
  2936. var stream;
  2937. if (isArray(content)) {
  2938. // fetching items
  2939. var xref = this.xref;
  2940. var i, n = content.length;
  2941. var streams = [];
  2942. for (i = 0; i < n; ++i) {
  2943. streams.push(xref.fetchIfRef(content[i]));
  2944. }
  2945. stream = new StreamsSequenceStream(streams);
  2946. } else if (isStream(content)) {
  2947. stream = content;
  2948. } else {
  2949. // replacing non-existent page content with empty one
  2950. stream = new NullStream();
  2951. }
  2952. return stream;
  2953. },
  2954. loadResources: function Page_loadResources(keys) {
  2955. if (!this.resourcesPromise) {
  2956. // TODO: add async getInheritedPageProp and remove this.
  2957. this.resourcesPromise = this.pdfManager.ensure(this, 'resources');
  2958. }
  2959. return this.resourcesPromise.then(function resourceSuccess() {
  2960. var objectLoader = new ObjectLoader(this.resources.map,
  2961. keys,
  2962. this.xref);
  2963. return objectLoader.load();
  2964. }.bind(this));
  2965. },
  2966. getOperatorList: function Page_getOperatorList(handler, intent) {
  2967. var self = this;
  2968. var pdfManager = this.pdfManager;
  2969. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  2970. []);
  2971. var resourcesPromise = this.loadResources([
  2972. 'ExtGState',
  2973. 'ColorSpace',
  2974. 'Pattern',
  2975. 'Shading',
  2976. 'XObject',
  2977. 'Font'
  2978. // ProcSet
  2979. // Properties
  2980. ]);
  2981. var partialEvaluator = new PartialEvaluator(pdfManager, this.xref,
  2982. handler, this.pageIndex,
  2983. 'p' + this.pageIndex + '_',
  2984. this.idCounters,
  2985. this.fontCache);
  2986. var dataPromises = Promise.all([contentStreamPromise, resourcesPromise]);
  2987. var pageListPromise = dataPromises.then(function(data) {
  2988. var contentStream = data[0];
  2989. var opList = new OperatorList(intent, handler, self.pageIndex);
  2990. handler.send('StartRenderPage', {
  2991. transparency: partialEvaluator.hasBlendModes(self.resources),
  2992. pageIndex: self.pageIndex,
  2993. intent: intent
  2994. });
  2995. return partialEvaluator.getOperatorList(contentStream, self.resources,
  2996. opList).then(function () {
  2997. return opList;
  2998. });
  2999. });
  3000. var annotationsPromise = pdfManager.ensure(this, 'annotations');
  3001. return Promise.all([pageListPromise, annotationsPromise]).then(
  3002. function(datas) {
  3003. var pageOpList = datas[0];
  3004. var annotations = datas[1];
  3005. if (annotations.length === 0) {
  3006. pageOpList.flush(true);
  3007. return pageOpList;
  3008. }
  3009. var annotationsReadyPromise = Annotation.appendToOperatorList(
  3010. annotations, pageOpList, pdfManager, partialEvaluator, intent);
  3011. return annotationsReadyPromise.then(function () {
  3012. pageOpList.flush(true);
  3013. return pageOpList;
  3014. });
  3015. });
  3016. },
  3017. extractTextContent: function Page_extractTextContent() {
  3018. var handler = {
  3019. on: function nullHandlerOn() {},
  3020. send: function nullHandlerSend() {}
  3021. };
  3022. var self = this;
  3023. var pdfManager = this.pdfManager;
  3024. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  3025. []);
  3026. var resourcesPromise = this.loadResources([
  3027. 'ExtGState',
  3028. 'XObject',
  3029. 'Font'
  3030. ]);
  3031. var dataPromises = Promise.all([contentStreamPromise,
  3032. resourcesPromise]);
  3033. return dataPromises.then(function(data) {
  3034. var contentStream = data[0];
  3035. var partialEvaluator = new PartialEvaluator(pdfManager, self.xref,
  3036. handler, self.pageIndex,
  3037. 'p' + self.pageIndex + '_',
  3038. self.idCounters,
  3039. self.fontCache);
  3040. return partialEvaluator.getTextContent(contentStream,
  3041. self.resources);
  3042. });
  3043. },
  3044. getAnnotationsData: function Page_getAnnotationsData() {
  3045. var annotations = this.annotations;
  3046. var annotationsData = [];
  3047. for (var i = 0, n = annotations.length; i < n; ++i) {
  3048. annotationsData.push(annotations[i].getData());
  3049. }
  3050. return annotationsData;
  3051. },
  3052. get annotations() {
  3053. var annotations = [];
  3054. var annotationRefs = (this.annotationRefs || []);
  3055. for (var i = 0, n = annotationRefs.length; i < n; ++i) {
  3056. var annotationRef = annotationRefs[i];
  3057. var annotation = Annotation.fromRef(this.xref, annotationRef);
  3058. if (annotation) {
  3059. annotations.push(annotation);
  3060. }
  3061. }
  3062. return shadow(this, 'annotations', annotations);
  3063. }
  3064. };
  3065. return Page;
  3066. })();
  3067. /**
  3068. * The `PDFDocument` holds all the data of the PDF file. Compared to the
  3069. * `PDFDoc`, this one doesn't have any job management code.
  3070. * Right now there exists one PDFDocument on the main thread + one object
  3071. * for each worker. If there is no worker support enabled, there are two
  3072. * `PDFDocument` objects on the main thread created.
  3073. */
  3074. var PDFDocument = (function PDFDocumentClosure() {
  3075. function PDFDocument(pdfManager, arg, password) {
  3076. if (isStream(arg)) {
  3077. init.call(this, pdfManager, arg, password);
  3078. } else if (isArrayBuffer(arg)) {
  3079. init.call(this, pdfManager, new Stream(arg), password);
  3080. } else {
  3081. error('PDFDocument: Unknown argument type');
  3082. }
  3083. }
  3084. function init(pdfManager, stream, password) {
  3085. assert(stream.length > 0, 'stream must have data');
  3086. this.pdfManager = pdfManager;
  3087. this.stream = stream;
  3088. var xref = new XRef(this.stream, password, pdfManager);
  3089. this.xref = xref;
  3090. }
  3091. function find(stream, needle, limit, backwards) {
  3092. var pos = stream.pos;
  3093. var end = stream.end;
  3094. var strBuf = [];
  3095. if (pos + limit > end) {
  3096. limit = end - pos;
  3097. }
  3098. for (var n = 0; n < limit; ++n) {
  3099. strBuf.push(String.fromCharCode(stream.getByte()));
  3100. }
  3101. var str = strBuf.join('');
  3102. stream.pos = pos;
  3103. var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
  3104. if (index == -1) {
  3105. return false; /* not found */
  3106. }
  3107. stream.pos += index;
  3108. return true; /* found */
  3109. }
  3110. var DocumentInfoValidators = {
  3111. get entries() {
  3112. // Lazily build this since all the validation functions below are not
  3113. // defined until after this file loads.
  3114. return shadow(this, 'entries', {
  3115. Title: isString,
  3116. Author: isString,
  3117. Subject: isString,
  3118. Keywords: isString,
  3119. Creator: isString,
  3120. Producer: isString,
  3121. CreationDate: isString,
  3122. ModDate: isString,
  3123. Trapped: isName
  3124. });
  3125. }
  3126. };
  3127. PDFDocument.prototype = {
  3128. parse: function PDFDocument_parse(recoveryMode) {
  3129. this.setup(recoveryMode);
  3130. try {
  3131. // checking if AcroForm is present
  3132. this.acroForm = this.catalog.catDict.get('AcroForm');
  3133. if (this.acroForm) {
  3134. this.xfa = this.acroForm.get('XFA');
  3135. var fields = this.acroForm.get('Fields');
  3136. if ((!fields || !isArray(fields) || fields.length === 0) &&
  3137. !this.xfa) {
  3138. // no fields and no XFA -- not a form (?)
  3139. this.acroForm = null;
  3140. }
  3141. }
  3142. } catch (ex) {
  3143. info('Something wrong with AcroForm entry');
  3144. this.acroForm = null;
  3145. }
  3146. },
  3147. get linearization() {
  3148. var length = this.stream.length;
  3149. var linearization = false;
  3150. if (length) {
  3151. try {
  3152. linearization = new Linearization(this.stream);
  3153. if (linearization.length != length) {
  3154. linearization = false;
  3155. }
  3156. } catch (err) {
  3157. if (err instanceof MissingDataException) {
  3158. throw err;
  3159. }
  3160. info('The linearization data is not available ' +
  3161. 'or unreadable PDF data is found');
  3162. linearization = false;
  3163. }
  3164. }
  3165. // shadow the prototype getter with a data property
  3166. return shadow(this, 'linearization', linearization);
  3167. },
  3168. get startXRef() {
  3169. var stream = this.stream;
  3170. var startXRef = 0;
  3171. var linearization = this.linearization;
  3172. if (linearization) {
  3173. // Find end of first obj.
  3174. stream.reset();
  3175. if (find(stream, 'endobj', 1024)) {
  3176. startXRef = stream.pos + 6;
  3177. }
  3178. } else {
  3179. // Find startxref by jumping backward from the end of the file.
  3180. var step = 1024;
  3181. var found = false, pos = stream.end;
  3182. while (!found && pos > 0) {
  3183. pos -= step - 'startxref'.length;
  3184. if (pos < 0) {
  3185. pos = 0;
  3186. }
  3187. stream.pos = pos;
  3188. found = find(stream, 'startxref', step, true);
  3189. }
  3190. if (found) {
  3191. stream.skip(9);
  3192. var ch;
  3193. do {
  3194. ch = stream.getByte();
  3195. } while (Lexer.isSpace(ch));
  3196. var str = '';
  3197. while (ch >= 0x20 && ch <= 0x39) { // < '9'
  3198. str += String.fromCharCode(ch);
  3199. ch = stream.getByte();
  3200. }
  3201. startXRef = parseInt(str, 10);
  3202. if (isNaN(startXRef)) {
  3203. startXRef = 0;
  3204. }
  3205. }
  3206. }
  3207. // shadow the prototype getter with a data property
  3208. return shadow(this, 'startXRef', startXRef);
  3209. },
  3210. get mainXRefEntriesOffset() {
  3211. var mainXRefEntriesOffset = 0;
  3212. var linearization = this.linearization;
  3213. if (linearization) {
  3214. mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
  3215. }
  3216. // shadow the prototype getter with a data property
  3217. return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
  3218. },
  3219. // Find the header, remove leading garbage and setup the stream
  3220. // starting from the header.
  3221. checkHeader: function PDFDocument_checkHeader() {
  3222. var stream = this.stream;
  3223. stream.reset();
  3224. if (find(stream, '%PDF-', 1024)) {
  3225. // Found the header, trim off any garbage before it.
  3226. stream.moveStart();
  3227. // Reading file format version
  3228. var MAX_VERSION_LENGTH = 12;
  3229. var version = '', ch;
  3230. while ((ch = stream.getByte()) > 0x20) { // SPACE
  3231. if (version.length >= MAX_VERSION_LENGTH) {
  3232. break;
  3233. }
  3234. version += String.fromCharCode(ch);
  3235. }
  3236. // removing "%PDF-"-prefix
  3237. this.pdfFormatVersion = version.substring(5);
  3238. return;
  3239. }
  3240. // May not be a PDF file, continue anyway.
  3241. },
  3242. parseStartXRef: function PDFDocument_parseStartXRef() {
  3243. var startXRef = this.startXRef;
  3244. this.xref.setStartXRef(startXRef);
  3245. },
  3246. setup: function PDFDocument_setup(recoveryMode) {
  3247. this.xref.parse(recoveryMode);
  3248. this.catalog = new Catalog(this.pdfManager, this.xref);
  3249. },
  3250. get numPages() {
  3251. var linearization = this.linearization;
  3252. var num = linearization ? linearization.numPages : this.catalog.numPages;
  3253. // shadow the prototype getter
  3254. return shadow(this, 'numPages', num);
  3255. },
  3256. get documentInfo() {
  3257. var docInfo = {
  3258. PDFFormatVersion: this.pdfFormatVersion,
  3259. IsAcroFormPresent: !!this.acroForm,
  3260. IsXFAPresent: !!this.xfa
  3261. };
  3262. var infoDict;
  3263. try {
  3264. infoDict = this.xref.trailer.get('Info');
  3265. } catch (err) {
  3266. info('The document information dictionary is invalid.');
  3267. }
  3268. if (infoDict) {
  3269. var validEntries = DocumentInfoValidators.entries;
  3270. // Only fill the document info with valid entries from the spec.
  3271. for (var key in validEntries) {
  3272. if (infoDict.has(key)) {
  3273. var value = infoDict.get(key);
  3274. // Make sure the value conforms to the spec.
  3275. if (validEntries[key](value)) {
  3276. docInfo[key] = (typeof value !== 'string' ?
  3277. value : stringToPDFString(value));
  3278. } else {
  3279. info('Bad value in document info for "' + key + '"');
  3280. }
  3281. }
  3282. }
  3283. }
  3284. return shadow(this, 'documentInfo', docInfo);
  3285. },
  3286. get fingerprint() {
  3287. var xref = this.xref, hash, fileID = '';
  3288. if (xref.trailer.has('ID')) {
  3289. hash = stringToBytes(xref.trailer.get('ID')[0]);
  3290. } else {
  3291. hash = calculateMD5(this.stream.bytes.subarray(0, 100), 0, 100);
  3292. }
  3293. for (var i = 0, n = hash.length; i < n; i++) {
  3294. fileID += hash[i].toString(16);
  3295. }
  3296. return shadow(this, 'fingerprint', fileID);
  3297. },
  3298. getPage: function PDFDocument_getPage(pageIndex) {
  3299. return this.catalog.getPage(pageIndex);
  3300. },
  3301. cleanup: function PDFDocument_cleanup() {
  3302. return this.catalog.cleanup();
  3303. }
  3304. };
  3305. return PDFDocument;
  3306. })();
  3307. var Name = (function NameClosure() {
  3308. function Name(name) {
  3309. this.name = name;
  3310. }
  3311. Name.prototype = {};
  3312. var nameCache = {};
  3313. Name.get = function Name_get(name) {
  3314. var nameValue = nameCache[name];
  3315. return (nameValue ? nameValue : (nameCache[name] = new Name(name)));
  3316. };
  3317. return Name;
  3318. })();
  3319. var Cmd = (function CmdClosure() {
  3320. function Cmd(cmd) {
  3321. this.cmd = cmd;
  3322. }
  3323. Cmd.prototype = {};
  3324. var cmdCache = {};
  3325. Cmd.get = function Cmd_get(cmd) {
  3326. var cmdValue = cmdCache[cmd];
  3327. return (cmdValue ? cmdValue : (cmdCache[cmd] = new Cmd(cmd)));
  3328. };
  3329. return Cmd;
  3330. })();
  3331. var Dict = (function DictClosure() {
  3332. var nonSerializable = function nonSerializableClosure() {
  3333. return nonSerializable; // creating closure on some variable
  3334. };
  3335. var GETALL_DICTIONARY_TYPES_WHITELIST = {
  3336. 'Background': true,
  3337. 'ExtGState': true,
  3338. 'Halftone': true,
  3339. 'Layout': true,
  3340. 'Mask': true,
  3341. 'Pagination': true,
  3342. 'Printing': true
  3343. };
  3344. function isRecursionAllowedFor(dict) {
  3345. if (!isName(dict.Type)) {
  3346. return true;
  3347. }
  3348. var dictType = dict.Type.name;
  3349. return GETALL_DICTIONARY_TYPES_WHITELIST[dictType] === true;
  3350. }
  3351. // xref is optional
  3352. function Dict(xref) {
  3353. // Map should only be used internally, use functions below to access.
  3354. this.map = Object.create(null);
  3355. this.xref = xref;
  3356. this.objId = null;
  3357. this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
  3358. }
  3359. Dict.prototype = {
  3360. assignXref: function Dict_assignXref(newXref) {
  3361. this.xref = newXref;
  3362. },
  3363. // automatically dereferences Ref objects
  3364. get: function Dict_get(key1, key2, key3) {
  3365. var value;
  3366. var xref = this.xref;
  3367. if (typeof (value = this.map[key1]) != 'undefined' || key1 in this.map ||
  3368. typeof key2 == 'undefined') {
  3369. return xref ? xref.fetchIfRef(value) : value;
  3370. }
  3371. if (typeof (value = this.map[key2]) != 'undefined' || key2 in this.map ||
  3372. typeof key3 == 'undefined') {
  3373. return xref ? xref.fetchIfRef(value) : value;
  3374. }
  3375. value = this.map[key3] || null;
  3376. return xref ? xref.fetchIfRef(value) : value;
  3377. },
  3378. // Same as get(), but returns a promise and uses fetchIfRefAsync().
  3379. getAsync: function Dict_getAsync(key1, key2, key3) {
  3380. var value;
  3381. var xref = this.xref;
  3382. if (typeof (value = this.map[key1]) !== 'undefined' || key1 in this.map ||
  3383. typeof key2 === 'undefined') {
  3384. if (xref) {
  3385. return xref.fetchIfRefAsync(value);
  3386. }
  3387. return Promise.resolve(value);
  3388. }
  3389. if (typeof (value = this.map[key2]) !== 'undefined' || key2 in this.map ||
  3390. typeof key3 === 'undefined') {
  3391. if (xref) {
  3392. return xref.fetchIfRefAsync(value);
  3393. }
  3394. return Promise.resolve(value);
  3395. }
  3396. value = this.map[key3] || null;
  3397. if (xref) {
  3398. return xref.fetchIfRefAsync(value);
  3399. }
  3400. return Promise.resolve(value);
  3401. },
  3402. // no dereferencing
  3403. getRaw: function Dict_getRaw(key) {
  3404. return this.map[key];
  3405. },
  3406. // creates new map and dereferences all Refs
  3407. getAll: function Dict_getAll() {
  3408. var all = Object.create(null);
  3409. var queue = null;
  3410. var key, obj;
  3411. for (key in this.map) {
  3412. obj = this.get(key);
  3413. if (obj instanceof Dict) {
  3414. if (isRecursionAllowedFor(obj)) {
  3415. (queue || (queue = [])).push({target: all, key: key, obj: obj});
  3416. } else {
  3417. all[key] = this.getRaw(key);
  3418. }
  3419. } else {
  3420. all[key] = obj;
  3421. }
  3422. }
  3423. if (!queue) {
  3424. return all;
  3425. }
  3426. // trying to take cyclic references into the account
  3427. var processed = Object.create(null);
  3428. while (queue.length > 0) {
  3429. var item = queue.shift();
  3430. var itemObj = item.obj;
  3431. var objId = itemObj.objId;
  3432. if (objId && objId in processed) {
  3433. item.target[item.key] = processed[objId];
  3434. continue;
  3435. }
  3436. var dereferenced = Object.create(null);
  3437. for (key in itemObj.map) {
  3438. obj = itemObj.get(key);
  3439. if (obj instanceof Dict) {
  3440. if (isRecursionAllowedFor(obj)) {
  3441. queue.push({target: dereferenced, key: key, obj: obj});
  3442. } else {
  3443. dereferenced[key] = itemObj.getRaw(key);
  3444. }
  3445. } else {
  3446. dereferenced[key] = obj;
  3447. }
  3448. }
  3449. if (objId) {
  3450. processed[objId] = dereferenced;
  3451. }
  3452. item.target[item.key] = dereferenced;
  3453. }
  3454. return all;
  3455. },
  3456. set: function Dict_set(key, value) {
  3457. this.map[key] = value;
  3458. },
  3459. has: function Dict_has(key) {
  3460. return key in this.map;
  3461. },
  3462. forEach: function Dict_forEach(callback) {
  3463. for (var key in this.map) {
  3464. callback(key, this.get(key));
  3465. }
  3466. }
  3467. };
  3468. Dict.empty = new Dict(null);
  3469. return Dict;
  3470. })();
  3471. var Ref = (function RefClosure() {
  3472. function Ref(num, gen) {
  3473. this.num = num;
  3474. this.gen = gen;
  3475. }
  3476. Ref.prototype = {};
  3477. return Ref;
  3478. })();
  3479. // The reference is identified by number and generation.
  3480. // This structure stores only one instance of the reference.
  3481. var RefSet = (function RefSetClosure() {
  3482. function RefSet() {
  3483. this.dict = {};
  3484. }
  3485. RefSet.prototype = {
  3486. has: function RefSet_has(ref) {
  3487. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  3488. },
  3489. put: function RefSet_put(ref) {
  3490. this.dict['R' + ref.num + '.' + ref.gen] = true;
  3491. },
  3492. remove: function RefSet_remove(ref) {
  3493. delete this.dict['R' + ref.num + '.' + ref.gen];
  3494. }
  3495. };
  3496. return RefSet;
  3497. })();
  3498. var RefSetCache = (function RefSetCacheClosure() {
  3499. function RefSetCache() {
  3500. this.dict = Object.create(null);
  3501. }
  3502. RefSetCache.prototype = {
  3503. get: function RefSetCache_get(ref) {
  3504. return this.dict['R' + ref.num + '.' + ref.gen];
  3505. },
  3506. has: function RefSetCache_has(ref) {
  3507. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  3508. },
  3509. put: function RefSetCache_put(ref, obj) {
  3510. this.dict['R' + ref.num + '.' + ref.gen] = obj;
  3511. },
  3512. putAlias: function RefSetCache_putAlias(ref, aliasRef) {
  3513. this.dict['R' + ref.num + '.' + ref.gen] = this.get(aliasRef);
  3514. },
  3515. forEach: function RefSetCache_forEach(fn, thisArg) {
  3516. for (var i in this.dict) {
  3517. fn.call(thisArg, this.dict[i]);
  3518. }
  3519. },
  3520. clear: function RefSetCache_clear() {
  3521. this.dict = Object.create(null);
  3522. }
  3523. };
  3524. return RefSetCache;
  3525. })();
  3526. var Catalog = (function CatalogClosure() {
  3527. function Catalog(pdfManager, xref) {
  3528. this.pdfManager = pdfManager;
  3529. this.xref = xref;
  3530. this.catDict = xref.getCatalogObj();
  3531. this.fontCache = new RefSetCache();
  3532. assert(isDict(this.catDict),
  3533. 'catalog object is not a dictionary');
  3534. this.pagePromises = [];
  3535. }
  3536. Catalog.prototype = {
  3537. get metadata() {
  3538. var streamRef = this.catDict.getRaw('Metadata');
  3539. if (!isRef(streamRef)) {
  3540. return shadow(this, 'metadata', null);
  3541. }
  3542. var encryptMetadata = (!this.xref.encrypt ? false :
  3543. this.xref.encrypt.encryptMetadata);
  3544. var stream = this.xref.fetch(streamRef, !encryptMetadata);
  3545. var metadata;
  3546. if (stream && isDict(stream.dict)) {
  3547. var type = stream.dict.get('Type');
  3548. var subtype = stream.dict.get('Subtype');
  3549. if (isName(type) && isName(subtype) &&
  3550. type.name === 'Metadata' && subtype.name === 'XML') {
  3551. // XXX: This should examine the charset the XML document defines,
  3552. // however since there are currently no real means to decode
  3553. // arbitrary charsets, let's just hope that the author of the PDF
  3554. // was reasonable enough to stick with the XML default charset,
  3555. // which is UTF-8.
  3556. try {
  3557. metadata = stringToUTF8String(bytesToString(stream.getBytes()));
  3558. } catch (e) {
  3559. info('Skipping invalid metadata.');
  3560. }
  3561. }
  3562. }
  3563. return shadow(this, 'metadata', metadata);
  3564. },
  3565. get toplevelPagesDict() {
  3566. var pagesObj = this.catDict.get('Pages');
  3567. assert(isDict(pagesObj), 'invalid top-level pages dictionary');
  3568. // shadow the prototype getter
  3569. return shadow(this, 'toplevelPagesDict', pagesObj);
  3570. },
  3571. get documentOutline() {
  3572. var obj = null;
  3573. try {
  3574. obj = this.readDocumentOutline();
  3575. } catch (ex) {
  3576. if (ex instanceof MissingDataException) {
  3577. throw ex;
  3578. }
  3579. warn('Unable to read document outline');
  3580. }
  3581. return shadow(this, 'documentOutline', obj);
  3582. },
  3583. readDocumentOutline: function Catalog_readDocumentOutline() {
  3584. var xref = this.xref;
  3585. var obj = this.catDict.get('Outlines');
  3586. var root = { items: [] };
  3587. if (isDict(obj)) {
  3588. obj = obj.getRaw('First');
  3589. var processed = new RefSet();
  3590. if (isRef(obj)) {
  3591. var queue = [{obj: obj, parent: root}];
  3592. // to avoid recursion keeping track of the items
  3593. // in the processed dictionary
  3594. processed.put(obj);
  3595. while (queue.length > 0) {
  3596. var i = queue.shift();
  3597. var outlineDict = xref.fetchIfRef(i.obj);
  3598. if (outlineDict === null) {
  3599. continue;
  3600. }
  3601. if (!outlineDict.has('Title')) {
  3602. error('Invalid outline item');
  3603. }
  3604. var dest = outlineDict.get('A');
  3605. if (dest) {
  3606. dest = dest.get('D');
  3607. } else if (outlineDict.has('Dest')) {
  3608. dest = outlineDict.getRaw('Dest');
  3609. if (isName(dest)) {
  3610. dest = dest.name;
  3611. }
  3612. }
  3613. var title = outlineDict.get('Title');
  3614. var outlineItem = {
  3615. dest: dest,
  3616. title: stringToPDFString(title),
  3617. color: outlineDict.get('C') || [0, 0, 0],
  3618. count: outlineDict.get('Count'),
  3619. bold: !!(outlineDict.get('F') & 2),
  3620. italic: !!(outlineDict.get('F') & 1),
  3621. items: []
  3622. };
  3623. i.parent.items.push(outlineItem);
  3624. obj = outlineDict.getRaw('First');
  3625. if (isRef(obj) && !processed.has(obj)) {
  3626. queue.push({obj: obj, parent: outlineItem});
  3627. processed.put(obj);
  3628. }
  3629. obj = outlineDict.getRaw('Next');
  3630. if (isRef(obj) && !processed.has(obj)) {
  3631. queue.push({obj: obj, parent: i.parent});
  3632. processed.put(obj);
  3633. }
  3634. }
  3635. }
  3636. }
  3637. return (root.items.length > 0 ? root.items : null);
  3638. },
  3639. get numPages() {
  3640. var obj = this.toplevelPagesDict.get('Count');
  3641. assert(
  3642. isInt(obj),
  3643. 'page count in top level pages object is not an integer'
  3644. );
  3645. // shadow the prototype getter
  3646. return shadow(this, 'num', obj);
  3647. },
  3648. get destinations() {
  3649. function fetchDestination(dest) {
  3650. return isDict(dest) ? dest.get('D') : dest;
  3651. }
  3652. var xref = this.xref;
  3653. var dests = {}, nameTreeRef, nameDictionaryRef;
  3654. var obj = this.catDict.get('Names');
  3655. if (obj && obj.has('Dests')) {
  3656. nameTreeRef = obj.getRaw('Dests');
  3657. } else if (this.catDict.has('Dests')) {
  3658. nameDictionaryRef = this.catDict.get('Dests');
  3659. }
  3660. if (nameDictionaryRef) {
  3661. // reading simple destination dictionary
  3662. obj = nameDictionaryRef;
  3663. obj.forEach(function catalogForEach(key, value) {
  3664. if (!value) {
  3665. return;
  3666. }
  3667. dests[key] = fetchDestination(value);
  3668. });
  3669. }
  3670. if (nameTreeRef) {
  3671. var nameTree = new NameTree(nameTreeRef, xref);
  3672. var names = nameTree.getAll();
  3673. for (var name in names) {
  3674. if (!names.hasOwnProperty(name)) {
  3675. continue;
  3676. }
  3677. dests[name] = fetchDestination(names[name]);
  3678. }
  3679. }
  3680. return shadow(this, 'destinations', dests);
  3681. },
  3682. get attachments() {
  3683. var xref = this.xref;
  3684. var attachments = null, nameTreeRef;
  3685. var obj = this.catDict.get('Names');
  3686. if (obj) {
  3687. nameTreeRef = obj.getRaw('EmbeddedFiles');
  3688. }
  3689. if (nameTreeRef) {
  3690. var nameTree = new NameTree(nameTreeRef, xref);
  3691. var names = nameTree.getAll();
  3692. for (var name in names) {
  3693. if (!names.hasOwnProperty(name)) {
  3694. continue;
  3695. }
  3696. var fs = new FileSpec(names[name], xref);
  3697. if (!attachments) {
  3698. attachments = {};
  3699. }
  3700. attachments[stringToPDFString(name)] = fs.serializable;
  3701. }
  3702. }
  3703. return shadow(this, 'attachments', attachments);
  3704. },
  3705. get javaScript() {
  3706. var xref = this.xref;
  3707. var obj = this.catDict.get('Names');
  3708. var javaScript = [];
  3709. if (obj && obj.has('JavaScript')) {
  3710. var nameTree = new NameTree(obj.getRaw('JavaScript'), xref);
  3711. var names = nameTree.getAll();
  3712. for (var name in names) {
  3713. if (!names.hasOwnProperty(name)) {
  3714. continue;
  3715. }
  3716. // We don't really use the JavaScript right now. This code is
  3717. // defensive so we don't cause errors on document load.
  3718. var jsDict = names[name];
  3719. if (!isDict(jsDict)) {
  3720. continue;
  3721. }
  3722. var type = jsDict.get('S');
  3723. if (!isName(type) || type.name !== 'JavaScript') {
  3724. continue;
  3725. }
  3726. var js = jsDict.get('JS');
  3727. if (!isString(js) && !isStream(js)) {
  3728. continue;
  3729. }
  3730. if (isStream(js)) {
  3731. js = bytesToString(js.getBytes());
  3732. }
  3733. javaScript.push(stringToPDFString(js));
  3734. }
  3735. }
  3736. // Append OpenAction actions to javaScript array
  3737. var openactionDict = this.catDict.get('OpenAction');
  3738. if (isDict(openactionDict)) {
  3739. var objType = openactionDict.get('Type');
  3740. var actionType = openactionDict.get('S');
  3741. var action = openactionDict.get('N');
  3742. var isPrintAction = (isName(objType) && objType.name === 'Action' &&
  3743. isName(actionType) && actionType.name === 'Named' &&
  3744. isName(action) && action.name === 'Print');
  3745. if (isPrintAction) {
  3746. javaScript.push('print(true);');
  3747. }
  3748. }
  3749. return shadow(this, 'javaScript', javaScript);
  3750. },
  3751. cleanup: function Catalog_cleanup() {
  3752. var promises = [];
  3753. this.fontCache.forEach(function (promise) {
  3754. promises.push(promise);
  3755. });
  3756. return Promise.all(promises).then(function (translatedFonts) {
  3757. for (var i = 0, ii = translatedFonts.length; i < ii; i++) {
  3758. var font = translatedFonts[i].dict;
  3759. delete font.translated;
  3760. }
  3761. this.fontCache.clear();
  3762. }.bind(this));
  3763. },
  3764. getPage: function Catalog_getPage(pageIndex) {
  3765. if (!(pageIndex in this.pagePromises)) {
  3766. this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(
  3767. function (a) {
  3768. var dict = a[0];
  3769. var ref = a[1];
  3770. return new Page(this.pdfManager, this.xref, pageIndex, dict, ref,
  3771. this.fontCache);
  3772. }.bind(this)
  3773. );
  3774. }
  3775. return this.pagePromises[pageIndex];
  3776. },
  3777. getPageDict: function Catalog_getPageDict(pageIndex) {
  3778. var capability = createPromiseCapability();
  3779. var nodesToVisit = [this.catDict.getRaw('Pages')];
  3780. var currentPageIndex = 0;
  3781. var xref = this.xref;
  3782. function next() {
  3783. while (nodesToVisit.length) {
  3784. var currentNode = nodesToVisit.pop();
  3785. if (isRef(currentNode)) {
  3786. xref.fetchAsync(currentNode).then(function (obj) {
  3787. if ((isDict(obj, 'Page') || (isDict(obj) && !obj.has('Kids')))) {
  3788. if (pageIndex === currentPageIndex) {
  3789. capability.resolve([obj, currentNode]);
  3790. } else {
  3791. currentPageIndex++;
  3792. next();
  3793. }
  3794. return;
  3795. }
  3796. nodesToVisit.push(obj);
  3797. next();
  3798. }.bind(this), capability.reject.bind(capability));
  3799. return;
  3800. }
  3801. // must be a child page dictionary
  3802. assert(
  3803. isDict(currentNode),
  3804. 'page dictionary kid reference points to wrong type of object'
  3805. );
  3806. var count = currentNode.get('Count');
  3807. // Skip nodes where the page can't be.
  3808. if (currentPageIndex + count <= pageIndex) {
  3809. currentPageIndex += count;
  3810. continue;
  3811. }
  3812. var kids = currentNode.get('Kids');
  3813. assert(isArray(kids), 'page dictionary kids object is not an array');
  3814. if (count === kids.length) {
  3815. // Nodes that don't have the page have been skipped and this is the
  3816. // bottom of the tree which means the page requested must be a
  3817. // descendant of this pages node. Ideally we would just resolve the
  3818. // promise with the page ref here, but there is the case where more
  3819. // pages nodes could link to single a page (see issue 3666 pdf). To
  3820. // handle this push it back on the queue so if it is a pages node it
  3821. // will be descended into.
  3822. nodesToVisit = [kids[pageIndex - currentPageIndex]];
  3823. currentPageIndex = pageIndex;
  3824. continue;
  3825. } else {
  3826. for (var last = kids.length - 1; last >= 0; last--) {
  3827. nodesToVisit.push(kids[last]);
  3828. }
  3829. }
  3830. }
  3831. capability.reject('Page index ' + pageIndex + ' not found.');
  3832. }
  3833. next();
  3834. return capability.promise;
  3835. },
  3836. getPageIndex: function Catalog_getPageIndex(ref) {
  3837. // The page tree nodes have the count of all the leaves below them. To get
  3838. // how many pages are before we just have to walk up the tree and keep
  3839. // adding the count of siblings to the left of the node.
  3840. var xref = this.xref;
  3841. function pagesBeforeRef(kidRef) {
  3842. var total = 0;
  3843. var parentRef;
  3844. return xref.fetchAsync(kidRef).then(function (node) {
  3845. if (!node) {
  3846. return null;
  3847. }
  3848. parentRef = node.getRaw('Parent');
  3849. return node.getAsync('Parent');
  3850. }).then(function (parent) {
  3851. if (!parent) {
  3852. return null;
  3853. }
  3854. return parent.getAsync('Kids');
  3855. }).then(function (kids) {
  3856. if (!kids) {
  3857. return null;
  3858. }
  3859. var kidPromises = [];
  3860. var found = false;
  3861. for (var i = 0; i < kids.length; i++) {
  3862. var kid = kids[i];
  3863. assert(isRef(kid), 'kids must be a ref');
  3864. if (kid.num == kidRef.num) {
  3865. found = true;
  3866. break;
  3867. }
  3868. kidPromises.push(xref.fetchAsync(kid).then(function (kid) {
  3869. if (kid.has('Count')) {
  3870. var count = kid.get('Count');
  3871. total += count;
  3872. } else { // page leaf node
  3873. total++;
  3874. }
  3875. }));
  3876. }
  3877. if (!found) {
  3878. error('kid ref not found in parents kids');
  3879. }
  3880. return Promise.all(kidPromises).then(function () {
  3881. return [total, parentRef];
  3882. });
  3883. });
  3884. }
  3885. var total = 0;
  3886. function next(ref) {
  3887. return pagesBeforeRef(ref).then(function (args) {
  3888. if (!args) {
  3889. return total;
  3890. }
  3891. var count = args[0];
  3892. var parentRef = args[1];
  3893. total += count;
  3894. return next(parentRef);
  3895. });
  3896. }
  3897. return next(ref);
  3898. }
  3899. };
  3900. return Catalog;
  3901. })();
  3902. var XRef = (function XRefClosure() {
  3903. function XRef(stream, password) {
  3904. this.stream = stream;
  3905. this.entries = [];
  3906. this.xrefstms = {};
  3907. // prepare the XRef cache
  3908. this.cache = [];
  3909. this.password = password;
  3910. this.stats = {
  3911. streamTypes: [],
  3912. fontTypes: []
  3913. };
  3914. }
  3915. XRef.prototype = {
  3916. setStartXRef: function XRef_setStartXRef(startXRef) {
  3917. // Store the starting positions of xref tables as we process them
  3918. // so we can recover from missing data errors
  3919. this.startXRefQueue = [startXRef];
  3920. },
  3921. parse: function XRef_parse(recoveryMode) {
  3922. var trailerDict;
  3923. if (!recoveryMode) {
  3924. trailerDict = this.readXRef();
  3925. } else {
  3926. warn('Indexing all PDF objects');
  3927. trailerDict = this.indexObjects();
  3928. }
  3929. trailerDict.assignXref(this);
  3930. this.trailer = trailerDict;
  3931. var encrypt = trailerDict.get('Encrypt');
  3932. if (encrypt) {
  3933. var ids = trailerDict.get('ID');
  3934. var fileId = (ids && ids.length) ? ids[0] : '';
  3935. this.encrypt = new CipherTransformFactory(encrypt, fileId,
  3936. this.password);
  3937. }
  3938. // get the root dictionary (catalog) object
  3939. if (!(this.root = trailerDict.get('Root'))) {
  3940. error('Invalid root reference');
  3941. }
  3942. },
  3943. processXRefTable: function XRef_processXRefTable(parser) {
  3944. if (!('tableState' in this)) {
  3945. // Stores state of the table as we process it so we can resume
  3946. // from middle of table in case of missing data error
  3947. this.tableState = {
  3948. entryNum: 0,
  3949. streamPos: parser.lexer.stream.pos,
  3950. parserBuf1: parser.buf1,
  3951. parserBuf2: parser.buf2
  3952. };
  3953. }
  3954. var obj = this.readXRefTable(parser);
  3955. // Sanity check
  3956. if (!isCmd(obj, 'trailer')) {
  3957. error('Invalid XRef table: could not find trailer dictionary');
  3958. }
  3959. // Read trailer dictionary, e.g.
  3960. // trailer
  3961. // << /Size 22
  3962. // /Root 20R
  3963. // /Info 10R
  3964. // /ID [ <81b14aafa313db63dbd6f981e49f94f4> ]
  3965. // >>
  3966. // The parser goes through the entire stream << ... >> and provides
  3967. // a getter interface for the key-value table
  3968. var dict = parser.getObj();
  3969. // The pdflib PDF generator can generate a nested trailer dictionary
  3970. if (!isDict(dict) && dict.dict) {
  3971. dict = dict.dict;
  3972. }
  3973. if (!isDict(dict)) {
  3974. error('Invalid XRef table: could not parse trailer dictionary');
  3975. }
  3976. delete this.tableState;
  3977. return dict;
  3978. },
  3979. readXRefTable: function XRef_readXRefTable(parser) {
  3980. // Example of cross-reference table:
  3981. // xref
  3982. // 0 1 <-- subsection header (first obj #, obj count)
  3983. // 0000000000 65535 f <-- actual object (offset, generation #, f/n)
  3984. // 23 2 <-- subsection header ... and so on ...
  3985. // 0000025518 00002 n
  3986. // 0000025635 00000 n
  3987. // trailer
  3988. // ...
  3989. var stream = parser.lexer.stream;
  3990. var tableState = this.tableState;
  3991. stream.pos = tableState.streamPos;
  3992. parser.buf1 = tableState.parserBuf1;
  3993. parser.buf2 = tableState.parserBuf2;
  3994. // Outer loop is over subsection headers
  3995. var obj;
  3996. while (true) {
  3997. if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) {
  3998. if (isCmd(obj = parser.getObj(), 'trailer')) {
  3999. break;
  4000. }
  4001. tableState.firstEntryNum = obj;
  4002. tableState.entryCount = parser.getObj();
  4003. }
  4004. var first = tableState.firstEntryNum;
  4005. var count = tableState.entryCount;
  4006. if (!isInt(first) || !isInt(count)) {
  4007. error('Invalid XRef table: wrong types in subsection header');
  4008. }
  4009. // Inner loop is over objects themselves
  4010. for (var i = tableState.entryNum; i < count; i++) {
  4011. tableState.streamPos = stream.pos;
  4012. tableState.entryNum = i;
  4013. tableState.parserBuf1 = parser.buf1;
  4014. tableState.parserBuf2 = parser.buf2;
  4015. var entry = {};
  4016. entry.offset = parser.getObj();
  4017. entry.gen = parser.getObj();
  4018. var type = parser.getObj();
  4019. if (isCmd(type, 'f')) {
  4020. entry.free = true;
  4021. } else if (isCmd(type, 'n')) {
  4022. entry.uncompressed = true;
  4023. }
  4024. // Validate entry obj
  4025. if (!isInt(entry.offset) || !isInt(entry.gen) ||
  4026. !(entry.free || entry.uncompressed)) {
  4027. console.log(entry.offset, entry.gen, entry.free,
  4028. entry.uncompressed);
  4029. error('Invalid entry in XRef subsection: ' + first + ', ' + count);
  4030. }
  4031. if (!this.entries[i + first]) {
  4032. this.entries[i + first] = entry;
  4033. }
  4034. }
  4035. tableState.entryNum = 0;
  4036. tableState.streamPos = stream.pos;
  4037. tableState.parserBuf1 = parser.buf1;
  4038. tableState.parserBuf2 = parser.buf2;
  4039. delete tableState.firstEntryNum;
  4040. delete tableState.entryCount;
  4041. }
  4042. // Per issue 3248: hp scanners generate bad XRef
  4043. if (first === 1 && this.entries[1] && this.entries[1].free) {
  4044. // shifting the entries
  4045. this.entries.shift();
  4046. }
  4047. // Sanity check: as per spec, first object must be free
  4048. if (this.entries[0] && !this.entries[0].free) {
  4049. error('Invalid XRef table: unexpected first object');
  4050. }
  4051. return obj;
  4052. },
  4053. processXRefStream: function XRef_processXRefStream(stream) {
  4054. if (!('streamState' in this)) {
  4055. // Stores state of the stream as we process it so we can resume
  4056. // from middle of stream in case of missing data error
  4057. var streamParameters = stream.dict;
  4058. var byteWidths = streamParameters.get('W');
  4059. var range = streamParameters.get('Index');
  4060. if (!range) {
  4061. range = [0, streamParameters.get('Size')];
  4062. }
  4063. this.streamState = {
  4064. entryRanges: range,
  4065. byteWidths: byteWidths,
  4066. entryNum: 0,
  4067. streamPos: stream.pos
  4068. };
  4069. }
  4070. this.readXRefStream(stream);
  4071. delete this.streamState;
  4072. return stream.dict;
  4073. },
  4074. readXRefStream: function XRef_readXRefStream(stream) {
  4075. var i, j;
  4076. var streamState = this.streamState;
  4077. stream.pos = streamState.streamPos;
  4078. var byteWidths = streamState.byteWidths;
  4079. var typeFieldWidth = byteWidths[0];
  4080. var offsetFieldWidth = byteWidths[1];
  4081. var generationFieldWidth = byteWidths[2];
  4082. var entryRanges = streamState.entryRanges;
  4083. while (entryRanges.length > 0) {
  4084. var first = entryRanges[0];
  4085. var n = entryRanges[1];
  4086. if (!isInt(first) || !isInt(n)) {
  4087. error('Invalid XRef range fields: ' + first + ', ' + n);
  4088. }
  4089. if (!isInt(typeFieldWidth) || !isInt(offsetFieldWidth) ||
  4090. !isInt(generationFieldWidth)) {
  4091. error('Invalid XRef entry fields length: ' + first + ', ' + n);
  4092. }
  4093. for (i = streamState.entryNum; i < n; ++i) {
  4094. streamState.entryNum = i;
  4095. streamState.streamPos = stream.pos;
  4096. var type = 0, offset = 0, generation = 0;
  4097. for (j = 0; j < typeFieldWidth; ++j) {
  4098. type = (type << 8) | stream.getByte();
  4099. }
  4100. // if type field is absent, its default value is 1
  4101. if (typeFieldWidth === 0) {
  4102. type = 1;
  4103. }
  4104. for (j = 0; j < offsetFieldWidth; ++j) {
  4105. offset = (offset << 8) | stream.getByte();
  4106. }
  4107. for (j = 0; j < generationFieldWidth; ++j) {
  4108. generation = (generation << 8) | stream.getByte();
  4109. }
  4110. var entry = {};
  4111. entry.offset = offset;
  4112. entry.gen = generation;
  4113. switch (type) {
  4114. case 0:
  4115. entry.free = true;
  4116. break;
  4117. case 1:
  4118. entry.uncompressed = true;
  4119. break;
  4120. case 2:
  4121. break;
  4122. default:
  4123. error('Invalid XRef entry type: ' + type);
  4124. }
  4125. if (!this.entries[first + i]) {
  4126. this.entries[first + i] = entry;
  4127. }
  4128. }
  4129. streamState.entryNum = 0;
  4130. streamState.streamPos = stream.pos;
  4131. entryRanges.splice(0, 2);
  4132. }
  4133. },
  4134. indexObjects: function XRef_indexObjects() {
  4135. // Simple scan through the PDF content to find objects,
  4136. // trailers and XRef streams.
  4137. function readToken(data, offset) {
  4138. var token = '', ch = data[offset];
  4139. while (ch !== 13 && ch !== 10) {
  4140. if (++offset >= data.length) {
  4141. break;
  4142. }
  4143. token += String.fromCharCode(ch);
  4144. ch = data[offset];
  4145. }
  4146. return token;
  4147. }
  4148. function skipUntil(data, offset, what) {
  4149. var length = what.length, dataLength = data.length;
  4150. var skipped = 0;
  4151. // finding byte sequence
  4152. while (offset < dataLength) {
  4153. var i = 0;
  4154. while (i < length && data[offset + i] == what[i]) {
  4155. ++i;
  4156. }
  4157. if (i >= length) {
  4158. break; // sequence found
  4159. }
  4160. offset++;
  4161. skipped++;
  4162. }
  4163. return skipped;
  4164. }
  4165. var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
  4166. var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
  4167. 101, 102]);
  4168. var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);
  4169. var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);
  4170. var stream = this.stream;
  4171. stream.pos = 0;
  4172. var buffer = stream.getBytes();
  4173. var position = stream.start, length = buffer.length;
  4174. var trailers = [], xrefStms = [];
  4175. while (position < length) {
  4176. var ch = buffer[position];
  4177. if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {
  4178. ++position;
  4179. continue;
  4180. }
  4181. if (ch === 37) { // %-comment
  4182. do {
  4183. ++position;
  4184. if (position >= length) {
  4185. break;
  4186. }
  4187. ch = buffer[position];
  4188. } while (ch !== 13 && ch !== 10);
  4189. continue;
  4190. }
  4191. var token = readToken(buffer, position);
  4192. var m;
  4193. if (token === 'xref') {
  4194. position += skipUntil(buffer, position, trailerBytes);
  4195. trailers.push(position);
  4196. position += skipUntil(buffer, position, startxrefBytes);
  4197. } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {
  4198. this.entries[m[1]] = {
  4199. offset: position,
  4200. gen: m[2] | 0,
  4201. uncompressed: true
  4202. };
  4203. var contentLength = skipUntil(buffer, position, endobjBytes) + 7;
  4204. var content = buffer.subarray(position, position + contentLength);
  4205. // checking XRef stream suspect
  4206. // (it shall have '/XRef' and next char is not a letter)
  4207. var xrefTagOffset = skipUntil(content, 0, xrefBytes);
  4208. if (xrefTagOffset < contentLength &&
  4209. content[xrefTagOffset + 5] < 64) {
  4210. xrefStms.push(position);
  4211. this.xrefstms[position] = 1; // don't read it recursively
  4212. }
  4213. position += contentLength;
  4214. } else {
  4215. position += token.length + 1;
  4216. }
  4217. }
  4218. // reading XRef streams
  4219. var i, ii;
  4220. for (i = 0, ii = xrefStms.length; i < ii; ++i) {
  4221. this.startXRefQueue.push(xrefStms[i]);
  4222. this.readXRef(/* recoveryMode */ true);
  4223. }
  4224. // finding main trailer
  4225. var dict;
  4226. for (i = 0, ii = trailers.length; i < ii; ++i) {
  4227. stream.pos = trailers[i];
  4228. var parser = new Parser(new Lexer(stream), true, this);
  4229. var obj = parser.getObj();
  4230. if (!isCmd(obj, 'trailer')) {
  4231. continue;
  4232. }
  4233. // read the trailer dictionary
  4234. if (!isDict(dict = parser.getObj())) {
  4235. continue;
  4236. }
  4237. // taking the first one with 'ID'
  4238. if (dict.has('ID')) {
  4239. return dict;
  4240. }
  4241. }
  4242. // no tailer with 'ID', taking last one (if exists)
  4243. if (dict) {
  4244. return dict;
  4245. }
  4246. // nothing helps
  4247. // calling error() would reject worker with an UnknownErrorException.
  4248. throw new InvalidPDFException('Invalid PDF structure');
  4249. },
  4250. readXRef: function XRef_readXRef(recoveryMode) {
  4251. var stream = this.stream;
  4252. try {
  4253. while (this.startXRefQueue.length) {
  4254. var startXRef = this.startXRefQueue[0];
  4255. stream.pos = startXRef + stream.start;
  4256. var parser = new Parser(new Lexer(stream), true, this);
  4257. var obj = parser.getObj();
  4258. var dict;
  4259. // Get dictionary
  4260. if (isCmd(obj, 'xref')) {
  4261. // Parse end-of-file XRef
  4262. dict = this.processXRefTable(parser);
  4263. if (!this.topDict) {
  4264. this.topDict = dict;
  4265. }
  4266. // Recursively get other XRefs 'XRefStm', if any
  4267. obj = dict.get('XRefStm');
  4268. if (isInt(obj)) {
  4269. var pos = obj;
  4270. // ignore previously loaded xref streams
  4271. // (possible infinite recursion)
  4272. if (!(pos in this.xrefstms)) {
  4273. this.xrefstms[pos] = 1;
  4274. this.startXRefQueue.push(pos);
  4275. }
  4276. }
  4277. } else if (isInt(obj)) {
  4278. // Parse in-stream XRef
  4279. if (!isInt(parser.getObj()) ||
  4280. !isCmd(parser.getObj(), 'obj') ||
  4281. !isStream(obj = parser.getObj())) {
  4282. error('Invalid XRef stream');
  4283. }
  4284. dict = this.processXRefStream(obj);
  4285. if (!this.topDict) {
  4286. this.topDict = dict;
  4287. }
  4288. if (!dict) {
  4289. error('Failed to read XRef stream');
  4290. }
  4291. } else {
  4292. error('Invalid XRef stream header');
  4293. }
  4294. // Recursively get previous dictionary, if any
  4295. obj = dict.get('Prev');
  4296. if (isInt(obj)) {
  4297. this.startXRefQueue.push(obj);
  4298. } else if (isRef(obj)) {
  4299. // The spec says Prev must not be a reference, i.e. "/Prev NNN"
  4300. // This is a fallback for non-compliant PDFs, i.e. "/Prev NNN 0 R"
  4301. this.startXRefQueue.push(obj.num);
  4302. }
  4303. this.startXRefQueue.shift();
  4304. }
  4305. return this.topDict;
  4306. } catch (e) {
  4307. if (e instanceof MissingDataException) {
  4308. throw e;
  4309. }
  4310. info('(while reading XRef): ' + e);
  4311. }
  4312. if (recoveryMode) {
  4313. return;
  4314. }
  4315. throw new XRefParseException();
  4316. },
  4317. getEntry: function XRef_getEntry(i) {
  4318. var xrefEntry = this.entries[i];
  4319. if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
  4320. return xrefEntry;
  4321. }
  4322. return null;
  4323. },
  4324. fetchIfRef: function XRef_fetchIfRef(obj) {
  4325. if (!isRef(obj)) {
  4326. return obj;
  4327. }
  4328. return this.fetch(obj);
  4329. },
  4330. fetch: function XRef_fetch(ref, suppressEncryption) {
  4331. assert(isRef(ref), 'ref object is not a reference');
  4332. var num = ref.num;
  4333. if (num in this.cache) {
  4334. var cacheEntry = this.cache[num];
  4335. return cacheEntry;
  4336. }
  4337. var xrefEntry = this.getEntry(num);
  4338. // the referenced entry can be free
  4339. if (xrefEntry === null) {
  4340. return (this.cache[num] = null);
  4341. }
  4342. if (xrefEntry.uncompressed) {
  4343. xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption);
  4344. } else {
  4345. xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
  4346. }
  4347. if (isDict(xrefEntry)){
  4348. xrefEntry.objId = 'R' + ref.num + '.' + ref.gen;
  4349. } else if (isStream(xrefEntry)) {
  4350. xrefEntry.dict.objId = 'R' + ref.num + '.' + ref.gen;
  4351. }
  4352. return xrefEntry;
  4353. },
  4354. fetchUncompressed: function XRef_fetchUncompressed(ref, xrefEntry,
  4355. suppressEncryption) {
  4356. var gen = ref.gen;
  4357. var num = ref.num;
  4358. if (xrefEntry.gen !== gen) {
  4359. error('inconsistent generation in XRef');
  4360. }
  4361. var stream = this.stream.makeSubStream(xrefEntry.offset +
  4362. this.stream.start);
  4363. var parser = new Parser(new Lexer(stream), true, this);
  4364. var obj1 = parser.getObj();
  4365. var obj2 = parser.getObj();
  4366. var obj3 = parser.getObj();
  4367. if (!isInt(obj1) || parseInt(obj1, 10) !== num ||
  4368. !isInt(obj2) || parseInt(obj2, 10) !== gen ||
  4369. !isCmd(obj3)) {
  4370. error('bad XRef entry');
  4371. }
  4372. if (!isCmd(obj3, 'obj')) {
  4373. // some bad PDFs use "obj1234" and really mean 1234
  4374. if (obj3.cmd.indexOf('obj') === 0) {
  4375. num = parseInt(obj3.cmd.substring(3), 10);
  4376. if (!isNaN(num)) {
  4377. return num;
  4378. }
  4379. }
  4380. error('bad XRef entry');
  4381. }
  4382. if (this.encrypt && !suppressEncryption) {
  4383. try {
  4384. xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num,
  4385. gen));
  4386. } catch (ex) {
  4387. // Almost all streams must be encrypted, but sometimes
  4388. // they are not, probably due to some broken generators.
  4389. // Retrying without encryption...
  4390. return this.fetch(ref, true);
  4391. }
  4392. } else {
  4393. xrefEntry = parser.getObj();
  4394. }
  4395. if (!isStream(xrefEntry)) {
  4396. this.cache[num] = xrefEntry;
  4397. }
  4398. return xrefEntry;
  4399. },
  4400. fetchCompressed: function XRef_fetchCompressed(xrefEntry,
  4401. suppressEncryption) {
  4402. var tableOffset = xrefEntry.offset;
  4403. var stream = this.fetch(new Ref(tableOffset, 0));
  4404. if (!isStream(stream)) {
  4405. error('bad ObjStm stream');
  4406. }
  4407. var first = stream.dict.get('First');
  4408. var n = stream.dict.get('N');
  4409. if (!isInt(first) || !isInt(n)) {
  4410. error('invalid first and n parameters for ObjStm stream');
  4411. }
  4412. var parser = new Parser(new Lexer(stream), false, this);
  4413. parser.allowStreams = true;
  4414. var i, entries = [], num, nums = [];
  4415. // read the object numbers to populate cache
  4416. for (i = 0; i < n; ++i) {
  4417. num = parser.getObj();
  4418. if (!isInt(num)) {
  4419. error('invalid object number in the ObjStm stream: ' + num);
  4420. }
  4421. nums.push(num);
  4422. var offset = parser.getObj();
  4423. if (!isInt(offset)) {
  4424. error('invalid object offset in the ObjStm stream: ' + offset);
  4425. }
  4426. }
  4427. // read stream objects for cache
  4428. for (i = 0; i < n; ++i) {
  4429. entries.push(parser.getObj());
  4430. num = nums[i];
  4431. var entry = this.entries[num];
  4432. if (entry && entry.offset === tableOffset && entry.gen === i) {
  4433. this.cache[num] = entries[i];
  4434. }
  4435. }
  4436. xrefEntry = entries[xrefEntry.gen];
  4437. if (xrefEntry === undefined) {
  4438. error('bad XRef entry for compressed object');
  4439. }
  4440. return xrefEntry;
  4441. },
  4442. fetchIfRefAsync: function XRef_fetchIfRefAsync(obj) {
  4443. if (!isRef(obj)) {
  4444. return Promise.resolve(obj);
  4445. }
  4446. return this.fetchAsync(obj);
  4447. },
  4448. fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) {
  4449. return new Promise(function (resolve, reject) {
  4450. var tryFetch = function () {
  4451. try {
  4452. resolve(this.fetch(ref, suppressEncryption));
  4453. } catch (e) {
  4454. if (e instanceof MissingDataException) {
  4455. this.stream.manager.requestRange(e.begin, e.end, tryFetch);
  4456. return;
  4457. }
  4458. reject(e);
  4459. }
  4460. }.bind(this);
  4461. tryFetch();
  4462. }.bind(this));
  4463. },
  4464. getCatalogObj: function XRef_getCatalogObj() {
  4465. return this.root;
  4466. }
  4467. };
  4468. return XRef;
  4469. })();
  4470. /**
  4471. * A NameTree is like a Dict but has some advantageous properties, see the
  4472. * spec (7.9.6) for more details.
  4473. * TODO: implement all the Dict functions and make this more efficent.
  4474. */
  4475. var NameTree = (function NameTreeClosure() {
  4476. function NameTree(root, xref) {
  4477. this.root = root;
  4478. this.xref = xref;
  4479. }
  4480. NameTree.prototype = {
  4481. getAll: function NameTree_getAll() {
  4482. var dict = {};
  4483. if (!this.root) {
  4484. return dict;
  4485. }
  4486. var xref = this.xref;
  4487. // reading name tree
  4488. var processed = new RefSet();
  4489. processed.put(this.root);
  4490. var queue = [this.root];
  4491. while (queue.length > 0) {
  4492. var i, n;
  4493. var obj = xref.fetchIfRef(queue.shift());
  4494. if (!isDict(obj)) {
  4495. continue;
  4496. }
  4497. if (obj.has('Kids')) {
  4498. var kids = obj.get('Kids');
  4499. for (i = 0, n = kids.length; i < n; i++) {
  4500. var kid = kids[i];
  4501. if (processed.has(kid)) {
  4502. error('invalid destinations');
  4503. }
  4504. queue.push(kid);
  4505. processed.put(kid);
  4506. }
  4507. continue;
  4508. }
  4509. var names = obj.get('Names');
  4510. if (names) {
  4511. for (i = 0, n = names.length; i < n; i += 2) {
  4512. dict[names[i]] = xref.fetchIfRef(names[i + 1]);
  4513. }
  4514. }
  4515. }
  4516. return dict;
  4517. }
  4518. };
  4519. return NameTree;
  4520. })();
  4521. /**
  4522. * "A PDF file can refer to the contents of another file by using a File
  4523. * Specification (PDF 1.1)", see the spec (7.11) for more details.
  4524. * NOTE: Only embedded files are supported (as part of the attachments support)
  4525. * TODO: support the 'URL' file system (with caching if !/V), portable
  4526. * collections attributes and related files (/RF)
  4527. */
  4528. var FileSpec = (function FileSpecClosure() {
  4529. function FileSpec(root, xref) {
  4530. if (!root || !isDict(root)) {
  4531. return;
  4532. }
  4533. this.xref = xref;
  4534. this.root = root;
  4535. if (root.has('FS')) {
  4536. this.fs = root.get('FS');
  4537. }
  4538. this.description = root.has('Desc') ?
  4539. stringToPDFString(root.get('Desc')) :
  4540. '';
  4541. if (root.has('RF')) {
  4542. warn('Related file specifications are not supported');
  4543. }
  4544. this.contentAvailable = true;
  4545. if (!root.has('EF')) {
  4546. this.contentAvailable = false;
  4547. warn('Non-embedded file specifications are not supported');
  4548. }
  4549. }
  4550. function pickPlatformItem(dict) {
  4551. // Look for the filename in this order:
  4552. // UF, F, Unix, Mac, DOS
  4553. if (dict.has('UF')) {
  4554. return dict.get('UF');
  4555. } else if (dict.has('F')) {
  4556. return dict.get('F');
  4557. } else if (dict.has('Unix')) {
  4558. return dict.get('Unix');
  4559. } else if (dict.has('Mac')) {
  4560. return dict.get('Mac');
  4561. } else if (dict.has('DOS')) {
  4562. return dict.get('DOS');
  4563. } else {
  4564. return null;
  4565. }
  4566. }
  4567. FileSpec.prototype = {
  4568. get filename() {
  4569. if (!this._filename && this.root) {
  4570. var filename = pickPlatformItem(this.root) || 'unnamed';
  4571. this._filename = stringToPDFString(filename).
  4572. replace(/\\\\/g, '\\').
  4573. replace(/\\\//g, '/').
  4574. replace(/\\/g, '/');
  4575. }
  4576. return this._filename;
  4577. },
  4578. get content() {
  4579. if (!this.contentAvailable) {
  4580. return null;
  4581. }
  4582. if (!this.contentRef && this.root) {
  4583. this.contentRef = pickPlatformItem(this.root.get('EF'));
  4584. }
  4585. var content = null;
  4586. if (this.contentRef) {
  4587. var xref = this.xref;
  4588. var fileObj = xref.fetchIfRef(this.contentRef);
  4589. if (fileObj && isStream(fileObj)) {
  4590. content = fileObj.getBytes();
  4591. } else {
  4592. warn('Embedded file specification points to non-existing/invalid ' +
  4593. 'content');
  4594. }
  4595. } else {
  4596. warn('Embedded file specification does not have a content');
  4597. }
  4598. return content;
  4599. },
  4600. get serializable() {
  4601. return {
  4602. filename: this.filename,
  4603. content: this.content
  4604. };
  4605. }
  4606. };
  4607. return FileSpec;
  4608. })();
  4609. /**
  4610. * A helper for loading missing data in object graphs. It traverses the graph
  4611. * depth first and queues up any objects that have missing data. Once it has
  4612. * has traversed as many objects that are available it attempts to bundle the
  4613. * missing data requests and then resume from the nodes that weren't ready.
  4614. *
  4615. * NOTE: It provides protection from circular references by keeping track of
  4616. * of loaded references. However, you must be careful not to load any graphs
  4617. * that have references to the catalog or other pages since that will cause the
  4618. * entire PDF document object graph to be traversed.
  4619. */
  4620. var ObjectLoader = (function() {
  4621. function mayHaveChildren(value) {
  4622. return isRef(value) || isDict(value) || isArray(value) || isStream(value);
  4623. }
  4624. function addChildren(node, nodesToVisit) {
  4625. var value;
  4626. if (isDict(node) || isStream(node)) {
  4627. var map;
  4628. if (isDict(node)) {
  4629. map = node.map;
  4630. } else {
  4631. map = node.dict.map;
  4632. }
  4633. for (var key in map) {
  4634. value = map[key];
  4635. if (mayHaveChildren(value)) {
  4636. nodesToVisit.push(value);
  4637. }
  4638. }
  4639. } else if (isArray(node)) {
  4640. for (var i = 0, ii = node.length; i < ii; i++) {
  4641. value = node[i];
  4642. if (mayHaveChildren(value)) {
  4643. nodesToVisit.push(value);
  4644. }
  4645. }
  4646. }
  4647. }
  4648. function ObjectLoader(obj, keys, xref) {
  4649. this.obj = obj;
  4650. this.keys = keys;
  4651. this.xref = xref;
  4652. this.refSet = null;
  4653. }
  4654. ObjectLoader.prototype = {
  4655. load: function ObjectLoader_load() {
  4656. var keys = this.keys;
  4657. this.capability = createPromiseCapability();
  4658. // Don't walk the graph if all the data is already loaded.
  4659. if (!(this.xref.stream instanceof ChunkedStream) ||
  4660. this.xref.stream.getMissingChunks().length === 0) {
  4661. this.capability.resolve();
  4662. return this.capability.promise;
  4663. }
  4664. this.refSet = new RefSet();
  4665. // Setup the initial nodes to visit.
  4666. var nodesToVisit = [];
  4667. for (var i = 0; i < keys.length; i++) {
  4668. nodesToVisit.push(this.obj[keys[i]]);
  4669. }
  4670. this.walk(nodesToVisit);
  4671. return this.capability.promise;
  4672. },
  4673. walk: function ObjectLoader_walk(nodesToVisit) {
  4674. var nodesToRevisit = [];
  4675. var pendingRequests = [];
  4676. // DFS walk of the object graph.
  4677. while (nodesToVisit.length) {
  4678. var currentNode = nodesToVisit.pop();
  4679. // Only references or chunked streams can cause missing data exceptions.
  4680. if (isRef(currentNode)) {
  4681. // Skip nodes that have already been visited.
  4682. if (this.refSet.has(currentNode)) {
  4683. continue;
  4684. }
  4685. try {
  4686. var ref = currentNode;
  4687. this.refSet.put(ref);
  4688. currentNode = this.xref.fetch(currentNode);
  4689. } catch (e) {
  4690. if (!(e instanceof MissingDataException)) {
  4691. throw e;
  4692. }
  4693. nodesToRevisit.push(currentNode);
  4694. pendingRequests.push({ begin: e.begin, end: e.end });
  4695. }
  4696. }
  4697. if (currentNode && currentNode.getBaseStreams) {
  4698. var baseStreams = currentNode.getBaseStreams();
  4699. var foundMissingData = false;
  4700. for (var i = 0; i < baseStreams.length; i++) {
  4701. var stream = baseStreams[i];
  4702. if (stream.getMissingChunks && stream.getMissingChunks().length) {
  4703. foundMissingData = true;
  4704. pendingRequests.push({
  4705. begin: stream.start,
  4706. end: stream.end
  4707. });
  4708. }
  4709. }
  4710. if (foundMissingData) {
  4711. nodesToRevisit.push(currentNode);
  4712. }
  4713. }
  4714. addChildren(currentNode, nodesToVisit);
  4715. }
  4716. if (pendingRequests.length) {
  4717. this.xref.stream.manager.requestRanges(pendingRequests,
  4718. function pendingRequestCallback() {
  4719. nodesToVisit = nodesToRevisit;
  4720. for (var i = 0; i < nodesToRevisit.length; i++) {
  4721. var node = nodesToRevisit[i];
  4722. // Remove any reference nodes from the currrent refset so they
  4723. // aren't skipped when we revist them.
  4724. if (isRef(node)) {
  4725. this.refSet.remove(node);
  4726. }
  4727. }
  4728. this.walk(nodesToVisit);
  4729. }.bind(this));
  4730. return;
  4731. }
  4732. // Everything is loaded.
  4733. this.refSet = null;
  4734. this.capability.resolve();
  4735. }
  4736. };
  4737. return ObjectLoader;
  4738. })();
  4739. var ISOAdobeCharset = [
  4740. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
  4741. 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
  4742. 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
  4743. 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  4744. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
  4745. 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  4746. 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  4747. 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
  4748. 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
  4749. 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  4750. 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  4751. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  4752. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  4753. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  4754. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
  4755. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  4756. 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
  4757. 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
  4758. 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
  4759. 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
  4760. 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
  4761. 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
  4762. 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
  4763. 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
  4764. 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
  4765. 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
  4766. 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
  4767. 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
  4768. 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
  4769. 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
  4770. 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
  4771. 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
  4772. 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
  4773. 'ugrave', 'yacute', 'ydieresis', 'zcaron'
  4774. ];
  4775. var ExpertCharset = [
  4776. '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
  4777. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  4778. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  4779. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  4780. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  4781. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
  4782. 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
  4783. 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
  4784. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  4785. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  4786. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  4787. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  4788. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  4789. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  4790. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  4791. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  4792. 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
  4793. 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
  4794. 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
  4795. 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
  4796. 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
  4797. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  4798. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  4799. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  4800. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  4801. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  4802. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  4803. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  4804. 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
  4805. 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
  4806. 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  4807. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  4808. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  4809. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  4810. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  4811. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  4812. 'Ydieresissmall'
  4813. ];
  4814. var ExpertSubsetCharset = [
  4815. '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
  4816. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  4817. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
  4818. 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
  4819. 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
  4820. 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
  4821. 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
  4822. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  4823. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  4824. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  4825. 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
  4826. 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
  4827. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  4828. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  4829. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  4830. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  4831. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  4832. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  4833. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  4834. 'periodinferior', 'commainferior'
  4835. ];
  4836. var CIDToUnicodeMaps = {
  4837. 'Adobe-Japan1': [[32, 160], {f: 12, c: 33}, [45, 8209], {f: 46, c: 46}, 165,
  4838. {f: 2, c: 93}, [95, 818], [96, 768], {f: 27, c: 97}, 166, 125, [732, 771],
  4839. [700, 8217], 92, [699, 8216], 124, [126, 8764], {f: 3, c: 161}, 8260, 402,
  4840. 0, 164, 8220, 171, {f: 2, c: 8249}, {f: 2, c: 64257}, [8210, 8211], 0, 0,
  4841. [183, 8729], 0, 8226, 8218, 8222, 8221, 187, 0, 0, 191, {f: 2, c: 769},
  4842. [175, 772], {f: 3, c: 774}, 778, [184, 807], 779, 808, 780, [822, 8212],
  4843. 198, 170, 321, 216, 338, 186, 230, 305, 322, 248, 339, 223, 173, 169, 172,
  4844. 174, 0, 0, {f: 2, c: 178}, 181, 185, {f: 3, c: 188}, {f: 6, c: 192},
  4845. {f: 16, c: 199}, 0, {f: 6, c: 217}, {f: 6, c: 224}, {f: 16, c: 231}, 0,
  4846. {f: 7, c: 249}, 352, 376, 381, [773, 8254], 353, 8482, 382, 0, 8194,
  4847. {f: 59, c: 33}, 165, {f: 31, c: 93}, 65512, {f: 2, c: 125}, 0,
  4848. {f: 63, c: 65377}, {s: 243}, [8195, 12288],
  4849. {f: 2, c: 12289}, 65292, 65294, 12539, {f: 2, c: 65306}, 65311, 65281,
  4850. {f: 2, c: 12443}, 180, 65344, 168, 65342, 65507, 65343, {f: 2, c: 12541},
  4851. {f: 2, c: 12445}, 12291, 20189, {f: 3, c: 12293}, 12540, 8213, 8208, 65295,
  4852. 65340, [12316, 65374], 8214, 65372, 8230, 8229, {s: 4}, {f: 2, c: 65288},
  4853. {f: 2, c: 12308}, 65339, 65341, 65371, 65373, {f: 10, c: 12296}, 65291,
  4854. [8722, 65293], 177, 215, 247, 65309, 8800, 65308, 65310, {f: 2, c: 8806},
  4855. 8734, 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65509, 65284,
  4856. {f: 2, c: 65504}, 65285, 65283, 65286, 65290, 65312, 167, 9734, 9733, 9675,
  4857. 9679, 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8251, 12306,
  4858. 8594, {f: 2, c: 8592}, 8595, 12307, 8712, 8715, {f: 2, c: 8838},
  4859. {f: 2, c: 8834}, 8746, 8745, {f: 2, c: 8743}, 65506, 8658, 8660, 8704,
  4860. 8707, 8736, 8869, 8978, 8706, 8711, 8801, 8786, {f: 2, c: 8810}, 8730,
  4861. 8765, 8733, 8757, {f: 2, c: 8747}, 8491, 8240, 9839, 9837, 9834,
  4862. {f: 2, c: 8224}, 182, 9711, {f: 10, c: 65296}, {f: 26, c: 65313},
  4863. {f: 26, c: 65345}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 17, c: 913},
  4864. {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, {f: 6, c: 1040}, 1025,
  4865. {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 20124, 21782, 23043, 38463,
  4866. 21696, 24859, 25384, 23030, 36898, 33909, 33564, 31312, 24746, 25569,
  4867. 28197, 26093, 33894, 33446, 39925, 26771, 22311, 26017, 25201, 23451,
  4868. 22992, 34427, 39156, 32098, 32190, 39822, 25110, 31903, 34999, 23433,
  4869. 24245, 25353, 26263, 26696, 38343, 38797, 26447, 20197, 20234, 20301,
  4870. 20381, 20553, 22258, 22839, 22996, 23041, 23561, 24799, 24847, 24944,
  4871. 26131, 26885, 28858, 30031, 30064, 31227, 32173, 32239, 32963, 33806,
  4872. [12176, 34915], 35586, 36949, 36986, 21307, 20117, 20133, 22495, 32946,
  4873. 37057, 30959, [12032, 19968], 22769, 28322, 36920, 31282, 33576, 33419,
  4874. 39983, 20801, 21360, 21693, 21729, 22240, 23035, 24341, 39154, 28139,
  4875. 32996, 34093, 38498, 38512, 38560, 38907, 21515, 21491, 23431, 28879,
  4876. [12155, 32701], 36802, [12204, 38632], 21359, 40284, 31418, 19985, 30867,
  4877. [12165, 33276], 28198, 22040, 21764, 27421, 34074, 39995, 23013, 21417,
  4878. 28006, [12128, 29916], 38287, 22082, 20113, 36939, 38642, 33615, 39180,
  4879. 21473, 21942, 23344, 24433, 26144, 26355, 26628, 27704, 27891, 27945,
  4880. 29787, 30408, 31310, 38964, 33521, 34907, 35424, 37613, 28082, 30123,
  4881. 30410, 39365, 24742, 35585, 36234, 38322, 27022, 21421, 20870, 22290,
  4882. 22576, 22852, 23476, 24310, 24616, 25513, 25588, 27839, 28436, 28814,
  4883. 28948, 29017, 29141, 29503, 32257, 33398, 33489, 34199, 36960, 37467,
  4884. 40219, 22633, 26044, 27738, 29989, 20985, 22830, 22885, 24448, 24540,
  4885. 25276, 26106, 27178, 27431, 27572, 29579, 32705, 35158, 40236, 40206,
  4886. [12009, 40644], 23713, 27798, 33659, 20740, 23627, 25014, 33222, 26742,
  4887. 29281, [12036, 20057], 20474, 21368, 24681, 28201, 31311, [12211, 38899],
  4888. 19979, 21270, 20206, 20309, 20285, 20385, 20339, 21152, 21487, 22025,
  4889. 22799, 23233, 23478, 23521, 31185, 26247, 26524, 26550, 27468, 27827,
  4890. [12117, 28779], 29634, 31117, [12146, 31166], 31292, 31623, 33457, 33499,
  4891. 33540, 33655, 33775, 33747, 34662, 35506, 22057, 36008, 36838, 36942,
  4892. 38686, 34442, 20420, 23784, 25105, [12123, 29273], 30011, 33253, 33469,
  4893. 34558, 36032, 38597, 39187, 39381, 20171, 20250, 35299, 22238, 22602,
  4894. 22730, 24315, 24555, 24618, 24724, 24674, 25040, 25106, 25296, 25913,
  4895. 39745, 26214, 26800, 28023, 28784, 30028, 30342, 32117, 33445, 34809,
  4896. 38283, 38542, [12185, 35997], 20977, 21182, 22806, 21683, 23475, 23830,
  4897. 24936, 27010, 28079, 30861, 33995, 34903, 35442, 37799, 39608, 28012,
  4898. 39336, 34521, 22435, 26623, 34510, 37390, 21123, 22151, 21508, 24275,
  4899. 25313, 25785, 26684, 26680, 27579, 29554, 30906, 31339, 35226,
  4900. [12179, 35282], 36203, 36611, 37101, 38307, 38548, [12208, 38761], 23398,
  4901. 23731, 27005, {f: 2, c: 38989}, 25499, 31520, 27179, 27263, 26806, 39949,
  4902. 28511, 21106, 21917, 24688, 25324, 27963, 28167, 28369, 33883, 35088,
  4903. 36676, 19988, 39993, 21494, 26907, 27194, 38788, 26666, 20828, 31427,
  4904. 33970, 37340, 37772, 22107, 40232, 26658, 33541, 33841, 31909, 21000,
  4905. 33477, [12129, 29926], 20094, 20355, 20896, 23506, 21002, 21208, 21223,
  4906. 24059, 21914, 22570, 23014, 23436, 23448, 23515, [12082, 24178], 24185,
  4907. 24739, 24863, 24931, 25022, 25563, 25954, 26577, 26707, 26874, 27454,
  4908. 27475, 27735, 28450, 28567, 28485, 29872, [12130, 29976], 30435, 30475,
  4909. 31487, 31649, 31777, 32233, [12152, 32566], 32752, 32925, 33382, 33694,
  4910. 35251, 35532, 36011, 36996, 37969, 38291, 38289, 38306, 38501, 38867,
  4911. 39208, 33304, 20024, 21547, 23736, 24012, 29609, 30284, 30524, 23721,
  4912. 32747, 36107, 38593, 38929, 38996, 39000, 20225, 20238, 21361, 21916,
  4913. 22120, 22522, 22855, 23305, 23492, 23696, 24076, 24190, 24524, 25582,
  4914. 26426, 26071, 26082, 26399, 26827, 26820, 27231, 24112, 27589, 27671,
  4915. 27773, 30079, 31048, 23395, 31232, 32000, 24509, 35215, 35352, 36020,
  4916. 36215, 36556, 36637, 39138, 39438, [12004, 12225, 39740], [12018, 20096],
  4917. 20605, 20736, 22931, 23452, 25135, 25216, 25836, 27450, 29344, 30097,
  4918. 31047, 32681, 34811, 35516, 35696, 25516, 33738, 38816, 21513, 21507,
  4919. 21931, 26708, 27224, 35440, 30759, 26485, [12233, 40653], 21364, 23458,
  4920. 33050, 34384, 36870, 19992, 20037, 20167, 20241, 21450, 21560, 23470,
  4921. [12088, 24339], 24613, 25937, 26429, 27714, 27762, 27875, 28792, 29699,
  4922. 31350, 31406, 31496, 32026, 31998, 32102, 26087, [12124, 29275], 21435,
  4923. 23621, 24040, 25298, 25312, 25369, 28192, 34394, 35377, 36317, 37624,
  4924. 28417, 31142, [12226, 39770], 20136, {f: 2, c: 20139}, 20379, 20384, 20689,
  4925. 20807, 31478, 20849, 20982, 21332, 21281, 21375, 21483, 21932, 22659,
  4926. 23777, 24375, 24394, 24623, 24656, 24685, 25375, 25945, 27211, 27841,
  4927. 29378, 29421, 30703, 33016, 33029, 33288, 34126, 37111, 37857, 38911,
  4928. 39255, 39514, 20208, 20957, 23597, 26241, 26989, 23616, 26354, 26997,
  4929. [12127, 29577], 26704, 31873, 20677, 21220, 22343, [12081, 24062], 37670,
  4930. [12100, 26020], 27427, 27453, 29748, 31105, 31165, 31563, 32202, 33465,
  4931. 33740, 34943, 35167, 35641, 36817, [12198, 37329], 21535, 37504, 20061,
  4932. 20534, 21477, 21306, 29399, 29590, 30697, 33510, 36527, 39366, 39368,
  4933. 39378, 20855, 24858, 34398, 21936, 31354, 20598, 23507, 36935, 38533,
  4934. 20018, 27355, 37351, 23633, 23624, 25496, 31391, 27795, 38772, 36705,
  4935. 31402, 29066, 38536, 31874, 26647, 32368, 26705, 37740, 21234, 21531,
  4936. 34219, 35347, 32676, 36557, 37089, 21350, 34952, 31041, 20418, 20670,
  4937. 21009, 20804, 21843, 22317, 29674, 22411, 22865, 24418, 24452, 24693,
  4938. 24950, 24935, 25001, 25522, 25658, 25964, 26223, 26690, 28179, 30054,
  4939. 31293, 31995, 32076, 32153, 32331, 32619, 33550, 33610, 34509, 35336,
  4940. 35427, 35686, 36605, 38938, 40335, 33464, 36814, 39912, 21127, 25119,
  4941. 25731, 28608, 38553, 26689, 20625, [12107, 27424], 27770, 28500,
  4942. [12147, 31348], 32080, [12174, 34880], 35363, [12105, 26376], 20214, 20537,
  4943. 20518, 20581, 20860, 21048, 21091, 21927, 22287, 22533, 23244, 24314,
  4944. 25010, 25080, 25331, 25458, 26908, 27177, 29309, [12125, 29356], 29486,
  4945. 30740, 30831, 32121, 30476, 32937, [12178, 35211], 35609, 36066, 36562,
  4946. 36963, 37749, 38522, 38997, 39443, 40568, 20803, 21407, 21427, 24187,
  4947. 24358, 28187, 28304, [12126, 29572], 29694, 32067, 33335, [12180, 35328],
  4948. 35578, 38480, 20046, 20491, 21476, 21628, 22266, 22993, 23396,
  4949. [12080, 24049], 24235, 24359, [12094, 25144], 25925, 26543, 28246, 29392,
  4950. 31946, 34996, 32929, 32993, 33776, [11969, 34382], 35463, 36328, 37431,
  4951. 38599, 39015, [12238, 40723], 20116, 20114, 20237, 21320, 21577, 21566,
  4952. 23087, 24460, 24481, 24735, 26791, 27278, 29786, 30849, 35486, 35492,
  4953. 35703, 37264, 20062, 39881, 20132, 20348, 20399, 20505, 20502, 20809,
  4954. 20844, 21151, 21177, 21246, 21402, [12061, 21475], 21521, 21518, 21897,
  4955. 22353, 22434, 22909, 23380, 23389, 23439, [12079, 24037], 24039, 24055,
  4956. 24184, 24195, 24218, 24247, 24344, 24658, 24908, 25239, 25304, 25511,
  4957. 25915, 26114, 26179, 26356, 26477, 26657, 26775, 27083, 27743, 27946,
  4958. 28009, 28207, 28317, 30002, 30343, 30828, 31295, 31968, 32005, 32024,
  4959. 32094, 32177, 32789, 32771, 32943, 32945, 33108, 33167, 33322, 33618,
  4960. [12175, 34892], 34913, 35611, 36002, 36092, 37066, 37237, 37489, 30783,
  4961. 37628, 38308, 38477, 38917, [12217, 39321], [12220, 39640], 40251, 21083,
  4962. 21163, 21495, 21512, 22741, 25335, 28640, 35946, 36703, 40633, 20811,
  4963. 21051, 21578, 22269, 31296, 37239, 40288, [12234, 40658], 29508, 28425,
  4964. 33136, 29969, 24573, 24794, [12219, 39592], 29403, 36796, 27492, 38915,
  4965. 20170, 22256, 22372, 22718, 23130, 24680, 25031, 26127, 26118, 26681,
  4966. 26801, 28151, 30165, 32058, [12169, 33390], 39746, 20123, 20304, 21449,
  4967. 21766, 23919, 24038, 24046, 26619, 27801, 29811, 30722, 35408, 37782,
  4968. 35039, 22352, 24231, 25387, 20661, 20652, 20877, 26368, 21705, 22622,
  4969. 22971, 23472, 24425, 25165, 25505, 26685, 27507, 28168, 28797, 37319,
  4970. 29312, 30741, 30758, 31085, 25998, 32048, 33756, 35009, 36617, 38555,
  4971. 21092, 22312, 26448, 32618, 36001, 20916, 22338, 38442, 22586, 27018,
  4972. 32948, 21682, 23822, 22524, 30869, 40442, 20316, 21066, 21643, 25662,
  4973. 26152, 26388, 26613, 31364, 31574, 32034, 37679, 26716, 39853, 31545,
  4974. 21273, 20874, 21047, 23519, 25334, 25774, 25830, 26413, 27578, 34217,
  4975. 38609, 30352, 39894, 25420, 37638, 39851, [12139, 30399], 26194, 19977,
  4976. 20632, 21442, [12077, 23665], 24808, 25746, 25955, 26719, 29158, 29642,
  4977. 29987, 31639, 32386, 34453, 35715, 36059, 37240, 39184, 26028, 26283,
  4978. 27531, 20181, 20180, 20282, 20351, 21050, 21496, 21490, 21987, 22235,
  4979. [12064, 22763], 22987, 22985, 23039, [12070, 23376], 23629, 24066, 24107,
  4980. 24535, 24605, 25351, [12096, 25903], 23388, 26031, 26045, 26088, 26525,
  4981. [12108, 27490], 27515, [12114, 27663], 29509, 31049, 31169, [12151, 31992],
  4982. 32025, 32043, 32930, 33026, [12164, 33267], 35222, 35422, 35433, 35430,
  4983. 35468, 35566, 36039, 36060, 38604, 39164, [12013, 27503], 20107, 20284,
  4984. 20365, 20816, 23383, 23546, 24904, 25345, 26178, 27425, 28363, 27835,
  4985. 29246, 29885, 30164, 30913, [12144, 31034], [12157, 32780], [12159, 32819],
  4986. [12163, 33258], 33940, 36766, 27728, [12229, 40575], 24335, 35672, 40235,
  4987. 31482, 36600, 23437, 38635, 19971, 21489, 22519, 22833, 23241, 23460,
  4988. 24713, 28287, 28422, 30142, 36074, 23455, 34048, 31712, 20594, 26612,
  4989. 33437, 23649, 34122, 32286, 33294, 20889, 23556, 25448, 36198, 26012,
  4990. 29038, 31038, 32023, 32773, 35613, [12190, 36554], 36974, 34503, 37034,
  4991. 20511, 21242, 23610, 26451, 28796, 29237, 37196, 37320, 37675, 33509,
  4992. 23490, 24369, 24825, 20027, 21462, 23432, [12095, 25163], 26417, 27530,
  4993. 29417, 29664, 31278, 33131, 36259, 37202, [12216, 39318], 20754, 21463,
  4994. 21610, 23551, 25480, 27193, 32172, 38656, 22234, 21454, 21608, 23447,
  4995. 23601, 24030, 20462, 24833, 25342, 27954, 31168, 31179, 32066, 32333,
  4996. 32722, 33261, [12168, 33311], 33936, 34886, 35186, 35728, 36468, 36655,
  4997. 36913, 37195, 37228, 38598, 37276, 20160, 20303, 20805, [12055, 21313],
  4998. 24467, 25102, 26580, 27713, 28171, 29539, 32294, 37325, 37507, 21460,
  4999. 22809, 23487, 28113, 31069, 32302, 31899, 22654, 29087, 20986, 34899,
  5000. 36848, 20426, 23803, 26149, 30636, 31459, 33308, 39423, 20934, 24490,
  5001. 26092, 26991, 27529, 28147, 28310, 28516, 30462, 32020, 24033, 36981,
  5002. 37255, 38918, 20966, 21021, 25152, 26257, 26329, 28186, 24246, 32210,
  5003. 32626, 26360, 34223, 34295, 35576, 21161, 21465, [12069, 22899], 24207,
  5004. 24464, 24661, 37604, 38500, 20663, 20767, 21213, 21280, 21319, 21484,
  5005. 21736, 21830, 21809, 22039, 22888, 22974, 23100, 23477, 23558,
  5006. [12073, 23567], 23569, 23578, 24196, 24202, 24288, 24432, 25215, 25220,
  5007. 25307, 25484, 25463, 26119, 26124, 26157, 26230, 26494, 26786, 27167,
  5008. 27189, 27836, 28040, 28169, 28248, 28988, 28966, 29031, 30151, 30465,
  5009. 30813, 30977, 31077, 31216, 31456, 31505, 31911, 32057, 32918, 33750,
  5010. 33931, 34121, 34909, 35059, 35359, 35388, 35412, 35443, 35937, 36062,
  5011. 37284, 37478, 37758, 37912, 38556, 38808, 19978, 19976, 19998, 20055,
  5012. 20887, 21104, 22478, 22580, 22732, 23330, 24120, 24773, 25854, 26465,
  5013. 26454, 27972, 29366, 30067, 31331, 33976, 35698, 37304, 37664, 22065,
  5014. 22516, 39166, 25325, 26893, 27542, 29165, 32340, 32887, [12170, 33394],
  5015. 35302, [12215, 39135], 34645, 36785, 23611, 20280, 20449, 20405, 21767,
  5016. 23072, 23517, 23529, [12092, 24515], 24910, 25391, 26032, 26187, 26862,
  5017. 27035, 28024, 28145, 30003, 30137, 30495, 31070, 31206, 32051,
  5018. [12162, 33251], 33455, 34218, 35242, 35386, [12189, 36523], [12191, 36763],
  5019. 36914, 37341, 38663, [12040, 20154], 20161, 20995, 22645, 22764, 23563,
  5020. 29978, 23613, 33102, 35338, 36805, 38499, 38765, 31525, 35535, 38920,
  5021. 37218, 22259, 21416, 36887, 21561, 22402, 24101, 25512, [12116, 27700],
  5022. 28810, 30561, 31883, 32736, 34928, 36930, 37204, 37648, 37656, 38543,
  5023. 29790, 39620, 23815, 23913, 25968, 26530, 36264, 38619, 25454, 26441,
  5024. 26905, 33733, 38935, 38592, 35070, 28548, 25722, [12072, 23544], 19990,
  5025. 28716, 30045, 26159, 20932, 21046, 21218, 22995, 24449, 24615, 25104,
  5026. 25919, 25972, 26143, 26228, 26866, 26646, 27491, 28165, 29298,
  5027. [12131, 29983], 30427, 31934, 32854, 22768, 35069, [11972, 35199], 35488,
  5028. 35475, 35531, 36893, 37266, [11992, 38738], 38745, [12011, 25993], 31246,
  5029. 33030, 38587, 24109, 24796, 25114, 26021, 26132, 26512, [12143, 30707],
  5030. 31309, 31821, 32318, 33034, 36012, [12186, 36196], 36321, 36447, 30889,
  5031. 20999, 25305, 25509, 25666, 25240, 35373, 31363, 31680, 35500, 38634,
  5032. 32118, [12166, 33292], 34633, 20185, 20808, 21315, 21344, 23459, 23554,
  5033. 23574, 24029, 25126, 25159, 25776, 26643, 26676, 27849, 27973, 27927,
  5034. 26579, 28508, 29006, 29053, 26059, 31359, 31661, 32218, 32330, 32680,
  5035. 33146, [12167, 33307], 33337, 34214, 35438, 36046, 36341, 36984, 36983,
  5036. 37549, 37521, 38275, 39854, 21069, 21892, 28472, 28982, 20840, 31109,
  5037. 32341, 33203, 31950, 22092, 22609, 23720, 25514, 26366, 26365, 26970,
  5038. 29401, 30095, 30094, 30990, 31062, 31199, 31895, 32032, 32068, 34311,
  5039. 35380, 38459, 36961, [12239, 40736], 20711, 21109, 21452, 21474, 20489,
  5040. 21930, 22766, 22863, 29245, 23435, 23652, 21277, 24803, 24819, 25436,
  5041. 25475, 25407, 25531, 25805, 26089, 26361, 24035, 27085, 27133, 28437,
  5042. 29157, 20105, 30185, 30456, 31379, 31967, 32207, 32156, 32865, 33609,
  5043. 33624, 33900, 33980, 34299, 35013, [12187, 36208], 36865, 36973, 37783,
  5044. 38684, 39442, 20687, 22679, 24974, 33235, 34101, 36104, 36896, 20419,
  5045. 20596, 21063, 21363, 24687, 25417, 26463, 28204, [12188, 36275], 36895,
  5046. 20439, 23646, 36042, 26063, 32154, 21330, 34966, 20854, 25539, 23384,
  5047. 23403, 23562, 25613, 26449, 36956, 20182, 22810, 22826, 27760, 35409,
  5048. 21822, 22549, 22949, 24816, 25171, 26561, 33333, 26965, 38464, 39364,
  5049. 39464, 20307, 22534, 23550, 32784, 23729, 24111, 24453, 24608, 24907,
  5050. 25140, 26367, 27888, 28382, 32974, 33151, 33492, 34955, 36024, 36864,
  5051. 36910, 38538, 40667, 39899, 20195, 21488, [12068, 22823], 31532, 37261,
  5052. 38988, 40441, 28381, 28711, 21331, 21828, 23429, 25176, 25246, 25299,
  5053. 27810, 28655, 29730, 35351, 37944, 28609, 35582, 33592, 20967, 34552,
  5054. 21482, 21481, 20294, 36948, [12192, 36784], 22890, 33073, 24061, 31466,
  5055. 36799, 26842, [12181, 35895], 29432, 40008, 27197, 35504, 20025, 21336,
  5056. 22022, 22374, 25285, 25506, 26086, 27470, 28129, 28251, 28845, 30701,
  5057. 31471, 31658, 32187, 32829, 32966, 34507, 35477, 37723, 22243, 22727,
  5058. 24382, 26029, 26262, 27264, 27573, 30007, 35527, 20516, 30693, 22320,
  5059. 24347, 24677, 26234, 27744, 30196, 31258, 32622, 33268, 34584, 36933,
  5060. 39347, 31689, 30044, [12149, 31481], 31569, 33988, 36880, 31209, 31378,
  5061. 33590, 23265, 30528, 20013, 20210, 23449, 24544, 25277, 26172, 26609,
  5062. 27880, [12173, 34411], 34935, 35387, 37198, 37619, 39376, 27159, 28710,
  5063. 29482, 33511, 33879, 36015, 19969, 20806, 20939, 21899, 23541, 24086,
  5064. 24115, 24193, 24340, 24373, 24427, 24500, 25074, 25361, 26274, 26397,
  5065. 28526, 29266, 30010, 30522, 32884, 33081, 33144, 34678, 35519, 35548,
  5066. 36229, 36339, 37530, [11985, 12199, 38263], 38914, [12227, 40165], 21189,
  5067. 25431, 30452, 26389, 27784, 29645, 36035, 37806, 38515, 27941, 22684,
  5068. 26894, 27084, 36861, 37786, 30171, 36890, 22618, 26626, 25524, 27131,
  5069. 20291, 28460, 26584, 36795, 34086, 32180, 37716, 26943, 28528, 22378,
  5070. 22775, 23340, 32044, [12118, 29226], 21514, 37347, 40372, 20141, 20302,
  5071. 20572, 20597, 21059, 35998, 21576, 22564, 23450, 24093, 24213, 24237,
  5072. 24311, 24351, 24716, 25269, 25402, 25552, 26799, 27712, 30855, 31118,
  5073. 31243, 32224, 33351, 35330, 35558, 36420, 36883, 37048, 37165, 37336,
  5074. [12237, 40718], 27877, 25688, 25826, 25973, 28404, 30340, 31515, 36969,
  5075. 37841, 28346, 21746, 24505, 25764, 36685, 36845, 37444, 20856, 22635,
  5076. 22825, 23637, 24215, 28155, 32399, 29980, 36028, 36578, 39003, 28857,
  5077. 20253, 27583, 28593, [12133, 30000], 38651, 20814, 21520, 22581, 22615,
  5078. 22956, 23648, 24466, [12099, 26007], 26460, 28193, 30331, 33759, 36077,
  5079. 36884, 37117, 37709, 30757, 30778, 21162, 24230, [12063, 22303], 22900,
  5080. 24594, 20498, 20826, 20908, 20941, [12049, 20992], 21776, 22612, 22616,
  5081. 22871, 23445, 23798, 23947, 24764, 25237, 25645, 26481, 26691, 26812,
  5082. 26847, 30423, 28120, 28271, 28059, 28783, 29128, 24403, 30168, 31095,
  5083. 31561, 31572, 31570, 31958, 32113, 21040, 33891, 34153, 34276, 35342,
  5084. 35588, [12182, 35910], 36367, 36867, 36879, 37913, 38518, 38957, 39472,
  5085. 38360, 20685, 21205, 21516, 22530, 23566, 24999, 25758, 27934, 30643,
  5086. 31461, 33012, 33796, 36947, 37509, 23776, 40199, 21311, 24471, 24499,
  5087. 28060, 29305, 30563, 31167, 31716, 27602, 29420, 35501, 26627, 27233,
  5088. 20984, 31361, 26932, 23626, 40182, 33515, 23493, [12195, 37193], 28702,
  5089. 22136, 23663, 24775, 25958, 27788, 35930, 36929, 38931, 21585, 26311,
  5090. 37389, 22856, 37027, 20869, 20045, 20970, 34201, 35598, 28760, 25466,
  5091. 37707, 26978, 39348, 32260, 30071, 21335, 26976, 36575, 38627, 27741,
  5092. [12038, 20108], 23612, 24336, 36841, 21250, 36049, [12161, 32905], 34425,
  5093. 24319, [12103, 26085], 20083, [12042, 20837], 22914, 23615, 38894, 20219,
  5094. 22922, 24525, 35469, 28641, 31152, 31074, 23527, 33905, 29483, 29105,
  5095. 24180, 24565, 25467, 25754, 29123, 31896, 20035, 24316, 20043, 22492,
  5096. 22178, 24745, 28611, 32013, 33021, 33075, 33215, 36786, 35223, 34468,
  5097. 24052, 25226, 25773, 35207, 26487, 27874, 27966, 29750, 30772, 23110,
  5098. 32629, 33453, [12218, 39340], 20467, 24259, 25309, 25490, 25943, 26479,
  5099. 30403, 29260, 32972, 32954, 36649, 37197, 20493, 22521, 23186, 26757,
  5100. 26995, 29028, 29437, 36023, 22770, 36064, 38506, 36889, 34687, 31204,
  5101. 30695, 33833, 20271, 21093, 21338, 25293, 26575, 27850, [12137, 30333],
  5102. 31636, 31893, 33334, 34180, 36843, 26333, 28448, 29190, 32283, 33707,
  5103. 39361, [12008, 40614], 20989, 31665, 30834, 31672, 32903, 31560, 27368,
  5104. 24161, 32908, 30033, 30048, [12043, 20843], 37474, 28300, 30330, 37271,
  5105. 39658, 20240, 32624, 25244, 31567, 38309, 40169, 22138, 22617, 34532,
  5106. 38588, 20276, 21028, 21322, 21453, 21467, 24070, 25644, 26001, 26495,
  5107. 27710, 27726, 29256, 29359, 29677, 30036, 32321, 33324, 34281, 36009,
  5108. 31684, [12196, 37318], 29033, 38930, 39151, 25405, 26217, 30058, 30436,
  5109. 30928, 34115, 34542, 21290, 21329, 21542, 22915, 24199, 24444, 24754,
  5110. 25161, 25209, 25259, 26000, [12112, 27604], 27852, 30130, [12138, 30382],
  5111. 30865, 31192, 32203, 32631, 32933, 34987, 35513, 36027, 36991,
  5112. [12206, 38750], [12214, 39131], 27147, 31800, 20633, 23614, 24494, 26503,
  5113. 27608, 29749, 30473, 32654, [12240, 40763], 26570, 31255, 21305,
  5114. [12134, 30091], 39661, 24422, 33181, 33777, 32920, 24380, 24517, 30050,
  5115. 31558, 36924, 26727, 23019, 23195, 32016, 30334, 35628, 20469, 24426,
  5116. 27161, 27703, 28418, 29922, 31080, 34920, 35413, 35961, 24287, 25551,
  5117. 30149, 31186, 33495, 37672, 37618, 33948, 34541, 39981, 21697, 24428,
  5118. 25996, 27996, 28693, 36007, 36051, 38971, 25935, 29942, 19981, 20184,
  5119. 22496, 22827, 23142, 23500, 20904, 24067, 24220, 24598, 25206, 25975,
  5120. 26023, 26222, 28014, [12119, 29238], 31526, 33104, 33178, 33433, 35676,
  5121. 36000, 36070, 36212, [12201, 38428], 38468, 20398, 25771, 27494, 33310,
  5122. 33889, 34154, 37096, 23553, 26963, [12213, 39080], 33914, 34135, 20239,
  5123. 21103, 24489, 24133, 26381, 31119, 33145, 35079, 35206, 28149, 24343,
  5124. 25173, 27832, 20175, 29289, 39826, 20998, 21563, 22132, 22707, 24996,
  5125. 25198, 28954, 22894, 31881, 31966, 32027, 38640, [12098, 25991], 32862,
  5126. 19993, 20341, 20853, 22592, 24163, 24179, 24330, 26564, 20006, 34109,
  5127. 38281, 38491, [12150, 31859], [12212, 38913], 20731, 22721, 30294, 30887,
  5128. 21029, 30629, 34065, 31622, 20559, 22793, [12122, 29255], 31687, 32232,
  5129. 36794, 36820, 36941, 20415, 21193, 23081, 24321, 38829, 20445, 33303,
  5130. 37610, 22275, 25429, 27497, 29995, 35036, 36628, 31298, 21215, 22675,
  5131. 24917, 25098, 26286, [11935, 27597], 31807, 33769, 20515, 20472, 21253,
  5132. 21574, 22577, 22857, 23453, 23792, 23791, 23849, 24214, 25265, 25447,
  5133. 25918, [12101, 26041], 26379, 27861, 27873, 28921, 30770, 32299, 32990,
  5134. 33459, 33804, 34028, 34562, 35090, 35370, 35914, 37030, 37586, 39165,
  5135. 40179, 40300, 20047, 20129, 20621, 21078, 22346, 22952, 24125,
  5136. {f: 2, c: 24536}, 25151, 26292, 26395, 26576, 26834, 20882, 32033, 32938,
  5137. 33192, 35584, 35980, 36031, 37502, 38450, 21536, 38956, 21271, 20693,
  5138. [12056, 21340], 22696, 25778, 26420, 29287, 30566, 31302, 37350, 21187,
  5139. 27809, 27526, 22528, 24140, 22868, 26412, 32763, 20961, 30406, 25705,
  5140. 30952, 39764, [12231, 40635], 22475, 22969, 26151, 26522, 27598, 21737,
  5141. 27097, 24149, 33180, 26517, 39850, 26622, 40018, 26717, 20134, 20451,
  5142. [12060, 21448], 25273, 26411, 27819, 36804, 20397, 32365, 40639, 19975,
  5143. 24930, 28288, 28459, 34067, 21619, 26410, 39749, [11922, 24051], 31637,
  5144. 23724, 23494, 34588, 28234, 34001, 31252, 33032, 22937, 31885,
  5145. [11936, 27665], 30496, 21209, 22818, 28961, 29279, [12141, 30683], 38695,
  5146. 40289, 26891, 23167, 23064, 20901, 21517, 21629, 26126, 30431, 36855,
  5147. 37528, 40180, 23018, 29277, 28357, 20813, 26825, 32191, 32236,
  5148. [12207, 38754], 40634, 25720, 27169, 33538, 22916, 23391, [12113, 27611],
  5149. 29467, 30450, 32178, 32791, 33945, 20786, [12106, 26408], 40665,
  5150. [12140, 30446], 26466, 21247, 39173, 23588, 25147, 31870, 36016, 21839,
  5151. 24758, 32011, [12200, 38272], 21249, 20063, 20918, 22812, 29242, 32822,
  5152. 37326, 24357, [12142, 30690], 21380, 24441, 32004, 34220, 35379, 36493,
  5153. 38742, 26611, 34222, 37971, 24841, 24840, 27833, 30290, 35565, 36664,
  5154. 21807, 20305, 20778, 21191, 21451, 23461, 24189, 24736, 24962, 25558,
  5155. 26377, 26586, 28263, 28044, {f: 2, c: 29494}, 30001, 31056, 35029, 35480,
  5156. 36938, [12194, 37009], 37109, 38596, 34701, [12067, 22805], 20104, 20313,
  5157. 19982, 35465, 36671, 38928, 20653, 24188, 22934, 23481, 24248, 25562,
  5158. 25594, 25793, 26332, 26954, 27096, 27915, 28342, 29076, [12132, 29992],
  5159. 31407, [12154, 32650], 32768, 33865, 33993, 35201, 35617, 36362, 36965,
  5160. 38525, 39178, 24958, 25233, 27442, 27779, 28020, 32716, 32764, 28096,
  5161. 32645, 34746, 35064, 26469, 33713, 38972, 38647, 27931, 32097, 33853,
  5162. 37226, 20081, 21365, 23888, 27396, 28651, 34253, 34349, 35239, 21033,
  5163. 21519, 23653, 26446, 26792, 29702, 29827, 30178, 35023, 35041,
  5164. [12197, 37324], 38626, 38520, 24459, 29575, [12148, 31435], 33870, 25504,
  5165. 30053, 21129, 27969, 28316, 29705, 30041, 30827, 31890, 38534,
  5166. [12015, 31452], [12243, 40845], 20406, 24942, 26053, 34396, 20102, 20142,
  5167. 20698, 20001, 20940, 23534, 26009, 26753, 28092, 29471, 30274, 30637,
  5168. 31260, 31975, 33391, 35538, 36988, 37327, 38517, 38936, [12050, 21147],
  5169. 32209, 20523, 21400, 26519, 28107, 29136, 29747, 33256, 36650, 38563,
  5170. 40023, 40607, 29792, 22593, 28057, 32047, 39006, 20196, 20278, 20363,
  5171. 20919, 21169, 23994, 24604, 29618, 31036, 33491, 37428, 38583, 38646,
  5172. 38666, 40599, 40802, 26278, 27508, 21015, 21155, 28872, 35010, 24265,
  5173. 24651, 24976, 28451, 29001, 31806, 32244, 32879, 34030, 36899, 37676,
  5174. 21570, 39791, 27347, 28809, 36034, 36335, 38706, 21172, 23105, 24266,
  5175. 24324, 26391, 27004, 27028, 28010, 28431, 29282, 29436, 31725,
  5176. [12156, 32769], 32894, 34635, 37070, 20845, 40595, 31108, 32907, 37682,
  5177. 35542, 20525, 21644, 35441, 27498, 36036, 33031, 24785, 26528, 40434,
  5178. 20121, 20120, 39952, 35435, 34241, 34152, 26880, 28286, 30871, 33109,
  5179. 24332, 19984, 19989, 20010, 20017, [12034, 20022], 20028, [12035, 20031],
  5180. 20034, 20054, 20056, 20098, [12037, 20101], 35947, 20106, 33298, 24333,
  5181. 20110, {f: 2, c: 20126}, [12039, 20128], 20130, 20144, 20147, 20150, 20174,
  5182. 20173, 20164, 20166, 20162, 20183, 20190, 20205, 20191, 20215, 20233,
  5183. 20314, 20272, 20315, 20317, 20311, 20295, 20342, 20360, 20367, 20376,
  5184. 20347, 20329, 20336, 20369, 20335, 20358, 20374, 20760, 20436, 20447,
  5185. 20430, 20440, 20443, 20433, 20442, 20432, {f: 2, c: 20452}, 20506, 20520,
  5186. 20500, 20522, 20517, 20485, 20252, 20470, 20513, 20521, 20524, 20478,
  5187. 20463, 20497, 20486, 20547, 20551, 26371, 20565, 20560, 20552, 20570,
  5188. 20566, 20588, 20600, 20608, 20634, 20613, 20660, 20658, {f: 2, c: 20681},
  5189. 20659, 20674, 20694, 20702, 20709, 20717, 20707, 20718, 20729, 20725,
  5190. 20745, {f: 2, c: 20737}, 20758, 20757, 20756, 20762, 20769, 20794, 20791,
  5191. 20796, 20795, [12041, 20799], [11918, 20800], 20818, 20812, 20820, 20834,
  5192. 31480, {f: 2, c: 20841}, 20846, 20864, [12044, 20866], 22232, 20876, 20873,
  5193. 20879, 20881, 20883, 20885, [12045, 20886], 20900, 20902, 20898,
  5194. {f: 2, c: 20905}, [12046, 20907], 20915, {f: 2, c: 20913}, 20912, 20917,
  5195. 20925, 20933, 20937, 20955, [12047, 20960], 34389, 20969, 20973, 20976,
  5196. [12048, 20981], 20990, 20996, 21003, 21012, 21006, 21031, 21034, 21038,
  5197. 21043, 21049, 21071, 21060, {f: 2, c: 21067}, 21086, 21076, 21098, 21108,
  5198. 21097, 21107, 21119, 21117, 21133, 21140, 21138, 21105, 21128, 21137,
  5199. 36776, 36775, {f: 2, c: 21164}, 21180, 21173, 21185, 21197, 21207, 21214,
  5200. 21219, 21222, 39149, 21216, 21235, 21237, 21240, [12051, 21241], 21254,
  5201. 21256, 30008, 21261, 21264, 21263, [12052, 21269], [12053, 21274], 21283,
  5202. 21295, 21297, 21299, [12054, 21304], 21312, 21318, 21317, 19991, 21321,
  5203. 21325, 20950, 21342, [12057, 21353], 21358, 22808, 21371, 21367,
  5204. [12058, 21378], 21398, 21408, 21414, 21413, 21422, 21424, [12059, 21430],
  5205. 21443, 31762, 38617, 21471, 26364, 29166, 21486, 21480, 21485, 21498,
  5206. 21505, 21565, 21568, {f: 2, c: 21548}, 21564, 21550, 21558, 21545, 21533,
  5207. 21582, 21647, 21621, 21646, 21599, 21617, 21623, 21616, 21650, 21627,
  5208. 21632, 21622, 21636, 21648, 21638, 21703, 21666, 21688, 21669, 21676,
  5209. 21700, 21704, 21672, 21675, 21698, 21668, 21694, 21692, 21720,
  5210. {f: 2, c: 21733}, 21775, 21780, 21757, 21742, 21741, 21754, 21730, 21817,
  5211. 21824, 21859, 21836, 21806, 21852, 21829, {f: 2, c: 21846}, 21816, 21811,
  5212. 21853, 21913, 21888, 21679, 21898, 21919, 21883, 21886, 21912, 21918,
  5213. 21934, 21884, 21891, 21929, 21895, 21928, 21978, 21957, 21983, 21956,
  5214. 21980, 21988, 21972, 22036, 22007, 22038, 22014, 22013, 22043, 22009,
  5215. 22094, 22096, 29151, 22068, 22070, 22066, 22072, 22123, 22116, 22063,
  5216. 22124, 22122, 22150, 22144, 22154, 22176, 22164, 22159, 22181, 22190,
  5217. 22198, 22196, 22210, 22204, 22209, 22211, 22208, 22216, 22222, 22225,
  5218. 22227, [12062, 22231], 22254, 22265, 22272, 22271, 22276, 22281, 22280,
  5219. 22283, 22285, 22291, 22296, 22294, 21959, 22300, 22310, {f: 2, c: 22327},
  5220. 22350, 22331, 22336, 22351, 22377, 22464, 22408, 22369, 22399, 22409,
  5221. 22419, 22432, 22451, 22436, 22442, 22448, 22467, 22470, 22484,
  5222. {f: 2, c: 22482}, 22538, 22486, 22499, 22539, 22553, 22557, 22642, 22561,
  5223. 22626, 22603, 22640, 27584, 22610, 22589, 22649, 22661, 22713, 22687,
  5224. 22699, 22714, 22750, 22715, 22712, 22702, 22725, 22739, 22737, 22743,
  5225. 22745, 22744, 22757, 22748, 22756, 22751, 22767, 22778, 22777,
  5226. {f: 3, c: 22779}, [12065, 22786], [12066, 22794], 22800, 22811, 26790,
  5227. 22821, {f: 2, c: 22828}, 22834, 22840, 22846, 31442, 22869, 22864, 22862,
  5228. 22874, 22872, 22882, 22880, 22887, 22892, 22889, 22904, 22913, 22941,
  5229. 20318, 20395, 22947, 22962, 22982, 23016, 23004, 22925, {f: 2, c: 23001},
  5230. 23077, 23071, 23057, 23068, 23049, 23066, 23104, 23148, 23113,
  5231. {f: 2, c: 23093}, 23138, 23146, 23194, 23228, 23230, 23243, 23234, 23229,
  5232. 23267, 23255, 23270, 23273, 23254, {f: 2, c: 23290}, 23308, 23307, 23318,
  5233. 23346, 23248, 23338, 23350, 23358, 23363, 23365, 23360, 23377, 23381,
  5234. {f: 2, c: 23386}, 23397, 23401, 23408, 23411, 23413, 23416, 25992, 23418,
  5235. [12071, 23424], 23427, 23462, 23480, 23491, 23495, 23497, 23508, 23504,
  5236. 23524, 23526, 23522, 23518, 23525, 23531, 23536, 23542, 23539, 23557,
  5237. {f: 2, c: 23559}, 23565, 23571, 23584, [11920, 12074, 23586], 23592,
  5238. [12075, 23608], 23609, 23617, 23622, 23630, 23635, 23632, 23631, 23409,
  5239. 23660, [12076, 23662], 20066, 23670, 23673, 23692, 23697, 23700, 22939,
  5240. 23723, 23739, 23734, 23740, 23735, 23749, 23742, 23751, 23769, 23785,
  5241. 23805, 23802, 23789, 23948, 23786, 23819, 23829, 23831, 23900, 23839,
  5242. 23835, 23825, 23828, 23842, 23834, 23833, 23832, 23884, 23890, 23886,
  5243. 23883, 23916, 23923, 23926, 23943, 23940, 23938, 23970, 23965, 23980,
  5244. 23982, 23997, 23952, 23991, 23996, 24009, 24013, 24019, 24018, 24022,
  5245. [12078, 24027], 24043, 24050, 24053, 24075, 24090, 24089, 24081, 24091,
  5246. {f: 2, c: 24118}, 24132, 24131, 24128, 24142, 24151, 24148, 24159, 24162,
  5247. 24164, 24135, {f: 2, c: 24181}, [11923, 12083, 24186], 40636,
  5248. [12084, 24191], 24224, {f: 2, c: 24257}, 24264, 24272, 24271, 24278, 24291,
  5249. 24285, {f: 2, c: 24282}, 24290, 24289, {f: 2, c: 24296}, 24300, 24305,
  5250. 24307, 24304, [12085, 24308], 24312, [12086, 24318], 24323, 24329, 24413,
  5251. 24412, [12087, 24331], 24337, 24342, 24361, 24365, 24376, 24385, 24392,
  5252. 24396, 24398, 24367, [11924, 24401], {f: 2, c: 24406}, 24409,
  5253. [12090, 24417], 24429, [12091, 24435], 24439, 24451, 24450, 24447, 24458,
  5254. 24456, 24465, 24455, 24478, 24473, 24472, 24480, 24488, 24493, 24508,
  5255. 24534, 24571, 24548, 24568, 24561, 24541, 24755, 24575, 24609, 24672,
  5256. 24601, 24592, 24617, 24590, 24625, 24603, 24597, 24619, 24614, 24591,
  5257. 24634, 24666, 24641, 24682, 24695, 24671, 24650, 24646, 24653, 24675,
  5258. 24643, 24676, 24642, 24684, 24683, 24665, 24705, 24717, 24807, 24707,
  5259. 24730, 24708, 24731, {f: 2, c: 24726}, 24722, 24743, 24715, 24801, 24760,
  5260. 24800, 24787, 24756, 24560, 24765, 24774, 24757, 24792, 24909, 24853,
  5261. 24838, {f: 2, c: 24822}, 24832, 24820, 24826, 24835, 24865, 24827, 24817,
  5262. {f: 2, c: 24845}, 24903, 24894, 24872, 24871, 24906, 24895, 24892, 24876,
  5263. 24884, 24893, 24898, 24900, 24947, 24951, {f: 3, c: 24920}, 24939, 24948,
  5264. 24943, 24933, 24945, 24927, 24925, 24915, 24949, 24985, 24982, 24967,
  5265. 25004, 24980, 24986, 24970, 24977, 25003, 25006, 25036, 25034, 25033,
  5266. 25079, 25032, 25027, 25030, 25018, 25035, 32633, 25037, 25062, 25059,
  5267. 25078, 25082, 25076, 25087, 25085, 25084, 25086, 25088, [12093, 25096],
  5268. 25097, 25101, 25100, 25108, 25115, 25118, 25121, 25130, 25134, 25136,
  5269. {f: 2, c: 25138}, 25153, 25166, 25182, 25187, 25179, 25184, 25192, 25212,
  5270. 25218, 25225, 25214, {f: 2, c: 25234}, 25238, 25300, 25219, 25236, 25303,
  5271. 25297, 25275, 25295, 25343, 25286, 25812, 25288, 25308, 25292, 25290,
  5272. 25282, 25287, 25243, 25289, 25356, 25326, 25329, 25383, 25346, 25352,
  5273. 25327, 25333, 25424, 25406, 25421, 25628, 25423, 25494, 25486, 25472,
  5274. 25515, 25462, 25507, 25487, 25481, 25503, 25525, 25451, 25449, 25534,
  5275. 25577, 25536, 25542, 25571, 25545, 25554, 25590, 25540, 25622, 25652,
  5276. 25606, 25619, 25638, 25654, 25885, 25623, 25640, 25615, 25703, 25711,
  5277. 25718, 25678, 25898, 25749, 25747, 25765, 25769, 25736, 25788, 25818,
  5278. 25810, 25797, 25799, 25787, 25816, 25794, 25841, 25831, 33289,
  5279. {f: 2, c: 25824}, 25260, 25827, 25839, 25900, 25846, 25844, 25842, 25850,
  5280. 25856, 25853, 25880, 25884, 25861, 25892, 25891, 25899, [12097, 25908],
  5281. [11929, 25909], 25911, 25910, 25912, 30027, 25928, 25942, 25941, 25933,
  5282. 25944, 25950, 25949, 25970, 25976, {f: 2, c: 25986}, 35722, 26011, 26015,
  5283. 26027, 26039, 26051, 26054, 26049, 26052, 26060, 26066, 26075, 26073,
  5284. [12102, 26080], [11931, 26081], 26097, 26482, 26122, 26115, 26107, 26483,
  5285. {f: 2, c: 26165}, 26164, 26140, 26191, 26180, 26185, 26177, 26206, 26205,
  5286. 26212, {f: 2, c: 26215}, 26207, 26210, 26224, 26243, 26248, 26254, 26249,
  5287. 26244, 26264, 26269, 26305, 26297, 26313, 26302, 26300, 26308, 26296,
  5288. 26326, 26330, 26336, 26175, 26342, 26345, [12104, 26352], 26357, 26359,
  5289. 26383, 26390, 26398, {f: 2, c: 26406}, 38712, 26414, 26431, 26422, 26433,
  5290. 26424, 26423, 26438, 26462, 26464, 26457, {f: 2, c: 26467}, 26505, 26480,
  5291. 26537, 26492, 26474, 26508, 26507, 26534, 26529, 26501, 26551, 26607,
  5292. 26548, 26604, 26547, 26601, 26552, 26596, 26590, 26589, 26594, 26606,
  5293. 26553, 26574, 26566, 26599, 27292, 26654, 26694, 26665, 26688, 26701,
  5294. 26674, 26702, 26803, 26667, 26713, 26723, 26743, 26751, 26783, 26767,
  5295. 26797, 26772, 26781, 26779, 26755, 27310, 26809, 26740, 26805, 26784,
  5296. 26810, 26895, 26765, 26750, 26881, 26826, 26888, 26840, 26914, 26918,
  5297. 26849, 26892, 26829, 26836, 26855, 26837, 26934, 26898, 26884, 26839,
  5298. 26851, 26917, 26873, 26848, 26863, 26920, 26922, 26906, 26915, 26913,
  5299. 26822, 27001, 26999, 26972, 27000, 26987, 26964, 27006, 26990, 26937,
  5300. 26996, 26941, 26969, 26928, 26977, 26974, 26973, 27009, 26986, 27058,
  5301. 27054, 27088, 27071, 27073, 27091, 27070, 27086, 23528, 27082, 27101,
  5302. 27067, 27075, 27047, 27182, 27025, 27040, 27036, 27029, 27060, 27102,
  5303. 27112, 27138, 27163, 27135, 27402, 27129, 27122, 27111, 27141, 27057,
  5304. 27166, 27117, 27156, 27115, 27146, 27154, 27329, 27171, 27155, 27204,
  5305. 27148, 27250, 27190, 27256, 27207, 27234, 27225, 27238, 27208, 27192,
  5306. 27170, 27280, 27277, 27296, 27268, {f: 2, c: 27298}, 27287, 34327, 27323,
  5307. 27331, 27330, 27320, 27315, 27308, 27358, 27345, 27359, 27306, 27354,
  5308. 27370, 27387, 27397, 34326, 27386, 27410, 27414, 39729, 27423, 27448,
  5309. 27447, 30428, 27449, 39150, 27463, 27459, 27465, 27472, 27481, 27476,
  5310. 27483, 27487, 27489, 27512, [12109, 27513], {f: 2, c: 27519}, 27524, 27523,
  5311. 27533, 27544, 27541, 27550, 27556, {f: 2, c: 27562}, 27567, 27570, 27569,
  5312. [12110, 27571], 27575, 27580, 27590, [12111, 27595], 27603, 27615, 27628,
  5313. 27627, 27635, 27631, 40638, 27656, 27667, [12115, 27668], 27675, 27684,
  5314. 27683, 27742, 27733, 27746, 27754, 27778, 27789, 27802, 27777, 27803,
  5315. 27774, 27752, 27763, 27794, 27792, 27844, 27889, 27859, 27837, 27863,
  5316. 27845, 27869, 27822, 27825, 27838, 27834, 27867, 27887, 27865, 27882,
  5317. 27935, 34893, 27958, 27947, 27965, 27960, 27929, 27957, 27955, 27922,
  5318. 27916, 28003, 28051, 28004, 27994, 28025, 27993, 28046, 28053, 28644,
  5319. 28037, 28153, 28181, 28170, 28085, 28103, 28134, 28088, 28102, 28140,
  5320. 28126, 28108, 28136, 28114, 28101, 28154, 28121, 28132, 28117, 28138,
  5321. 28142, 28205, 28270, 28206, 28185, 28274, 28255, 28222, 28195, 28267,
  5322. 28203, 28278, 28237, 28191, 28227, 28218, 28238, 28196, 28415, 28189,
  5323. 28216, 28290, 28330, 28312, 28361, 28343, 28371, 28349, 28335, 28356,
  5324. 28338, {f: 2, c: 28372}, 28303, 28325, 28354, 28319, 28481, 28433, 28748,
  5325. 28396, 28408, 28414, 28479, 28402, 28465, 28399, 28466, 28364, 28478,
  5326. 28435, 28407, 28550, 28538, 28536, 28545, 28544, 28527, 28507, 28659,
  5327. 28525, 28546, 28540, 28504, 28558, 28561, 28610, 28518, 28595, 28579,
  5328. 28577, 28580, 28601, 28614, 28586, 28639, 28629, 28652, 28628, 28632,
  5329. 28657, 28654, 28635, 28681, 28683, 28666, 28689, 28673, 28687, 28670,
  5330. 28699, 28698, 28532, 28701, 28696, 28703, 28720, 28734, 28722, 28753,
  5331. 28771, 28825, 28818, 28847, 28913, 28844, 28856, 28851, 28846, 28895,
  5332. 28875, 28893, 28889, 28937, 28925, 28956, 28953, 29029, 29013, 29064,
  5333. 29030, 29026, 29004, 29014, 29036, 29071, 29179, 29060, 29077, 29096,
  5334. 29100, 29143, 29113, 29118, 29138, 29129, 29140, 29134, 29152, 29164,
  5335. 29159, 29173, 29180, 29177, 29183, 29197, 29200, 29211, 29224, 29229,
  5336. 29228, 29232, 29234, [12120, 29243], 29244, [12121, 29247], 29248, 29254,
  5337. 29259, 29272, 29300, 29310, 29314, 29313, 29319, 29330, 29334, 29346,
  5338. 29351, 29369, 29362, 29379, 29382, 29380, 29390, 29394, 29410,
  5339. {f: 2, c: 29408}, 29433, 29431, 20495, 29463, 29450, 29468, 29462, 29469,
  5340. 29492, 29487, 29481, 29477, 29502, {f: 2, c: 29518}, 40664, 29527, 29546,
  5341. 29544, 29552, 29560, 29557, 29563, 29562, 29640, 29619, 29646, 29627,
  5342. 29632, 29669, 29678, 29662, 29858, 29701, 29807, 29733, 29688, 29746,
  5343. 29754, 29781, 29759, 29791, 29785, 29761, 29788, 29801, 29808, 29795,
  5344. 29802, 29814, 29822, 29835, 29854, 29863, 29898, 29903, 29908, 29681,
  5345. 29920, 29923, 29927, 29929, 29934, 29938, {f: 2, c: 29936}, 29944, 29943,
  5346. 29956, 29955, 29957, 29964, 29966, 29965, 29973, 29971, 29982, 29990,
  5347. 29996, 30012, 30020, 30029, 30026, 30025, 30043, 30022, 30042, 30057,
  5348. 30052, 30055, 30059, 30061, 30072, 30070, {f: 2, c: 30086}, 30068, 30090,
  5349. 30089, 30082, 30100, 30106, 30109, 30117, 30115, 30146, 30131, 30147,
  5350. 30133, 30141, 30136, 30140, 30129, 30157, 30154, 30162, 30169, 30179,
  5351. 30174, {f: 2, c: 30206}, 30204, 30209, 30192, 30202, {f: 2, c: 30194},
  5352. 30219, 30221, 30217, 30239, 30247, {f: 3, c: 30240}, 30244, 30260, 30256,
  5353. 30267, {f: 2, c: 30279}, 30278, 30300, 30296, {f: 2, c: 30305},
  5354. {f: 3, c: 30312}, 30311, 30316, 30320, 30322, [12136, 30326], 30328, 30332,
  5355. 30336, 30339, 30344, 30347, 30350, 30358, 30355, {f: 2, c: 30361}, 30384,
  5356. 30388, {f: 3, c: 30392}, 30402, 30413, 30422, 30418, 30430, 30433, 30437,
  5357. 30439, 30442, 34351, 30459, 30472, 30471, 30468, 30505, 30500, 30494,
  5358. {f: 2, c: 30501}, 30491, {f: 2, c: 30519}, 30535, 30554, 30568, 30571,
  5359. 30555, 30565, 30591, 30590, 30585, 30606, 30603, 30609, 30624, 30622,
  5360. 30640, 30646, 30649, 30655, {f: 2, c: 30652}, 30651, 30663, 30669, 30679,
  5361. 30682, 30684, 30691, 30702, 30716, 30732, 30738, 31014, 30752, 31018,
  5362. 30789, 30862, 30836, 30854, 30844, 30874, 30860, 30883, 30901, 30890,
  5363. 30895, 30929, 30918, 30923, 30932, 30910, 30908, 30917, 30922, 30956,
  5364. 30951, 30938, 30973, 30964, 30983, 30994, 30993, 31001, 31020, 31019,
  5365. 31040, 31072, 31063, 31071, 31066, 31061, 31059, 31098, 31103, 31114,
  5366. 31133, 31143, 40779, 31146, 31150, 31155, {f: 2, c: 31161}, 31177, 31189,
  5367. 31207, 31212, 31201, 31203, 31240, 31245, {f: 2, c: 31256}, 31264, 31263,
  5368. 31104, 31281, 31291, 31294, 31287, 31299, 31319, 31305, {f: 2, c: 31329},
  5369. 31337, 40861, 31344, 31353, 31357, 31368, 31383, 31381, 31384, 31382,
  5370. 31401, 31432, 31408, 31414, 31429, 31428, 31423, 36995, 31431, 31434,
  5371. 31437, 31439, 31445, 31443, {f: 2, c: 31449}, 31453, {f: 2, c: 31457},
  5372. 31462, 31469, 31472, 31490, 31503, 31498, 31494, 31539, {f: 2, c: 31512},
  5373. 31518, 31541, 31528, 31542, 31568, 31610, 31492, 31565, 31499, 31564,
  5374. 31557, 31605, 31589, 31604, 31591, {f: 2, c: 31600}, 31596, 31598, 31645,
  5375. 31640, 31647, 31629, 31644, 31642, 31627, 31634, 31631, 31581, 31641,
  5376. 31691, 31681, 31692, 31695, 31668, 31686, 31709, 31721, 31761, 31764,
  5377. 31718, 31717, 31840, 31744, 31751, 31763, 31731, 31735, 31767, 31757,
  5378. 31734, 31779, 31783, 31786, 31775, 31799, 31787, 31805, 31820, 31811,
  5379. 31828, 31823, 31808, 31824, 31832, 31839, 31844, 31830, 31845, 31852,
  5380. 31861, 31875, 31888, 31908, 31917, 31906, 31915, 31905, 31912, 31923,
  5381. 31922, 31921, 31918, 31929, 31933, 31936, 31941, 31938, 31960, 31954,
  5382. 31964, 31970, 39739, 31983, 31986, 31988, 31990, 31994, 32006, 32002,
  5383. 32028, 32021, 32010, 32069, 32075, 32046, 32050, 32063, 32053, 32070,
  5384. 32115, 32086, 32078, 32114, 32104, 32110, 32079, 32099, 32147, 32137,
  5385. 32091, 32143, 32125, 32155, 32186, 32174, 32163, 32181, 32199, 32189,
  5386. 32171, 32317, 32162, 32175, 32220, 32184, 32159, 32176, 32216, 32221,
  5387. 32228, 32222, 32251, 32242, 32225, 32261, 32266, 32291, 32289, 32274,
  5388. 32305, 32287, 32265, 32267, 32290, 32326, 32358, 32315, 32309, 32313,
  5389. 32323, 32311, 32306, 32314, 32359, 32349, 32342, 32350, {f: 2, c: 32345},
  5390. 32377, 32362, 32361, 32380, 32379, 32387, 32213, 32381, 36782, 32383,
  5391. {f: 2, c: 32392}, 32396, 32402, 32400, {f: 2, c: 32403}, 32406, 32398,
  5392. {f: 2, c: 32411}, 32568, 32570, 32581, {f: 3, c: 32588}, 32592,
  5393. [12153, 32593], 32597, 32596, 32600, {f: 2, c: 32607}, {f: 2, c: 32616},
  5394. 32615, 32632, 32642, 32646, 32643, 32648, 32647, 32652, 32660, 32670,
  5395. 32669, 32666, 32675, 32687, 32690, 32697, 32686, 32694, 32696, 35697,
  5396. {f: 2, c: 32709}, 32714, 32725, 32724, 32737, 32742, 32745, 32755, 32761,
  5397. 39132, 32774, 32772, 32779, [12158, 32786], {f: 2, c: 32792}, 32796, 32801,
  5398. 32808, 32831, 32827, 32842, 32838, 32850, 32856, 32858, 32863, 32866,
  5399. 32872, 32883, 32882, 32880, 32886, 32889, 32893, [12160, 32895], 32900,
  5400. 32902, 32901, 32923, 32915, 32922, 32941, 20880, 32940, 32987, 32997,
  5401. 32985, 32989, 32964, 32986, 32982, 33033, 33007, 33009, 33051, 33065,
  5402. 33059, 33071, 33099, 38539, 33094, 33086, 33107, 33105, 33020, 33137,
  5403. 33134, {f: 2, c: 33125}, 33140, 33155, 33160, 33162, 33152, 33154, 33184,
  5404. 33173, 33188, 33187, 33119, 33171, 33193, 33200, 33205, 33214, 33208,
  5405. 33213, 33216, 33218, 33210, 33225, 33229, 33233, 33241, 33240, 33224,
  5406. 33242, {f: 2, c: 33247}, 33255, {f: 2, c: 33274}, 33278, {f: 2, c: 33281},
  5407. 33285, 33287, 33290, 33293, 33296, 33302, 33321, 33323, 33336, 33331,
  5408. 33344, 33369, 33368, 33373, 33370, 33375, 33380, 33378, 33384,
  5409. {f: 2, c: 33386}, 33326, 33393, 33399, [12171, 33400], 33406, 33421, 33426,
  5410. 33451, 33439, 33467, 33452, 33505, 33507, 33503, 33490, 33524, 33523,
  5411. 33530, 33683, 33539, 33531, 33529, 33502, 33542, 33500, 33545, 33497,
  5412. 33589, 33588, 33558, 33586, 33585, 33600, 33593, 33616, 33605, 33583,
  5413. 33579, {f: 2, c: 33559}, 33669, 33690, 33706, 33695, 33698, 33686, 33571,
  5414. 33678, 33671, 33674, 33660, 33717, 33651, 33653, 33696, 33673, 33704,
  5415. 33780, 33811, 33771, 33742, 33789, 33795, 33752, 33803, 33729, 33783,
  5416. 33799, 33760, 33778, 33805, 33826, 33824, 33725, 33848, 34054, 33787,
  5417. 33901, 33834, 33852, 34138, 33924, 33911, 33899, 33965, 33902, 33922,
  5418. 33897, 33862, 33836, 33903, 33913, 33845, 33994, 33890, 33977, 33983,
  5419. 33951, 34009, 33997, 33979, 34010, 34000, 33985, 33990, 34006, 33953,
  5420. 34081, 34047, 34036, {f: 2, c: 34071}, 34092, 34079, 34069, 34068, 34044,
  5421. 34112, 34147, 34136, 34120, 34113, 34306, 34123, 34133, 34176, 34212,
  5422. 34184, 34193, 34186, 34216, 34157, 34196, 34203, 34282, 34183, 34204,
  5423. 34167, 34174, 34192, 34249, 34234, 34255, 34233, 34256, 34261, 34269,
  5424. 34277, 34268, 34297, 34314, 34323, 34315, 34302, 34298, 34310, 34338,
  5425. 34330, 34352, 34367, [12172, 34381], 20053, 34388, 34399, 34407, 34417,
  5426. 34451, 34467, {f: 2, c: 34473}, {f: 2, c: 34443}, 34486, 34479, 34500,
  5427. 34502, 34480, 34505, 34851, 34475, 34516, 34526, 34537, 34540, 34527,
  5428. 34523, 34543, 34578, 34566, 34568, 34560, 34563, 34555, 34577, 34569,
  5429. 34573, 34553, 34570, 34612, 34623, 34615, 34619, 34597, 34601, 34586,
  5430. 34656, 34655, 34680, 34636, 34638, 34676, 34647, 34664, 34670, 34649,
  5431. 34643, 34659, 34666, 34821, 34722, 34719, 34690, 34735, 34763, 34749,
  5432. 34752, 34768, 38614, 34731, 34756, 34739, 34759, 34758, 34747, 34799,
  5433. 34802, 34784, 34831, 34829, 34814, {f: 2, c: 34806}, 34830, 34770, 34833,
  5434. 34838, 34837, 34850, 34849, 34865, 34870, 34873, 34855, 34875, 34884,
  5435. 34882, 34898, 34905, 34910, 34914, 34923, 34945, 34942, 34974, 34933,
  5436. 34941, 34997, 34930, 34946, 34967, 34962, 34990, 34969, 34978, 34957,
  5437. 34980, 34992, 35007, 34993, {f: 2, c: 35011}, 35028, {f: 2, c: 35032},
  5438. 35037, 35065, 35074, 35068, 35060, 35048, 35058, 35076, 35084, 35082,
  5439. 35091, 35139, 35102, 35109, {f: 2, c: 35114}, 35137, 35140, 35131, 35126,
  5440. 35128, 35148, 35101, 35168, 35166, 35174, 35172, 35181, 35178, 35183,
  5441. 35188, 35191, [12177, 35198], 35203, 35208, 35210, 35219, 35224, 35233,
  5442. 35241, 35238, 35244, 35247, 35250, 35258, 35261, {f: 2, c: 35263}, 35290,
  5443. {f: 2, c: 35292}, 35303, 35316, 35320, 35331, 35350, 35344, 35340, 35355,
  5444. 35357, 35365, 35382, 35393, 35419, 35410, 35398, 35400, 35452, 35437,
  5445. 35436, 35426, 35461, 35458, 35460, 35496, 35489, 35473, {f: 2, c: 35493},
  5446. 35482, 35491, 35524, 35533, 35522, 35546, 35563, 35571, 35559, 35556,
  5447. 35569, 35604, 35552, 35554, 35575, 35550, 35547, 35596, 35591, 35610,
  5448. 35553, 35606, 35600, 35607, 35616, 35635, 38827, 35622, 35627, 35646,
  5449. 35624, 35649, 35660, 35663, 35662, 35657, 35670, 35675, 35674, 35691,
  5450. 35679, 35692, 35695, 35700, 35709, 35712, 35724, 35726, {f: 2, c: 35730},
  5451. 35734, {f: 2, c: 35737}, 35898, 35905, 35903, 35912, 35916, 35918, 35920,
  5452. [12183, 35925], 35938, 35948, [12184, 35960], 35962, 35970, 35977, 35973,
  5453. 35978, {f: 2, c: 35981}, 35988, 35964, 35992, 25117, 36013, 36010, 36029,
  5454. {f: 2, c: 36018}, 36014, 36022, 36040, 36033, 36068, 36067, 36058, 36093,
  5455. {f: 2, c: 36090}, {f: 2, c: 36100}, 36106, 36103, 36111, 36109, 36112,
  5456. 40782, 36115, 36045, 36116, 36118, 36199, 36205, 36209, 36211, 36225,
  5457. 36249, 36290, 36286, 36282, 36303, 36314, 36310, 36300, 36315, 36299,
  5458. {f: 2, c: 36330}, 36319, 36323, 36348, {f: 2, c: 36360}, 36351,
  5459. {f: 2, c: 36381}, 36368, 36383, 36418, 36405, 36400, 36404, 36426, 36423,
  5460. 36425, 36428, 36432, 36424, 36441, 36452, 36448, 36394, 36451, 36437,
  5461. 36470, 36466, 36476, 36481, 36487, 36485, 36484, 36491, 36490, 36499,
  5462. 36497, 36500, 36505, 36522, 36513, 36524, 36528, 36550, 36529, 36542,
  5463. 36549, 36552, 36555, 36571, 36579, 36604, 36603, 36587, 36606, 36618,
  5464. 36613, 36629, 36626, 36633, 36627, 36636, 36639, 36635, 36620, 36646,
  5465. 36659, 36667, 36665, 36677, 36674, 36670, 36684, 36681, 36678, 36686,
  5466. 36695, 36700, {f: 3, c: 36706}, 36764, 36767, 36771, 36781, 36783, 36791,
  5467. 36826, 36837, 36834, 36842, 36847, 36999, 36852, 36869, {f: 2, c: 36857},
  5468. 36881, 36885, 36897, 36877, 36894, 36886, 36875, 36903, 36918, 36917,
  5469. 36921, 36856, {f: 4, c: 36943}, 36878, 36937, 36926, 36950, 36952, 36958,
  5470. 36968, 36975, 36982, 38568, 36978, 36994, 36989, 36993, 36992, 37002,
  5471. 37001, 37007, 37032, 37039, 37041, 37045, 37090, 37092, 25160, 37083,
  5472. 37122, 37138, 37145, 37170, 37168, 37194, 37206, 37208, 37219, 37221,
  5473. 37225, 37235, 37234, 37259, 37257, 37250, 37282, 37291, 37295, 37290,
  5474. 37301, 37300, 37306, {f: 2, c: 37312}, 37321, 37323, 37328, 37334, 37343,
  5475. 37345, 37339, 37372, {f: 2, c: 37365}, 37406, 37375, 37396, 37420, 37397,
  5476. 37393, 37470, 37463, 37445, 37449, 37476, 37448, 37525, 37439, 37451,
  5477. 37456, 37532, 37526, 37523, 37531, 37466, 37583, 37561, 37559, 37609,
  5478. 37647, 37626, 37700, 37678, 37657, 37666, 37658, 37667, 37690, 37685,
  5479. 37691, 37724, 37728, 37756, 37742, 37718, 37808, {f: 2, c: 37804}, 37780,
  5480. 37817, {f: 2, c: 37846}, 37864, 37861, 37848, 37827, 37853, 37840, 37832,
  5481. 37860, 37914, 37908, 37907, 37891, 37895, 37904, 37942, 37931, 37941,
  5482. 37921, 37946, 37953, 37970, 37956, 37979, 37984, 37986, 37982, 37994,
  5483. 37417, 38000, 38005, 38007, 38013, 37978, 38012, 38014, 38017, 38015,
  5484. 38274, 38279, 38282, 38292, 38294, {f: 2, c: 38296}, 38304, 38312, 38311,
  5485. 38317, 38332, 38331, 38329, 38334, 38346, 28662, 38339, 38349, 38348,
  5486. 38357, 38356, 38358, 38364, 38369, 38373, 38370, 38433, 38440,
  5487. {f: 2, c: 38446}, 38466, 38476, 38479, 38475, 38519, 38492, 38494, 38493,
  5488. 38495, 38502, 38514, 38508, 38541, 38552, 38549, 38551, 38570, 38567,
  5489. {f: 2, c: 38577}, 38576, 38580, [12202, 38582], 38584, [12203, 38585],
  5490. 38606, 38603, 38601, 38605, 35149, 38620, 38669, 38613, 38649, 38660,
  5491. 38662, 38664, 38675, 38670, 38673, 38671, 38678, 38681, 38692, 38698,
  5492. 38704, 38713, {f: 2, c: 38717}, 38724, 38726, 38728, 38722, 38729, 38748,
  5493. 38752, 38756, 38758, 38760, 21202, 38763, 38769, 38777, 38789, 38780,
  5494. 38785, 38778, 38790, 38795, {f: 2, c: 38799}, 38812, 38824, 38822, 38819,
  5495. {f: 2, c: 38835}, 38851, 38854, 38856, [12209, 38859], 38876,
  5496. [12210, 38893], 40783, 38898, 31455, 38902, 38901, 38927, 38924, 38968,
  5497. 38948, 38945, 38967, 38973, 38982, 38991, 38987, 39019, {f: 3, c: 39023},
  5498. 39028, 39027, 39082, 39087, 39089, 39094, 39108, 39107, 39110, 39145,
  5499. 39147, 39171, 39177, 39186, 39188, 39192, 39201, {f: 2, c: 39197}, 39204,
  5500. 39200, 39212, 39214, {f: 2, c: 39229}, 39234, 39241, 39237, 39248, 39243,
  5501. {f: 2, c: 39249}, 39244, 39253, {f: 2, c: 39319}, 39333, {f: 2, c: 39341},
  5502. 39356, 39391, 39387, 39389, 39384, 39377, {f: 2, c: 39405},
  5503. {f: 2, c: 39409}, 39419, 39416, 39425, 39439, 39429, 39394, 39449, 39467,
  5504. 39479, 39493, 39490, 39488, 39491, 39486, 39509, 39501, 39515, 39511,
  5505. 39519, 39522, 39525, 39524, 39529, 39531, 39530, 39597, 39600, 39612,
  5506. 39616, 39631, 39633, {f: 2, c: 39635}, 39646, [12221, 39647],
  5507. {f: 2, c: 39650}, 39654, 39663, 39659, 39662, 39668, 39665, 39671, 39675,
  5508. 39686, 39704, 39706, 39711, {f: 2, c: 39714}, [12222, 39717],
  5509. {f: 4, c: 39719}, 39726, [12223, 39727], [12224, 39730], 39748, 39747,
  5510. 39759, {f: 2, c: 39757}, 39761, 39768, 39796, 39827, 39811, 39825,
  5511. {f: 2, c: 39830}, {f: 2, c: 39839}, 39848, 39860, 39872, 39882, 39865,
  5512. 39878, 39887, {f: 2, c: 39889}, 39907, 39906, 39908, 39892, 39905, 39994,
  5513. 39922, 39921, 39920, 39957, 39956, 39945, 39955, 39948, 39942, 39944,
  5514. 39954, 39946, 39940, 39982, 39963, 39973, 39972, 39969, 39984, 40007,
  5515. 39986, 40006, 39998, 40026, 40032, 40039, 40054, 40056, 40167, 40172,
  5516. 40176, 40201, 40200, 40171, 40195, 40198, 40234, 40230, 40367, 40227,
  5517. 40223, 40260, 40213, 40210, 40257, 40255, 40254, 40262, 40264,
  5518. {f: 2, c: 40285}, 40292, 40273, 40272, 40281, 40306, 40329, 40327, 40363,
  5519. 40303, 40314, 40346, 40356, 40361, 40370, 40388, 40385, 40379, 40376,
  5520. 40378, 40390, 40399, 40386, 40409, 40403, 40440, 40422, 40429, 40431,
  5521. 40445, {f: 2, c: 40474}, 40478, [12228, 40565], 40569, 40573, 40577, 40584,
  5522. {f: 2, c: 40587}, 40594, 40597, 40593, 40605, [12230, 40613], 40617, 40632,
  5523. 40618, 40621, 38753, 40652, {f: 3, c: 40654}, 40660, 40668, 40670, 40669,
  5524. 40672, 40677, 40680, 40687, 40692, {f: 2, c: 40694}, [12235, 40697],
  5525. {f: 2, c: 40699}, [12236, 40701], {f: 2, c: 40711}, 30391, 40725, 40737,
  5526. 40748, 40766, [12241, 40778], [12242, 40786], 40788, 40803,
  5527. {f: 3, c: 40799}, {f: 2, c: 40806}, 40812, 40810, 40823, 40818, 40822,
  5528. 40853, [12244, 40860], [12245, 40864], 22575, 27079, 36953, 29796, 0,
  5529. {f: 76, c: 9472}, {f: 20, c: 9312}, {f: 10, c: 8544}, 13129, 13076, 0,
  5530. 13133, 0, 13095, 0, 13110, 13137, 0, 13069, 13094, 0, 13099, 13130, 0,
  5531. {f: 3, c: 13212}, {f: 2, c: 13198}, 13252, 13217, 12317, 12319, 8470,
  5532. 13261, 0, {f: 5, c: 12964}, {f: 2, c: 12849}, 12857, 13182, 13181, 13180,
  5533. 8750, 8721, {s: 3}, 8735, 8895, 0, 0, 21854, {s: 7}, 167133, 0, 0, 28976,
  5534. 0, 40407, {s: 4}, 64054, 0, 0, 22169, 15694, {s: 4}, 20448, 0, 0, 36544, 0,
  5535. 194797, {s: 4}, 153716, 32363, 33606, 167670, {s: 3}, 40572, 0, 0, 26171,
  5536. 0, 40628, {s: 4}, 26629, {s: 5}, 23650, 0, 194780, 0, 32353, 0, 0, 64070,
  5537. {s: 5}, 34083, 37292, {s: 7}, 34796, {s: 8}, 25620, 0, 0, 39506, {s: 4},
  5538. 64074, 0, 194692, {s: 4}, 31774, {s: 6}, 64016, 25681, 0, 0, 63980, 22625,
  5539. 39002, 0, 194679, {s: 3}, 31153, 0, 28678, {s: 9}, 22218, {s: 3}, 21085, 0,
  5540. 28497, 37297, {s: 10}, 64106, {s: 6}, 38960, 0, 40629, {s: 9}, 33802,
  5541. 63939, {f: 2, c: 63890}, 63897, 0, 34847, 194575, 0, 194771, 194584,
  5542. {s: 7}, 137754, 23643, {s: 4}, 25890, 0, 0, 26618, 0, 26766, 0, 148432,
  5543. 194848, {s: 21}, 34110, {s: 15}, 30562, {s: 12}, 65075, 0,
  5544. {f: 2, c: 65073}, {s: 4}, 65072, {f: 2, c: 65077}, {f: 2, c: 65081}, 0, 0,
  5545. {f: 2, c: 65079}, {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089},
  5546. {f: 2, c: 65083}, {s: 41}, {f: 3, c: 12436}, 0, 0, 22099, {s: 41}, 65508,
  5547. 65287, 65282, 0, 9665, 9655, 8681, 8679, 8678, 8680, 9634, 9831, 9825,
  5548. 9828, 9826, 13216, 13218, {f: 2, c: 13220}, 13207, 8467, 13208, 13235,
  5549. 13234, 13233, 13232, {f: 3, c: 13189}, 13259, 13200, 13268, 13206, 13090,
  5550. 13078, 13080, 13077, 13059, 13091, 13143, 13122, 13113, 13115, 13056,
  5551. 13105, 13127, 13086, 13098, 0, 13183, 8481, 9742, 12342, 12320, {s: 3},
  5552. {f: 9, c: 9352}, {f: 20, c: 9332}, 12881, {f: 10, c: 8560},
  5553. {f: 10, c: 12882}, {f: 26, c: 9372}, 12867, 12861, 12863, 12852, 12856,
  5554. 12851, 12860, 12866, 12862, 12854, 12853, 12859, 12864, 12858, 12976,
  5555. 12973, 12969, 12975, 12948, 12970, 12952, 12971, 12946, 12945, 12947,
  5556. 12972, 12974, 12950, {s: 8}, {f: 3, c: 9131}, 0, {f: 3, c: 9127}, 0, 13260,
  5557. 13061, 0, 0, 13215, 13219, 13222, 0, 0, 12958, {f: 2, c: 13192}, 13256,
  5558. 8749, 0, 12848, {f: 6, c: 12842}, 12855, 12865, 10145, {s: 3}, 9673, 9824,
  5559. 9829, 9827, 9830, {f: 4, c: 9728}, 9758, {f: 2, c: 9756}, 9759, 12953,
  5560. 9450, {f: 2, c: 8554}, {s: 3}, {f: 8, c: 9601}, 9615, 9614, 9613, 9612,
  5561. 9611, 9610, 9609, {f: 2, c: 9620}, {f: 2, c: 9581}, 9584, 9583, 9552, 9566,
  5562. 9578, 9569, {f: 2, c: 9698}, 9701, 9700, 0, 0, {f: 3, c: 9585}, {s: 20},
  5563. 20956, 29081, {f: 9, c: 10102}, {s: 3}, {f: 2, c: 8570}, {s: 3}, 8575,
  5564. 8458, 8457, 0, 0, 12292, 8646, {f: 2, c: 8644}, 0, {f: 4, c: 12535}, 0, 0,
  5565. 12957, {s: 3}, 13179, {s: 3}, 13107, 13134, {s: 30}, 32394, 35100, 37704,
  5566. 37512, 34012, 20425, 28859, 26161, 26824, 37625, 26363, 24389,
  5567. [12033, 20008], 20193, 20220, 20224, 20227, 20281, 20310, 20370, 20362,
  5568. 20378, 20372, 20429, 20544, 20514, 20479, 20510, 20550, 20592, 20546,
  5569. 20628, 20724, 20696, 20810, 20836, 20893, 20926, 20972, 21013, 21148,
  5570. 21158, 21184, 21211, 21248, 0, 21284, 21362, 21395, 21426, 21469, 64014,
  5571. 21660, 21642, 21673, 21759, 21894, 22361, 22373, 22444, 22472, 22471,
  5572. 64015, 0, 22686, 22706, 22795, 22867, 22875, 22877, 22883, 22948, 22970,
  5573. 23382, 23488, 29999, 23512, 0, 23582, 23718, 23738, 23797, 23847, 23891, 0,
  5574. 23874, 23917, {f: 2, c: 23992}, 24016, 24353, 24372, 24423, 24503, 24542,
  5575. 24669, 24709, 24714, 24798, 24789, 24864, 24818, 24849, 24887, 24880,
  5576. 24984, 25107, 25254, 25589, 25696, 25757, 25806, 25934, 26112, 26133,
  5577. 26121, 26158, 0, 26148, 26213, 26199, 26201, 64018, 26227, 26265, 26272,
  5578. 26290, 26303, 26362, 26382, 0, 26470, 26555, 26706, 26560, 0, 26692, 26831,
  5579. 64019, 26984, 64020, 27032, 27106, 27184, 27243, 27206, 27251, 27262,
  5580. 27362, 27364, 27606, 27711, 27740, 27782, 27759, 27866, 27908, 28039,
  5581. 28015, 28054, 28076, 28111, 28152, 28146, 28156, 28217, 28252, 28199,
  5582. 28220, 28351, 28552, 28597, 28661, 28677, 28679, 28712, 28805, 28843,
  5583. 28943, 28932, 29020, {f: 2, c: 28998}, 0, 29121, 29182, 29361, 29374,
  5584. 29476, 64022, 29559, 29629, 29641, 29654, 29667, 29650, 29703, 29685,
  5585. 29734, 29738, 29737, 29742, 0, 29833, 29855, 29953, 30063, 30338, 30364,
  5586. 30366, 30363, 30374, 64023, 30534, 21167, 30753, 30798, 30820, 30842,
  5587. 31024, {f: 3, c: 64024}, 31124, 64027, 31131, 31441, 31463, 64028, 31467,
  5588. 31646, 64029, 32072, 0, 32183, 32160, 32214, 32338, 32583, 32673, 64030,
  5589. 33537, 33634, 33663, 33735, 33782, 33864, 33972, 34131, 34137, 34155,
  5590. 64031, 34224, {f: 2, c: 64032}, 34823, 35061, 35346, 35383, 35449, 35495,
  5591. 35518, 35551, 64034, 35574, 35667, 35711, 36080, 36084, 36114, 36214,
  5592. 64035, 36559, 0, 64037, 36967, 37086, 64038, 37141, 37159, 37338, 37335,
  5593. 37342, {f: 2, c: 37357}, {f: 2, c: 37348}, 37382, 37392, 37386, 37434,
  5594. 37440, 37436, 37454, 37465, 37457, 37433, 37479, 37543, {f: 2, c: 37495},
  5595. 37607, 37591, 37593, 37584, 64039, 37589, 37600, 37587, 37669, 37665,
  5596. 37627, 64040, 37662, 37631, 37661, 37634, 37744, 37719, 37796, 37830,
  5597. 37854, 37880, 37937, 37957, 37960, 38290, 0, 64041, 38557, 38575, 38707,
  5598. 38715, 38723, 38733, 38735, [12205, 38737], 0, 38999, 39013,
  5599. {f: 2, c: 64042}, 39207, 64044, 39326, 39502, 39641, 39644, 39797, 39794,
  5600. 39823, 39857, 39867, 39936, 40304, 40299, 64045, 40473, 40657, 0, 92,
  5601. {s: 634}, 8364, 8486, 0, 0, 64256, {f: 2, c: 64259}, 257, 299, 363, 275,
  5602. 333, 256, 298, 362, 274, 332, {f: 4, c: 8539}, {f: 2, c: 8531}, 8304,
  5603. {f: 6, c: 8308}, {f: 10, c: 8320}, 461, 282, 0, 7868, 463, 0, 296, 465, 0,
  5604. 467, 366, 360, 462, 283, 0, 7869, 464, 0, 297, 466, 0, 468, 367, 361, 593,
  5605. 8049, 8048, 509, 0, 596, 0, 0, 601, 0, 0, 602, 0, 0, 603, 8051, 8050, 0,
  5606. 331, 629, 652, 0, 0, 658, 643, 720, {s: 682}, {f: 10, c: 12832}, {s: 108},
  5607. {f: 4, c: 12892}, {f: 15, c: 12977}, {s: 50}, {f: 26, c: 9424},
  5608. {f: 26, c: 9398}, {s: 48}, {f: 47, c: 13008}, 0, {f: 10, c: 12928}, 12944,
  5609. {f: 6, c: 12938}, 0, 12959, {s: 6}, {f: 2, c: 12960}, 12955, 12954, 12963,
  5610. 12962, 12951, 0, 12956, 12949, {s: 6}, 9676, {s: 11}, 10111,
  5611. {f: 10, c: 9451}, {s: 510}, 8414, {s: 815}, 13274, {s: 3}, 8448, 13250, 0,
  5612. 0, 8453, 0, 13169, 0, 0, 13197, 13211, {s: 3}, {f: 2, c: 13271}, {s: 3},
  5613. {f: 2, c: 13057}, 13060, 13062, 0, 13064, 0, 13063, 13066, 0, 13065, 0,
  5614. 13067, 0, 13068, {f: 6, c: 13070}, 0, 13079, 0, 13081, 0, {f: 4, c: 13082},
  5615. {f: 3, c: 13087}, 13092, 0, 13093, 0, 0, {f: 2, c: 13096}, 0, 13101, 0, 0,
  5616. {f: 3, c: 13102}, 13106, 0, 0, {f: 2, c: 13108}, 13116, {s: 3}, 13111, 0,
  5617. 13112, 13114, 13117, 13121, {f: 3, c: 13118}, {f: 4, c: 13123}, 13128,
  5618. {f: 2, c: 13131}, {f: 2, c: 13135}, 0, 0, 13138, 13140, 0, 0, 13139,
  5619. {f: 2, c: 13141}, {s: 132}, 8501, 976, 8714, 8463, 0, 981, 987, 977, 0,
  5620. {f: 2, c: 9832}, 9836, {s: 5}, 12347, 0, {f: 3, c: 12339}, 8252, 8265,
  5621. {s: 5}, 8723, 0, 8771, {f: 2, c: 8818}, {s: 6}, {f: 2, c: 12312},
  5622. {f: 2, c: 65375}, {s: 10}, 9115, {f: 2, c: 9117}, 9120, {s: 4}, 9121,
  5623. {f: 2, c: 9123}, 9126, {s: 12}, [9116, 9119, 9122, 9125, 9130], {s: 8},
  5624. 9986, 0, 0, 12349, 0, 12447, 0, 0, 8709, 8864, 8854, 8856, 8853, 8855,
  5625. {s: 4}, 9664, 9654, {s: 4}, 8656, 8596, {f: 2, c: 8600}, {f: 2, c: 8598},
  5626. 8652, 8651, {s: 10}, 12336, 8967, {s: 8}, 10048, 10047, {s: 7}, 9643, 0,
  5627. 9642, 0, 10010, {s: 12}, 9702, {s: 4}, 10070, {s: 379}, {f: 2, c: 65093},
  5628. {s: 679}, 64103, 64098, 32227, [12232, 40643], 28331, 64082, 64061, 64069,
  5629. 64062, 27114, 28212, 64096, 64071, 64056, 64066, 64078, 34395, 64105,
  5630. 64052, 64099, 25581, 25802, 30799, 64084, 63856, 64077, 64097, 64072,
  5631. 64076, {f: 2, c: 64091}, 64081, 64067, 64090, 28041, 29376, 0, 194885,
  5632. 64086, 64080, 64049, 64059, 24034, 64063, 64101, 21373, 64055, 64095,
  5633. 24501, 64064, 0, 64083, 0, 64085, 64104, 64068, 64089, 26202, 64053, 64075,
  5634. 64100, 64065, 64048, 0, 64057, 64051, 27493, 64058, 27599, 64050, 25150,
  5635. 64079, 63773, 63964, 63798, 28122, 63952, 26310, 27511, 64087, 37706, 0,
  5636. 37636, {s: 120}, 133390, {s: 120}, 35999, 11991, [11965, 158033], {s: 5},
  5637. 37555, 38321, 0, 0, 194812, {s: 13}, 194965, {s: 8}, 194794, 0, 26478,
  5638. 11974, 0, 194594, {s: 13}, 13314, 0, 0, 26083, {s: 4}, 134071, {s: 10},
  5639. 171339, 0, 194611, 24378, {s: 8}, 11945, 0, 20465, {s: 7}, 63753, {s: 7},
  5640. 11964, 0, 0, 194732, 26435, {s: 3}, 133732, 35329, 25142, 0, 0, 21555,
  5641. 23067, {s: 3}, 25221, 0, 0, 194819, {s: 6}, 21567, {s: 9}, 27506, {s: 4},
  5642. 29986, 19256, 0, 0, 24063, {s: 6}, 194827, 29626, 134047, {s: 3}, 194600,
  5643. 0, 194849, {s: 5}, 194623, {s: 16}, 194675, {f: 2, c: 11916}, 23577,
  5644. {s: 3}, 131083, 23426, 194642, {s: 5}, 11997, [11999, 39136],
  5645. [11998, 169599], 14221, 0, [11927, 14586], 0, 194887, 0, [11909, 20155],
  5646. 131490, {s: 7}, 13599, 0, 194738, 0, 0, [11971, 35200], {s: 4}, 31237,
  5647. {s: 4}, 35498, 0, 32085, 0, 28568, {s: 7}, 25591, 30246, {s: 4},
  5648. [11978, 163767], {s: 5}, 146686, {s: 5}, 13351, 0, 0, 33067, 0, 0, 194842,
  5649. {s: 5}, 11950, {s: 5}, 194714, {s: 3}, 194831, {s: 19}, 22305, 135741,
  5650. 194586, 0, 64003, {s: 7}, 21534, 15240, 20839, {s: 4}, 63839, {s: 9},
  5651. 20023, {s: 13}, [11946, 150804], 24421, 23020, 194658, 0, 24217, {s: 46},
  5652. 13416, {s: 8}, 21200, {s: 9}, 26625, 0, 195024, 195039, {s: 5}, 153215, 0,
  5653. 0, 11959, {s: 4}, 36534, 63775, {s: 3}, 63875, {s: 5}, 31867, 63906, 0,
  5654. 63898, 0, [11961, 32770], 157360, {s: 4}, [11911, 132648], 0, 0, 131210,
  5655. 194604, [11915, 13630], {s: 4}, 21589, 0, 22841, 0, 0, 23414, 194669,
  5656. 23572, 14306, 23782, 0, 20040, 0, 0, 194742, {s: 4}, 158105, 25371, 0, 0,
  5657. 26211, 0, 194779, 0, 0, 27126, 27014, {s: 3}, 27596, 0, 28183, 0, 0, 27818,
  5658. {s: 3}, [11942, 20012], 0, 0, 29935, 30069, 30188, 30286, 16305, 30570,
  5659. 30633, {s: 6}, 31571, 0, 0, 16996, {s: 3}, 194924, 0, 0, 32328, {s: 5},
  5660. 11955, {s: 4}, 33089, 17491, 0, [11966, 33401], [11967, 64094],
  5661. [11968, 64093], 0, 20857, 33626, {s: 3}, 17701, 0, 34292, 131248, {s: 4},
  5662. 34429, 0, 13358, 35014, {s: 6}, 18406, {s: 8}, 36808, {s: 19}, 166279, 0,
  5663. 0, 167447, 0, 0, 38969, {s: 6}, 39432, {s: 4}, 39903, {s: 10}, 148206,
  5664. {s: 5}, 21385, 0, 64017, 194785, 0, 146622, 132625, 0, {f: 2, c: 19972},
  5665. 19999, 20011, {f: 2, c: 20015}, {f: 2, c: 20032}, 20036, [11907, 20058],
  5666. 20095, 20109, 20118, 20153, 20176, 20192, 20221, 20223, 20235, 20245,
  5667. 20320, 20283, 20297, 20308, 20346, {f: 2, c: 20349}, 20375, 20414, 20431,
  5668. 20477, {f: 2, c: 20480}, 20496, 20507, 20519, 20526, 20567, 20582, 20586,
  5669. 20539, 20623, 20630, 20636, 20684, 20710, 20713, 20719, 20744, 20747,
  5670. 20752, 20763, 20766, 20831, 20897, 20924, 0, 20974, 20980, 20993,
  5671. [11913, 20994], 21011, 21065, 21089, 21094, 21139, 21192, 21232,
  5672. {f: 2, c: 21258}, 21310, 21324, 21323, 21345, 21356, 21419, 21466, 21478,
  5673. 21493, 21543, 21581, 21606, 21611, 21620, 21645, 21654, 21665, 21677,
  5674. 21689, 21695, 21702, 21709, 21774, 21803, 21813, 21834, 21856, 0, 21896,
  5675. 21902, 22024, {f: 2, c: 22030}, 22071, 22079, 22089, 22091, 22095, 22118,
  5676. 22121, 22127, {f: 2, c: 22129}, 22165, 22170, {f: 2, c: 22188}, 22193,
  5677. 22217, 22237, 22244, 22282, 22293, 22307, 22319, {f: 2, c: 22323}, 22348,
  5678. 22384, 22412, 22428, 22456, 22502, 22509, {f: 2, c: 22517}, 22527, 22537,
  5679. 22560, 22578, 22652, 22656, 22697, 22734, 22736, 22740, 22746, 22761,
  5680. 22796, 22820, 22831, 22881, 22893, 22986, 22994, 23005, {f: 2, c: 23011},
  5681. 23044, 23052, 23075, 23111, 23125, 23139, 23149, 23166, 23198, 23207,
  5682. 23212, 23219, 23264, 23296, 23321, 23333, 23341, 23361, 23420,
  5683. {f: 2, c: 23422}, 23434, [11919, 23587], 23595, 23600, 23651, 23657, 23676,
  5684. 23755, 23762, 23796, 23844, 23846, 23875, 23878, 23882, 23954, 23956,
  5685. 23961, 23968, 24024, 24032, 24056, 24064, 24082, {f: 2, c: 24084}, 24088,
  5686. 24110, 24152, {f: 2, c: 24171}, 24232, 24234, {f: 2, c: 24254}, 0, 24274,
  5687. 24327, 24334, {f: 2, c: 24348}, 24354, 24360, 24374, 24379, 24384,
  5688. [12089, 24400], 24408, 24420, 24457, 24476, 24487, 24484, 24495, 24504,
  5689. [11926, 24516], 24521, 24545, 24553, 24557, 24572, 24599, 24602, 24627,
  5690. 24673, 24703, 24734, 24740, 24752, 24779, 24795, 24824, {f: 3, c: 24850},
  5691. 24860, 24956, 24973, 24991, 25000, 25026, 25055, 25109, 25129, 25155,
  5692. 25158, [11928, 25164], 25169, 25174, 25284, 25340, 25354, 25357, 25368,
  5693. 25401, {f: 2, c: 25410}, 25445, 25460, 25469, 25476, 25479, 25488, 25502,
  5694. 25553, 25564, 25609, 25616, 25634, 25684, 25691, 25709, 25723,
  5695. {f: 2, c: 25790}, 25829, 25847, 25851, 25860, 25878, 25881, 25927, 25959,
  5696. 25985, 25989, 26050, 26096, 26098, 26156, 26188, {f: 2, c: 26203}, 26209,
  5697. 26219, 0, 26276, 26312, 26348, 26373, 26387, 26419, 26440, 26444, 26486,
  5698. 26491, 26544, 26546, 26617, 26583, 26585, 26608, 26668, {f: 2, c: 26672},
  5699. 26715, 26738, 26741, 26746, 26756, 26789, 26802, 26832, 26838, 26856,
  5700. 26861, {f: 2, c: 26864}, 26876, 26897, 26899, 26933, 26939, 26967, 26979,
  5701. 26994, {f: 2, c: 27007}, 27046, 27053, 27063, {f: 2, c: 27094}, 27137,
  5702. 27151, 27157, 27176, 27188, 27198, 27205, {f: 2, c: 27216}, 27222, 27227,
  5703. 27267, 27273, 27281, {f: 3, c: 27293}, 27356, 27367, 27372, 27422, 27428,
  5704. 27445, 27462, 27478, 27488, 27522, 27582, 27617, 27633, 27664, 27699,
  5705. [11937, 27701], 11938, 27737, 27766, 27771, 27781, 27797, 27804, 27856,
  5706. 27860, 27862, 27872, {f: 2, c: 27883}, 27886, 27914, 27918, 27921, 27950,
  5707. 27991, 27998, 28005, 28034, 28095, 28100, 28106, 28118, 28137, 28194,
  5708. 28241, 28359, 28362, 28366, 28413, 28442, 28458, 28463, 28467, 28506,
  5709. 28510, 28514, 28541, 28555, 28557, 28562, 28564, 28570, {f: 2, c: 28583},
  5710. 28598, 28634, 28638, 0, 28729, 28732, 0, 28756, {f: 2, c: 28765}, 28772,
  5711. [11939, 28780], 28798, 28801, 28821, 28855, {f: 2, c: 28883}, 28888, 28892,
  5712. 28935, 28960, 28977, 29002, 29010, 29024, 29049, 29074, 0, 29131, 29139,
  5713. 29142, 29184, 29213, 29227, 29240, 29249, 29267, {f: 2, c: 29269}, 29276,
  5714. 29325, [11944, 29357], 29364, 29383, 29435, {f: 2, c: 29444}, 29480, 29489,
  5715. 29507, 29548, 29564, 29571, {f: 2, c: 29573}, 29589, {f: 3, c: 29598},
  5716. 29606, 29611, 29621, 29623, 29628, 29647, 29657, 29673, 29684, 29693,
  5717. 29700, 29706, {f: 2, c: 29722}, 29732, 29736, 29740, {f: 3, c: 29743},
  5718. 29753, 29764, 29767, 29771, 29773, 29777, 29783, 29798, 29803, 29809,
  5719. 29824, {f: 3, c: 29829}, 29840, 29848, 29852, 29856, 29859, 29864, 29867,
  5720. 29877, 29887, 29896, 29914, 29918, 30030, 30073, 30081, 30096,
  5721. [12135, 30098], 30099, 30132, 30180, 30201, 30208, 30218, {f: 2, c: 30229},
  5722. 30233, 30238, 30253, 30261, 30275, 30283, 30309, 30317, 30319, 30321,
  5723. 30324, {f: 2, c: 30372}, 30405, 30412, 30444, 30460, 30516, 30518, 30556,
  5724. {f: 2, c: 30559}, 30578, 30589, 30613, 30634, 30694, 30704, 30708, 30726,
  5725. 30754, {f: 2, c: 30765}, 30768, 30773, 30824, 30878, 30920, 30924, 30926,
  5726. 30948, {f: 2, c: 30944}, 30962, 30967, 30971, 31025, 0, [11949, 31035],
  5727. 31037, 31045, {f: 2, c: 31067}, 31115, 31126, 31128, [12145, 31160], 31163,
  5728. 31178, 31194, 31235, 31241, 31249, 31262, 31277, 31289, 31301, 31308,
  5729. 31325, 0, 31341, 31352, 31392, 31395, 31411, {f: 2, c: 31419}, 31430,
  5730. 31495, 31508, 31527, 31537, 31559, 31566, 31584, 31593, 31597, 31602,
  5731. 31633, 31663, 31703, 31705, 31755, 31759, 31776, 31782, 31793, 31798,
  5732. 31825, 31833, 31847, 31854, 31856, 31932, 31935, {f: 2, c: 31944}, 31959,
  5733. 31961, 31965, 31979, {f: 3, c: 32007}, 32019, 32029, 32035, 32065, 32083,
  5734. 32089, 32093, 32122, 32134, {f: 2, c: 32139}, 32204, 32235, 32241, 32249,
  5735. 32264, 32273, 32277, 32288, 32327, 32354, 32366, 32371, 32397, 32401,
  5736. 32408, 32580, 32591, [11947, 11954, 32594], [11953, 32595], 32609, 32657,
  5737. 32703, 32718, 32735, 32741, 32748, {f: 2, c: 32750}, 32762, 32782, 32785,
  5738. 32788, 32804, 32806, 32826, 32828, 32864, 32881, 32885, 32926, 32934,
  5739. 32939, {f: 2, c: 32983}, 33046, 33048, 33082, 33098, 33100, 33153, 33156,
  5740. 33204, 33231, 33273, 33283, 33313, 33330, 33332, 33350, 33355, 33359,
  5741. 33422, 33454, 33463, 33470, 33478, 33534, 33603, 33617, 33621, 33670,
  5742. 33677, 33682, 33688, 33705, {f: 2, c: 33727}, 33770, 33807, 33809, 33866,
  5743. 33910, 33960, 33967, 33984, 33986, 34032, 34045, 34060, 34100, 34142,
  5744. 34191, 34231, 34254, 34221, 34322, 34345, 34386, 34403, 34412, 34415,
  5745. 34426, 34445, 34449, 34456, {f: 2, c: 34471}, 34554, 34557, 34571, 34579,
  5746. 34585, 34590, 34600, 34622, 34673, 34696, 34713, {f: 2, c: 34732}, 34741,
  5747. 34774, 34795, 34797, 34817, 0, 34822, 34827, 34836, 34844, 34902, 34911,
  5748. [11970, 34916], 34968, 34986, {f: 2, c: 35005}, 35018, 35026, 35035,
  5749. {f: 2, c: 35056}, 35078, {f: 3, c: 35096}, 35111, 35120, 35134, 35195,
  5750. 35284, 35286, 35301, 35313, 35335, 35343, 35349, 35362, 35406, 35455,
  5751. 35572, 35615, 35639, {f: 2, c: 35651}, 35668, 35740, 35742, 35911, 35924,
  5752. 35955, 36004, 36057, 36065, 36088, 36094, 36123, 36201, 36204, 36228,
  5753. 36237, 36245, 36262, 36294, 36302, 36324, 36332, 36384, 36427, 36460,
  5754. 36464, 36474, 36498, 36526, 36531, 36561, 36564, 36601, 36631, 36662,
  5755. 36774, [12193, 36789], [11981, 36790], 0, 36832, 36836, 36854, 36866,
  5756. 36908, 36932, 37000, 37013, 37017, 37019, 37026, 37044, 37079, 37085,
  5757. 37108, 37143, 37148, 37169, 37178, 37181, 37192, 37211, 37217, 37220,
  5758. 37262, 37278, 37288, {f: 2, c: 37293}, 37298, 37308, 37360, 37367, 37371,
  5759. 37383, 37416, 37427, 37432, 37443, 37447, 37455, 37472, 37570,
  5760. {f: 2, c: 37579}, 37599, 37645, 37653, 37663, 37671, 37703, 37714, 0,
  5761. 37738, 37741, 37787, 37818, 37801, 37825, 37834, 37858, 37882, 37885,
  5762. 37903, 37940, 37951, 37973, 37995, 38002, [11986, 38264], 38310, 38313, 0,
  5763. 38324, 38333, 38362, [11983, 11990, 38429], 38465, 38488, 38532, 38564,
  5764. 38569, 38610, 195060, 38622, 38633, 38641, 38658, 38665, 38746, 38755,
  5765. 38766, 38771, 38810, 38818, {f: 2, c: 38837}, 38873, 38878, 38900, 38922,
  5766. 38926, 38942, 38947, 38955, 38974, {f: 2, c: 38994}, 39001, 39020, 39096,
  5767. 39098, 39103, 39112, 39141, {f: 2, c: 39218}, 39232, 39245, 39260, 39263,
  5768. 39345, {f: 2, c: 39353}, 39369, 39426, 39446, 39460, 39463,
  5769. {f: 2, c: 39469}, 39478, 39480, 39498, 39510, {f: 2, c: 39605}, 39673,
  5770. 39683, 39712, {f: 2, c: 39731}, 39795, 39801, 39847, 39873, 39879, 39895,
  5771. 39911, 39915, 39927, 39930, 39933, 39947, 39975, 39978, 39990, 40001,
  5772. 40019, 40035, 40048, 40055, 40194, 40258, 40263, 40291, 40297, 40316,
  5773. 40318, 40333, 40369, 40387, 40391, 40406, 40415, 40427, 40436, 40469,
  5774. 40477, 40612, 40616, 40620, 40679, 40686, 40720, 40722, 40727, 40729,
  5775. 40751, 40759, 40761, 40769, 40773, 40791, 40808, 40817, 40821, 40848,
  5776. 40852, 40866, 0, 13317, 194564, 22048, 24267, 11925, 0, 144954, 0, 28665,
  5777. 28390, 29107, [11940, 64073], {s: 4}, [11980, 64102], 0, 23986, 0, 20435,
  5778. 20697, 20720, 20931, 22134, 27220, 27905, 28112, 28226, 28377, 29668,
  5779. 29729, 30060, 30801, 34805, 144382, 29608, 15091, 13531, 17420, 16010, 0,
  5780. 0, 19432, 0, 16090, 15138, 0, 17786, 16531, 0, 18021, 16643, 17043, 18094,
  5781. 13448, 140809, {f: 3, c: 63584}, 63610, 63615, {s: 23}, {f: 2, c: 8836},
  5782. {f: 2, c: 8842}, 8713, 0, {f: 2, c: 8965}, {s: 9}, {f: 2, c: 8741},
  5783. {s: 14}, 8802, 0, 8773, 8776, {f: 2, c: 8822}, {s: 4}, 8487, {s: 209},
  5784. {f: 2, c: 8922}, 8533, 8984, {f: 2, c: 7742}, {f: 2, c: 504}, 470, 472,
  5785. 474, 476, 260, 728, 317, 346, 350, 356, 377, 379, 261, 731, 318, 347, 711,
  5786. 351, 357, 378, 733, 380, 340, 258, 313, 262, 268, 280, 270, 323, 327, 336,
  5787. 344, 368, 354, 341, 259, 314, 263, 269, 281, 271, 273, 324, 328, 337, 345,
  5788. 369, 355, 729, 264, 284, 292, 308, 348, 364, 265, 285, 293, 309, 349, 365,
  5789. 625, 651, 638, 620, 622, 633, 648, 598, 627, 637, 642, 656, 635, 621, 607,
  5790. 626, 669, 654, 609, 624, 641, 295, 661, 660, 614, 664, 450, 595, 599, 644,
  5791. 608, 403, 616, 649, 600, 604, 606, 592, 623, 650, 612, 594, 653, 613, 674,
  5792. 673, 597, 657, 634, 615, 865, 712, 716, 721, 8255, 783, {f: 5, c: 741}, 0,
  5793. 0, 805, 812, 825, 796, {f: 2, c: 799}, 829, 809, 815, 734, 804, 816, 828,
  5794. 820, {f: 2, c: 797}, {f: 2, c: 792}, 810, {f: 2, c: 826}, 794, {s: 3},
  5795. {f: 2, c: 610}, 618, 628, 630, 632, 640, 655, 665, 668, 671, 688, 690, 695,
  5796. 704, {f: 2, c: 736}, {s: 6}, 8862, {s: 287}, 12348, 12543, 0,
  5797. {f: 2, c: 12310}, 9838, 9835, {f: 2, c: 10548}, 10687, 0, 12448, 0,
  5798. {f: 2, c: 10746}, {s: 13}, 962, {f: 10, c: 9461}, {f: 2, c: 9750}, 9649,
  5799. {f: 10, c: 12784}, 0, {f: 6, c: 12794}, {f: 15, c: 9150}, 0, 0, 10003, 0,
  5800. 9251, 9166, {f: 4, c: 9680}, {f: 2, c: 8263}, 0, 8273, 8258,
  5801. {f: 16, c: 12688}, {s: 13}, {f: 2, c: 9136}, {f: 12, c: 9842},
  5802. {f: 2, c: 12441}, 8413, {s: 450}, 20296, 20319, 20330, 20332, 20494, 20504,
  5803. 20545, 20722, 20688, 20742, 20739, 20789, 20821, 20823, 13493, 20938,
  5804. 20962, 21079, 21196, 21206, 21243, 21276, 21347, 21405, 21522, 21631,
  5805. 21640, 21840, 21889, 21933, 21966, 22075, 22174, 22185, 22195, 22391,
  5806. 22396, 135963, 22479, 22500, 22628, 22665, 136302, 22738, 22752, 34369,
  5807. 22923, 22930, 22979, 23059, 23143, 23159, 23172, 23236, 137405, 23421,
  5808. 23443, 23570, 64060, 136884, 23674, 23695, 23711, 23715, 23722, 23760,
  5809. 138804, 23821, 23879, 23937, 23972, 23975, 24011, 24158, 24313, 24320,
  5810. 24322, 24355, 24381, 24404, 24445, 24589, 24596, 24600, 24629, 24647,
  5811. 24733, 24788, 24797, 24875, 25020, 25017, 25122, 25178, 25199, 25302,
  5812. 25468, 25573, 25721, 25796, 25808, 25897, 26013, 26170, 26146, 26155,
  5813. 26160, 26163, 26184, 143812, {f: 2, c: 26231}, 26253, 26299, 26331, 26344,
  5814. 26439, 26497, 26515, 26520, 26523, 26620, 26653, 26787, 26890, 26953,
  5815. 144836, 26946, 26980, 27045, 27087, 15286, 15299, 27113, 27125, 145215,
  5816. 27195, 145251, 27284, 27301, 15375, 27419, 27436, 27495, 27561, 27565,
  5817. 27607, 27647, 27653, 27764, 27800, 27899, 27846, 27953, 27961, 27967,
  5818. 27992, 28052, 28074, 28123, 28125, 28228, 28254, 28337, 28353, 28432,
  5819. 28505, 28513, 28542, 28556, 28576, 28604, 28615, 28618, 28656, 28750,
  5820. 28789, 28836, 28900, 28971, 28958, 28974, 29009, 29032, 29061, 29063,
  5821. 29114, 29124, 29205, 15935, 29339, 149489, 29479, 29520, 29542, 29602,
  5822. 29739, 29766, 29794, 29805, 29862, 29865, 29897, 29951, 29975, 16242,
  5823. 30158, 30210, 30216, 30308, 30337, 30365, 30378, 30390, 30414, 30420,
  5824. 30438, 30449, 30474, 30489, {f: 2, c: 30541}, 30586, 30592, 30612, 30688,
  5825. 152718, 30787, 30830, 30896, 152846, 30893, 30976, 31004, 31022, 31028,
  5826. 31046, 31097, 31176, 153457, 31188, 31198, 31211, 31213, 31365, 154052,
  5827. 31438, 31485, 31506, 31533, 31547, 31599, 31745, 31795, 155041, 31853,
  5828. 31865, 31887, 31892, 31904, 31957, 32049, 32092, 32131, 32166, 32194,
  5829. 32296, 32663, 32731, 32821, 32823, 32970, 32992, 33011, 33120,
  5830. {f: 2, c: 33127}, 33133, 33211, 33226, 33239, 17499, 33376, 33396, 158463,
  5831. 33441, {f: 2, c: 33443}, 33449, 33471, 33493, 33533, 33536, 33570, 33581,
  5832. 33594, 33607, 33661, 33703, 33743, 33745, 33761, 33793, 33798, 33887,
  5833. 33904, 33907, 33925, 33950, 33978, 159296, 34098, 34078, 34095, 34148,
  5834. 34170, 34188, 34210, 34251, 34285, 34303, {f: 2, c: 34308}, 34320, 159988,
  5835. 34328, 34360, 34391, 34402, 17821, 34421, 34488, 34556, 34695, 17898,
  5836. 34826, 34832, 35022, 161412, 35122, 35129, 35136, 35220, 35318, 35399,
  5837. 35421, 35425, 35445, 35536, 35654, 35673, 35689, 35741, 35913, 35944,
  5838. 36271, 36305, 36311, 36387, 36413, 36475, 164471, 18500, 36602, 36638,
  5839. 36653, 36692, 164813, 36840, 36846, 36872, 36909, 37015, 37043, 37054,
  5840. {f: 2, c: 37060}, 37063, 37103, 37140, 37142, {f: 2, c: 37154}, 37167,
  5841. 37172, 37251, 37361, 37705, {f: 2, c: 37732}, 37795, 37855, 37892, 37939,
  5842. 37962, 37987, 38001, 38286, 38303, 38316, 38326, 38347, 38352, 38355,
  5843. 18864, 38366, 38565, 38639, 38734, 38805, 38830, 38842, 38849, 38857,
  5844. 38875, 38998, 39143, 39256, 39427, 39617, 39619, 39630, 39638, 39682,
  5845. 39688, 19479, 39725, 39774, 39782, 39812, 39818, 39838, 39886, 39909,
  5846. 39928, 39971, {f: 2, c: 40015}, 40037, {f: 2, c: 40221}, 40259, 40274,
  5847. 40330, 40342, 40384, 40364, 40380, 172432, 40423, 40455, 40606, 40623,
  5848. 40855, 131209, 19970, 19983, 19986, 20009, 20014, 20039, 131234, 20049,
  5849. 13318, 131236, 20073, 20125, 13356, 20156, 20163, 20168, 20203, 20186,
  5850. 20209, 20213, 20246, 20324, 20279, 20286, 20312, 131603, {f: 2, c: 20343},
  5851. 20354, 20357, 20454, 20402, 20421, 20427, 20434, 13418, 20466, 20499,
  5852. 20508, 20558, 20563, 20579, 20643, 20616, {f: 2, c: 20626}, 20629, 20650,
  5853. 131883, 20657, {f: 2, c: 20666}, 20676, 20679, 20723, 131969, 20686,
  5854. 131953, 20692, 20705, 13458, 132089, 20759, 132170, 20832, 132361, 20851,
  5855. 20867, 20875, 13500, 20888, 20899, 20909, 13511, 132566, 20979, 21010,
  5856. 21014, 132943, 21077, 21084, 21100, 21111, 21124, 21122, 133127, 21144,
  5857. 133178, 21156, {f: 2, c: 21178}, 21194, 21201, 133305, 21239, 21301, 21314,
  5858. 133500, 133533, 21351, 21370, 21412, 21428, 133843, 21431, 21440, 133917,
  5859. {f: 2, c: 13661}, 21461, 13667, 21492, 21540, 21544, 13678, 21571, 21602,
  5860. 21612, 21653, 21664, 21670, 21678, 21687, 21690, 21699, 134469, 21740,
  5861. 21743, 21745, 21747, {f: 2, c: 21760}, 21769, 21820, 21825, 13734, 21831,
  5862. 13736, 21860, 134625, 21885, 21890, 21905, 13765, 21970, 134805, 134765,
  5863. 21951, 21961, 21964, 21969, 21981, 13786, 21986, 134756, 21993, 22056,
  5864. 135007, 22023, 22032, 22064, 13812, 22077, 22080, 22087, 22110, 22112,
  5865. 22125, 13829, 22152, 22156, 22173, 22184, 22194, 22213, 22221, 22239,
  5866. 22248, {f: 2, c: 22262}, 135681, 135765, 22313, 135803, {f: 2, c: 22341},
  5867. 22349, 135796, 22376, 22383, {f: 3, c: 22387}, 22395, 135908, 135895,
  5868. 22426, {f: 2, c: 22429}, 22440, 22487, 135933, 22476, 135990, 136004,
  5869. 22494, 22512, 13898, 22520, 22523, 22525, 22532, 22558, 22567, 22585,
  5870. 136132, 22601, 22604, 22631, {f: 2, c: 22666}, 22669, {f: 2, c: 22671},
  5871. 22676, 22685, 22698, 22705, 136301, 22723, 22733, 22754, {f: 2, c: 22771},
  5872. {f: 2, c: 22789}, 22797, 22804, 136663, 13969, 22845, 13977, 22854, 13974,
  5873. 158761, 22879, 136775, {f: 2, c: 22901}, 22908, 22943, 22958, 22972, 22984,
  5874. 22989, 23006, 23015, 23022, 136966, 137026, 14031, 23053, 23063, 23079,
  5875. 23085, 23141, 23162, 23179, 23196, {f: 2, c: 23199}, 23202, 23217, 23221,
  5876. 23226, 23231, 23258, 23260, 23269, 23280, 23278, 23285, 23304, 23319,
  5877. 23348, 23372, 23378, 23400, 23407, 23425, 23428, 137667, 23446, 23468,
  5878. {f: 2, c: 14177}, 23502, 23510, 14188, 14187, 23537, 23549, 14197, 23555,
  5879. 23593, 138326, 23647, {f: 2, c: 23655}, 23664, 138541, 138565, 138616,
  5880. 138594, 23688, 23690, 14273, 138657, 138652, 23712, 23714, 23719, 138642,
  5881. 23725, 23733, 138679, 23753, 138720, 138803, 23814, 23824, 23851, 23837,
  5882. 23840, 23857, 23865, 14312, 23905, 23914, 14324, 23920, 139038, 14333,
  5883. 23944, 14336, 23959, 23984, 23988, 139126, 24017, 24023, 139258, 24036,
  5884. 24041, 14383, 14390, 14400, 24095, 24126, 24137, 14428, 24150, 14433,
  5885. {f: 2, c: 24173}, 139643, 24229, 24236, 24249, 24262, 24281, 140062, 24317,
  5886. 24328, 140205, 24350, 24391, 24419, 24434, 24446, 24463, 24482, 24519,
  5887. 24523, {f: 3, c: 24530}, 24546, {f: 2, c: 24558}, 24563, 14615, 24610,
  5888. 24612, 14618, 24652, 24725, 24744, 141043, 24753, 24766, 24776, 24793,
  5889. 24814, 24821, 24848, 24857, 24862, 24890, 14703, 24897, 24902, 24928,
  5890. 141403, {f: 2, c: 24978}, 24983, 24997, 25005, 141483, 25045, 25053, 25077,
  5891. 141711, 25123, 25170, 25185, 25188, 25211, 25197, 25203, 25241, 25301,
  5892. 142008, 25341, 25347, 25360, {f: 2, c: 142159}, 25394, 25397,
  5893. {f: 2, c: 25403}, 25409, 25412, 25422, 142150, 25433, 142365, 142246,
  5894. 25452, 25497, 142372, 25492, 25533, {f: 2, c: 25556}, 25568,
  5895. {f: 2, c: 25579}, 25586, 25630, 25637, 25641, 25647, 25690, 25693, 25715,
  5896. 25725, 25735, 25745, 25759, {f: 2, c: 25803}, 25813, 25815, 142817, 25828,
  5897. 25855, 14958, 25871, 25876, 14963, 25886, 25906, 25924, 25940, 25963,
  5898. 25978, 25988, 25994, 26034, 26037, 26040, 26047, 26057, 26068, 15062,
  5899. 26105, 26108, 26116, 26120, 26145, 26154, 26181, 26193, 26190, 15082,
  5900. 143811, 143861, 143798, 26218, {f: 2, c: 26220}, 26235, 26240, 26256,
  5901. 26258, 15118, 26285, 26289, 26293, 15130, 15132, 15063, 26369, 26386,
  5902. 144242, 26393, 144339, 144338, 26445, 26452, 26461, 144336, 144356, 144341,
  5903. 26484, 144346, 26514, 144351, 33635, 26640, 26563, 26568, 26578, 26587,
  5904. 26615, 144458, 144465, 144459, 26648, 26655, 26669, 144485, 26675, 26683,
  5905. 26686, 26693, 26697, 26700, 26709, 26711, 15223, 26731, 26734, 26748,
  5906. 26754, 26768, 26774, 15213, {f: 3, c: 26776}, 26780, {f: 2, c: 26794},
  5907. 26804, 26811, 26875, 144612, 144730, 26819, 26821, 26828, 26841,
  5908. {f: 2, c: 26852}, 26860, 26871, 26883, 26887, 15239, 144788, 15245, 26950,
  5909. 26985, 26988, 27002, 27026, 15268, 27030, 27056, 27066, 27068, 27072,
  5910. 27089, 144953, 144967, 144952, 27107, {f: 2, c: 27118}, 27123, 15309,
  5911. 27124, 27134, 27153, 27162, 27165, 145180, {f: 2, c: 27186}, 27199, 27209,
  5912. 27258, 27214, 27218, 27236, 145164, 27275, 15344, 27297, 145252, 27307,
  5913. 27325, 27334, 27348, 27344, 27357, 145407, 145383, {f: 3, c: 27377}, 27389,
  5914. 145444, 27403, {f: 3, c: 27407}, 145469, 27415, 15398, 27439, 27466, 27480,
  5915. 27500, 27509, [11934, 27514], 27521, 27547, 27566, 146072, 27581,
  5916. {f: 3, c: 27591}, 27610, {f: 2, c: 27622}, 27630, 27650, 27658, 27662,
  5917. 27702, 146559, 27725, 27739, 27757, 27780, 27785, 15555, 27796, 27799,
  5918. 27821, 27842, 15570, 27868, 27881, 27885, 146688, 27904, 27940,
  5919. {f: 2, c: 27942}, 27751, 27951, 27964, 27995, 28000, 28016,
  5920. {f: 2, c: 28032}, 28042, 28045, 28049, 28056, 146752, 146938, 146937,
  5921. 146899, 28075, 28078, 28084, 28098, 27956, 28104, 28110, 28127, 28150,
  5922. 28214, 28190, 15633, 28210, {f: 2, c: 28232}, {f: 2, c: 28235}, 28239,
  5923. {f: 2, c: 28243}, 28247, 28259, 15646, 28307, 28327, 28340, 28355, 28469,
  5924. 28395, 28409, 28411, 28426, 28428, 28440, 28453, 28470, 28476, 147326,
  5925. 28498, 28503, 28512, 28520, 28560, 28566, 28606, 28575, 28581, 28591,
  5926. 15716, {f: 2, c: 28616}, 28649, 147606, 28668, 28672, 28682, 28707, 147715,
  5927. 28730, 28739, 28743, 28747, 15770, 28773, 28777, 28782, 28790, 28806,
  5928. 28823, 147910, 28831, 28849, 147966, 28908, 28874, 28881, 28931, 28934,
  5929. 28936, 28940, 15808, 28975, 29008, 29011, 29022, 15828, 29078, 29056,
  5930. 29083, 29088, 29090, {f: 2, c: 29102}, 148412, 29145, 29148, 29191, 15877,
  5931. 29236, 29241, 29250, 29271, 29283, 149033, {f: 2, c: 29294}, 29304, 29311,
  5932. 29326, 149157, 29358, 29360, 29377, 15968, 29388, 15974, 15976, 29427,
  5933. 29434, 29447, 29458, {f: 2, c: 29464}, 16003, 29497, 29484, 29491, 29501,
  5934. 29522, 16020, 29547, 149654, {f: 2, c: 29550}, 29553, 29569, 29578, 29588,
  5935. 29592, 29596, 29605, 29625, 29631, 29637, 29643, 29665, 29671, 29689,
  5936. 29715, 29690, 29697, 29779, 29760, 29763, 29778, 29789, 29825, 29832,
  5937. 150093, 29842, 29847, 29849, 29857, 29861, 29866, 29881, 29883, 29882,
  5938. 29910, 29912, 29931, 150358, 29946, 150383, 29984, 29988, 29994, 16215,
  5939. 150550, {f: 2, c: 30013}, 30016, 30024, 30032, 30034, 30066, 30065, 30074,
  5940. {f: 2, c: 30077}, 30092, 16245, 30114, 16247, 30128, 30135,
  5941. {f: 2, c: 30143}, 30150, 30159, 30163, 30173, {f: 2, c: 30175}, 30183,
  5942. 30190, 30193, 30211, 30232, 30215, 30223, 16302, 151054, 30227,
  5943. {f: 2, c: 30235}, 151095, 30245, 30248, 30268, 30259, 151146, 16329, 30273,
  5944. 151179, 30281, 30293, 16343, 30318, 30357, 30369, 30368, {f: 2, c: 30375},
  5945. 30383, 151626, 30409, 151637, 30440, 151842, 30487, 30490, 30509, 30517,
  5946. 151977, 16441, 152037, 152013, 30552, 152094, 30588, 152140, 16472, 30618,
  5947. 30623, 30626, 30628, {f: 2, c: 30686}, 30692, 30698, 30700, 30715, 152622,
  5948. 30725, 30729, 30733, 30745, 30764, 30791, 30826, 152793, 30858, 30868,
  5949. 30884, 30877, 30879, 30907, 30933, 30950, {f: 2, c: 30969}, 30974, 152999,
  5950. 30992, 31003, 31013, 31050, 31064, 16645, 31079, 31090, 31125, 31137,
  5951. 31145, 31156, 31170, 31175, {f: 2, c: 31180}, 31190, 16712, 153513, 153524,
  5952. 16719, 31242, 31253, 31259, 16739, 31288, 31303, 31318, 31321, 31324,
  5953. 31327, 31335, 31338, 31349, 31362, 31370, 31376, 31404, 154068, 16820,
  5954. 31417, 31422, 16831, 31436, 31464, 31476, 154340, 154339, 154353, 31549,
  5955. 31530, {f: 2, c: 31534}, 16870, 16883, 31615, 31553, 16878, 31573, 31609,
  5956. 31588, 31590, 31603, 154546, 16903, 31632, 31643, 16910, 31669, 31676,
  5957. 31685, 31690, 154699, 154724, 31700, 31702, 31706, 31722, 31728, 31747,
  5958. 31758, 31813, 31818, 31831, 31838, 31841, 31849, 31855, 155182, 155222,
  5959. 155237, 31910, 155234, {f: 2, c: 31926}, 155352, 31940, 155330, 31949,
  5960. 155368, 155427, 31974, 155484, 31989, 32003, 17094, 32018, 32030, 155616,
  5961. 155604, {f: 2, c: 32061}, 32064, 32071, 155660, 155643, 17110, 32090,
  5962. 32106, 32112, 17117, 32127, 155671, 32136, 32151, 155744, 32157, 32167,
  5963. 32170, 32182, 32192, 32215, 32217, 32230, 17154, 155885, 64088, 32272,
  5964. 32279, 32285, 32295, 32300, 32325, 32373, 32382, {f: 2, c: 32390}, 17195,
  5965. 32410, 17219, 32572, 32571, 32574, 32579, 13505, 156272, 156294,
  5966. {f: 2, c: 32611}, 32621, {f: 2, c: 32637}, 32656, 20859, 146702, 32662,
  5967. 32668, 32685, 156674, 32707, 32719, 32739, 32754, 32778, 32776, 32790,
  5968. 32812, 32816, 32835, 32870, 32891, 32921, 32924, 32932, 32935, 32952,
  5969. 157310, 32965, 32981, 32998, 33037, 33013, 33019, 17390, 33077, 33054,
  5970. 17392, 33060, 33063, 33068, 157469, 33085, 17416, 33129, 17431, 17436,
  5971. 33157, 17442, 33176, 33202, 33217, 33219, 33238, 33243, 157917, 33252,
  5972. 157930, 33260, 33277, 33279, 158063, 33284, 158173, 33305, 33314, 158238,
  5973. 33340, 33353, 33349, 158296, 17526, 17530, 33367, 158348, 33372, 33379,
  5974. 158391, 17553, 33405, 33407, 33411, 33418, 33427, {f: 2, c: 33447}, 33458,
  5975. 33460, 33466, 33468, 33506, 33512, 33527, {f: 2, c: 33543}, 33548, 33620,
  5976. 33563, 33565, 33584, 33596, 33604, 33623, 17598, 17620, 17587,
  5977. {f: 2, c: 33684}, 33691, 33693, 33737, 33744, 33748, 33757, 33765, 33785,
  5978. 33813, 158835, 33815, 33849, 33871, {f: 2, c: 33873}, {f: 2, c: 33881},
  5979. 33884, 158941, 33893, 33912, 33916, 33921, 17677, 33943, 33958, 33982,
  5980. 17672, {f: 2, c: 33998}, 34003, 159333, 34023, 34026, 34031, 34033, 34042,
  5981. 34075, {f: 2, c: 34084}, 34091, 34127, 34159, 17731, 34129,
  5982. {f: 2, c: 34145}, 159636, 34171, 34173, 34175, 34177, 34182, 34195, 34205,
  5983. 34207, 159736, {f: 2, c: 159734}, 34236, 34247, 34250, {f: 2, c: 34264},
  5984. 34271, 34273, 34278, 34294, 34304, 34321, 34334, 34337, 34340, 34343,
  5985. 160013, 34361, 34364, 160057, 34368, 34387, 34390, 34423, 34439, 34441,
  5986. {f: 2, c: 34460}, 34481, 34483, 34497, 34499, 34513, 34517, 34519, 34531,
  5987. 34534, 17848, 34565, 34567, 34574, 34576, 34591, 34593, 34595, 34609,
  5988. 34618, 34624, 34627, 34641, 34648, {f: 2, c: 34660}, 34674, 34684, 160731,
  5989. 160730, 34727, 34697, 34699, 34707, 34720, 160766, 17893, 34750, 160784,
  5990. 34753, 34766, 34783, 160841, 34787, {f: 2, c: 34789}, 34794, 34835, 34856,
  5991. 34862, 34866, 34876, 17935, 34890, 34904, 161301, 161300, 34921, 161329,
  5992. 34927, 34976, 35004, 35008, 161427, 35025, 35027, 17985, 35073, 161550,
  5993. 35127, 161571, 35138, 35141, 35145, 161618, 35170, 35209, 35216, 35231,
  5994. 35248, 35255, 35288, 35307, 18081, 35315, 35325, 35327, 18095, 35345,
  5995. 35348, 162181, 35361, 35381, 35390, 35397, 35405, 35416, 35502, 35472,
  5996. 35511, 35543, 35580, 162436, 35594, 35589, 35597, 35612, 35629, 18188,
  5997. 35665, 35678, 35702, 35713, 35723, {f: 2, c: 35732}, 35897, 162739, 35901,
  5998. 162750, 162759, 35909, 35919, 35927, 35945, 35949, 163000, 35987, 35986,
  5999. 35993, 18276, 35995, 36054, 36053, 163232, 36081, 163344, 36105, 36110,
  6000. 36296, 36313, 36364, 18429, 36349, 36358, 163978, 36372, 36374,
  6001. {f: 2, c: 36385}, 36391, 164027, 18454, 36406, 36409, 36436, 36450, 36461,
  6002. 36463, 36504, 36510, 36533, 36539, 164482, 18510, 164595, 36608, 36616,
  6003. 36651, 36672, 36682, 36696, 164876, 36772, 36788, 164949, 36801, 36806,
  6004. 64036, 36810, 36813, 36819, 36821, 36849, 36853, 36859, 36876, 36919,
  6005. 165227, 36931, 36957, {f: 2, c: 165320}, 36997, 37004, 37008, 37025, 18613,
  6006. 37040, 37046, 37059, 37064, 165591, 37084, 37087, 165626, 37110, 37106,
  6007. 37120, 37099, {f: 2, c: 37118}, 37124, 37126, 37144, 37150, 37175, 37177,
  6008. {f: 2, c: 37190}, 37207, 37209, 37236, 37241, 37253, 37299, 37302,
  6009. {f: 2, c: 37315}, 166217, 166214, 37356, 37377, {f: 2, c: 37398}, 166251,
  6010. 37442, 37450, 37462, 37473, 37477, 37480, 166280, {f: 2, c: 37500}, 37503,
  6011. 37513, 37517, 37527, 37529, 37535, 37547, {f: 2, c: 166330}, 37554,
  6012. {f: 2, c: 37567}, 37574, 37582, 37605, 37649, 166430, 166441, 37623, 37673,
  6013. 166513, 166467, 37713, 37722, 37739, 37745, 37747, 37793, 166553, 166605,
  6014. 37768, 37771, 37775, 37790, 37877, 166628, 166621, 37873, 37831, 37852,
  6015. 37863, 37897, {f: 2, c: 37910}, 37883, 37938, 37947, 166849, 166895, 37997,
  6016. 37999, 38265, 38278, {f: 2, c: 38284}, 167184, 167281, 38344, 167419,
  6017. 167455, 38444, {f: 2, c: 38451}, 167478, 38460, 38497, 167561, 38530,
  6018. 167659, 38554, 167730, 18919, 38579, 38586, 38589, 18938, 167928, 38616,
  6019. 38618, 38621, 18948, 38676, 38691, 18985, 38710, 38721, 38727, 38743,
  6020. 38747, 38762, 168608, 168625, 38806, 38814, {f: 2, c: 38833}, 38846, 38860,
  6021. 38865, 38868, 38872, 38881, 38897, 38916, 38925, 38932, 38934, 19132,
  6022. 169104, {f: 2, c: 38962}, 38949, 38983, 39014, 39083, 39085, 39088, 169423,
  6023. 39095, {f: 2, c: 39099}, 39106, 39111, 39115, 39137, 39139, 39146,
  6024. {f: 2, c: 39152}, 39155, 39176, 19259, 169712, {f: 2, c: 39190}, 169753,
  6025. {f: 3, c: 39194}, 169808, 39217, {f: 3, c: 39226}, 39233, 39238, 39246,
  6026. 39264, 39331, 39334, 39357, 39359, 39363, 39380, 39385, 39390, 170182,
  6027. 39408, 39417, 39420, 39434, 39441, 39450, 39456, 39473, 39492, 39500,
  6028. 39512, 19394, 39599, 19402, 39607, 19410, 39609, 170610, 39622, 39632,
  6029. 39634, 39637, 39648, 39653, 39657, 39692, 39696, 39698, 39702, 39708,
  6030. 39723, 39741, 19488, 39755, 39779, 39781, {f: 2, c: 39787},
  6031. {f: 2, c: 39798}, 39846, 39852, 171483, 39858, 39864, 39870, 39923, 39896,
  6032. 39901, 39914, 39919, 39918, 171541, 171658, 171593, 39958,
  6033. {f: 3, c: 39960}, 39965, 39970, 39977, 171716, 39985, 39991, 40005, 40028,
  6034. 171753, {f: 2, c: 40009}, 171739, 40020, 40024, 40027, 40029, 40031,
  6035. {f: 3, c: 40041}, {f: 2, c: 40045}, 40050, 40053, 40058, 40166, 40178,
  6036. 40203, [171982, 171991], 40209, {f: 2, c: 40215}, 172079, 19652, 172058,
  6037. 40242, 19665, 40266, 40287, 40290, 172281, 172162, 40307, {f: 2, c: 40310},
  6038. 40324, 40345, 40353, 40383, 40373, 40377, 40381, 40393, 40410, 40416,
  6039. 40419, 19719, 40458, 40450, 40461, 40476, 40571, 139800, 40576, 40581,
  6040. 40603, 172940, 40637, 173111, 40671, 40703, 40706, 19831, 40707, 40762,
  6041. 40765, 40774, 40787, 40789, 40792, 173553, 40797, 173570, 40809, 40813,
  6042. 40816, 173746, 11948, 13844, 14509, 15820, 16348, 17854, 17936, 19326,
  6043. 19512, 19681, 19980, {f: 2, c: 20003}, 20089, 20211, 20236, 20249, 20267,
  6044. 20270, 20273, 20356, 20382, 20407, 20484, 20492, 20556, 20575, 20578,
  6045. 20599, 20622, 20638, 20642, 20675, 20712, 20721, 20734, 20743,
  6046. {f: 3, c: 20748}, 20787, 20792, 20852, 20868, 20920, 20922, 20936, 20943,
  6047. 20945, {f: 2, c: 20947}, 20952, 20959, 20997, 21030, 21032, 21035,
  6048. {f: 2, c: 21041}, 21045, 21052, 21082, 21088, 21102, {f: 2, c: 21112},
  6049. 21130, 21132, 21217, 21225, 21233, 21251, 21265, 21279, 21293, 21298,
  6050. 21309, 21349, 21357, 21369, 21374, 21396, 21401, 21418, 21423, 21434,
  6051. 21441, {f: 2, c: 21444}, 21472, 21523, 21546, 21553, {f: 2, c: 21556},
  6052. 21580, 21671, 21674, 21681, 21691, 21710, 21738, 21756, 21765, 21768,
  6053. 21781, 21799, 21802, 21814, 21841, 21862, 21903, 21906, 21908, 21924,
  6054. 21938, 21955, 21958, 21971, 21979, 21996, 21998, 22001, 22006, 22008,
  6055. 22021, 22029, {f: 2, c: 22033}, 22060, 22069, 22073, 22093, 22100, 22149,
  6056. 22175, 22182, 22199, 22220, 22223, 22233, 22241, 22251, 22253, 22257,
  6057. 22279, 22284, {f: 2, c: 22298}, 22301, 22316, 22318, {f: 2, c: 22333},
  6058. 22367, 22379, 22381, 22394, 22403, 22423, 22446, 22485, 22503, 22541,
  6059. 22566, 22605, 22607, 22623, 22637, 22655, 22657, 22680, 22716, 22815,
  6060. 22819, 22873, 22905, 22935, 22959, 22963, 23007, 23025, 23032, 23218,
  6061. 23224, 23274, 23286, 23323, 23325, 23329, 23352, 23479, 23511, 23520,
  6062. 23583, 23594, 23596, 23606, 23641, 23644, 23661, 23773, 23809, 23860,
  6063. 23869, 23897, 23934, 23939, 24007, 24057, 24104, 24114, 24117, 24155,
  6064. 24168, 24170, 24183, 24192, 24203, 24243, 24253, 24273, {f: 2, c: 24276},
  6065. 24397, 24492, 24554, 24583, 24649, 24660, 24679, 24763, 24772, 24829,
  6066. 24842, 24854, 24874, 24886, 24926, 24932, 24955, 24957, 24959, 24989,
  6067. 25016, 25052, 25058, 25061, 25064, 25092, 25095, 25137, 25145, 25149,
  6068. 25210, 25232, 25256, 25306, 25332, 25366, 25386, 25398, 25414, 25419,
  6069. 25427, 25457, 25461, 25471, 25474, 25482, {f: 2, c: 25518}, 25578,
  6070. {f: 2, c: 25592}, 25618, 25624, 25632, 25636, 25642, 25653, 25661, 25663,
  6071. 25682, 25695, 25716, 25744, {f: 2, c: 25752}, 25772, 25779, 25837, 25840,
  6072. 25883, 25887, 25902, 25929, 25952, 26002, 26005, 26036, 26046, 26056,
  6073. 26062, 26064, 26079, 26238, {f: 2, c: 26251}, 26291, 26304, 26319, 26405,
  6074. 26421, 26453, 26496, 26511, 26513, 26532, 26545, 26549, 26558, 26664,
  6075. 26758, 26859, 26869, 26903, 26931, 26936, 26971, 26981, 27048, 27051,
  6076. 27055, 27109, 27121, 27210, 27221, 27239, 27249, 27311, {f: 2, c: 27336},
  6077. 27395, 27451, 27455, {f: 2, c: 27517}, 27568, 27639, 27641, 27652, 27657,
  6078. 27661, 27692, 27722, 27730, 27732, 27769, 27820, 27828, 27858, 28001,
  6079. 28028, 28089, 28144, 28229, 28275, 28283, 28285, 28297, 28348,
  6080. {f: 2, c: 28378}, 28454, 28457, 28464, 28551, 28573, 28590, 28599, 28685,
  6081. 28704, 28745, 28824, 28848, {f: 2, c: 28885}, 28997, 29106, 29172, 29207,
  6082. 29215, 29251, {f: 2, c: 29263}, 29274, 29280, 29288, 29303, 29316, 29385,
  6083. 29413, 29428, 29442, 29451, 29470, 29474, {f: 2, c: 29498}, 29517, 29528,
  6084. 29543, 29810, 29871, 29919, 29924, 29940, 29947, 29974, 29985, 30015,
  6085. 30046, 30105, 30116, 30145, 30148, 30156, 30167, 30172, 30177, 30191,
  6086. 30212, 30220, 30237, 30258, 30264, 30277, 30282, 30303, 30381, 30397,
  6087. 30425, 30443, 30448, 30457, 30464, 30478, 30498, 30504, 30511, 30521,
  6088. 30526, 30533, 30538, 30543, 30558, 30564, 30567, 30572, 30596,
  6089. {f: 2, c: 30604}, 30614, 30631, 30639, 30647, 30654, 30665, 30673, 30681,
  6090. 30705, 30775, 30812, 30846, 30872, 30881, 30897, 30899, 30921, 30931,
  6091. 30988, 31007, {f: 2, c: 31015}, 31039, 31042, 31060, 31083, 31100, 31147,
  6092. 31172, 31210, 31234, 31244, 31280, 31290, 31300, 31360, 31366, 31380,
  6093. 31413, 31421, 31486, 31531, 31607, 31648, 31660, 31664, 31720, 31730,
  6094. 31736, 31740, 31742, 31753, 31784, 31791, 31810, {f: 2, c: 31826},
  6095. {f: 3, c: 31835}, 31858, 31869, 31879, 31902, 31930, 31943, 31955, 31962,
  6096. 32060, 32077, 32130, 32133, 32141, 32145, 32158, 32179, 32185, 32208,
  6097. 32229, {f: 2, c: 32245}, 32303, 32310, 32324, 32367, 32376, 32385, 32573,
  6098. 32603, 32605, 32613, 32625, {f: 2, c: 32639}, 32651, 32674,
  6099. {f: 3, c: 32765}, 32775, 32781, 32798, 32825, 32904, 32910, 32975, 32980,
  6100. 33005, 33008, 33015, 33018, 33022, 33027, 33047, 33072, 33111, 33135,
  6101. 33139, 33163, 33168, 33179, 33182, 33227, 33237, {f: 2, c: 33245}, 33249,
  6102. 33263, 33270, 33280, 33291, {f: 2, c: 33299}, 33306, 33338, 33348, 33389,
  6103. 33412, 33417, 33425, 33450, 33456, 33488, 33514, 33519, 33526, 33622,
  6104. 33656, 33784, 33788, 33880, 33939, 33969, 33981, 34043, 34118, 34134,
  6105. 34141, 34181, 34200, 34370, 34374, 34496, 34580, 34594, 34606, 34617,
  6106. 34653, 34683, 34700, 34702, {f: 2, c: 34711}, 34718, 34723, 34734, 34751,
  6107. 34761, 34778, 34840, 34843, 34861, 34874, 34885, 34891, 34894, 34901,
  6108. 34906, 34926, {f: 3, c: 34970}, 35021, 35040, 35055, {f: 2, c: 35086},
  6109. 35110, 35125, 35162, 35164, 35179, 35184, 35196, 35237, 35253, 35260,
  6110. 35285, 35401, 35415, 35431, 35454, 35462, 35478, 35510, 35529, 35537,
  6111. 35549, 35564, 35573, 35590, 35599, 35601, 35653, 35666, 35693, 35704,
  6112. 35708, 35710, 35717, 35743, 35915, 35923, 35963, 36026, 36037, 36041,
  6113. 36050, 36076, 36085, 36087, 36097, 36099, 36119, 36124, 36206, 36241,
  6114. 36255, 36267, 36274, 36309, 36327, {f: 2, c: 36337}, 36340, 36353, 36363,
  6115. 36390, 36401, {f: 2, c: 36416}, 36429, 36431, 36444, 36449, 36457, 36465,
  6116. 36469, 36471, 36489, 36496, 36501, 36506, 36519, 36521, 36525, 36584,
  6117. 36592, 36615, 36632, 36645, 36647, 36652, 36661, 36666, 36675, 36679,
  6118. 36689, 36693, {f: 3, c: 36768}, 36773, 36868, 36891, 36911, 36940, 36955,
  6119. 36976, 36980, 36985, 37003, 37016, 37024, 37042, 37053, 37065, 37104,
  6120. 37125, 37157, 37210, 37223, 37242, 37258, 37265, 37269, 37296, 37307,
  6121. 37309, 37314, 37317, 37376, 37385, 37411, 37494, 37518, 37551,
  6122. {f: 2, c: 37563}, 37569, 37571, 37573, 37576, 37652, 37683, 37686, 37720,
  6123. 37759, 37762, 37770, 37819, 37836, 37862, 37881, 37890, {f: 2, c: 37901},
  6124. 37934, 37964, 38280, 38305, 38335, 38342, 38345, {f: 2, c: 38353}, 38368,
  6125. 38372, 38374, 38436, 38449, 38456, 38461, 38484, 38516, 38523, 38527,
  6126. 38529, 38531, 38537, 38550, 38574, 38659, 38683, {f: 2, c: 38689}, 38696,
  6127. 38705, 38759, 38774, 38781, 38783, 38809, 38815, 38828, 38841, 38861,
  6128. 38880, 38895, 38919, 38950, 38958, {f: 2, c: 39010}, 39092, 39109, 39170,
  6129. 39185, 39189, 39221, 39240, 39252, 39262, 39393, 39436, 39440, 39459,
  6130. 39489, 39505, {f: 2, c: 39613}, 39681, 39689, 39691, {f: 2, c: 39693},
  6131. 39705, 39733, 39752, 39765, 39784, 39808, 39814, 39824, 39837, 39856,
  6132. 39871, 39880, 39935, 39938, 39964, 39989, 40004, 40022, 40033, 40040,
  6133. 40240, 40253, 40298, 40315, 40421, 40425, 40435, 40570, {f: 3, c: 40578},
  6134. 40624, 40676, 40688, 40690, 40713, 40719, 40724, 40731, 40738, 40742,
  6135. {f: 2, c: 40746}, 40756, 40794, 40815, 40862, 40869, 131317, 151044,
  6136. 151538, 163187, 194581, 194630, 194713, 194726, 194789, 195038, 13790,
  6137. {s: 4}, 172722, 0, 0, 131416, {s: 4}, 132529, 0, 0, 132844, {s: 6}, 134488,
  6138. {s: 21}, 154060, {s: 9}, 14756, 14776, 142914, 0, 0, 14940, 0, 0, 143339,
  6139. 0, 0, 162228, 0, 15044, 15051, {s: 5}, 14981, {s: 8}, 15347, 27384, {s: 5},
  6140. 15665, {s: 9}, 147531, 0, 15936, 14497, {s: 34}, 158878, {s: 12}, 18207,
  6141. 162876, {s: 4}, 18462, {s: 71}, 39709, 39724, 20482, 20958, 21255, 23532,
  6142. 63784, 26142, 63785, 28746, 64021, 21857, 27706, 31328, 156492, 34819,
  6143. 38315, 38741, 171581, 173594],
  6144. 'Adobe-Korea1': [{f: 95, c: 32}, 8361, 8208, 169, 0, 0, [12288, 12644],
  6145. {f: 2, c: 12289}, 12539, 8229, [8230, 8943], 168, 12291, {f: 2, c: 8211},
  6146. 8214, 65340, 65374, {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12308},
  6147. {f: 10, c: 12296}, 177, 215, 247, 8800, {f: 2, c: 8804}, 8734, 8756, 176,
  6148. {f: 2, c: 8242}, 8451, 8491, {f: 2, c: 65504}, 65509, 9794, 9792, 8736,
  6149. 8869, 8978, 8706, 8711, 8801, 8786, 167, 8251, 9734, 9733, 9675, 9679,
  6150. 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8594,
  6151. {f: 2, c: 8592}, {f: 2, c: 8595}, 12307, 171, 187, 8730, 8765, 8733, 8757,
  6152. {f: 2, c: 8747}, 8712, 8715, {f: 2, c: 8838}, {f: 2, c: 8834}, 8746, 8745,
  6153. {f: 2, c: 8743}, 65506, 8658, 8660, 8704, 8707, 180, 732, 711, 728, 733,
  6154. 730, 729, 184, 731, 161, 191, 8758, 8750, 8721, 8719, 164, 8457, 8240,
  6155. 9665, 9664, 9655, 9654, 9828, {f: 2, c: 9824}, 9829, 9831, 9827, 9673,
  6156. 9672, 9635, {f: 2, c: 9680}, 9618, {f: 2, c: 9636}, 9640, 9639, 9638, 9641,
  6157. 9832, 9743, 9742, 9756, 9758, 182, {f: 2, c: 8224}, 8597, 8599, 8601, 8598,
  6158. 8600, 9837, {f: 2, c: 9833}, 9836, 12927, 12828, 8470, 13255, 8482, 13250,
  6159. 13272, 8481, {f: 59, c: 65281}, 65510, {f: 33, c: 65341}, 65507,
  6160. {f: 51, c: 12593}, {f: 42, c: 12645}, {f: 10, c: 8560}, {f: 10, c: 8544},
  6161. {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, 9472,
  6162. 9474, 9484, 9488, 9496, 9492, 9500, 9516, 9508, 9524, 9532, 9473, 9475,
  6163. 9487, 9491, 9499, 9495, 9507, 9523, 9515, 9531, 9547, 9504, 9519, 9512,
  6164. 9527, 9535, 9501, 9520, 9509, 9528, 9538, 9490, 9489, 9498, 9497, 9494,
  6165. 9493, 9486, 9485, {f: 2, c: 9502}, {f: 2, c: 9505}, {f: 2, c: 9510},
  6166. {f: 2, c: 9513}, {f: 2, c: 9517}, {f: 2, c: 9521}, {f: 2, c: 9525},
  6167. {f: 2, c: 9529}, {f: 2, c: 9533}, {f: 2, c: 9536}, {f: 8, c: 9539},
  6168. {f: 3, c: 13205}, 8467, 13208, 13252, {f: 4, c: 13219}, {f: 10, c: 13209},
  6169. 13258, {f: 3, c: 13197}, 13263, {f: 2, c: 13192}, 13256, {f: 2, c: 13223},
  6170. {f: 10, c: 13232}, {f: 5, c: 13184}, {f: 6, c: 13242}, {f: 5, c: 13200},
  6171. 8486, {f: 2, c: 13248}, {f: 3, c: 13194}, 13270, 13253, {f: 3, c: 13229},
  6172. 13275, {f: 4, c: 13225}, 13277, 13264, 13267, 13251, 13257, 13276, 13254,
  6173. 198, 208, 170, 294, 306, 319, 321, 216, 338, 186, 222, 358, 330,
  6174. {f: 28, c: 12896}, {f: 26, c: 9424}, {f: 15, c: 9312}, 189,
  6175. {f: 2, c: 8531}, 188, 190, {f: 4, c: 8539}, 230, 273, 240, 295, 305, 307,
  6176. 312, 320, 322, 248, 339, 223, 254, 359, 331, 329, {f: 28, c: 12800},
  6177. {f: 26, c: 9372}, {f: 15, c: 9332}, 185, {f: 2, c: 178}, 8308, 8319,
  6178. {f: 4, c: 8321}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 6, c: 1040},
  6179. 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, {f: 2, c: 44032}, 44036,
  6180. {f: 4, c: 44039}, {f: 8, c: 44048}, {f: 5, c: 44057}, 44064, 44068,
  6181. {f: 2, c: 44076}, {f: 3, c: 44079}, {f: 2, c: 44088}, 44092, 44096, 44107,
  6182. 44109, 44116, 44120, 44124, {f: 2, c: 44144}, 44148, {f: 2, c: 44151},
  6183. 44154, {f: 2, c: 44160}, {f: 4, c: 44163}, {f: 4, c: 44169}, 44176, 44180,
  6184. {f: 2, c: 44188}, {f: 3, c: 44191}, {f: 3, c: 44200}, 44204,
  6185. {f: 2, c: 44207}, {f: 2, c: 44216}, {f: 3, c: 44219}, 44225, 44228, 44232,
  6186. 44236, 44245, 44247, {f: 2, c: 44256}, 44260, {f: 2, c: 44263}, 44266,
  6187. 44268, {f: 3, c: 44271}, 44275, {f: 2, c: 44277}, {f: 2, c: 44284}, 44288,
  6188. 44292, 44294, {f: 2, c: 44300}, 44303, 44305, 44312, 44316, 44320, 44329,
  6189. {f: 2, c: 44332}, {f: 2, c: 44340}, 44344, 44348, {f: 2, c: 44356}, 44359,
  6190. 44361, 44368, 44372, 44376, 44385, 44387, {f: 2, c: 44396}, 44400,
  6191. {f: 4, c: 44403}, {f: 3, c: 44411}, 44415, {f: 2, c: 44417},
  6192. {f: 2, c: 44424}, 44428, 44432, {f: 2, c: 44444}, 44452, 44471,
  6193. {f: 2, c: 44480}, 44484, 44488, {f: 2, c: 44496}, 44499, 44508, 44512,
  6194. 44516, {f: 2, c: 44536}, 44540, {f: 3, c: 44543}, {f: 2, c: 44552}, 44555,
  6195. 44557, 44564, {f: 2, c: 44592}, 44596, {f: 2, c: 44599}, 44602,
  6196. {f: 2, c: 44608}, 44611, {f: 2, c: 44613}, 44618, {f: 3, c: 44620}, 44624,
  6197. 44628, 44630, {f: 2, c: 44636}, {f: 3, c: 44639}, 44645, {f: 2, c: 44648},
  6198. 44652, 44656, {f: 2, c: 44664}, {f: 3, c: 44667}, {f: 2, c: 44676}, 44684,
  6199. {f: 3, c: 44732}, 44736, 44740, {f: 2, c: 44748}, {f: 3, c: 44751},
  6200. {f: 2, c: 44760}, 44764, 44776, 44779, 44781, 44788, 44792, 44796,
  6201. {f: 2, c: 44807}, 44813, 44816, {f: 2, c: 44844}, 44848, 44850, 44852,
  6202. {f: 2, c: 44860}, 44863, {f: 3, c: 44865}, {f: 2, c: 44872}, 44880,
  6203. {f: 2, c: 44892}, {f: 2, c: 44900}, 44921, 44928, 44932, 44936,
  6204. {f: 2, c: 44944}, 44949, 44956, {f: 2, c: 44984}, 44988, 44992,
  6205. {f: 3, c: 44999}, 45003, {f: 2, c: 45005}, 45012, 45020, {f: 2, c: 45032},
  6206. {f: 2, c: 45040}, 45044, 45048, {f: 2, c: 45056}, 45060, 45068, 45072,
  6207. 45076, {f: 2, c: 45084}, 45096, {f: 2, c: 45124}, 45128, 45130, 45132,
  6208. 45134, {f: 3, c: 45139}, 45143, 45145, 45149, {f: 2, c: 45180}, 45184,
  6209. 45188, {f: 2, c: 45196}, 45199, 45201, {f: 3, c: 45208}, 45212,
  6210. {f: 4, c: 45215}, {f: 2, c: 45224}, {f: 5, c: 45227}, 45233,
  6211. {f: 3, c: 45235}, 45240, 45244, {f: 2, c: 45252}, {f: 3, c: 45255},
  6212. {f: 2, c: 45264}, 45268, 45272, 45280, 45285, {f: 2, c: 45320},
  6213. {f: 2, c: 45323}, 45328, {f: 2, c: 45330}, {f: 2, c: 45336},
  6214. {f: 3, c: 45339}, {f: 3, c: 45347}, 45352, 45356, {f: 2, c: 45364},
  6215. {f: 3, c: 45367}, {f: 2, c: 45376}, 45380, 45384, {f: 2, c: 45392},
  6216. {f: 2, c: 45396}, 45400, 45404, 45408, {f: 2, c: 45432}, 45436, 45440,
  6217. 45442, {f: 2, c: 45448}, 45451, 45453, {f: 3, c: 45458}, 45464, 45468,
  6218. 45480, 45516, 45520, 45524, {f: 2, c: 45532}, 45535, {f: 2, c: 45544},
  6219. 45548, 45552, 45561, 45563, 45565, {f: 2, c: 45572}, 45576,
  6220. {f: 2, c: 45579}, {f: 2, c: 45588}, 45591, 45593, 45600, 45620, 45628,
  6221. 45656, 45660, 45664, {f: 2, c: 45672}, {f: 2, c: 45684}, 45692,
  6222. {f: 2, c: 45700}, 45705, {f: 2, c: 45712}, 45716, {f: 3, c: 45720},
  6223. {f: 2, c: 45728}, 45731, {f: 2, c: 45733}, 45738, 45740, 45744, 45748,
  6224. {f: 2, c: 45768}, 45772, 45776, 45778, {f: 2, c: 45784}, 45787, 45789,
  6225. 45794, {f: 3, c: 45796}, 45800, {f: 5, c: 45803}, {f: 3, c: 45811},
  6226. {f: 5, c: 45815}, {f: 3, c: 45823}, 45828, 45832, {f: 2, c: 45840},
  6227. {f: 3, c: 45843}, 45852, {f: 3, c: 45908}, 45912, {f: 2, c: 45915},
  6228. {f: 2, c: 45918}, {f: 2, c: 45924}, 45927, 45929, 45931, 45934,
  6229. {f: 2, c: 45936}, 45940, 45944, {f: 2, c: 45952}, {f: 3, c: 45955}, 45964,
  6230. 45968, 45972, {f: 2, c: 45984}, 45992, 45996, {f: 2, c: 46020}, 46024,
  6231. {f: 2, c: 46027}, 46030, 46032, {f: 2, c: 46036}, 46039, 46041, 46043,
  6232. 46045, 46048, 46052, 46056, 46076, 46096, 46104, 46108, 46112,
  6233. {f: 2, c: 46120}, 46123, 46132, {f: 2, c: 46160}, 46164, 46168,
  6234. {f: 2, c: 46176}, 46179, 46181, 46188, 46208, 46216, 46237, 46244, 46248,
  6235. 46252, 46261, 46263, 46265, 46272, 46276, 46280, 46288, 46293,
  6236. {f: 2, c: 46300}, 46304, {f: 2, c: 46307}, 46310, {f: 2, c: 46316}, 46319,
  6237. 46321, 46328, {f: 2, c: 46356}, 46360, {f: 2, c: 46363}, {f: 2, c: 46372},
  6238. {f: 4, c: 46375}, {f: 2, c: 46384}, 46388, 46392, {f: 2, c: 46400},
  6239. {f: 3, c: 46403}, {f: 3, c: 46411}, 46416, 46420, {f: 2, c: 46428},
  6240. {f: 3, c: 46431}, {f: 2, c: 46496}, 46500, 46504, {f: 2, c: 46506},
  6241. {f: 2, c: 46512}, {f: 3, c: 46515}, {f: 3, c: 46523}, 46528, 46532,
  6242. {f: 2, c: 46540}, {f: 3, c: 46543}, 46552, 46572, {f: 2, c: 46608}, 46612,
  6243. 46616, 46629, 46636, 46644, 46664, 46692, 46696, {f: 2, c: 46748}, 46752,
  6244. 46756, {f: 2, c: 46763}, 46769, 46804, 46832, 46836, 46840,
  6245. {f: 2, c: 46848}, 46853, {f: 2, c: 46888}, 46892, {f: 2, c: 46895},
  6246. {f: 2, c: 46904}, 46907, 46916, 46920, 46924, {f: 2, c: 46932}, 46944,
  6247. 46948, 46952, {f: 2, c: 46960}, 46963, 46965, {f: 2, c: 46972}, 46976,
  6248. 46980, {f: 2, c: 46988}, {f: 4, c: 46991}, {f: 4, c: 46998}, 47004, 47008,
  6249. {f: 2, c: 47016}, {f: 3, c: 47019}, {f: 2, c: 47028}, 47032, 47047, 47049,
  6250. {f: 2, c: 47084}, 47088, 47092, {f: 2, c: 47100}, {f: 3, c: 47103},
  6251. {f: 3, c: 47111}, 47116, 47120, {f: 2, c: 47128}, 47131, 47133,
  6252. {f: 2, c: 47140}, 47144, 47148, {f: 2, c: 47156}, {f: 3, c: 47159}, 47168,
  6253. 47172, 47185, 47187, {f: 2, c: 47196}, 47200, 47204, {f: 2, c: 47212},
  6254. 47215, 47217, 47224, 47228, 47245, 47272, 47280, 47284, 47288,
  6255. {f: 2, c: 47296}, 47299, 47301, 47308, 47312, 47316, 47325, 47327, 47329,
  6256. {f: 2, c: 47336}, 47340, 47344, {f: 2, c: 47352}, 47355, 47357, 47364,
  6257. 47384, 47392, {f: 2, c: 47420}, 47424, 47428, 47436, 47439, 47441,
  6258. {f: 2, c: 47448}, 47452, 47456, {f: 2, c: 47464}, 47467, 47469,
  6259. {f: 2, c: 47476}, 47480, 47484, {f: 2, c: 47492}, 47495, {f: 2, c: 47497},
  6260. {f: 2, c: 47501}, {f: 2, c: 47532}, 47536, 47540, {f: 2, c: 47548}, 47551,
  6261. 47553, {f: 2, c: 47560}, 47564, {f: 5, c: 47566}, {f: 2, c: 47576}, 47579,
  6262. {f: 2, c: 47581}, 47585, {f: 3, c: 47587}, 47592, 47596, {f: 2, c: 47604},
  6263. {f: 4, c: 47607}, {f: 2, c: 47616}, 47624, 47637, {f: 2, c: 47672}, 47676,
  6264. 47680, 47682, {f: 2, c: 47688}, 47691, {f: 2, c: 47693}, {f: 3, c: 47699},
  6265. 47704, 47708, {f: 2, c: 47716}, {f: 3, c: 47719}, {f: 2, c: 47728}, 47732,
  6266. 47736, {f: 3, c: 47747}, 47751, 47756, {f: 2, c: 47784}, {f: 2, c: 47787},
  6267. 47792, 47794, {f: 2, c: 47800}, 47803, 47805, 47812, 47816,
  6268. {f: 2, c: 47832}, 47868, 47872, 47876, 47885, 47887, 47889, 47896, 47900,
  6269. 47904, 47913, 47915, {f: 3, c: 47924}, 47928, {f: 4, c: 47931},
  6270. {f: 2, c: 47940}, 47943, 47945, 47949, {f: 2, c: 47951}, 47956, 47960,
  6271. 47969, 47971, 47980, 48008, 48012, 48016, 48036, 48040, 48044, 48052,
  6272. 48055, 48064, 48068, 48072, 48080, 48083, {f: 2, c: 48120}, 48124,
  6273. {f: 2, c: 48127}, 48130, {f: 2, c: 48136}, {f: 3, c: 48139}, 48143, 48145,
  6274. {f: 5, c: 48148}, {f: 5, c: 48155}, {f: 2, c: 48164}, 48167, 48169, 48173,
  6275. {f: 2, c: 48176}, 48180, 48184, {f: 2, c: 48192}, {f: 3, c: 48195}, 48201,
  6276. {f: 2, c: 48204}, 48208, 48221, {f: 2, c: 48260}, 48264, {f: 2, c: 48267},
  6277. 48270, {f: 2, c: 48276}, 48279, {f: 2, c: 48281}, {f: 2, c: 48288}, 48292,
  6278. {f: 2, c: 48295}, {f: 2, c: 48304}, {f: 3, c: 48307}, {f: 2, c: 48316},
  6279. 48320, 48324, 48333, {f: 3, c: 48335}, 48341, 48344, 48348,
  6280. {f: 3, c: 48372}, 48376, 48380, {f: 2, c: 48388}, 48391, 48393, 48400,
  6281. 48404, 48420, 48428, 48448, {f: 2, c: 48456}, 48460, 48464,
  6282. {f: 2, c: 48472}, 48484, 48488, {f: 2, c: 48512}, 48516, {f: 4, c: 48519},
  6283. {f: 2, c: 48528}, 48531, 48533, {f: 2, c: 48537}, 48540, 48548, 48560,
  6284. 48568, {f: 2, c: 48596}, 48600, 48604, 48617, 48624, 48628, 48632, 48640,
  6285. 48643, 48645, {f: 2, c: 48652}, 48656, 48660, {f: 2, c: 48668}, 48671,
  6286. {f: 2, c: 48708}, 48712, 48716, 48718, {f: 2, c: 48724}, 48727,
  6287. {f: 3, c: 48729}, {f: 2, c: 48736}, 48740, 48744, 48746, {f: 2, c: 48752},
  6288. {f: 3, c: 48755}, {f: 3, c: 48763}, 48768, 48772, {f: 2, c: 48780},
  6289. {f: 3, c: 48783}, {f: 2, c: 48792}, 48808, {f: 2, c: 48848}, 48852,
  6290. {f: 2, c: 48855}, 48864, {f: 3, c: 48867}, 48876, 48897, {f: 2, c: 48904},
  6291. {f: 2, c: 48920}, {f: 3, c: 48923}, {f: 2, c: 48960}, 48964, 48968,
  6292. {f: 2, c: 48976}, 48981, 49044, 49072, 49093, {f: 2, c: 49100}, 49104,
  6293. 49108, 49116, 49119, 49121, 49212, 49233, 49240, 49244, 49248,
  6294. {f: 2, c: 49256}, {f: 2, c: 49296}, 49300, 49304, {f: 2, c: 49312}, 49315,
  6295. 49317, {f: 2, c: 49324}, {f: 2, c: 49327}, {f: 4, c: 49331},
  6296. {f: 2, c: 49340}, {f: 3, c: 49343}, 49349, {f: 2, c: 49352}, 49356, 49360,
  6297. {f: 2, c: 49368}, {f: 3, c: 49371}, {f: 2, c: 49380}, 49384, 49388,
  6298. {f: 2, c: 49396}, 49399, 49401, 49408, 49412, 49416, 49424, 49429,
  6299. {f: 5, c: 49436}, {f: 2, c: 49443}, {f: 2, c: 49446}, {f: 2, c: 49452},
  6300. {f: 3, c: 49455}, 49462, {f: 2, c: 49464}, 49468, 49472, {f: 2, c: 49480},
  6301. {f: 3, c: 49483}, {f: 2, c: 49492}, 49496, 49500, {f: 2, c: 49508},
  6302. {f: 3, c: 49511}, 49520, 49524, 49528, 49541, {f: 3, c: 49548}, 49552,
  6303. 49556, 49558, {f: 2, c: 49564}, 49567, 49569, 49573, {f: 2, c: 49576},
  6304. 49580, 49584, 49597, 49604, 49608, 49612, 49620, {f: 2, c: 49623}, 49632,
  6305. 49636, 49640, {f: 2, c: 49648}, 49651, {f: 2, c: 49660}, 49664, 49668,
  6306. {f: 2, c: 49676}, 49679, 49681, {f: 2, c: 49688}, 49692, {f: 2, c: 49695},
  6307. {f: 2, c: 49704}, 49707, 49709, 49711, {f: 2, c: 49713}, 49716, 49736,
  6308. {f: 2, c: 49744}, 49748, 49752, 49760, 49765, {f: 2, c: 49772}, 49776,
  6309. 49780, {f: 2, c: 49788}, 49791, 49793, {f: 2, c: 49800}, 49808, 49816,
  6310. 49819, 49821, {f: 2, c: 49828}, 49832, {f: 2, c: 49836}, {f: 2, c: 49844},
  6311. 49847, 49849, {f: 2, c: 49884}, 49888, {f: 2, c: 49891}, {f: 3, c: 49899},
  6312. 49903, 49905, 49910, {f: 2, c: 49912}, {f: 2, c: 49915}, 49920,
  6313. {f: 2, c: 49928}, {f: 2, c: 49932}, {f: 3, c: 49939}, 49944, 49948,
  6314. {f: 2, c: 49956}, {f: 2, c: 49960}, 49989, {f: 2, c: 50024}, 50028, 50032,
  6315. 50034, {f: 2, c: 50040}, {f: 2, c: 50044}, 50052, 50056, 50060, 50112,
  6316. {f: 2, c: 50136}, 50140, {f: 2, c: 50143}, 50146, {f: 2, c: 50152}, 50157,
  6317. {f: 2, c: 50164}, 50168, 50184, 50192, 50212, 50220, 50224, 50228,
  6318. {f: 2, c: 50236}, 50248, {f: 2, c: 50276}, 50280, 50284, {f: 2, c: 50292},
  6319. 50297, 50304, 50324, 50332, 50360, 50364, 50409, {f: 2, c: 50416}, 50420,
  6320. 50424, 50426, {f: 3, c: 50431}, 50444, 50448, 50452, 50460,
  6321. {f: 2, c: 50472}, 50476, 50480, {f: 2, c: 50488}, 50491, 50493,
  6322. {f: 2, c: 50500}, {f: 3, c: 50504}, {f: 3, c: 50508}, {f: 3, c: 50515},
  6323. {f: 3, c: 50519}, {f: 2, c: 50525}, {f: 2, c: 50528}, 50532, 50536,
  6324. {f: 2, c: 50544}, {f: 3, c: 50547}, {f: 2, c: 50556}, 50560, 50564, 50567,
  6325. {f: 2, c: 50572}, 50575, 50577, 50581, {f: 2, c: 50583}, 50588, 50592,
  6326. 50601, {f: 2, c: 50612}, {f: 2, c: 50616}, {f: 4, c: 50619},
  6327. {f: 7, c: 50628}, 50636, 50638, {f: 2, c: 50640}, 50644, 50648,
  6328. {f: 2, c: 50656}, 50659, 50661, {f: 3, c: 50668}, 50672, 50676,
  6329. {f: 2, c: 50678}, {f: 6, c: 50684}, {f: 4, c: 50693}, 50700, 50704,
  6330. {f: 2, c: 50712}, {f: 2, c: 50715}, {f: 2, c: 50724}, 50728,
  6331. {f: 3, c: 50732}, 50736, {f: 3, c: 50739}, 50743, 50745, 50747,
  6332. {f: 2, c: 50752}, 50756, 50760, {f: 2, c: 50768}, {f: 3, c: 50771},
  6333. {f: 2, c: 50780}, 50784, 50796, 50799, 50801, {f: 2, c: 50808}, 50812,
  6334. 50816, {f: 2, c: 50824}, 50827, 50829, {f: 2, c: 50836}, 50840, 50844,
  6335. {f: 2, c: 50852}, 50855, 50857, {f: 2, c: 50864}, 50868, {f: 3, c: 50872},
  6336. {f: 2, c: 50880}, 50883, 50885, {f: 2, c: 50892}, 50896, 50900,
  6337. {f: 2, c: 50908}, {f: 2, c: 50912}, {f: 2, c: 50920}, 50924, 50928,
  6338. {f: 2, c: 50936}, 50941, {f: 2, c: 50948}, 50952, 50956, {f: 2, c: 50964},
  6339. 50967, 50969, {f: 2, c: 50976}, 50980, 50984, {f: 2, c: 50992}, 50995,
  6340. 50997, 50999, {f: 2, c: 51004}, 51008, 51012, 51018, {f: 2, c: 51020},
  6341. 51023, {f: 8, c: 51025}, 51036, 51040, 51048, 51051, {f: 2, c: 51060},
  6342. 51064, {f: 3, c: 51068}, {f: 3, c: 51075}, {f: 4, c: 51079}, 51086,
  6343. {f: 2, c: 51088}, 51092, {f: 3, c: 51094}, 51098, {f: 2, c: 51104},
  6344. {f: 4, c: 51107}, {f: 2, c: 51116}, 51120, 51124, {f: 2, c: 51132},
  6345. {f: 3, c: 51135}, {f: 2, c: 51144}, 51148, 51150, 51152, 51160, 51165,
  6346. 51172, 51176, 51180, {f: 2, c: 51200}, 51204, 51208, 51210,
  6347. {f: 2, c: 51216}, 51219, {f: 2, c: 51221}, {f: 2, c: 51228}, 51232, 51236,
  6348. {f: 2, c: 51244}, 51247, 51249, 51256, 51260, 51264, {f: 2, c: 51272},
  6349. {f: 2, c: 51276}, 51284, {f: 2, c: 51312}, 51316, 51320, 51322,
  6350. {f: 2, c: 51328}, 51331, {f: 3, c: 51333}, {f: 3, c: 51339}, 51348, 51357,
  6351. 51359, 51361, 51368, {f: 2, c: 51388}, 51396, 51400, 51404,
  6352. {f: 2, c: 51412}, 51415, 51417, {f: 2, c: 51424}, 51428, 51445,
  6353. {f: 2, c: 51452}, 51456, {f: 3, c: 51460}, {f: 2, c: 51468}, 51471, 51473,
  6354. 51480, 51500, 51508, {f: 2, c: 51536}, 51540, 51544, {f: 2, c: 51552},
  6355. 51555, 51564, 51568, 51572, 51580, {f: 2, c: 51592}, 51596, 51600,
  6356. {f: 2, c: 51608}, 51611, 51613, {f: 2, c: 51648}, 51652, {f: 2, c: 51655},
  6357. 51658, {f: 2, c: 51664}, 51667, {f: 2, c: 51669}, {f: 2, c: 51673},
  6358. {f: 2, c: 51676}, 51680, 51682, 51684, 51687, {f: 2, c: 51692},
  6359. {f: 3, c: 51695}, {f: 2, c: 51704}, 51708, 51712, {f: 2, c: 51720},
  6360. {f: 3, c: 51723}, 51732, 51736, 51753, {f: 2, c: 51788}, 51792, 51796,
  6361. {f: 2, c: 51804}, {f: 3, c: 51807}, 51816, 51837, 51844, 51864,
  6362. {f: 2, c: 51900}, 51904, 51908, {f: 2, c: 51916}, 51919, 51921, 51923,
  6363. {f: 2, c: 51928}, 51936, 51948, 51956, 51976, 51984, 51988, 51992,
  6364. {f: 2, c: 52000}, 52033, {f: 2, c: 52040}, 52044, 52048, {f: 2, c: 52056},
  6365. 52061, 52068, {f: 2, c: 52088}, 52124, 52152, 52180, 52196, 52199, 52201,
  6366. {f: 2, c: 52236}, 52240, 52244, {f: 2, c: 52252}, {f: 2, c: 52257},
  6367. {f: 3, c: 52263}, 52268, 52270, 52272, {f: 2, c: 52280}, {f: 4, c: 52283},
  6368. {f: 2, c: 52292}, 52296, 52300, {f: 2, c: 52308}, {f: 3, c: 52311}, 52320,
  6369. 52324, 52326, 52328, 52336, 52341, {f: 2, c: 52376}, 52380, 52384,
  6370. {f: 2, c: 52392}, {f: 3, c: 52395}, {f: 2, c: 52404}, 52408, 52412,
  6371. {f: 2, c: 52420}, 52423, 52425, 52432, 52436, 52452, 52460, 52464, 52481,
  6372. {f: 2, c: 52488}, 52492, 52496, {f: 2, c: 52504}, 52507, 52509, 52516,
  6373. 52520, 52524, 52537, 52572, 52576, 52580, {f: 2, c: 52588}, 52591, 52593,
  6374. 52600, 52616, {f: 2, c: 52628}, 52632, 52636, {f: 2, c: 52644}, 52647,
  6375. 52649, 52656, 52676, 52684, 52688, 52712, 52716, 52720, {f: 2, c: 52728},
  6376. 52731, 52733, 52740, 52744, 52748, 52756, 52761, {f: 2, c: 52768}, 52772,
  6377. 52776, {f: 2, c: 52784}, 52787, 52789, {f: 2, c: 52824}, 52828,
  6378. {f: 3, c: 52831}, {f: 2, c: 52840}, 52843, 52845, {f: 2, c: 52852}, 52856,
  6379. 52860, {f: 2, c: 52868}, 52871, 52873, {f: 2, c: 52880}, 52884, 52888,
  6380. {f: 2, c: 52896}, {f: 3, c: 52899}, {f: 2, c: 52908}, 52929,
  6381. {f: 2, c: 52964}, 52968, {f: 2, c: 52971}, {f: 2, c: 52980},
  6382. {f: 3, c: 52983}, {f: 2, c: 52992}, 52996, 53000, {f: 2, c: 53008}, 53011,
  6383. 53013, 53020, 53024, 53028, {f: 2, c: 53036}, {f: 3, c: 53039}, 53048,
  6384. {f: 2, c: 53076}, 53080, 53084, {f: 2, c: 53092}, 53095, 53097,
  6385. {f: 2, c: 53104}, 53108, 53112, 53120, 53125, 53132, 53153, 53160, 53168,
  6386. 53188, {f: 2, c: 53216}, 53220, 53224, {f: 2, c: 53232}, 53235, 53237,
  6387. 53244, 53248, 53252, 53265, 53272, 53293, {f: 2, c: 53300}, 53304, 53308,
  6388. {f: 2, c: 53316}, 53319, 53321, 53328, 53332, 53336, 53344,
  6389. {f: 2, c: 53356}, 53360, 53364, {f: 2, c: 53372}, 53377, {f: 2, c: 53412},
  6390. 53416, 53420, {f: 2, c: 53428}, 53431, 53433, {f: 2, c: 53440}, 53444,
  6391. {f: 2, c: 53448}, {f: 2, c: 53456}, {f: 3, c: 53459}, {f: 2, c: 53468},
  6392. 53472, 53476, {f: 2, c: 53484}, {f: 3, c: 53487}, 53496, 53517,
  6393. {f: 2, c: 53552}, 53556, 53560, 53562, {f: 2, c: 53568}, {f: 3, c: 53571},
  6394. {f: 2, c: 53580}, 53584, 53588, {f: 2, c: 53596}, 53599, 53601, 53608,
  6395. 53612, 53628, 53636, 53640, {f: 2, c: 53664}, 53668, 53672,
  6396. {f: 2, c: 53680}, 53683, 53685, 53690, 53692, 53696, 53720, 53748, 53752,
  6397. 53767, 53769, 53776, {f: 2, c: 53804}, 53808, 53812, {f: 2, c: 53820},
  6398. 53823, 53825, 53832, 53852, 53860, {f: 2, c: 53888}, 53892, 53896,
  6399. {f: 2, c: 53904}, 53909, 53916, 53920, 53924, 53932, 53937,
  6400. {f: 2, c: 53944}, 53948, {f: 2, c: 53951}, 53954, {f: 2, c: 53960}, 53963,
  6401. 53972, 53976, 53980, {f: 2, c: 53988}, {f: 2, c: 54000}, 54004, 54008,
  6402. {f: 2, c: 54016}, 54019, 54021, {f: 3, c: 54028}, 54032, 54036, 54038,
  6403. {f: 2, c: 54044}, {f: 3, c: 54047}, 54053, {f: 2, c: 54056}, 54060, 54064,
  6404. {f: 2, c: 54072}, {f: 3, c: 54075}, {f: 2, c: 54084}, {f: 2, c: 54140},
  6405. 54144, 54148, {f: 2, c: 54156}, {f: 3, c: 54159}, {f: 2, c: 54168}, 54172,
  6406. 54176, {f: 2, c: 54184}, 54187, 54189, 54196, 54200, 54204,
  6407. {f: 2, c: 54212}, {f: 2, c: 54216}, 54224, 54232, 54241, 54243,
  6408. {f: 2, c: 54252}, 54256, 54260, {f: 2, c: 54268}, 54271, 54273, 54280,
  6409. 54301, 54336, 54340, 54364, 54368, 54372, 54381, 54383, {f: 2, c: 54392},
  6410. 54396, {f: 2, c: 54399}, 54402, {f: 2, c: 54408}, 54411, 54413, 54420,
  6411. 54441, 54476, 54480, 54484, 54492, 54495, 54504, 54508, 54512, 54520,
  6412. 54523, 54525, 54532, 54536, 54540, {f: 2, c: 54548}, 54551,
  6413. {f: 2, c: 54588}, 54592, 54596, {f: 2, c: 54604}, 54607, 54609,
  6414. {f: 2, c: 54616}, 54620, 54624, 54629, {f: 2, c: 54632}, 54635, 54637,
  6415. {f: 2, c: 54644}, 54648, 54652, {f: 2, c: 54660}, {f: 3, c: 54663}, 54672,
  6416. 54693, {f: 2, c: 54728}, 54732, 54736, 54738, {f: 2, c: 54744}, 54747,
  6417. 54749, {f: 2, c: 54756}, 54760, 54764, {f: 2, c: 54772}, 54775, 54777,
  6418. {f: 2, c: 54784}, 54788, 54792, {f: 2, c: 54800}, {f: 3, c: 54803}, 54812,
  6419. 54816, 54820, 54829, {f: 2, c: 54840}, 54844, 54848, 54853,
  6420. {f: 2, c: 54856}, 54859, 54861, 54865, {f: 2, c: 54868}, 54872, 54876,
  6421. 54887, 54889, {f: 2, c: 54896}, 54900, 54915, 54917, {f: 2, c: 54924},
  6422. 54928, 54932, 54941, 54943, 54945, 54952, 54956, 54960, 54969, 54971,
  6423. {f: 2, c: 54980}, 54984, 54988, 54993, 54996, 54999, 55001, 55008, 55012,
  6424. 55016, 55024, 55029, {f: 2, c: 55036}, 55040, 55044, 55057,
  6425. {f: 2, c: 55064}, 55068, 55072, {f: 2, c: 55080}, 55083, 55085,
  6426. {f: 2, c: 55092}, 55096, 55100, 55108, 55111, 55113, {f: 2, c: 55120},
  6427. 55124, {f: 4, c: 55126}, {f: 2, c: 55136}, 55139, 55141, 55145, 55148,
  6428. 55152, 55156, {f: 2, c: 55164}, 55169, {f: 2, c: 55176}, 55180, 55184,
  6429. {f: 2, c: 55192}, 55195, 55197, 20285, 20339, 20551, 20729, 21152, 21487,
  6430. 21621, 21733, 22025, 23233, 23478, 26247, {f: 2, c: 26550}, 26607, 27468,
  6431. 29634, 30146, 31292, 33499, 33540, 34903, 34952, 35382, [36040, 63747],
  6432. 36303, 36603, 36838, 39381, 21051, 21364, 21508, 24682, 24932, 27580,
  6433. 29647, 33050, 35258, [12179, 35282], 38307, 20355, 21002, 22718, 22904,
  6434. 23014, [12082, 24178], 24185, 25031, 25536, 26438, 26604, 26751, 28567,
  6435. 30286, 30475, 30965, 31240, 31487, 31777, 32925, [12169, 33390], 33393,
  6436. 35563, 38291, 20075, 21917, 26359, 28212, 30883, 31469, 33883, 35088,
  6437. 34638, 38824, 21208, 22350, 22570, 23884, 24863, 25022, 25121, 25954,
  6438. 26577, 27204, 28187, [12130, 29976], 30131, 30435, 30640, 32058, 37039,
  6439. {f: 2, c: 37969}, 40853, 21283, 23724, 30002, 32987, 37440, 38296, 21083,
  6440. 22536, 23004, 23713, 23831, 24247, 24378, 24394, 24951, 27743, 30074,
  6441. 30086, 31968, 32115, 32177, 32652, 33108, 33313, 34193, 35137, 35611,
  6442. 37628, [38477, 64009], 40007, 20171, 20215, 20491, 20977, 22607, 24887,
  6443. 24894, 24936, 25913, 27114, 28433, 30117, 30342, 30422, 31623, 33445,
  6444. 33995, 37799, 38283, 21888, 23458, 22353, 31923, 32697, 37301, 20520,
  6445. 21435, 23621, 24040, 25298, 25454, 25818, 25831, 28192, 28844, 31067,
  6446. 36317, 36382, 36989, 37445, 37624, 20094, 20214, 20581, [12081, 24062],
  6447. 24314, 24838, 26967, 33137, 34388, 36423, 37749, 39467, 20062, 20625,
  6448. 26480, 26688, 20745, 21133, 21138, 27298, 30652, 37392, 40660, 21163,
  6449. 24623, 36850, 20552, 25001, 25581, 25802, 26684, 27268, 28608, 33160,
  6450. 35233, 38548, 22533, 29309, [12125, 29356], 29956, 32121, 32365, 32937,
  6451. [12178, 35211, 64010], 35700, 36963, 40273, 25225, 27770, 28500, 32080,
  6452. 32570, 35363, 20860, 24906, 31645, 35609, 37463, 37772, 20140, 20435,
  6453. 20510, 20670, 20742, 21185, 21197, 21375, 22384, 22659, 24218, 24465,
  6454. 24950, 25004, 25806, 25964, 26223, 26299, [26356, 63745], 26775, 28039,
  6455. 28805, 28913, 29855, 29861, 29898, 30169, 30828, 30956, 31455, 31478,
  6456. 32069, 32147, 32789, 32831, 33051, 33686, 35686, 36629, 36885, 37857,
  6457. 38915, 38968, 39514, 39912, 20418, 21843, 22586, [22865, 63753], 23395,
  6458. 23622, 24760, 25106, 26690, 26800, 26856, 28330, 30028, 30328, 30926,
  6459. 31293, 31995, 32363, 32380, 35336, 35489, 35903, 38542, 40388, 21476,
  6460. 21481, 21578, 21617, 22266, 22993, 23396, 23611, 24235, 25335, 25911,
  6461. 25925, 25970, 26272, 26543, 27073, 27837, 30204, 30352, 30590, 31295,
  6462. 32660, 32771, 32929, 33167, 33510, 33533, 33776, 34241, 34865, 34996,
  6463. 35493, 36764, 37678, 38599, 39015, [12220, 39640], [12238, 40723], 21741,
  6464. 26011, 26354, 26767, 31296, [12181, 35895], 40288, 22256, 22372, 23825,
  6465. 26118, 26801, 26829, 28414, 29736, 34974, 39908, 27752, [12219, 39592],
  6466. 20379, 20844, 20849, 21151, 23380, [12079, 24037], 24656, 24685, 25329,
  6467. 25511, 25915, 29657, 31354, 34467, 36002, 38799, [20018, 63749], 23521,
  6468. [12093, 25096], 26524, [12128, 29916], 31185, 33747, 35463, 35506, 36328,
  6469. 36942, 37707, 38982, [24275, 64011], 27112, 34303, 37101, 20896, 23448,
  6470. 23532, 24931, 26874, 27454, 28748, 29743, 29912, 31649, 32592, 33733,
  6471. 35264, 36011, 38364, 39208, 21038, 24669, 25324, 36866, 20362, 20809,
  6472. 21281, 22745, 24291, 26336, 27960, 28826, 29378, 29654, 31568, 33009,
  6473. 37979, 21350, 25499, 32619, 20054, 20608, 22602, 22750, 24618, 24871,
  6474. 25296, 27088, 39745, 23439, 32024, 32945, 36703, 20132, 20689, 21676,
  6475. 21932, 23308, 23968, 24039, 25898, 25934, 26657, 27211, 29409, 30350,
  6476. 30703, 32094, 32761, 33184, 34126, 34527, 36611, 36686, 37066, 39171,
  6477. 39509, 39851, 19992, 20037, 20061, 20167, 20465, 20855, 21246, 21312,
  6478. [12061, 21475], [21477, 63750], 21646, 22036, 22389, 22434, 23495, 23943,
  6479. 24272, 25084, 25304, 25937, 26552, 26601, 27083, 27472, 27590, 27628,
  6480. 27714, 28317, 28792, 29399, 29590, 29699, 30655, 30697, 31350, 32127,
  6481. 32777, [12165, 33276], 33285, 33290, 33503, 34914, 35635, 36092, 36544,
  6482. 36881, 37041, 37476, 37558, 39378, 39493, 40169, 40407,
  6483. [12244, 40860, 63751, 63752], 22283, 23616, 33738, 38816, 38827, 40628,
  6484. 21531, 31384, 32676, 35033, 36557, 37089, 22528, 23624, 25496, 31391,
  6485. 23470, [12088, 24339], 31353, 31406, 33422, 36524, 20518, 21048, 21240,
  6486. 21367, 22280, 25331, 25458, 27402, 28099, 30519, 21413, 29527, 34152,
  6487. 36470, 38357, 26426, 27331, 28528, 35437, 36556, 39243, 26231, 27512,
  6488. 36020, [12225, 39740], 21483, 22317, 22862, 25542, 27131, 29674, 30789,
  6489. 31418, 31429, 31998, 33909, 35215, 36211, 36917, 38312, 21243, 22343,
  6490. 30023, 31584, 33740, 37406, 27224, 20811, 21067, 21127, 25119, 26840,
  6491. 26997, 38553, 20677, 21156, 21220, 25027, [12100, 26020], 26681, 27135,
  6492. 29822, 31563, 33465, 33771, 35250, 35641, 36817, 39241, 20170, 22935,
  6493. 25810, 26129, 27278, 29748, 31105, 31165, 33449, {f: 2, c: 34942}, 35167,
  6494. 37670, 20235, 21450, 24613, 25201, 27762, 32026, 32102, 20120, 20834,
  6495. 30684, 32943, 20225, 20238, 20854, 20864, 21980, 22120, 22331, 22522,
  6496. 22524, 22804, 22855, 22931, 23492, 23696, 23822, [12080, 24049], 24190,
  6497. 24524, 25216, 26071, 26083, {f: 2, c: 26398}, 26462, 26827, 26820, 27231,
  6498. 27450, 27683, 27773, 27778, 28103, 29592, 29734, 29738, 29826, 29859,
  6499. 30072, 30079, 30849, 30959, 31041, {f: 2, c: 31047}, 31098, 31637, 32000,
  6500. 32186, 32648, 32774, 32813, 32908, 35352, 35663, [35912, 63744], 36215,
  6501. 37665, 37668, 39138, 39249, {f: 2, c: 39438}, 39525, 40594, 32202, 20342,
  6502. 21513, 25326, 26708, [12198, 37329, 63754], 21931, 20794, 23068, 25062,
  6503. [25295, 63835], 25343, 37027, [35582, 63837], 26262, 29014, 38627, 25423,
  6504. 25466, 21335, 26511, 26976, 28275, 30007, 32013, 34930, 22218, 23064,
  6505. 20035, 20839, [22856, 63756], 26608, 32784, [12069, 22899, 63873],
  6506. [24180, 63886], [25754, 63889], [31178, 63893], [24565, 63907], 24684,
  6507. 25288, [25467, 63908], [23527, 63839, 63914], 23511, 21162, 22900, 24361,
  6508. [24594, 63840], 29785, 39377, 28611, 33215, 36786, 24817, 33126,
  6509. [23615, 63933], 23273, 35365, [26491, 63944], [32016, 63951], 33021, 23612,
  6510. [27877, 63971], [21311, 63979], [28346, 63980], 22810, [33590, 63998],
  6511. [20025, 63838], 20150, 20294, 21934, 22296, 22727, 24406, 26039, 26086,
  6512. 27264, 27573, 28237, 30701, 31471, 31774, 32222, 34507, 34962, 37170,
  6513. 37723, 25787, 28606, 29562, 30136, 36948, 21846, 22349, 25018, 25812,
  6514. 26311, 28129, 28251, 28525, 28601, 30192, 32835, 33213, 34113, 35203,
  6515. 35527, 35674, 37663, 27795, 30035, 31572, 36367, 36957, 21776, 22530,
  6516. 22616, 24162, 25095, 25758, 26848, 30070, [31958, 64003], 34739, 40680,
  6517. 20195, 22408, 22382, [12068, 22823], 23565, 23729, 24118, 24453, 25140,
  6518. 25825, 29619, 33274, 34955, 36024, 38538, 40667, [23429, 64004], 24503,
  6519. 24755, 20498, [12049, 20992], 21040, 22294, 22581, 22615, 23566, 23648,
  6520. 23798, 23947, [24230, 64001], 24466, 24764, 25361, 25481, 25623, 26691,
  6521. 26873, 27330, 28120, 28193, 28372, 28644, 29182, 30428, 30585, 31153,
  6522. 31291, 33796, 35241, 36077, 36339, 36424, 36867, 36884, 36947, 37117,
  6523. 37709, 38518, 38876, 27602, 28678, 29272, 29346, 29544, 30563, 31167,
  6524. 31716, 32411, [35712, 63834], 22697, 24775, 25958, 26109, 26302, 27788,
  6525. 28958, 29129, 35930, 38931, 20077, 31361, 20189, 20908, 20941, 21205,
  6526. 21516, 24999, 26481, 26704, 26847, [27934, 64005], 28540, 30140, 30643,
  6527. 31461, 33012, 33891, 37509, 20828, [12099, 26007], 26460, 26515, 30168,
  6528. 31431, 33651, [12182, 35910], 36887, 38957, 23663, 33216, 33434, 36929,
  6529. 36975, 37389, 24471, 23965, 27225, 29128, 30331, 31561, 34276, 35588,
  6530. 37159, 39472, [21895, 63755], [25078, 63757], [30313, 63758],
  6531. [32645, 63759], [34367, 63760], [34746, 63761], [35064, 63762],
  6532. [37007, 63763], [27931, 63765], [28889, 63766], [29662, 63767], 32097,
  6533. [33853, 63768], [37226, 63769], [39409, 63770], [20098, 63771],
  6534. [21365, 63772], [27396, 63773], 27410, 28734, [29211, 63774],
  6535. [34349, 63775], [40478, 63776], 21068, 36771, [23888, 63777], 25829, 25900,
  6536. 27414, [28651, 63778], 31811, 32412, [34253, 63779], [35172, 63780], 35261,
  6537. [25289, 63781], [33240, 63782], [34847, 63783], [24266, 63784],
  6538. [26391, 63785], [28010, 63786], [29436, 63787], 29701, 29807, 34690,
  6539. [37086, 63788], [20358, 63789], 23821, 24480, 33802, [20919, 63790],
  6540. [25504, 63861], [30053, 63862], [20142, 63863], 20486, [20841, 63864],
  6541. [20937, 63865], [26753, 63866], 27153, 31918, 31921, [31975, 63867],
  6542. [33391, 63868], [35538, 63869], 36635, [37327, 63870], 20406, 20791,
  6543. [21237, 63871], [21570, 63872], [24300, 63874], 24942, 25150,
  6544. [26053, 63875], 27354, [28670, 63876], [31018, 63877], 34268, 34851,
  6545. [38317, 63878], 39522, [39530, 63879], [40599, 63880], [40654, 63881],
  6546. [12050, 21147, 63882], [26310, 63883], [27511, 63884], 28701, 31019,
  6547. [36706, 63885], 38722, [24976, 63887], [25088, 63888], 25891,
  6548. [28451, 63890], [29001, 63891], [29833, 63892], [32244, 63894],
  6549. [32879, 63895], [34030, 63897], [36646, 63896], [36899, 63898],
  6550. [37706, 63899], 20925, [21015, 63900], [21155, 63901], 27916,
  6551. [28872, 63903], [35010, 63904], [24265, 63906], 25986, [27566, 63909],
  6552. 28610, [31806, 63910], [29557, 63911], [20196, 63912], 20278,
  6553. [22265, 63913], 23738, [23994, 63915], [24604, 63916], [29618, 63917],
  6554. 31533, [32666, 63919], 32718, [32838, 63920], 36894, [37428, 63921],
  6555. [38646, 63922], [38728, 63923], [38936, 63924], 40801, [20363, 63925],
  6556. 28583, [31150, 63926], [37300, 63927], [38583, 63928], [21214, 63791],
  6557. 25736, [25796, 63792], [27347, 63793], 28510, 28696, [29200, 63794],
  6558. [30439, 63795], [12156, 32769, 63796], [34310, 63797], [34396, 63798],
  6559. [36335, 63799], 36613, [38706, 63800], [39791, 63801], [40442, 63802],
  6560. [12228, 40565], [30860, 63803], [31103, 63804], [32160, 63805],
  6561. [33737, 63806], [37636, 63807], [12229, 40575, 63808], 40595,
  6562. [35542, 63809], [22751, 63810], [24324, 63811], 26407, 28711, 29903,
  6563. [31840, 63812], [32894, 63813], 20769, 28712, [29282, 63814],
  6564. [30922, 63815], [36034, 63816], 36058, 36084, [38647, 63817],
  6565. [20102, 63930], [20698, 63931], [23534, 63932], 24278, [26009, 63934],
  6566. [29134, 63936], [30274, 63937], 30637, 32842, [34044, 63938],
  6567. [36988, 63939], 39719, [12243, 40845, 63940], [22744, 63818], 23105,
  6568. [23650, 63819], [27155, 63820], [28122, 63821], [28431, 63822], 30267,
  6569. [32047, 63823], [32311, 63824], 34078, 35128, 37860, [38475, 63825],
  6570. [21129, 63943], 26066, [26611, 63945], 27060, [27969, 63946],
  6571. [28316, 63947], 28687, [29705, 63948], 29792, [30041, 63949], 30244,
  6572. [30827, 63950], 35628, [39006, 63952], [20845, 63953], [25134, 63954],
  6573. [38520, 63955], 20374, [20523, 63956], [23833, 63957], [28138, 63958],
  6574. 32184, [36650, 63959], [24459, 63960], [24900, 63961], [26647, 63962],
  6575. [38534, 63964], [21202, 63826], [32907, 63827], [20956, 63828],
  6576. [20940, 63829], 26974, [31260, 63830], [32190, 63831], [33777, 63832],
  6577. [38517, 63833], 20442, [21033, 63965], 21400, [21519, 63966], 21774,
  6578. [23653, 63967], 24743, [26446, 63969], [26792, 63970], 28012, 29313, 29432,
  6579. [29702, 63972], 29827, [30178, 63973], 31852, [32633, 63974], 32696, 33673,
  6580. [35023, 63975], [35041, 63976], [12197, 37324, 63977], 37328,
  6581. [38626, 63978], 39881, [21533, 63981], 28542, [29136, 63982],
  6582. [29848, 63983], [34298, 63984], 36522, [38563, 63985], [40023, 63986],
  6583. [40607, 63987], [26519, 63988], [28107, 63989], 29747, [33256, 63990],
  6584. 38678, 30764, [12148, 31435, 63991], [31520, 63992], [31890, 63993], 25705,
  6585. 29802, 30194, 30908, 30952, [12218, 39340], 39764, [12231, 40635], 23518,
  6586. 24149, 28448, 33180, 33707, 37000, 19975, 21325, 23081, 24018, 24398,
  6587. 24930, 25405, 26217, 26364, 28415, 28459, 28771, 30622, 33836, 34067,
  6588. 34875, 36627, 39237, 39995, 21788, 25273, 26411, 27819, 33545, 35178,
  6589. 38778, 20129, 22916, {f: 2, c: 24536}, 26395, 32178, 32596, 33426, 33579,
  6590. 33725, 36638, 37017, 22475, 22969, 23186, 23504, 26151, 26522, 26757,
  6591. 27599, 29028, 32629, 36023, 36067, 36993, 39749, 33032, 35978, 38476,
  6592. 39488, [12230, 40613], 23391, 27667, 29467, 30450, 30431, 33804, 20906,
  6593. 35219, 20813, 20885, 21193, 26825, 27796, 30468, 30496, 32191, 32236,
  6594. [12207, 38754], 40629, 28357, 34065, 20901, 21517, 21629, 26126, 26269,
  6595. 26919, 28319, [12139, 30399], 30609, 33559, 33986, 34719, 37225, 37528,
  6596. 40180, 34946, 20398, 20882, 21215, 22982, 24125, 24917, {f: 2, c: 25720},
  6597. 26286, 26576, 27169, 27597, [12113, 27611], 29279, 29281, 29761, 30520,
  6598. [12141, 30683], 32791, 33468, 33541, 35584, 35624, 35980, [12106, 26408],
  6599. 27792, 29287, [12140, 30446], 30566, 31302, 40361, 27519, 27794, 22818,
  6600. 26406, 33945, 21359, 22675, 22937, 24287, 25551, 26164, 26483, 28218,
  6601. 29483, 31447, 33495, 37672, 21209, 24043, 25006, 25035, 25098, 25287,
  6602. 25771, [12102, 26080], 26969, 27494, [12111, 27595], 28961, 29687, 30045,
  6603. 32326, 33310, 33538, 34154, 35491, 36031, 38695, 40289, 22696, 40664,
  6604. 20497, 21006, 21563, 21839, [12098, 25991], 27766, {f: 2, c: 32010}, 32862,
  6605. 34442, [12200, 38272], 38639, 21247, 27797, 29289, 21619, 23194, 23614,
  6606. 23883, 24396, 24494, 26410, 26806, 26979, 28220, 28228, 30473,
  6607. [12150, 31859], 32654, 34183, 35598, 36855, 38753, 40692, 23735, 24758,
  6608. 24845, 25003, 25935, {f: 2, c: 26107}, 27665, 27887, 29599, 29641, 32225,
  6609. 38292, 23494, 34588, 35600, 21085, 21338, 25293, 25615, 25778, 26420,
  6610. 27192, 27850, 29632, 29854, 31636, 31893, 32283, 33162, 33334, 34180,
  6611. 36843, 38649, 39361, 20276, 21322, 21453, 21467, 25292, 25644, 25856,
  6612. 26001, 27075, 27886, 28504, 29677, 30036, 30242, 30436, 30460, 30928,
  6613. [30971, 63844], 31020, 32070, 33324, 34784, 36820, 38930, 39151, 21187,
  6614. 25300, 25765, 28196, 28497, 30332, 36299, 37297, 37474, 39662, 39747,
  6615. 20515, 20621, 22346, 22952, 23592, 24135, 24439, 25151, 25918,
  6616. [12101, 26041], 26049, 26121, 26507, 27036, 28354, 30917, 32033, 32938,
  6617. 33152, 33323, 33459, 33953, 34444, 35370, 35607, 37030, 38450, 40848,
  6618. 20493, 20467, 22521, 24472, 25308, 25490, 26479, 28227, 28953, 30403,
  6619. 32972, 32986, {f: 2, c: 35060}, 35097, 36064, 36649, 37197, 38506, 20271,
  6620. 20336, 24091, 26575, 26658, [12137, 30333], 30334, 39748, 24161, 27146,
  6621. 29033, 29140, 30058, 32321, 34115, 34281, 39132, 20240, 31567, 32624,
  6622. 38309, 20961, 24070, 26805, 27710, 27726, 27867, 29359, 31684, 33539,
  6623. 27861, 29754, 20731, 21128, 22721, 25816, 27287, 29863, 30294, 30887,
  6624. 34327, 38370, 38713, 21342, 24321, 35722, 36776, 36783, 37002, 21029,
  6625. 30629, 40009, 40712, 19993, 20482, 20853, 23643, 24183, 26142, 26170,
  6626. 26564, 26821, 28851, 29953, 30149, 31177, 31453, 36647, 39200, 39432,
  6627. 20445, 22561, 22577, 23542, 26222, 27493, 27921, 28282, 28541, 29668,
  6628. 29995, 33769, 35036, 35091, 35676, 36628, 20239, 20693, 21264,
  6629. [12056, 21340], 23443, [24489, 63846], 26381, 31119, 33145, 33583, 34068,
  6630. 35079, 35206, 36665, [36667, 64007], 39333, 39954, 26412, 20086, 20472,
  6631. 22857, 23553, {f: 2, c: 23791}, 25447, 26834, 28925, 29090, 29739, 32299,
  6632. 34028, 34562, 36898, 37586, 40179, [19981, 63847], 20184, 20463, 20613,
  6633. 21078, 21103, 21542, 21648, 22496, 22827, 23142, 23386, 23413, 23500,
  6634. 24220, 25206, 25975, 26023, 28014, 28325, [12119, 29238], 31526, 31807,
  6635. [12152, 32566], {f: 2, c: 33104}, 33178, 33344, 33433, 33705, 35331, 36000,
  6636. 36070, 36091, 36212, 36282, 37096, 37340, [12201, 38428], 38468, 39385,
  6637. 40167, [21271, 63843], 20998, 21545, 22132, 22707, 22868, 22894, 24575,
  6638. 24996, 25198, 26128, 27774, 28954, 30406, 31881, 31966, 32027, 33452,
  6639. 36033, 38640, 20315, 24343, 24447, 25282, 23849, 26379, 26842, 30844,
  6640. 32323, 40300, 19989, 20633, [12052, 21269], 21290, 21329, 22915, 23138,
  6641. 24199, 24754, 24970, 25161, 25209, 26000, 26503, 27047, [12112, 27604],
  6642. {f: 3, c: 27606}, 27832, 29749, 30202, 30738, 30865, 31189, 31192, 31875,
  6643. 32203, 32737, 32933, 33086, 33218, 33778, 34586, 35048, 35513, 35692,
  6644. 36027, 37145, [12206, 38750], [12214, 39131], [12240, 40763], 22188, 23338,
  6645. 24428, 25996, 27315, 27567, 27996, 28657, 28693, 29277, 29613, 36007,
  6646. 36051, 38971, 24977, 27703, 32856, 39425, 20045, 20107, 20123, 20181,
  6647. 20282, 20284, 20351, 20447, 20735, 21490, 21496, 21766, 21987, 22235,
  6648. [12064, 22763], 22882, 23057, 23531, 23546, 23556, 24051, 24107, 24473,
  6649. 24605, 25448, 26012, 26031, 26614, 26619, 26797, 27515, 27801, 27863,
  6650. 28195, 28681, 29509, 30722, 31038, 31040, 31072, 31169, 31721, 32023,
  6651. 32114, 32902, 33293, 33678, 34001, 34503, 35039, 35408, 35422, 35613,
  6652. 36060, 36198, 36781, 37034, 39164, 39391, 40605, 21066, 26388, 20632,
  6653. 21034, [12077, 23665], 25955, 27733, 29642, 29987, 30109, 31639, 33948,
  6654. 37240, 38704, 20087, 25746, [27578, 63856], 29022, 34217, 19977, 26441,
  6655. 26862, 28183, 33439, 34072, 34923, 25591, 28545, 37394, 39087, 19978,
  6656. 20663, 20687, 20767, 21830, 21930, 22039, 23360, 23577, 23776, 24120,
  6657. 24202, 24224, 24258, 24819, 26705, 27233, 28248, 29245, 29248,
  6658. [29376, 63994], 30456, 31077, 31665, 32724, 35059, 35316, 35443, 35937,
  6659. 36062, 38684, [22622, 63852], 29885, 36093, 21959, 31329, [32034, 63850],
  6660. [12170, 33394], 29298, [12131, 29983], 29989, 31513, 22661, 22779, 23996,
  6661. 24207, 24246, 24464, 24661, 25234, 25471, 25933, 26257, 26329, 26360,
  6662. 26646, 26866, 29312, 29790, 31598, 32110, 32214, 32626, 32997, 33298,
  6663. 34223, 35199, 35475, 36893, 37604, [12233, 40653], [12239, 40736],
  6664. [12067, 22805], 22893, 24109, 24796, 26132, 26227, 26512, 27728, 28101,
  6665. 28511, [12143, 30707], 30889, 33990, 37323, 37675, 20185, 20682, 20808,
  6666. 21892, 23307, 23459, 25159, 25982, 26059, 28210, 29053, 29697, 29764,
  6667. 29831, 29887, 30316, 31146, 32218, 32341, 32680, 33146, 33203, 33337,
  6668. 34330, 34796, 35445, 36323, 36984, 37521, 37925, 39245, 39854, 21352,
  6669. 23633, 26964, 27844, 27945, 28203, [12166, 33292], 34203, 35131, 35373,
  6670. [35498, 63855, 63905], 38634, 40807, 21089, 26297, 27570, 32406, 34814,
  6671. 36109, 38275, 38493, 25885, 28041, 29166, 22478, 22995, 23468, 24615,
  6672. 24826, 25104, 26143, 26207, 29481, 29689, 30427, [30465, 63853], 31596,
  6673. 32854, 32882, 33125, 35488, 37266, 19990, 21218, 27506, 27927, 31237,
  6674. 31545, 32048, 36016, 21484, 22063, 22609, 23477, [12073, 23567], 23569,
  6675. 24034, 25152, 25475, 25620, 26157, 26803, 27836, 28040, 28335, 28703,
  6676. 28836, 29138, 29990, 30095, 30094, 30233, 31505, 31712, 31787, 32032,
  6677. 32057, 34092, 34157, 34311, 35380, 36877, 36961, 37045, 37559, 38902,
  6678. 39479, 20439, 23660, 26463, 28049, 31903, 32396, 35606, 36118, 36895,
  6679. 23403, 24061, 25613, 33984, 36956, 39137, [29575, 63841, 63963], 23435,
  6680. 24730, 26494, 28126, 35359, 35494, 36865, 38924, 21047, 28753, 30862,
  6681. 37782, 34928, 37335, 20462, 21463, 22013, 22234, 22402, 22781, 23234,
  6682. 23432, 23723, 23744, 24101, 24833, 25101, [12095, 25163], 25480, 25628,
  6683. 25910, [25976, 63849], 27193, 27530, [12116, 27700], 27929, 28465, 29159,
  6684. 29417, 29560, 29703, 29874, 30246, 30561, 31168, 31319, 31466, 31929,
  6685. 32143, 32172, 32353, 32670, 33065, 33585, 33936, 34010, 34282, 34966,
  6686. 35504, 35728, 36664, 36930, 36995, 37228, 37526, 37561, 38539,
  6687. {f: 2, c: 38567}, 38614, 38656, 38920, [12216, 39318], 39635, 39706, 21460,
  6688. 22654, 22809, 23408, 23487, 28113, 28506, 29087, 29729, 29881, 32901,
  6689. 33789, 24033, 24455, 24490, 24642, 26092, 26642, 26991, 27219, 27529,
  6690. 27957, 28147, 29667, 30462, 30636, 31565, 32020, 33059, 33308, 33600,
  6691. 34036, 34147, 35426, 35524, 37255, 37662, 38918, 39348, 25100, 34899,
  6692. 36848, 37477, 23815, 23847, 23913, 29791, 33181, 34664, 28629,
  6693. [25342, 63859], 32722, 35126, 35186, 19998, 20056, 20711, 21213, 21319,
  6694. 25215, 26119, 32361, 34821, 38494, 20365, 21273, 22070, 22987, 23204,
  6695. [12075, 23608], 23630, 23629, 24066, 24337, 24643, 26045, 26159, 26178,
  6696. 26558, 26612, 29468, [12142, 30690], [12144, 31034], 32709, 33940, 33997,
  6697. 35222, 35430, 35433, 35553, [12183, 35925], 35962, 22516, 23508, 24335,
  6698. 24687, 25325, 26893, 27542, 28252, 29060, 31698, 34645, [35672, 63996],
  6699. 36606, [12215, 39135], 39166, 20280, 20353, 20449, 21627, 23072, 23480,
  6700. 24892, 26032, 26216, 29180, 30003, 31070, 32051, 33102, [12162, 33251],
  6701. 33688, 34218, 34254, 34563, 35338, [12189, 36523], [12191, 36763], 36805,
  6702. 22833, 23460, 23526, 24713, 23529, 23563, [12092, 24515], 27777, 28145,
  6703. 28683, 29978, 33455, 35574, [20160, 63997], [12055, 21313], 38617,
  6704. [12114, 27663], 20126, 20420, 20818, 21854, 23077, 23784, 25105,
  6705. [12123, 29273], 33469, 33706, 34558, 34905, 35357, 38463, 38597, 39187,
  6706. 40201, 40285, 22538, 23731, 23997, 24132, [24801, 63929], 24853, 25569,
  6707. [27138, 63764, 63836, 63935], 28197, 37122, 37716, 38990, 39952, 40823,
  6708. 23433, 23736, 25353, 26191, 26696, 30524, 38593, 38797, 38996, 39839,
  6709. 26017, 35585, 36555, 38332, 21813, 23721, 24022, 24245, 26263, 30284,
  6710. 33780, 38343, 22739, 25276, 29390, 40232, 20208, 22830, 24591, 26171,
  6711. 27523, 31207, 40230, 21395, 21696, 22467, 23830, 24859, 26326, 28079,
  6712. 30861, 33406, 38552, 38724, 21380, 25212, 25494, 28082, 32266, 33099,
  6713. 38989, 27387, 32588, 40367, 40474, 20063, 20539, 20918, 22812, 24825,
  6714. 25590, 26928, 29242, 32822, 37326, 24369, 32004, [33509, 63860], 33903,
  6715. 33979, 34277, 36493, 20335, 22756, 23363, 24665, 25562, 25880, 25965,
  6716. 26264, 26954, 27171, 27915, 28673, 29036, 30162, 30221, 31155, 31344,
  6717. [12154, 32650], 35140, 35731, 37312, 38525, 39178, 22276, 24481, 26044,
  6718. 28417, 30208, 31142, 35486, 39341, [12226, 39770], 40812, 20740, 25014,
  6719. 25233, 27277, 33222, 20547, 22576, 24422, 28937, [12180, 35328], 35578,
  6720. 23420, 34326, 20474, 20796, 22196, 22852, 25513, 28153, 23978, 26989,
  6721. 20870, 20104, 20313, 22914, 27487, 27741, 29877, 30998, 33287, 33349,
  6722. 33593, 36671, 36701, 39192, 20134, 22495, 24441, [26131, 63968], 30123,
  6723. 32377, 35695, 36870, 39515, 22181, 22567, 23032, 23071, 23476, 24310,
  6724. 25424, 25403, 26941, 27783, 27839, 28046, 28051, 28149, 28436, 28895,
  6725. 28982, 29017, 29123, 29141, 30799, 30831, 31605, 32227, 32303, 34893,
  6726. 36575, 37467, 40182, 24709, 28037, 29105, 38321, 21421, 26579, 28814,
  6727. 28976, 29744, 33398, 33490, 38331, 39653, 40573, 26308, 29121,
  6728. [33865, 63854], 22603, 23992, 24433, 26144, 26254, 27001, 27054, 27704,
  6729. 27891, 28214, 28481, 28634, 28699, 28719, 29008, 29151, 29552, 29787,
  6730. 29908, 30408, 31310, 32403, 33521, 35424, 36814, 37704, 38681, 20034,
  6731. 20522, 21000, 21473, 26355, 27757, 28618, 29450, 30591, 31330, 33454,
  6732. 34269, 34306, 35028, 35427, 35709, 35947, 37555, 38675, 38928, 20116,
  6733. 20237, 20425, 20658, 21320, 21566, 21555, 21978, 22626, 22714, 22887,
  6734. 23067, 23524, 24735, 25034, 25942, 26111, 26212, 26791, 27738, 28595,
  6735. 28879, 29100, 29522, 31613, 34568, 35492, 39986, 40711, 23627, 27779,
  6736. 29508, [12127, 29577], 37434, 28331, 29797, 30239, 31337, 32277, 34314,
  6737. 20800, 22725, 25793, 29934, 29973, 30320, 32705, 37013, 38605, 39252,
  6738. 28198, [12129, 29926], {f: 2, c: 31401}, 33253, 34521, 34680, 35355, 23113,
  6739. 23436, 23451, 26785, 26880, 28003, 29609, 29715, 29740, 30871, 32233,
  6740. 32747, 33048, 33109, 33694, 35916, [38446, 63942], 38929, [12104, 26352],
  6741. 24448, 26106, 26505, 27754, 29579, 20525, 23043, 27498, 30702, 22806,
  6742. 23916, 24013, 29477, 30031, 20709, 20985, 22575, 22829, 22934, 23002,
  6743. 23525, 23970, 25303, 25622, 25747, 25854, 26332, 27208, 29183, 29796,
  6744. 31368, 31407, 32327, 32350, 32768, 33136, 34799, 35201, 35616, 36953,
  6745. 36992, 39250, 24958, 27442, 28020, 32287, 35109, 36785, 20433, 20653,
  6746. 20887, 21191, 22471, 22665, 23481, 24248, 24898, 27029, 28044, 28263,
  6747. 28342, 29076, 29794, [12132, 29992], 29996, 32883, 33592, 33993, 36362,
  6748. 37780, 37854, 20110, 20305, 20598, 20778, [12060, 21448], 21451, 21491,
  6749. 23431, 23507, 23588, 24858, 24962, 26100, [12124, 29275], 29591, 29760,
  6750. 30402, 31056, 31121, 31161, 32006, [12155, 32701], 33419, 34261, 34398,
  6751. 36802, 36935, 37109, 37354, 38533, [12204, 38632], 38633, 21206, 24423,
  6752. 26093, 26161, 26671, 29020, 31286, 37057, 38922, 20113, 27218, 27550,
  6753. 28560, 29065, 32792, 33464, 34131, 36939, 38549, 38642, 38907, 34074,
  6754. 39729, 20112, 29066, 38596, 20803, 21407, 21729, 22291, 22290, 22435,
  6755. 23195, 23236, 23491, 24616, 24895, 25588, 27781, 27961, 28274, 28304,
  6756. 29232, 29503, 29783, 33489, 34945, 36677, 36960, 38498, 39000, 40219,
  6757. [12105, 26376], 36234, 37470, 20301, 20553, 20702, 21361, 22285, 22996,
  6758. 23041, 23561, 24944, 26256, 28205, 29234, 29771, 32239, 32963, 33806,
  6759. 33894, 34111, 34655, 34907, 35096, 35586, 36949, [12209, 38859], 39759,
  6760. 20083, 20369, 20754, 20842, 21807, 21929, 23418, 23461, {f: 2, c: 24188},
  6761. 24254, 24736, 24799, {f: 2, c: 24840}, 25540, 25912, 26377, 26580, 26586,
  6762. {f: 2, c: 26977}, 27833, 27943, 28216, 28641, {f: 2, c: 29494}, 29788,
  6763. 30001, 30290, 32173, 33278, 33848, 35029, 35480, 35547, 35565, 36400,
  6764. 36418, 36938, 36926, 36986, [12195, 37193], 37321, 37742, 22537, 27603,
  6765. [12161, 32905], 32946, 20801, 22891, 23609, 28516, 29607, 32996, 36103,
  6766. 37399, 38287, [12160, 32895], 25102, 28700, 32104, 34701, 22432, 24681,
  6767. 24903, 27575, 35518, 37504, 38577, [12036, 20057], 21535, 28139, 34093,
  6768. 38512, [12211, 38899], 39150, 25558, 27875, [12194, 37009], 20957, 25033,
  6769. 33210, 40441, 20381, 20506, 20736, 23452, 24847, 25087, 25836, 26885,
  6770. 27589, 30097, 30691, 32681, 33380, 34191, 34811, [12176, 34915], 35516,
  6771. 35696, 37291, [12038, 20108], 20197, 20234, 22839, 23016, 24050, 24347,
  6772. 24411, 24609, 29246, 29669, [30064, 63842], 30157, 31227, [12157, 32780],
  6773. [12159, 32819], 32900, 33505, 33617, 36029, 36019, 36999, 39156, 39180,
  6774. 28727, 30410, 32714, 32716, 32764, 35610, [12040, 20154], 20161, 20995,
  6775. 21360, [21693, 63902], 22240, 23035, 23493, 24341, 24525, 28270, 32106,
  6776. 33589, 34451, 35469, 38765, 38775, [12032, 19968], 20314, 20350, 22777,
  6777. [12103, 26085], 28322, 36920, 37808, 39353, 20219, 22764, 22922, 23001,
  6778. 24641, 31252, 33615, 36035, [12042, 20837], 21316, 20173, 21097, 23381,
  6779. 33471, 20180, [21050, 63999], 21672, 22985, 23039, [12070, 23376], 23383,
  6780. 23388, 24675, 24904, 28363, [28825, 63995], 29038, 29574, 29943, 30133,
  6781. 30913, 32043, 32773, [12163, 33258], 33576, 34071, 34249, 35566, 36039,
  6782. 38604, 20316, 21242, 22204, 26027, 26152, 28796, 28856, 29237, 32189,
  6783. 33421, 37196, 38592, 40306, 23409, 26855, 27544, 28538, 30430, 23697,
  6784. 26283, 28507, 31668, 31786, 34870, 38620, 19976, 20183, 21280, 22580,
  6785. 22715, 22767, 22892, 23559, 24115, 24196, 24373, 25484, 26290, 26454,
  6786. 27167, 27299, 27404, 28479, 29254, 29520, 29835, 31456, 31911, 33144,
  6787. 33247, 33255, 33674, 33900, 34083, 34196, 34255, 35037, 36115, 37292,
  6788. [12199, 38263], 38556, 20877, 21705, 22312, 23472, 25165, 26448, 26685,
  6789. 26771, 28221, 28371, 28797, 32289, 35009, 36001, 36617, 40779, 40782,
  6790. 29229, 31631, 35533, 37658, 20295, 20302, 20786, 21632, 22992, 24213,
  6791. 25269, 26485, 26990, 27159, 27822, 28186, 29401, 29482, 30141, 31672,
  6792. 32053, 33511, 33785, 33879, 34295, 35419, 36015, 36487, 36889, 37048,
  6793. 38606, 40799, 21219, 21514, 23265, 23490, 25688, 25973, 28404, 29380,
  6794. 30340, 31309, 31515, 31821, 32318, 32735, 33659, 35627, 36042,
  6795. [12186, 36196], 36321, 36447, 36842, 36857, 36969, 37841, 20291, 20346,
  6796. 20659, 20840, 20856, 21069, 21098, 22625, 22652, 22880, 23560, 23637,
  6797. 24283, 24731, 25136, 26643, 27583, 27656, 28593, 29006, 29728,
  6798. [12133, 30000], 30008, 30033, 30322, 31564, 31627, 31661, 31686, 32399,
  6799. 35438, 36670, 36681, 37439, 37523, 37666, 37931, 38651, 39002, 39019,
  6800. 39198, [20999, 64000], 25130, 25240, 27993, 30308, 31434, 31680, 32118,
  6801. 21344, 23742, 24215, 28472, 28857, 31896, 38673, 39822, 40670, 25509,
  6802. 25722, 34678, 19969, 20117, 20141, 20572, 20597, 21576, 22979, 23450,
  6803. 24128, 24237, 24311, 24449, 24773, 25402, 25919, 25972, 26060, 26230,
  6804. 26232, 26622, 26984, 27273, 27491, 27712, 28096, 28136, 28191, 28254,
  6805. 28702, 28833, 29582, 29693, 30010, 30555, 30855, 31118, 31243, 31357,
  6806. 31934, 32142, 33351, 35330, 35562, 35998, 37165, 37194, 37336, 37478,
  6807. 37580, 37664, 38662, 38742, 38748, 38914, [12237, 40718], 21046, 21137,
  6808. 21884, 22564, 24093, 24351, 24716, 25552, 26799, 28639, 31085, 31532,
  6809. 33229, 34234, 35069, 35576, 36420, 37261, 38500, 38555, 38717, 38988,
  6810. [12241, 40778], 20430, 20806, 20939, 21161, 22066, 24340, 24427, 25514,
  6811. 25805, 26089, 26177, 26362, 26361, 26397, 26781, 26839, 27133, 28437,
  6812. 28526, 29031, 29157, [12118, 29226], 29866, 30522, 31062, 31066, 31199,
  6813. 31264, 31381, 31895, 31967, 32068, 32368, 32903, 34299, 34468, 35412,
  6814. 35519, 36249, 36481, 36896, 36973, 37347, 38459, 38613, [12227, 40165],
  6815. 26063, 31751, [12188, 36275], 37827, 23384, 23562, 21330, 25305, 29469,
  6816. 20519, 23447, 24478, 24752, 24939, 26837, 28121, 29742, 31278, 32066,
  6817. 32156, 32305, 33131, 36394, 36405, 37758, 37912, 20304, 22352, 24038,
  6818. 24231, 25387, 32618, 20027, 20303, 20367, 20570, 23005, 32964, 21610,
  6819. 21608, 22014, 22863, 23449, 24030, 24282, 26205, 26417, 26609, 26666,
  6820. 27880, 27954, 28234, 28557, 28855, 29664, 30087, 31820, 32002, 32044,
  6821. 32162, [12168, 33311], 34523, 35387, 35461, [12187, 36208], 36490, 36659,
  6822. 36913, 37198, 37202, 37956, 39376, [12149, 31481], 31909, 20426, 20737,
  6823. 20934, 22472, 23535, 23803, 26201, 27197, 27994, 28310, 28652, 28940,
  6824. 30063, 31459, 34850, 36897, 36981, 38603, 39423, 33537, 20013, 20210,
  6825. 34886, 37325, 21373, 27355, 26987, 27713, 33914, 22686, 24974, 26366,
  6826. 25327, 28893, 29969, 30151, 32338, 33976, 35657, 36104, 20043, 21482,
  6827. 21675, 22320, 22336, 24535, 25345, 25351, 25711, [12096, 25903], 26088,
  6828. 26234, 26525, 26547, [12108, 27490], 27744, 27802, 28460, 30693, 30757,
  6829. 31049, 31063, 32025, 32930, 33026, [12164, 33267], 33437, 33463, 34584,
  6830. 35468, 36100, 36286, 36978, 30452, 31257, 31287, 32340, 32887, 21767,
  6831. 21972, 22645, 25391, 25634, 26185, 26187, 26733, 27035, 27524, 27941,
  6832. 28337, 29645, 29800, 29857, 30043, 30137, 30433, 30494, 30603, 31206,
  6833. 32265, 32285, 33275, 34095, 34967, 35386, 36049, 36587,
  6834. [12192, 36784, 63857], 36914, 37805, 38499, 38515, 38663, 20356, 21489,
  6835. 23018, 23241, 24089, 26702, 29894, 30142, 31209, 31378, 33187, 34541,
  6836. 36074, 36300, 36845, 26015, 26389, 22519, 28503, 32221, 36655, 37878,
  6837. 38598, 24501, 25074, 28548, 19988, 20376, 20511, 21449, 21983, 23919,
  6838. 24046, 27425, 27492, 30923, 31642, 36425, [12190, 36554, 63746], 36974,
  6839. 25417, 25662, 30528, 31364, 37679, 38015, 40810, 25776, 28591, 29158,
  6840. 29864, 29914, 31428, 31762, 32386, 31922, 32408, 35738, 36106, 38013,
  6841. 39184, 39244, 21049, 23519, 25830, 26413, 32046, 20717, [21443, 63851],
  6842. 22649, {f: 2, c: 24920}, 25082, 26028, 31449, 35730, 35734, 20489, 20513,
  6843. 21109, 21809, 23100, 24288, 24432, 24884, 25950, 26124, 26166, 26274,
  6844. 27085, 28356, 28466, 29462, 30241, 31379, 33081, 33369, 33750, 33980,
  6845. 20661, 22512, 23488, 23528, 24425, 25505, 30758, 32181, 33756, 34081,
  6846. 37319, 37365, 20874, 26613, 31574, 36012, 20932, 22971, 24765, 34389,
  6847. 20508, 21076, 23610, 24957, 25114, [25299, 64002], 25842, 26021, 28364,
  6848. 30240, 33034, 36448, 38495, 38587, 20191, 21315, 21912, 22825, 24029,
  6849. 25797, 27849, 28154, 29588, 31359, [12167, 33307], 34214, 36068, 36368,
  6850. 36983, 37351, 38369, 38433, 38854, 20984, 21746, 21894, 24505, 25764,
  6851. 28552, 32180, 36639, 36685, 37941, 20681, 23574, 27838, 28155, 29979,
  6852. 30651, 31805, 31844, 35449, 35522, 22558, 22974, 24086, 25463, 29266,
  6853. 30090, 30571, 35548, 36028, 36626, 24307, 26228, 28152, 32893, 33729,
  6854. 35531, [12205, 38737], 39894, 21059, 26367, 28053, 28399, 32224, 35558,
  6855. 36910, 36958, 39636, 21021, 21119, 21736, 24980, 25220, 25307, 26786,
  6856. 26898, 26970, 27189, 28818, 28966, 30813, 30977, 30990, 31186, 31245,
  6857. 32918, [12171, 33400], 33493, 33609, 34121, 35970, 36229, 37218, 37259,
  6858. 37294, 20419, 22225, 29165, 30679, 34560, 35320, [12072, 23544], 24534,
  6859. 26449, 37032, 21474, 22618, 23541, 24740, 24961, 25696, 32317, 32880,
  6860. 34085, 37507, 25774, 20652, 23828, 26368, 22684, 25277, 25512, 26894,
  6861. 27000, 27166, 28267, 30394, 31179, 33467, 33833, 35535, 36264, 36861,
  6862. 37138, 37195, 37276, 37648, 37656, 37786, 38619, 39478, 39949, 19985,
  6863. 30044, 31069, 31482, 31569, 31689, 32302, 33988, 36441, 36468, 36600,
  6864. 36880, 26149, 26943, 29763, 20986, 26414, 40668, 20805, 24544, 27798,
  6865. 34802, 34909, 34935, 24756, 33205, 33795, 36101, 21462, 21561, 22068,
  6866. 23094, 23601, 28810, 32736, 32858, 33030, 33261, 36259, 37257, 39519,
  6867. 40434, 20596, 20164, 21408, 24827, 28204, 23652, 20360, 20516, 21988,
  6868. 23769, 24159, 24677, 26772, 27835, 28100, 29118, 30164, 30196, 30305,
  6869. 31258, 31305, 32199, 32251, 32622, 33268, 34473, 36636, 38601, 39347,
  6870. [12242, 40786], 21063, 21189, 39149, 35242, 19971, 26578, 28422, 20405,
  6871. 23522, 26517, [27784, 63858], 28024, 29723, 30759, 37341, 37756, 34756,
  6872. 31204, 31281, 24555, 20182, 21668, 21822, 22702, 22949, 24816, 25171,
  6873. 25302, 26422, 26965, 33333, 38464, 39345, 39389, 20524, 21331, 21828,
  6874. 22396, 25176, 25826, 26219, 26589, 28609, 28655, 29730, 29752, 35351,
  6875. 37944, 21585, 22022, 22374, 24392, 24986, 27470, 28760, 28845, 32187,
  6876. 35477, 22890, 33067, 25506, 30472, 32829, 36010, 22612, 25645, 27067,
  6877. 23445, 24081, 28271, 34153, 20812, 21488, 22826, 24608, 24907, 27526,
  6878. 27760, 27888, 31518, 32974, 33492, 36294, 37040, 39089, 25799, 28580,
  6879. 25745, 25860, 20814, 21520, [12063, 22303], 35342, 24927, 26742, 30171,
  6880. 31570, 32113, 36890, 22534, 27084, 33151, 35114, 36864, 38969, 20600,
  6881. 22871, 22956, 25237, 36879, 39722, 24925, 29305, 38358, 22369, 23110,
  6882. 24052, 25226, 25773, 25850, 26487, 27874, 27966, 29228, 29750, 30772,
  6883. 32631, 33453, 36315, 38935, 21028, 22338, 26495, 29256, 29923, 36009,
  6884. 36774, 37393, 38442, [12043, 20843], 21485, 25420, 20329, 21764, 24726,
  6885. 25943, 27803, 28031, 29260, 29437, 31255, 35207, [12185, 35997], 24429,
  6886. 28558, 28921, 33192, 24846, [20415, 63845], 20559, 25153, [12122, 29255],
  6887. 31687, 32232, 32745, 36941, 38829, 39449, 36022, 22378, 24179, 26544,
  6888. 33805, 35413, 21536, 23318, 24163, 24290, 24330, 25987, 32954, 34109,
  6889. 38281, 38491, 20296, 21253, 21261, 21263, 21638, 21754, 22275, 24067,
  6890. 24598, 25243, 25265, 25429, 27873, 28006, 30129, 30770, 32990, 33071,
  6891. 33502, 33889, 33970, 34957, 35090, 36875, 37610, 39165, 39825, 24133,
  6892. [26292, 64006], 26333, 28689, 29190, 20469, 21117, 24426, 24915, 26451,
  6893. 27161, 28418, 29922, 31080, 34920, 35961, 39111, 39108, 39491, 21697,
  6894. 31263, 26963, 35575, 35914, [12213, 39080], 39342, 24444, 25259, 30130,
  6895. [12138, 30382], 34987, 36991, 38466, 21305, 24380, 24517, [27852, 63848],
  6896. 29644, 30050, [12134, 30091], 31558, 33534, 39325, 20047, 36924, 19979,
  6897. 20309, 21414, 22799, 24264, 26160, 27827, 29781, 33655, 34662, 36032,
  6898. 36944, 38686, 39957, 22737, 23416, 34384, 35604, 40372, 23506, 24680,
  6899. 24717, 26097, 27735, 28450, 28579, 28698, 32597, 32752, {f: 2, c: 38289},
  6900. 38480, 38867, 21106, 36676, 20989, 21547, 21688, 21859, 21898, 27323,
  6901. 28085, 32216, 33382, 37532, 38519, 40569, 21512, 21704, 30418, 34532,
  6902. 38308, 38356, 38492, 20130, 20233, 23022, 23270, 24055, 24658, 25239,
  6903. 26477, 26689, 27782, 28207, 32568, 32923, 33322, 38917, 20133, 20565,
  6904. 21683, 22419, 22874, 23401, 23475, 25032, 26999, 28023, 28707, 34809,
  6905. 35299, 35442, 35559, 36994, 39405, 39608, 21182, 26680, 20502, 24184,
  6906. 26447, 33607, [12175, 34892, 64008], 20139, 21521, 22190, 29670, 37141,
  6907. 38911, 39177, 39255, [12217, 39321], 22099, 22687, 34395, 35377, 25010,
  6908. 27382, 29563, 36562, 27463, 38570, 39511, 22869, 29184, 36203,
  6909. [12208, 38761], 20436, 23796, 24358, 25080, 26203, 27883, 28843,
  6910. [12126, 29572], 29625, 29694, 30505, 30541, 32067, 32098, 32291, 33335,
  6911. 34898, 36066, 37449, 39023, 23377, [12147, 31348], [12174, 34880],
  6912. [12212, 38913], 23244, 20448, 21332, 22846, 23805, 25406, 28025, 29433,
  6913. 33029, 33031, 33698, 37583, 38960, 20136, 20804, 21009, 22411, 24418,
  6914. 27842, 28366, 28677, 28752, 28847, 29074, 29673, [29801, 63918], 33610,
  6915. 34722, 34913, 36872, 37026, 37795, 39336, 20846, 24407, 24800, 24935,
  6916. 26291, 34137, 36426, 37295, 38795, 20046, 20114, 21628, 22741, 22778,
  6917. 22909, 23733, 24359, [12094, 25142], 25160, 26122, 26215, 27627, 28009,
  6918. 28111, 28246, 28408, 28564, 28640, 28649, 28765, 29392, 29733, 29786,
  6919. 29920, 30355, 31068, 31946, 32286, 32993, 33446, 33899, 33983, 34382,
  6920. 34399, 34676, 35703, 35946, 37804, 38912, 39013, 24785, 25110, 37239,
  6921. 23130, 26127, 28151, 28222, 29759, 39746, 24573, 24794, 31503, 21700,
  6922. 24344, 27742, 27859, 27946, 28888, 32005, 34425, 35340, 40251, 21270,
  6923. 21644, 23301, 27194, [12117, 28779], 30069, 31117, [12146, 31166], 33457,
  6924. 33775, 35441, 35649, 36008, 38772, 25844, 25899, {f: 2, c: 30906}, 31339,
  6925. 20024, 21914, 22864, 23462, 24187, 24739, 25563, 27489, 26213, 26707,
  6926. 28185, 29029, 29872, 32008, 36996, 39529, 39973, 27963, [28369, 63748],
  6927. 29502, 35905, 38346, 20976, 24140, 24488, 24653, 24822, 24880, 24908,
  6928. {f: 2, c: 26179}, 27045, 27841, 28255, 28361, 28514, 29004, 29852, 30343,
  6929. 31681, 31783, 33618, 34647, 36945, 38541, [12232, 40643], 21295, 22238,
  6930. 24315, 24458, 24674, 24724, 25079, 26214, 26371, 27292, 28142, 28590,
  6931. 28784, 29546, 32362, 33214, 33588, 34516, 35496, 36036, 21123, 29554,
  6932. 23446, 27243, 37892, 21742, 22150, 23389, 25928, 25989, 26313, 26783,
  6933. 28045, 28102, [12120, 29243], 32948, 37237, 39501, 20399, 20505, 21402,
  6934. 21518, 21564, 21897, 21957, 24127, 24460, 26429, 29030, 29661, 36869,
  6935. 21211, 21235, 22628, 22734, 28932, 29071, 29179, 34224, 35347,
  6936. [26248, 63941], 34216, 21927, 26244, 29002, 33841, 21321, 21913, 27585,
  6937. 24409, 24509, 25582, 26249, 28999, 35569, 36637, 40638, 20241, 25658,
  6938. 28875, 30054, 34407, 24676, 35662, 40440, 20807, 20982, 21256, 27958,
  6939. 33016, [12234, 40657], 26133, 27427, 28824, 30165, 21507, 23673, 32007,
  6940. 35350, [12107, 27424], 27453, 27462, 21560, 24688, 27965, 32725, 33288,
  6941. 20694, 20958, 21916, 22123, 22221, 23020, 23305, 24076, 24985, 24984,
  6942. 25137, 26206, 26342, 29081, {f: 2, c: 29113}, 29351, 31143, 31232, 32690,
  6943. 35440, {s: 163}, {f: 4, c: 12310}, {s: 14}, 8223, 8219, {f: 2, c: 8314},
  6944. {s: 7}, 8316, 0, {f: 2, c: 8317}, {s: 23}, 700, {s: 44}, 8942, 8759,
  6945. {s: 20}, {f: 10, c: 10122}, {s: 36}, {f: 26, c: 9398}, {s: 61},
  6946. {f: 2, c: 8826}, {f: 2, c: 8910}, {f: 2, c: 8832}, {f: 4, c: 8816}, 0,
  6947. 8842, 0, 8843, {f: 2, c: 8822}, 8825, {f: 2, c: 8922}, {s: 5}, 8773, 8771,
  6948. 8776, 0, 8868, {s: 78}, 8244, {s: 11}, 9839, {s: 4}, 8258, {s: 4}, 10045,
  6949. 0, 0, 8226, {s: 4}, {f: 2, c: 8249}, {s: 16}, 10010, 10006, 0, 9711,
  6950. {s: 3}, 10070, 0, 9676, {s: 24}, 9775, {s: 6}, 12320, 0, {f: 10, c: 10102},
  6951. {s: 17}, 12306, 12342, {s: 13}, 8710, 0, 8735, 0, {f: 2, c: 8741}, 0, 8787,
  6952. 8785, {f: 2, c: 8806}, 8723, {f: 3, c: 8853}, 0, 8980, 0, 0, 8802, 0, 9649,
  6953. 0, 8738, 8784, 0, 0, 8867, 0, 0, {f: 2, c: 8814}, 8837, 8836, 8713, 8716,
  6954. {f: 2, c: 8891}, 8794, 8966, {s: 6}, 12958, 0, 8252, {s: 11}, 9702, {s: 3},
  6955. 9663, 9653, 9657, 9667, {s: 4}, 9674, 12849, 12857, 13259, {f: 5, c: 9327},
  6956. {s: 18}, 8656, 8655, 8653, {s: 37}, 8657, 8659, {s: 8}, 8626, 8625, 0,
  6957. 8628, 8624, 8627, {s: 14}, 8636, 8640, {s: 10}, {f: 2, c: 8644}, {s: 144},
  6958. {f: 5, c: 9347}, {s: 33}, 12948, {s: 15}, 12965, {s: 93}, 8672, 8674, 8673,
  6959. 8675, {s: 4}, 8678, 8680, 8679, 8681, {s: 20}, 9757, 9759, {s: 76}, 12944,
  6960. {f: 6, c: 12938}, {s: 15}, {f: 2, c: 12318}, 8246, 0, 8245, {s: 3}, 12540,
  6961. 0, 0, {f: 2, c: 44034}, {f: 2, c: 44037}, {f: 5, c: 44043}, 44056,
  6962. {f: 2, c: 44062}, {f: 3, c: 44065}, {f: 7, c: 44069}, 44078,
  6963. {f: 6, c: 44082}, {f: 2, c: 44090}, {f: 3, c: 44093}, {f: 10, c: 44097},
  6964. 44108, {f: 6, c: 44110}, {f: 3, c: 44117}, {f: 3, c: 44121},
  6965. {f: 19, c: 44125}, {f: 2, c: 44146}, {f: 2, c: 44149}, 44153,
  6966. {f: 5, c: 44155}, 44162, {f: 2, c: 44167}, {f: 3, c: 44173},
  6967. {f: 3, c: 44177}, {f: 7, c: 44181}, 44190, {f: 6, c: 44194}, 44203,
  6968. {f: 2, c: 44205}, {f: 7, c: 44209}, 44218, {f: 3, c: 44222},
  6969. {f: 2, c: 44226}, {f: 3, c: 44229}, {f: 3, c: 44233}, {f: 8, c: 44237},
  6970. 44246, {f: 8, c: 44248}, {f: 2, c: 44258}, {f: 2, c: 44261}, 44265, 44267,
  6971. {f: 2, c: 44269}, 44274, 44276, {f: 5, c: 44279}, {f: 2, c: 44286},
  6972. {f: 3, c: 44289}, 44293, {f: 5, c: 44295}, 44302, 44304, {f: 6, c: 44306},
  6973. {f: 3, c: 44313}, {f: 3, c: 44317}, {f: 8, c: 44321}, {f: 2, c: 44330},
  6974. {f: 6, c: 44334}, {f: 2, c: 44342}, {f: 3, c: 44345}, {f: 7, c: 44349},
  6975. 44358, 44360, {f: 6, c: 44362}, {f: 3, c: 44369}, {f: 3, c: 44373},
  6976. {f: 8, c: 44377}, 44386, {f: 8, c: 44388}, {f: 2, c: 44398},
  6977. {f: 2, c: 44401}, {f: 4, c: 44407}, 44414, 44416, {f: 5, c: 44419},
  6978. {f: 2, c: 44426}, {f: 3, c: 44429}, {f: 11, c: 44433}, {f: 6, c: 44446},
  6979. {f: 18, c: 44453}, {f: 8, c: 44472}, {f: 2, c: 44482}, {f: 3, c: 44485},
  6980. {f: 7, c: 44489}, 44498, {f: 8, c: 44500}, {f: 3, c: 44509},
  6981. {f: 3, c: 44513}, {f: 19, c: 44517}, {f: 2, c: 44538}, {f: 2, c: 44541},
  6982. {f: 6, c: 44546}, 44554, 44556, {f: 6, c: 44558}, {f: 27, c: 44565},
  6983. {f: 2, c: 44594}, {f: 2, c: 44597}, 44601, {f: 5, c: 44603}, 44610, 44612,
  6984. {f: 3, c: 44615}, 44619, 44623, {f: 3, c: 44625}, 44629, {f: 5, c: 44631},
  6985. 44638, {f: 3, c: 44642}, {f: 2, c: 44646}, {f: 2, c: 44650},
  6986. {f: 3, c: 44653}, {f: 7, c: 44657}, 44666, {f: 6, c: 44670},
  6987. {f: 6, c: 44678}, {f: 47, c: 44685}, 44735, {f: 3, c: 44737},
  6988. {f: 7, c: 44741}, 44750, {f: 6, c: 44754}, {f: 2, c: 44762},
  6989. {f: 11, c: 44765}, {f: 2, c: 44777}, 44780, {f: 6, c: 44782},
  6990. {f: 3, c: 44789}, {f: 3, c: 44793}, {f: 10, c: 44797}, {f: 4, c: 44809},
  6991. {f: 2, c: 44814}, {f: 27, c: 44817}, {f: 2, c: 44846}, 44849, 44851,
  6992. {f: 7, c: 44853}, 44862, 44864, {f: 4, c: 44868}, {f: 6, c: 44874},
  6993. {f: 11, c: 44881}, {f: 6, c: 44894}, {f: 19, c: 44902}, {f: 6, c: 44922},
  6994. {f: 3, c: 44929}, {f: 3, c: 44933}, {f: 7, c: 44937}, {f: 3, c: 44946},
  6995. {f: 6, c: 44950}, {f: 27, c: 44957}, {f: 2, c: 44986}, {f: 3, c: 44989},
  6996. {f: 6, c: 44993}, 45002, 45004, {f: 5, c: 45007}, {f: 7, c: 45013},
  6997. {f: 11, c: 45021}, {f: 6, c: 45034}, {f: 2, c: 45042}, {f: 3, c: 45045},
  6998. {f: 7, c: 45049}, {f: 2, c: 45058}, {f: 7, c: 45061}, {f: 3, c: 45069},
  6999. {f: 3, c: 45073}, {f: 7, c: 45077}, {f: 10, c: 45086}, {f: 27, c: 45097},
  7000. {f: 2, c: 45126}, 45129, 45131, 45133, {f: 4, c: 45135}, 45142, 45144,
  7001. {f: 3, c: 45146}, {f: 30, c: 45150}, {f: 2, c: 45182}, {f: 3, c: 45185},
  7002. {f: 7, c: 45189}, 45198, 45200, {f: 6, c: 45202}, 45211, {f: 2, c: 45213},
  7003. {f: 5, c: 45219}, 45226, 45232, 45234, {f: 2, c: 45238}, {f: 3, c: 45241},
  7004. {f: 7, c: 45245}, 45254, {f: 6, c: 45258}, {f: 2, c: 45266},
  7005. {f: 3, c: 45269}, {f: 7, c: 45273}, {f: 4, c: 45281}, {f: 34, c: 45286},
  7006. 45322, {f: 3, c: 45325}, 45329, {f: 4, c: 45332}, 45338, {f: 5, c: 45342},
  7007. {f: 2, c: 45350}, {f: 3, c: 45353}, {f: 7, c: 45357}, 45366,
  7008. {f: 6, c: 45370}, {f: 2, c: 45378}, {f: 3, c: 45381}, {f: 7, c: 45385},
  7009. {f: 2, c: 45394}, {f: 2, c: 45398}, {f: 3, c: 45401}, {f: 3, c: 45405},
  7010. {f: 23, c: 45409}, {f: 2, c: 45434}, {f: 3, c: 45437}, 45441,
  7011. {f: 5, c: 45443}, 45450, 45452, {f: 4, c: 45454}, {f: 3, c: 45461},
  7012. {f: 3, c: 45465}, {f: 11, c: 45469}, {f: 35, c: 45481}, {f: 3, c: 45517},
  7013. {f: 3, c: 45521}, {f: 7, c: 45525}, 45534, {f: 8, c: 45536},
  7014. {f: 2, c: 45546}, {f: 3, c: 45549}, {f: 8, c: 45553}, 45562, 45564,
  7015. {f: 6, c: 45566}, {f: 2, c: 45574}, {f: 2, c: 45577}, {f: 7, c: 45581},
  7016. 45590, 45592, {f: 6, c: 45594}, {f: 19, c: 45601}, {f: 7, c: 45621},
  7017. {f: 27, c: 45629}, {f: 3, c: 45657}, {f: 3, c: 45661}, {f: 7, c: 45665},
  7018. {f: 10, c: 45674}, {f: 6, c: 45686}, {f: 7, c: 45693}, {f: 3, c: 45702},
  7019. {f: 6, c: 45706}, {f: 2, c: 45714}, {f: 3, c: 45717}, {f: 5, c: 45723},
  7020. 45730, 45732, {f: 3, c: 45735}, 45739, {f: 3, c: 45741}, {f: 3, c: 45745},
  7021. {f: 19, c: 45749}, {f: 2, c: 45770}, {f: 3, c: 45773}, 45777,
  7022. {f: 5, c: 45779}, 45786, 45788, {f: 4, c: 45790}, 45795, 45799,
  7023. {f: 2, c: 45801}, {f: 3, c: 45808}, 45814, {f: 3, c: 45820},
  7024. {f: 2, c: 45826}, {f: 3, c: 45829}, {f: 7, c: 45833}, 45842,
  7025. {f: 6, c: 45846}, {f: 55, c: 45853}, 45911, {f: 2, c: 45913}, 45917,
  7026. {f: 4, c: 45920}, 45926, 45928, 45930, {f: 2, c: 45932}, 45935,
  7027. {f: 2, c: 45938}, {f: 3, c: 45941}, {f: 7, c: 45945}, 45954,
  7028. {f: 6, c: 45958}, {f: 3, c: 45965}, {f: 3, c: 45969}, {f: 11, c: 45973},
  7029. {f: 6, c: 45986}, {f: 3, c: 45993}, {f: 23, c: 45997}, {f: 2, c: 46022},
  7030. {f: 2, c: 46025}, 46029, 46031, {f: 3, c: 46033}, 46038, 46040, 46042,
  7031. 46044, {f: 2, c: 46046}, {f: 3, c: 46049}, {f: 3, c: 46053},
  7032. {f: 19, c: 46057}, {f: 19, c: 46077}, {f: 7, c: 46097}, {f: 3, c: 46105},
  7033. {f: 3, c: 46109}, {f: 7, c: 46113}, 46122, {f: 8, c: 46124},
  7034. {f: 27, c: 46133}, {f: 2, c: 46162}, {f: 3, c: 46165}, {f: 7, c: 46169},
  7035. 46178, 46180, {f: 6, c: 46182}, {f: 19, c: 46189}, {f: 7, c: 46209},
  7036. {f: 20, c: 46217}, {f: 6, c: 46238}, {f: 3, c: 46245}, {f: 3, c: 46249},
  7037. {f: 8, c: 46253}, 46262, 46264, {f: 6, c: 46266}, {f: 3, c: 46273},
  7038. {f: 3, c: 46277}, {f: 7, c: 46281}, {f: 4, c: 46289}, {f: 6, c: 46294},
  7039. {f: 2, c: 46302}, {f: 2, c: 46305}, 46309, {f: 5, c: 46311}, 46318, 46320,
  7040. {f: 6, c: 46322}, {f: 27, c: 46329}, {f: 2, c: 46358}, {f: 2, c: 46361},
  7041. {f: 7, c: 46365}, 46374, {f: 5, c: 46379}, {f: 2, c: 46386},
  7042. {f: 3, c: 46389}, {f: 7, c: 46393}, 46402, {f: 5, c: 46406},
  7043. {f: 2, c: 46414}, {f: 3, c: 46417}, {f: 7, c: 46421}, 46430,
  7044. {f: 62, c: 46434}, {f: 2, c: 46498}, {f: 3, c: 46501}, 46505,
  7045. {f: 4, c: 46508}, 46514, {f: 5, c: 46518}, {f: 2, c: 46526},
  7046. {f: 3, c: 46529}, {f: 7, c: 46533}, 46542, {f: 6, c: 46546},
  7047. {f: 19, c: 46553}, {f: 35, c: 46573}, {f: 2, c: 46610}, {f: 3, c: 46613},
  7048. {f: 12, c: 46617}, {f: 6, c: 46630}, {f: 7, c: 46637}, {f: 19, c: 46645},
  7049. {f: 27, c: 46665}, {f: 3, c: 46693}, {f: 51, c: 46697}, {f: 2, c: 46750},
  7050. {f: 3, c: 46753}, {f: 6, c: 46757}, {f: 4, c: 46765}, {f: 34, c: 46770},
  7051. {f: 27, c: 46805}, {f: 3, c: 46833}, {f: 3, c: 46837}, {f: 7, c: 46841},
  7052. {f: 3, c: 46850}, {f: 34, c: 46854}, {f: 2, c: 46890}, {f: 2, c: 46893},
  7053. {f: 7, c: 46897}, 46906, {f: 8, c: 46908}, {f: 3, c: 46917},
  7054. {f: 3, c: 46921}, {f: 7, c: 46925}, {f: 10, c: 46934}, {f: 3, c: 46945},
  7055. {f: 3, c: 46949}, {f: 7, c: 46953}, 46962, 46964, {f: 6, c: 46966},
  7056. {f: 2, c: 46974}, {f: 3, c: 46977}, {f: 7, c: 46981}, 46990,
  7057. {f: 3, c: 46995}, {f: 2, c: 47002}, {f: 3, c: 47005}, {f: 7, c: 47009},
  7058. 47018, {f: 6, c: 47022}, {f: 2, c: 47030}, {f: 14, c: 47033}, 47048,
  7059. {f: 34, c: 47050}, {f: 2, c: 47086}, {f: 3, c: 47089}, {f: 7, c: 47093},
  7060. 47102, {f: 5, c: 47106}, {f: 2, c: 47114}, {f: 3, c: 47117},
  7061. {f: 7, c: 47121}, 47130, 47132, {f: 6, c: 47134}, {f: 2, c: 47142},
  7062. {f: 3, c: 47145}, {f: 7, c: 47149}, 47158, {f: 6, c: 47162},
  7063. {f: 3, c: 47169}, {f: 12, c: 47173}, 47186, {f: 8, c: 47188},
  7064. {f: 2, c: 47198}, {f: 3, c: 47201}, {f: 7, c: 47205}, 47214, 47216,
  7065. {f: 6, c: 47218}, {f: 3, c: 47225}, {f: 16, c: 47229}, {f: 26, c: 47246},
  7066. {f: 7, c: 47273}, {f: 3, c: 47281}, {f: 3, c: 47285}, {f: 7, c: 47289},
  7067. 47298, 47300, {f: 6, c: 47302}, {f: 3, c: 47309}, {f: 3, c: 47313},
  7068. {f: 8, c: 47317}, 47326, 47328, {f: 6, c: 47330}, {f: 2, c: 47338},
  7069. {f: 3, c: 47341}, {f: 7, c: 47345}, 47354, 47356, {f: 6, c: 47358},
  7070. {f: 19, c: 47365}, {f: 7, c: 47385}, {f: 27, c: 47393}, {f: 2, c: 47422},
  7071. {f: 3, c: 47425}, {f: 7, c: 47429}, {f: 2, c: 47437}, 47440,
  7072. {f: 6, c: 47442}, {f: 2, c: 47450}, {f: 3, c: 47453}, {f: 7, c: 47457},
  7073. 47466, 47468, {f: 6, c: 47470}, {f: 2, c: 47478}, {f: 3, c: 47481},
  7074. {f: 7, c: 47485}, 47494, 47496, {f: 2, c: 47499}, {f: 29, c: 47503},
  7075. {f: 2, c: 47534}, {f: 3, c: 47537}, {f: 7, c: 47541}, 47550, 47552,
  7076. {f: 6, c: 47554}, {f: 2, c: 47562}, 47565, {f: 5, c: 47571}, 47578, 47580,
  7077. {f: 2, c: 47583}, 47586, {f: 2, c: 47590}, {f: 3, c: 47593},
  7078. {f: 7, c: 47597}, 47606, {f: 5, c: 47611}, {f: 6, c: 47618},
  7079. {f: 12, c: 47625}, {f: 34, c: 47638}, {f: 2, c: 47674}, {f: 3, c: 47677},
  7080. 47681, {f: 5, c: 47683}, 47690, 47692, {f: 4, c: 47695}, {f: 2, c: 47702},
  7081. {f: 3, c: 47705}, {f: 7, c: 47709}, 47718, {f: 6, c: 47722},
  7082. {f: 2, c: 47730}, {f: 3, c: 47733}, {f: 10, c: 47737}, 47750,
  7083. {f: 4, c: 47752}, {f: 27, c: 47757}, 47786, {f: 3, c: 47789}, 47793,
  7084. {f: 5, c: 47795}, 47802, 47804, {f: 6, c: 47806}, {f: 3, c: 47813},
  7085. {f: 15, c: 47817}, {f: 34, c: 47834}, {f: 3, c: 47869}, {f: 3, c: 47873},
  7086. {f: 8, c: 47877}, 47886, 47888, {f: 6, c: 47890}, {f: 3, c: 47897},
  7087. {f: 3, c: 47901}, {f: 8, c: 47905}, 47914, {f: 8, c: 47916}, 47927,
  7088. {f: 2, c: 47929}, {f: 5, c: 47935}, 47942, 47944, {f: 3, c: 47946}, 47950,
  7089. {f: 3, c: 47953}, {f: 3, c: 47957}, {f: 8, c: 47961}, 47970,
  7090. {f: 8, c: 47972}, {f: 27, c: 47981}, {f: 3, c: 48009}, {f: 3, c: 48013},
  7091. {f: 19, c: 48017}, {f: 3, c: 48037}, {f: 3, c: 48041}, {f: 7, c: 48045},
  7092. {f: 2, c: 48053}, {f: 8, c: 48056}, {f: 3, c: 48065}, {f: 3, c: 48069},
  7093. {f: 7, c: 48073}, {f: 2, c: 48081}, {f: 36, c: 48084}, {f: 2, c: 48122},
  7094. {f: 2, c: 48125}, 48129, {f: 5, c: 48131}, 48138, 48142, 48144,
  7095. {f: 2, c: 48146}, {f: 2, c: 48153}, {f: 4, c: 48160}, 48166, 48168,
  7096. {f: 3, c: 48170}, {f: 2, c: 48174}, {f: 2, c: 48178}, {f: 3, c: 48181},
  7097. {f: 7, c: 48185}, 48194, {f: 3, c: 48198}, {f: 2, c: 48202},
  7098. {f: 2, c: 48206}, {f: 12, c: 48209}, {f: 38, c: 48222}, {f: 2, c: 48262},
  7099. {f: 2, c: 48265}, 48269, {f: 5, c: 48271}, 48278, 48280, {f: 5, c: 48283},
  7100. {f: 2, c: 48290}, {f: 2, c: 48293}, {f: 7, c: 48297}, 48306,
  7101. {f: 6, c: 48310}, {f: 2, c: 48318}, {f: 3, c: 48321}, {f: 8, c: 48325},
  7102. 48334, {f: 3, c: 48338}, {f: 2, c: 48342}, {f: 3, c: 48345},
  7103. {f: 23, c: 48349}, 48375, {f: 3, c: 48377}, {f: 7, c: 48381}, 48390, 48392,
  7104. {f: 6, c: 48394}, {f: 3, c: 48401}, {f: 15, c: 48405}, {f: 7, c: 48421},
  7105. {f: 19, c: 48429}, {f: 7, c: 48449}, {f: 2, c: 48458}, {f: 3, c: 48461},
  7106. {f: 7, c: 48465}, {f: 10, c: 48474}, {f: 3, c: 48485}, {f: 23, c: 48489},
  7107. {f: 2, c: 48514}, {f: 2, c: 48517}, {f: 5, c: 48523}, 48530, 48532,
  7108. {f: 3, c: 48534}, 48539, {f: 7, c: 48541}, {f: 11, c: 48549},
  7109. {f: 7, c: 48561}, {f: 27, c: 48569}, {f: 2, c: 48598}, {f: 3, c: 48601},
  7110. {f: 12, c: 48605}, {f: 6, c: 48618}, {f: 3, c: 48625}, {f: 3, c: 48629},
  7111. {f: 7, c: 48633}, {f: 2, c: 48641}, 48644, {f: 6, c: 48646},
  7112. {f: 2, c: 48654}, {f: 3, c: 48657}, {f: 7, c: 48661}, 48670,
  7113. {f: 36, c: 48672}, {f: 2, c: 48710}, {f: 3, c: 48713}, 48717,
  7114. {f: 5, c: 48719}, 48726, 48728, {f: 4, c: 48732}, {f: 2, c: 48738},
  7115. {f: 3, c: 48741}, 48745, {f: 5, c: 48747}, 48754, {f: 5, c: 48758},
  7116. {f: 2, c: 48766}, {f: 3, c: 48769}, {f: 7, c: 48773}, 48782,
  7117. {f: 6, c: 48786}, {f: 14, c: 48794}, {f: 39, c: 48809}, {f: 2, c: 48850},
  7118. {f: 2, c: 48853}, {f: 7, c: 48857}, {f: 2, c: 48865}, {f: 6, c: 48870},
  7119. {f: 20, c: 48877}, {f: 6, c: 48898}, {f: 14, c: 48906}, 48922,
  7120. {f: 34, c: 48926}, {f: 2, c: 48962}, {f: 3, c: 48965}, {f: 7, c: 48969},
  7121. {f: 3, c: 48978}, {f: 62, c: 48982}, {f: 27, c: 49045}, {f: 20, c: 49073},
  7122. {f: 6, c: 49094}, {f: 2, c: 49102}, {f: 3, c: 49105}, {f: 7, c: 49109},
  7123. {f: 2, c: 49117}, 49120, {f: 90, c: 49122}, {f: 20, c: 49213},
  7124. {f: 6, c: 49234}, {f: 3, c: 49241}, {f: 3, c: 49245}, {f: 7, c: 49249},
  7125. {f: 38, c: 49258}, {f: 2, c: 49298}, {f: 3, c: 49301}, {f: 7, c: 49305},
  7126. 49314, 49316, {f: 6, c: 49318}, 49326, {f: 2, c: 49329}, {f: 5, c: 49335},
  7127. 49342, {f: 3, c: 49346}, {f: 2, c: 49350}, {f: 2, c: 49354},
  7128. {f: 3, c: 49357}, {f: 7, c: 49361}, 49370, {f: 6, c: 49374},
  7129. {f: 2, c: 49382}, {f: 3, c: 49385}, {f: 7, c: 49389}, 49398, 49400,
  7130. {f: 6, c: 49402}, {f: 3, c: 49409}, {f: 3, c: 49413}, {f: 7, c: 49417},
  7131. {f: 4, c: 49425}, {f: 6, c: 49430}, {f: 2, c: 49441}, 49445,
  7132. {f: 4, c: 49448}, 49454, {f: 4, c: 49458}, 49463, {f: 2, c: 49466},
  7133. {f: 3, c: 49469}, {f: 7, c: 49473}, 49482, {f: 6, c: 49486},
  7134. {f: 2, c: 49494}, {f: 3, c: 49497}, {f: 7, c: 49501}, 49510,
  7135. {f: 6, c: 49514}, {f: 3, c: 49521}, {f: 3, c: 49525}, {f: 12, c: 49529},
  7136. {f: 6, c: 49542}, 49551, {f: 3, c: 49553}, 49557, {f: 5, c: 49559}, 49566,
  7137. 49568, {f: 3, c: 49570}, {f: 2, c: 49574}, {f: 2, c: 49578},
  7138. {f: 3, c: 49581}, {f: 12, c: 49585}, {f: 6, c: 49598}, {f: 3, c: 49605},
  7139. {f: 3, c: 49609}, {f: 7, c: 49613}, {f: 2, c: 49621}, {f: 7, c: 49625},
  7140. {f: 3, c: 49633}, {f: 3, c: 49637}, {f: 7, c: 49641}, 49650,
  7141. {f: 8, c: 49652}, {f: 2, c: 49662}, {f: 3, c: 49665}, {f: 7, c: 49669},
  7142. 49678, 49680, {f: 6, c: 49682}, {f: 2, c: 49690}, {f: 2, c: 49693},
  7143. {f: 7, c: 49697}, 49706, 49708, 49710, 49712, 49715, {f: 19, c: 49717},
  7144. {f: 7, c: 49737}, {f: 2, c: 49746}, {f: 3, c: 49749}, {f: 7, c: 49753},
  7145. {f: 4, c: 49761}, {f: 6, c: 49766}, {f: 2, c: 49774}, {f: 3, c: 49777},
  7146. {f: 7, c: 49781}, 49790, 49792, {f: 6, c: 49794}, {f: 6, c: 49802},
  7147. {f: 7, c: 49809}, {f: 2, c: 49817}, 49820, {f: 6, c: 49822},
  7148. {f: 2, c: 49830}, {f: 3, c: 49833}, {f: 6, c: 49838}, 49846, 49848,
  7149. {f: 34, c: 49850}, {f: 2, c: 49886}, {f: 2, c: 49889}, {f: 6, c: 49893},
  7150. 49902, 49904, {f: 4, c: 49906}, 49911, 49914, {f: 3, c: 49917},
  7151. {f: 7, c: 49921}, {f: 2, c: 49930}, {f: 5, c: 49934}, {f: 2, c: 49942},
  7152. {f: 3, c: 49945}, {f: 7, c: 49949}, {f: 2, c: 49958}, {f: 27, c: 49962},
  7153. {f: 34, c: 49990}, {f: 2, c: 50026}, {f: 3, c: 50029}, 50033,
  7154. {f: 5, c: 50035}, {f: 2, c: 50042}, {f: 6, c: 50046}, {f: 3, c: 50053},
  7155. {f: 3, c: 50057}, {f: 51, c: 50061}, {f: 23, c: 50113}, {f: 2, c: 50138},
  7156. {f: 2, c: 50141}, 50145, {f: 5, c: 50147}, {f: 3, c: 50154},
  7157. {f: 6, c: 50158}, {f: 2, c: 50166}, {f: 15, c: 50169}, {f: 7, c: 50185},
  7158. {f: 19, c: 50193}, {f: 7, c: 50213}, {f: 3, c: 50221}, {f: 3, c: 50225},
  7159. {f: 7, c: 50229}, {f: 10, c: 50238}, {f: 27, c: 50249}, {f: 2, c: 50278},
  7160. {f: 3, c: 50281}, {f: 7, c: 50285}, {f: 3, c: 50294}, {f: 6, c: 50298},
  7161. {f: 19, c: 50305}, {f: 7, c: 50325}, {f: 27, c: 50333}, {f: 3, c: 50361},
  7162. {f: 44, c: 50365}, {f: 6, c: 50410}, {f: 2, c: 50418}, {f: 3, c: 50421},
  7163. 50425, {f: 4, c: 50427}, {f: 10, c: 50434}, {f: 3, c: 50445},
  7164. {f: 3, c: 50449}, {f: 7, c: 50453}, {f: 11, c: 50461}, {f: 2, c: 50474},
  7165. {f: 3, c: 50477}, {f: 7, c: 50481}, 50490, 50492, {f: 6, c: 50494},
  7166. {f: 2, c: 50502}, 50507, {f: 4, c: 50511}, 50518, {f: 3, c: 50522}, 50527,
  7167. {f: 2, c: 50530}, {f: 3, c: 50533}, {f: 7, c: 50537}, 50546,
  7168. {f: 6, c: 50550}, {f: 2, c: 50558}, {f: 3, c: 50561}, {f: 2, c: 50565},
  7169. {f: 4, c: 50568}, 50574, 50576, {f: 3, c: 50578}, 50582, {f: 3, c: 50585},
  7170. {f: 3, c: 50589}, {f: 8, c: 50593}, {f: 10, c: 50602}, {f: 2, c: 50614},
  7171. 50618, {f: 5, c: 50623}, 50635, 50637, 50639, {f: 2, c: 50642},
  7172. {f: 3, c: 50645}, {f: 7, c: 50649}, 50658, 50660, {f: 6, c: 50662}, 50671,
  7173. {f: 3, c: 50673}, 50677, {f: 4, c: 50680}, {f: 3, c: 50690},
  7174. {f: 3, c: 50697}, {f: 3, c: 50701}, {f: 7, c: 50705}, 50714,
  7175. {f: 7, c: 50717}, {f: 2, c: 50726}, {f: 3, c: 50729}, 50735,
  7176. {f: 2, c: 50737}, 50742, 50744, 50746, {f: 4, c: 50748}, {f: 2, c: 50754},
  7177. {f: 3, c: 50757}, {f: 7, c: 50761}, 50770, {f: 6, c: 50774},
  7178. {f: 2, c: 50782}, {f: 11, c: 50785}, {f: 2, c: 50797}, 50800,
  7179. {f: 6, c: 50802}, {f: 2, c: 50810}, {f: 3, c: 50813}, {f: 7, c: 50817},
  7180. 50826, 50828, {f: 6, c: 50830}, {f: 2, c: 50838}, {f: 3, c: 50841},
  7181. {f: 7, c: 50845}, 50854, 50856, {f: 6, c: 50858}, {f: 2, c: 50866},
  7182. {f: 3, c: 50869}, {f: 5, c: 50875}, 50882, 50884, {f: 6, c: 50886},
  7183. {f: 2, c: 50894}, {f: 3, c: 50897}, {f: 7, c: 50901}, {f: 2, c: 50910},
  7184. {f: 6, c: 50914}, {f: 2, c: 50922}, {f: 3, c: 50925}, {f: 7, c: 50929},
  7185. {f: 3, c: 50938}, {f: 6, c: 50942}, {f: 2, c: 50950}, {f: 3, c: 50953},
  7186. {f: 7, c: 50957}, 50966, 50968, {f: 6, c: 50970}, {f: 2, c: 50978},
  7187. {f: 3, c: 50981}, {f: 7, c: 50985}, 50994, 50996, 50998, {f: 4, c: 51000},
  7188. {f: 2, c: 51006}, {f: 3, c: 51009}, {f: 5, c: 51013}, 51019, 51022, 51024,
  7189. {f: 3, c: 51033}, {f: 3, c: 51037}, {f: 7, c: 51041}, {f: 2, c: 51049},
  7190. {f: 8, c: 51052}, {f: 2, c: 51062}, {f: 3, c: 51065}, {f: 4, c: 51071},
  7191. 51078, {f: 3, c: 51083}, 51087, {f: 2, c: 51090}, 51093, 51097,
  7192. {f: 5, c: 51099}, 51106, {f: 5, c: 51111}, {f: 2, c: 51118},
  7193. {f: 3, c: 51121}, {f: 7, c: 51125}, 51134, {f: 6, c: 51138},
  7194. {f: 2, c: 51146}, 51149, 51151, {f: 7, c: 51153}, {f: 4, c: 51161},
  7195. {f: 6, c: 51166}, {f: 3, c: 51173}, {f: 3, c: 51177}, {f: 19, c: 51181},
  7196. {f: 2, c: 51202}, {f: 3, c: 51205}, 51209, {f: 5, c: 51211}, 51218, 51220,
  7197. {f: 5, c: 51223}, {f: 2, c: 51230}, {f: 3, c: 51233}, {f: 7, c: 51237},
  7198. 51246, 51248, {f: 6, c: 51250}, {f: 3, c: 51257}, {f: 3, c: 51261},
  7199. {f: 7, c: 51265}, {f: 2, c: 51274}, {f: 6, c: 51278}, {f: 27, c: 51285},
  7200. {f: 2, c: 51314}, {f: 3, c: 51317}, 51321, {f: 5, c: 51323}, 51330, 51332,
  7201. {f: 3, c: 51336}, {f: 6, c: 51342}, {f: 8, c: 51349}, 51358, 51360,
  7202. {f: 6, c: 51362}, {f: 19, c: 51369}, {f: 6, c: 51390}, {f: 3, c: 51397},
  7203. {f: 3, c: 51401}, {f: 7, c: 51405}, 51414, 51416, {f: 6, c: 51418},
  7204. {f: 2, c: 51426}, {f: 16, c: 51429}, {f: 6, c: 51446}, {f: 2, c: 51454},
  7205. {f: 3, c: 51457}, {f: 5, c: 51463}, 51470, 51472, {f: 6, c: 51474},
  7206. {f: 19, c: 51481}, {f: 7, c: 51501}, {f: 27, c: 51509}, {f: 2, c: 51538},
  7207. {f: 3, c: 51541}, {f: 7, c: 51545}, 51554, {f: 8, c: 51556},
  7208. {f: 3, c: 51565}, {f: 3, c: 51569}, {f: 7, c: 51573}, {f: 11, c: 51581},
  7209. {f: 2, c: 51594}, {f: 3, c: 51597}, {f: 7, c: 51601}, 51610, 51612,
  7210. {f: 34, c: 51614}, {f: 2, c: 51650}, {f: 2, c: 51653}, 51657,
  7211. {f: 5, c: 51659}, 51666, 51668, {f: 2, c: 51671}, 51675, {f: 2, c: 51678},
  7212. 51681, 51683, {f: 2, c: 51685}, {f: 4, c: 51688}, 51694, {f: 6, c: 51698},
  7213. {f: 2, c: 51706}, {f: 3, c: 51709}, {f: 7, c: 51713}, 51722,
  7214. {f: 6, c: 51726}, {f: 3, c: 51733}, {f: 16, c: 51737}, {f: 34, c: 51754},
  7215. {f: 2, c: 51790}, {f: 3, c: 51793}, {f: 7, c: 51797}, 51806,
  7216. {f: 6, c: 51810}, {f: 20, c: 51817}, {f: 6, c: 51838}, {f: 19, c: 51845},
  7217. {f: 35, c: 51865}, {f: 2, c: 51902}, {f: 3, c: 51905}, {f: 7, c: 51909},
  7218. 51918, 51920, 51922, {f: 4, c: 51924}, {f: 6, c: 51930}, {f: 11, c: 51937},
  7219. {f: 7, c: 51949}, {f: 19, c: 51957}, {f: 7, c: 51977}, {f: 3, c: 51985},
  7220. {f: 3, c: 51989}, {f: 7, c: 51993}, {f: 31, c: 52002}, {f: 6, c: 52034},
  7221. {f: 2, c: 52042}, {f: 3, c: 52045}, {f: 7, c: 52049}, {f: 3, c: 52058},
  7222. {f: 6, c: 52062}, {f: 19, c: 52069}, {f: 34, c: 52090}, {f: 27, c: 52125},
  7223. {f: 27, c: 52153}, {f: 15, c: 52181}, {f: 2, c: 52197}, 52200,
  7224. {f: 34, c: 52202}, {f: 2, c: 52238}, {f: 3, c: 52241}, {f: 7, c: 52245},
  7225. {f: 3, c: 52254}, {f: 4, c: 52259}, {f: 2, c: 52266}, 52269, 52271,
  7226. {f: 7, c: 52273}, 52282, {f: 5, c: 52287}, {f: 2, c: 52294},
  7227. {f: 3, c: 52297}, {f: 7, c: 52301}, 52310, {f: 6, c: 52314},
  7228. {f: 3, c: 52321}, 52325, 52327, {f: 7, c: 52329}, {f: 4, c: 52337},
  7229. {f: 34, c: 52342}, {f: 2, c: 52378}, {f: 3, c: 52381}, {f: 7, c: 52385},
  7230. 52394, {f: 6, c: 52398}, {f: 2, c: 52406}, {f: 3, c: 52409},
  7231. {f: 7, c: 52413}, 52422, 52424, {f: 6, c: 52426}, {f: 3, c: 52433},
  7232. {f: 15, c: 52437}, {f: 7, c: 52453}, {f: 3, c: 52461}, {f: 16, c: 52465},
  7233. {f: 6, c: 52482}, {f: 2, c: 52490}, {f: 3, c: 52493}, {f: 7, c: 52497},
  7234. 52506, 52508, {f: 6, c: 52510}, {f: 3, c: 52517}, {f: 3, c: 52521},
  7235. {f: 12, c: 52525}, {f: 34, c: 52538}, {f: 3, c: 52573}, {f: 3, c: 52577},
  7236. {f: 7, c: 52581}, 52590, 52592, {f: 6, c: 52594}, {f: 15, c: 52601},
  7237. {f: 11, c: 52617}, {f: 2, c: 52630}, {f: 3, c: 52633}, {f: 7, c: 52637},
  7238. 52646, 52648, {f: 6, c: 52650}, {f: 19, c: 52657}, {f: 7, c: 52677},
  7239. {f: 3, c: 52685}, {f: 23, c: 52689}, {f: 3, c: 52713}, {f: 3, c: 52717},
  7240. {f: 7, c: 52721}, 52730, 52732, {f: 6, c: 52734}, {f: 3, c: 52741},
  7241. {f: 3, c: 52745}, {f: 7, c: 52749}, {f: 4, c: 52757}, {f: 6, c: 52762},
  7242. {f: 2, c: 52770}, {f: 3, c: 52773}, {f: 7, c: 52777}, 52786, 52788,
  7243. {f: 34, c: 52790}, {f: 2, c: 52826}, {f: 2, c: 52829}, {f: 6, c: 52834},
  7244. 52842, 52844, {f: 6, c: 52846}, {f: 2, c: 52854}, {f: 3, c: 52857},
  7245. {f: 7, c: 52861}, 52870, 52872, {f: 6, c: 52874}, {f: 2, c: 52882},
  7246. {f: 3, c: 52885}, {f: 7, c: 52889}, 52898, {f: 6, c: 52902},
  7247. {f: 19, c: 52910}, {f: 34, c: 52930}, {f: 2, c: 52966}, {f: 2, c: 52969},
  7248. {f: 7, c: 52973}, 52982, {f: 6, c: 52986}, {f: 2, c: 52994},
  7249. {f: 3, c: 52997}, {f: 7, c: 53001}, 53010, 53012, {f: 6, c: 53014},
  7250. {f: 3, c: 53021}, {f: 3, c: 53025}, {f: 7, c: 53029}, 53038,
  7251. {f: 6, c: 53042}, {f: 27, c: 53049}, {f: 2, c: 53078}, {f: 3, c: 53081},
  7252. {f: 7, c: 53085}, 53094, 53096, {f: 6, c: 53098}, {f: 2, c: 53106},
  7253. {f: 3, c: 53109}, {f: 7, c: 53113}, {f: 4, c: 53121}, {f: 6, c: 53126},
  7254. {f: 20, c: 53133}, {f: 6, c: 53154}, {f: 7, c: 53161}, {f: 19, c: 53169},
  7255. {f: 27, c: 53189}, {f: 2, c: 53218}, {f: 3, c: 53221}, {f: 7, c: 53225},
  7256. 53234, 53236, {f: 6, c: 53238}, {f: 3, c: 53245}, {f: 3, c: 53249},
  7257. {f: 12, c: 53253}, {f: 6, c: 53266}, {f: 20, c: 53273}, {f: 6, c: 53294},
  7258. {f: 2, c: 53302}, {f: 3, c: 53305}, {f: 7, c: 53309}, 53318, 53320,
  7259. {f: 6, c: 53322}, {f: 3, c: 53329}, {f: 3, c: 53333}, {f: 7, c: 53337},
  7260. {f: 11, c: 53345}, {f: 2, c: 53358}, {f: 3, c: 53361}, {f: 7, c: 53365},
  7261. {f: 3, c: 53374}, {f: 34, c: 53378}, {f: 2, c: 53414}, {f: 3, c: 53417},
  7262. {f: 7, c: 53421}, 53430, 53432, {f: 6, c: 53434}, {f: 2, c: 53442},
  7263. {f: 3, c: 53445}, {f: 6, c: 53450}, 53458, {f: 6, c: 53462},
  7264. {f: 2, c: 53470}, {f: 3, c: 53473}, {f: 7, c: 53477}, 53486,
  7265. {f: 6, c: 53490}, {f: 20, c: 53497}, {f: 34, c: 53518}, {f: 2, c: 53554},
  7266. {f: 3, c: 53557}, 53561, {f: 5, c: 53563}, 53570, {f: 6, c: 53574},
  7267. {f: 2, c: 53582}, {f: 3, c: 53585}, {f: 7, c: 53589}, 53598, 53600,
  7268. {f: 6, c: 53602}, {f: 3, c: 53609}, {f: 15, c: 53613}, {f: 7, c: 53629},
  7269. {f: 3, c: 53637}, {f: 23, c: 53641}, {f: 2, c: 53666}, {f: 3, c: 53669},
  7270. {f: 7, c: 53673}, 53682, 53684, {f: 4, c: 53686}, 53691, {f: 3, c: 53693},
  7271. {f: 23, c: 53697}, {f: 27, c: 53721}, {f: 3, c: 53749}, {f: 14, c: 53753},
  7272. 53768, {f: 6, c: 53770}, {f: 27, c: 53777}, {f: 2, c: 53806},
  7273. {f: 3, c: 53809}, {f: 7, c: 53813}, 53822, 53824, {f: 6, c: 53826},
  7274. {f: 19, c: 53833}, {f: 7, c: 53853}, {f: 27, c: 53861}, {f: 2, c: 53890},
  7275. {f: 3, c: 53893}, {f: 7, c: 53897}, {f: 3, c: 53906}, {f: 6, c: 53910},
  7276. {f: 3, c: 53917}, {f: 3, c: 53921}, {f: 7, c: 53925}, {f: 4, c: 53933},
  7277. {f: 6, c: 53938}, {f: 2, c: 53946}, {f: 2, c: 53949}, 53953,
  7278. {f: 5, c: 53955}, 53962, {f: 8, c: 53964}, {f: 3, c: 53973},
  7279. {f: 3, c: 53977}, {f: 7, c: 53981}, {f: 10, c: 53990}, {f: 2, c: 54002},
  7280. {f: 3, c: 54005}, {f: 7, c: 54009}, 54018, 54020, {f: 6, c: 54022}, 54031,
  7281. {f: 3, c: 54033}, 54037, {f: 5, c: 54039}, 54046, {f: 3, c: 54050},
  7282. {f: 2, c: 54054}, {f: 2, c: 54058}, {f: 3, c: 54061}, {f: 7, c: 54065},
  7283. 54074, {f: 6, c: 54078}, {f: 54, c: 54086}, {f: 2, c: 54142},
  7284. {f: 3, c: 54145}, {f: 7, c: 54149}, 54158, {f: 6, c: 54162},
  7285. {f: 2, c: 54170}, {f: 3, c: 54173}, {f: 7, c: 54177}, 54186, 54188,
  7286. {f: 6, c: 54190}, {f: 3, c: 54197}, {f: 3, c: 54201}, {f: 7, c: 54205},
  7287. {f: 2, c: 54214}, {f: 6, c: 54218}, {f: 7, c: 54225}, {f: 8, c: 54233},
  7288. 54242, {f: 8, c: 54244}, {f: 2, c: 54254}, {f: 3, c: 54257},
  7289. {f: 7, c: 54261}, 54270, 54272, {f: 6, c: 54274}, {f: 20, c: 54281},
  7290. {f: 34, c: 54302}, {f: 3, c: 54337}, {f: 23, c: 54341}, {f: 3, c: 54365},
  7291. {f: 3, c: 54369}, {f: 8, c: 54373}, 54382, {f: 8, c: 54384},
  7292. {f: 2, c: 54394}, {f: 2, c: 54397}, 54401, {f: 5, c: 54403}, 54410, 54412,
  7293. {f: 6, c: 54414}, {f: 20, c: 54421}, {f: 34, c: 54442}, {f: 3, c: 54477},
  7294. {f: 3, c: 54481}, {f: 7, c: 54485}, {f: 2, c: 54493}, {f: 8, c: 54496},
  7295. {f: 3, c: 54505}, {f: 3, c: 54509}, {f: 7, c: 54513}, {f: 2, c: 54521},
  7296. 54524, {f: 6, c: 54526}, {f: 3, c: 54533}, {f: 3, c: 54537},
  7297. {f: 7, c: 54541}, 54550, {f: 36, c: 54552}, {f: 2, c: 54590},
  7298. {f: 3, c: 54593}, {f: 7, c: 54597}, 54606, 54608, {f: 6, c: 54610},
  7299. {f: 2, c: 54618}, {f: 3, c: 54621}, {f: 4, c: 54625}, {f: 2, c: 54630},
  7300. 54634, 54636, {f: 6, c: 54638}, {f: 2, c: 54646}, {f: 3, c: 54649},
  7301. {f: 7, c: 54653}, 54662, {f: 6, c: 54666}, {f: 20, c: 54673},
  7302. {f: 34, c: 54694}, {f: 2, c: 54730}, {f: 3, c: 54733}, 54737,
  7303. {f: 5, c: 54739}, 54746, 54748, {f: 6, c: 54750}, {f: 2, c: 54758},
  7304. {f: 3, c: 54761}, {f: 7, c: 54765}, 54774, 54776, {f: 6, c: 54778},
  7305. {f: 2, c: 54786}, {f: 3, c: 54789}, {f: 7, c: 54793}, 54802,
  7306. {f: 6, c: 54806}, {f: 3, c: 54813}, {f: 3, c: 54817}, {f: 8, c: 54821},
  7307. {f: 10, c: 54830}, {f: 2, c: 54842}, {f: 3, c: 54845}, {f: 4, c: 54849},
  7308. {f: 2, c: 54854}, 54858, 54860, {f: 3, c: 54862}, {f: 2, c: 54866},
  7309. {f: 2, c: 54870}, {f: 3, c: 54873}, {f: 10, c: 54877}, 54888,
  7310. {f: 6, c: 54890}, {f: 2, c: 54898}, {f: 14, c: 54901}, 54916,
  7311. {f: 6, c: 54918}, {f: 2, c: 54926}, {f: 3, c: 54929}, {f: 8, c: 54933},
  7312. 54942, 54944, {f: 6, c: 54946}, {f: 3, c: 54953}, {f: 3, c: 54957},
  7313. {f: 8, c: 54961}, 54970, {f: 8, c: 54972}, {f: 2, c: 54982},
  7314. {f: 3, c: 54985}, {f: 4, c: 54989}, {f: 2, c: 54994}, {f: 2, c: 54997},
  7315. 55000, {f: 6, c: 55002}, {f: 3, c: 55009}, {f: 3, c: 55013},
  7316. {f: 7, c: 55017}, {f: 4, c: 55025}, {f: 6, c: 55030}, {f: 2, c: 55038},
  7317. {f: 3, c: 55041}, {f: 12, c: 55045}, {f: 6, c: 55058}, {f: 2, c: 55066},
  7318. {f: 3, c: 55069}, {f: 7, c: 55073}, 55082, 55084, {f: 6, c: 55086},
  7319. {f: 2, c: 55094}, {f: 3, c: 55097}, {f: 7, c: 55101}, {f: 2, c: 55109},
  7320. 55112, {f: 6, c: 55114}, {f: 2, c: 55122}, 55125, {f: 6, c: 55130}, 55138,
  7321. 55140, {f: 3, c: 55142}, {f: 2, c: 55146}, {f: 3, c: 55149},
  7322. {f: 3, c: 55153}, {f: 7, c: 55157}, {f: 3, c: 55166}, {f: 6, c: 55170},
  7323. {f: 2, c: 55178}, {f: 3, c: 55181}, {f: 7, c: 55185}, 55194, 55196,
  7324. {f: 6, c: 55198}],
  7325. 'Adobe-CNS1': [{f: 95, c: 32}, {s: 3}, 12288, 65292, {f: 2, c: 12289}, 65294,
  7326. 8226, 65307, 65306, 65311, 65281, 65072, 8230, 8229, 65104, 65380, 65106,
  7327. 183, {f: 4, c: 65108}, 65372, 8211, 65073, 8212, {s: 4}, {f: 2, c: 65288},
  7328. {f: 2, c: 65077}, 65371, 65373, {f: 2, c: 65079}, {f: 2, c: 12308},
  7329. {f: 2, c: 65081}, {f: 2, c: 12304}, {f: 2, c: 65083}, {f: 2, c: 12298},
  7330. {f: 2, c: 65085}, {f: 2, c: 12296}, {f: 2, c: 65087}, {f: 2, c: 12300},
  7331. {f: 2, c: 65089}, {f: 2, c: 12302}, {f: 2, c: 65091}, {f: 6, c: 65113},
  7332. {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12317}, 8245, 8242, 65283,
  7333. 65286, 65290, 8251, 167, 12291, 9675, 9679, 9651, 9650, 9678, 9734, 9733,
  7334. 9671, 9670, 9633, 9632, 9661, 9660, 12963, 8453, 8254, 0, 65343, 0,
  7335. {f: 2, c: 65097}, {f: 2, c: 65101}, {f: 2, c: 65099}, {f: 3, c: 65119},
  7336. 65291, 65293, 215, 247, 177, 8730, 65308, 65310, 65309, {f: 2, c: 8806},
  7337. 8800, 8734, 8786, 8801, {f: 5, c: 65122}, 8764, {f: 2, c: 8745}, 8869,
  7338. 8736, 8735, 8895, 13266, 13265, 8747, 8750, 8757, 8756, 9792, 9794, 9793,
  7339. 9737, 8593, 8595, 8594, 8592, {f: 2, c: 8598}, 8601, 8600, 8741, 8739, 0,
  7340. 0, 65295, 65340, 65284, 165, 12306, {f: 2, c: 162}, 65285, 65312, 8451,
  7341. 8457, {f: 3, c: 65129}, 13269, {f: 3, c: 13212}, 13262, 13217,
  7342. {f: 2, c: 13198}, 13252, 176, [20825, 58834], [20827, 58835],
  7343. [20830, 58837], [20829, 58836], 20833, 20835, 21991, [29929, 58044],
  7344. [31950, 58191], {f: 8, c: 9601}, 9615, 9614, 9613, 9612, 9611, 9610, 9609,
  7345. 9532, 9524, 9516, 9508, 9500, 9620, 9472, 9474, 9621, 9484, 9488, 9492,
  7346. 9496, {f: 2, c: 9581}, 9584, 9583, 9552, 9566, 9578, 9569, {f: 2, c: 9698},
  7347. 9701, 9700, {f: 3, c: 9585}, {f: 10, c: 65296}, {f: 10, c: 8544},
  7348. {f: 9, c: 12321}, 0, [21316, 57443], 0, {f: 26, c: 65313},
  7349. {f: 26, c: 65345}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  7350. {f: 7, c: 963}, {f: 37, c: 12549}, 729, 714, 711, 715, [9312, 63153],
  7351. [9313, 63154], [9314, 63155], [9315, 63156], [9316, 63157], [9317, 63158],
  7352. [9318, 63159], [9319, 63160], [9320, 63161], [9321, 63162], [9332, 63163],
  7353. [9333, 63164], [9334, 63165], [9335, 63166], [9336, 63167], [9337, 63168],
  7354. [9338, 63169], [9339, 63170], [9340, 63171], [9341, 63172], [8560, 63173],
  7355. [8561, 63174], [8562, 63175], [8563, 63176], [8564, 63177], [8565, 63178],
  7356. [8566, 63179], [8567, 63180], [8568, 63181], [8569, 63182], [12033, 20008],
  7357. [12034, 20022, 63183], [12035, 20031, 63184], [12037, 20101, 63185],
  7358. [12039, 20128, 63186], [12044, 20866, 63187], [12045, 20886, 63188],
  7359. [12046, 20907, 63189], [12051, 21241, 63190], [12054, 21304, 63191],
  7360. [12057, 21353, 63192], [12059, 21430, 63193],
  7361. [12065, 12066, 22786, 22794, 63194], [12071, 23424, 63195],
  7362. [12078, 24027, 63196], [12083, 24186, 63197], [12084, 24191, 63198],
  7363. [12085, 24308], [12089, 24400, 63200], [12090, 24417, 63201],
  7364. [12097, 25908, 63202], [12102, 26080], [12135, 30098, 63204],
  7365. [12136, 30326], [12193, 36789, 63206], [12202, 38582], {f: 32, c: 9216},
  7366. 9249, [12032, 19968], [12036, 20057], 19969, 19971, 20035, 20061, 20102,
  7367. [12038, 20108], [12040, 20154], [12041, 20799], [12042, 20837],
  7368. [12043, 20843], [12047, 20960], [12049, 20992], 20993, [12050, 21147],
  7369. [12052, 21269], [12055, 21313], [12056, 21340], [12060, 21448], 19977,
  7370. 19979, 19976, 19978, 20011, 20024, 20961, 20037, 20040, 20063, 20062,
  7371. 20110, 20129, [20800, 64012], 20995, 21242, 21315, 21449, [12061, 21475],
  7372. [12063, 22303], [12064, 22763], [12067, 22805], [12068, 22823],
  7373. [12069, 22899], [12070, 23376], 23377, 23379, [12072, 23544],
  7374. [12073, 23567], [12074, 23586], [12075, 23608], [12077, 23665], 24029,
  7375. [12079, 24037], [12080, 24049], {f: 2, c: 24050}, [12081, 24062],
  7376. [12082, 24178], [12086, 24318], [12087, 24331], [12088, 24339], 25165,
  7377. 19985, 19984, 19981, 20013, 20016, 20025, 20043, 23609, 20104, 20113,
  7378. 20117, 20114, 20116, 20130, 20161, 20160, 20163, {f: 2, c: 20166}, 20173,
  7379. {f: 2, c: 20170}, 20164, 20803, 20801, 20839, {f: 2, c: 20845}, 20844,
  7380. 20887, 20982, {f: 3, c: 20998}, 21243, {f: 2, c: 21246}, 21270, 21305,
  7381. 21320, 21319, 21317, 21342, 21380, 21451, 21450, 21453, 22764, 22825,
  7382. 22827, 22826, 22829, 23380, 23569, 23588, 23610, 23663, 24052, 24187,
  7383. 24319, {f: 2, c: 24340}, [12092, 24515], [12093, 25096], [12094, 25142],
  7384. [12095, 25163], 25166, [12096, 25903], [12098, 25991], [12099, 26007],
  7385. [12100, 26020], [12101, 26041], [12103, 26085], [12104, 26352],
  7386. [12105, 26376], [12106, 26408], [12107, 27424], [12108, 27490],
  7387. [12109, 27513], [12111, 27595], [12112, 27604], [12113, 27611],
  7388. [12114, 27663], [12116, 27700], [12117, 28779], [12118, 29226],
  7389. [12119, 29238], [12120, 29243], [12122, 29255], [12123, 29273],
  7390. [12124, 29275], [12125, 29356], 29579, 19993, 19990, 19989, 19988, 19992,
  7391. 20027, 20045, 20047, 20046, 20197, 20184, {f: 4, c: 20180},
  7392. {f: 2, c: 20195}, 20185, 20190, 20805, 20804, {f: 2, c: 20873}, 20908,
  7393. {f: 2, c: 20985}, 20984, 21002, 21152, 21151, [21253, 57435], 21254, 21271,
  7394. 21277, 20191, 21322, 21321, 21345, 21344, 21359, 21358, 21435, 21487,
  7395. 21476, 21491, 21484, 21486, 21481, 21480, 21500, 21496, 21493, 21483,
  7396. 21478, 21482, 21490, 21489, 21488, 21477, 21485, 21499, 22235, 22234,
  7397. 22806, 22830, 22833, 22900, 22902, 23381, 23427, 23612, 24040, 24039,
  7398. 24038, {f: 2, c: 24066}, 24179, 24188, 24321, 24344, 24343, 24517, 25098,
  7399. {f: 2, c: 25171}, 25170, 25169, 26021, 26086, 26414, 26412,
  7400. {f: 2, c: 26410}, 26413, 27491, 27597, 27665, 27664, 27704, 27713, 27712,
  7401. 27710, 29359, [12126, 29572], [12127, 29577], [12128, 29916],
  7402. [12129, 29926], [12130, 29976], [12131, 29983], [12132, 29992], 29993,
  7403. [12133, 30000], {f: 3, c: 30001}, [12134, 30091], [12137, 30333],
  7404. [12138, 30382], [12139, 30399], [12140, 30446], [12141, 30683],
  7405. [12142, 30690], [12143, 30707], [12144, 31034], [12146, 31166],
  7406. [12147, 31348], [12148, 31435], {f: 2, c: 19998}, {f: 2, c: 20050}, 20073,
  7407. 20121, 20132, 20134, 20133, 20223, 20233, 20249, 20234, 20245, 20237,
  7408. {f: 2, c: 20240}, 20239, 20210, 20214, 20219, 20208, 20211, 20221, 20225,
  7409. 20235, 20809, 20807, 20806, 20808, 20840, 20849, 20877, 20912, 21015,
  7410. {f: 2, c: 21009}, 21006, 21014, 21155, 21256, 21281, 21280,
  7411. {f: 2, c: 21360}, 21513, 21519, 21516, 21514, 21520, 21505, 21515, 21508,
  7412. 21521, 21517, 21512, 21507, 21518, 21510, 21522, 22240, 22238, 22237,
  7413. 22323, 22320, 22312, 22317, 22316, 22319, 22313, {f: 2, c: 22809},
  7414. {f: 2, c: 22839}, 22916, 22904, 22915, 22909, 22905, 22914, 22913,
  7415. {f: 2, c: 23383}, {f: 2, c: 23431}, 23429, 23433, 23546, 23574, 23673,
  7416. 24030, 24070, 24182, 24180, 24335, 24347, 24537, 24534, 25102,
  7417. {f: 2, c: 25100}, 25104, 25187, 25179, 25176, 25910, 26089, 26088,
  7418. {f: 2, c: 26092}, {f: 2, c: 26354}, 26377, 26429, 26420, 26417, 26421,
  7419. 27425, 27492, 27515, 27670, 27741, 27735, 27737, {f: 2, c: 27743}, 27728,
  7420. 27733, 27745, 27739, {f: 2, c: 27725}, 28784, 29279, 29277, 30334,
  7421. [12149, 31481], [12150, 31859], [12151, 31992], [12152, 32566],
  7422. [12154, 32650], [12155, 32701], [12156, 32769], 32771, [12157, 32780],
  7423. [12158, 32786], [12159, 32819], [12160, 32895], [12161, 32905],
  7424. {f: 2, c: 32907}, [12162, 33251], [12163, 33258], [12164, 33267],
  7425. [12165, 33276], [12166, 33292], [12167, 33307], [12168, 33311],
  7426. [12169, 33390], [12170, 33394], 33406, [12173, 34411], [12174, 34880],
  7427. [12175, 34892], [12176, 34915], 35199, 38433, 20018, 20136, 20301, 20303,
  7428. 20295, 20311, 20318, 20276, 20315, 20309, 20272, {f: 2, c: 20304}, 20285,
  7429. 20282, 20280, 20291, 20308, 20284, 20294, 20323, 20316, 20320, 20271,
  7430. 20302, 20278, 20313, 20317, 20296, 20314, 20812, 20811, 20813, 20853,
  7431. {f: 2, c: 20918}, 21029, 21028, {f: 2, c: 21033}, 21032, 21163,
  7432. {f: 2, c: 21161}, 21164, 21283, 21363, 21365, 21533, 21549, 21534, 21566,
  7433. 21542, 21582, 21543, 21574, 21571, 21555, 21576, 21570, 21531, 21545,
  7434. 21578, 21561, 21563, 21560, 21550, {f: 2, c: 21557}, 21536, 21564, 21568,
  7435. 21553, 21547, 21535, 21548, 22250, 22256, 22244, 22251, 22346, 22353,
  7436. 22336, 22349, 22343, 22350, 22334, 22352, 22351, 22331, 22767, 22846,
  7437. 22941, 22930, 22952, 22942, 22947, 22937, 22934, 22925, 22948, 22931,
  7438. 22922, 22949, 23389, 23388, {f: 2, c: 23386}, 23436, 23435, 23439, 23596,
  7439. {f: 2, c: 23616}, 23615, 23614, {f: 2, c: 23696}, 23700, 23692, 24043,
  7440. 24076, 24207, 24199, 24202, 24311, 24324, 24351, 24420, 24418, 24439,
  7441. 24441, 24536, 24524, 24535, 24525, 24561, 24555, 24568, 24554, 25106,
  7442. 25105, 25220, 25239, 25238, 25216, 25206, 25225, 25197, 25226, 25212,
  7443. 25214, 25209, 25203, 25234, 25199, 25240, 25198, 25237, 25235, 25233,
  7444. 25222, 25913, 25915, 25912, 26097, 26356, 26463, {f: 4, c: 26446}, 26460,
  7445. 26454, [26462, 57801], 26441, 26438, 26464, 26451, 26455, 27493, 27599,
  7446. 27714, 27742, 27801, 27777, {f: 2, c: 27784}, 27781, 27803, 27754, 27770,
  7447. 27792, 27760, 27788, 27752, 27798, 27794, 27773, 27779, 27762, 27774,
  7448. 27764, 27782, 27766, 27789, 27796, 27800, 27778, 28790, {f: 2, c: 28796},
  7449. 28792, 29282, 29281, 29280, 29380, 29378, 29590, 29996, 29995,
  7450. {f: 2, c: 30007}, 30338, 30447, 30691, 31169, 31168, 31167, 31350, 31995,
  7451. 32597, 32918, 32915, 32925, 32920, 32923, 32922, 32946, 33391, 33426,
  7452. 33419, 33421, [12178, 35211], [12179, 35282], [12180, 35328],
  7453. [12181, 35895], [12182, 35910], [12183, 35925], [12185, 35997],
  7454. [12186, 36196], [12187, 36208], [12188, 36275], [12189, 36523],
  7455. [12190, 36554], [12191, 36763], [12192, 36784], 36802, 36806, 36805, 36804,
  7456. 24033, [12194, 37009], 37026, 37034, 37030, 37027, [12195, 37193],
  7457. [12196, 37318], [12197, 37324], 38450, 38446, 38449, 38442, 38444, 20006,
  7458. 20054, 20083, 20107, 20123, 20126, {f: 2, c: 20139}, 20335, 20381, 20365,
  7459. 20339, 20351, 20332, 20379, 20363, 20358, 20355, 20336, 20341, 20360,
  7460. 20329, 20347, 20374, 20350, 20367, 20369, 20346, 20820, 20818, 20821,
  7461. 20841, 20855, 20854, 20856, 20925, 20989, 21051, 21048, 21047, 21050,
  7462. 21040, 21038, 21046, 21057, 21182, 21179, 21330, 21332, 21331, 21329,
  7463. 21350, {f: 3, c: 21367}, 21462, 21460, 21463, 21619, 21621, 21654, 21624,
  7464. 21653, 21632, 21627, 21623, 21636, 21650, 21638, 21628, 21648, 21617,
  7465. 21622, 21644, 21658, 21602, 21608, 21643, 21629, 21646, 22266, 22403,
  7466. 22391, 22378, 22377, 22369, 22374, 22372, 22396, 22812, 22857,
  7467. {f: 2, c: 22855}, 22852, 22868, 22974, 22971, 22996, 22969, 22958, 22993,
  7468. 22982, 22992, 22989, 22987, 22995, 22986, 22959, 22963, 22994, 22981,
  7469. 23391, 23396, 23395, 23447, 23450, 23448, 23452, 23449, 23451, 23578,
  7470. 23624, {f: 2, c: 23621}, 23735, 23713, 23736, 23721, 23723, 23729, 23731,
  7471. 24088, 24090, 24086, 24085, 24091, 24081, 24184, 24218, 24215, 24220,
  7472. {f: 2, c: 24213}, 24310, {f: 2, c: 24358}, 24361, {f: 2, c: 24448}, 24447,
  7473. 24444, 24541, 24544, 24573, 24565, 24575, 24591, 24596, 24623, 24629,
  7474. 24598, 24618, 24597, 24609, 24615, 24617, 24619, 24603, 25110, 25109,
  7475. 25151, 25150, 25152, 25215, 25289, 25292, 25284, 25279, 25282, 25273,
  7476. 25298, 25307, 25259, {f: 2, c: 25299}, 25291, 25288, 25256, 25277, 25276,
  7477. [25296, 60582], 25305, 25287, 25293, 25269, 25306, 25265, 25304,
  7478. {f: 2, c: 25302}, 25286, 25260, [25294, 61010], 25918, 26023, 26044, 26106,
  7479. 26132, 26131, 26124, 26118, 26114, 26126, 26112, 26127, 26133, 26122,
  7480. 26119, 26381, 26379, 26477, 26507, 26517, 26481, 26524, 26483, 26487,
  7481. 26503, 26525, 26519, {f: 2, c: 26479}, 26495, 26505, 26494, 26512, 26485,
  7482. 26522, 26515, 26492, 26474, 26482, 27427, {f: 2, c: 27494}, 27519, 27667,
  7483. 27675, 27875, 27880, 27891, 27825, 27852, 27877, 27827, {f: 2, c: 27837},
  7484. 27836, 27874, 27819, 27861, 27859, 27832, 27844, 27833, 27841, 27822,
  7485. 27863, 27845, 27889, 27839, 27835, 27873, 27867, 27850, 27820, 27887,
  7486. 27868, 27862, 27872, 28821, 28814, 28818, 28810, 28825, {f: 2, c: 29228},
  7487. 29240, 29256, 29287, 29289, 29376, 29390, 29401, 29399, 29392, 29609,
  7488. 29608, 29599, 29611, 29605, 30013, 30109, {f: 2, c: 30105}, 30340, 30402,
  7489. 30450, 30452, 30693, 30717, 31038, {f: 2, c: 31040}, 31177, 31176, 31354,
  7490. 31353, 31482, 31998, 32596, 32652, 32651, [32773, 58236], 32954, 32933,
  7491. 32930, 32945, 32929, 32939, 32937, 32948, 32938, 32943, 33253, 33278,
  7492. 33293, 33459, 33437, 33433, 33453, 33469, 33439, 33465, 33457, 33452,
  7493. 33445, 33455, 33464, 33443, 33456, 33470, 33463, 34382, 34417, 21021,
  7494. 34920, 36555, 36814, 36820, 36817, 37045, 37048, 37041, 37046, 37319,
  7495. [12198, 37329], [12199, 38263], [12200, 38272], [12201, 38428], 38464,
  7496. 38463, 38459, 38468, 38466, [12203, 38585], [12204, 38632], 38738,
  7497. [12206, 38750], 20127, {f: 2, c: 20141}, 20449, 20405, 20399, 20415, 20448,
  7498. 20433, 20431, 20445, 20419, 20406, 20440, 20447, 20426, 20439, 20398,
  7499. 20432, 20420, 20418, 20442, 20430, 20446, 20407, 20823, 20882, 20881,
  7500. 20896, 21070, 21059, 21066, 21069, 21068, 21067, 21063, 21191, 21193,
  7501. 21187, 21185, 21261, 21335, 21371, 21402, 21467, 21676, 21696, 21672,
  7502. 21710, 21705, 21688, 21670, 21683, 21703, 21698, 21693, 21674, 21697,
  7503. 21700, 21704, 21679, 21675, 21681, 21691, 21673, 21671, 21695, 22271,
  7504. 22402, 22411, 22432, 22435, 22434, 22478, 22446, 22419, 22869, 22865,
  7505. 22863, 22862, 22864, 23004, 23000, 23039, 23011, 23016, 23043, 23013,
  7506. 23018, 23002, 23014, 23041, 23035, 23401, 23459, 23462, 23460, 23458,
  7507. 23461, 23553, {f: 2, c: 23630}, 23629, 23627, 23769, 23762, 24055, 24093,
  7508. 24101, 24095, 24189, 24224, 24230, 24314, 24328, 24365, 24421, 24456,
  7509. 24453, {f: 2, c: 24458}, 24455, 24460, 24457, 24594, 24605, 24608, 24613,
  7510. 24590, 24616, 24653, 24688, 24680, [24674, 60712], 24646, 24643, 24684,
  7511. 24683, 24682, 24676, 25153, 25308, 25366, 25353, 25340, 25325, 25345,
  7512. 25326, 25341, 25351, 25329, 25335, 25327, 25324, 25342, 25332, 25361,
  7513. 25346, 25919, 25925, 26027, 26045, 26082, 26149, 26157, 26144, 26151,
  7514. 26159, 26143, 26152, 26161, 26148, 26359, 26623, 26579, 26609, 26580,
  7515. 26576, 26604, 26550, 26543, 26613, 26601, 26607, 26564, 26577, 26548,
  7516. 26586, 26597, 26552, 26575, 26590, 26611, 26544, 26585, 26594, 26589,
  7517. 26578, 27498, 27523, 27526, 27573, 27602, 27607, 27679, 27849, 27915,
  7518. 27954, 27946, 27969, 27941, 27916, 27953, 27934, 27927, 27963,
  7519. {f: 2, c: 27965}, 27958, 27931, 27893, 27961, 27943, 27960, 27945, 27950,
  7520. 27957, 27918, 27947, 28843, 28858, 28851, 28844, 28847, 28845, 28856,
  7521. 28846, 28836, 29232, 29298, 29295, 29300, 29417, {f: 2, c: 29408}, 29623,
  7522. 29642, 29627, 29618, 29645, 29632, 29619, 29978, 29997, 30031, 30028,
  7523. 30030, 30027, 30123, {f: 2, c: 30116}, {f: 2, c: 30114}, 30328,
  7524. {f: 3, c: 30342}, 30408, 30406, 30403, 30405, 30465, 30457, 30456, 30473,
  7525. 30475, 30462, 30460, 30471, 30684, 30722, 30740, {f: 2, c: 30732}, 31046,
  7526. 31049, 31048, 31047, {f: 2, c: 31161}, {f: 2, c: 31185}, 31179, 31359,
  7527. 31361, 31487, 31485, 31869, 32002, 32005, 32000, 32009, 32007, 32004,
  7528. 32006, 32568, 32654, 32703, 32784, 32781, 32785, 32822, 32982, 32997,
  7529. 32986, {f: 2, c: 32963}, 32972, 32993, 32987, 32974, 32990, 32996, 32989,
  7530. 33268, 33314, 33511, 33539, 33541, 33507, 33499, 33510, 33540, 33509,
  7531. 33538, 33545, 33490, 33495, 33521, 33537, 33500, 33492, 33489, 33502,
  7532. 33491, 33503, 33519, 33542, 34384, 34425, 34427, 34426, 34893, 34923,
  7533. 35201, 35284, 35336, {f: 2, c: 35330}, 35998, 36000, 36212, 36211, 36276,
  7534. 36557, 36556, 36848, 36838, 36834, 36842, 36837, 36845, 36843, 36836,
  7535. 36840, 37066, 37070, 37057, 37059, 37195, 37194, 37325, 38274, 38480,
  7536. {f: 3, c: 38475}, [12207, 38754], [12208, 38761], [12209, 38859],
  7537. [12210, 38893], [12211, 38899], [12212, 38913], [12213, 39080],
  7538. [12214, 39131], [12215, 39135], [12216, 39318], [12217, 39321], 20056,
  7539. 20147, {f: 2, c: 20492}, 20515, 20463, 20518, 20517, 20472, [20521, 57375],
  7540. 20502, 20486, 20540, 20511, 20506, 20498, 20497, 20474, 20480, 20500,
  7541. 20520, 20465, 20513, 20491, 20505, 20504, 20467, 20462, 20525, 20522,
  7542. 20478, 20523, 20489, 20860, {f: 2, c: 20900}, 20898, 20941, 20940, 20934,
  7543. 20939, 21078, 21084, 21076, 21083, 21085, 21290, [21375, 57459], 21407,
  7544. 21405, 21471, 21736, 21776, 21761, 21815, 21756, 21733, 21746, 21766,
  7545. 21754, 21780, 21737, 21741, 21729, 21769, 21742, 21738, 21734, 21799,
  7546. 21767, 21757, 21775, {f: 2, c: 22275}, 22466, 22484, 22475, 22467, 22537,
  7547. 22799, {f: 2, c: 22871}, 22874, 23057, 23064, 23068, 23071, 23067, 23059,
  7548. 23020, 23072, 23075, 23081, 23077, 23052, 23049, 23403, 23640, 23472,
  7549. 23475, 23478, 23476, 23470, 23477, 23481, 23480, 23556, 23633, 23637,
  7550. 23632, 23789, 23805, 23803, 23786, 23784, 23792, 23798, 23809, 23796,
  7551. 24046, 24109, 24107, 24235, 24237, 24231, 24369, 24466, 24465, 24464,
  7552. 24665, 24675, 24677, 24656, 24661, 24685, 24681, 24687, 24708, 24735,
  7553. 24730, 24717, 24724, 24716, 24709, 24726, 25159, 25331, 25352, 25343,
  7554. 25422, 25406, 25391, 25429, 25410, 25414, 25423, 25417, 25402, 25424,
  7555. 25405, {f: 2, c: 25386}, 25384, 25421, 25420, {f: 2, c: 25928}, 26009,
  7556. 26049, 26053, 26178, 26185, 26191, 26179, 26194, 26188, 26181, 26177,
  7557. 26360, {f: 2, c: 26388}, 26391, 26657, 26680, 26696, 26694, 26707, 26681,
  7558. 26690, 26708, 26665, 26803, 26647, 26700, 26705, 26685, 26612, 26704,
  7559. 26688, 26684, 26691, 26666, 26693, 26643, 26648, 26689, 27530, 27529,
  7560. 27575, 27683, {f: 2, c: 27687}, 27686, 27684, 27888, 28010, 28053, 28040,
  7561. 28039, 28006, 28024, 28023, 27993, 28051, 28012, 28041, 28014, 27994,
  7562. 28020, 28009, 28044, 28042, 28025, 28037, 28005, 28052, 28874, 28888,
  7563. 28900, 28889, 28872, 28879, 29241, 29305, 29436, 29433, 29437, 29432,
  7564. 29431, 29574, 29677, 29705, 29678, 29664, 29674, 29662, 30036, 30045,
  7565. 30044, 30042, 30041, 30142, 30149, 30151, {f: 2, c: 30130}, 30141, 30140,
  7566. 30137, 30146, 30136, 30347, 30384, 30410, {f: 2, c: 30413}, 30505,
  7567. {f: 2, c: 30495}, 30504, 30697, 30768, 30759, 30776, 30749, 30772, 30775,
  7568. 30757, 30765, 30752, 30751, 30770, 31061, 31056, 31072, 31071, 31062,
  7569. 31070, 31069, 31063, 31066, 31204, [31203, 60418], 31207, 31199, 31206,
  7570. 31209, 31192, 31364, 31368, 31449, 31494, 31505, 31881, 32033, 32023,
  7571. 32011, 32010, 32032, 32034, 32020, 32016, 32021, 32026, 32028, 32013,
  7572. 32025, 32027, 32570, 32607, 32660, 32709, 32705, 32774, 32772, 32792,
  7573. 32789, 32793, 32791, 32829, 32831, 33009, 33026, 33008, 33029, 33005,
  7574. 33012, 33030, 33016, 33011, 33032, 33021, 33034, 33020, 33007, 33261,
  7575. 33260, 33280, 33296, {f: 2, c: 33322}, 33320, 33324, 33467, 33579, 33618,
  7576. 33620, 33610, 33592, 33616, 33609, 33589, 33588, 33615, 33586, 33593,
  7577. 33590, 33559, 33600, 33585, 33576, 33603, 34388, 34442, 34474, 34451,
  7578. 34468, 34473, 34444, 34467, 34460, 34928, 34935, {f: 2, c: 34945}, 34941,
  7579. 34937, 35352, 35344, 35342, 35340, 35349, 35338, 35351, 35347, 35350,
  7580. 35343, 35345, 35912, 35962, 35961, {f: 2, c: 36001}, [36215, 58442], 36524,
  7581. 36562, 36564, 36559, 36785, 36865, 36870, 36855, 36864, 36858, 36852,
  7582. 36867, 36861, 36869, 36856, 37013, 37089, 37085, 37090, 37202, 37197,
  7583. 37196, 37336, 37341, 37335, 37340, 37337, 38275, {f: 2, c: 38498}, 38497,
  7584. 38491, 38493, 38500, 38488, 38494, 38587, 39138, [12218, 39340],
  7585. [12219, 39592], [12220, 39640], [12222, 39717], [12224, 39730],
  7586. [12225, 39740], 20094, 20602, [20605, 57382], 20572, 20551, 20547, 20556,
  7587. 20570, 20553, 20581, 20598, 20558, 20565, 20597, 20596, 20599, 20559,
  7588. 20495, 20591, 20589, 20828, 20885, 20976, 21098, 21103, 21202, 21209,
  7589. 21208, 21205, 21264, 21263, 21273, {f: 2, c: 21311}, 21310, 21443, 26364,
  7590. 21830, 21866, 21862, 21828, 21854, 21857, 21827, 21834, 21809, 21846,
  7591. 21839, 21845, 21807, 21860, 21816, 21806, 21852, 21804, 21859, 21811,
  7592. 21825, 21847, 22280, 22283, 22281, 22495, 22533, 22538, 22534, 22496,
  7593. 22500, 22522, 22530, 22581, 22519, 22521, 22816, 22882, 23094, 23105,
  7594. 23113, 23142, 23146, 23104, 23100, 23138, 23130, 23110, 23114, 23408,
  7595. 23495, 23493, 23492, 23490, 23487, 23494, 23561, 23560, 23559, 23648,
  7596. {f: 2, c: 23644}, 23815, 23814, 23822, 23835, 23830, 23842, 23825, 23849,
  7597. 23828, 23833, 23844, 23847, 23831, 24034, 24120, 24118, 24115, 24119,
  7598. {f: 2, c: 24247}, 24246, 24245, 24254, 24373, 24375, 24407, 24428, 24425,
  7599. 24427, 24471, 24473, 24478, 24472, 24481, 24480, 24476, 24703, 24739,
  7600. 24713, 24736, 24744, 24779, 24756, 24806, 24765, 24773, 24763, 24757,
  7601. 24796, 24764, 24792, 24789, 24774, 24799, 24760, 24794, 24775,
  7602. {f: 2, c: 25114}, 25160, 25504, 25511, 25458, 25494, 25506, 25509, 25463,
  7603. 25447, 25496, 25514, 25457, 25513, 25481, 25475, 25499, 25451, 25512,
  7604. 25476, 25480, 25497, 25505, 25516, 25490, 25487, 25472, 25467, 25449,
  7605. 25448, 25466, 25949, 25942, 25937, 25945, 25943, 21855, 25935, 25944,
  7606. 25941, 25940, 26012, 26011, 26028, 26063, {f: 2, c: 26059}, 26062, 26205,
  7607. 26202, 26212, 26216, 26214, 26206, 26361, 21207, 26395, 26753, 26799,
  7608. 26786, 26771, 26805, 26751, 26742, 26801, 26791, 26775, 26800, 26755,
  7609. 26820, 26797, 26758, 26757, 26772, 26781, 26792, 26783, 26785, 26754,
  7610. 27442, 27578, {f: 2, c: 27627}, 27691, 28046, 28092, 28147, 28121, 28082,
  7611. 28129, 28108, 28132, 28155, 28154, 28165, 28103, 28107, 28079, 28113,
  7612. 28078, 28126, 28153, 28088, 28151, 28149, 28101, 28114, 28186, 28085,
  7613. 28122, 28139, 28120, 28138, 28145, 28142, 28136, 28102, 28100, 28074,
  7614. 28140, 28095, 28134, 28921, {f: 2, c: 28937}, 28925, 28911, 29245, 29309,
  7615. 29313, 29468, 29467, 29462, 29459, 29465, 29575, 29701, 29706, 29699,
  7616. 29702, 29694, 29709, 29920, {f: 2, c: 29942}, 29980, 29986,
  7617. {f: 2, c: 30053}, 30050, 30064, 30095, {f: 2, c: 30164}, 30133, 30154,
  7618. 30157, 30350, 30420, 30418, 30427, 30519, 30526, 30524, 30518, 30520,
  7619. 30522, 30827, 30787, 30798, 31077, 31080, 31085, 31227, 31378, 31381,
  7620. 31520, 31528, 31515, 31532, 31526, 31513, 31518, 31534, 31890, 31895,
  7621. 31893, 32070, 32067, 32113, 32046, 32057, 32060, 32064, 32048, 32051,
  7622. 32068, 32047, 32066, 32050, 32049, 32573, 32670, 32666, 32716, 32718,
  7623. 32722, 32796, 32842, 32838, 33071, 33046, 33059, 33067, 33065, 33072,
  7624. 33060, 33282, 33333, 33335, 33334, 33337, 33678, 33694, 33688, 33656,
  7625. 33698, 33686, 33725, 33707, 33682, 33674, 33683, 33673, 33696, 33655,
  7626. {f: 2, c: 33659}, 33670, 33703, 34389, 24426, 34503, 34496, 34486, 34500,
  7627. 34485, 34502, 34507, 34481, 34479, 34505, 34899, 34974, 34952, 34987,
  7628. 34962, 34966, 34957, 34955, 35219, 35215, 35370, 35357, 35363, 35365,
  7629. 35377, 35373, 35359, 35355, 35362, 35913, 35930, 36009, 36012, 36011,
  7630. 36008, 36010, 36007, 36199, 36198, 36286, 36282, 36571, 36575, 36889,
  7631. 36877, 36890, 36887, 36899, 36895, 36893, 36880, 36885, 36894, 36896,
  7632. 36879, 36898, 36886, 36891, 36884, 37096, 37101, [37117, 58488], 37207,
  7633. 37326, 37365, 37350, 37347, 37351, 37357, 37353, 38281, 38506, 38517,
  7634. 38515, 38520, 38512, 38516, {f: 2, c: 38518}, 38508, 38592, 38634, 38633,
  7635. 31456, 31455, {f: 2, c: 38914}, [12226, 39770], [12227, 40165],
  7636. [12228, 40565], [12229, 40575], [12230, 40613], [12231, 40635], 20642,
  7637. 20621, 20613, 20633, 20625, 20608, 20630, 20632, 20634, 26368, 20977,
  7638. 21106, {f: 2, c: 21108}, 21097, 21214, 21213, 21211, 21338, 21413, 21883,
  7639. 21888, 21927, 21884, 21898, 21917, 21912, 21890, 21916, 21930, 21908,
  7640. 21895, 21899, 21891, 21939, 21934, 21919, 21822, 21938, 21914, 21947,
  7641. 21932, 21937, 21886, 21897, 21931, 21913, 22285, 22575, 22570, 22580,
  7642. 22564, {f: 2, c: 22576}, 22561, 22557, 22560, {f: 2, c: 22777}, 22880,
  7643. [23159, 57587], 23194, 23167, 23186, 23195, 23207, 23411, 23409, 23506,
  7644. 23500, 23507, 23504, {f: 2, c: 23562}, 23601, 23884, 23888, 23860, 23879,
  7645. 24061, 24133, 24125, 24128, 24131, 24190, 24266, {f: 2, c: 24257}, 24260,
  7646. 24380, 24429, {f: 2, c: 24489}, 24488, 24785, 24801, 24754, 24758, 24800,
  7647. 24860, 24867, 24826, 24853, 24816, 24827, 24820, 24936, 24817, 24846,
  7648. 24822, 24841, 24832, 24850, 25119, 25161, 25507, 25484, 25551, 25536,
  7649. 25577, 25545, 25542, 25549, 25554, 25571, 25552, 25569, 25558,
  7650. {f: 2, c: 25581}, 25462, 25588, 25578, 25563, 25682, 25562, 25593, 25950,
  7651. 25958, {f: 2, c: 25954}, 26001, 26000, 26031, 26222, 26224, [26228, 57786],
  7652. 26230, 26223, 26257, 26234, 26238, 26231, {f: 2, c: 26366}, 26399, 26397,
  7653. 26874, 26837, 26848, 26840, 26839, 26885, 26847, 26869, 26862, 26855,
  7654. 26873, 26834, 26866, 26851, 26827, 26829, 26893, 26898, 26894, 26825,
  7655. 26842, 26990, 26875, 27454, 27450, 27453, 27544, 27542, 27580, 27631,
  7656. {f: 2, c: 27694}, 27692, [28207, 57904], 28216, 28244, 28193, 28210, 28263,
  7657. 28234, 28192, 28197, 28195, 28187, 28251, 28248, 28196, 28246, 28270,
  7658. 28205, 28198, 28271, 28212, 28237, 28218, 28204, 28227, [28189, 57901],
  7659. 28222, 28363, 28297, 28185, 28238, 28259, 28228, 28274, 28265, 28255,
  7660. {f: 2, c: 28953}, 28966, 28976, 28961, 28982, [29038, 57958], 28956, 29260,
  7661. 29316, 29312, 29494, 29477, 29492, 29481, 29754, 29738, 29747, 29730,
  7662. 29733, {f: 2, c: 29749}, 29748, 29743, 29723, 29734, 29736,
  7663. {f: 2, c: 29989}, 30059, 30058, 30178, 30171, 30179, 30169, 30168, 30174,
  7664. 30176, {f: 2, c: 30331}, 30358, 30355, 30388, 30428, 30543, 30701, 30813,
  7665. 30828, 30831, 31245, 31240, 31243, 31237, 31232, 31384, 31383, 31382,
  7666. 31461, 31459, 31561, 31574, 31558, 31568, 31570, 31572, 31565, 31563,
  7667. 31567, [31569, 60510], 31903, 31909, 32094, 32080, 32104, 32085, 32043,
  7668. 32110, 32114, 32097, 32102, 32098, 32112, 32115, 21892, {f: 2, c: 32724},
  7669. 32779, 32850, 32901, 33109, 33108, 33099, 33105, 33102, 33081, 33094,
  7670. 33086, 33100, 33107, 33140, 33298, 33308, 33769, 33795, 33784, 33805,
  7671. 33760, 33733, 33803, [33729, 58309], 33775, 33777, 33780, 33879, 33802,
  7672. 33776, 33804, 33740, 33789, 33778, 33738, 33848, 33806, 33796, 33756,
  7673. 33799, 33748, 33759, 34395, 34527, 34521, 34541, 34516, 34523, 34532,
  7674. 34512, 34526, 34903, {f: 2, c: 35009}, 34993, 35203, 35222, 35387, 35424,
  7675. 35413, 35422, 35388, 35393, 35412, 35419, 35408, 35398, 35380, 35386,
  7676. 35382, 35414, 35937, 35970, 36015, 36028, 36019, 36029, 36033, 36027,
  7677. 36032, 36020, 36023, 36022, 36031, 36024, 36234, 36229, 36225, 36302,
  7678. 36317, 36299, 36314, 36305, 36300, 36315, 36294, 36603, 36600, 36604,
  7679. 36764, 36910, 36917, 36913, 36920, 36914, 36918, 37122, 37109, 37129,
  7680. 37118, 37219, 37221, 37327, {f: 2, c: 37396}, 37411, 37385, 37406, 37389,
  7681. 37392, 37383, 37393, 38292, 38287, 38283, 38289, 38291, 38290, 38286,
  7682. 38538, 38542, 38539, 38525, {f: 2, c: 38533}, 38541, 38514, 38532, 38593,
  7683. 38597, 38596, {f: 2, c: 38598}, 38639, 38642, 38860, {f: 2, c: 38917},
  7684. 38920, 39143, 39146, 39151, 39145, 39154, 39149, 39342, 39341,
  7685. [12232, 40643], [12233, 40653], [12234, 40657], 20098, 20653, 20661,
  7686. {f: 2, c: 20658}, 20677, 20670, 20652, 20663, 20667, 20655, 20679, 21119,
  7687. 21111, 21117, 21215, 21222, 21220, {f: 2, c: 21218}, 21295, 21983, 21992,
  7688. 21971, 21990, 21966, 21980, 21959, 21969, {f: 2, c: 21987}, 21999, 21978,
  7689. 21985, {f: 2, c: 21957}, 21989, 21961, {f: 2, c: 22290}, 22622, 22609,
  7690. 22616, 22615, 22618, 22612, 22635, 22604, 22637, 22602, 22626, 22610,
  7691. 22603, 22887, 23233, 23241, 23244, 23230, 23229, 23228, 23219, 23234,
  7692. 23218, 23913, 23919, 24140, 24185, 24265, 24264, 24338, 24409, 24492,
  7693. 24494, 24858, 24847, 24904, 24863, 24819, 24859, 24825, 24833, 24840,
  7694. 24910, 24908, 24900, 24909, 24894, 24884, 24871, 24845, 24838, 24887,
  7695. {f: 2, c: 25121}, 25619, 25662, 25630, 25642, 25645, 25661, 25644, 25615,
  7696. 25628, 25620, 25613, 25654, {f: 2, c: 25622}, 25606, 25964, 26015, 26032,
  7697. 26263, 26249, {f: 2, c: 26247}, 26262, 26244, 26264, 26253, 26371, 27028,
  7698. 26989, 26970, 26999, 26976, 26964, 26997, 26928, 27010, 26954, 26984,
  7699. 26987, 26974, 26963, 27001, 27014, 26973, 26979, 26971, 27463, 27506,
  7700. 27584, 27583, 27603, 27645, 28322, 28335, 28371, 28342, 28354, 28304,
  7701. 28317, 28359, 28357, 28325, 28312, 28348, 28346, 28331, 28369, 28310,
  7702. 28316, 28356, 28372, 28330, 28327, 28340, 29006, 29017, 29033, 29028,
  7703. 29001, 29031, 29020, 29036, 29030, 29004, 29029, 29022, 28998, 29032,
  7704. 29014, 29242, 29266, 29495, 29509, 29503, 29502, 29807, 29786, 29781,
  7705. 29791, 29790, 29761, 29759, 29785, 29787, [29788, 58019], 30070, 30072,
  7706. 30208, 30192, 30209, 30194, 30193, 30202, 30207, 30196, 30195,
  7707. {f: 2, c: 30430}, 30555, 30571, 30566, 30558, 30563, 30585, 30570, 30572,
  7708. 30556, 30565, 30568, 30562, 30702, 30862, 30896, {f: 2, c: 30871}, 30860,
  7709. 30857, 30844, 30865, 30867, 30847, 31098, 31103, 31105, 33836, 31165,
  7710. 31260, 31258, 31264, 31252, 31263, 31262, {f: 2, c: 31391}, 31607, 31680,
  7711. 31584, 31598, 31591, 31921, 31923, 31925, 32147, 32121, 32145, 32129,
  7712. 32143, 32091, 32622, {f: 2, c: 32617}, 32626, 32681, 32680, 32676, 32854,
  7713. 32856, 32902, 32900, 33137, 33136, 33144, 33125, 33134, 33139, 33131,
  7714. {f: 2, c: 33145}, 33126, 33285, 33351, 33922, 33911, 33853, 33841, 33909,
  7715. 33894, 33899, 33865, 33900, 33883, 33852, 33845, 33889, 33891, 33897,
  7716. 33901, 33862, 34398, 34396, 34399, 34553, 34579, 34568, 34567, 34560,
  7717. 34558, 34555, {f: 2, c: 34562}, 34566, 34570, 34905, 35039, 35028, 35033,
  7718. 35036, 35032, 35037, 35041, 35018, 35029, 35026, 35228, 35299, 35435,
  7719. {f: 2, c: 35442}, 35430, 35433, 35440, 35463, 35452, 35427, 35488, 35441,
  7720. 35461, 35437, 35426, 35438, 35436, 35449, 35451, 35390, 35432, 35938,
  7721. 35978, 35977, 36042, {f: 2, c: 36039}, 36036, 36018, 36035, 36034, 36037,
  7722. 36321, 36319, 36328, 36335, 36339, 36346, 36330, 36324, 36326, 36530,
  7723. 36611, 36617, 36606, 36618, 36767, 36786, 36939, 36938, 36947, 36930,
  7724. 36948, 36924, 36949, 36944, 36935, 36943, 36942, 36941, 36945, 36926,
  7725. 36929, 37138, 37143, 37228, 37226, 37225, 37321, 37431, 37463, 37432,
  7726. 37437, 37440, 37438, 37467, 37451, 37476, 37457, 37428, 37449, 37453,
  7727. 37445, 37433, 37439, 37466, 38296, 38552, {f: 2, c: 38548}, 38605, 38603,
  7728. {f: 2, c: 38601}, 38647, 38651, 38649, 38646, 38742, 38772, 38774,
  7729. {f: 2, c: 38928}, 38931, 38922, 38930, 38924, 39164, 39156,
  7730. {f: 2, c: 39165}, 39347, 39345, 39348, 39649, 40169, 40578, [12237, 40718],
  7731. [12238, 40723], [12239, 40736], 20711, 20718, 20709, 20694, [20717, 60903],
  7732. 20698, 20693, 20687, 20689, 20721, 20686, 20713, 20834, 20979, 21123,
  7733. 21122, 21297, 21421, 22014, 22016, 22043, 22039, 22013, 22036, 22022,
  7734. 22025, {f: 2, c: 22029}, 22007, 22038, 22047, 22024, 22032, 22006, 22296,
  7735. 22294, 22645, 22654, 22659, 22675, 22666, 22649, 22661, 22653, 22781,
  7736. 22821, 22818, 22820, 22890, 22889, 23265, 23270, 23273, 23255, 23254,
  7737. 23256, 23267, 23413, 23518, 23527, 23521, {f: 2, c: 23525}, 23528, 23522,
  7738. 23524, 23519, 23565, 23650, 23940, 23943, 24155, 24163, 24149, 24151,
  7739. 24148, 24275, 24278, 24330, 24390, 24432, 24505, 24903, 24895, 24907,
  7740. 24951, {f: 2, c: 24930}, 24927, 24922, 24920, 24949, 25130, 25735, 25688,
  7741. 25684, 25764, 25720, 25695, 25722, 25681, 25703, 25652, 25709, 25723,
  7742. 25970, 26017, 26071, 26070, 26274, 26280, 26269, 27036, 27048, 27029,
  7743. 27073, 27054, 27091, 27083, 27035, 27063, 27067, 27051, 27060, 27088,
  7744. 27085, 27053, 27084, 27046, 27075, 27043, 27465, 27468, 27699, 28467,
  7745. 28436, 28414, 28435, 28404, 28457, 28478, 28448, 28460, 28431, 28418,
  7746. 28450, 28415, 28399, 28422, 28465, 28472, 28466, 28451, 28437, 28459,
  7747. 28463, 28552, 28458, 28396, 28417, 28402, 28364, 28407, 29076, 29081,
  7748. 29053, 29066, 29060, 29074, 29246, 29330, 29334, 29508, 29520, 29796,
  7749. 29795, 29802, 29808, 29805, 29956, 30097, 30247, 30221, 30219, 30217,
  7750. 30227, 30433, 30435, 30596, 30589, 30591, 30561, 30913, 30879, 30887,
  7751. 30899, 30889, 30883, {f: 2, c: 31118}, 31117, 31278, 31281, 31402, 31401,
  7752. 31469, 31471, 31649, 31637, 31627, 31605, 31639, 31645, 31636, 31631,
  7753. [31672, 58170], 31623, 31620, 31929, {f: 2, c: 31933}, 32187, 32176, 32156,
  7754. {f: 2, c: 32189}, 32160, 32202, 32180, 32178, 32177, 32186, 32162, 32191,
  7755. 32181, 32184, 32173, [32210, 58202], 32199, 32172, 32624, {f: 2, c: 32736},
  7756. 32735, 32862, 32858, 32903, 33104, 33152, 33167, 33160, 33162, 33151,
  7757. 33154, 33255, 33274, 33287, 33300, 33310, 33355, 33993, 33983, 33990,
  7758. 33988, 33945, 33950, 33970, 33948, 33995, 33976, 33984, 34003, 33936,
  7759. 33980, 34001, 33994, 34623, 34588, 34619, 34594, 34597, 34612, 34584,
  7760. 34645, 34615, 34601, 35059, 35074, 35060, 35065, 35064, 35069, 35048,
  7761. 35098, 35055, 35494, 35468, 35486, 35491, 35469, 35489, 35475, 35492,
  7762. 35498, 35493, 35496, 35480, 35473, 35482, 35495, 35946, 35981, 35980,
  7763. 36051, {f: 2, c: 36049}, 36203, 36249, 36245, 36348, 36628, 36626, 36629,
  7764. 36627, 36771, 36960, 36952, 36956, 36963, 36953, 36958, 36962, 36957,
  7765. 36955, 37145, 37144, 37150, 37237, 37240, 37239, 37236, 37496, 37548,
  7766. 37504, 37509, 37528, 37526, 37499, 37523, 37532, 37544, 37500, 37521,
  7767. 38305, {f: 2, c: 38312}, 38307, 38309, 38308, 38553, 38556, 38555, 38604,
  7768. 38610, 38656, 38780, 38789, 38902, {f: 2, c: 38935}, 39087, 39089, 39171,
  7769. 39173, 39180, 39177, 39361, {f: 2, c: 39599}, 39654, {f: 2, c: 39745},
  7770. 40180, 40182, 40179, 40636, [12240, 40763], [12241, 40778], 20740, 20736,
  7771. 20731, 20725, 20729, 20738, {f: 2, c: 20744}, 20741, 20956,
  7772. {f: 3, c: 21127}, 21133, 21130, 21232, 21426, 22062, 22075, 22073, 22066,
  7773. 22079, 22068, 22057, 22099, 22094, 22103, 22132, 22070, {f: 2, c: 22063},
  7774. 22656, 22687, 22686, 22707, 22684, 22702, 22697, 22694, 22893, 23305,
  7775. 23291, 23307, 23285, 23308, 23304, 23534, 23532, 23529, 23531,
  7776. {f: 2, c: 23652}, 23965, 23956, 24162, 24159, 24161, 24290, 24282, 24287,
  7777. 24285, 24291, 24288, 24392, 24433, 24503, 24501, 24950, 24935, 24942,
  7778. 24925, 24917, 24962, 24956, 24944, 24939, 24958, 24999, 24976, 25003,
  7779. 24974, 25004, 24986, 24996, 24980, 25006, 25134, 25705, 25711, 25721,
  7780. 25758, 25778, 25736, [25744, 57745], 25776, 25765, 25747, 25749, 25769,
  7781. 25746, 25774, 25773, 25771, 25754, 25772, 25753, 25762, 25779, 25973,
  7782. {f: 2, c: 25975}, 26286, 26283, 26292, 26289, 27171, 27167, 27112, 27137,
  7783. 27166, 27161, 27133, 27169, 27155, 27146, 27123, 27138, 27141, 27117,
  7784. 27153, 27472, 27470, 27556, {f: 2, c: 27589}, 28479, 28540, 28548, 28497,
  7785. 28518, 28500, 28550, 28525, 28507, 28536, 28526, 28558, 28538, 28528,
  7786. 28516, 28567, 28504, 28373, 28527, 28512, 28511, 29087, 29100, 29105,
  7787. 29096, 29270, 29339, 29518, 29527, 29801, 29835, 29827, 29822, 29824,
  7788. 30079, 30240, 30249, 30239, 30244, 30246, {f: 2, c: 30241}, 30362, 30394,
  7789. 30436, 30606, 30599, 30604, 30609, 30603, 30923, 30917, 30906, 30922,
  7790. 30910, 30933, 30908, 30928, 31295, 31292, 31296, 31293, 31287, 31291,
  7791. 31407, 31406, 31661, 31665, 31684, 31668, {f: 2, c: 31686}, 31681, 31648,
  7792. 31692, 31946, 32224, 32244, 32239, 32251, 32216, 32236, 32221, 32232,
  7793. 32227, 32218, 32222, 32233, 32158, 32217, 32242, 32249, 32629, 32631,
  7794. 32687, 32745, 32806, {f: 3, c: 33179}, 33184, 33178, 33176, 34071, 34109,
  7795. 34074, 34030, {f: 2, c: 34092}, 34067, 34065, 34083, 34081, 34068, 34028,
  7796. 34085, 34047, 34054, 34690, 34676, 34678, 34656, 34662, 34680, 34664,
  7797. 34649, 34647, 34636, 34643, 34907, 34909, 35088, 35079, {f: 2, c: 35090},
  7798. 35093, 35082, 35516, 35538, 35527, 35524, 35477, 35531, 35576, 35506,
  7799. 35529, 35522, 35519, 35504, 35542, 35533, 35510, 35513, 35547, 35916,
  7800. 35918, 35948, 36064, 36062, 36070, 36068, {f: 2, c: 36076},
  7801. {f: 2, c: 36066}, 36060, 36074, 36065, 36205, 36255, 36259, 36395, 36368,
  7802. 36381, 36386, 36367, 36393, 36383, 36385, 36382, 36538, 36637, 36635,
  7803. 36639, 36649, 36646, 36650, 36636, 36638, 36645, 36969, 36974, 36968,
  7804. 36973, 36983, 37168, 37165, 37159, 37169, 37255, 37257, 37259, 37251,
  7805. 37573, 37563, 37559, 37610, 37604, 37569, 37555, 37564, 37586, 37575,
  7806. 37616, 37554, 38317, 38321, 38660, {f: 2, c: 38662}, 38665, 38752, 38797,
  7807. 38795, 38799, 38945, 38955, 38940, 39091, 39178, 39187, 39186, 39192,
  7808. 39389, 39376, 39391, 39387, 39377, 39381, 39378, 39385, 39607,
  7809. {f: 2, c: 39662}, 39719, 39749, 39748, 39799, 39791, 40198, 40201, 40195,
  7810. 40617, 40638, 40654, 22696, [12242, 40786], 20754, 20760, 20756, 20752,
  7811. 20757, 20864, 20906, 20957, 21137, 21139, 21235, 22105, 22123, 22137,
  7812. 22121, 22116, 22136, 22122, 22120, 22117, 22129, 22127, 22124, 22114,
  7813. 22134, 22721, 22718, 22727, 22725, 22894, 23325, 23348, 23416, 23536,
  7814. 23566, 24394, 25010, 24977, 25001, 24970, 25037, 25014, 25022, 25034,
  7815. 25032, 25136, 25797, 25793, 25803, {f: 2, c: 25787}, 25818, 25796, 25799,
  7816. 25794, 25805, 25791, 25810, 25812, 25790, 25972, 26310, 26313, 26297,
  7817. 26308, 26311, 26296, 27197, 27192, 27194, 27225, 27243, 27224, 27193,
  7818. 27204, 27234, 27233, 27211, 27207, 27189, 27231, 27208, 27481, 27511,
  7819. 27653, 28610, 28593, 28577, 28611, 28580, 28609, 28583, 28595, 28608,
  7820. 28601, [28598, 60318], 28582, 28576, 28596, 29118, 29129, 29136, 29138,
  7821. 29128, 29141, 29113, 29134, 29145, 29148, {f: 2, c: 29123}, 29544, 29852,
  7822. 29859, 29848, 29855, 29854, 29922, {f: 2, c: 29964}, 30260, 30264, 30266,
  7823. 30439, 30437, 30624, {f: 2, c: 30622}, 30629, 30952, 30938, 30956, 30951,
  7824. 31142, {f: 2, c: 31309}, 31302, 31308, 31307, 31418, 31705, 31761, 31689,
  7825. 31716, 31707, 31713, 31721, 31718, {f: 2, c: 31957}, 32266, 32273, 32264,
  7826. 32283, 32291, 32286, [32285, 58211], 32265, 32272, 32633, 32690,
  7827. {f: 2, c: 32752}, 32750, [32808, 58239], 33203, 33193, 33192, 33275, 33288,
  7828. {f: 2, c: 33368}, 34122, 34137, 34120, {f: 2, c: 34152}, 34115, 34121,
  7829. 34157, 34154, 34142, 34691, 34719, 34718, 34722, 34701, 34913, 35114,
  7830. 35122, 35109, 35115, 35105, 35242, [35238, 58391], 35558, 35578, 35563,
  7831. 35569, 35584, 35548, 35559, 35566, 35582, {f: 2, c: 35585}, 35575, 35565,
  7832. 35571, 35574, 35580, 35947, 35949, 35987, 36084, 36420, 36401, 36404,
  7833. 36418, 36409, 36405, 36667, 36655, 36664, 36659, 36776, 36774, 36981,
  7834. 36980, 36984, 36978, 36988, 36986, 37172, 37266, 37664, 37686, 37624,
  7835. 37683, 37679, 37666, 37628, 37675, 37636, 37658, 37648, 37670, 37665,
  7836. 37653, 37678, 37657, 38331, {f: 2, c: 38567}, 38570, 38613, 38670, 38673,
  7837. 38678, 38669, 38675, 38671, 38747, [38748, 58565], 38758, 38808, 38960,
  7838. 38968, 38971, 38967, 38957, 38969, 38948, 39184, 39208, 39198, 39195,
  7839. 39201, 39194, 39405, 39394, 39409, 39608, 39612, 39675, 39661, 39720,
  7840. 39825, 40213, 40227, 40230, 40232, 40210, 40219, 40664, 40660,
  7841. [12243, 40845], [12244, 40860], 20778, 20767, 20769, 20786, 21237, 22158,
  7842. 22144, 22160, 22149, 22151, 22159, 22741, 22739, 22737, 22734, 23344,
  7843. 23338, 23332, 23418, 23607, 23656, 23996, 23994, 23997, 23992, 24171,
  7844. 24396, 24509, 25033, 25026, 25031, 25062, 25035, 25138, 25140, 25806,
  7845. 25802, 25816, 25824, 25840, 25830, 25836, 25841, 25826, 25837,
  7846. {f: 2, c: 25986}, 26329, 26326, 27264, 27284, 27268, 27298, 27292, 27355,
  7847. 27299, 27262, 27287, 27280, 27296, 27484, 27566, 27610, 27656, 28632,
  7848. 28657, {f: 2, c: 28639}, 28635, 28644, 28651, 28655, 28544, 28652, 28641,
  7849. 28649, 28629, 28654, 28656, 29159, [29151, 60361], 29166, 29158, 29157,
  7850. 29165, 29164, 29172, 29152, 29237, 29254, 29552, 29554, 29865, 29872,
  7851. 29862, 29864, 30278, 30274, 30284, 30442, 30643, 30634, 30640, 30636,
  7852. 30631, 30637, 30703, 30967, 30970, 30964, 30959, 30977, 31143, 31146,
  7853. 31319, 31423, 31751, 31757, 31742, 31735, 31756, 31712, 31968, 31964,
  7854. 31966, 31970, 31967, 31961, 31965, 32302, 32318, 32326, 32311, 32306,
  7855. 32323, 32299, 32317, 32305, 32325, 32321, 32308, 32313, 32328, 32309,
  7856. 32319, 32303, 32580, 32755, 32764, {f: 2, c: 32881}, 32880, 32879, 32883,
  7857. 33222, 33219, 33210, 33218, 33216, 33215, 33213, 33225, 33214, 33256,
  7858. 33289, 33393, 34218, 34180, 34174, 34204, 34193, 34196, 34223, 34203,
  7859. 34183, 34216, 34186, 34214, 34407, 34752, 34769, 34739, 34770, 34758,
  7860. 34731, 34747, 34746, 34760, 34763, 35131, 35126, 35140, 35128, 35133,
  7861. 35244, 35598, 35607, 35609, 35611, 35594, 35616, 35613, 35588, 35600,
  7862. 35905, 35903, 35955, 36090, 36093, 36092, 36088, 36091, 36264, 36425,
  7863. 36427, 36424, 36426, 36676, 36670, 36674, 36677, 36671, 36991, 36989,
  7864. 36996, {f: 2, c: 36993}, 36992, 37177, 37283, 37278, 37276, 37709, 37762,
  7865. 37672, 37749, 37706, 37733, 37707, 37656, 37758, 37740, 37723, 37744,
  7866. 37722, 37716, {f: 3, c: 38346}, 38344, 38342, 38577, 38584, 38614, 38684,
  7867. 38686, 38816, 38867, 38982, 39094, 39221, 39425, 39423, 39854, 39851,
  7868. 39850, 39853, 40251, 40255, 40587, 40655, 40670, {f: 2, c: 40668}, 40667,
  7869. 40766, 40779, 21474, 22165, 22190, 22745, 22744, 23352, 24413, 25059,
  7870. 25139, 25844, 25842, 25854, 25862, {f: 2, c: 25850}, 25847, 26039, 26332,
  7871. 26406, 27315, 27308, 27331, 27323, 27320, 27330, {f: 2, c: 27310}, 27487,
  7872. 27512, 27567, 28681, 28683, 28670, 28678, 28666, 28689, 28687,
  7873. {f: 2, c: 29179}, 29182, 29176, 29559, 29557, 29863, 29887, 29973, 30294,
  7874. 30296, 30290, 30653, 30655, {f: 2, c: 30651}, 30990, 31150,
  7875. {f: 2, c: 31329}, 31328, {f: 2, c: 31428}, 31787, 31783, 31786, 31774,
  7876. 31779, 31777, 31975, {f: 2, c: 32340}, 32350, 32346, 32353, 32338, 32345,
  7877. 32584, 32761, 32763, 32887, 32886, 33229, 33231, 33290, 34255, 34217,
  7878. 34253, 34256, 34249, 34224, 34234, 34233, 34799, 34796, 34802, 34784,
  7879. 35206, 35250, 35316, 35624, 35641, 35628, 35627, 35920, 36101, 36441,
  7880. 36451, 36454, 36452, 36447, 36437, 36544, 36681, 36685, 36999, 36995,
  7881. 37000, {f: 2, c: 37291}, 37328, 37780, 37770, 37782, 37794, 37811, 37806,
  7882. 37804, 37808, 37784, 37786, 37783, 38356, 38358, 38352, 38357, 38626,
  7883. 38620, 38617, 38619, 38622, 38692, 38819, 38822, 38829, 38905, 38989,
  7884. 38991, 38988, 38990, 38995, 39098, {f: 2, c: 39230}, 39229, 39214, 39333,
  7885. 39438, 39617, 39683, 39686, 39759, 39758, 39757, 39882, 39881, 39933,
  7886. 39880, 39872, 40273, 40285, 40288, 40672, 40725, 40748, 20787, 22181,
  7887. 22184, {f: 2, c: 22750}, 22754, 23541, 40848, 24300, 25074, 25079, 25078,
  7888. 25077, 25856, 25871, 26336, 26333, 27365, 27357, 27354, 27347, 28699,
  7889. 28703, 28712, 28698, 28701, 28693, 28696, 29190, 29197, 29272, 29346,
  7890. 29560, 29562, 29885, 29898, 29923, 30087, 30086, 30303, 30305, 30663,
  7891. 31001, 31153, 31339, 31337, {f: 2, c: 31806}, 31800, 31805, 31799, 31808,
  7892. 32363, 32365, 32377, {f: 2, c: 32361}, 32371, 32645, 32694, 32697, 32696,
  7893. 33240, 34281, 34269, 34282, 34261, {f: 2, c: 34276}, 34295, 34811, 34821,
  7894. 34829, 34809, 34814, 35168, 35167, 35158, 35166, 35649, 35676, 35672,
  7895. 35657, 35674, {f: 2, c: 35662}, 35654, 35673, 36104, 36106, 36476, 36466,
  7896. 36487, 36470, 36460, 36474, 36468, 36692, 36686, 36781, {f: 2, c: 37002},
  7897. 37297, 37294, 37857, 37841, 37855, 37827, 37832, {f: 2, c: 37852}, 37846,
  7898. 37858, 37837, 37848, 37860, 37847, 37864, 38364, 38580, 38627, 38698,
  7899. 38695, 38753, 38876, 38907, 39006, 39000, 39003, 39100, 39237, 39241,
  7900. 39446, 39449, 39693, 39912, 39911, 39894, 39899, 40329, 40289, 40306,
  7901. 40298, 40300, 40594, 40599, 40595, 40628, 21240, 22199, 22198, 22196,
  7902. 22204, 22756, 23360, 23363, 23421, 23542, 24009, 25080, 25082, 25880,
  7903. 25876, 25881, 26342, 26407, 27372, 28734, 28720, 28722, 29200, 29563,
  7904. 29903, 30306, 30309, 31014, 31018, 31020, 31019, 31431, 31478, 31820,
  7905. 31811, 31821, {f: 2, c: 31983}, 36782, 32381, 32380, 32386, 32588, 32768,
  7906. 33242, 33382, 34299, 34297, 34321, 34298, 34310, 34315, 34311, 34314,
  7907. {f: 2, c: 34836}, 35172, 35258, 35320, 35696, 35692, 35686, 35695, 35679,
  7908. 35691, 36111, 36109, 36489, 36481, 36485, 36482, 37300, 37323, 37912,
  7909. 37891, 37885, 38369, 38704, 39108, 39250, 39249, 39336, 39467, 39472,
  7910. 39479, 39477, 39955, 39949, 40569, 40629, 40680, 40751, 40799, 40803,
  7911. 40801, {f: 2, c: 20791}, 22209, 22208, 22210, 22804, 23660, 24013, 25084,
  7912. 25086, 25885, 25884, 26005, 26345, 27387, 27396, 27386, 27570, 28748,
  7913. 29211, 29351, 29910, 29908, 30313, 30675, 31824, 32399, 32396, 32700,
  7914. 34327, 34349, 34330, 34851, 34850, 34849, 34847, 35178, 35180, 35261,
  7915. 35700, 35703, 35709, 36115, 36490, 36493, 36491, 36703, 36783, 37306,
  7916. 37934, 37939, 37941, 37946, 37944, 37938, 37931, 38370, {f: 2, c: 38712},
  7917. 38706, [38911, 58586], 39015, 39013, 39255, 39493, 39491, 39488, 39486,
  7918. 39631, 39764, 39761, 39981, 39973, 40367, 40372, 40386, 40376, 40605,
  7919. 40687, 40729, 40796, {f: 2, c: 40806}, 20796, 20795, 22216, 22218, 22217,
  7920. 23423, 24020, 24018, 24398, 25087, 25892, 27402, 27489, 28753, 28760,
  7921. 29568, 29924, 30090, 30318, 30316, 31155, 31840, 31839, 32894, 32893,
  7922. 33247, 35186, 35183, 35324, 35712, {f: 2, c: 36118}, 36497, 36499, 36705,
  7923. 37192, 37956, {f: 2, c: 37969}, {f: 2, c: 38717}, 38851, 38849, 39019,
  7924. 39253, 39509, 39501, 39634, 39706, 40009, 39985, 39998, 39995, 40403,
  7925. 40407, 40756, 40812, 40810, 40852, 22220, 24022, 25088, 25891, 25899,
  7926. 25898, 26348, 27408, 29914, 31434, 31844, 31843, 31845, 32403, 32406,
  7927. 32404, 33250, 34360, 34367, 34865, 35722, 37008, 37007, 37987, 37984,
  7928. 37988, 38760, 39023, 39260, {f: 2, c: 39514}, 39511, {f: 2, c: 39635},
  7929. 39633, 40020, 40023, 40022, 40421, 40607, 40692, 22225, 22761, 25900,
  7930. 28766, {f: 2, c: 30321}, [30679, 60226], 32592, 32648, 34870, 34873, 34914,
  7931. 35731, 35730, 35734, 33399, 36123, 37312, 37994, 38722, 38728, 38724,
  7932. 38854, 39024, 39519, 39714, 39768, 40031, {f: 2, c: 40441},
  7933. {f: 2, c: 40572}, 40711, 40823, 40818, 24307, 27414, 28771, 31852, 31854,
  7934. 34875, 35264, 36513, 37313, 38002, 38000, 39025, 39262, 39638, 39715,
  7935. 40652, 28772, 30682, 35738, 38007, 38857, 39522, 39525, 32412, 35740,
  7936. 36522, 37317, {f: 2, c: 38013}, 38012, {f: 2, c: 40055}, 40695, 35924,
  7937. 38015, 40474, 29224, 39530, 39729, 40475, 40478, 31858, 20034, 20060,
  7938. [12048, 20981], [12053, 21274], [12058, 21378], 19975, 19980, 20039, 20109,
  7939. [12062, 22231], [12076, 23662], [12091, 24435], 19983, 20871, 19982, 20014,
  7940. 20115, 20162, 20169, 20168, 20888, 21244, 21356, 21433, 22304, 22787,
  7941. 22828, [23568, 60417], 24063, 26081, [12110, 27571], 27596, [12115, 27668],
  7942. [12121, 29247], 20017, 20028, 20200, 20188, 20201, 20193, 20189, 20186,
  7943. 21004, 21001, 21276, 21324, {f: 2, c: 22306}, 22807, 22831, 23425, 23428,
  7944. 23570, 23611, 23668, 23667, 24068, 24192, 24194, 24521, 25097, 25168,
  7945. 27669, 27702, 27715, 27711, 27707, 29358, 29360, 29578, [12145, 31160],
  7946. 32906, 38430, 20238, 20248, 20268, 20213, 20244, 20209, 20224, 20215,
  7947. 20232, 20253, 20226, 20229, 20258, 20243, 20228, 20212, 20242, 20913,
  7948. 21011, 21008, 21158, 21282, 21279, 21325, 21386, 21511, 22241, 22239,
  7949. 22318, 22314, 22324, 22844, 22912, 22908, 22917, 22907, 22910, 22903,
  7950. 22911, 23382, 23573, 23589, 23676, {f: 2, c: 23674}, 23678, 24031,
  7951. [24181, 57646], 24196, 24322, 24346, 24436, 24533, 24532, 24527, 25180,
  7952. 25182, 25188, 25185, 25190, 25186, 25177, 25184, 25178, 25189, 25911,
  7953. 26095, 26094, 26430, 26425, 26424, 26427, 26426, 26431, 26428, 26419,
  7954. 27672, 27718, 27730, 27740, 27727, [27722, 60796], 27732, {f: 2, c: 27723},
  7955. 28785, 29278, {f: 2, c: 29364}, 29582, 29994, 30335, 31349, [12153, 32593],
  7956. [12171, 33400], 33404, 33408, 33405, 33407, [12172, 34381], [12177, 35198],
  7957. 37017, [37015, 59347], 37016, 37019, 37012, 38434, 38436, 38432, 38435,
  7958. 20310, 20283, 20322, 20297, 20307, 20324, 20286, 20327, 20306, 20319,
  7959. 20289, 20312, 20269, 20275, 20287, 20321, 20879, 20921, 21020, 21022,
  7960. 21025, {f: 2, c: 21165}, 21257, 21347, 21362, {f: 2, c: 21390}, 21552,
  7961. 21559, 21546, 21588, 21573, 21529, 21532, 21541, 21528, 21565, 21583,
  7962. 21569, 21544, 21540, 21575, 22254, 22247, 22245, 22337, 22341, 22348,
  7963. 22345, 22347, 22354, 22790, 22848, 22950, 22936, 22944, 22935, 22926,
  7964. 22946, 22928, 22927, 22951, 22945, 23438, 23442, 23592, 23594, 23693,
  7965. 23695, 23688, 23691, 23689, 23698, 23690, 23686, 23699, 23701, 24032,
  7966. 24074, 24078, 24203, 24201, 24204, 24200, 24205, 24325, 24349, 24440,
  7967. 24438, 24530, 24529, 24528, 24557, 24552, 24558, 24563, 24545, 24548,
  7968. 24547, 24570, 24559, 24567, 24571, 24576, 24564, 25146, 25219, 25228,
  7969. {f: 2, c: 25230}, 25236, 25223, 25201, 25211, 25210, 25200, 25217, 25224,
  7970. 25207, 25213, 25202, 25204, 26096, 26100, 26099, 26098, 26101, 26437,
  7971. 26439, 26457, 26453, 26444, 26440, 26461, 26445, 26458, 26443, 27600,
  7972. {f: 2, c: 27673}, 27768, 27751, 27755, 27780, 27787, 27791, 27761, 27759,
  7973. 27753, 27802, 27757, 27783, 27797, [27804, 57900], 27750, 27763, 27749,
  7974. 27771, 27790, 28788, 28794, 29283, 29375, 29373, 29379, 29382, 29377,
  7975. 29370, 29381, 29589, 29591, {f: 2, c: 29587}, 29586, 30010, 30009,
  7976. {f: 2, c: 30100}, 30337, 31037, 32820, 32917, 32921, 32912, 32914, 32924,
  7977. 33424, 33423, 33413, 33422, 33425, 33427, 33418, {f: 2, c: 33411},
  7978. [12184, 35960], 36809, 36799, 37023, 37025, 37029, 37022, 37031, 37024,
  7979. 38448, 38440, 38447, 38445, 20019, 20376, 20348, 20357, 20349, 20352,
  7980. 20359, 20342, 20340, 20361, 20356, 20343, 20300, 20375, 20330, 20378,
  7981. 20345, 20353, 20344, 20368, 20380, 20372, 20382, 20370, 20354, 20373,
  7982. 20331, 20334, 20894, 20924, 20926, 21045, {f: 2, c: 21042}, 21062, 21041,
  7983. 21180, {f: 2, c: 21258}, 21308, 21394, 21396, 21639, 21631, 21633, 21649,
  7984. 21634, 21640, 21611, 21626, 21630, 21605, 21612, 21620, 21606, 21645,
  7985. 21615, 21601, 21600, 21656, 21603, 21607, 21604, 22263, 22265, 22383,
  7986. 22386, 22381, 22379, 22385, 22384, 22390, 22400, 22389, 22395,
  7987. {f: 2, c: 22387}, 22370, 22376, 22397, 22796, 22853, 22965, 22970, 22991,
  7988. 22990, 22962, 22988, 22977, 22966, 22972, 22979, 22998, 22961, 22973,
  7989. 22976, 22984, 22964, 22983, 23394, 23397, 23443, 23445, 23620, 23623,
  7990. 23726, 23716, 23712, 23733, 23727, 23720, 23724, 23711, 23715, 23725,
  7991. 23714, 23722, 23719, 23709, 23717, 23734, 23728, 23718, 24087, 24084,
  7992. 24089, 24360, {f: 3, c: 24354}, 24404, 24450, 24446, 24445, 24542, 24549,
  7993. 24621, 24614, 24601, 24626, 24587, 24628, 24586, 24599, 24627, 24602,
  7994. 24606, 24620, 24610, 24589, 24592, 24622, 24595, 24593, 24588, 24585,
  7995. 24604, 25108, 25149, 25261, 25268, 25297, 25278, 25258, 25270, 25290,
  7996. 25262, 25267, 25263, 25275, 25257, 25264, 25272, 25917, 26024, 26043,
  7997. 26121, 26108, 26116, 26130, 26120, 26107, 26115, 26123, 26125, 26117,
  7998. 26109, 26129, 26128, 26358, 26378, 26501, 26476, 26510, 26514, 26486,
  7999. 26491, 26520, 26502, 26500, 26484, 26509, 26508, 26490, 26527, 26513,
  8000. 26521, 26499, 26493, 26497, {f: 2, c: 26488}, 26516, 27429, 27520, 27518,
  8001. 27614, 27677, 27795, 27884, 27883, 27886, 27865, 27830, 27860, 27821,
  8002. 27879, 27831, 27856, 27842, 27834, 27843, 27846, 27885, 27890, 27858,
  8003. 27869, 27828, 27786, 27805, 27776, 27870, 27840, 27952, 27853, 27847,
  8004. 27824, 27897, 27855, 27881, 27857, 28820, 28824, 28805, 28819, 28806,
  8005. 28804, 28817, 28822, 28802, 28826, 28803, 29290, 29398, 29387, 29400,
  8006. 29385, 29404, 29394, 29396, 29402, 29388, 29393, 29604, 29601, 29613,
  8007. 29606, 29602, 29600, 29612, 29597, 29917, 29928, {f: 2, c: 30015}, 30014,
  8008. 30092, 30104, 30383, 30451, 30449, 30448, 30453, 30712, 30716, 30713,
  8009. 30715, 30714, 30711, 31042, 31039, 31173, 31352, 31355, 31483, 31861,
  8010. 31997, 32821, 32911, 32942, 32931, 32952, 32949, 32941, 33312, 33440,
  8011. 33472, 33451, 33434, 33432, 33435, 33461, 33447, 33454, 33468, 33438,
  8012. 33466, 33460, 33448, 33441, 33449, 33474, 33444, 33475, 33462, 33442,
  8013. 34416, 34415, {f: 2, c: 34413}, 35926, 36818, 36811, 36819, 36813, 36822,
  8014. 36821, 36823, 37042, 37044, 37039, 37043, 37040, 38457, 38461, 38460,
  8015. 38458, 38467, 20429, 20421, 20435, 20402, 20425, 20427, 20417, 20436,
  8016. 20444, 20441, [20411, 60346], 20403, 20443, 20423, 20438, 20410, 20416,
  8017. 20409, 20460, 21060, 21065, 21184, 21186, 21309, 21372, 21399, 21398,
  8018. 21401, 21400, 21690, 21665, 21677, 21669, 21711, 21699, 33549, 21687,
  8019. 21678, 21718, 21686, {f: 2, c: 21701}, 21664, 21616, 21692, 21666, 21694,
  8020. 21618, 21726, 21680, 22453, {f: 2, c: 22430}, 22436, 22412, 22423, 22429,
  8021. 22427, 22420, 22424, 22415, 22425, 22437, 22426, 22421, 22772, 22797,
  8022. 22867, 23009, 23006, 23022, 23040, 23025, 23005, 23034, 23037, 23036,
  8023. 23030, 23012, 23026, 23031, 23003, 23017, 23027, 23029, 23008, 23038,
  8024. 23028, 23021, 23464, 23628, 23760, 23768, 23756, 23767, 23755, 23771,
  8025. 23774, 23770, 23753, 23751, 23754, 23766, {f: 2, c: 23763}, 23759, 23752,
  8026. 23750, 23758, 23775, 23800, 24057, {f: 3, c: 24097}, 24096, 24100, 24240,
  8027. 24228, 24226, 24219, 24227, 24229, 24327, 24366, 24406, 24454, 24631,
  8028. 24633, 24660, 24690, 24670, 24645, 24659, 24647, 24649, 24667, 24652,
  8029. 24640, 24642, 24671, 24612, 24644, 24664, 24678, 24686, {f: 2, c: 25154},
  8030. 25295, 25357, 25355, 25333, 25358, 25347, 25323, 25337, 25359, 25356,
  8031. 25336, 25334, 25344, {f: 2, c: 25363}, 25338, 25365, 25339, 25328, 25921,
  8032. 25923, 26026, 26047, 26166, 26145, 26162, 26165, 26140, 26150, 26146,
  8033. 26163, 26155, 26170, 26141, 26164, 26169, 26158, {f: 2, c: 26383}, 26561,
  8034. 26610, 26568, 26554, 26588, 26555, 26616, 26584, 26560, 26551, 26565,
  8035. 26603, 26596, 26591, 26549, 26573, 26547, 26615, 26614, 26606, 26595,
  8036. 26562, 26553, 26574, 26599, 26608, 26546, 26620, 26566, 26605, 26572,
  8037. 26542, 26598, 26587, 26618, {f: 2, c: 26569}, 26563, 26602, 26571, 27432,
  8038. 27522, 27524, 27574, 27606, 27608, 27616, {f: 2, c: 27680}, 27944, 27956,
  8039. 27949, 27935, 27964, 27967, 27922, 27914, 27866, 27955, 27908, 27929,
  8040. 27962, 27930, 27921, 27904, 27933, 27970, 27905, 27928, 27959, 27907,
  8041. 27919, 27968, 27911, 27936, 27948, 27912, 27938, 27913, 27920, 28855,
  8042. 28831, 28862, 28849, 28848, 28833, {f: 2, c: 28852}, 28841, 29249,
  8043. {f: 2, c: 29257}, 29292, 29296, 29299, 29294, 29386, 29412, 29416, 29419,
  8044. 29407, 29418, 29414, 29411, 29573, 29644, 29634, 29640, 29637, 29625,
  8045. 29622, 29621, 29620, 29675, 29631, 29639, 29630, 29635, 29638, 29624,
  8046. 29643, 29932, 29934, 29998, {f: 2, c: 30023}, 30119, 30122, 30329, 30404,
  8047. 30472, {f: 3, c: 30467}, 30474, 30455, 30459, 30458, {f: 2, c: 30695},
  8048. 30726, {f: 2, c: 30737}, 30725, 30736, 30735, 30734, [30729, 58095], 30723,
  8049. 30739, 31050, 31052, 31051, 31045, 31044, 31189, 31181, 31183, 31190,
  8050. 31182, 31360, 31358, 31441, {f: 2, c: 31488}, 31866, {f: 2, c: 31864},
  8051. {f: 3, c: 31871}, 32003, 32008, 32001, 32600, 32657, 32653, 32702, 32775,
  8052. {f: 2, c: 32782}, 32788, 32823, 32984, 32967, 32992, 32977, 32968, 32962,
  8053. 32976, 32965, 32995, 32985, 32988, 32970, 32981, 32969, 32975, 32983,
  8054. 32998, 32973, 33279, 33313, 33428, 33497, 33534, 33529, 33543, 33512,
  8055. 33536, 33493, 33594, 33515, 33494, 33524, 33516, 33505, 33522, 33525,
  8056. 33548, 33531, 33526, 33520, 33514, 33508, 33504, 33530, 33523, 33517,
  8057. 34423, 34420, 34428, 34419, 34881, 34894, 34919, 34922, 34921, 35283,
  8058. 35332, 35335, 36210, 36835, 36833, 36846, 36832, 37105, 37053, 37055,
  8059. 37077, 37061, 37054, 37063, 37067, 37064, [37332, 60294], 37331, 38484,
  8060. 38479, 38481, 38483, 38474, 38478, 20510, 20485, 20487, 20499, 20514,
  8061. 20528, 20507, 20469, 20468, 20531, 20535, 20524, {f: 2, c: 20470}, 20503,
  8062. 20508, 20512, 20519, 20533, 20527, 20529, 20494, 20826, 20884, 20883,
  8063. 20938, {f: 2, c: 20932}, 20936, 20942, 21089, 21082, 21074,
  8064. {f: 2, c: 21086}, 21077, 21090, 21197, 21262, 21406, 21798, 21730, 21783,
  8065. 21778, 21735, 21747, 21732, 21786, 21759, 21764, 21768, 21739, 21777,
  8066. 21765, 21745, 21770, 21755, {f: 2, c: 21751}, 21728, 21774, 21763, 21771,
  8067. {f: 2, c: 22273}, 22476, 22578, 22485, 22482, 22458, 22470, 22461, 22460,
  8068. 22456, 22454, 22463, 22471, 22480, 22457, 22465, 22798, 22858, 23065,
  8069. 23062, {f: 2, c: 23085}, 23061, 23055, 23063, 23050, 23070, 23091, 23404,
  8070. 23463, 23469, 23468, 23555, 23638, 23636, 23788, 23807, 23790, 23793,
  8071. 23799, 23808, 23801, 24105, 24104, 24232, 24238, 24234, 24236, 24371,
  8072. 24368, 24423, 24669, 24666, 24679, 24641, 24738, 24712, 24704, 24722,
  8073. 24705, 24733, 24707, 24725, 24731, 24727, 24711, 24732, 24718, 25113,
  8074. 25158, 25330, 25360, 25430, 25388, {f: 2, c: 25412}, 25398, 25411, 25572,
  8075. 25401, 25419, 25418, 25404, 25385, 25409, 25396, 25432, 25428, 25433,
  8076. 25389, 25415, 25395, 25434, 25425, 25400, 25431, 25408, 25416, 25930,
  8077. 25926, 26054, {f: 2, c: 26051}, 26050, 26186, 26207, 26183, 26193,
  8078. {f: 2, c: 26386}, 26655, 26650, 26697, {f: 2, c: 26674}, 26683, 26699,
  8079. 26703, 26646, 26673, 26652, 26677, 26667, 26669, 26671, 26702, 26692,
  8080. 26676, 26653, 26642, 26644, 26662, 26664, 26670, 26701, 26682, 26661,
  8081. 26656, 27436, 27439, 27437, 27441, 27444, 27501, 32898, 27528, 27622,
  8082. 27620, 27624, 27619, 27618, 27623, 27685, 28026, {f: 2, c: 28003}, 28022,
  8083. 27917, 28001, 28050, 27992, 28002, 28013, 28015, 28049, 28045, 28143,
  8084. 28031, 28038, 27998, [28007, 59078], 28000, 28055, 28016, 28028, 27999,
  8085. 28034, 28056, 27951, 28008, 28043, 28030, 28032, 28036, 27926, 28035,
  8086. 28027, 28029, 28021, 28048, 28892, 28883, 28881, 28893, 28875, 32569,
  8087. 28898, 28887, 28882, 28894, 28896, 28884, 28877, {f: 3, c: 28869}, 28890,
  8088. 28878, 28897, 29250, 29304, 29303, 29302, 29440, 29434, 29428, 29438,
  8089. 29430, 29427, 29435, 29441, 29651, 29657, 29669, 29654, 29628, 29671,
  8090. 29667, 29673, 29660, 29650, 29659, 29652, 29661, 29658, {f: 2, c: 29655},
  8091. 29672, {f: 2, c: 29918}, {f: 2, c: 29940}, 29985, 30043, 30047, 30128,
  8092. 30145, 30139, 30148, 30144, 30143, 30134, 30138, 30346, 30409, 30493,
  8093. 30491, 30480, 30483, 30482, 30499, 30481, 30485, {f: 2, c: 30489}, 30498,
  8094. 30503, 30755, 30764, 30754, 30773, 30767, 30760, 30766, 30763, 30753,
  8095. 30761, 30771, 30762, 30769, 31060, 31067, 31055, 31068, 31059, 31058,
  8096. 31057, {f: 2, c: 31211}, 31200, 31214, 31213, 31210, 31196, 31198, 31197,
  8097. 31366, 31369, 31365, {f: 2, c: 31371}, 31370, 31367, 31448, 31504, 31492,
  8098. 31507, 31493, 31503, 31496, 31498, 31502, 31497, 31506, 31876, 31889,
  8099. 31882, 31884, 31880, 31885, 31877, 32030, 32029, 32017, 32014, 32024,
  8100. 32022, 32019, 32031, 32018, 32015, 32012, 32604, 32609, 32606, 32608,
  8101. 32605, 32603, 32662, 32658, 32707, 32706, 32704, 32790, 32830, 32825,
  8102. 33018, 33010, 33017, 33013, 33025, 33019, 33024, 33281, 33327, 33317,
  8103. 33587, 33581, 33604, 33561, 33617, 33573, 33622, 33599, 33601, 33574,
  8104. 33564, 33570, 33602, 33614, 33563, 33578, 33544, 33596, 33613, 33558,
  8105. 33572, 33568, 33591, 33583, 33577, 33607, 33605, 33612, 33619, 33566,
  8106. 33580, 33611, 33575, 33608, 34387, 34386, 34466, 34472, 34454, 34445,
  8107. 34449, 34462, 34439, 34455, 34438, 34443, 34458, 34437, 34469, 34457,
  8108. 34465, 34471, 34453, 34456, 34446, 34461, 34448, 34452, {f: 2, c: 34883},
  8109. 34925, {f: 2, c: 34933}, 34930, 34944, 34929, 34943, 34927, 34947, 34942,
  8110. 34932, 34940, 35346, 35911, 35927, 35963, 36004, 36003, 36214, 36216,
  8111. 36277, 36279, 36278, 36561, 36563, 36862, 36853, 36866, 36863, 36859,
  8112. 36868, 36860, 36854, 37078, 37088, {f: 2, c: 37081}, 37091, 37087, 37093,
  8113. 37080, 37083, 37079, 37084, 37092, 37200, {f: 2, c: 37198}, 37333, 37346,
  8114. 37338, 38492, 38495, 38588, 39139, [12221, 39647], [12223, 39727], 20095,
  8115. 20592, 20586, 20577, 20574, 20576, 20563, 20555, 20573, 20594, 20552,
  8116. 20557, 20545, 20571, 20554, 20578, 20501, 20549, 20575, 20585, 20587,
  8117. {f: 2, c: 20579}, 20550, 20544, 20590, 20595, 20567, 20561, 20944, 21099,
  8118. 21101, 21100, 21102, 21206, 21203, 21293, 21404, {f: 2, c: 21877}, 21820,
  8119. 21837, 21840, 21812, 21802, 21841, 21858, 21814, 21813, 21808, 21842,
  8120. 21829, 21772, 21810, 21861, 21838, 21817, 21832, 21805, 21819, 21824,
  8121. 21835, 22282, 22279, 22523, 22548, 22498, 22518, 22492, 22516, 22528,
  8122. 22509, 22525, 22536, 22520, 22539, 22515, 22479, 22535, 22510, 22499,
  8123. 22514, 22501, 22508, 22497, 22542, 22524, 22544, 22503, 22529, 22540,
  8124. 22513, 22505, 22512, 22541, 22532, 22876, 23136, 23128, 23125,
  8125. [23143, 60437], 23134, 23096, 23093, 23149, 23120, 23135, 23141, 23148,
  8126. 23123, 23140, 23127, 23107, 23133, 23122, 23108, 23131, 23112, 23182,
  8127. 23102, 23117, 23097, 23116, 23152, 23145, 23111, 23121, 23126, 23106,
  8128. 23132, 23410, 23406, 23489, 23488, 23641, 23838, 23819, 23837, 23834,
  8129. 23840, 23820, 23848, 23821, 23846, 23845, 23823, 23856, 23826, 23843,
  8130. 23839, 23854, 24126, 24116, 24241, 24244, 24249, {f: 2, c: 24242}, 24374,
  8131. 24376, 24475, 24470, 24479, 24714, 24720, 24710, 24766, 24752, 24762,
  8132. {f: 2, c: 24787}, 24783, 24804, 24793, 24797, 24776, 24753, 24795, 24759,
  8133. 24778, 24767, 24771, 24781, 24768, 25394, 25445, 25482, 25474, 25469,
  8134. 25533, 25502, 25517, 25501, 25495, 25515, 25486, 25455, 25479, 25488,
  8135. 25454, 25519, 25461, 25500, 25453, 25518, 25468, 25508, 25403, 25503,
  8136. 25464, 25477, 25473, 25489, 25485, 25456, 25939, 26061, 26213, 26209,
  8137. 26203, 26201, 26204, 26210, 26392, 26745, 26759, 26768, 26780,
  8138. {f: 2, c: 26733}, 26798, 26795, 26966, 26735, 26787, 26796, 26793, 26741,
  8139. 26740, 26802, 26767, 26743, 26770, 26748, 26731, 26738, 26794, 26752,
  8140. 26737, 26750, 26779, 26774, 26763, 26784, 26761, 26788, 26744, 26747,
  8141. 26769, 26764, 26762, 26749, 27446, 27443, {f: 2, c: 27447}, 27537, 27535,
  8142. {f: 2, c: 27533}, 27532, 27690, 28096, 28075, 28084, 28083, 28276, 28076,
  8143. 28137, 28130, 28087, 28150, 28116, 28160, 28104, 28128, 28127, 28118,
  8144. 28094, 28133, {f: 2, c: 28124}, 28123, 28148, 28106, 28093, 28141, 28144,
  8145. 28090, 28117, 28098, 28111, 28105, 28112, 28146, 28115, 28157, 28119,
  8146. 28109, 28131, 28091, 28922, 28941, 28919, 28951, 28916, 28940, 28912,
  8147. 28932, 28915, 28944, 28924, 28927, 28934, 28947, 28928, 28920, 28918,
  8148. 28939, 28930, 28942, 29310, {f: 2, c: 29307}, 29311, 29469, 29463, 29447,
  8149. 29457, 29464, 29450, 29448, 29439, 29455, 29470, 29576, 29686, 29688,
  8150. 29685, 29700, 29697, 29693, 29703, 29696, 29690, 29692, 29695, 29708,
  8151. 29707, 29684, 29704, 30052, 30051, 30158, 30162, 30159, {f: 2, c: 30155},
  8152. 30161, 30160, 30351, 30345, 30419, 30521, 30511, 30509, {f: 2, c: 30513},
  8153. 30516, 30515, 30525, 30501, 30523, 30517, 30792, 30802, 30793, 30797,
  8154. 30794, 30796, 30758, 30789, 30800, 31076, 31079, {f: 2, c: 31081}, 31075,
  8155. 31083, 31073, 31163, 31226, 31224, {f: 2, c: 31222}, 31375, 31380, 31376,
  8156. 31541, 31547, 31540, 31525, 31536, 31522, 31524, 31539, 31512, 31530,
  8157. 31517, 31537, 31531, 31533, 31535, 31538, 31544, 31514, 31523, 31892,
  8158. 31896, 31894, 31907, 32053, 32061, 32056, 32054, 32058, 32069, 32044,
  8159. 32041, 32065, 32071, {f: 2, c: 32062}, 32074, 32059, 32040, 32611, 32661,
  8160. {f: 2, c: 32668}, 32667, {f: 2, c: 32714}, 32717, {f: 2, c: 32720}, 32711,
  8161. 32719, 32713, 32799, 32798, 32795, 32839, 32835, 32840, 33048, 33061,
  8162. 33049, 33051, 33069, 33055, 33068, 33054, 33057, 33045, 33063, 33053,
  8163. 33058, 33297, 33336, 33331, 33338, 33332, 33330, 33396, 33680, 33699,
  8164. 33704, 33677, 33658, 33651, 33700, 33652, 33679, 33665, 33685, 33689,
  8165. 33653, 33684, 33705, 33661, 33667, 33676, 33693, 33691, 33706, 33675,
  8166. 33662, 33701, 33711, 33672, 33687, 33712, 33663, 33702, 33671, 33710,
  8167. 33654, 34393, 34390, 34495, 34487, 34498, 34497, 34501, 34490, 34480,
  8168. 34504, 34489, 34483, 34488, 34508, 34484, {f: 2, c: 34491}, 34499,
  8169. {f: 2, c: 34493}, 34898, 34953, 34965, 34984, 34978, 34986, 34970, 34961,
  8170. 34977, 34975, 34968, 34983, 34969, 34971, 34967, 34980, 34988, 34956,
  8171. 34963, 34958, 35202, 35286, 35289, 35285, 35376, 35367, 35372, 35358,
  8172. 35897, 35899, {f: 2, c: 35932}, 35965, 36005, 36221, 36219, 36217, 36284,
  8173. 36290, 36281, 36287, 36289, 36568, 36574, 36573, 36572, 36567,
  8174. {f: 2, c: 36576}, 36900, 36875, 36881, 36892, 36876, 36897, 37103, 37098,
  8175. 37104, 37108, {f: 2, c: 37106}, 37076, {f: 2, c: 37099}, 37097, 37206,
  8176. 37208, 37210, 37203, 37205, 37356, 37364, 37361, 37363, 37368, 37348,
  8177. 37369, {f: 2, c: 37354}, 37367, 37352, 37358, 38266, 38278, 38280, 38524,
  8178. 38509, 38507, 38513, 38511, 38591, 38762, 38916, 39141, 39319, 20635,
  8179. 20629, 20628, 20638, 20619, 20643, 20611, 20620, 20622, 20637, 20584,
  8180. 20636, 20626, 20610, 20615, 20831, 20948, 21266, 21265, 21412, 21415,
  8181. 21905, 21928, 21925, 21933, 21879, 22085, 21922, 21907, 21896, 21903,
  8182. 21941, 21889, 21923, 21906, 21924, 21885, 21900, 21926, 21887, 21909,
  8183. 21921, 21902, 22284, 22569, 22583, 22553, 22558, 22567, 22563, 22568,
  8184. 22517, 22600, 22565, 22556, 22555, 22579, 22591, 22582, 22574, 22585,
  8185. 22584, 22573, 22572, 22587, 22881, 23215, 23188, 23199, 23162, 23202,
  8186. 23198, 23160, 23206, 23164, 23205, 23212, 23189, 23214, 23095, 23172,
  8187. 23178, 23191, 23171, 23179, 23209, 23163, 23165, 23180, 23196, 23183,
  8188. 23187, 23197, 23530, 23501, 23499, 23508, 23505, 23498, 23502, 23564,
  8189. 23600, 23863, 23875, 23915, 23873, 23883, 23871, 23861, 23889, 23886,
  8190. 23893, 23859, 23866, 23890, 23869, 23857, 23897, 23874, 23865, 23881,
  8191. 23864, 23868, 23858, 23862, 23872, 23877, 24132, 24129, [24408, 57673],
  8192. 24486, 24485, 24491, 24777, 24761, 24780, 24802, 24782, 24772, 24852,
  8193. 24818, 24842, 24854, 24837, 24821, 24851, 24824, 24828, 24830, 24769,
  8194. 24835, 24856, 24861, 24848, 24831, 24836, 24843, 25162, 25492, 25521,
  8195. 25520, 25550, 25573, 25576, 25583, 25539, 25757, 25587, 25546, 25568,
  8196. 25590, 25557, 25586, 25589, 25697, 25567, 25534, 25565, 25564, 25540,
  8197. 25560, 25555, 25538, 25543, 25548, 25547, 25544, 25584, 25559, 25561,
  8198. 25906, 25959, 25962, 25956, 25948, 25960, 25957, 25996, {f: 2, c: 26013},
  8199. 26030, 26064, 26066, 26236, 26220, 26235, 26240, 26225, 26233, 26218,
  8200. 26226, 26369, 26892, 26835, 26884, 26844, 26922, 26860, 26858, 26865,
  8201. 26895, 26838, 26871, 26859, 26852, 26870, 26899, 26896, 26867, 26849,
  8202. 26887, 26828, 26888, 26992, 26804, 26897, 26863, 26822, 26900, 26872,
  8203. 26832, 26877, 26876, 26856, 26891, 26890, 26903, 26830, 26824,
  8204. {f: 2, c: 26845}, 26854, 26868, 26833, 26886, 26836, 26857, 26901, 26917,
  8205. 26823, 27449, 27451, 27455, 27452, 27540, 27543, 27545, 27541, 27581,
  8206. 27632, {f: 2, c: 27634}, 27696, 28156, {f: 2, c: 28230}, 28191, 28233,
  8207. 28296, {f: 2, c: 28220}, 28229, 28258, 28203, 28223, 28225, 28253, 28275,
  8208. 28188, 28211, 28235, 28224, 28241, 28219, 28163, 28206, 28254, 28264,
  8209. 28252, 28257, 28209, 28200, 28256, 28273, 28267, 28217, 28194, 28208,
  8210. 28243, 28261, 28199, 28280, 28260, 28279, 28245, 28281, 28242, 28262,
  8211. {f: 2, c: 28213}, 28250, 28960, 28958, 28975, 28923, 28974, 28977, 28963,
  8212. 28965, 28962, 28978, 28959, 28968, 28986, 28955, 29259, 29274,
  8213. {f: 2, c: 29320}, 29318, 29317, 29323, 29458, 29451, 29488, 29474, 29489,
  8214. 29491, 29479, 29490, 29485, 29478, 29475, 29493, 29452, 29742, 29740,
  8215. 29744, 29739, 29718, 29722, 29729, 29741, 29745, 29732, 29731, 29725,
  8216. 29737, 29728, 29746, 29947, 29999, 30063, 30060, 30183, 30170, 30177,
  8217. 30182, 30173, 30175, 30180, 30167, 30357, 30354, 30426, {f: 2, c: 30534},
  8218. 30532, 30541, 30533, 30538, 30542, {f: 2, c: 30539}, 30686, 30700, 30816,
  8219. {f: 2, c: 30820}, 30812, 30829, 30833, 30826, 30830, 30832, 30825, 30824,
  8220. 30814, 30818, 31092, 31091, 31090, 31088, 31234, 31242, 31235, 31244,
  8221. 31236, 31385, 31462, 31460, 31562, 31559, 31556, 31560, 31564, 31566,
  8222. 31552, 31576, 31557, 31906, 31902, 31912, 31905, 32088, 32111, 32099,
  8223. 32083, 32086, 32103, 32106, 32079, 32109, 32092, 32107, 32082, 32084,
  8224. 32105, 32081, 32095, 32078, {f: 2, c: 32574}, {f: 2, c: 32613}, 32674,
  8225. {f: 2, c: 32672}, 32727, 32849, {f: 2, c: 32847}, 33022, 32980, 33091,
  8226. 33098, 33106, 33103, 33095, 33085, 33101, 33082, 33254, 33262,
  8227. {f: 3, c: 33271}, 33284, {f: 2, c: 33340}, 33343, 33397, 33595,
  8228. [33743, 60382], 33785, 33827, 33728, 33768, 33810, 33767, 33764, 33788,
  8229. 33782, 33808, 33734, 33736, 33771, 33763, 33727, 33793, 33757, 33765,
  8230. 33752, 33791, 33761, 33739, 33742, 33750, 33781, 33737, 33801,
  8231. [33807, 58332], 33758, 33809, 33798, 33730, 33779, 33749, 33786, 33735,
  8232. 33745, 33770, 33811, 33690, 33731, 33772, 33774, 33732, 33787, 33751,
  8233. 33762, 33819, 33755, 33790, 34520, 34530, 34534, 34515, 34531, 34522,
  8234. 34538, 34525, 34539, 34524, 34540, 34537, 34519, 34536, 34513, 34888,
  8235. 34902, 34901, 35002, 35031, 35001, 35000, 35008, 35006, 34998, 35004,
  8236. 34999, 35005, 34994, 35073, 35017, 35221, 35224, 35223, 35293,
  8237. {f: 2, c: 35290}, 35406, 35405, 35385, 35417, 35392, {f: 2, c: 35415},
  8238. {f: 2, c: 35396}, 35410, 35400, 35409, 35402, 35404, 35407, 35935, 35969,
  8239. 35968, 36026, 36030, 36016, 36025, 36021, 36228, 36224, 36233, 36312,
  8240. 36307, 36301, 36295, 36310, 36316, 36303, 36309, 36313, 36296, 36311,
  8241. 36293, 36591, 36599, 36602, 36601, 36582, 36590, 36581, 36597,
  8242. {f: 2, c: 36583}, 36598, 36587, 36593, 36588, 36596, 36585, 36909, 36916,
  8243. 36911, 37126, 37164, [37124, 60367], 37119, 37116, 37128, 37113, 37115,
  8244. 37121, 37120, 37127, 37125, 37123, 37217, 37220, 37215, 37218, 37216,
  8245. 37377, 37386, 37413, 37379, 37402, 37414, 37391, 37388, 37376, 37394,
  8246. 37375, 37373, 37382, 37380, 37415, 37378, 37404, 37412, 37401, 37399,
  8247. 37381, 37398, 38267, 38285, 38284, 38288, 38535, 38526, {f: 2, c: 38536},
  8248. 38531, 38528, 38594, 38600, 38595, 38641, 38640, 38764, 38768, 38766,
  8249. 38919, 39081, 39147, 40166, [12235, 40697], {f: 2, c: 20099}, 20150, 20669,
  8250. 20671, 20678, 20654, 20676, 20682, 20660, 20680, 20674, 20656, 20673,
  8251. 20666, 20657, 20683, 20681, 20662, 20664, 20951, 21114, 21112,
  8252. {f: 2, c: 21115}, 21955, 21979, 21964, 21968, 21963, 21962, 21981,
  8253. [21952, 64013], 21972, 21956, 21993, 21951, 21970, 21901, 21967, 21973,
  8254. 21986, 21974, 21960, 22002, 21965, 21977, 21954, 22292, 22611, 22632,
  8255. 22628, 22607, 22605, 22601, 22639, 22613, 22606, 22621, 22617, 22629,
  8256. 22619, 22589, 22627, 22641, 22780, 23239, 23236, 23243, 23226, 23224,
  8257. 23217, 23221, 23216, 23231, 23240, 23227, 23238, 23223, 23232, 23242,
  8258. 23220, 23222, 23245, 23225, 23184, 23510, {f: 2, c: 23512}, 23583, 23603,
  8259. 23921, 23907, 23882, 23909, 23922, 23916, 23902, 23912, 23911, 23906,
  8260. 24048, 24143, 24142, 24138, 24141, 24139, 24261, 24268, 24262, 24267,
  8261. 24263, 24384, 24495, 24493, 24823, {f: 2, c: 24905}, 24875, 24901, 24886,
  8262. 24882, 24878, 24902, 24879, 24911, 24873, 24896, 25120, 37224, 25123,
  8263. 25125, 25124, 25541, 25585, 25579, 25616, 25618, 25609, 25632, 25636,
  8264. 25651, 25667, 25631, 25621, 25624, 25657, 25655, {f: 2, c: 25634}, 25612,
  8265. 25638, 25648, 25640, 25665, 25653, 25647, 25610, 25626, 25664, 25637,
  8266. 25639, 25611, 25575, 25627, 25646, 25633, 25614, 25967, 26002, 26067,
  8267. 26246, 26252, 26261, 26256, 26251, 26250, 26265, 26260, 26232, 26400,
  8268. 26982, 26975, 26936, 26958, 26978, 26993, 26943, 26949, 26986, 26937,
  8269. 26946, 26967, 26969, 27002, {f: 2, c: 26952}, 26933, 26988, 26931, 26941,
  8270. 26981, 26864, 27000, 26932, 26985, 26944, 26991, 26948, 26998, 26968,
  8271. 26945, 26996, 26956, 26939, 26955, 26935, 26972, 26959, 26961, 26930,
  8272. 26962, 26927, 27003, 26940, 27462, 27461, 27459, 27458, 27464, 27457,
  8273. 27547, {f: 2, c: 27643}, 27641, {f: 2, c: 27639}, 28315, 28374, 28360,
  8274. 28303, 28352, 28319, {f: 2, c: 28307}, 28320, 28337, 28345, 28358, 28370,
  8275. 28349, 28353, 28318, 28361, 28343, 28336, 28365, 28326, 28367, 28338,
  8276. 28350, 28355, 28380, 28376, 28313, 28306, 28302, 28301, 28324, 28321,
  8277. 28351, 28339, 28368, 28362, 28311, 28334, 28323, 28999, 29012, 29010,
  8278. 29027, 29024, 28993, 29021, [29026, 61080], 29042, 29048, 29034, 29025,
  8279. 28994, 29016, 28995, 29003, 29040, 29023, 29008, 29011, 28996, 29005,
  8280. 29018, 29263, 29325, 29324, 29329, 29328, 29326, 29500, 29506, 29499,
  8281. 29498, 29504, 29514, 29513, 29764, {f: 2, c: 29770}, 29778, 29777, 29783,
  8282. 29760, {f: 2, c: 29775}, 29774, 29762, 29766, 29773, 29780, 29921, 29951,
  8283. 29950, 29949, 29981, 30073, 30071, 27011, 30191, 30223, 30211, 30199,
  8284. 30206, 30204, [30201, 60782], 30200, 30224, 30203, 30198, 30189, 30197,
  8285. 30205, 30361, 30389, 30429, 30549, {f: 2, c: 30559}, 30546, 30550, 30554,
  8286. 30569, 30567, 30548, 30553, 30573, 30688, 30855, 30874, 30868, 30863,
  8287. 30852, 30869, {f: 2, c: 30853}, 30881, 30851, 30841, 30873, 30848, 30870,
  8288. 30843, 31100, 31106, 31101, 31097, 31249, {f: 2, c: 31256}, 31250, 31255,
  8289. 31253, 31266, 31251, 31259, 31248, 31395, 31394, 31390, 31467, 31590,
  8290. 31588, 31597, 31604, 31593, 31602, 31589, 31603, 31601, 31600, 31585,
  8291. 31608, 31606, 31587, 31922, 31924, 31919, 32136, 32134, 32128, 32141,
  8292. 32127, 32133, 32122, 32142, 32123, 32131, 32124, 32140, 32148, 32132,
  8293. 32125, 32146, 32621, 32619, {f: 2, c: 32615}, 32620, 32678, 32677, 32679,
  8294. {f: 2, c: 32731}, 32801, 33124, 33120, 33143, 33116, 33129, 33115, 33122,
  8295. 33138, 26401, 33118, 33142, 33127, 33135, 33092, 33121, 33309, 33353,
  8296. 33348, 33344, 33346, 33349, 34033, 33855, 33878, 33910, 33913, 33935,
  8297. 33933, 33893, 33873, 33856, 33926, 33895, 33840, 33869, 33917, 33882,
  8298. 33881, 33908, 33907, 33885, 34055, 33886, 33847, 33850, 33844, 33914,
  8299. 33859, 33912, 33842, 33861, 33833, 33753, 33867, 33839, 33858, 33837,
  8300. 33887, 33904, 33849, 33870, 33868, 33874, 33903, 33989, 33934, 33851,
  8301. 33863, 33846, 33843, 33896, 33918, 33860, 33835, 33888, 33876, 33902,
  8302. 33872, 34571, 34564, 34551, 34572, 34554, 34518, 34549, 34637, 34552,
  8303. 34574, 34569, 34561, 34550, 34573, 34565, 35030, 35019, {f: 2, c: 35021},
  8304. 35038, 35035, 35034, 35020, 35024, 35205, 35227, 35295, 35301, 35300,
  8305. 35297, 35296, 35298, 35292, 35302, 35446, 35462, 35455, 35425, 35391,
  8306. 35447, 35458, 35460, 35445, 35459, 35457, 35444, 35450, 35900, 35915,
  8307. 35914, 35941, 35940, 35942, 35974, {f: 2, c: 35972}, 36044,
  8308. {f: 2, c: 36200}, 36241, 36236, {f: 2, c: 36238}, 36237, {f: 2, c: 36243},
  8309. 36240, 36242, 36336, 36320, 36332, 36337, 36334, 36304, 36329, 36323,
  8310. 36322, 36327, 36338, 36331, 36340, 36614, 36607, 36609, 36608, 36613,
  8311. {f: 2, c: 36615}, 36610, [36619, 60507], 36946, 36927, 36932, 36937, 36925,
  8312. 37136, 37133, 37135, 37137, 37142, 37140, 37131, 37134, {f: 2, c: 37230},
  8313. 37448, 37458, 37424, 37434, 37478, 37427, 37477, 37470, 37507, 37422,
  8314. 37450, 37446, 37485, 37484, 37455, 37472, 37479, 37487, 37430, 37473,
  8315. 37488, 37425, 37460, 37475, 37456, 37490, 37454, 37459, 37452, 37462,
  8316. 37426, 38303, 38300, 38302, 38299, {f: 2, c: 38546}, 38545, 38551, 38606,
  8317. 38650, 38653, 38648, 38645, 38771, {f: 2, c: 38775}, 38770, 38927,
  8318. {f: 2, c: 38925}, 39084, 39158, 39161, 39343, 39346, 39344, 39349, 39597,
  8319. 39595, 39771, 40170, 40173, 40167, 40576, [12236, 40701], 20710, 20692,
  8320. 20695, 20712, 20723, 20699, 20714, 20701, 20708, 20691, 20716, 20720,
  8321. 20719, 20707, 20704, 20952, {f: 2, c: 21120}, 21225, 21227, 21296, 21420,
  8322. 22055, 22037, 22028, 22034, 22012, 22031, 22044, 22017, 22035, 22018,
  8323. 22010, 22045, 22020, 22015, 22009, 22665, 22652, 22672, 22680, 22662,
  8324. 22657, 22655, 22644, 22667, 22650, 22663, 22673, 22670, 22646, 22658,
  8325. 22664, 22651, 22676, 22671, 22782, 22891, 23260, 23278, 23269, 23253,
  8326. 23274, 23258, 23277, 23275, 23283, 23266, 23264, 23259, 23276, 23262,
  8327. 23261, 23257, 23272, 23263, 23415, 23520, 23523, 23651, 23938, 23936,
  8328. 23933, 23942, 23930, 23937, 23927, 23946, 23945, 23944, 23934, 23932,
  8329. 23949, 23929, 23935, {f: 2, c: 24152}, 24147, 24280, 24273, 24279, 24270,
  8330. 24284, 24277, 24281, 24274, 24276, 24388, 24387, 24431, 24502, 24876,
  8331. 24872, 24897, 24926, 24945, 24947, {f: 2, c: 24914}, 24946, 24940, 24960,
  8332. 24948, 24916, 24954, 24923, 24933, 24891, 24938, 24929, 24918, 25129,
  8333. 25127, 25131, 25643, 25677, 25691, 25693, 25716, 25718, {f: 2, c: 25714},
  8334. 25725, 25717, 25702, 25766, 25678, 25730, 25694, 25692, 25675, 25683,
  8335. 25696, 25680, 25727, 25663, 25708, 25707, 25689, 25701, 25719, 25971,
  8336. 26016, 26273, 26272, 26271, 26373, 26372, 26402, 27057, 27062, 27081,
  8337. 27040, 27086, 27030, 27056, 27052, 27068, 27025, 27033, 27022, 27047,
  8338. 27021, 27049, 27070, 27055, 27071, 27076, 27069, 27044, 27092, 27065,
  8339. 27082, 27034, 27087, 27059, 27027, 27050, 27041, 27038, 27097, 27031,
  8340. 27024, 27074, 27061, 27045, 27078, 27466, 27469, 27467, {f: 3, c: 27550},
  8341. {f: 2, c: 27587}, 27646, 28366, 28405, 28401, 28419, 28453, 28408, 28471,
  8342. 28411, 28462, 28425, 28494, {f: 2, c: 28441}, 28455, 28440, 28475, 28434,
  8343. 28397, 28426, 28470, 28531, 28409, 28398, 28461, 28480, 28464, 28476,
  8344. 28469, 28395, 28423, 28430, 28483, 28421, 28413, 28406, 28473, 28444,
  8345. 28412, 28474, 28447, 28429, 28446, 28424, 28449, 29063, 29072, 29065,
  8346. 29056, 29061, 29058, 29071, 29051, 29062, 29057, 29079, 29252, 29267,
  8347. 29335, 29333, 29331, 29507, 29517, 29521, 29516, 29794, 29811, 29809,
  8348. 29813, 29810, 29799, 29806, 29952, {f: 2, c: 29954}, 30077, 30096, 30230,
  8349. 30216, 30220, 30229, 30225, 30218, 30228, 30392, 30593, 30588, 30597,
  8350. 30594, 30574, 30592, 30575, 30590, 30595, 30898, 30890, 30900, 30893,
  8351. 30888, 30846, 30891, 30878, 30885, 30880, 30892, 30882, 30884, 31128,
  8352. {f: 2, c: 31114}, 31126, 31125, 31124, 31123, 31127, 31112, 31122, 31120,
  8353. 31275, 31306, 31280, 31279, 31272, 31270, 31400, {f: 2, c: 31403}, 31470,
  8354. 31624, 31644, 31626, 31633, 31632, 31638, 31629, 31628, 31643, 31630,
  8355. 31621, 31640, 21124, 31641, 31652, 31618, 31931, 31935, 31932, 31930,
  8356. 32167, 32183, 32194, 32163, 32170, 32193, 32192, 32197, 32157, 32206,
  8357. 32196, 32198, {f: 2, c: 32203}, 32175, 32185, 32150, 32188, 32159, 32166,
  8358. 32174, 32169, 32161, 32201, 32627, {f: 2, c: 32738}, 32741, 32734, 32804,
  8359. 32861, 32860, 33161, 33158, 33155, 33159, 33165, 33164, 33163, 33301,
  8360. 33943, 33956, 33953, 33951, 33978, 33998, 33986, 33964, 33966, 33963,
  8361. 33977, 33972, 33985, 33997, 33962, 33946, 33969, 34000, 33949, 33959,
  8362. 33979, 33954, 33940, 33991, 33996, 33947, 33961, 33967, [33960, 58327],
  8363. 34006, 33944, 33974, 33999, 33952, 34007, 34004, 34002, 34011, 33968,
  8364. 33937, 34401, 34611, 34595, 34600, 34667, 34624, 34606, 34590, 34593,
  8365. 34585, 34587, 34627, 34604, 34625, 34622, 34630, 34592, 34610, 34602,
  8366. 34605, 34620, 34578, 34618, 34609, 34613, 34626, {f: 2, c: 34598}, 34616,
  8367. 34596, 34586, 34608, 34577, 35063, 35047, {f: 2, c: 35057}, 35066, 35070,
  8368. 35054, 35068, 35062, 35067, 35056, 35052, 35051, 35229, 35233, 35231,
  8369. 35230, 35305, 35307, 35304, 35499, 35481, 35467, 35474, 35471, 35478,
  8370. 35901, {f: 2, c: 35944}, 36053, 36047, 36055, 36246, 36361, 36354, 36351,
  8371. 36365, 36349, 36362, 36355, 36359, 36358, 36357, 36350, 36352, 36356,
  8372. {f: 2, c: 36624}, 36622, 36621, 37155, 37148, 37152, 37154, 37151, 37149,
  8373. 37146, 37156, 37153, 37147, 37242, 37234, 37241, 37235, 37541, 37540,
  8374. 37494, 37531, 37498, 37536, 37524, 37546, 37517, 37542, 37530, 37547,
  8375. 37497, 37527, 37503, 37539, 37614, 37518, 37506, 37525, 37538, 37501,
  8376. 37512, 37537, 37514, 37510, 37516, 37529, 37543, 37502, 37511, 37545,
  8377. 37533, 37515, 37421, 38558, 38561, 38655, 38744, 38781, 38778, 38782,
  8378. 38787, 38784, 38786, 38779, 38788, 38785, 38783, 38862, 38861, 38934,
  8379. {f: 2, c: 39085}, 39170, 39168, 39175, 39325, 39324, 39363, 39353, 39355,
  8380. 39354, 39362, 39357, 39367, 39601, 39651, 39655, {f: 2, c: 39742},
  8381. {f: 2, c: 39776}, 39775, {f: 2, c: 40177}, 40181, 40615, 20735, 20739,
  8382. 20784, 20728, {f: 2, c: 20742}, 20726, 20734, {f: 2, c: 20747}, 20733,
  8383. 20746, {f: 2, c: 21131}, 21233, 21231, 22088, 22082, 22092, 22069, 22081,
  8384. 22090, 22089, 22086, 22104, 22106, 22080, 22067, 22077, 22060, 22078,
  8385. 22072, 22058, 22074, 22298, 22699, 22685, 22705, 22688, 22691, 22703,
  8386. 22700, 22693, 22689, 22783, 23295, 23284, 23293, 23287, 23286, 23299,
  8387. 23288, 23298, 23289, 23297, 23303, 23301, 23311, 23655, 23961, 23959,
  8388. 23967, 23954, 23970, 23955, 23957, 23968, 23964, 23969, 23962, 23966,
  8389. 24169, 24157, 24160, 24156, 32243, 24283, 24286, 24289, 24393, 24498,
  8390. 24971, 24963, 24953, 25009, 25008, 24994, 24969, 24987, 24979, 25007,
  8391. 25005, 24991, 24978, 25002, 24993, 24973, 24934, 25011, 25133, 25710,
  8392. 25712, 25750, 25760, 25733, 25751, 25756, 25743, 25739, 25738, 25740,
  8393. 25763, 25759, 25704, 25777, 25752, 25974, 25978, 25977, 25979,
  8394. {f: 2, c: 26034}, 26293, 26288, 26281, 26290, 26295, 26282, 26287, 27136,
  8395. 27142, 27159, 27109, 27128, 27157, 27121, 27108, 27168, 27135, 27116,
  8396. 27106, 27163, 27165, 27134, 27175, 27122, 27118, 27156, 27127, 27111,
  8397. 27200, 27144, 27110, 27131, 27149, 27132, 27115, 27145, 27140, 27160,
  8398. 27173, 27151, 27126, 27174, 27143, 27124, 27158, 27473, 27557, 27555,
  8399. 27554, 27558, 27649, 27648, 27647, 27650, 28481, 28454, 28542, 28551,
  8400. 28614, 28562, 28557, 28553, 28556, 28514, 28495, 28549, 28506, 28566,
  8401. 28534, 28524, 28546, 28501, 28530, 28498, 28496, 28503, 28564, 28563,
  8402. 28509, 28416, 28513, 28523, 28541, 28519, 28560, 28499, 28555, 28521,
  8403. 28543, 28565, 28515, 28535, 28522, 28539, 29106, 29103, 29083, 29104,
  8404. 29088, 29082, 29097, 29109, 29085, 29093, 29086, 29092, 29089, 29098,
  8405. 29084, 29095, 29107, 29336, 29338, 29528, 29522, {f: 3, c: 29534}, 29533,
  8406. 29531, 29537, 29530, 29529, 29538, 29831, {f: 2, c: 29833}, 29830, 29825,
  8407. 29821, 29829, 29832, 29820, [29817, 58868], 29960, 29959, 30078, 30245,
  8408. 30238, 30233, 30237, 30236, 30243, 30234, 30248, 30235, {f: 3, c: 30364},
  8409. 30363, 30605, 30607, 30601, 30600, 30925, 30907, 30927, 30924, 30929,
  8410. 30926, 30932, 30920, {f: 2, c: 30915}, 30921, 31130, 31137, 31136, 31132,
  8411. 31138, [31131, 59175], 27510, 31289, 31410, 31412, 31411, 31671, 31691,
  8412. 31678, 31660, 31694, 31663, 31673, 31690, 31669, 31941, 31944, 31948,
  8413. 31947, 32247, 32219, 32234, 32231, 32215, 32225, 32259, 32250, 32230,
  8414. 32246, 32241, 32240, 32238, 32223, 32630, 32684, 32688, 32685, 32749,
  8415. 32747, 32746, 32748, 32742, 32744, 32868, 32871, 33187, 33183, 33182,
  8416. 33173, 33186, 33177, 33175, 33302, 33359, 33363, 33362, 33360, 33358,
  8417. 33361, 34084, 34107, 34063, 34048, 34089, 34062, 34057, 34061, 34079,
  8418. 34058, 34087, 34076, 34043, 34091, 34042, 34056, 34060, 34036, 34090,
  8419. 34034, 34069, 34039, 34027, 34035, 34044, 34066, 34026, 34025, 34070,
  8420. 34046, 34088, 34077, 34094, 34050, 34045, 34078, 34038, 34097, 34086,
  8421. {f: 2, c: 34023}, 34032, 34031, 34041, 34072, 34080, 34096, 34059, 34073,
  8422. 34095, 34402, 34646, {f: 2, c: 34659}, 34679, 34785, 34675, 34648, 34644,
  8423. 34651, 34642, 34657, 34650, 34641, 34654, 34669, 34666, 34640, 34638,
  8424. 34655, 34653, 34671, 34668, 34682, 34670, 34652, 34661, 34639, 34683,
  8425. 34677, 34658, 34663, 34665, 34906, 35077, 35084, 35092, 35083,
  8426. {f: 3, c: 35095}, 35078, 35094, 35089, 35086, 35081, 35234, 35236, 35235,
  8427. 35309, 35312, 35308, 35535, 35526, 35512, 35539, 35537, {f: 2, c: 35540},
  8428. 35515, 35543, 35518, 35520, 35525, 35544, 35523, 35514, 35517, 35545,
  8429. 35902, 35917, 35983, 36069, 36063, 36057, 36072, 36058, 36061, 36071,
  8430. 36256, 36252, 36257, 36251, 36384, 36387, 36389, 36388, 36398, 36373,
  8431. 36379, 36374, 36369, 36377, {f: 2, c: 36390}, 36372, 36370, 36376, 36371,
  8432. 36380, 36375, 36378, 36652, 36644, 36632, 36634, 36640, 36643,
  8433. {f: 2, c: 36630}, 36979, 36976, 36975, 36967, 36971, 37167, 37163,
  8434. {f: 2, c: 37161}, 37170, 37158, 37166, {f: 2, c: 37253}, 37258,
  8435. {f: 2, c: 37249}, 37252, 37248, 37584, {f: 2, c: 37571}, 37568, 37593,
  8436. 37558, 37583, 37617, 37599, 37592, 37609, 37591, 37597, 37580, 37615,
  8437. 37570, 37608, 37578, 37576, 37582, 37606, 37581, 37589, 37577, 37600,
  8438. 37598, 37607, 37585, 37587, 37557, 37601, 37669, 37574, 37556, 38268,
  8439. 38316, 38315, 38318, 38320, 38564, 38562, 38611, 38661, 38664, 38658,
  8440. 38746, 38794, 38798, 38792, 38864, 38863, 38942, 38941, 38950, 38953,
  8441. 38952, 38944, 38939, 38951, 39090, 39176, 39162, 39185, 39188,
  8442. {f: 2, c: 39190}, 39189, 39388, 39373, 39375, {f: 2, c: 39379}, 39374,
  8443. 39369, [39382, 60270], 39384, 39371, 39383, 39372, 39603, 39660, 39659,
  8444. 39667, 39666, 39665, 39750, 39747, 39783, 39796, 39793, 39782, 39798,
  8445. 39797, 39792, 39784, 39780, 39788, 40188, 40186, 40189, 40191, 40183,
  8446. 40199, 40192, 40185, 40187, 40200, 40197, 40196, 40579, 40659,
  8447. {f: 2, c: 40719}, 20764, 20755, 20759, 20762, 20753, 20958, 21300, 21473,
  8448. 22128, 22112, 22126, 22131, 22118, 22115, 22125, 22130, 22110, 22135,
  8449. 22300, 22299, 22728, 22717, 22729, 22719, 22714, 22722, 22716, 22726,
  8450. 23319, 23321, 23323, 23329, 23316, 23315, 23312, 23318, [23336, 59539],
  8451. 23322, 23328, 23326, 23535, 23980, 23985, 23977, 23975, 23989, 23984,
  8452. 23982, 23978, 23976, 23986, 23981, 23983, 23988, {f: 2, c: 24167}, 24166,
  8453. 24175, 24297, 24295, 24294, 24296, 24293, 24395, 24508, 24507, 24989,
  8454. 25000, 24982, 25029, 25012, 25030, 25025, 25036, 25018, 25023, 25016,
  8455. 24972, 25815, 25814, 25808, 25807, 25801, 25789, 25737, 25795, 25819,
  8456. 25843, 25817, 25907, 25983, 25980, 26018, 26312, 26302, 26304,
  8457. {f: 2, c: 26314}, 26319, 26301, 26299, 26298, 26316, 26403, 27188, 27238,
  8458. 27209, 27239, 27186, 27240, 27198, 27229, 27245, 27254, 27227, 27217,
  8459. 27176, 27226, 27195, 27199, 27201, 27242, 27236, 27216, 27215, 27220,
  8460. 27247, 27241, 27232, 27196, 27230, 27222, 27221, {f: 2, c: 27213}, 27206,
  8461. 27477, 27476, 27478, 27559, {f: 2, c: 27562}, 27592, 27591, 27652, 27651,
  8462. 27654, 28589, 28619, 28579, 28615, 28604, 28622, 28616, 28510, 28612,
  8463. 28605, 28574, 28618, 28584, 28676, 28581, 28590, 28602, 28588, 28586,
  8464. 28623, 28607, 28600, 28578, 28617, 28587, 28621, 28591, 28594, 28592,
  8465. 29125, 29122, 29119, 29112, 29142, {f: 2, c: 29120}, 29131, 29140, 29130,
  8466. 29127, 29135, 29117, 29144, 29116, 29126, {f: 2, c: 29146},
  8467. {f: 2, c: 29341}, 29545, {f: 2, c: 29542}, 29548, 29541, 29547, 29546,
  8468. 29823, 29850, 29856, 29844, 29842, 29845, 29857, 29963, 30080, 30255,
  8469. 30253, 30257, 30269, 30259, 30268, 30261, 30258, 30256, 30395, 30438,
  8470. 30618, 30621, 30625, 30620, 30619, {f: 2, c: 30626}, 30613, 30617, 30615,
  8471. 30941, 30953, 30949, 30954, 30942, 30947, 30939, {f: 2, c: 30945}, 30957,
  8472. {f: 2, c: 30943}, 31140, 31300, 31304, 31303, 31414, 31416, 31413, 31409,
  8473. 31415, 31710, 31715, 31719, 31709, 31701, 31717, 31706, 31720, 31737,
  8474. 31700, 31722, 31714, 31708, 31723, 31704, 31711, 31954, 31956, 31959,
  8475. {f: 2, c: 31952}, 32274, 32289, 32279, 32268, {f: 2, c: 32287}, 32275,
  8476. 32270, 32284, 32277, 32282, 32290, 32267, 32271, 32278, 32269, 32276,
  8477. 32293, 32292, 32579, {f: 2, c: 32635}, 32634, 32689, 32751, 32810, 32809,
  8478. 32876, 33201, 33190, 33198, 33209, 33205, 33195, 33200, 33196, 33204,
  8479. 33202, 33207, 33191, 33266, {f: 3, c: 33365}, 34134, 34117, 34155, 34125,
  8480. 34131, 34145, 34136, 34112, 34118, 34148, 34113, 34146, 34116, 34129,
  8481. 34119, 34147, 34110, 34139, 34161, 34126, 34158, 34165, 34133, 34151,
  8482. 34144, 34188, 34150, 34141, 34132, 34149, 34156, 34403, 34405, 34404,
  8483. 34724, 34715, 34703, 34711, 34707, 34706, 34696, 34689, 34710, 34712,
  8484. 34681, 34695, 34723, 34693, {f: 2, c: 34704}, 34717, 34692, 34708, 34716,
  8485. 34714, 34697, 35102, 35110, 35120, {f: 2, c: 35117}, 35111, 35121, 35106,
  8486. 35113, 35107, 35119, 35116, 35103, 35313, 35552, 35554, 35570,
  8487. {f: 2, c: 35572}, 35549, 35604, 35556, 35551, 35568, 35528, 35550, 35553,
  8488. 35560, 35583, 35567, 35579, {f: 2, c: 35985}, 35984, 36085, 36078, 36081,
  8489. 36080, 36083, 36204, 36206, 36261, 36263, 36403, 36414, 36408, 36416,
  8490. 36421, 36406, {f: 2, c: 36412}, 36417, 36400, 36415, 36541, [36662, 60329],
  8491. 36654, 36661, 36658, 36665, 36663, 36660, 36982, 36985, 36987, 36998,
  8492. 37114, 37171, {f: 2, c: 37173}, 37267, {f: 2, c: 37264}, 37261, 37263,
  8493. 37671, 37662, 37640, 37663, 37638, 37647, 37754, 37688, 37692, 37659,
  8494. 37667, 37650, 37633, 37702, 37677, 37646, 37645, 37579, 37661, 37626,
  8495. 37651, 37625, 37623, 37684, 37634, 37668, 37631, 37673, 37689, 37685,
  8496. 37674, 37652, 37644, 37643, 37630, 37641, 37632, 37627, 37654, 38332,
  8497. 38349, 38334, {f: 2, c: 38329}, 38326, 38335, 38325, 38333, 38569, 38612,
  8498. 38667, 38674, 38672, 38809, 38807, 38804, 38896, 38904, 38965, 38959,
  8499. 38962, 39204, 39199, 39207, 39209, 39326, 39406, 39404, 39397, 39396,
  8500. 39408, 39395, 39402, 39401, 39399, 39609, 39615, 39604, 39611, 39670,
  8501. 39674, 39673, 39671, 39731, 39808, 39813, 39815, 39804, 39806, 39803,
  8502. 39810, 39827, 39826, 39824, 39802, 39829, 39805, 39816, 40229, 40215,
  8503. 40224, 40222, 40212, 40233, 40221, 40216, 40226, 40208, 40217, 40223,
  8504. 40584, {f: 2, c: 40582}, 40622, 40621, {f: 2, c: 40661}, 40698, 40722,
  8505. 40765, 20774, 20773, 20770, 20772, 20768, 20777, 21236, 22163,
  8506. {f: 2, c: 22156}, 22150, 22148, 22147, 22142, 22146, 22143, 22145, 22742,
  8507. 22740, 22735, 22738, 23341, 23333, 23346, 23331, 23340, 23335, 23334,
  8508. 23343, 23342, 23419, {f: 2, c: 23537}, 23991, 24172, 24170, 24510, 25027,
  8509. 25013, 25020, 25063, 25056, 25061, 25060, 25064, 25054, 25839, 25833,
  8510. 25827, 25835, 25828, 25832, 25985, 25984, 26038, 26074, 26322, 27277,
  8511. 27286, 27265, 27301, 27273, 27295, 27291, 27297, 27294, 27271, 27283,
  8512. 27278, 27285, 27267, 27304, 27300, 27281, 27263, 27302, 27290, 27269,
  8513. 27276, 27282, 27483, 27565, 27657, 28620, 28585, 28660, 28628, 28643,
  8514. 28636, 28653, 28647, 28646, 28638, 28658, 28637, 28642, 28648, 29153,
  8515. 29169, 29160, 29170, 29156, 29168, 29154, 29555, {f: 2, c: 29550}, 29847,
  8516. 29874, 29867, 29840, 29866, 29869, 29873, 29861, 29871, {f: 3, c: 29968},
  8517. 29967, 30084, 30275, {f: 2, c: 30280}, 30279, 30372, 30441, 30645, 30635,
  8518. 30642, 30647, 30646, 30644, 30641, 30632, 30704, 30963, 30973, 30978,
  8519. {f: 2, c: 30971}, 30975, 30962, 30981, 30969, 30974, 30980, 31147, 31144,
  8520. 31324, 31323, 31318, 31320, 31316, 31322, 31422, {f: 2, c: 31424}, 31749,
  8521. 31759, 31730, 31744, 31743, 31739, 31758, 31732, 31755, 31731, 31746,
  8522. 31753, 31747, 31745, 31736, 31741, [31750, 58176], {f: 2, c: 31728}, 31760,
  8523. 31754, 31976, 32301, 32316, 32322, 32307, 38984, 32312, 32298, 32329,
  8524. 32320, 32327, 32297, 32332, 32304, 32315, 32310, 32324, 32314, 32581,
  8525. 32639, 32638, 32637, 32756, 32754, 32812, 33211, 33220, 33228, 33226,
  8526. 33221, 33223, 33212, 33257, 33371, 33370, 33372, 34179, 34176, 34191,
  8527. 34215, 34197, 34208, 34187, 34211, 34171, 34212, 34202, 34206, 34167,
  8528. 34172, 34185, 34209, 34170, 34168, 34135, 34190, 34198, 34182, 34189,
  8529. 34201, 34205, 34177, 34210, 34178, 34184, 34181, 34169, 34166, 34200,
  8530. 34192, 34207, 34408, 34750, 34730, 34733, 34757, 34736, 34732, 34745,
  8531. 34741, 34748, 34734, 34761, 34755, 34754, 34764, 34743, 34735, 34756,
  8532. 34762, 34740, 34742, 34751, 34744, 34749, 34782, 34738, 35125, 35123,
  8533. 35132, 35134, 35137, 35154, 35127, 35138, 35245, 35247, 35246,
  8534. {f: 2, c: 35314}, 35614, 35608, 35606, 35601, 35589, 35595, 35618, 35599,
  8535. 35602, 35605, 35591, 35597, 35592, 35590, 35612, 35603, 35610, 35919,
  8536. 35952, 35954, 35953, 35951, 35989, 35988, 36089, 36207, 36430, 36429,
  8537. 36435, 36432, 36428, 36423, 36675, 36672, 36997, 36990, 37176, 37274,
  8538. 37282, 37275, 37273, 37279, 37281, 37277, 37280, 37793, 37763, 37807,
  8539. 37732, 37718, 37703, 37756, 37720, 37724, 37750, 37705, {f: 2, c: 37712},
  8540. 37728, 37741, 37775, 37708, 37738, 37753, 37719, 37717, 37714, 37711,
  8541. 37745, 37751, 37755, 37729, 37726, 37731, 37735, 37710, 37721, 38343,
  8542. 38336, 38345, 38339, 38341, 38327, 38574, 38576, 38572, 38688, 38687,
  8543. 38680, 38685, 38681, 38810, 38817, 38812, 38814, 38813, 38869, 38868,
  8544. 38897, 38977, 38980, 38986, 38985, 38981, 38979, 39205, {f: 2, c: 39211},
  8545. 39210, 39219, 39218, 39215, 39213, 39217, 39216, 39320, 39331, 39329,
  8546. 39426, 39418, 39412, 39415, 39417, 39416, 39414, 39419, {f: 2, c: 39421},
  8547. 39420, 39427, 39614, 39678, 39677, 39681, 39676, 39752, 39834, 39848,
  8548. 39838, 39835, 39846, 39841, 39845, 39844, 39814, 39842, 39840, 39855,
  8549. 40243, 40257, 40295, 40246, {f: 2, c: 40238}, 40241, 40248, 40240, 40261,
  8550. {f: 2, c: 40258}, 40254, 40247, 40256, 40253, 32757, 40237, 40586, 40585,
  8551. 40589, 40624, 40648, 40666, 40699, 40703, 40740, 40739, 40738, 40788,
  8552. [12245, 40864], 20785, {f: 2, c: 20781}, 22168, 22172, 22167, 22170, 22173,
  8553. 22169, 22896, 23356, {f: 2, c: 23657}, 24000, {f: 2, c: 24173}, 25048,
  8554. 25055, {f: 2, c: 25069}, 25073, 25066, 25072, 25067, 25046, 25065, 25855,
  8555. 25860, 25853, 25848, 25857, 25859, 25852, 26004, 26075, {f: 2, c: 26330},
  8556. 26328, 27333, 27321, 27325, 27361, 27334, 27322, {f: 2, c: 27318}, 27335,
  8557. 27316, 27309, 27486, 27593, 27659, 28679, {f: 2, c: 28684}, 28673, 28677,
  8558. 28692, 28686, {f: 2, c: 28671}, 28667, 28710, 28668, 28663, 28682,
  8559. [29185, 60224], 29183, 29177, 29187, 29181, 29558, 29880, 29888, 29877,
  8560. 29889, 29886, 29878, 29883, 29890, 29972, 29971, 30300, 30308, 30297,
  8561. 30288, 30291, 30295, 30298, 30374, 30397, 30444, 30658, 30650, 30988,
  8562. {f: 2, c: 30995}, 30985, 30992, 30994, 30993, 31149, 31148, 31327, 31772,
  8563. 31785, 31769, 31776, 31775, 31789, 31773, 31782, 31784, 31778, 31781,
  8564. 31792, 32348, 32336, 32342, 32355, 32344, 32354, 32351, 32337, 32352,
  8565. 32343, 32339, 32693, 32691, {f: 2, c: 32759}, 32885, {f: 2, c: 33233},
  8566. 33232, 33375, 33374, 34228, 34246, 34240, 34243, 34242, 34227, 34229,
  8567. 34237, 34247, 34244, 34239, 34251, 34254, 34248, 34245, 34225, 34230,
  8568. 34258, 34340, 34232, 34231, 34238, 34409, 34791, 34790, 34786, 34779,
  8569. 34795, 34794, 34789, 34783, 34803, 34788, 34772, 34780, 34771, 34797,
  8570. 34776, 34787, 34775, 34777, 34817, 34804, 34792, 34781, 35155, 35147,
  8571. 35151, 35148, 35142, {f: 2, c: 35152}, 35145, 35626, 35623, 35619, 35635,
  8572. 35632, 35637, 35655, 35631, 35644, 35646, 35633, 35621, 35639, 35622,
  8573. 35638, 35630, 35620, 35643, 35645, 35642, 35906, 35957, 35993, 35992,
  8574. 35991, 36094, 36100, 36098, 36096, 36444, 36450, 36448, 36439, 36438,
  8575. 36446, 36453, 36455, 36443, 36442, 36449, 36445, 36457, 36436,
  8576. {f: 3, c: 36678}, 36683, 37160, {f: 2, c: 37178}, 37182, 37288, 37285,
  8577. 37287, 37295, 37290, 37813, 37772, 37778, 37815, 37787, 37789, 37769,
  8578. 37799, 37774, 37802, 37790, 37798, 37781, 37768, 37785, 37791, 37760,
  8579. 37773, 37809, 37777, 37810, 37796, 37800, 37812, 37795, {f: 2, c: 38354},
  8580. 38353, 38579, 38615, 38618, 24002, 38623, 38616, 38621, 38691, 38690,
  8581. 38693, 38828, 38830, 38824, 38827, 38820, 38826, 38818, 38821, 38871,
  8582. 38873, 38870, 38872, 38906, {f: 3, c: 38992}, 39096, 39233, 39228, 39226,
  8583. 39439, 39435, 39433, 39437, 39428, 39441, 39434, 39429, 39431, 39430,
  8584. 39616, 39644, 39688, {f: 2, c: 39684}, 39721, 39733, 39754, 39756, 39755,
  8585. 39879, 39878, 39875, 39871, 39873, 39861, 39864, 39891, 39862, 39876,
  8586. 39865, 39869, 40284, 40275, 40271, 40266, 40283, 40267, 40281, 40278,
  8587. 40268, 40279, 40274, 40276, 40287, 40280, 40282, 40590, 40588, 40671,
  8588. 40705, 40704, [40726, 58693], 40741, 40747, 40746, 40745, 40744, 40780,
  8589. 40789, {f: 2, c: 20788}, 21142, 21239, 21428, 22187, 22189,
  8590. {f: 2, c: 22182}, 22186, 22188, 22746, 22749, 22747, 22802,
  8591. {f: 3, c: 23357}, 24003, 24176, 24511, 25083, 25863, 25872, 25869, 25865,
  8592. 25868, 25870, 25988, 26078, 26077, 26334, 27367, 27360, 27340, 27345,
  8593. 27353, 27339, 27359, 27356, 27344, 27371, 27343, 27341, 27358, 27488,
  8594. 27568, 27660, 28697, 28711, 28704, 28694, 28715, {f: 3, c: 28705}, 28713,
  8595. 28695, 28708, 28700, 29196, 29194, 29191, 29186, 29189, {f: 2, c: 29349},
  8596. 29348, 29347, 29345, 29899, 29893, 29879, 29891, 29974, 30304,
  8597. {f: 2, c: 30665}, 30660, 30705, 31005, 31003, 31009, 31004, 30999, 31006,
  8598. 31152, {f: 2, c: 31335}, 31795, 31804, 31801, 31788, 31803, 31980, 31978,
  8599. 32374, 32373, 32376, 32368, 32375, 32367, 32378, 32370, 32372, 32360,
  8600. 32587, 32586, 32643, 32646, 32695, {f: 2, c: 32765}, 32888, 33239, 33237,
  8601. 33291, 33380, 33377, 33379, 34283, 34289, 34285, 34265, 34273, 34280,
  8602. 34266, 34263, 34284, 34290, 34296, 34264, 34271, 34275, 34268, 34257,
  8603. 34288, 34278, 34287, 34270, 34274, 34816, 34810, 34819, {f: 2, c: 34806},
  8604. 34825, 34828, 34827, 34822, 34812, 34824, 34815, 34826, 34818, 35170,
  8605. {f: 2, c: 35162}, 35159, 35169, 35164, 35160, 35165, 35161, 35208, 35255,
  8606. 35254, 35318, 35664, 35656, 35658, 35648, 35667, 35670, 35668, 35659,
  8607. 35669, 35665, 35650, 35666, 35671, 35907, 35959, 35958, 35994,
  8608. {f: 2, c: 36102}, 36105, 36268, 36266, 36269, 36267, 36461, 36472, 36467,
  8609. 36458, 36463, 36475, 36546, 36690, 36689, {f: 2, c: 36687}, 36691, 36788,
  8610. 37184, 37183, 37296, 37293, 37854, 37831, 37839, 37826, 37850, 37840,
  8611. 37881, 37868, 37836, 37849, 37801, 37862, 37834, 37844, 37870, 37859,
  8612. 37845, 37828, 37838, 37824, 37842, 37797, 37863, 38269, {f: 2, c: 38362},
  8613. 38625, 38697, {f: 2, c: 38699}, 38696, 38694, 38835, 38839, 38838,
  8614. {f: 3, c: 38877}, 39004, 39001, 39005, 38999, 39103, 39101, 39099, 39102,
  8615. 39240, 39239, 39235, {f: 2, c: 39334}, 39450, 39445, 39461, 39453, 39460,
  8616. 39451, 39458, 39456, 39463, 39459, 39454, 39452, 39444, 39618, 39691,
  8617. 39690, 39694, 39692, 39735, {f: 2, c: 39914}, 39904, 39902, 39908, 39910,
  8618. 39906, 39920, 39892, 39895, 39916, 39900, 39897, 39909, 39893, 39905,
  8619. 39898, 40311, 40321, 40330, 40324, 40328, 40305, 40320, 40312, 40326,
  8620. {f: 2, c: 40331}, 40317, 40299, {f: 2, c: 40308}, 40304, 40297, 40325,
  8621. 40307, 40315, 40322, 40303, 40313, 40319, 40327, 40296, 40596, 40593,
  8622. 40640, 40700, 40749, {f: 2, c: 40768}, 40781, {f: 3, c: 40790}, 21303,
  8623. 22194, 22197, 22195, 22755, 23365, {f: 2, c: 24006}, {f: 2, c: 24302},
  8624. {f: 2, c: 24512}, 25081, 25879, 25878, 25877, 25875, 26079, 26344,
  8625. {f: 2, c: 26339}, 27379, 27376, 27370, 27368, 27385, 27377,
  8626. {f: 2, c: 27374}, 28732, 28725, 28719, 28727, 28724, 28721, 28738, 28728,
  8627. 28735, 28730, 28729, 28714, 28736, 28731, 28723, 28737, {f: 2, c: 29203},
  8628. 29352, 29565, 29564, 29882, 30379, 30378, 30398, 30445, 30668,
  8629. {f: 2, c: 30670}, 30669, 30706, 31013, 31011, {f: 2, c: 31015}, 31012,
  8630. 31017, 31154, 31342, {f: 2, c: 31340}, 31479, 31817, 31816, 31818, 31815,
  8631. 31813, 31982, 32379, 32382, 32385, 32384, 32698, 32767, 32889, 33243,
  8632. 33241, {f: 2, c: 33384}, 34338, 34303, 34305, 34302, 34331, 34304, 34294,
  8633. 34308, 34313, 34309, 34316, 34301, 34841, {f: 2, c: 34832}, 34839, 34835,
  8634. 34838, 35171, 35174, 35257, 35319, 35680, 35690, 35677, 35688, 35683,
  8635. 35685, 35687, 35693, 36270, 36486, 36488, 36484, 36697, {f: 2, c: 36694},
  8636. 36693, 36696, 36698, 37005, 37187, 37185, 37303, 37301, {f: 2, c: 37298},
  8637. 37899, 37907, 37883, 37920, 37903, 37908, 37886, 37909, 37904, 37928,
  8638. 37913, 37901, 37877, 37888, 37879, 37895, 37902, 37910, 37906, 37882,
  8639. 37897, 37880, 37948, 37898, 37887, 37884, 37900, 37878, 37905, 37894,
  8640. 38366, 38368, 38367, {f: 2, c: 38702}, 38841, 38843, {f: 2, c: 38909},
  8641. 39008, {f: 2, c: 39010}, 39007, {f: 2, c: 39105}, 39248, 39246, 39257,
  8642. 39244, 39243, 39251, 39474, 39476, 39473, 39468, 39466, 39478, 39465,
  8643. 39470, 39480, 39469, 39623, 39626, 39622, 39696, 39698, 39697, 39947,
  8644. 39944, 39927, 39941, 39954, 39928, 40000, 39943, 39950, 39942, 39959,
  8645. 39956, 39945, 40351, 40345, 40356, 40349, 40338, 40344, 40336, 40347,
  8646. 40352, 40340, 40348, 40362, 40343, 40353, 40346, 40354, 40360, 40350,
  8647. 40355, 40383, 40361, 40342, {f: 2, c: 40358}, 40601, 40603, 40602, 40677,
  8648. 40676, 40679, 40678, 40752, 40750, 40795, 40800, 40798, 40797, 40793,
  8649. 40849, 20794, 20793, 21144, 21143, 22211, {f: 2, c: 22205}, 23368, 23367,
  8650. 24011, 24015, 24305, 25085, 25883, 27394, 27388, 27395, 27384, 27392,
  8651. {f: 2, c: 28739}, 28746, {f: 2, c: 28744}, {f: 2, c: 28741}, 29213, 29210,
  8652. 29209, 29566, 29975, 30314, 30672, 31021, 31025, 31023, 31828, 31827,
  8653. 31986, 32394, [32391, 60229], 32392, 32395, 32390, 32397, 32589, 32699,
  8654. 32816, 33245, 34328, 34346, 34342, 34335, 34339, 34332, 34329, 34343,
  8655. 34350, 34337, 34336, 34345, 34334, 34341, 34857, 34845, 34843, 34848,
  8656. 34852, 34844, 34859, 34890, 35181, 35177, 35182, 35179, 35322, 35705,
  8657. 35704, 35653, {f: 2, c: 35706}, 36112, 36116, 36271, 36494, 36492, 36702,
  8658. 36699, 36701, 37190, {f: 2, c: 37188}, 37305, 37951, 37947, 37942, 37929,
  8659. 37949, 37936, 37945, 37930, 37943, 37932, 37952, 37937, 38373, 38372,
  8660. 38371, 38709, 38714, 38847, 38881, 39012, 39113, 39110, 39104, 39256,
  8661. 39254, 39481, 39485, 39494, 39492, 39490, 39489, 39482, 39487, 39629,
  8662. 39701, {f: 2, c: 39703}, 39702, 39738, 39762, 39979, 39965, 39964, 39980,
  8663. 39971, {f: 2, c: 39976}, 39972, 39969, 40375, 40374, 40380, 40385, 40391,
  8664. 40394, 40399, 40382, 40389, 40387, 40379, 40373, 40398, {f: 2, c: 40377},
  8665. 40364, 40392, 40369, 40365, 40396, 40371, 40397, 40370, 40570, 40604,
  8666. 40683, 40686, 40685, 40731, 40728, 40730, 40753, 40782, 40805, 40804,
  8667. 40850, 20153, 22214, 22213, 22219, 22897, {f: 2, c: 23371}, 24021, 24017,
  8668. 24306, 25889, 25888, 25894, 25890, 27403, {f: 2, c: 27400}, 27661,
  8669. {f: 3, c: 28757}, 28754, {f: 2, c: 29214}, 29353, 29567, 29912, 29909,
  8670. 29913, 29911, 30317, 30381, 31029, 31156, {f: 2, c: 31344}, 31831, 31836,
  8671. 31833, 31835, 31834, 31988, 31985, 32401, 32591, 32647, 33246, 33387,
  8672. {f: 2, c: 34356}, 34355, 34348, 34354, 34358, 34860, 34856, 34854, 34858,
  8673. 34853, 35185, 35263, 35262, 35323, 35710, 35716, 35714, 35718, 35717,
  8674. 35711, 36117, 36501, 36500, 36506, 36498, 36496, {f: 2, c: 36502}, 36704,
  8675. 36706, 37191, 37964, 37968, {f: 2, c: 37962}, 37967, 37959, 37957,
  8676. {f: 2, c: 37960}, 37958, 38719, 38883, 39018, 39017, 39115, 39252, 39259,
  8677. 39502, {f: 2, c: 39507}, 39500, 39503, 39496, 39498, 39497, 39506, 39504,
  8678. 39632, 39705, 39723, 39739, 39766, 39765, 40006, 40008, 39999, 40004,
  8679. 39993, 39987, 40001, 39996, 39991, 39988, 39986, 39997, 39990, 40411,
  8680. 40402, 40414, 40410, 40395, 40400, 40412, 40401, 40415, 40425, 40409,
  8681. 40408, 40406, 40437, 40405, 40413, 40630, 40688, 40757, 40755, 40754,
  8682. 40770, 40811, 40853, 40866, 20797, 21145, 22760, 22759, 22898, 23373,
  8683. 24024, 34863, 24399, 25089, {f: 2, c: 25091}, 25897, 25893, 26006, 26347,
  8684. {f: 2, c: 27409}, 27407, 27594, 28763, 28762, 29218, 29570, 29569, 29571,
  8685. 30320, 30676, 31847, 31846, 32405, 33388, 34362, 34368, 34361, 34364,
  8686. 34353, 34363, 34366, 34864, 34866, 34862, 34867, 35190, 35188, 35187,
  8687. 35326, 35724, 35726, 35723, 35720, 35909, 36121, 36504, 36708, 36707,
  8688. 37308, 37986, 37973, 37981, 37975, 37982, {f: 2, c: 38852}, 38912, 39510,
  8689. 39513, {f: 3, c: 39710}, 40018, 40024, 40016, 40010, 40013, 40011, 40021,
  8690. 40025, 40012, 40014, 40443, 40439, 40431, 40419, 40427, 40440, 40420,
  8691. 40438, 40417, 40430, 40422, 40434, [40432, 60370], 40418, 40428, 40436,
  8692. 40435, 40424, 40429, 40642, 40656, {f: 2, c: 40690}, 40710, 40732, 40760,
  8693. 40759, 40758, 40771, 40783, 40817, 40816, {f: 2, c: 40814}, 22227, 22221,
  8694. 23374, 23661, 25901, {f: 2, c: 26349}, 27411, 28767, 28769, 28765, 28768,
  8695. 29219, 29915, 29925, 30677, 31032, 31159, 31158, 31850, 32407, 32649,
  8696. 33389, 34371, 34872, 34871, 34869, 34891, {f: 2, c: 35732},
  8697. {f: 3, c: 36510}, 36509, 37310, 37309, 37314, 37995, {f: 2, c: 37992},
  8698. 38629, 38726, 38723, 38727, 38855, 38885, 39518, 39637, 39769, 40035,
  8699. 40039, 40038, 40034, 40030, 40032, 40450, 40446, 40455, 40451, 40454,
  8700. 40453, {f: 2, c: 40448}, 40457, 40447, 40445, 40452, 40608, 40734, 40774,
  8701. {f: 3, c: 40820}, 22228, 25902, 26040, {f: 2, c: 27416}, 27415, 27418,
  8702. 28770, 29222, 29354, {f: 2, c: 30680}, 31033, 31849, 31851, 31990, 32410,
  8703. 32408, 32411, 32409, {f: 2, c: 33248}, {f: 3, c: 34374}, {f: 2, c: 35193},
  8704. 35196, 35195, 35327, {f: 2, c: 35736}, 36517, 36516, 36515, 37998, 37997,
  8705. 37999, 38001, 38003, 38729, 39026, 39263, 40040, 40046, 40045, 40459,
  8706. 40461, 40464, 40463, 40466, 40465, 40609, 40693, 40713, 40775, 40824,
  8707. 40827, 40826, 40825, 22302, 28774, 31855, 34876, 36274, 36518, 37315,
  8708. 38004, 38008, 38006, 38005, 39520, [39726, 60830], 40052, 40051, 40049,
  8709. 40053, 40468, 40467, 40694, 40714, 40868, 28776, 28773, 31991, 34410,
  8710. 34878, 34877, 34879, 35742, 35996, 36521, 36553, 38731, {f: 2, c: 39027},
  8711. 39116, 39265, 39339, 39524, {f: 2, c: 39526}, 39716, 40469, 40471, 40776,
  8712. 25095, 27422, 29223, 34380, 36520, 38018, {f: 2, c: 38016}, 39529, 39528,
  8713. 40473, 34379, 35743, 38019, 40057, 40631, 30325, 39531, 40058, 40477,
  8714. {f: 2, c: 28777}, 29225, 40612, 40830, 40777, 40856, {s: 97}, 65075, 0,
  8715. 65076, 65103, [168, 776, 63208], [710, 63209, 65342], [12541, 63210],
  8716. [12542, 63211], [12445, 63212], [12446, 63213], 0, [12293, 63216],
  8717. [12294, 63217], [12295, 63218], [12540, 63219], [63220, 65339],
  8718. [63221, 65341], [10045, 63222], [12353, 63223], [12354, 63224],
  8719. [12355, 63225], [12356, 63226], [12357, 63227], [12358, 63228],
  8720. [12359, 63229], [12360, 63230], [12361, 63231], [12362, 63232],
  8721. [12363, 63233], [12364, 63234], [12365, 63235], [12366, 63236],
  8722. [12367, 63237], [12368, 63238], [12369, 63239], [12370, 63240],
  8723. [12371, 63241], [12372, 63242], [12373, 63243], [12374, 63244],
  8724. [12375, 63245], [12376, 63246], [12377, 63247], [12378, 63248],
  8725. [12379, 63249], [12380, 63250], [12381, 63251], [12382, 63252],
  8726. [12383, 63253], [12384, 63254], [12385, 63255], [12386, 63256],
  8727. [12387, 63257], [12388, 63258], [12389, 63259], [12390, 63260],
  8728. [12391, 63261], [12392, 63262], [12393, 63263], [12394, 63264],
  8729. [12395, 63265], [12396, 63266], [12397, 63267], [12398, 63268],
  8730. [12399, 63269], [12400, 63270], [12401, 63271], [12402, 63272],
  8731. [12403, 63273], [12404, 63274], [12405, 63275], [12406, 63276],
  8732. [12407, 63277], [12408, 63278], [12409, 63279], [12410, 63280],
  8733. [12411, 63281], [12412, 63282], [12413, 63283], [12414, 63284],
  8734. [12415, 63285], [12416, 63286], [12417, 63287], [12418, 63288],
  8735. [12419, 63289], [12420, 63290], [12421, 63291], [12422, 63292],
  8736. [12423, 63293], [12424, 63294], [12425, 63295], [12426, 63296],
  8737. [12427, 63297], [12428, 63298], [12429, 63299], [12430, 63300],
  8738. [12431, 63301], [12432, 63302], [12433, 63303], [12434, 63304],
  8739. [12435, 63305], [12449, 63306], [12450, 63307], [12451, 63308],
  8740. [12452, 63309], [12453, 63310], [12454, 63311], [12455, 63312],
  8741. [12456, 63313], [12457, 63314], [12458, 63315], [12459, 63316],
  8742. [12460, 63317], [12461, 63318], [12462, 63319], [12463, 63320],
  8743. [12464, 63321], [12465, 63322], [12466, 63323], [12467, 63324],
  8744. [12468, 63325], [12469, 63326], [12470, 63327], [12471, 63328],
  8745. [12472, 63329], [12473, 63330], [12474, 63331], [12475, 63332],
  8746. [12476, 63333], [12477, 63334], [12478, 63335], [12479, 63336],
  8747. [12480, 63337], [12481, 63338], [12482, 63339], [12483, 63340],
  8748. [12484, 63341], [12485, 63342], [12486, 63343], [12487, 63344],
  8749. [12488, 63345], [12489, 63346], [12490, 63347], [12491, 63348],
  8750. [12492, 63349], [12493, 63350], [12494, 63351], [12495, 63352],
  8751. [12496, 63353], [12497, 63354], [12498, 63355], [12499, 63356],
  8752. [12500, 63357], [12501, 63358], [12502, 63359], [12503, 63360],
  8753. [12504, 63361], [12505, 63362], [12506, 63363], [12507, 63364],
  8754. [12508, 63365], [12509, 63366], [12510, 63367], [12511, 63368],
  8755. [12512, 63369], [12513, 63370], [12514, 63371], [12515, 63372],
  8756. [12516, 63373], [12517, 63374], [12518, 63375], [12519, 63376],
  8757. [12520, 63377], [12521, 63378], [12522, 63379], [12523, 63380],
  8758. [12524, 63381], [12525, 63382], [12526, 63383], [12527, 63384],
  8759. [12528, 63385], [12529, 63386], [12530, 63387], [12531, 63388],
  8760. [12532, 63389], [12533, 63390], [12534, 63391], [1040, 63392],
  8761. [1041, 63393], [1042, 63394], [1043, 63395], [1044, 63396], [1045, 63397],
  8762. [1025, 63398], [1046, 63399], [1047, 63400], [1048, 63401], [1049, 63402],
  8763. [1050, 63403], [1051, 63404], [1052, 63405], [1053, 63406], [1054, 63407],
  8764. [1055, 63408], [1056, 63409], [1057, 63410], [1058, 63411], [1059, 63412],
  8765. [1060, 63413], [1061, 63414], [1062, 63415], [1063, 63416], [1064, 63417],
  8766. [1065, 63418], [1066, 63419], [1067, 63420], [1068, 63421], [1069, 63422],
  8767. [1070, 63423], [1071, 63424], [1072, 63425], [1073, 63426], [1074, 63427],
  8768. [1075, 63428], [1076, 63429], [1077, 63430], [1105, 63431], [1078, 63432],
  8769. [1079, 63433], [1080, 63434], [1081, 63435], [1082, 63436], [1083, 63437],
  8770. [1084, 63438], [1085, 63439], [1086, 63440], [1087, 63441], [1088, 63442],
  8771. [1089, 63443], [1090, 63444], [1091, 63445], [1092, 63446], [1093, 63447],
  8772. [1094, 63448], [1095, 63449], [1096, 63450], [1097, 63451], [1098, 63452],
  8773. [1099, 63453], [1100, 63454], [1101, 63455], [1102, 63456], [1103, 63457],
  8774. [8679, 63458], [8632, 63459], [8633, 63460], [20033, 63461],
  8775. [63462, 131276], [20058, 63463], [63464, 131210], [20994, 63465],
  8776. [17553, 63466], 63467, [20872, 63468], [13853, 63469], [63470, 161287],
  8777. {s: 40}, [172, 63511, 65506], [63512, 65508], [63513, 65287],
  8778. [63514, 65282], [12849, 63515], [8470, 63516], [8481, 63517], 30849,
  8779. [37561, 58501], 35023, 22715, 24658, 31911, 23290, 9556, 9574, 9559, 9568,
  8780. 9580, 9571, 9562, 9577, 9565, 9554, 9572, 9557, {s: 3}, 9560, 9575, 9563,
  8781. 9555, 9573, 9558, 9567, 9579, 9570, 9561, 9576, 9564, 9553, {s: 5}, 9619,
  8782. {s: 26}, [58129, 147159], [22462, 58130], [58131, 159443], [28990, 58132],
  8783. [58133, 153568], [27042, 58135], [58136, 166889], [23412, 58137],
  8784. [31305, 58138], [58139, 153825], [58140, 169177], [31333, 58141],
  8785. [31357, 58142], [58143, 154028], [31419, 58144], [31408, 58145],
  8786. [31426, 58146], [31427, 58147], [29137, 58148], [58149, 156813],
  8787. [16842, 58150], [31450, 58151], [31453, 58152], [31466, 58153],
  8788. [16879, 58154], [21682, 58155], [58156, 154625], [31499, 58157],
  8789. [31573, 58158], [31529, 58159], [58160, 152334], [58161, 154878],
  8790. [31650, 58162], [31599, 58163], [33692, 58164], [58165, 154548],
  8791. [58166, 158847], [31696, 58167], [33825, 58168], [31634, 58169], 0,
  8792. [58171, 154912], 0, [33938, 58174], [31738, 58175], 0, [31797, 58177],
  8793. [58178, 154817], [31812, 58179], [31875, 58180], [58181, 149634],
  8794. [31910, 58182], [58184, 148856], [31945, 58185], [31943, 58186],
  8795. [31974, 58187], 0, [31987, 58189], [31989, 58190], [32359, 58192],
  8796. [17693, 58193], [58194, 159300], [32093, 58195], [58196, 159446],
  8797. [32137, 58198], [32171, 58199], [28981, 58200], [32179, 58201], 32214,
  8798. [58203, 147543], [58204, 155689], [32228, 58205], [15635, 58206],
  8799. [32245, 58207], [58208, 137209], [32229, 58209], [58210, 164717], 0,
  8800. [58212, 155937], [58213, 155994], [32366, 58214], 0, [17195, 58216],
  8801. [37996, 58217], [32295, 58218], [32576, 58219], [32577, 58220],
  8802. [32583, 58221], [31030, 58222], [58223, 156368], [39393, 58224],
  8803. [32663, 58225], [58226, 156497], [32675, 58227], [58228, 136801],
  8804. [58229, 131176], [17756, 58230], [58231, 145254], [58233, 164666],
  8805. [32762, 58234], [58235, 156809], 0, [32776, 58237], [32797, 58238], 0,
  8806. [32815, 58240], [58241, 172167], [58242, 158915], [32827, 58243],
  8807. [32828, 58244], [32865, 58245], [58246, 141076], [18825, 58247],
  8808. [58248, 157222], [58249, 146915], [58250, 157416], [26405, 58251],
  8809. [32935, 58252], [58253, 166472], [33031, 58254], [33050, 58255],
  8810. [22704, 58256], [58257, 141046], [27775, 58258], [58259, 156824],
  8811. [25831, 58261], [58262, 136330], [33304, 58263], [58264, 137310],
  8812. [27219, 58265], [58266, 150117], [58267, 150165], [17530, 58268],
  8813. [33321, 58269], [58271, 158290], [58272, 146814], [20473, 58273],
  8814. [58274, 136445], [34018, 58275], [33634, 58276], 0, [58278, 149927],
  8815. [58279, 144688], [58280, 137075], [58281, 146936], [33450, 58282],
  8816. [26907, 58283], [58284, 194964], [16859, 58285], [34123, 58286],
  8817. [33488, 58287], [33562, 58288], [58289, 134678], [58290, 137140],
  8818. [14017, 58291], [58292, 143741], [58293, 144730], [33403, 58294],
  8819. [33506, 58295], [33560, 58296], [58297, 147083], [58298, 159139],
  8820. [58299, 158469], [58300, 158615], [58301, 144846], [15807, 58302],
  8821. [33565, 58303], [21996, 58304], [33669, 58305], [17675, 58306],
  8822. [58307, 159141], [33708, 58308], 0, [33747, 58310], [58312, 159444],
  8823. [27223, 58313], [34138, 58314], [13462, 58315], [58316, 159298],
  8824. [33880, 58318], [58319, 154596], [33905, 58320], [15827, 58321],
  8825. [17636, 58322], [27303, 58323], [33866, 58324], [31064, 58326], 0,
  8826. [58328, 158614], [58329, 159351], [58330, 159299], [34014, 58331], 0,
  8827. [33681, 58333], [17568, 58334], [33939, 58335], [34020, 58336],
  8828. [58337, 154769], [16960, 58338], [58339, 154816], [17731, 58340],
  8829. [34100, 58341], [23282, 58342], 0, [17703, 58344], [34163, 58345],
  8830. [17686, 58346], [26559, 58347], [34326, 58348], [58349, 165413],
  8831. [58350, 165435], [34241, 58351], [58352, 159880], [34306, 58353],
  8832. [58354, 136578], [58355, 159949], [58356, 194994], [17770, 58357],
  8833. [34344, 58358], [13896, 58359], [58360, 137378], [21495, 58361],
  8834. [58362, 160666], [34430, 58363], 0, [58365, 172280], [34798, 58366],
  8835. [58367, 142375], [34737, 58368], [34778, 58369], [34831, 58370, 60990],
  8836. [22113, 58371], [34412, 58372], [26710, 58373], [17935, 58374],
  8837. [34885, 58375], [34886, 58376], [58377, 161248], [58378, 146873],
  8838. [58379, 161252], [34910, 58380], [34972, 58381], [18011, 58382],
  8839. [34996, 58383], [34997, 58384], [35013, 58386], [58388, 161551],
  8840. [35207, 58389], {s: 3}, [35239, 58393], [35260, 58394], [58395, 166437],
  8841. [35303, 58396], [58397, 162084], [58398, 162493], [35484, 58399],
  8842. [30611, 58400], [37374, 58401], [35472, 58402], [58403, 162393],
  8843. [31465, 58404], [58405, 162618], [18195, 58407], [58408, 162616],
  8844. [29052, 58409], [35596, 58410], [35615, 58411], [58412, 152624],
  8845. [58413, 152933], [35647, 58414], 0, [35661, 58416], [35497, 58417],
  8846. [58418, 150138], [35728, 58419], [35739, 58420], [35503, 58421],
  8847. [58422, 136927], [17941, 58423], [34895, 58424], [35995, 58425],
  8848. [58426, 163156], [58427, 163215], [58428, 195028], [14117, 58429],
  8849. [58430, 163155], [36054, 58431], [58432, 163224], [58433, 163261],
  8850. [36114, 58434], [36099, 58435], [58436, 137488], [36059, 58437],
  8851. [28764, 58438], [36113, 58439], [16080, 58441], 0, [36265, 58443],
  8852. [58444, 163842], [58445, 135188], [58446, 149898], [15228, 58447],
  8853. [58448, 164284], [58449, 160012], [31463, 58450], [36525, 58451],
  8854. [36534, 58452], [36547, 58453], [37588, 58454], [36633, 58455],
  8855. [36653, 58456], [58457, 164709], [58458, 164882], [36773, 58459],
  8856. [37635, 58460], [58461, 172703], [58462, 133712], [36787, 58463], 0,
  8857. [58465, 166366], [58466, 165181], [58467, 146875], [24312, 58468],
  8858. [58469, 143970], [36857, 58470], 0, [58474, 140069], [14720, 58475],
  8859. [58476, 159447], [36919, 58477], [58478, 165180], [58479, 162494],
  8860. [36961, 58480], [58481, 165228], [58482, 165387], [37032, 58483],
  8861. [58484, 165651], [37060, 58485], [58486, 165606], [37038, 58487], 0,
  8862. [37223, 58489], [37289, 58491], [37316, 58492], [31916, 58493],
  8863. [58494, 166195], [58495, 138889], [37390, 58496], [27807, 58497],
  8864. [37441, 58498], [37474, 58499], [58500, 153017], [58502, 166598],
  8865. [58503, 146587], [58504, 166668], [58505, 153051], [58506, 134449],
  8866. [37676, 58507], [37739, 58508], [58509, 166625], [58510, 166891],
  8867. [23235, 58512], [58513, 166626], [58514, 166629], [18789, 58515],
  8868. [37444, 58516], [58517, 166892], [58518, 166969], [58519, 166911],
  8869. [37747, 58520], [37979, 58521], [36540, 58522], [38277, 58523],
  8870. [38310, 58524], [37926, 58525], [38304, 58526], [28662, 58527],
  8871. [17081, 58528], [58530, 165592], [58531, 135804], [58532, 146990],
  8872. [18911, 58533], [27676, 58534], [38523, 58535], [38550, 58536],
  8873. [16748, 58537], [38563, 58538], [58539, 159445], [25050, 58540], 58541,
  8874. [30965, 58542], [58543, 166624], [38589, 58544], [21452, 58545],
  8875. [18849, 58546], [58547, 158904], [58548, 131700], [58549, 156688],
  8876. [58550, 168111], [58551, 168165], [58552, 150225], [58553, 137493],
  8877. [58554, 144138], [38705, 58555], [34370, 58556], [38710, 58557],
  8878. [18959, 58558], [17725, 58559], [17797, 58560], [58561, 150249],
  8879. [28789, 58562], [23361, 58563], [38683, 58564], 0, [58566, 168405],
  8880. [38743, 58567], [23370, 58568], [58569, 168427], [38751, 58570],
  8881. [37925, 58571], [20688, 58572], [58573, 143543], [58574, 143548],
  8882. [38793, 58575], [38815, 58576], [38833, 58577], [38846, 58578],
  8883. [38848, 58579], [38866, 58580], [38880, 58581], [58582, 152684],
  8884. [38894, 58583], [29724, 58584], [58585, 169011], 0, [38901, 58587],
  8885. [58588, 168989], [58589, 162170], [19153, 58590], [38964, 58591],
  8886. [38963, 58592], [38987, 58593], [39014, 58594], [15118, 58595],
  8887. [58596, 160117], [15697, 58597], [58598, 132656], [58599, 147804],
  8888. [58600, 153350], [39114, 58601], [39095, 58602], [39112, 58603],
  8889. [39111, 58604], [19199, 58605], [58606, 159015], [58607, 136915],
  8890. [21936, 58608], [39137, 58609], [39142, 58610], [39148, 58611],
  8891. [37752, 58612], [39225, 58613], [58614, 150057], [19314, 58615],
  8892. [58616, 170071], [58617, 170245], [39413, 58618], [39436, 58619],
  8893. [39483, 58620], [39440, 58621], [39512, 58622], [58623, 153381],
  8894. [14020, 58624], [58625, 168113], [58626, 170965], [39648, 58627],
  8895. [39650, 58628], [58629, 170757], [39668, 58630], [19470, 58631],
  8896. [39700, 58632], [39725, 58633], [58634, 165376], [20532, 58635],
  8897. [39732, 58636], [14531, 58638], [58639, 143485], [39760, 58640],
  8898. [39744, 58641], [58642, 171326], [23109, 58643], [58644, 137315],
  8899. [39822, 58645], [39938, 58647], [39935, 58648], [39948, 58649],
  8900. [58650, 171624], [40404, 58651], [58652, 171959], [58653, 172434],
  8901. [58654, 172459], [58655, 172257], [58656, 172323], [58657, 172511],
  8902. [40318, 58658], [40323, 58659], [58660, 172340], [40462, 58661],
  8903. [40388, 58663], [58665, 172435], [58666, 172576], [58667, 137531],
  8904. [58668, 172595], [40249, 58669], [58670, 172217], [58671, 172724],
  8905. [40592, 58672], [40597, 58673], [40606, 58674], [40610, 58675],
  8906. [19764, 58676], [40618, 58677], [40623, 58678], [58679, 148324],
  8907. [40641, 58680], [15200, 58681], [14821, 58682], [15645, 58683],
  8908. [20274, 58684], [14270, 58685], [58686, 166955], [40706, 58687],
  8909. [40712, 58688], [19350, 58689], [37924, 58690], [58691, 159138],
  8910. [40727, 58692, 60836], 0, [40761, 58694], [22175, 58695], [22154, 58696],
  8911. [40773, 58697], [39352, 58698], [58699, 168075], [38898, 58700],
  8912. [33919, 58701], 0, [40809, 58703], [31452, 58704], [40846, 58705],
  8913. [29206, 58706], [19390, 58707], [58708, 149877], [58709, 149947],
  8914. [29047, 58710], [58711, 150008], [58712, 148296], [58713, 150097],
  8915. [29598, 58714], [58715, 166874], [58716, 137466], [31135, 58717],
  8916. [58718, 166270], [58719, 167478], [37737, 58720], [37875, 58721],
  8917. [58722, 166468], [37612, 58723], [37761, 58724], [37835, 58725],
  8918. [58726, 166252], [58727, 148665], [29207, 58728], [16107, 58729],
  8919. [30578, 58730], [31299, 58731], [28880, 58732], [58733, 148595],
  8920. [58734, 148472], [29054, 58735], [58736, 137199], [28835, 58737],
  8921. [58738, 137406], [58739, 144793], [16071, 58740], [58741, 137349],
  8922. [58742, 152623], [58743, 137208], [14114, 58744], [58745, 136955],
  8923. [58746, 137273], [14049, 58747], [58748, 137076], [58749, 137425],
  8924. [58750, 155467], [14115, 58751], [58752, 136896], [22363, 58753],
  8925. [58754, 150053], [58755, 136190], [58756, 135848], [58757, 136134],
  8926. [58758, 136374], [34051, 58759, 58761], [58760, 145062], 0, [33877, 58762],
  8927. [58763, 149908], [58764, 160101], [58765, 146993], [58766, 152924],
  8928. [58767, 147195], [58768, 159826], [17652, 58769], [58770, 145134],
  8929. [58771, 170397], [58772, 159526], [26617, 58773], [14131, 58774],
  8930. [15381, 58775], [15847, 58776], [22636, 58777], [58778, 137506],
  8931. [26640, 58779], [16471, 58780], [58781, 145215], [58782, 147681],
  8932. [58783, 147595], [58784, 147727], [58785, 158753], [21707, 58786],
  8933. [22174, 58787], [58788, 157361], [22162, 58789], [58790, 135135],
  8934. [58791, 134056], [58792, 134669], 0, [58794, 166675], [37788, 58795],
  8935. [20216, 58796], [20779, 58797], [14361, 58798], [58799, 148534],
  8936. [20156, 58800], [58801, 132197], 0, [20299, 58803], [20362, 58804],
  8937. [58805, 153169], [23144, 58806], [58807, 131499], [58808, 132043],
  8938. [14745, 58809], [58810, 131850], [58811, 132116], [13365, 58812],
  8939. [20265, 58813], [58814, 131776], [58815, 167603], [58816, 131701],
  8940. [35546, 58817], [58818, 131596], [20120, 58819], [20685, 58820],
  8941. [20749, 58821], [20386, 58822], [20227, 58823], [58824, 150030],
  8942. [58825, 147082], [20290, 58826], [20526, 58827], [20588, 58828],
  8943. [20609, 58829], [20428, 58830], [20453, 58831], [20568, 58832],
  8944. [20732, 58833], [28278, 58838], [58839, 144789], [58840, 147001],
  8945. [58841, 147135], [28018, 58842], [58843, 137348], [58844, 147081],
  8946. [20904, 58845], [20931, 58846], [58847, 132576], [17629, 58848],
  8947. [58849, 132259], [58850, 132242], [58851, 132241], [36218, 58852],
  8948. [58853, 166556], [58854, 132878], [21081, 58855], [21156, 58856],
  8949. [58857, 133235], [21217, 58858], 0, [18042, 58860], [29068, 58861],
  8950. [58862, 148364], [58863, 134176], [58864, 149932], [58865, 135396],
  8951. [27089, 58866], [58867, 134685], 0, [16094, 58869], [29849, 58870],
  8952. [29716, 58871], [29782, 58872], [29592, 58873], [19342, 58874],
  8953. [58875, 150204], [58876, 147597], [21456, 58877], [13700, 58878],
  8954. [29199, 58879], [58880, 147657], [21940, 58881], [58882, 131909],
  8955. [21709, 58883], [58884, 134086], [22301, 58885], [37469, 58886],
  8956. [38644, 58887], [22493, 58889], [22413, 58890], [22399, 58891],
  8957. [13886, 58892], [22731, 58893], [23193, 58894], [58895, 166470],
  8958. [58896, 136954], [58897, 137071], [58898, 136976], [23084, 58899],
  8959. [22968, 58900], [23166, 58902], [23247, 58903], [23058, 58904],
  8960. [58905, 153926], [58906, 137715], [58907, 137313], [58908, 148117],
  8961. [14069, 58909], [27909, 58910], [29763, 58911], [23073, 58912],
  8962. [58913, 155267], [23169, 58914], [58915, 166871], [58916, 132115],
  8963. [37856, 58917], [29836, 58918], [58919, 135939], [28933, 58920],
  8964. [18802, 58921], [37896, 58922], [58923, 166395], [37821, 58924],
  8965. [14240, 58925], [23582, 58926], [23710, 58927], [24158, 58928],
  8966. [24136, 58929], [58930, 137622], [58931, 137596], [58932, 146158],
  8967. [24269, 58933], [23375, 58934], [58935, 137475], [58936, 137476],
  8968. [14081, 58937], [58938, 137376], [14045, 58939], [58940, 136958],
  8969. [14035, 58941], [33066, 58942], [58943, 166471], [58944, 138682],
  8970. [58945, 144498], [58946, 166312], [24332, 58947, 60916], [24334, 58948],
  8971. [58949, 137511], [58950, 137131], [23147, 58951], [58952, 137019],
  8972. [23364, 58953], [58955, 161277], [34912, 58956], [24702, 58957],
  8973. [58958, 141408], [58959, 140843], [24539, 58960], [16056, 58961],
  8974. [58962, 140719], [58963, 140734], [58964, 168072], [58965, 159603],
  8975. [25024, 58966], [58967, 131134], [58968, 131142], [58969, 140827],
  8976. [24985, 58970], [24984, 58971], [24693, 58972], [58973, 142491],
  8977. [58974, 142599], [58975, 149204], [58976, 168269], [25713, 58977],
  8978. [58978, 149093], [58979, 142186], [14889, 58980], [58981, 142114],
  8979. [58982, 144464], [58983, 170218], [58984, 142968], [25399, 58985],
  8980. [25782, 58987], [25393, 58988], [25553, 58989], [58990, 149987],
  8981. [58991, 142695], [25252, 58992], [58993, 142497], [25659, 58994],
  8982. [25963, 58995], [26994, 58996], [15348, 58997], [58998, 143502],
  8983. [58999, 144045], [59000, 149897], [59001, 144043], [21773, 59002],
  8984. [59003, 144096], [59004, 137433], [59005, 169023], [26318, 59006],
  8985. [59007, 144009], [59008, 143795], [15072, 59009], [59011, 152964],
  8986. [59012, 166690], [59013, 152975], [59014, 136956], [59015, 152923],
  8987. [59016, 152613], [30958, 59017], [59018, 143619], [59019, 137258],
  8988. [59020, 143924], [13412, 59021], [59022, 143887], [59023, 143746],
  8989. [59024, 148169], [26254, 59025], [59026, 159012], [26219, 59027],
  8990. [19347, 59028], [26160, 59029], [59030, 161904], [59031, 138731],
  8991. [26211, 59032], [59033, 144082], [59034, 144097], [26142, 59035],
  8992. [59036, 153714], [14545, 59037], [59038, 145466], [59039, 145340],
  8993. [15257, 59040], [59041, 145314], [59042, 144382], [29904, 59043],
  8994. [15254, 59044], [59046, 149034], [26806, 59047], 0, [15300, 59049],
  8995. [27326, 59050], [59052, 145365], [59053, 148615], [27187, 59054],
  8996. [27218, 59055], [27337, 59056], [27397, 59057], [59058, 137490],
  8997. [25873, 59059], [26776, 59060], [27212, 59061], [15319, 59062],
  8998. [27258, 59063], [27479, 59064], [59065, 147392], [59066, 146586],
  8999. [37792, 59067], [37618, 59068], [59069, 166890], [59070, 166603],
  9000. [37513, 59071], [59072, 163870], [59073, 166364], [37991, 59074],
  9001. [28069, 59075], [28427, 59076], 0, [59079, 147327], [15759, 59080],
  9002. [28164, 59081], [59082, 147516], [23101, 59083], [28170, 59084],
  9003. [22599, 59085], [27940, 59086], [30786, 59087], [28987, 59088],
  9004. [59089, 148250], [59090, 148086], [28913, 59091], [29264, 59092, 61085],
  9005. [29319, 59093], [29332, 59094], [59095, 149391], [59096, 149285],
  9006. [20857, 59097], [59098, 150180], [59099, 132587], [29818, 59100],
  9007. [59101, 147192], [59102, 144991], [59103, 150090], [59104, 149783],
  9008. [59105, 155617], [16134, 59106], [16049, 59107], [59108, 150239],
  9009. [59109, 166947], [59110, 147253], [24743, 59111], [16115, 59112],
  9010. [29900, 59113], [29756, 59114], [37767, 59115], [29751, 59116],
  9011. [17567, 59117], [59118, 159210], [17745, 59119], [30083, 59120],
  9012. [16227, 59121], [59122, 150745], [59123, 150790], [16216, 59124],
  9013. [30037, 59125], [30323, 59126], [59127, 173510], 0, [29800, 59129, 61070],
  9014. [59130, 166604], [59131, 149931], [59132, 149902], [15099, 59133],
  9015. [15821, 59134], [59135, 150094], [16127, 59136], [59137, 149957],
  9016. [59138, 149747], [37370, 59139], [22322, 59140], [37698, 59141],
  9017. [59142, 166627], [59143, 137316], [20703, 59144], [59145, 152097],
  9018. [59146, 152039], [30584, 59147], [59148, 143922], [30478, 59149],
  9019. [30479, 59150], [30587, 59151], [59152, 149143], [59153, 145281],
  9020. [14942, 59154], [59155, 149744], [29752, 59156], [29851, 59157],
  9021. [16063, 59158], [59159, 150202], [59160, 150215], [16584, 59161],
  9022. [59162, 150166], [59163, 156078], [37639, 59164], [59165, 152961],
  9023. [30750, 59166], [30861, 59167], [30856, 59168], [30930, 59169],
  9024. [29648, 59170], [31065, 59171], [59172, 161601], [59173, 153315],
  9025. [16654, 59174], 0, 0, [31141, 59177], [27181, 59178], [59179, 147194],
  9026. [31290, 59180], [31220, 59181], [16750, 59182], [59183, 136934],
  9027. [16690, 59184], [37429, 59185], [31217, 59186], [59187, 134476],
  9028. [59188, 149900], [59189, 131737], [59190, 146874], [59191, 137070],
  9029. [13719, 59192], [21867, 59193], [13680, 59194], [13994, 59195],
  9030. [59196, 131540], [59197, 134157], [31458, 59198], [23129, 59199],
  9031. [59200, 141045], [59201, 154287], [59202, 154268], [23053, 59203],
  9032. [59204, 131675], [30960, 59205], [23082, 59206], [59207, 154566],
  9033. [31486, 59208], [16889, 59209], [31837, 59210], [31853, 59211],
  9034. [16913, 59212], [59213, 154547], [59214, 155324], [59215, 155302],
  9035. [31949, 59216], [59217, 150009], [59218, 137136], [31886, 59219],
  9036. [31868, 59220], [31918, 59221], [27314, 59222], [32220, 59223],
  9037. [32263, 59224], [32211, 59225], [32590, 59226], [59227, 156257],
  9038. [59228, 155996], [59229, 162632], [32151, 59230], [59231, 155266],
  9039. [17002, 59232], [59233, 158581], [59234, 133398], [26582, 59235],
  9040. [59236, 131150], [59237, 144847], [22468, 59238], [59239, 156690],
  9041. [59240, 156664], [32733, 59242], [31527, 59243], [59244, 133164],
  9042. [59245, 154345], [59246, 154947], [31500, 59247], [59248, 155150],
  9043. [39398, 59249], [34373, 59250], [39523, 59251], [27164, 59252],
  9044. [59253, 144447], [59255, 150007], [59256, 157101], [39455, 59257],
  9045. [59258, 157088], 0, [59260, 160039], [59261, 158929], [17642, 59262],
  9046. [33079, 59263], [17410, 59264], [32966, 59265], [33033, 59266],
  9047. [33090, 59267], [59268, 157620], [39107, 59269], [59270, 158274],
  9048. [33378, 59271], [33381, 59272], [59273, 158289], [33875, 59274],
  9049. [59275, 159143], [34320, 59276], [59277, 160283], [23174, 59278],
  9050. [16767, 59279], [59280, 137280], [23339, 59281], [59282, 137377],
  9051. [23268, 59283], [59284, 137432], [34464, 59285], [59286, 195004],
  9052. [59287, 146831], [34861, 59288], [59289, 160802], [23042, 59290],
  9053. [34926, 59291], [20293, 59292], [34951, 59293], [35007, 59294],
  9054. [35046, 59295], [35173, 59296], [35149, 59297], [59298, 153219],
  9055. [35156, 59299], [59300, 161669], [59301, 161668], [59302, 166901],
  9056. [59303, 166873], [59304, 166812], [59305, 166393], [16045, 59306],
  9057. [33955, 59307], [18165, 59308], [18127, 59309], [14322, 59310],
  9058. [35389, 59311], [35356, 59312], [59313, 169032], [24397, 59314],
  9059. [37419, 59315], [59316, 148100], [26068, 59317], [28969, 59318],
  9060. [28868, 59319], [59320, 137285], [40301, 59321], [35999, 59322],
  9061. [36073, 59323], [59324, 163292], [22938, 59325], [30659, 59326],
  9062. [23024, 59327], [14036, 59329], [36394, 59330], [36519, 59331],
  9063. [59332, 150537], [36656, 59333], [36682, 59334], [17140, 59335],
  9064. [27736, 59336], [28603, 59337], [59338, 140065], [18587, 59339],
  9065. [28537, 59340], [28299, 59341], [59342, 137178], [39913, 59343],
  9066. [14005, 59344], [59345, 149807], [37051, 59346], 0, [21873, 59348],
  9067. [18694, 59349], [37307, 59350], [37892, 59351], [59352, 166475],
  9068. [16482, 59353], [59354, 166652], [37927, 59355], [59356, 166941],
  9069. [59357, 166971], [34021, 59358], [35371, 59359], [38297, 59360],
  9070. [38311, 59361], [38295, 59362], [38294, 59363], [59364, 167220],
  9071. [29765, 59365], [16066, 59366], [59367, 149759], [59368, 150082],
  9072. [59369, 148458], [16103, 59370], [59371, 143909], [38543, 59372],
  9073. [59373, 167655], [59374, 167526], [59375, 167525], [16076, 59376],
  9074. [59377, 149997], [59378, 150136], [59379, 147438], [29714, 59380],
  9075. [29803, 59381], [16124, 59382], [38721, 59383], [59384, 168112],
  9076. [26695, 59385], [18973, 59386], [59387, 168083], [59388, 153567], 0,
  9077. [37736, 59390], [59391, 166281], [59392, 166950], [59393, 166703],
  9078. [59394, 156606], [37562, 59395], [23313, 59396], [35689, 59397],
  9079. [18748, 59398], [29689, 59399], [59400, 147995], [38811, 59401], 0,
  9080. [39224, 59403], [59404, 134950], [24001, 59405], [59406, 166853],
  9081. [59407, 150194], [38943, 59408], [59409, 169178], [37622, 59410],
  9082. [59411, 169431], [37349, 59412], [17600, 59413], [59414, 166736],
  9083. [59415, 150119], [59416, 166756], [39132, 59417], [59418, 166469],
  9084. [16128, 59419], [37418, 59420], [18725, 59421], [33812, 59422],
  9085. [39227, 59423], [39245, 59424], [59425, 162566], [15869, 59426], 0,
  9086. [19311, 59428], [39338, 59429], [39516, 59430], [59431, 166757],
  9087. [59432, 153800], [27279, 59433], [39457, 59434], [23294, 59435],
  9088. [39471, 59436], [59437, 170225], [19344, 59438], [59439, 170312],
  9089. [39356, 59440], [19389, 59441], [19351, 59442], [37757, 59443],
  9090. [22642, 59444], [59445, 135938], [22562, 59446], [59447, 149944],
  9091. [59448, 136424], [30788, 59449], [59450, 141087], [59451, 146872],
  9092. [26821, 59452], [15741, 59453], [37976, 59454], [14631, 59455],
  9093. [24912, 59456], [59457, 141185], [59458, 141675], [24839, 59459],
  9094. [40015, 59460], [40019, 59461], [40059, 59462], [39989, 59463],
  9095. [39952, 59464], [39807, 59465], [39887, 59466], [59467, 171565],
  9096. [39839, 59468], [59469, 172533], [59470, 172286], [40225, 59471],
  9097. [19630, 59472], [59473, 147716], [40472, 59474], [19632, 59475],
  9098. [40204, 59476], [59477, 172468], [59478, 172269], [59479, 172275],
  9099. [59480, 170287], [40357, 59481], [33981, 59482], [59483, 159250],
  9100. [59484, 159711], [59485, 158594], [34300, 59486], [17715, 59487],
  9101. [59488, 159140], [59489, 159364], [59490, 159216], [33824, 59491],
  9102. [34286, 59492], [59493, 159232], [59494, 145367], [59495, 155748],
  9103. [31202, 59496], [59497, 144796], [59498, 144960], [59500, 149982],
  9104. [15714, 59501], [37851, 59502], [37566, 59503], [37704, 59504],
  9105. [59505, 131775], [30905, 59506], [37495, 59507], [37965, 59508],
  9106. [20452, 59509], [13376, 59510], [36964, 59511], [59512, 152925],
  9107. [30781, 59513], [30804, 59514], [30902, 59515], [30795, 59516],
  9108. [59517, 137047], [59518, 143817], [59519, 149825], [13978, 59520],
  9109. [20338, 59521], [28634, 59522], [28633, 59523], 0, [28702, 59524, 59525],
  9110. [21524, 59526], [59527, 147893], [22459, 59528], [22771, 59529],
  9111. [22410, 59530], [40214, 59531], [22487, 59532], [28980, 59533],
  9112. [13487, 59534], [59535, 147884], [29163, 59536], [59537, 158784],
  9113. [59538, 151447], 0, [59540, 137141], [59541, 166473], [24844, 59542],
  9114. [23246, 59543], [23051, 59544], [17084, 59545], [59546, 148616],
  9115. [14124, 59547], [19323, 59548], [59549, 166396], [37819, 59550],
  9116. [37816, 59551], [59552, 137430], [59553, 134941], [33906, 59554],
  9117. [59555, 158912], [59556, 136211], [59557, 148218], [59558, 142374],
  9118. [59559, 148417], [22932, 59560], [59561, 146871], [59562, 157505],
  9119. [32168, 59563], [59564, 155995], [59565, 155812], [59566, 149945],
  9120. [59567, 149899], [59568, 166394], [37605, 59569], [29666, 59570],
  9121. [16105, 59571], [29876, 59572], [59573, 166755], [59574, 137375],
  9122. [16097, 59575], [59576, 150195], [27352, 59577], [29683, 59578],
  9123. [29691, 59579], [16086, 59580], [59581, 150078], [59582, 150164],
  9124. [59583, 137177], [59584, 150118], [59585, 132007], [59586, 136228],
  9125. [59587, 149989], [29768, 59588], [59589, 149782], [28837, 59590],
  9126. [59591, 149878], [37508, 59592], [29670, 59593], [37727, 59594],
  9127. [59595, 132350], [37681, 59596], [59597, 166606], [59598, 166422],
  9128. [37766, 59599], [59600, 166887], [59601, 153045], [18741, 59602],
  9129. [59603, 166530], [29035, 59604], [59605, 149827], [59606, 134399],
  9130. [22180, 59607], [59608, 132634], [59609, 134123], [59610, 134328],
  9131. [21762, 59611], [31172, 59612], [59613, 137210], [32254, 59614],
  9132. [59615, 136898], [59616, 150096], [59617, 137298], [17710, 59618],
  9133. [37889, 59619], [14090, 59620], [59621, 166592], [59622, 149933],
  9134. [22960, 59623], [59624, 137407], [59625, 137347], [59626, 160900],
  9135. [23201, 59627], [14050, 59628], [59629, 146779], [14000, 59630],
  9136. [37471, 59631], [23161, 59632], [59633, 166529], [59634, 137314],
  9137. [37748, 59635], [15565, 59636], [59637, 133812], [19094, 59638],
  9138. [14730, 59639], [20724, 59640], [15721, 59641], [15692, 59642],
  9139. [59643, 136092], [29045, 59644], [17147, 59645], [59646, 164376],
  9140. [28175, 59647], [59648, 168164], [17643, 59649], [27991, 59650],
  9141. [59651, 163407], [28775, 59652], [27823, 59653], [15574, 59654],
  9142. [59655, 147437], [59656, 146989], [28162, 59657], [28428, 59658],
  9143. [15727, 59659], [59660, 132085], [30033, 59661], [14012, 59662],
  9144. [13512, 59663], [18048, 59664], [16090, 59665], [18545, 59666],
  9145. [22980, 59667], [37486, 59668], [18750, 59669], [36673, 59670],
  9146. [59671, 166940], [59672, 158656], [22546, 59673], [22472, 59674],
  9147. [14038, 59675], [59676, 136274], [28926, 59677], [59678, 148322],
  9148. [59679, 150129], [59680, 143331], [59681, 135856], [59682, 140221],
  9149. [26809, 59683], [26983, 59684], [59685, 136088], [59686, 144613],
  9150. [59687, 162804], [59688, 145119], [59689, 166531], [59690, 145366],
  9151. [59691, 144378], [59692, 150687], [27162, 59693], [59694, 145069],
  9152. [59695, 158903], [33854, 59696], [17631, 59697], [17614, 59698],
  9153. [59699, 159014], [59700, 159057], [59701, 158850], [59702, 159710], 0, 0,
  9154. [33597, 59705], [59706, 137018], [33773, 59707], [59708, 158848],
  9155. [59709, 159827], [59710, 137179], [22921, 59711], [23170, 59712],
  9156. [59713, 137139], [23137, 59714], [23153, 59715], [59716, 137477],
  9157. [59717, 147964], [14125, 59718], [23023, 59719], [59720, 137020],
  9158. [14023, 59721], [29070, 59722], [37776, 59723], [26266, 59724],
  9159. [59725, 148133], [23150, 59726], [23083, 59727], [59728, 148115],
  9160. [27179, 59729], [59730, 147193], [59731, 161590], [59732, 148571],
  9161. [59733, 148170], [28957, 59734], [59735, 148057], [59736, 166369],
  9162. [20400, 59737], [59738, 159016], [23746, 59739], [59740, 148686],
  9163. [59741, 163405], [59742, 148413], [27148, 59743], [59744, 148054],
  9164. [59745, 135940], 0, [28979, 59747], [59748, 148457], [15781, 59749],
  9165. [27871, 59750], [59751, 194597], [23019, 59754], [24412, 59757],
  9166. [59764, 144128], [31955, 59776], [59783, 162548], [59786, 153334],
  9167. [59790, 162584], [36972, 59791], [33270, 59795], [30476, 59797],
  9168. [27810, 59799], [22269, 59800], [22633, 59828], [26465, 59832],
  9169. [23646, 59838], [22770, 59841], [28857, 59843], [26627, 59853],
  9170. [36795, 59859], [36796, 59861], [20001, 59871], [31545, 59898],
  9171. [15820, 59902], [29482, 57990, 59909], [30048, 59912], [22586, 59920],
  9172. [33446, 59932], [27018, 59940], [24803, 59944], [20206, 59984],
  9173. [39364, 60002], [40639, 60023], [21249, 60025], [26528, 60038],
  9174. [24808, 60046], [20916, 60053], [31363, 60064], [39994, 60075],
  9175. [31432, 60093], [26906, 60098], [22956, 60100], [22592, 60102],
  9176. [21610, 60114], [24807, 60123], [22138, 60125], [26965, 60132],
  9177. [39983, 60133], [34725, 60134], [23584, 60141], [24075, 60143],
  9178. [26398, 60147], [33965, 60157], [35713, 60161], [20088, 60166],
  9179. [25283, 60176], [26709, 60180], 0, [33533, 60190], [35237, 60194],
  9180. [36768, 60196], [38840, 60198], [38983, 60200], [39613, 60201],
  9181. [24497, 60218], [26184, 60219], [26303, 60220], [60221, 162425], 0,
  9182. [60225, 149946], 0, 0, [60230, 131910], [26382, 60232], [26904, 60233],
  9183. [60235, 161367], [60236, 155618], [60239, 161278], [60240, 139418],
  9184. [18640, 60241], [19128, 60242], [60244, 166554], [60247, 147515],
  9185. [60250, 150085], [60251, 132554], [20946, 60252], [60253, 132625],
  9186. [22943, 60254], [60255, 138920], [15294, 60256], [60257, 146687],
  9187. [14747, 60262], [60264, 165352], [60265, 170441], [14178, 60266],
  9188. [60267, 139715], [35678, 60268], [60269, 166734], 0, [29193, 60274],
  9189. [60276, 134264], [60280, 132985], [36570, 60281], [21135, 60283],
  9190. [29041, 60285], [60288, 147274], [60289, 150183], [21948, 60290],
  9191. [60293, 158546], [13427, 60295], [60297, 161330], [18200, 60299],
  9192. [60303, 149823], [20582, 60305], [13563, 60306], [60307, 144332], 0,
  9193. [18300, 60310], [60311, 166216], [60315, 138640], 0, [60320, 162834],
  9194. [36950, 60321], [60323, 151450], [35682, 60324], [23899, 60327],
  9195. [60328, 158711], 0, [60331, 137500], [35562, 60332], [60333, 150006],
  9196. [60335, 147439], [19392, 60337], [60340, 141083], [37989, 60341],
  9197. [60342, 153569], [24981, 60343], [23079, 60344], [60345, 194765], 0,
  9198. [60348, 148769], [20074, 60350], [60351, 149812], [38486, 60352],
  9199. [28047, 60353], [60354, 158909], [35191, 60356], [60359, 156689], 0,
  9200. [31554, 60363], [60364, 168128], [60365, 133649], 0, [31301, 60369],
  9201. [39462, 60372], [13919, 60374], [60375, 156777], [60376, 131105],
  9202. [31107, 60377], [23852, 60380], [60381, 144665], 0, [18128, 60384],
  9203. [30011, 60386], [34917, 60387], [22710, 60389], [14108, 60390],
  9204. [60391, 140685], [15444, 60394], [37505, 60397], [60398, 139642],
  9205. [37680, 60400], [60402, 149968], [27705, 60403], [60406, 134904],
  9206. [34855, 60407], [35061, 60408], [60409, 141606], [60410, 164979],
  9207. [60411, 137137], [28344, 60412], [60413, 150058], [60414, 137248],
  9208. [14756, 60415], 0, 0, [17727, 60419], [26294, 60420], [60421, 171181],
  9209. [60422, 170148], [35139, 60423], [16607, 60427], [60428, 136714],
  9210. [14753, 60429], [60430, 145199], [60431, 164072], [60432, 136133],
  9211. [29101, 60433], [33638, 60434], [60436, 168360], 0, [19639, 60438],
  9212. [60439, 159919], [60440, 166315], [60445, 147834], [31555, 60446],
  9213. [31102, 60447], [28597, 60449], [60450, 172767], [27139, 60451],
  9214. [60452, 164632], [21410, 60453], [60454, 159239], [37823, 60455],
  9215. [26678, 60456], [38749, 59389, 60457], [60458, 164207], [60460, 158133],
  9216. [60461, 136173], [60462, 143919], [23941, 60464], [60465, 166960],
  9217. [22293, 60467], [38947, 60468], [60469, 166217], [23979, 60470],
  9218. [60471, 149896], [26046, 60472], [27093, 60473], [21458, 60474],
  9219. [60475, 150181], [60476, 147329], [15377, 60477], [26422, 60478],
  9220. [60482, 139169], [13770, 60490], [18682, 60493], 0, [30728, 60496],
  9221. [37461, 60497], [17394, 60499], [17375, 60501], [23032, 60505], 0,
  9222. [22155, 60518], [60520, 169449], [36882, 60541], [21953, 60546],
  9223. [17673, 60551], [32383, 60552], [28502, 60553], [27313, 60554],
  9224. [13540, 60556], [60558, 161949], [14138, 60559], 0, [60562, 163876],
  9225. [60565, 162366], [15851, 60567], [60569, 146615], [60574, 156248],
  9226. [22207, 60575], [36366, 60577], [23405, 60578], [25566, 60581], 0,
  9227. [25904, 60585], [22061, 60586], [21530, 60588], [60591, 171416],
  9228. [19581, 60592], [22050, 60593], [22046, 60594], [32585, 60595],
  9229. [22901, 60597], [60598, 146752], [34672, 60599], [33047, 60604],
  9230. [40286, 60605], [36120, 60606], [30267, 60607], [40005, 60608],
  9231. [30286, 60609], [30649, 60610], [37701, 60611], [21554, 60612],
  9232. [33096, 60613], [33527, 60614], [22053, 60615], [33074, 60616],
  9233. [33816, 60617], [32957, 60618], [21994, 60619], [31074, 60620],
  9234. [22083, 60621], [21526, 60622], [60623, 134813], [13774, 60624],
  9235. [22021, 57509, 60625], [22001, 60626], [26353, 60627], [60628, 164578],
  9236. [13869, 60629], [30004, 60630], [22000, 60631], [21946, 60632],
  9237. [21655, 60633], [21874, 60634], [60635, 134209], [60636, 134294],
  9238. [24272, 57652, 60637], [60639, 134774], [60640, 142434], [60641, 134818],
  9239. [40619, 60642], [32090, 60643], 0, [60645, 135285], [25245, 60646],
  9240. [38765, 60647], [21652, 60648], [36045, 60649], [29174, 60650],
  9241. [37238, 60651], [25596, 60652], [25529, 60653], [25598, 60654],
  9242. [21865, 60655], [60656, 142147], [40050, 60657], [60658, 143027],
  9243. [20890, 60659], [13535, 60660], [60661, 134567], [20903, 60662],
  9244. [21581, 60663], [21790, 60664], [21779, 60665], [30310, 60666],
  9245. [36397, 60667], [60668, 157834], [30129, 60669], [32950, 60670],
  9246. [34820, 60671], 0, [35015, 60673], [33206, 60674], [33820, 60675],
  9247. [17644, 60677], [29444, 60678], [33547, 60681], [22139, 60683],
  9248. [37232, 60690], [37384, 60692], [60696, 134905], [29286, 60697],
  9249. [18254, 60699], [60701, 163833], [16634, 60703], [40029, 60704],
  9250. [25887, 60705], [18675, 60707], [60708, 149472], [60709, 171388], 0,
  9251. [60713, 161187], 60715, [60716, 155720], [29091, 60718], [32398, 60719],
  9252. [40272, 60720], [13687, 60723], [27826, 60725], [21351, 60726],
  9253. [14812, 60728], [60731, 149016], [33325, 60734], [21579, 60735], 60739,
  9254. [14930, 60740], [29556, 60742], [60743, 171692], [19721, 60744],
  9255. [39917, 60745], 0, [19547, 60748], [60751, 171998], [33884, 60752],
  9256. [60754, 160434], [25390, 60757], [32037, 60758], [14890, 60761],
  9257. [36872, 60762], [21196, 60763], [15988, 60764], [13946, 60765],
  9258. [17897, 60766], [60767, 132238], [30272, 60768], [23280, 60769],
  9259. [60770, 134838], [30842, 60771], [18358, 60772], [22695, 60773],
  9260. [16575, 60774], [22140, 60775], [39819, 60776], [23924, 60777],
  9261. [30292, 60778], [60779, 173108], [40581, 60780], [19681, 60781], 0,
  9262. [14331, 60783], [24857, 60784], [60786, 148466], 60787, [22109, 60788],
  9263. [60792, 171526], [21044, 60793], [13741, 60795], 0, [40316, 60797],
  9264. [31830, 60798], [39737, 60799], [22494, 60800], [23635, 60802],
  9265. [25811, 60803], [60804, 169168], [60805, 156469], [34477, 60807],
  9266. [60808, 134440], [60811, 134513], 60812, [20990, 60813], [60814, 139023],
  9267. [23950, 60815], [38659, 60816], [60817, 138705], [40577, 60818],
  9268. [36940, 60819], [31519, 60820], [39682, 60821], [23761, 60822],
  9269. [31651, 60823], [25192, 60824], [25397, 60825], [39679, 60826],
  9270. [31695, 60827], [39722, 60828], [31870, 60829], 0, [31810, 60831],
  9271. [31878, 60832], [39957, 60833], [31740, 60834], [39689, 60835], 0, 39982,
  9272. [40794, 60839], [21875, 60840], [23491, 60841], [20477, 60842],
  9273. [40600, 60843], [20466, 60844], [21088, 60845], [21201, 60847],
  9274. [22375, 60848], [20566, 60849], [22967, 60850], [24082, 60851],
  9275. [38856, 60852], [40363, 60853], [36700, 60854], [21609, 60855],
  9276. [38836, 60856], [39232, 60857], [38842, 60858], [21292, 60859],
  9277. [24880, 60860], [26924, 60861], [21466, 60862], [39946, 60863],
  9278. [40194, 60864], [19515, 60865], [38465, 60866], [27008, 60867],
  9279. [20646, 60868], [30022, 60869], [60870, 137069], [39386, 60871],
  9280. [21107, 60872], 60873, [37209, 60874], [38529, 60875], [37212, 60876],
  9281. 60877, [37201, 60878], [60879, 167575], [25471, 60880], [27338, 60882],
  9282. [22033, 60883], [37262, 60884], [30074, 60885], [25221, 60886],
  9283. [29519, 60888], [31856, 60889], [60890, 154657], 60892, [30422, 60894],
  9284. [39837, 60895], [20010, 60896], [60897, 134356], [33726, 60898],
  9285. [34882, 60899], 60900, [23626, 60901], [27072, 60902], 0, 0,
  9286. [21023, 60905], [24053, 60906], [20174, 60907], [27697, 60908],
  9287. [60909, 131570], [20281, 60910], [21660, 60911], 0, [21146, 60913],
  9288. [36226, 60914], [13822, 60915], 0, [13811, 60917], 60918, [27474, 60919],
  9289. [37244, 60920], [40869, 60921], [39831, 60922], [38958, 60923],
  9290. [39092, 60924], [39610, 60925], [40616, 60926], [40580, 60927],
  9291. [31508, 60929], 60930, [27642, 60931], [34840, 60932], [32632, 60933],
  9292. 60934, [22048, 60935], [60936, 173642], [36471, 60937], [40787, 60938],
  9293. 60939, [36308, 60940], [36431, 60941], [40476, 60942], [36353, 60943],
  9294. [25218, 60944], [60945, 164733], [36392, 60946], [36469, 60947],
  9295. [31443, 60948], [31294, 60950], [30936, 60951], [27882, 60952],
  9296. [35431, 60953], [30215, 60954], [40742, 60956], [27854, 60957],
  9297. [34774, 60958], [30147, 60959], [60960, 172722], [30803, 60961],
  9298. [36108, 60963], [29410, 60964], [29553, 60965], [35629, 60966],
  9299. [29442, 60967], [29937, 60968], [36075, 60969], [60970, 150203],
  9300. [34351, 60971], [24506, 60972], [34976, 60973], [17591, 60974], 60975,
  9301. [60977, 159237], 60978, [35454, 60979], [60980, 140571], 60981,
  9302. [24829, 60982], [30311, 60983], [39639, 60984], [40260, 60985],
  9303. [37742, 58859, 60986], [39823, 60987], [34805, 60988], 60989, 0,
  9304. [36087, 60991], [29484, 60992], [38689, 60993], [39856, 60994],
  9305. [13782, 60995], [29362, 60996], [19463, 60997], [31825, 60998],
  9306. [39242, 60999], [24921, 61001], [19460, 61002], [40598, 61003],
  9307. [24957, 61004], 61005, [22367, 61006], [24943, 61007], [25254, 61008],
  9308. [25145, 61009], 0, [14940, 61011], [25058, 61012], [21418, 61013],
  9309. [25444, 61015], [26626, 61016], [13778, 61017], [23895, 61018],
  9310. [36826, 61020], [61021, 167481], 61022, [20697, 61023], [30982, 61025],
  9311. [21298, 61026], [38456, 61027], [61028, 134971], [16485, 61029], 61030,
  9312. [30718, 61031], 61032, [31938, 61033], [61034, 155418], [31962, 61035],
  9313. [31277, 61036], [32870, 61037], [32867, 61038], [32077, 61039],
  9314. [29957, 61040], [29938, 61041], [35220, 61042], [33306, 61043],
  9315. [26380, 61044], [32866, 61045], [61046, 160902], [32859, 61047],
  9316. [29936, 61048], [33027, 61049], [30500, 61050], [35209, 61051],
  9317. [61052, 157644], [30035, 61053], [34729, 61055], [34766, 61056],
  9318. [33224, 61057], [34700, 61058], [35401, 61059], [36013, 61060],
  9319. [35651, 61061], [30507, 61062], [29944, 61063], [34010, 61064],
  9320. [27058, 61066], [36262, 61067], 61068, [35241, 58392, 61069], 0,
  9321. [28089, 61071], [34753, 61072], [61073, 147473], [29927, 61074],
  9322. [15835, 61075], [29046, 61076], [24740, 57702, 61077], [24988, 61078],
  9323. [15569, 61079], 0, [24695, 61081], 61082, [32625, 61083], 0,
  9324. [24809, 61086], [19326, 61087], [57344, 132423], [37595, 57345],
  9325. [57346, 132575], [57347, 147397], [34124, 57348], [17077, 57349],
  9326. [29679, 57350], [20917, 57351], [13897, 57352], [57353, 149826],
  9327. [57354, 166372], [37700, 57355], [57356, 137691], [33518, 57357],
  9328. [57358, 146632], [30780, 57359], [26436, 57360], [25311, 57361],
  9329. [57362, 149811], [57363, 166314], [57364, 131744], [57365, 158643],
  9330. [57366, 135941], [20395, 57367], [57368, 140525], [20488, 57369],
  9331. [57370, 159017], [57371, 162436], [57372, 144896], [57373, 150193],
  9332. [57374, 140563], 0, [57376, 131966], [24484, 57377], [57378, 131968],
  9333. [57379, 131911], [28379, 57380], [57381, 132127], 20702, [20737, 57383],
  9334. [13434, 57384], [20750, 57385], [39020, 57386], [14147, 57387],
  9335. [33814, 57388], [57389, 149924], [57390, 132231], [20832, 57391],
  9336. [57392, 144308], [20842, 57393], [57394, 134143], [57395, 139516],
  9337. [57396, 131813], [57397, 140592], [57398, 132494], [57399, 143923],
  9338. [57400, 137603], [23426, 57401], [34685, 57402], [57403, 132531],
  9339. [57404, 146585], [20914, 57405], [20920, 57406], [40244, 57407],
  9340. [20937, 57408], [20943, 57409], [20945, 57410], [15580, 57411],
  9341. [20947, 57412], [57413, 150182], [20915, 57414], 0, 0, [20973, 57417],
  9342. [33741, 57418], [26942, 57419], [57420, 145197], [24443, 57421],
  9343. [21003, 57422], [21030, 57423], [21052, 57424], [21173, 57425],
  9344. [21079, 57426], [21140, 57427], [21177, 57428], [21189, 57429],
  9345. [31765, 57430], [34114, 57431], [21216, 57432], [34317, 57433],
  9346. [57434, 158483], 0, [57436, 166622], [21833, 57437], [28377, 57438],
  9347. [57439, 147328], [57440, 133460], [57441, 147436], [21299, 57442], 0,
  9348. [57444, 134114], [27851, 57445], [57446, 136998], [26651, 57447],
  9349. [29653, 57448], [24650, 57449], [16042, 57450], [14540, 57451],
  9350. [57452, 136936], [29149, 57453], [17570, 57454], [21357, 57455],
  9351. [21364, 57456], [57457, 165547], [21374, 57458], 0, [57460, 136598],
  9352. [57461, 136723], [30694, 57462], [21395, 57463], [57464, 166555],
  9353. [21408, 57465], [21419, 57466], [21422, 57467], [29607, 57468],
  9354. [57469, 153458], [16217, 57470], [29596, 57471], [21441, 57472],
  9355. [21445, 57473], [27721, 57474], [20041, 57475], [22526, 57476],
  9356. [21465, 57477], [15019, 57478], [57479, 134031], [21472, 57480],
  9357. [57481, 147435], [57482, 142755], [21494, 57483], [57484, 134263],
  9358. [21523, 57485], [28793, 57486], [21803, 57487], [26199, 57488],
  9359. [27995, 57489], [21613, 57490], [57491, 158547], [57492, 134516],
  9360. [21853, 57493], [21647, 57494], [21668, 57495], [18342, 57496],
  9361. [57497, 136973], [57498, 134877], [15796, 57499], [57500, 134477],
  9362. [57501, 166332], [57502, 140952], [21831, 57503], [19693, 57504],
  9363. [21551, 57505], [29719, 57506], [21894, 57507], [21929, 57508], 0,
  9364. [57510, 137431], [57511, 147514], [17746, 57512], [57513, 148533],
  9365. [26291, 57514], [57515, 135348], [22071, 57516], [26317, 57517],
  9366. [57518, 144010], [26276, 57519], 0, [22093, 57521], [22095, 57522],
  9367. [30961, 57523], [22257, 57524], [38791, 57525], [21502, 57526],
  9368. [22272, 57527], [22255, 57528], [22253, 57529], [57530, 166758],
  9369. [13859, 57531], [57532, 135759], [22342, 57533], [57534, 147877],
  9370. [27758, 57535], [28811, 57536], [22338, 57537], [14001, 57538],
  9371. [57539, 158846], [22502, 57540], [57541, 136214], [22531, 57542],
  9372. [57543, 136276], [57544, 148323], [22566, 57545], [57546, 150517], 0,
  9373. [22698, 57548], [13665, 57549], [22752, 57550], [22748, 57551],
  9374. [57552, 135740], [22779, 57553], [23551, 57554], [22339, 57555],
  9375. [57556, 172368], [57557, 148088], [37843, 57558], [13729, 57559],
  9376. [22815, 57560], [26790, 57561], [14019, 57562], [28249, 57563],
  9377. [57564, 136766], [23076, 57565], 0, [57567, 136850], [34053, 57568],
  9378. [22985, 57569], [57570, 134478], [57571, 158849], [57572, 159018],
  9379. [57573, 137180], [23001, 57574], [57575, 137211], [57576, 137138],
  9380. [57577, 159142], [28017, 57578], [57579, 137256], [57580, 136917],
  9381. [23033, 57581], [57582, 159301], [23211, 57583], [23139, 57584],
  9382. [14054, 57585], [57586, 149929], 0, [14088, 57588], [23190, 57589],
  9383. [29797, 57590], [23251, 57591], [57592, 159649], [57593, 140628],
  9384. [57595, 137489], [14130, 57596], [57597, 136888], [24195, 57598],
  9385. [21200, 57599], [23414, 57600], [25992, 57601], [23420, 57602],
  9386. [57603, 162318], [16388, 57604], [18525, 57605], [57606, 131588],
  9387. [23509, 57607], [57609, 137780], [57610, 154060], [57611, 132517],
  9388. [23539, 57612], [23453, 57613], [19728, 57614], [23557, 57615],
  9389. [57616, 138052], [23571, 57617], [29646, 57618], [23572, 57619],
  9390. [57620, 138405], [57621, 158504], [23625, 57622], [18653, 57623],
  9391. [23685, 57624], [23785, 57625], [23791, 57626], [23947, 57627],
  9392. [57628, 138745], [57629, 138807], [23824, 57630], [23832, 57631],
  9393. [23878, 57632], [57633, 138916], [23738, 57634], [24023, 57635],
  9394. [33532, 57636], [14381, 57637], [57638, 149761], [57639, 139337],
  9395. [57640, 139635], [33415, 57641], [14390, 57642], [15298, 57643],
  9396. [24110, 57644], [27274, 57645], 0, 57647, [57648, 148668], [57649, 134355],
  9397. [21414, 57650], [20151, 57651], 0, [21416, 57653], [57654, 137073],
  9398. [24073, 57655], 57656, [57657, 164994], [24313, 57658], [24315, 57659],
  9399. [14496, 57660], [24316, 57661], [26686, 57662], [37915, 57663],
  9400. [24333, 57664], [57665, 131521], [57666, 194708], [15070, 57667],
  9401. [57669, 135994], [24378, 57670], [57671, 157832], [57672, 140240],
  9402. [57674, 140401], [24419, 57675], [57677, 159342], [24434, 57678],
  9403. [37696, 57679], [57680, 166454], [24487, 57681], [23990, 57682],
  9404. [15711, 57683], [57684, 152144], [57685, 139114], [57686, 159992],
  9405. [57687, 140904], [37334, 57688], [57689, 131742], [57690, 166441],
  9406. [24625, 57691], [26245, 57692], [14691, 57694], [15815, 57695],
  9407. [13881, 57696], [22416, 57697], [57698, 141236], [31089, 57699],
  9408. [15936, 57700], [24734, 57701], 0, 0, [57704, 149890], [57705, 149903],
  9409. [57706, 162387], [29860, 57707], [20705, 57708], [23200, 57709],
  9410. [24932, 57710], [24898, 57712], [57713, 194726], [57714, 159442],
  9411. [24961, 57715], [20980, 57716], [57717, 132694], [24967, 57718],
  9412. [23466, 57719], [57720, 147383], [57721, 141407], [25043, 57722],
  9413. [57723, 166813], [57724, 170333], [25040, 57725], [14642, 57726],
  9414. [57727, 141696], [57728, 141505], [24611, 57729], [24924, 57730],
  9415. [25886, 57731], [25483, 57732], [57733, 131352], [25285, 57734],
  9416. [57735, 137072], [25301, 57736], [57737, 142861], [25452, 57738],
  9417. [57739, 149983], [14871, 57740], [25656, 57741], [25592, 57742],
  9418. [57743, 136078], [57744, 137212], [28554, 57746], [57747, 142902], 0,
  9419. [57750, 153373], [25825, 57751], [25829, 57752], [38011, 57753],
  9420. [14950, 57754], [25658, 57755], [14935, 57756], [25933, 57757],
  9421. [28438, 57758], [57759, 150056], [57760, 150051], [25989, 57761],
  9422. [25965, 57762], [25951, 57763], 0, [26037, 57765], [57766, 149824],
  9423. [19255, 57767], [26065, 57768], [16600, 57769], [57770, 137257], 57771,
  9424. [26083, 57772], [24543, 57773], [57774, 144384], [26136, 57775],
  9425. [57776, 143863], [57777, 143864], [26180, 57778], [57779, 143780],
  9426. [57780, 143781], [26187, 57781], [57782, 134773], [26215, 57783],
  9427. [57784, 152038], [26227, 57785], 0, [57788, 143921], [57789, 165364],
  9428. [57790, 143816], [57791, 152339], [30661, 57792], [57793, 141559],
  9429. [39332, 57794], [26370, 57795], [57796, 148380], [57797, 150049],
  9430. [27130, 57799], [57800, 145346], 0, [26471, 57802], [26466, 57803],
  9431. [57804, 147917], [57805, 168173], [26583, 57806], [17641, 57807],
  9432. [26658, 57808], [28240, 57809], [37436, 57810], [26625, 57811],
  9433. [57812, 144358], [57813, 159136], [26717, 57814], [57815, 144495],
  9434. [27105, 57816], [27147, 57817], [57818, 166623], [26995, 57819],
  9435. [26819, 57820], [57821, 144845], [26881, 57822], [26880, 57823],
  9436. [14849, 57825], [57826, 144956], [15232, 57827], [26540, 57828],
  9437. [26977, 57829], [57830, 166474], [17148, 57831], [26934, 57832],
  9438. [27032, 57833], [15265, 57834], [57835, 132041], [33635, 57836],
  9439. [20624, 57837], [27129, 57838], [57839, 144985], [57840, 139562],
  9440. [27205, 57841], [57842, 145155], [27293, 57843], [15347, 57844],
  9441. [26545, 57845], [27336, 57846], [57847, 168348], [15373, 57848],
  9442. [27421, 57849], [57850, 133411], [24798, 57851, 60308], [27445, 57852],
  9443. [27508, 57853], [57854, 141261], [28341, 57855], [57856, 146139], 0,
  9444. [57858, 137560], [14144, 57859], [21537, 57860], [57861, 146266],
  9445. [27617, 57862], [57863, 147196], [27612, 57864], [27703, 57865],
  9446. [57866, 140427], [57867, 149745], [57868, 158545], [27738, 57869],
  9447. [33318, 57870], [27769, 57871], [57872, 146876], [17605, 57873],
  9448. [57874, 146877], [57875, 147876], [57876, 149772], [57877, 149760],
  9449. [57878, 146633], [14053, 57879], [15595, 57880], [57881, 134450],
  9450. [39811, 57882], [57883, 143865], [57884, 140433], [32655, 57885],
  9451. [26679, 57886], [57887, 159013], [57888, 159137], [57889, 159211],
  9452. [28054, 57890], [27996, 57891], [28284, 57892], [28420, 57893],
  9453. [57894, 149887], [57895, 147589], [57896, 159346], [34099, 57897],
  9454. [57898, 159604], [20935, 57899], 0, 0, [33838, 57902], [57903, 166689], 0,
  9455. [57905, 146991], [29779, 57906], [57907, 147330], [31180, 57908],
  9456. [28239, 57909], [23185, 57910], [57911, 143435], [28664, 57912],
  9457. [14093, 57913], [28573, 57914], [57915, 146992], [28410, 57916],
  9458. [57917, 136343], [57918, 147517], [17749, 57919], [37872, 57920],
  9459. [28484, 57921], [28508, 57922], [15694, 57923], [28532, 57924],
  9460. [57925, 168304], [15675, 57926], [28575, 57927], [57928, 147780],
  9461. [28627, 57929], [57930, 147601], [57931, 147797], [57932, 147513],
  9462. [57933, 147440], [57934, 147380], [57935, 147775], [20959, 57936],
  9463. [57937, 147798], [57938, 147799], [57939, 147776], [57940, 156125],
  9464. [28747, 57941], [28798, 57942], [28839, 57943], 0, [28876, 57945],
  9465. [28885, 57946], [28886, 57947], [28895, 57948], [16644, 57949],
  9466. [15848, 57950], [29108, 57951], [29078, 57952], [57953, 148087],
  9467. [28971, 57954], [28997, 57955], [23176, 57956], [29002, 57957], 0,
  9468. [57960, 148325], [29007, 57961], [37730, 57962], [57963, 148161],
  9469. [28972, 57964], [57965, 148570], [57966, 150055], [57967, 150050],
  9470. [29114, 57968], [57969, 166888], [28861, 57970], [29198, 57971],
  9471. [37954, 57972], [29205, 57973], [22801, 57974], [37955, 57975],
  9472. [29220, 57976], [37697, 57977], [57978, 153093], [29230, 57979],
  9473. [29248, 57980], [57981, 149876], [26813, 57982], [29269, 57983],
  9474. [29271, 57984], [15957, 57985], [57986, 143428], [26637, 57987],
  9475. [28477, 57988], [29314, 57989], 0, [29483, 57991], [57992, 149539],
  9476. [57993, 165931], [18669, 57994], [57995, 165892], [29480, 57996],
  9477. [29486, 57997], [29647, 57998], [29610, 57999], [58000, 134202],
  9478. [58001, 158254], [29641, 58002], [29769, 58003], [58004, 147938],
  9479. [58005, 136935], [58006, 150052], [26147, 58007], [14021, 58008],
  9480. [58009, 149943], [58010, 149901], [58011, 150011], [29687, 58012],
  9481. [29717, 58013], [26883, 58014], [58015, 150054], [29753, 58016],
  9482. [16087, 58018], 0, [58020, 141485], [29792, 58021], [58022, 167602],
  9483. [29767, 58023], [29668, 58024], [29814, 58025], [33721, 58026],
  9484. [29804, 58027], [29812, 58029], [37873, 58030], [27180, 58031],
  9485. [29826, 58032], [18771, 58033], [58034, 150156], [58035, 147807],
  9486. [58036, 150137], [58037, 166799], [23366, 58038], [58039, 166915],
  9487. [58040, 137374], [29896, 58041], [58042, 137608], [29966, 58043],
  9488. [29982, 58045], [58046, 167641], [58047, 137803], [23511, 58048],
  9489. [58049, 167596], [37765, 58050], [30029, 58051], [30026, 58052],
  9490. [30055, 58053], [30062, 58054], [58055, 151426], [16132, 58056],
  9491. [58057, 150803], [30094, 58058], [29789, 58059], [30110, 58060],
  9492. [30132, 58061], [30210, 58062], [30252, 58063], [30289, 58064],
  9493. [30287, 58065], [30319, 58066], 58067, [58068, 156661], [30352, 58069],
  9494. [33263, 58070], [14328, 58071], [58072, 157969], [58073, 157966],
  9495. [30369, 58074], [30373, 58075], [30391, 58076], [30412, 58077],
  9496. [58078, 159647], [33890, 58079], [58080, 151709], [58081, 151933],
  9497. [58082, 138780], [30494, 58083], [30502, 58084], [30528, 58085],
  9498. [25775, 58086], [58087, 152096], [30552, 58088], [58089, 144044],
  9499. [30639, 58090], [58091, 166244], [58092, 166248], [58093, 136897],
  9500. [30708, 58094], 0, [26826, 58098], [30895, 58099], [30919, 58100],
  9501. [30931, 58101], [38565, 58102], [31022, 58103], [58104, 153056],
  9502. [30935, 58105], [31028, 58106], [30897, 58107], [58108, 161292],
  9503. [36792, 58109], [34948, 58110], [58113, 140828], [31110, 58114],
  9504. [35072, 58115], [26882, 58116], [31104, 58117], [58118, 153687],
  9505. [31133, 58119], [58120, 162617], [31036, 58121], [31145, 58122],
  9506. [28202, 58123], [58124, 160038], [16040, 58125], [31174, 58126],
  9507. [58127, 168205], [31188, 58128], 0, [21797, 62526], 0, [62528, 134210],
  9508. [62529, 134421], [62530, 151851], [21904, 62531], [62532, 142534],
  9509. [14828, 62533], [62534, 131905], [36422, 62535], [62536, 150968],
  9510. [62537, 169189], 0, [62539, 164030], [30586, 62540], [62541, 142392],
  9511. [14900, 62542], [18389, 62543], [62544, 164189], [62545, 158194],
  9512. [62546, 151018], [25821, 62547], [62548, 134524], [62549, 135092],
  9513. [62550, 134357], 0, [25741, 62552], [36478, 62553], [62554, 134806], 0,
  9514. [62556, 135012], [62557, 142505], [62558, 164438], [62559, 148691], 0,
  9515. [62561, 134470], [62562, 170573], [62563, 164073], [18420, 62564],
  9516. [62565, 151207], [62566, 142530], [39602, 62567], [14951, 62568],
  9517. [62569, 169460], [16365, 62570], [13574, 62571], [62572, 152263],
  9518. [62573, 169940], 0, [62575, 142660], [40302, 62576], [38933, 62577], 0,
  9519. [17369, 62579], 0, [25780, 62581], [21731, 62582], 0, [62584, 142282], 0,
  9520. [14843, 62586], 0, [62588, 157402], [62589, 157462], [62590, 162208],
  9521. [25834, 62591], [62592, 151634], [62593, 134211], [36456, 62594], 0,
  9522. [62596, 166732], [62597, 132913], 0, [18443, 62599], [62600, 131497],
  9523. [16378, 62601], [22643, 62602], [62603, 142733], 0, [62605, 148936],
  9524. [62606, 132348], [62607, 155799], [62608, 134988], 0, [21881, 62610], 0,
  9525. [17338, 62612], 0, [19124, 62614], [62615, 141926], [62616, 135325],
  9526. [33194, 62617], [39157, 62618], [62619, 134556], [25465, 62620],
  9527. [14846, 62621], [62622, 141173], [36288, 62623], [22177, 62624],
  9528. [25724, 62625], [15939, 62626], 0, [62628, 173569], [62629, 134665],
  9529. [62630, 142031], 0, 0, [62633, 135368], [62634, 145858], [14738, 62635],
  9530. [14854, 62636], [62637, 164507], [13688, 62638], [62639, 155209],
  9531. [62640, 139463], 0, 0, [62643, 142514], [62644, 169760], [13500, 62645],
  9532. [27709, 62646], [62647, 151099], 0, 0, [62650, 161140], [62651, 142987],
  9533. [62652, 139784], [62653, 173659], [62654, 167117], [62655, 134778],
  9534. [62656, 134196], [62683, 161337], [62684, 142286], [62687, 142417],
  9535. [14872, 62689], [62691, 135367], [62693, 173618], [62695, 167122],
  9536. [62696, 167321], [62697, 167114], [38314, 62698], 0, [62706, 161630],
  9537. [28992, 62708], 0, [20822, 62385], 0, [20616, 62487], 0, [13459, 62489],
  9538. [20870, 62491], [24130, 63037], [20997, 62495], [21031, 62436],
  9539. [21113, 62497], 0, [13651, 62504], [21442, 62505], [21343, 62715], 0,
  9540. [21823, 62520], 0, [21976, 59986], [13789, 62722], [22049, 63067], 0,
  9541. [22100, 60044], [60148, 135291], 0, [60153, 135379], 0, [61095, 135934], 0,
  9542. 0, [14265, 60104], [23745, 61099], [23829, 63066], [23894, 63030],
  9543. [14392, 63036], [20097, 62477], [24253, 63038], [14612, 63042],
  9544. [25017, 63050], [25232, 63054], [25368, 63056], [25690, 63063],
  9545. [25745, 62381], [33133, 62709], [33156, 59922], [33171, 59924],
  9546. [26624, 63080], [15292, 63093], [29327, 60517], [29389, 59781], 0,
  9547. [29497, 59785], [30018, 59811], [30172, 59817], [16320, 59818],
  9548. [60278, 151205], [16343, 59820], 0, 30336, [30348, 59824, 151388],
  9549. [16552, 59845], [30777, 59846], [16643, 59855], [31377, 59863],
  9550. [31771, 59876], [31981, 59884], [32659, 62658], [32686, 59892], 0,
  9551. [33535, 59936], [22623, 59981], [34482, 59960], 0, [34699, 59963],
  9552. [35143, 59969], 0, [35369, 59972], 0, [36465, 59988], [60484, 164233],
  9553. [36528, 59990], 0, [37214, 62443], [37260, 62441], [39182, 60051],
  9554. [39196, 60054], 0, 0, [39809, 60066], [40384, 60080], [40339, 60078],
  9555. [40620, 60085], [19857, 60540], 0, 37818, [40571, 60084], [28809, 63148],
  9556. [29512, 59788], 0, [31129, 59858], [36791, 59997], 0, [39234, 60056],
  9557. {s: 193}, 8364, {s: 4}, [12443, 63518], [12444, 63519], [11904, 63520],
  9558. {f: 5, c: 62211}, [62216, 131340], 62217, [62218, 131281], [62219, 131277],
  9559. {f: 2, c: 62220}, [62222, 131275], [62223, 139240], 62224, [62225, 131274],
  9560. {f: 4, c: 62226}, [62230, 131342], {f: 2, c: 62231}, {f: 2, c: 62776},
  9561. [62778, 138177], [62779, 194680], [12205, 38737, 62780], [62781, 131206],
  9562. [20059, 62782], [20155, 62783], [13630, 62784], [23587, 62785],
  9563. [24401, 62786], [24516, 62787], [14586, 62788], [25164, 62789],
  9564. [25909, 62790], [27514, 62791], [27701, 62792], [27706, 62793],
  9565. [28780, 62794], [29227, 62795], [20012, 62796], [29357, 62797],
  9566. [62798, 149737], [32594, 62799], [31035, 62800], [31993, 62801],
  9567. [32595, 62802], [62803, 156266], [13505, 62804], [62806, 156491],
  9568. [32770, 62807], [32896, 62808], [62809, 157202], [62810, 158033],
  9569. [21341, 62811], [34916, 62812], [35265, 62813], [62814, 161970],
  9570. [35744, 62815], [36125, 62816], [38021, 62817], [38264, 62818],
  9571. [38271, 62819], [38376, 62820], [62821, 167439], [38886, 62822],
  9572. [39029, 62823], [39118, 62824], [39134, 62825], [39267, 62826],
  9573. [62827, 170000], [40060, 62828], [40479, 62829], [40644, 62830],
  9574. [27503, 62831], [62832, 63751], [20023, 62833], [62834, 131207],
  9575. [38429, 62835], [25143, 62836], [38050, 62837], [11908, 63521],
  9576. [11910, 63522], [11911, 63523], [11912, 63524], [11914, 63525],
  9577. [11916, 63526], [11917, 63527], [11925, 63528], [11932, 63529],
  9578. [11941, 63531], [11943, 63532], [11946, 63533], [11948, 63534],
  9579. [11950, 63535], [11958, 63536], [11964, 63537], [11966, 63538],
  9580. [11978, 63540], [11980, 63541], [11981, 63542], [11983, 63543],
  9581. [11990, 63544], [11991, 63545], [11998, 63546], [62368, 172969],
  9582. [62369, 135493], [25866, 62371], [20029, 62374], [28381, 62375],
  9583. [40270, 62376], [37343, 62377], [62380, 161589], [20250, 62382],
  9584. [20264, 62383], [20392, 62384], [20852, 62386], [20892, 62387],
  9585. [20964, 62388], [21153, 62389], [21160, 62390], [21307, 62391],
  9586. [21326, 62392], [21457, 62393], [21464, 62394], [22242, 62395],
  9587. [22768, 62396], [22788, 62397], [22791, 62398], [22834, 62399],
  9588. [22836, 62400], [23398, 62401], [23454, 62402], [23455, 62403],
  9589. [23706, 62404], [24198, 62405], [24635, 62406], [25993, 62407],
  9590. [26622, 62408], [26628, 62409], [26725, 62410], [27982, 62411],
  9591. [28860, 62412], [30005, 62413], [32420, 62414], [32428, 62415],
  9592. [32442, 62416], [32455, 62417], [32463, 62418], [32479, 62419],
  9593. [32518, 62420], [32567, 62421], [33402, 62422], [33487, 62423],
  9594. [33647, 62424], [35270, 62425], [35774, 62426], [35810, 62427],
  9595. [36710, 62428], [36711, 62429], [36718, 62430], [29713, 62431],
  9596. [31996, 62432], [32205, 62433], [26950, 62434], [31433, 62435],
  9597. [30904, 62442], [32956, 62444], [36107, 62446], [33014, 62447],
  9598. [62448, 133607], [32927, 62451], [40647, 62452], [19661, 62453],
  9599. [40393, 62454], [40460, 62455], [19518, 62456], [62457, 171510],
  9600. [62458, 159758], [40458, 62459], [62460, 172339], [13761, 62461],
  9601. [28314, 62463], [33342, 62464], [29977, 62465], [18705, 62467],
  9602. [39532, 62468], [39567, 62469], [40857, 62470], [31111, 62471],
  9603. [62472, 164972], [62473, 138698], [62474, 132560], [62475, 142054],
  9604. [20004, 62476], [20096, 62478], [20103, 62479], [20159, 62480],
  9605. [20203, 62481], [20279, 62482], [13388, 62483], [20413, 62484],
  9606. [15944, 62485], [20483, 62486], [13437, 62488], [13477, 62490],
  9607. [22789, 62492], [20955, 62493], [20988, 62494], [20105, 62496],
  9608. [21136, 62498], [21287, 62499], [13767, 62500], [21417, 62501],
  9609. [13649, 62502], [21424, 62503], [21539, 62506], [13677, 62507],
  9610. [13682, 62508], [13953, 62509], [21651, 62510], [21667, 62511],
  9611. [21684, 62512], [21689, 62513], [21712, 62514], [21743, 62515],
  9612. [21784, 62516], [21795, 62517], [21800, 62518], [13720, 62519],
  9613. [13733, 62521], [13759, 62522], [21975, 62523], [13765, 62524],
  9614. [62525, 163204], [16467, 62538], [62551, 135412], [62555, 134155],
  9615. [62574, 161992], [62580, 155813], [62583, 142668], [62585, 135287],
  9616. [62587, 135279], [62595, 139681], [62609, 134550], [16571, 62611],
  9617. [62631, 142537], [22098, 62641], [62642, 134961], [62657, 157724],
  9618. [62659, 135375], [62660, 141315], [62661, 141625], [13819, 62662],
  9619. [62663, 152035], [62664, 134796], [62665, 135053], [62666, 134826],
  9620. [16275, 62667], [62668, 134960], [62669, 134471], [62670, 135503],
  9621. [62671, 134732], [62673, 134827], [62674, 134057], [62675, 134472],
  9622. [62676, 135360], [62677, 135485], [16377, 62678], [62679, 140950],
  9623. [25650, 62680], [62681, 135085], [62682, 144372], [62685, 134526],
  9624. [62686, 134527], [62688, 142421], [62690, 134808], [62692, 134958],
  9625. [62694, 158544], [21708, 62699], [33476, 62700], [21945, 62701],
  9626. [62703, 171715], [39974, 62704], [39606, 62705], [62707, 142830],
  9627. [33004, 62710], [23580, 62711], [62712, 157042], [33076, 62713],
  9628. [14231, 62714], [62716, 164029], [37302, 62717], [62718, 134906],
  9629. [62719, 134671], [62720, 134775], [62721, 134907], [62723, 151019],
  9630. [13833, 62724], [62725, 134358], [22191, 62726], [62727, 141237],
  9631. [62728, 135369], [62729, 134672], [62730, 134776], [62731, 135288],
  9632. [62732, 135496], [62733, 164359], [62734, 136277], [62735, 134777],
  9633. [62736, 151120], [62737, 142756], [23124, 62738], [62739, 135197],
  9634. [62740, 135198], [62741, 135413], [62742, 135414], [22428, 62743],
  9635. [62744, 134673], [62745, 161428], [62746, 164557], [62747, 135093],
  9636. [62748, 134779], [62749, 151934], [14083, 62750], [62751, 135094],
  9637. [62752, 135552], [62753, 152280], [62754, 172733], [62755, 149978],
  9638. [62756, 137274], [62757, 147831], [62758, 164476], [22681, 62759],
  9639. [21096, 62760], [13850, 62761], [62762, 153405], [31666, 62763],
  9640. [23400, 62764], [18432, 62765], [19244, 62766], [40743, 62767],
  9641. [18919, 62768], [39967, 62769], [39821, 62770], [62771, 154484],
  9642. [62772, 143677], [22011, 62773], [13810, 62774], [22153, 62775],
  9643. [23870, 63028], [23880, 63029], [15868, 63031], [14351, 63032],
  9644. [23972, 63033], [23993, 63034], [14368, 63035], [24357, 63039],
  9645. [24451, 63040], [14600, 63041], [14655, 63043], [14669, 63044],
  9646. [24791, 63045], [24893, 63046], [23781, 63047], [14729, 63048],
  9647. [25015, 63049], [25039, 63051], [14776, 63052], [25132, 63053],
  9648. [25317, 63055], [14840, 63057], [22193, 63058], [14851, 63059],
  9649. [25570, 63060], [25595, 63061], [25607, 63062], [14923, 63064],
  9650. [25792, 63065], [40863, 63068], [14999, 63069], [25990, 63070],
  9651. [15037, 63071], [26111, 63072], [26195, 63073], [15090, 63074],
  9652. [26258, 63075], [15138, 63076], [26390, 63077], [15170, 63078],
  9653. [26532, 63079], [15192, 63081], [26698, 63082], [26756, 63083],
  9654. [15218, 63084], [15217, 63085], [15227, 63086], [26889, 63087],
  9655. [26947, 63088], [29276, 63089], [26980, 63090], [27039, 63091],
  9656. [27013, 63092], [27094, 63094], [15325, 63095], [27237, 63096],
  9657. [27252, 63097], [27249, 63098], [27266, 63099], [15340, 63100],
  9658. [27289, 63101], [15346, 63102], [27307, 63103], [27317, 63104],
  9659. [27348, 63105], [27382, 63106], [27521, 63107], [27585, 63108],
  9660. [27626, 63109], [27765, 63110], [27818, 63111], [15563, 63112],
  9661. [27906, 63113], [27910, 63114], [27942, 63115], [28033, 63116],
  9662. [15599, 63117], [28068, 63118], [28081, 63119], [28181, 63120],
  9663. [28184, 63121], [28201, 63122], [28294, 63123], [63124, 166336],
  9664. [28347, 63125], [28386, 63126], [28378, 63127], [40831, 63128],
  9665. [28392, 63129], [28393, 63130], [28452, 63131], [28468, 63132],
  9666. [15686, 63133], [63134, 147265], [28545, 63135], [28606, 63136],
  9667. [15722, 63137], [15733, 63138], [29111, 63139], [23705, 63140],
  9668. [15754, 63141], [28716, 63142], [15761, 63143], [28752, 63144],
  9669. [28756, 63145], [28783, 63146], [28799, 63147], [63149, 131877],
  9670. [17345, 63150], [13809, 63151], [63152, 134872], [13902, 58134],
  9671. [15789, 58172], [58173, 154725], [26237, 58183], [31860, 58188],
  9672. [29837, 58197], [32402, 58215], [17667, 58232], [58260, 151480],
  9673. [58270, 133901], [58277, 158474], [13438, 58311], [58317, 143087],
  9674. [58325, 146613], [58343, 159385], [34673, 58364], [25537, 58385],
  9675. [30583, 58387], [35210, 58390], [58406, 147343], [35660, 58415],
  9676. [58440, 150729], [18730, 58464], [58471, 172052], [58472, 165564],
  9677. [58473, 165121], [15088, 58490], [28815, 58511], [58529, 140922],
  9678. [58637, 158120], [58646, 148043], [26760, 58662], [58664, 139611],
  9679. [40802, 58702], [37830, 58793], [58802, 131967], [37734, 58888],
  9680. [37519, 58901], [34324, 58954], [58986, 173147], [16784, 59010],
  9681. [26511, 59045], [26654, 59048], [14435, 59051], [59077, 149996],
  9682. [15129, 59128], [33942, 59176], [59241, 149858], [14818, 59254],
  9683. [33920, 59259], [17262, 59328], [38769, 59402], [39323, 59427],
  9684. [18733, 59499], [28439, 59703], [59704, 160009], [28838, 59746],
  9685. [59752, 150095], [32357, 59753], [23855, 59755], [15859, 59756],
  9686. [59758, 150109], [59759, 137183], [32164, 59760], [33830, 59761],
  9687. [21637, 59762], [59763, 146170], [59765, 131604], [22398, 59766],
  9688. [59767, 133333], [59768, 132633], [16357, 59769], [59770, 139166],
  9689. [59771, 172726], [28675, 59772], [59773, 168283], [23920, 59774],
  9690. [29583, 59775], [59777, 166489], [59778, 168992], [20424, 59779],
  9691. [32743, 59780], [29456, 59782], [29496, 59784], [29505, 59787],
  9692. [16041, 59789], [29173, 59792], [59793, 149746], [29665, 59794],
  9693. [16074, 59796], [16081, 59798], [29721, 59801], [29726, 59802],
  9694. [29727, 59803], [16098, 59804], [16112, 59805], [16116, 59806],
  9695. [16122, 59807], [29907, 59808], [16142, 59809], [16211, 59810],
  9696. [30061, 59812], [30066, 59813], [30093, 59814], [16252, 59815],
  9697. [30152, 59816], [30285, 59819], [30324, 59821], [16348, 59822],
  9698. [30330, 59823], [29064, 59825], [22051, 59826], [35200, 59827],
  9699. [16413, 59829], [30531, 59830], [16441, 59831], [16453, 59833],
  9700. [13787, 59834], [30616, 59835], [16490, 59836], [16495, 59837],
  9701. [30654, 59839], [30667, 59840], [30744, 59842], [30748, 59844],
  9702. [30791, 59847], [30801, 59848], [30822, 59849], [33864, 59850],
  9703. [59851, 152885], [31027, 59852], [31026, 59854], [16649, 59856],
  9704. [31121, 59857], [31238, 59860], [16743, 59862], [16818, 59864],
  9705. [31420, 59865], [33401, 59866], [16836, 59867], [31439, 59868],
  9706. [31451, 59869], [16847, 59870], [31586, 59872], [31596, 59873],
  9707. [31611, 59874], [31762, 59875], [16992, 59877], [17018, 59878],
  9708. [31867, 59879], [31900, 59880], [17036, 59881], [31928, 59882],
  9709. [17044, 59883], [36755, 59885], [28864, 59886], [59887, 134351],
  9710. [32207, 59888], [32212, 59889], [32208, 59890], [32253, 59891],
  9711. [32692, 59893], [29343, 59894], [17303, 59895], [32800, 59896],
  9712. [32805, 59897], [32814, 59899], [32817, 59900], [32852, 59901],
  9713. [22452, 59903], [28832, 59904], [32951, 59905], [33001, 59906],
  9714. [17389, 59907], [33036, 59908], [33038, 59910], [33042, 59911],
  9715. [33044, 59913], [17409, 59914], [15161, 59915], [33110, 59916],
  9716. [33113, 59917], [33114, 59918], [17427, 59919], [33148, 59921],
  9717. [17445, 59923], [17453, 59925], [33189, 59926], [22511, 59927],
  9718. [33217, 59928], [33252, 59929], [33364, 59930], [17551, 59931],
  9719. [33398, 59933], [33482, 59934], [33496, 59935], [17584, 59937],
  9720. [33623, 59938], [38505, 59939], [33797, 59941], [28917, 59942],
  9721. [33892, 59943], [33928, 59945], [17668, 59946], [33982, 59947],
  9722. [34017, 59948], [34040, 59949], [34064, 59950], [34104, 59951],
  9723. [34130, 59952], [17723, 59953], [34159, 59954], [34160, 59955],
  9724. [34272, 59956], [17783, 59957], [34418, 59958], [34450, 59959],
  9725. [34543, 59961], [38469, 59962], [17926, 59964], [17943, 59965],
  9726. [34990, 59966], [35071, 59967], [35108, 59968], [35217, 59970],
  9727. [59971, 162151], [35384, 59973], [35476, 59974], [35508, 59975],
  9728. [35921, 59976], [36052, 59977], [36082, 59978], [36124, 59979],
  9729. [18328, 59980], [36291, 59982], [18413, 59983], [36410, 59985],
  9730. [22356, 59987], [22005, 59989], [18487, 59991], [36558, 59992],
  9731. [36578, 59993], [36580, 59994], [36589, 59995], [36594, 59996],
  9732. [36801, 59998], [36810, 59999], [36812, 60000], [36915, 60001],
  9733. [18605, 60003], [39136, 60004], [37395, 60005], [18718, 60006],
  9734. [37416, 60007], [37464, 60008], [37483, 60009], [37553, 60010],
  9735. [37550, 60011], [37567, 60012], [37603, 60013], [37611, 60014],
  9736. [37619, 60015], [37620, 60016], [37629, 60017], [37699, 60018],
  9737. [37764, 60019], [37805, 60020], [18757, 60021], [18769, 60022],
  9738. [37911, 60024], [37917, 60026], [37933, 60027], [37950, 60028],
  9739. [18794, 60029], [37972, 60030], [38009, 60031], [38189, 60032],
  9740. [38306, 60033], [18855, 60034], [38388, 60035], [38451, 60036],
  9741. [18917, 60037], [18980, 60039], [38720, 60040], [18997, 60041],
  9742. [38834, 60042], [38850, 60043], [19172, 60045], [39097, 60047],
  9743. [19225, 60048], [39153, 60049], [22596, 60050], [39193, 60052],
  9744. [39223, 60055], [39261, 60057], [39266, 60058], [19312, 60059],
  9745. [39365, 60060], [19357, 60061], [39484, 60062], [39695, 60063],
  9746. [39785, 60065], [39901, 60067], [39921, 60068], [39924, 60069],
  9747. [19565, 60070], [39968, 60071], [14191, 60072], [60073, 138178],
  9748. [40265, 60074], [40702, 60076], [22096, 60077], [40381, 60079],
  9749. [40444, 60081], [38134, 60082], [36790, 60083], [40625, 60086],
  9750. [40637, 60087], [40646, 60088], [38108, 60089], [40674, 60090],
  9751. [40689, 60091], [40696, 60092], [40772, 60094], [60095, 131220],
  9752. [60096, 131767], [60097, 132000], [38083, 60099], [60101, 132311],
  9753. [38081, 60103], [60105, 132565], [60106, 132629], [60107, 132726],
  9754. [60108, 136890], [22359, 60109], [29043, 60110], [60111, 133826],
  9755. [60112, 133837], [60113, 134079], [60115, 194619], [60116, 134091],
  9756. [21662, 60117], [60118, 134139], [60119, 134203], [60120, 134227],
  9757. [60121, 134245], [60122, 134268], [60124, 134285], [60126, 134325],
  9758. [60127, 134365], [60128, 134381], [60129, 134511], [60130, 134578],
  9759. [60131, 134600], [60135, 134660], [60136, 134670], [60137, 134871],
  9760. [60138, 135056], [60139, 134957], [60140, 134771], [60142, 135100],
  9761. [60144, 135260], [60145, 135247], [60146, 135286], [60149, 135304],
  9762. [60150, 135318], [13895, 60151], [60152, 135359], [60154, 135471],
  9763. [60155, 135483], [21348, 60156], [60158, 135907], [60159, 136053],
  9764. [60160, 135990], [60162, 136567], [60163, 136729], [60164, 137155],
  9765. [60165, 137159], [28859, 60167], [60168, 137261], [60169, 137578],
  9766. [60170, 137773], [60171, 137797], [60172, 138282], [60173, 138352],
  9767. [60174, 138412], [60175, 138952], [60177, 138965], [60178, 139029],
  9768. [29080, 60179], [60181, 139333], [27113, 60182], [14024, 60183],
  9769. [60184, 139900], [60185, 140247], [60186, 140282], [60187, 141098],
  9770. [60188, 141425], [60189, 141647], [60191, 141671], [60192, 141715],
  9771. [60193, 142037], [60195, 142056], [60197, 142094], [60199, 142143],
  9772. [60202, 142412], [60204, 142472], [60205, 142519], [60206, 154600],
  9773. [60207, 142600], [60208, 142610], [60209, 142775], [60210, 142741],
  9774. [60211, 142914], [60212, 143220], [60213, 143308], [60214, 143411],
  9775. [60215, 143462], [60216, 144159], [60217, 144350], [60222, 144743],
  9776. [60223, 144883], [60227, 144922], [60228, 145174], [22709, 60231],
  9777. [60234, 146087], [60237, 146961], [60238, 147129], [60243, 147737],
  9778. [60245, 148206], [60246, 148237], [60248, 148276], [60249, 148374],
  9779. [60258, 148484], [60259, 148694], [22408, 60260], [60261, 149108],
  9780. [60263, 149295], [60271, 149522], [60272, 149755], [60273, 150037],
  9781. [60275, 150208], [22885, 60277], [60279, 151430], [60282, 151596],
  9782. [22335, 60284], [60286, 152217], [60287, 152601], [60291, 152646],
  9783. [60292, 152686], [60296, 152895], [60298, 152926], [60300, 152930],
  9784. [60301, 152934], [60302, 153543], [60304, 153693], [60309, 153859],
  9785. [60312, 154286], [60313, 154505], [60314, 154630], [22433, 60316],
  9786. [29009, 60317], [60319, 155906], [60322, 156082], [60325, 156674],
  9787. [60326, 156746], [60330, 156804], [60334, 156808], [60336, 156946],
  9788. [60338, 157119], [60339, 157365], [22201, 60347], [60349, 157436],
  9789. [13848, 60355], [60357, 157593], [60358, 157806], [60360, 157790],
  9790. [60362, 157895], [60366, 157990], [60368, 158009], [60371, 158202],
  9791. [60373, 158253], [60378, 158260], [60379, 158555], [60383, 158621],
  9792. [60385, 158884], [60388, 159150], [60392, 159819], [60393, 160205],
  9793. [60395, 160384], [60396, 160389], [60399, 160395], [60401, 160486],
  9794. [38047, 60404], [60405, 160848], [14009, 60416], [60424, 161740],
  9795. [60425, 161880], [22230, 60426], [60435, 162269], [60441, 162301],
  9796. [60442, 162314], [60443, 162571], [60444, 163174], [60448, 163849],
  9797. [60459, 163875], [60463, 163912], [60466, 163971], [60479, 163984],
  9798. [60480, 164084], [60481, 164142], [60483, 164175], [60485, 164271],
  9799. [60486, 164378], [60487, 164614], [60488, 164655], [60489, 164746],
  9800. [60491, 164968], [60492, 165546], [25574, 60494], [60495, 166230],
  9801. [60498, 166328], [60500, 166375], [60502, 166376], [60503, 166726],
  9802. [60504, 166868], [60506, 166921], [60508, 167877], [60509, 168172],
  9803. [60511, 168208], [60512, 168252], [15863, 60513], [60514, 168286],
  9804. [60515, 150218], [36816, 60516], [60519, 169191], [60521, 169392],
  9805. [60522, 169400], [60523, 169778], [60524, 170193], [60525, 170313],
  9806. [60526, 170346], [60527, 170435], [60528, 170536], [60529, 170766],
  9807. [60530, 171354], [60531, 171419], [32415, 60532], [60533, 171768],
  9808. [60534, 171811], [19620, 60535], [38215, 60536], [60537, 172691],
  9809. [29090, 60538], [60539, 172799], [60542, 173515], [19868, 60543],
  9810. [60544, 134300], [36798, 60545], [36794, 60547], [60548, 140464],
  9811. [36793, 60549], [60550, 150163], [20202, 60555], [60557, 166700],
  9812. [36480, 60560], [60561, 137205], [60563, 166764], [60564, 166809],
  9813. [60566, 157359], [60568, 161365], [60570, 153141], [60571, 153942],
  9814. [20122, 60572], [60573, 155265], [60576, 134765], [60579, 147080],
  9815. [60580, 150686], [60583, 137206], [60584, 137339], [60587, 154698],
  9816. [60589, 152337], [15814, 60590], [60596, 155352], [19996, 60600],
  9817. [60601, 135146], [60602, 134473], [60603, 145082], [60638, 151880],
  9818. [21982, 60644], [34694, 60672], [60676, 135361], [60679, 149254],
  9819. [23440, 60680], [60682, 157843], [60684, 141044], [60685, 163119],
  9820. [60686, 147875], [60687, 163187], [60688, 159440], [60689, 160438],
  9821. [60691, 135641], [60693, 146684], [60694, 173737], [60695, 134828],
  9822. [60698, 138402], [60700, 151490], [60702, 135147], [60706, 142752],
  9823. [60710, 135148], [60711, 134666], [60714, 135149], [60717, 135559],
  9824. [19994, 60721], [19972, 60722], [23309, 60724], [13996, 60727],
  9825. [21373, 60729], [13989, 60730], [22682, 60732], [60733, 150382],
  9826. [22442, 60736], [60737, 154261], [60738, 133497], [60741, 140389],
  9827. [60746, 146686], [60747, 171824], [60749, 151465], [60750, 169374],
  9828. [60753, 146870], [60755, 157619], [60756, 145184], [60759, 147191],
  9829. [60760, 146988], [60785, 143578], [60789, 135849], [22439, 60790],
  9830. [60791, 149859], [60794, 159918], [60801, 137068], [60806, 160100],
  9831. [60809, 159010], [60810, 150242], [39963, 60837], [60838, 149822],
  9832. [15878, 60846], [60881, 159011], [60887, 132092], [60891, 146685],
  9833. [60893, 149785], [22394, 60904], [21722, 60912], [29050, 60928],
  9834. [60949, 150135], [60955, 166490], [60962, 194624], [60976, 137275],
  9835. [61000, 155993], [61014, 144373], [61019, 166850], [61024, 138566],
  9836. [61054, 159441], [13877, 61065], [61084, 166701], [21024, 61088],
  9837. [15384, 61089], [61090, 146631], [61091, 155351], [61092, 161366],
  9838. [61093, 152881], [61094, 137540], [61096, 170243], [61097, 159196],
  9839. [61098, 159917], [61100, 156077], [61101, 166415], [61102, 145015],
  9840. [61103, 131310], [61104, 157766], [61105, 151310], [17762, 61106],
  9841. [23327, 61107], [61108, 156492], [40784, 61109], [40614, 61110],
  9842. [61111, 156267], [20962, 57415], [21314, 57416], [26285, 57520],
  9843. [22620, 57547], [21843, 57566], [15749, 57594], [24928, 57608],
  9844. [18606, 57668], [38845, 57676], [57693, 137335], [24755, 57703],
  9845. [33828, 57711], [38932, 57748], [57749, 147596], [57764, 143486],
  9846. [57787, 138813], [15147, 57798], [15666, 57824], [57857, 132021],
  9847. [28801, 57944], [23708, 57959], [58017, 132547], [14128, 58028],
  9848. [58096, 136054], [58097, 150034], [58111, 166699], [58112, 155779],
  9849. [256, 62233], [193, 62234], [461, 62235], [192, 62236], [274, 62237],
  9850. [201, 62238], [282, 62239], [200, 62240], [332, 62241], [211, 62242],
  9851. [465, 62243], [210, 62244], 62245, [7870, 62246], 62247, [7872, 62248],
  9852. [202, 62249], [257, 62250], [225, 62251], [462, 62252], [224, 62253],
  9853. [593, 62254], [275, 62255], [233, 62256], [283, 62257], [232, 62258],
  9854. [299, 62259], [237, 62260], [464, 62261], [236, 62262], [333, 62263],
  9855. [243, 62264], [466, 62265], [242, 62266], [363, 62267], [250, 62268],
  9856. [468, 62269], [249, 62270], [470, 62271], [472, 62272], [474, 62273],
  9857. [476, 62274], [252, 62275], 62276, [7871, 62277], 62278, [7873, 62279],
  9858. [234, 62280], [609, 62281], [643, 63551], [592, 63552], [603, 63553],
  9859. [596, 63554], [629, 63555], [339, 63556], [248, 63557], [331, 63558],
  9860. [650, 63559], [618, 63560], {f: 2, c: 62282}, [11933, 63530],
  9861. [11974, 63539], [12003, 63547], 20539, 28158, [62841, 171123], 62842,
  9862. [15817, 62843], 34959, [62845, 147790], 28791, 23797, [19232, 62848],
  9863. [62849, 152013], [13657, 62850], [62851, 154928], 24866, [62853, 166450],
  9864. 36775, 37366, 29073, 26393, 29626, [62859, 144001], [62860, 172295],
  9865. [15499, 62861], [62862, 137600], [19216, 62863], 30948, 29698, 20910,
  9866. [62867, 165647], [16393, 62868], 27235, [62870, 172730], [16931, 62871],
  9867. 34319, 31274, [62875, 170311], [62876, 166634], 38741, 28749, 21284,
  9868. [62880, 139390], 37876, 30425, [62883, 166371], 62884, 30685, 20131, 20464,
  9869. 20668, 20015, 20247, 62891, 21556, 32139, 22674, 22736, [62896, 138678],
  9870. 24210, 24217, 24514, [62900, 141074], 25995, [62902, 144377], 26905, 27203,
  9871. [62905, 146531], 27903, 29184, [62909, 148741], 29580, [16091, 62911],
  9872. [62912, 150035], 23317, 29881, 35715, [62916, 154788], [62917, 153237],
  9873. 31379, 31724, 31939, 32364, 33528, 34199, 62924, 34960, 62926, 36537,
  9874. 62928, 36815, 34143, 39392, 37409, 62933, [62934, 167353], [62935, 136255],
  9875. [16497, 62936], [17058, 62937], 23066, 39016, 26475, [17014, 62944], 22333,
  9876. 34262, [62948, 149883], 33471, [62950, 160013], [19585, 62951],
  9877. [62952, 159092], 23931, [62954, 158485], [62955, 159678], {f: 2, c: 62956},
  9878. 23446, 62959, 32347],
  9879. 'Adobe-GB1': [{f: 95, c: 32}, {f: 3, c: 12288}, [183, 12539], 713, 711, 168,
  9880. 12291, 12293, 8212, 65374, 8214, [8230, 8943], {f: 2, c: 8216},
  9881. {f: 2, c: 8220}, {f: 2, c: 12308}, {f: 8, c: 12296}, {f: 2, c: 12310},
  9882. {f: 2, c: 12304}, 177, 215, 247, 8758, {f: 2, c: 8743}, 8721, 8719, 8746,
  9883. 8745, 8712, 8759, 8730, 8869, 8741, 8736, 8978, 8857, 8747, 8750, 8801,
  9884. 8780, 8776, 8765, 8733, 8800, {f: 2, c: 8814}, {f: 2, c: 8804}, 8734, 8757,
  9885. 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65284, 164, {f: 2, c: 65504},
  9886. 8240, 167, 8470, 9734, 9733, 9675, 9679, 9678, 9671, 9670, 9633, 9632,
  9887. 9651, 9650, 8251, 8594, {f: 2, c: 8592}, 8595, 12307, {f: 20, c: 9352},
  9888. {f: 20, c: 9332}, {f: 10, c: 9312}, {f: 10, c: 12832}, {f: 12, c: 8544},
  9889. {f: 3, c: 65281}, 65509, {f: 89, c: 65285}, 65507, {f: 83, c: 12353},
  9890. {f: 86, c: 12449}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  9891. {f: 7, c: 963}, {f: 7, c: 59277}, {f: 2, c: 65077}, {f: 2, c: 65081},
  9892. {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089}, {f: 2, c: 59284},
  9893. {f: 2, c: 65083}, {f: 2, c: 65079}, 65073, 59286, {f: 2, c: 65075},
  9894. {f: 6, c: 1040}, 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 257, 225,
  9895. 462, 224, 275, 233, 283, 232, 299, 237, 464, 236, 333, 243, 466, 242, 363,
  9896. 250, 468, 249, 470, 472, 474, 476, 252, 234, 593, 7743, 324, 328, 505, 609,
  9897. {f: 37, c: 12549}, 0, {f: 76, c: 9472}, {s: 126}, 21834, 38463, 22467,
  9898. 25384, 21710, 21769, 21696, 30353, 30284, 34108, 30702, 33406, 30861,
  9899. 29233, 38552, 38797, 27688, 23433, 20474, 25353, 26263, 23736, 33018,
  9900. 26696, 32942, 26114, 30414, 20985, 25942, 29100, 32753, 34948, 20658,
  9901. 22885, 25034, 28595, 33453, 25420, 25170, 21485, 21543, 31494,
  9902. [12043, 20843], 30116, 24052, 25300, 36299, 38774, 25226, 32793, 22365,
  9903. 38712, 32610, 29240, [12137, 30333], 26575, 30334, 25670, 20336, 36133,
  9904. 25308, 31255, 26001, 29677, 25644, 25203, 33324, 39041, 26495, 29256,
  9905. 25198, 25292, 20276, 29923, 21322, 21150, 32458, 37030, 24110, 26758,
  9906. 27036, 33152, 32465, 26834, 30917, 34444, 38225, 20621, 35876, 33502,
  9907. 32990, 21253, 35090, 21093, 34180, 38649, 20445, 22561, 39281, 23453,
  9908. 25265, 25253, 26292, 35961, 40077, 29190, 26479, 30865, 24754, 21329,
  9909. 21271, 36744, 32972, 36125, 38049, 20493, 29384, 22791, 24811, 28953,
  9910. 34987, 22868, 33519, 26412, 31528, 23849, 32503, 29997, 27893, 36454,
  9911. 36856, 36924, [12240, 40763], [12112, 27604], 37145, 31508, 24444, 30887,
  9912. 34006, 34109, 27605, 27609, 27606, 24065, 24199, 30201, 38381, 25949,
  9913. 24330, 24517, 36767, 22721, 33218, 36991, 38491, 38829, 36793, 32534,
  9914. 36140, 25153, 20415, 21464, 21342, {f: 2, c: 36776}, 36779, 36941, 26631,
  9915. 24426, 33176, 34920, 40150, 24971, 21035, 30250, 24428, 25996, 28626,
  9916. 28392, 23486, 25672, 20853, 20912, 26564, 19993, 31177, 39292, 28851,
  9917. 30149, 24182, 29627, 33760, 25773, 25320, 38069, 27874, 21338, 21187,
  9918. 25615, 38082, 31636, 20271, 24091, 33334, 33046, 33162, 28196, 27850,
  9919. 39539, 25429, [12056, 21340], 21754, 34917, 22496, 19981, 24067, 27493,
  9920. 31807, 37096, 24598, 25830, 29468, 35009, 26448, 25165, 36130, 30572,
  9921. 36393, 37319, 24425, 33756, 34081, 39184, 21442, 34453, 27531, 24813,
  9922. 24808, 28799, 33485, 33329, 20179, 27815, 34255, 25805, 31961, 27133,
  9923. 26361, 33609, 21397, 31574, 20391, 20876, 27979, 23618, 36461, 25554,
  9924. 21449, 33580, 33590, 26597, 30900, 25661, 23519, 23700, 24046, 35815,
  9925. 25286, 26612, 35962, 25600, 25530, 34633, 39307, 35863, 32544, 38130,
  9926. 20135, 38416, 39076, 26124, 29462, 22330, 23581, 24120, 38271, 20607,
  9927. 32928, [12058, 21378], 25950, 30021, 21809, 20513, 36229, 25220, 38046,
  9928. 26397, 22066, 28526, 24034, 21557, 28818, 36710, 25199, 25764, 25507,
  9929. 24443, 28552, 37108, [12162, 33251], [12192, 36784], 23576, 26216, 24561,
  9930. 27785, 38472, 36225, 34924, 25745, 31216, 22478, 27225, 25104, 21576,
  9931. 20056, 31243, 24809, 28548, 35802, 25215, 36894, 39563, 31204, 21507,
  9932. 30196, 25345, 21273, 27744, 36831, 24347, 39536, 32827, 40831, 20360,
  9933. 23610, [12186, 36196], 32709, 26021, 28861, 20805, 20914, [12173, 34411],
  9934. 23815, 23456, 25277, 37228, 30068, 36364, 31264, 24833, 31609, 20167,
  9935. 32504, 30597, 19985, 33261, 21021, 20986, 27249, 21416, 36487, 38148,
  9936. 38607, 28353, 38500, 26970, 30784, 20648, 30679, 25616, 35302, 22788,
  9937. 25571, 24029, 31359, 26941, 20256, 33337, 21912, 20018, 30126, 31383,
  9938. 24162, 24202, 38383, 21019, 21561, 28810, 25462, 38180, 22402, 26149,
  9939. 26943, 37255, 21767, 28147, 32431, 34850, 25139, 32496, 30133, 33576,
  9940. 30913, 38604, 36766, 24904, 29943, 35789, 27492, 21050, 36176, 27425,
  9941. 32874, 33905, 22257, 21254, 20174, 19995, 20945, 31895, 37259, 31751,
  9942. 20419, 36479, 31713, 31388, 25703, 23828, 20652, 33030, 30209, 31929,
  9943. 28140, 32736, 26449, 23384, [12072, 23544], 30923, 25774, 25619, 25514,
  9944. 25387, 38169, 25645, 36798, 31572, 30249, 25171, [12068, 22823], 21574,
  9945. [12109, 27513], 20643, 25140, 24102, 27526, 20195, 36151, 34955, 24453,
  9946. 36910, 24608, 32829, 25285, 20025, 21333, 37112, 25528, 32966, 26086,
  9947. 27694, 20294, 24814, 28129, 35806, 24377, 34507, 24403, 25377, 20826,
  9948. 33633, 26723, [12049, 20992], 25443, 36424, 20498, 23707, 31095, 23548,
  9949. 21040, 31291, 24764, 36947, 30423, 24503, 24471, 30340, 36460, 28783,
  9950. 30331, 31561, 30634, 20979, 37011, 22564, 20302, 28404, 36842, 25932,
  9951. 31515, 29380, 28068, 32735, 23265, 25269, 24213, 22320, 33922, 31532,
  9952. 24093, 24351, 36882, 32532, 39072, 25474, 28359, 30872, 28857, 20856,
  9953. 38747, 22443, 30005, 20291, 30008, 24215, 24806, 22880, 28096, 27583,
  9954. 30857, 21500, 38613, 20939, 20993, 25481, 21514, 38035, 35843, 36300,
  9955. 29241, 30879, 34678, 36845, 35853, 21472, 19969, 30447, 21486, 38025,
  9956. 39030, [12237, 40718], 38189, 23450, 35746, 20002, 19996, 20908, 33891,
  9957. 25026, 21160, 26635, 20375, 24683, 20923, 27934, 20828, 25238,
  9958. [12099, 26007], 38497, [12182, 35910], 36887, 30168, 37117, 30563, 27602,
  9959. 29322, 29420, 35835, 22581, 30585, 36172, 26460, 38208, 32922, 24230,
  9960. 28193, 22930, 31471, 30701, 38203, 27573, 26029, 32526, 22534, 20817,
  9961. 38431, 23545, 22697, 21544, 36466, 25958, 39039, 22244, 38045, 30462,
  9962. 36929, 25479, 21702, 22810, 22842, 22427, 36530, 26421, 36346, 33333,
  9963. 21057, 24816, 22549, 34558, 23784, 40517, 20420, 39069, 35769, 23077,
  9964. 24694, 21380, 25212, 36943, 37122, 39295, 24681, [12157, 32780],
  9965. [12041, 20799], [12159, 32819], 23572, 39285, 27953, [12038, 20108], 36144,
  9966. 21457, 32602, 31567, 20240, 20047, 38400, 27861, 29648, 34281, 24070,
  9967. 30058, 32763, 27146, 30718, 38034, 32321, 20961, 28902, 21453, 36820,
  9968. 33539, 36137, 29359, 39277, 27867, 22346, 33459, [12101, 26041], 32938,
  9969. 25151, 38450, 22952, 20223, 35775, 32442, 25918, 33778, [12206, 38750],
  9970. 21857, 39134, 32933, 21290, 35837, 21536, 32954, 24223, 27832, 36153,
  9971. 33452, 37210, 21545, 27675, 20998, 32439, 22367, 28954, 27774, 31881,
  9972. 22859, 20221, 24575, 24868, 31914, 20016, 23553, 26539, 34562, 23792,
  9973. 38155, 39118, 30127, 28925, 36898, 20911, 32541, 35773, 22857, 20964,
  9974. 20315, 21542, 22827, 25975, 32932, 23413, 25206, 25282, 36752, 24133,
  9975. 27679, 31526, 20239, 20440, 26381, 28014, 28074, 31119, 34993, 24343,
  9976. 29995, 25242, 36741, 20463, 37340, 26023, 33071, 33105, 24220, 33104,
  9977. 36212, 21103, 35206, 36171, 22797, 20613, 20184, [12201, 38428],
  9978. [12119, 29238], 33145, 36127, 23500, 35747, 38468, 22919, 32538, 21648,
  9979. 22134, 22030, 35813, 25913, 27010, 38041, 30422, 28297, [12082, 24178],
  9980. [12130, 29976], 26438, 26577, 31487, 32925, 36214, 24863, 31174, 25954,
  9981. 36195, 20872, 21018, 38050, 32568, 32923, 32434, 23703, 28207, 26464,
  9982. 31705, 30347, [12220, 39640], 33167, 32660, 31957, 25630, 38224, 31295,
  9983. 21578, 21733, 27468, 25601, [12093, 25096], 40509, 33011, 30105, 21106,
  9984. [12208, 38761], 33883, 26684, 34532, 38401, 38548, 38124, 20010, 21508,
  9985. 32473, 26681, 36319, 32789, 26356, 24218, 32697, 22466, 32831, 26775,
  9986. [12079, 24037], 25915, 21151, 24685, 40858, 20379, 36524, 20844, 23467,
  9987. [12088, 24339], 24041, 27742, 25329, 36129, 20849, 38057, 21246, 27807,
  9988. 33503, 29399, 22434, 26500, 36141, 22815, 36764, 33735, 21653, 31629,
  9989. 20272, 27837, 23396, 22993, [12238, 40723], 21476, 34506, [12219, 39592],
  9990. [12181, 35895], 32929, 25925, 39038, 22266, 38599, 21038, [12128, 29916],
  9991. 21072, 23521, 25346, 35074, 20054, 25296, 24618, 26874, 20851, 23448,
  9992. 20896, 35266, 31649, 39302, 32592, 24815, 28748, 36143, 20809,
  9993. [12084, 24191], 36891, 29808, 35268, 22317, 30789, 24402, 40863, 38394,
  9994. 36712, [12225, 39740], 35809, 30328, 26690, 26588, 36330, 36149, 21053,
  9995. 36746, 28378, 26829, 38149, 37101, 22269, 26524, 35065, 36807, 21704,
  9996. 39608, 23401, 28023, 27686, 20133, 23475, 39559, 37219, 25000, 37039,
  9997. 38889, 21547, 28085, 23506, 20989, 21898, 32597, 32752, 25788, 25421,
  9998. 26097, 25022, 24717, 28938, 27735, 27721, 22831, 26477, 33322, 22741,
  9999. 22158, 35946, 27627, 37085, 22909, 32791, 21495, 28009, 21621, 21917,
  10000. 33655, 33743, 26680, [12146, 31166], 21644, 20309, 21512, 30418, 35977,
  10001. 38402, 27827, 28088, 36203, 35088, 40548, 36154, 22079, [12234, 40657],
  10002. 30165, 24456, 29408, 24680, 21756, 20136, 27178, 34913, 24658, 36720,
  10003. 21700, 28888, 34425, 40511, 27946, 23439, 24344, 32418, 21897, 20399,
  10004. 29492, 21564, 21402, 20505, 21518, 21628, 20046, 24573, 29786, 22774,
  10005. 33899, 32993, 34676, 29392, 31946, 28246, 24359, 34382, 21804, 25252,
  10006. 20114, 27818, 25143, 33457, 21719, 21326, 29502, 28369, 30011, 21010,
  10007. 21270, 35805, 27088, 24458, 24576, 28142, 22351, 27426, 29615, 26707,
  10008. 36824, 32531, 25442, 24739, 21796, 30186, 35938, 28949, 28067, 23462,
  10009. 24187, 33618, 24908, 40644, 30970, 34647, 31783, 30343, 20976, 24822,
  10010. 29004, 26179, 24140, 24653, 35854, 28784, 25381, 36745, 24509, 24674,
  10011. 34516, 22238, 27585, 24724, 24935, 21321, 24800, 26214, 36159, 31229,
  10012. 20250, 28905, 27719, 35763, 35826, 32472, 33636, 26127, 23130, 39746,
  10013. 27985, 28151, 35905, 27963, 20249, [12117, 28779], 33719, 25110, 24785,
  10014. 38669, 36135, 31096, 20987, 22334, 22522, 26426, 30072, 31293, 31215,
  10015. 31637, 32908, 39269, 36857, 28608, 35749, 40481, 23020, 32489, 32521,
  10016. 21513, 26497, 26840, 36753, 31821, 38598, 21450, 24613, 30142, 27762,
  10017. 21363, 23241, 32423, 25380, [12047, 20960], 33034, [12080, 24049], 34015,
  10018. 25216, 20864, 23395, 20238, 31085, 21058, 24760, 27982, 23492, 23490,
  10019. 35745, 35760, 26082, 24524, 38469, 22931, 32487, 32426, 22025, 26551,
  10020. 22841, 20339, 23478, 21152, 33626, 39050, 36158, 30002, 38078, 20551,
  10021. 31292, 20215, 26550, 39550, 23233, 27516, 30417, 22362, 23574, 31546,
  10022. 38388, 29006, 20860, 32937, 33392, 22904, 32516, 33575, 26816, 26604,
  10023. 30897, 30839, 25315, 25441, 31616, 20461, 21098, 20943, 33616, 27099,
  10024. 37492, 36341, 36145, 35265, 38190, 31661, 20214, 20581, 33328, 21073,
  10025. 39279, 28176, 28293, 28071, 24314, 20725, 23004, 23558, 27974, 27743,
  10026. 30086, 33931, 26728, 22870, 35762, 21280, 37233, 38477, 34121, 26898,
  10027. 30977, 28966, 33014, 20132, 37066, 27975, 39556, 23047, 22204, 25605,
  10028. 38128, 30699, 20389, 33050, 29409, [12179, 35282], 39290, 32564, 32478,
  10029. 21119, 25945, 37237, 36735, 36739, 21483, 31382, 25581, 25509, 30342,
  10030. 31224, 34903, 38454, 25130, 21163, 33410, 26708, 26480, 25463, 30571,
  10031. 31469, 27905, 32467, 35299, 22992, 25106, 34249, 33445, 30028, 20511,
  10032. 20171, 30117, 35819, 23626, [12081, 24062], 31563, [12100, 26020],
  10033. [12198, 37329], 20170, 27941, 35167, 32039, 38182, 20165, 35880, 36827,
  10034. 38771, 26187, 31105, 36817, 28908, 28024, 23613, 21170, 33606, 20834,
  10035. 33550, 30555, 26230, 40120, 20140, 24778, 31934, 31923, 32463, 20117,
  10036. 35686, 26223, 39048, 38745, 22659, 25964, 38236, 24452, 30153, 38742,
  10037. 31455, 31454, 20928, 28847, 31384, 25578, 31350, 32416, 29590,
  10038. [12210, 38893], 20037, 28792, 20061, 37202, 21417, 25937, 26087,
  10039. [12165, 33276], 33285, 21646, 23601, 30106, 38816, 25304, 29401, 30141,
  10040. 23621, 39545, 33738, 23616, 21632, 30697, 20030, 27822, 32858, 25298,
  10041. 25454, 24040, 20855, 36317, 36382, 38191, 20465, 21477, 24807, 28844,
  10042. 21095, 25424, 40515, 23071, 20518, 30519, 21367, 32482, 25733, 25899,
  10043. 25225, 25496, 20500, 29237, 35273, 20915, 35776, 32477, 22343, 33740,
  10044. 38055, 20891, 21531, 23803, 20426, 31459, 27994, 37089, 39567, 21888,
  10045. 21654, 21345, 21679, 24320, 25577, 26999, 20975, 24936, 21002, 22570,
  10046. 21208, 22350, 30733, 30475, 24247, 24951, 31968, 25179, 25239, 20130,
  10047. 28821, 32771, 25335, 28900, 38752, 22391, 33499, 26607, 26869, 30933,
  10048. 39063, 31185, 22771, 21683, 21487, 28212, 20811, 21051, 23458, 35838,
  10049. 32943, 21827, 22438, 24691, 22353, 21549, 31354, 24656, 23380, 25511,
  10050. 25248, [12061, 21475], 25187, 23495, 26543, 21741, 31391, 33510, 37239,
  10051. 24211, 35044, 22840, 22446, 25358, 36328, 33007, 22359, 31607, 20393,
  10052. 24555, 23485, 27454, 21281, 31568, 29378, 26694, 30719, 30518, 26103,
  10053. 20917, 20111, 30420, 23743, 31397, 33909, 22862, 39745, 20608, 39304,
  10054. 24871, 28291, 22372, 26118, 25414, 22256, 25324, 25193, 24275, 38420,
  10055. 22403, 25289, 21895, 34593, 33098, 36771, 21862, 33713, 26469, 36182,
  10056. 34013, 23146, 26639, 25318, 31726, 38417, 20848, 28572, 35888, 25597,
  10057. 35272, 25042, 32518, 28866, 28389, 29701, 27028, 29436, 24266, 37070,
  10058. 26391, 28010, 25438, 21171, 29282, [12156, 32769], 20332, 23013, 37226,
  10059. 28889, 28061, 21202, 20048, 38647, 38253, 34174, 30922, 32047, 20769,
  10060. 22418, 25794, 32907, 31867, 27882, 26865, 26974, 20919, 21400, 26792,
  10061. 29313, 40654, 31729, 29432, 31163, 28435, 29702, 26446, [12197, 37324],
  10062. 40100, 31036, 33673, 33620, 21519, 26647, 20029, 21385, 21169, 30782,
  10063. 21382, 21033, 20616, 20363, 20432, 30178, [12148, 31435], 31890, 27813,
  10064. [12202, 38582], [12050, 21147], 29827, 21737, 20457, 32852, 33714, 36830,
  10065. 38256, 24265, 24604, 28063, 24088, 25947, 33080, 38142, 24651, 28860,
  10066. 32451, 31918, 20937, 26753, 31921, 33391, 20004, 36742, 37327, 26238,
  10067. 20142, 35845, 25769, 32842, 20698, 30103, 29134, 23525, 36797, 28518,
  10068. 20102, 25730, 38243, 24278, 26009, 21015, 35010, 28872, 21155, 29454,
  10069. 29747, 26519, 30967, 38678, 20020, 37051, 40158, 28107, 20955, 36161,
  10070. 21533, 25294, 29618, 33777, 38646, 40836, 38083, 20278, 32666, 20940,
  10071. 28789, 38517, 23725, 39046, 21478, 20196, 28316, 29705, 27060, 30827,
  10072. 39311, 30041, 21016, 30244, 27969, 26611, 20845, 40857, 32843, 21657,
  10073. 31548, 31423, 38534, 22404, 25314, 38471, 27004, 23044, 25602, 31699,
  10074. 28431, 38475, 33446, 21346, 39045, 24208, 28809, 25523, 21348, 34383,
  10075. 40065, 40595, 30860, 38706, 36335, 36162, [12229, 40575], 28510, 31108,
  10076. 24405, 38470, 25134, 39540, 21525, 38109, 20387, 26053, 23653, 23649,
  10077. 32533, 34385, 27695, 24459, 29575, 28388, 32511, 23782, 25371, 23402,
  10078. 28390, 21365, 20081, 25504, 30053, 25249, 36718, 20262, 20177, 27814,
  10079. 32438, 35770, 33821, 34746, 32599, 36923, 38179, 31657, 39585, 35064,
  10080. 33853, 27931, 39558, 32476, 22920, [12231, 40635], 29595, 30721, 34434,
  10081. 39532, 39554, 22043, 21527, 22475, 20080, 40614, 21334, 36808, 33033,
  10082. 30610, 39314, 34542, 28385, 34067, 26364, 24930, 28459, 35881, 33426,
  10083. 33579, 30450, 27667, 24537, 33725, 29483, 33541, 38170, [12113, 27611],
  10084. [12141, 30683], 38086, 21359, 33538, 20882, 24125, 35980, 36152, 20040,
  10085. 29611, 26522, 26757, 37238, 38665, 29028, 27809, 30473, 23186, 38209,
  10086. 27599, 32654, 26151, 23504, 22969, 23194, 38376, 38391, 20204, 33804,
  10087. 33945, 27308, 30431, 38192, 29467, 26790, 23391, 30511, 37274, 38753,
  10088. 31964, 36855, 35868, 24357, [12150, 31859], 31192, 35269, 27852, 34588,
  10089. 23494, 24130, 26825, 30496, 32501, 20885, 20813, 21193, 23081, 32517,
  10090. [12207, 38754], 33495, 25551, 30596, 34256, 31186, 28218, 24217, 22937,
  10091. 34065, 28781, 27665, 25279, [12139, 30399], 25935, 24751, 38397, 26126,
  10092. 34719, 40483, 38125, 21517, 21629, 35884, {f: 2, c: 25720}, 34321, 27169,
  10093. 33180, 30952, 25705, 39764, 25273, 26411, 33707, 22696, 40664, 27819,
  10094. 28448, 23518, 38476, 35851, 29279, 26576, 25287, 29281, 20137, 22982,
  10095. 27597, 22675, 26286, 24149, 21215, 24917, [12106, 26408], [12140, 30446],
  10096. 30566, 29287, 31302, 25343, 21738, 21584, 38048, 37027, 23068, 32435,
  10097. 27670, 20035, 22902, 32784, 22856, 21335, 30007, 38590, 22218, 25376,
  10098. 33041, 24700, 38393, 28118, 21602, 39297, 20869, 23273, 33021, 22958,
  10099. 38675, 20522, 27877, 23612, 25311, 20320, 21311, 33147, 36870, 28346,
  10100. 34091, 25288, 24180, 30910, 25781, 25467, 24565, 23064, 37247, 40479,
  10101. 23615, 25423, 32834, 23421, 21870, 38218, 38221, 28037, 24744, 26592,
  10102. 29406, 20957, 23425, 25319, 27870, [12124, 29275], 25197, 38062, 32445,
  10103. 33043, 27987, 20892, 24324, 22900, 21162, 24594, [12069, 22899], 26262,
  10104. 34384, 30111, 25386, 25062, 31983, 35834, 21734, 27431, 40485, 27572,
  10105. 34261, 21589, 20598, 27812, 21866, 36276, 29228, 24085, 24597, 29750,
  10106. 25293, 25490, 29260, 24472, 28227, 27966, 25856, 28504, 30424, 30928,
  10107. 30460, 30036, 21028, 21467, 20051, 24222, 26049, 32810, 32982, 25243,
  10108. 21638, 21032, 28846, 34957, 36305, 27873, 21624, 32986, 22521, 35060,
  10109. 36180, 38506, 37197, 20329, 27803, 21943, 30406, 30768, 25256, 28921,
  10110. 28558, 24429, 34028, 26842, 30844, 31735, 33192, 26379, 40527, 25447,
  10111. 30896, 22383, 30738, 38713, 25209, 25259, 21128, 29749, 27607, 21860,
  10112. 33086, 30130, [12138, 30382], 21305, 30174, 20731, 23617, 35692, 31687,
  10113. 20559, [12122, 29255], 39575, 39128, 28418, 29922, 31080, 25735, 30629,
  10114. 25340, 39057, 36139, 21697, 32856, 20050, 22378, 33529, 33805, 24179,
  10115. 20973, 29942, 35780, 23631, 22369, 27900, 39047, 23110, 30772, 39748,
  10116. 36843, 31893, 21078, 25169, 38138, 20166, 33670, 33889, 33769, 33970,
  10117. 22484, 26420, 22275, 26222, 28006, 35889, 26333, 28689, 26399, 27450,
  10118. 26646, 25114, 22971, 19971, 20932, 28422, 26578, 27791, 20854, 26827,
  10119. 22855, 27495, 30054, 23822, 33040, 40784, 26071, 31048, 31041, 39569,
  10120. 36215, 23682, 20062, 20225, 21551, 22865, 30732, 22120, [12115, 27668],
  10121. 36804, 24323, 27773, 27875, 35755, 25488, 24688, 27965, 29301, 25190,
  10122. 38030, 38085, 21315, 36801, 31614, 20191, 35878, 20094, 40660, 38065,
  10123. 38067, 21069, 28508, 36963, 27973, 35892, 22545, 23884, [12107, 27424],
  10124. 27465, 26538, 21595, 33108, 32652, 22681, 34103, 24378, 25250, 27207,
  10125. 38201, 25970, 24708, 26725, 30631, 20052, 20392, 24039, 38808, 25772,
  10126. 32728, 23789, 20431, 31373, 20999, 33540, 19988, 24623, 31363, 38054,
  10127. 20405, 20146, 31206, 29748, 21220, 33465, 25810, 31165, 23517, 27777,
  10128. 38738, 36731, 27682, 20542, 21375, 28165, 25806, 26228, 27696, 24773,
  10129. 39031, 35831, 24198, 29756, 31351, 31179, 19992, 37041, 29699, 27714,
  10130. 22234, 37195, 27845, 36235, 21306, 34502, 26354, 36527, 23624, 39537,
  10131. 28192, 21462, 23094, 40843, 36259, 21435, 22280, 39079, 26435, 37275,
  10132. 27849, 20840, 30154, 25331, [12125, 29356], 21048, 21149, 32570, 28820,
  10133. 30264, 21364, 40522, 27063, 30830, 38592, 35033, 32676, 28982, 29123,
  10134. 20873, 26579, 29924, 22756, 25880, 22199, 35753, 39286, 25200, 32469,
  10135. 24825, 28909, 22764, 20161, [12040, 20154], 24525, 38887, 20219, 35748,
  10136. 20995, 22922, 32427, 25172, 20173, [12103, 26085], 25102, 33592, 33993,
  10137. 33635, 34701, 29076, 28342, 23481, 32466, 20887, 25545, 26580,
  10138. [12161, 32905], 33593, 34837, 20754, 23418, 22914, 36785, 20083, 27741,
  10139. [12042, 20837], 35109, 36719, 38446, 34122, 29790, 38160, 38384, 28070,
  10140. 33509, 24369, 25746, 27922, 33832, 33134, 40131, 22622, 36187, 19977,
  10141. 21441, 20254, 25955, 26705, 21971, 20007, 25620, 39578, 25195, 23234,
  10142. 29791, [12170, 33394], 28073, 26862, 20711, 33678, 30722, 26432, 21049,
  10143. 27801, 32433, 20667, 21861, 29022, 31579, 26194, 29642, 33515, 26441,
  10144. [12077, 23665], 21024, 29053, 34923, 38378, 38485, 25797, 36193, 33203,
  10145. 21892, 27733, 25159, 32558, 22674, 20260, 21830, 36175, 26188, 19978,
  10146. 23578, 35059, 26786, 25422, 31245, 28903, 33421, 21242, 38902, 23569,
  10147. 21736, 37045, 32461, 22882, 36170, 34503, [12166, 33292], 33293, 36198,
  10148. 25668, 23556, 24913, 28041, 31038, 35774, 30775, 30003, 21627, 20280,
  10149. [12189, 36523], 28145, 23072, 32453, 31070, 27784, 23457, 23158, 29978,
  10150. 32958, 24910, 28183, 22768, [12131, 29983], 29989, 29298, 21319, 32499,
  10151. 30465, 30427, 21097, 32988, 22307, 24072, 22833, 29422, 26045, 28287,
  10152. 35799, [12075, 23608], 34417, [12055, 21313], [12143, 30707], 25342, 26102,
  10153. 20160, [12215, 39135], 34432, 23454, 35782, 21490, [12142, 30690], 20351,
  10154. 23630, 39542, 22987, 24335, [12144, 31034], [12064, 22763], 19990, 26623,
  10155. 20107, 25325, 35475, 36893, 21183, 26159, 21980, 22124, 36866, 20181,
  10156. 20365, 37322, 39280, [12114, 27663], 24066, 24643, 23460, 35270, 35797,
  10157. 25910, [12095, 25163], [12216, 39318], 23432, 23551, 25480, 21806, 21463,
  10158. 30246, 20861, 34092, 26530, 26803, 27530, 25234, 36755, 21460, 33298,
  10159. 28113, 30095, 20070, 36174, 23408, 29087, 34223, 26257, 26329, 32626,
  10160. 34560, [12233, 40653], [12239, 40736], 23646, 26415, 36848, 26641, 26463,
  10161. 25101, 31446, 22661, 24246, 25968, 28465, 24661, 21047, 32781, 25684,
  10162. 34928, 29993, 24069, 26643, 25332, 38684, 21452, 29245, 35841,
  10163. [12116, 27700], 30561, 31246, 21550, 30636, 39034, 33308, 35828, 30805,
  10164. 26388, 28865, 26031, 25749, 22070, 24605, 31169, 21496, 19997, 27515,
  10165. 32902, 23546, 21987, 22235, 20282, 20284, 39282, 24051, 26494, 32824,
  10166. 24578, 39042, 36865, 23435, 35772, 35829, 25628, 33368, 25822, 22013,
  10167. 33487, 37221, 20439, 32032, 36895, 31903, 20723, 22609, 28335, 23487,
  10168. 35785, 32899, 37240, 33948, 31639, 34429, 38539, 38543, 32485, 39635,
  10169. 30862, 23681, 31319, 36930, 38567, 31071, 23385, 25439, 31499, 34001,
  10170. 26797, 21766, 32553, 29712, 32034, 38145, 25152, 22604, 20182, 23427,
  10171. 22905, 22612, 29549, 25374, 36427, 36367, 32974, 33492, 25260, 21488,
  10172. 27888, 37214, 22826, 24577, 27760, 22349, 25674, 36138, 30251, 28393,
  10173. 22363, 27264, 30192, 28525, 35885, 35848, 22374, 27631, 34962, 30899,
  10174. 25506, 21497, 28845, 27748, 22616, 25642, 22530, 26848, 33179, 21776,
  10175. 31958, 20504, 36538, 28108, 36255, 28907, 25487, 28059, 28372, 32486,
  10176. 33796, 26691, 36867, 28120, 38518, 35752, 22871, 29305, 34276, 33150,
  10177. 30140, 35466, 26799, 21076, 36386, 38161, 25552, 39064, 36420, 21884,
  10178. 20307, 26367, 22159, 24789, 28053, 21059, 23625, 22825, 28155, 22635,
  10179. [12133, 30000], 29980, 24684, 33300, 33094, 25361, 26465, 36834, 30522,
  10180. 36339, 36148, 38081, 24086, 21381, 21548, 28867, 27712, 24311, 20572,
  10181. 20141, 24237, 25402, 33351, 36890, 26704, 37230, 30643, 21516, 38108,
  10182. 24420, 31461, 26742, 25413, 31570, 32479, 30171, 20599, 25237, 22836,
  10183. 36879, 20984, 31171, 31361, 22270, 24466, 36884, 28034, 23648,
  10184. [12063, 22303], 21520, 20820, 28237, 22242, 25512, 39059, 33151, 34581,
  10185. 35114, 36864, 21534, 23663, 33216, 25302, 25176, 33073, 40501, 38464,
  10186. 39534, 39548, 26925, 22949, 25299, 21822, 25366, 21703, 34521, 27964,
  10187. 23043, [12129, 29926], 34972, 27498, 22806, 35916, 24367, 28286, 29609,
  10188. 39037, 20024, 28919, 23436, 30871, 25405, 26202, 30358, 24779, 23451,
  10189. 23113, 19975, 33109, 27754, 29579, 20129, 26505, [12153, 32593], 24448,
  10190. 26106, 26395, 24536, 22916, 23041, 24013, 24494, 21361, 38886, 36829,
  10191. 26693, 22260, 21807, 24799, 20026, 28493, 32500, 33479, 33806, 22996,
  10192. 20255, 20266, 23614, 32428, 26410, 34074, 21619, 30031, 32963, 21890,
  10193. 39759, 20301, 28205, 35859, 23561, 24944, 21355, 30239, 28201, 34442,
  10194. [12098, 25991], 38395, 32441, 21563, 31283, 32010, 38382, 21985, 32705,
  10195. 29934, 25373, 34583, 28065, 31389, 25105, 26017, 21351, 25569, 27779,
  10196. 24043, 21596, 38056, 20044, 27745, 35820, 23627, [12102, 26080], 33436,
  10197. 26791, 21566, 21556, [12111, 27595], 27494, 20116, 25410, 21320, 33310,
  10198. 20237, 20398, 22366, 25098, 38654, 26212, 29289, 21247, 21153, 24735,
  10199. 35823, 26132, 29081, 26512, 35199, 30802, 30717, 26224, 22075, 21560,
  10200. 38177, 29306, 31232, 24687, 24076, 24713, 33181, [12067, 22805], 24796,
  10201. 29060, 28911, 28330, 27728, 29312, 27268, 34989, 24109, 20064, 23219,
  10202. 21916, 38115, 27927, 31995, 38553, 25103, 32454, 30606, 34430, 21283,
  10203. 38686, 36758, 26247, 23777, 20384, 29421, 19979, 21414, 22799, 21523,
  10204. 25472, 38184, 20808, 20185, 40092, 32420, 21688, 36132, 34900, 33335,
  10205. 38386, 28046, 24358, 23244, 26174, 38505, 29616, 29486, 21439, 33146,
  10206. 39301, 32673, 23466, 38519, 38480, 32447, 30456, 21410, 38262,
  10207. [12217, 39321], 31665, 35140, 28248, 20065, 32724, 31077, 35814, 24819,
  10208. 21709, 20139, 39033, 24055, 27233, 20687, 21521, 35937, 33831, 30813,
  10209. 38660, 21066, 21742, 22179, 38144, 28040, 23477, 28102, 26195,
  10210. [12073, 23567], 23389, 26657, 32918, 21880, 31505, 25928, 26964, 20123,
  10211. 27463, 34638, 38795, 21327, 25375, 25658, 37034, 26012, 32961, 35856,
  10212. 20889, 26800, 21368, 34809, 25032, 27844, 27899, 35874, 23633, 34218,
  10213. 33455, 38156, 27427, [12191, 36763], 26032, 24571, [12092, 24515], 20449,
  10214. 34885, 26143, 33125, 29481, 24826, 20852, 21009, 22411, 24418, 37026,
  10215. [12175, 34892], 37266, 24184, 26447, 24615, 22995, 20804, 20982, 33016,
  10216. 21256, 27769, 38596, 29066, 20241, 20462, 32670, 26429, 21957, 38152,
  10217. 31168, 34966, 32483, 22687, 25100, 38656, 34394, 22040, 39035, 24464,
  10218. 35768, 33988, 37207, 21465, 26093, 24207, 30044, 24676, 32110, 23167,
  10219. 32490, 32493, 36713, 21927, 23459, 24748, 26059, [12126, 29572], 36873,
  10220. 30307, 30505, 32474, 38772, 34203, 23398, [12147, 31348], 38634,
  10221. [12174, 34880], 21195, 29071, 24490, 26092, 35810, 23547, 39535, 24033,
  10222. 27529, 27739, 35757, 35759, 36874, 36805, 21387, 25276, 40486, 40493,
  10223. 21568, 20011, 33469, [12123, 29273], 34460, 23830, 34905, 28079, 38597,
  10224. 21713, 20122, 35766, 28937, 21693, 38409, 28895, 28153, 30416, 20005,
  10225. 30740, 34578, 23721, 24310, [12180, 35328], 39068, 38414, 28814, 27839,
  10226. 22852, 25513, 30524, 34893, 28436, 33395, 22576, 29141, 21388, 30746,
  10227. 38593, 21761, 24422, 28976, 23476, 35866, 39564, 27523, 22830, 40495,
  10228. 31207, 26472, 25196, 20335, 30113, [12154, 32650], 27915, 38451, 27687,
  10229. 20208, 30162, 20859, 26679, 28478, 36992, 33136, 22934, 29814, 25671,
  10230. 23591, 36965, 31377, 35875, 23002, 21676, 33280, 33647, 35201, 32768,
  10231. 26928, 22094, 32822, 29239, 37326, 20918, 20063, 39029, 25494, 19994,
  10232. 21494, 26355, 33099, 22812, 28082, [12032, 19968], 22777, 21307, 25558,
  10233. 38129, 20381, 20234, [12176, 34915], 39056, 22839, 36951, 31227, 20202,
  10234. 33008, 30097, 27778, 23452, 23016, 24413, 26885, 34433, 20506, 24050,
  10235. [12036, 20057], 30691, 20197, 33402, 25233, 26131, [12194, 37009], 23673,
  10236. 20159, 24441, 33222, 36920, 32900, 30123, 20134, 35028, 24847, 27589,
  10237. 24518, 20041, 30410, 28322, 35811, 35758, 35850, 35793, 24322, 32764,
  10238. 32716, 32462, 33589, 33643, 22240, 27575, [12211, 38899], 38452, 23035,
  10239. 21535, 38134, 28139, 23493, 39278, 23609, 24341, 38544, 21360, 33521,
  10240. 27185, 23156, 40560, 24212, 32552, 33721, {f: 2, c: 33828}, 33639, 34631,
  10241. 36814, 36194, 30408, 24433, 39062, 30828, 26144, 21727, 25317, 20323,
  10242. 33219, 30152, 24248, 38605, 36362, 34553, 21647, 27891, 28044, 27704,
  10243. 24703, 21191, [12132, 29992], 24189, 20248, 24736, 24551, 23588, 30001,
  10244. 37038, 38080, 29369, 27833, 28216, [12195, 37193], 26377, 21451, 21491,
  10245. 20305, 37321, 35825, [12060, 21448], 24188, 36802, 28132, 20110, 30402,
  10246. 27014, 34398, 24858, 33286, 20313, 20446, 36926, 40060, 24841, 28189,
  10247. 28180, 38533, 20104, 23089, [12204, 38632], 19982, 23679, 31161, 23431,
  10248. 35821, [12155, 32701], [12127, 29577], 22495, 33419, 37057, 21505, 36935,
  10249. 21947, 23786, 24481, 24840, 27442, 29425, 32946, 35465, 28020, 23507,
  10250. 35029, 39044, 35947, 39533, 40499, 28170, 20900, 20803, 22435, 34945,
  10251. 21407, 25588, 36757, 22253, 21592, 22278, 29503, 28304, 32536, 36828,
  10252. 33489, 24895, 24616, 38498, [12104, 26352], 32422, 36234, 36291, 38053,
  10253. 23731, 31908, [12105, 26376], 24742, 38405, 32792, 20113, 37095, 21248,
  10254. 38504, 20801, 36816, 34164, 37213, 26197, 38901, 23381, 21277, 30776,
  10255. 26434, 26685, 21705, 28798, 23472, 36733, 20877, 22312, 21681, 25874,
  10256. 26242, 36190, 36163, 33039, 33900, 36973, 31967, 20991, 34299, 26531,
  10257. 26089, 28577, 34468, 36481, 22122, 36896, 30338, 28790, 29157, 36131,
  10258. 25321, 21017, 27901, 36156, 24590, 22686, 24974, 26366, 36192, 25166,
  10259. 21939, 28195, 26413, 36711, 38113, 38392, 30504, 26629, 27048, 21643,
  10260. 20045, 28856, 35784, 25688, 25995, 23429, 31364, 20538, 23528, 30651,
  10261. 27617, 35449, 31896, 27838, 30415, 26025, 36759, 23853, 23637, 34360,
  10262. 26632, 21344, 25112, 31449, 28251, 32509, 27167, 31456, 24432, 28467,
  10263. 24352, 25484, 28072, 26454, 19976, 24080, 36134, 20183, 32960, 30260,
  10264. 38556, 25307, 26157, 25214, 27836, 36213, 29031, 32617, 20806, 32903,
  10265. 21484, 36974, 25240, 21746, 34544, 36761, 32773, 38167, 34071, 36825,
  10266. 27993, 29645, 26015, 30495, 29956, 30759, 33275, 36126, 38024, 20390,
  10267. 26517, 30137, 35786, 38663, 25391, 38215, 38453, 33976, 25379, 30529,
  10268. 24449, 29424, 20105, 24596, 25972, 25327, 27491, 25919, 24103, 30151,
  10269. 37073, 35777, 33437, 26525, [12096, 25903], 21553, 34584, 30693, 32930,
  10270. 33026, 27713, 20043, 32455, 32844, 30452, 26893, 27542, 25191, 20540,
  10271. 20356, 22336, 25351, [12108, 27490], 36286, 21482, 26088, 32440, 24535,
  10272. 25370, 25527, [12164, 33267], 33268, 32622, 24092, 23769, 21046, 26234,
  10273. 31209, 31258, 36136, 28825, 30164, 28382, 27835, 31378, 20013, 30405,
  10274. 24544, 38047, 34935, 32456, 31181, 32959, 37325, 20210, 20247,
  10275. [12168, 33311], 21608, 24030, 27954, 35788, 31909, 36724, 32920, 24090,
  10276. 21650, 30385, 23449, 26172, 39588, 29664, 26666, 34523, 26417, 29482,
  10277. 35832, 35803, 36880, [12149, 31481], 28891, 29038, 25284, 30633, 22065,
  10278. 20027, 33879, 26609, 21161, 34496, 36142, 38136, 31569, 20303, 27880,
  10279. 31069, 39547, 25235, [12118, 29226], 25341, 19987, 30742, 36716, 25776,
  10280. 36186, 31686, 26729, 24196, 35013, 22918, 25758, 22766, 29366, 26894,
  10281. 38181, 36861, 36184, 22368, 32512, 35846, 20934, 25417, 25305, 21331,
  10282. 26700, 29730, 33537, 37196, 21828, 30528, 28796, 27978, 20857, 21672,
  10283. 36164, 23039, 28363, 28100, 23388, 32043, 20180, 31869, 28371,
  10284. [12070, 23376], [12163, 33258], 28173, 23383, 39683, 26837, 36394, 23447,
  10285. 32508, 24635, 32437, 37049, [12187, 36208], 22863, 25549, 31199,
  10286. [12188, 36275], 21330, 26063, 31062, 35781, 38459, 32452, 38075, 32386,
  10287. 22068, 37257, 26368, 32618, 23562, 36981, 26152, 24038, 20304, 26590,
  10288. 20570, 20316, 22352, 24231, 20109, 19980, 20800, 19984, 24319, 21317,
  10289. 19989, 20120, 19998, [12224, 39730], 23404, 22121, [12033, 20008], 31162,
  10290. [12035, 20031], [12052, 21269], 20039, 22829, [12120, 29243], 21358, 27664,
  10291. 22239, 32996, 39319, 27603, 30590, 40727, [12034, 20022], 20127, 40720,
  10292. 20060, 20073, 20115, 33416, 23387, 21868, 22031, 20164, 21389, 21405,
  10293. 21411, 21413, 21422, 38757, 36189, [12053, 21274], 21493, 21286, 21294,
  10294. 21310, 36188, 21350, 21347, 20994, 21000, 21006, 21037, 21043,
  10295. {f: 2, c: 21055}, 21068, 21086, 21089, 21084, 33967, 21117, 21122, 21121,
  10296. 21136, 21139, [12044, 20866], 32596, 20155, 20163, 20169, 20162, 20200,
  10297. 20193, 20203, 20190, 20251, 20211, 20258, 20324, 20213, 20261, 20263,
  10298. 20233, 20267, 20318, 20327, 25912, 20314, 20317, 20319, 20311, 20274,
  10299. 20285, 20342, 20340, 20369, 20361, 20355, 20367, 20350, 20347, 20394,
  10300. 20348, 20396, 20372, 20454, 20456, 20458, 20421, 20442, 20451, 20444,
  10301. 20433, 20447, 20472, 20521, 20556, 20467, 20524, 20495, 20526, 20525,
  10302. 20478, 20508, 20492, 20517, 20520, 20606, 20547, 20565, 20552, 20558,
  10303. 20588, 20603, 20645, 20647, 20649, 20666, 20694, 20742, 20717, 20716,
  10304. 20710, 20718, 20743, 20747, 20189, 27709, 20312, 20325, 20430,
  10305. [12245, 40864], 27718, 31860, 20846, 24061, 40649, 39320, 20865, 22804,
  10306. [12051, 21241], 21261, 35335, 21264, 20971, 22809, 20821, [12039, 20128],
  10307. 20822, 20147, 34926, 34980, 20149, 33044, 35026, 31104, 23348, 34819,
  10308. 32696, [12046, 20907], 20913, 20925, 20924, 20935, [12045, 20886], 20898,
  10309. 20901, 35744, {f: 2, c: 35750}, 35754, {f: 2, c: 35764}, 35767,
  10310. {f: 2, c: 35778}, 35787, 35791, 35790, {f: 3, c: 35794}, 35798,
  10311. {f: 2, c: 35800}, 35804, {f: 2, c: 35807}, 35812, {f: 2, c: 35816}, 35822,
  10312. 35824, 35827, 35830, 35833, 35836, {f: 2, c: 35839}, 35842, 35844, 35847,
  10313. 35852, 35855, {f: 2, c: 35857}, {f: 3, c: 35860}, 35865, 35867, 35864,
  10314. 35869, {f: 3, c: 35871}, 35877, 35879, {f: 2, c: 35882}, {f: 2, c: 35886},
  10315. {f: 2, c: 35890}, {f: 2, c: 35893}, [12057, 21353], 21370, 38429, 38434,
  10316. 38433, 38449, 38442, 38461, 38460, 38466, 38473, 38484, 38495, 38503,
  10317. 38508, 38514, 38516, 38536, 38541, 38551, 38576, 37015, 37019, 37021,
  10318. 37017, 37036, 37025, 37044, 37043, 37046, 37050, 37048, 37040, 37071,
  10319. 37061, 37054, 37072, 37060, 37063, 37075, 37094, 37090, 37084, 37079,
  10320. 37083, 37099, 37103, 37118, 37124, 37154, 37150, 37155, 37169, 37167,
  10321. 37177, 37187, 37190, 21005, 22850, 21154, {f: 2, c: 21164}, 21182, 21759,
  10322. 21200, 21206, 21232, 21471, 29166, 30669, [12085, 24308], [12048, 20981],
  10323. 20988, [12223, 39727], [12059, 21430], 24321, 30042, 24047, 22348, 22441,
  10324. 22433, 22654, 22716, 22725, 22737, 22313, 22316, 22314, 22323, 22329,
  10325. {f: 2, c: 22318}, 22364, 22331, 22338, 22377, 22405, 22379, 22406, 22396,
  10326. 22395, 22376, 22381, 22390, 22387, 22445, 22436, 22412, 22450, 22479,
  10327. 22439, 22452, 22419, 22432, 22485, 22488, 22490, 22489, 22482, 22456,
  10328. 22516, 22511, 22520, 22500, 22493, 22539, 22541, 22525, 22509, 22528,
  10329. 22558, 22553, 22596, 22560, 22629, 22636, 22657, 22665, 22682, 22656,
  10330. 39336, 40729, 25087, 33401, 33405, 33407, 33423, 33418, 33448, 33412,
  10331. 33422, 33425, 33431, 33433, 33451, 33464, 33470, 33456, 33480, 33482,
  10332. 33507, 33432, 33463, 33454, {f: 2, c: 33483}, 33473, 33449, 33460, 33441,
  10333. 33450, 33439, 33476, 33486, 33444, 33505, 33545, 33527, 33508, 33551,
  10334. 33543, 33500, 33524, 33490, 33496, 33548, 33531, 33491, 33553, 33562,
  10335. 33542, {f: 2, c: 33556}, 33504, 33493, 33564, 33617, {f: 2, c: 33627},
  10336. 33544, 33682, 33596, 33588, 33585, 33691, 33630, 33583, 33615, 33607,
  10337. 33603, 33631, 33600, 33559, 33632, 33581, 33594, 33587, 33638, 33637,
  10338. 33640, 33563, 33641, 33644, 33642, {f: 2, c: 33645}, 33712, 33656,
  10339. {f: 2, c: 33715}, 33696, 33706, 33683, 33692, 33669, 33660, 33718, 33705,
  10340. 33661, 33720, 33659, 33688, 33694, 33704, 33722, 33724, 33729, 33793,
  10341. 33765, 33752, 22535, 33816, 33803, 33757, 33789, 33750, 33820, 33848,
  10342. 33809, 33798, 33748, 33759, 33807, 33795, {f: 2, c: 33784}, 33770, 33733,
  10343. 33728, 33830, 33776, 33761, 33884, 33873, 33882, 33881, 33907,
  10344. {f: 2, c: 33927}, 33914, 33929, 33912, 33852, 33862, 33897, 33910, 33932,
  10345. 33934, 33841, 33901, 33985, 33997, 34000, 34022, 33981, 34003, 33994,
  10346. 33983, 33978, 34016, 33953, 33977, 33972, 33943, 34021, 34019, 34060,
  10347. 29965, 34104, 34032, 34105, 34079, 34106, 34134, 34107, 34047, 34044,
  10348. 34137, 34120, 34152, 34148, 34142, 34170, 30626, 34115, 34162, 34171,
  10349. 34212, 34216, 34183, 34191, 34169, 34222, 34204, 34181, 34233, 34231,
  10350. 34224, 34259, 34241, 34268, 34303, 34343, 34309, 34345, 34326, 34364,
  10351. [12086, 24318], 24328, 22844, 22849, 32823, 22869, 22874, 22872, 21263,
  10352. [12074, 23586], 23589, 23596, 23604, 25164, 25194, 25247, 25275, 25290,
  10353. 25306, 25303, 25326, 25378, 25334, 25401, 25419, 25411, 25517, 25590,
  10354. 25457, 25466, 25486, 25524, 25453, 25516, 25482, 25449, 25518, 25532,
  10355. 25586, 25592, 25568, 25599, 25540, 25566, 25550, 25682, 25542, 25534,
  10356. 25669, 25665, 25611, 25627, 25632, 25612, 25638, 25633, 25694, 25732,
  10357. 25709, 25750, 25722, {f: 2, c: 25783}, 25753, 25786, 25792, 25808, 25815,
  10358. 25828, 25826, 25865, 25893, 25902, [12087, 24331], 24530, 29977, 24337,
  10359. 21343, 21489, 21501, 21481, 21480, 21499, 21522, 21526, 21510, 21579,
  10360. {f: 3, c: 21586}, 21590, 21571, 21537, 21591, 21593, 21539, 21554, 21634,
  10361. 21652, 21623, 21617, 21604, {f: 2, c: 21658}, 21636, 21622, 21606, 21661,
  10362. 21712, 21677, 21698, 21684, 21714, 21671, 21670, {f: 2, c: 21715}, 21618,
  10363. 21667, 21717, 21691, 21695, 21708, {f: 2, c: 21721}, 21724,
  10364. {f: 2, c: 21673}, 21668, 21725, 21711, 21726, 21787, 21735, 21792, 21757,
  10365. 21780, 21747, {f: 2, c: 21794}, 21775, 21777, 21799, 21802, 21863, 21903,
  10366. 21941, 21833, 21869, 21825, 21845, 21823, 21840, 21820, 21815, 21846,
  10367. {f: 3, c: 21877}, 21811, 21808, 21852, 21899, 21970, 21891, 21937, 21945,
  10368. 21896, 21889, 21919, 21886, 21974, 21905, 21883, 21983, {f: 2, c: 21949},
  10369. 21908, 21913, 21994, 22007, 21961, 22047, 21969, {f: 2, c: 21995}, 21972,
  10370. 21990, 21981, 21956, 21999, 21989, {f: 2, c: 22002}, {f: 2, c: 21964},
  10371. 21992, 22005, 21988, 36756, 22046, 22024, 22028, 22017, 22052, 22051,
  10372. 22014, 22016, 22055, 22061, 22104, 22073, 22103, 22060, 22093, 22114,
  10373. 22105, 22108, 22092, 22100, 22150, 22116, 22129, 22123, {f: 2, c: 22139},
  10374. 22149, 22163, 22191, 22228, [12062, 22231], 22237, 22241, 22261, 22251,
  10375. 22265, 22271, 22276, 22282, 22281, 22300, 24079, 24089, 24084, 24081,
  10376. 24113, {f: 2, c: 24123}, 24119, 24132, 24148, 24155, 24158, 24161, 23692,
  10377. 23674, 23693, 23696, 23702, 23688, {f: 2, c: 23704}, 23697, 23706, 23708,
  10378. 23733, 23714, 23741, 23724, 23723, 23729, 23715, 23745, 23735, 23748,
  10379. 23762, 23780, 23755, 23781, {f: 2, c: 23810}, 23847, 23846, 23854, 23844,
  10380. 23838, 23814, 23835, 23896, 23870, 23860, 23869, 23916, 23899, 23919,
  10381. 23901, 23915, 23883, 23882, 23913, 23924, 23938, 23961, 23965, 35955,
  10382. 23991, 24005, [12091, 24435], 24439, 24450, 24455, 24457, 24460, 24469,
  10383. 24473, 24476, 24488, 24493, 24501, 24508, 34914, [12090, 24417], 29357,
  10384. 29360, 29364, {f: 2, c: 29367}, 29379, 29377, 29390, 29389, 29394, 29416,
  10385. 29423, 29417, 29426, 29428, 29431, 29441, 29427, 29443, {f: 2, c: 29434},
  10386. 29463, 29459, 29473, 29450, 29470, 29469, 29461, 29474, 29497, 29477,
  10387. 29484, 29496, 29489, 29520, 29517, 29527, 29536, 29548, 29551, 29566,
  10388. [12167, 33307], 22821, 39143, 22820, [12065, 22786], 39267,
  10389. {f: 6, c: 39271}, 39284, 39287, 39293, 39296, 39300, 39303, 39306, 39309,
  10390. {f: 2, c: 39312}, {f: 3, c: 39315}, 24192, 24209, 24203, 24214, 24229,
  10391. 24224, 24249, 24245, 24254, 24243, 36179, 24274, 24273, 24283, 24296,
  10392. 24298, 33210, 24516, 24521, 24534, 24527, 24579, 24558, 24580, 24545,
  10393. 24548, 24574, {f: 2, c: 24581}, 24554, 24557, 24568, 24601, 24629, 24614,
  10394. 24603, 24591, 24589, 24617, 24619, 24586, 24639, 24609, {f: 2, c: 24696},
  10395. 24699, 24698, 24642, 24682, 24701, 24726, 24730, 24749, 24733, 24707,
  10396. 24722, 24716, 24731, 24812, 24763, 24753, 24797, 24792, 24774, 24794,
  10397. 24756, 24864, 24870, 24853, 24867, 24820, 24832, 24846, 24875, 24906,
  10398. 24949, 25004, 24980, 24999, 25015, 25044, 25077, 24541, 38579, 38377,
  10399. 38379, 38385, 38387, {f: 2, c: 38389}, 38396, 38398, {f: 2, c: 38403},
  10400. 38406, 38408, {f: 4, c: 38410}, 38415, 38418, {f: 3, c: 38421},
  10401. {f: 2, c: 38425}, 20012, [12121, 29247], 25109, 27701, 27732, 27740, 27722,
  10402. 27811, 27781, 27792, 27796, 27788, {f: 2, c: 27752}, 27764, 27766, 27782,
  10403. 27817, 27856, 27860, 27821, {f: 2, c: 27895}, 27889, 27863, 27826, 27872,
  10404. 27862, 27898, 27883, 27886, 27825, 27859, 27887, 27902, 27961, 27943,
  10405. 27916, 27971, 27976, 27911, 27908, 27929, 27918, 27947, 27981, 27950,
  10406. 27957, 27930, 27983, 27986, 27988, 27955, 28049, 28015, 28062, 28064,
  10407. 27998, {f: 2, c: 28051}, 27996, 28000, 28028, 28003, 28186, 28103, 28101,
  10408. 28126, 28174, 28095, 28128, 28177, 28134, 28125, 28121, 28182, 28075,
  10409. 28172, 28078, 28203, 28270, 28238, 28267, 28338, 28255, 28294,
  10410. {f: 2, c: 28243}, 28210, 28197, 28228, 28383, 28337, 28312, 28384, 28461,
  10411. 28386, 28325, 28327, 28349, 28347, 28343, 28375, 28340, 28367, 28303,
  10412. 28354, 28319, 28514, {f: 2, c: 28486}, 28452, 28437, 28409, 28463, 28470,
  10413. 28491, 28532, 28458, 28425, 28457, 28553, 28557, 28556, 28536, 28530,
  10414. 28540, 28538, 28625, 28617, 28583, 28601, 28598, 28610, 28641, 28654,
  10415. 28638, 28640, 28655, 28698, 28707, 28699, 28729, 28725, 28751, 28766,
  10416. [12071, 23424], 23428, 23445, 23443, 23461, 23480, 29999, 39582, 25652,
  10417. 23524, 23534, 35120, 23536, 36423, 35591, 36790, 36819, 36821, 36837,
  10418. 36846, 36836, 36841, 36838, 36851, 36840, 36869, 36868, 36875, 36902,
  10419. 36881, 36877, 36886, 36897, {f: 2, c: 36917}, 36909, 36911, 36932,
  10420. {f: 2, c: 36945}, 36944, 36968, 36952, 36962, 36955, 26297, 36980, 36989,
  10421. 36994, 37000, 36995, 37003, [12089, 24400], 24407, 24406, 24408, 23611,
  10422. 21675, 23632, 23641, 23409, 23651, 23654, 32700, 24362, 24361, 24365,
  10423. 33396, 24380, 39739, [12076, 23662], 22913, 22915, 22925, {f: 2, c: 22953},
  10424. 22947, 22935, 22986, 22955, 22942, 22948, 22994, 22962, 22959, 22999,
  10425. 22974, {f: 2, c: 23045}, 23005, 23048, 23011, 23000, 23033, 23052, 23049,
  10426. 23090, 23092, 23057, 23075, 23059, 23104, 23143, 23114, 23125, 23100,
  10427. 23138, 23157, 33004, 23210, 23195, 23159, 23162, 23230, 23275, 23218,
  10428. 23250, 23252, 23224, 23264, 23267, 23281, 23254, 23270, 23256, 23260,
  10429. 23305, 23319, 23318, 23346, 23351, 23360, 23573, 23580, 23386, 23397,
  10430. 23411, 23377, 23379, 23394, 39541, {f: 2, c: 39543}, 39546, 39551, 39549,
  10431. {f: 2, c: 39552}, 39557, 39560, 39562, 39568, {f: 2, c: 39570}, 39574,
  10432. 39576, {f: 3, c: 39579}, {f: 2, c: 39583}, {f: 2, c: 39586}, 39589, 39591,
  10433. 32415, 32417, 32419, 32421, {f: 2, c: 32424}, 32429, 32432, 32446,
  10434. {f: 3, c: 32448}, 32457, {f: 2, c: 32459}, 32464, 32468, 32471, 32475,
  10435. {f: 2, c: 32480}, 32488, 32491, {f: 2, c: 32494}, {f: 2, c: 32497}, 32525,
  10436. 32502, {f: 2, c: 32506}, 32510, {f: 3, c: 32513}, {f: 2, c: 32519},
  10437. {f: 2, c: 32523}, 32527, {f: 2, c: 32529}, 32535, 32537, 32540, 32539,
  10438. 32543, {f: 7, c: 32545}, {f: 4, c: 32554}, {f: 5, c: 32559}, 32565,
  10439. [12083, 24186], 30079, [12078, 24027], 30014, 37013, 29582, 29585, 29614,
  10440. 29602, 29599, 29647, 29634, 29649, 29623, 29619, 29632, 29641, 29640,
  10441. 29669, 29657, 39036, 29706, 29673, 29671, 29662, 29626, 29682, 29711,
  10442. 29738, 29787, 29734, 29733, 29736, 29744, 29742, 29740, 29723, 29722,
  10443. 29761, 29788, 29783, 29781, 29785, 29815, 29805, 29822, 29852, 29838,
  10444. {f: 2, c: 29824}, 29831, 29835, 29854, {f: 2, c: 29864}, 29840, 29863,
  10445. 29906, 29882, {f: 3, c: 38890}, 26444, 26451, 26462, 26440, 26473, 26533,
  10446. 26503, 26474, 26483, 26520, 26535, 26485, 26536, 26526, 26541, 26507,
  10447. 26487, 26492, 26608, 26633, 26584, 26634, 26601, 26544, 26636, 26585,
  10448. 26549, 26586, 26547, 26589, 26624, 26563, 26552, 26594, 26638, 26561,
  10449. 26621, {f: 2, c: 26674}, {f: 2, c: 26720}, 26702, 26722, 26692, 26724,
  10450. 26755, 26653, 26709, 26726, 26689, 26727, 26688, 26686, 26698, 26697,
  10451. 26665, 26805, 26767, 26740, 26743, 26771, 26731, 26818, 26990, 26876,
  10452. {f: 2, c: 26911}, 26873, 26916, 26864, 26891, 26881, 26967, 26851, 26896,
  10453. 26993, 26937, 26976, 26946, 26973, 27012, 26987, 27008, 27032, 27000,
  10454. 26932, 27084, {f: 2, c: 27015}, 27086, 27017, 26982, 26979, 27001, 27035,
  10455. 27047, 27067, 27051, 27053, 27092, 27057, 27073, 27082, 27103, 27029,
  10456. 27104, 27021, 27135, 27183, 27117, {f: 2, c: 27159}, 27237, 27122, 27204,
  10457. 27198, 27296, 27216, 27227, 27189, 27278, 27257, 27197, 27176, 27224,
  10458. 27260, 27281, 27280, 27305, 27287, 27307, 29495, 29522, {f: 2, c: 27521},
  10459. 27527, 27524, {f: 2, c: 27538}, 27533, {f: 2, c: 27546}, 27553, 27562,
  10460. 36715, 36717, {f: 3, c: 36721}, {f: 2, c: 36725}, 36728, 36727,
  10461. {f: 2, c: 36729}, 36732, 36734, {f: 2, c: 36737}, 36740, 36743, 36747,
  10462. {f: 3, c: 36749}, 36760, 36762, 36558, 25099, 25111, 25115, 25119, 25122,
  10463. 25121, 25125, 25124, 25132, 33255, 29935, 29940, 29951, 29967, 29969,
  10464. 29971, [12097, 25908], {f: 3, c: 26094}, 26122, 26137, 26482, 26115, 26133,
  10465. 26112, 28805, 26359, 26141, 26164, 26161, 26166, 26165, 32774, 26207,
  10466. 26196, 26177, 26191, 26198, 26209, 26199, 26231, 26244, 26252, 26279,
  10467. 26269, 26302, {f: 2, c: 26331}, 26342, 26345, {f: 2, c: 36146}, 36150,
  10468. 36155, 36157, 36160, {f: 2, c: 36165}, {f: 2, c: 36168}, 36167, 36173,
  10469. 36181, 36185, 35271, {f: 3, c: 35274}, {f: 4, c: 35278}, 29294, 29343,
  10470. 29277, 29286, 29295, {f: 2, c: 29310}, 29316, 29323, 29325, 29327, 29330,
  10471. 25352, 25394, 25520, 25663, 25816, 32772, 27626, 27635, 27645, 27637,
  10472. 27641, 27653, 27655, 27654, 27661, 27669, {f: 3, c: 27672}, 27681, 27689,
  10473. 27684, 27690, 27698, 25909, 25941, 25963, 29261, 29266, 29270, 29232,
  10474. 34402, 21014, 32927, 32924, 32915, 32956, 26378, 32957, 32945, 32939,
  10475. 32941, 32948, 32951, {f: 4, c: 32999}, 32987, 32962, 32964, 32985, 32973,
  10476. 32983, 26384, 32989, 33003, 33009, 33012, 33005, {f: 2, c: 33037}, 33010,
  10477. 33020, 26389, 33042, 35930, 33078, 33054, 33068, 33048, 33074, 33096,
  10478. 33100, 33107, 33140, {f: 2, c: 33113}, 33137, 33120, 33129,
  10479. {f: 2, c: 33148}, 33133, 33127, 22605, 23221, 33160, 33154, 33169, 28373,
  10480. 33187, 33194, 33228, 26406, 33226, 33211, 33217, 33190, 27428, 27447,
  10481. 27449, 27459, 27462, 27481, {f: 3, c: 39121}, 39125, {f: 2, c: 39129},
  10482. [12110, 27571], 24384, 27586, 35315, 26000, 40785, 26003, 26044, 26054,
  10483. 26052, 26051, 26060, 26062, 26066, 26070, 28800, 28828, 28822, 28829,
  10484. 28859, 28864, 28855, 28843, 28849, 28904, 28874, 28944, 28947, 28950,
  10485. 28975, 28977, 29043, 29020, 29032, 28997, 29042, 29002, 29048, 29050,
  10486. 29080, 29107, 29109, 29096, 29088, 29152, 29140, 29159, 29177, 29213,
  10487. 29224, 28780, 28952, 29030, 29113, 25150, 25149, 25155, {f: 2, c: 25160},
  10488. 31035, 31040, 31046, 31049, {f: 2, c: 31067}, 31059, 31066, 31074, 31063,
  10489. 31072, 31087, 31079, 31098, 31109, 31114, 31130, 31143, 31155, 24529,
  10490. 24528, 24636, 24669, 24666, 24679, 24641, 24665, 24675, 24747, 24838,
  10491. 24845, 24925, 25001, 24989, 25035, 25041, 25094, 32896, [12160, 32895],
  10492. 27795, 27894, 28156, 30710, 30712, 30720, 30729, {f: 2, c: 30743}, 30737,
  10493. 26027, 30765, {f: 2, c: 30748}, {f: 3, c: 30777}, 30751, 30780, 30757,
  10494. 30764, 30755, 30761, 30798, 30829, {f: 2, c: 30806}, 30758, 30800, 30791,
  10495. 30796, 30826, 30875, 30867, 30874, 30855, 30876, 30881, 30883, 30898,
  10496. 30905, 30885, 30932, 30937, 30921, 30956, 30962, 30981, 30964, 30995,
  10497. 31012, 31006, 31028, 40859, [12235, 40697], {f: 2, c: 40699}, 30449, 30468,
  10498. 30477, 30457, {f: 2, c: 30471}, 30490, 30498, 30489, 30509, 30502, 30517,
  10499. 30520, {f: 2, c: 30544}, 30535, 30531, 30554, 30568, 30562, 30565, 30591,
  10500. 30605, 30589, 30592, 30604, 30609, {f: 2, c: 30623}, 30640, 30645, 30653,
  10501. 30010, 30016, 30030, 30027, 30024, 30043, 30066, 30073, 30083, 32600,
  10502. 32609, 32607, 35400, 32616, 32628, 32625, 32633, 32641, 32638, 30413,
  10503. 30437, 34866, {f: 3, c: 38021}, 38027, 38026, {f: 2, c: 38028},
  10504. {f: 2, c: 38031}, 38036, 38039, 38037, {f: 3, c: 38042}, {f: 2, c: 38051},
  10505. 38059, 38058, 38061, 38060, {f: 2, c: 38063}, 38066, 38068,
  10506. {f: 5, c: 38070}, {f: 2, c: 38076}, 38079, 38084, {f: 7, c: 38088},
  10507. {f: 3, c: 38096}, {f: 3, c: 38101}, 38105, 38104, 38107, {f: 3, c: 38110},
  10508. 38114, {f: 2, c: 38116}, {f: 2, c: 38119}, 38122, 38121, 38123,
  10509. {f: 2, c: 38126}, {f: 3, c: 38131}, 38135, 38137, {f: 2, c: 38140}, 38143,
  10510. 38147, 38146, {f: 2, c: 38150}, {f: 2, c: 38153}, {f: 3, c: 38157},
  10511. {f: 5, c: 38162}, 38168, 38171, {f: 3, c: 38173}, 38178, {f: 2, c: 38186},
  10512. 38185, 38188, {f: 2, c: 38193}, 38196, {f: 3, c: 38198}, 38204,
  10513. {f: 2, c: 38206}, 38210, 38197, {f: 3, c: 38212}, 38217, 38220,
  10514. {f: 2, c: 38222}, {f: 3, c: 38226}, {f: 4, c: 38230}, 38235,
  10515. {f: 2, c: 38238}, 38237, {f: 2, c: 38241}, {f: 9, c: 38244}, 38255,
  10516. {f: 3, c: 38257}, 38202, 30695, 30700, 38601, 31189, 31213, 31203, 31211,
  10517. 31238, 23879, 31235, 31234, 31262, 31252, 31289, 31287, 31313, 40655,
  10518. 39333, 31344, 30344, 30350, 30355, 30361, 30372, 29918, 29920, 29996,
  10519. 40480, 40482, {f: 5, c: 40488}, 40498, 40497, 40502, 40504, 40503,
  10520. {f: 2, c: 40505}, 40510, {f: 2, c: 40513}, 40516, {f: 4, c: 40518},
  10521. {f: 2, c: 40523}, 40526, 40529, 40533, 40535, {f: 3, c: 40538}, 40542,
  10522. 40547, {f: 7, c: 40550}, 40561, 40557, 40563, [12135, 30098], 30100, 30102,
  10523. 30112, 30109, 30124, 30115, {f: 2, c: 30131}, 30136, 30148, 30129, 30128,
  10524. 30147, 30146, 30166, 30157, 30179, 30184, 30182, 30180, 30187, 30183,
  10525. 30211, 30193, 30204, 30207, 30224, 30208, 30213, 30220, 30231, 30218,
  10526. 30245, 30232, 30229, 30233, 30235, 30268, 30242, 30240, 30272, 30253,
  10527. 30256, 30271, 30261, 30275, 30270, 30259, 30285, 30302, 30292, 30300,
  10528. 30294, 30315, 30319, 32714, 31462, {f: 2, c: 31352}, 31360, 31366, 31368,
  10529. 31381, 31398, 31392, 31404, 31400, 31405, 31411, 34916, 34921, 34930,
  10530. 34941, 34943, 34946, 34978, 35014, 34999, 35004, 35017, 35042, 35022,
  10531. 35043, 35045, 35057, 35098, 35068, 35048, 35070, 35056, 35105, 35097,
  10532. 35091, 35099, 35082, 35124, 35115, 35126, 35137, 35174, 35195,
  10533. [12134, 30091], 32997, 30386, 30388, 30684, [12158, 32786], 32788, 32790,
  10534. 32796, 32800, 32802, {f: 3, c: 32805}, 32809, 32808, 32817, 32779, 32821,
  10535. 32835, 32838, 32845, 32850, 32873, 32881, 35203, 39032, 39040, 39043,
  10536. 39049, {f: 2, c: 39052}, 39055, 39060, {f: 2, c: 39066}, {f: 2, c: 39070},
  10537. {f: 2, c: 39073}, {f: 2, c: 39077}, [12172, 34381], 34388, 34412, 34414,
  10538. 34431, 34426, 34428, 34427, 34472, 34445, 34443, 34476, 34461, 34471,
  10539. 34467, 34474, 34451, 34473, 34486, 34500, 34485, 34510, 34480, 34490,
  10540. 34481, 34479, 34505, 34511, 34484, 34537, {f: 2, c: 34545}, 34541, 34547,
  10541. 34512, 34579, 34526, 34548, 34527, 34520, 34513, 34563, 34567, 34552,
  10542. 34568, 34570, 34573, 34569, 34595, 34619, 34590, 34597, 34606, 34586,
  10543. 34622, 34632, 34612, 34609, 34601, 34615, 34623, 34690, 34594,
  10544. {f: 2, c: 34685}, 34683, 34656, 34672, 34636, 34670, 34699, 34643, 34659,
  10545. 34684, 34660, 34649, 34661, 34707, 34735, 34728, 34770, 34758, 34696,
  10546. 34693, 34733, 34711, 34691, 34731, 34789, 34732, 34741, 34739, 34763,
  10547. 34771, 34749, 34769, 34752, 34762, 34779, 34794, 34784, 34798, 34838,
  10548. 34835, 34814, 34826, 34843, 34849, 34873, 34876, [12152, 32566], 32578,
  10549. {f: 2, c: 32580}, 33296, 31482, 31485, 31496, {f: 2, c: 31491}, 31509,
  10550. 31498, 31531, 31503, 31559, 31544, 31530, 31513, 31534, 31537, 31520,
  10551. 31525, 31524, 31539, 31550, 31518, 31576, 31578, 31557, 31605, 31564,
  10552. 31581, 31584, 31598, 31611, 31586, 31602, 31601, 31632, {f: 2, c: 31654},
  10553. 31672, 31660, 31645, 31656, 31621, 31658, 31644, 31650, 31659, 31668,
  10554. 31697, 31681, 31692, 31709, 31706, {f: 2, c: 31717}, 31722, 31756, 31742,
  10555. 31740, 31759, 31766, 31755, 31775, 31786, 31782, 31800, 31809, 31808,
  10556. 33278, {f: 2, c: 33281}, 33284, 33260, 34884, {f: 3, c: 33313}, 33325,
  10557. 33327, 33320, 33323, 33336, 33339, {f: 2, c: 33331}, 33342, 33348, 33353,
  10558. 33355, 33359, 33370, 33375, 33384, 34942, 34949, 34952, 35032, 35039,
  10559. 35166, 32669, 32671, 32679, {f: 2, c: 32687}, 32690, 31868, 25929, 31889,
  10560. 31901, 31900, 31902, 31906, 31922, {f: 2, c: 31932}, 31937, 31943,
  10561. {f: 2, c: 31948}, 31944, 31941, 31959, 31976, [12169, 33390], 26280, 32703,
  10562. 32718, 32725, 32741, 32737, 32742, 32745, 32750, 32755, [12151, 31992],
  10563. 32119, 32166, 32174, 32327, 32411, 40632, 40628, 36211, 36228, 36244,
  10564. 36241, 36273, 36199, 36205, 35911, 35913, 37194, 37200, {f: 2, c: 37198},
  10565. 37220, 37218, 37217, 37232, 37225, 37231, {f: 2, c: 37245}, 37234, 37236,
  10566. 37241, 37260, 37253, 37264, 37261, 37265, {f: 2, c: 37282}, 37290,
  10567. {f: 3, c: 37293}, 37301, 37300, 37306, [12183, 35925], 40574, 36280, 36331,
  10568. 36357, 36441, 36457, 36277, 36287, 36284, 36282, 36292, {f: 2, c: 36310},
  10569. 36314, 36318, {f: 2, c: 36302}, 36315, 36294, 36332, {f: 2, c: 36343},
  10570. 36323, 36345, 36347, 36324, 36361, 36349, 36372, 36381, 36383, 36396,
  10571. 36398, 36387, 36399, 36410, 36416, 36409, 36405, 36413, 36401, 36425,
  10572. {f: 2, c: 36417}, {f: 2, c: 36433}, 36426, 36464, 36470, 36476, 36463,
  10573. 36468, 36485, 36495, 36500, 36496, 36508, 36510, [12184, 35960], 35970,
  10574. 35978, 35973, 35992, 35988, 26011, 35286, 35294, 35290, 35292, 35301,
  10575. 35307, 35311, 35390, 35622, 38739, 38633, 38643, 38639, 38662, 38657,
  10576. 38664, 38671, 38670, 38698, 38701, 38704, 38718, 40832, 40835,
  10577. {f: 6, c: 40837}, 40844, 40702, 40715, 40717, [12203, 38585],
  10578. {f: 2, c: 38588}, 38606, 38610, 30655, 38624, 37518, 37550, 37576, 37694,
  10579. 37738, 37834, 37775, 37950, 37995, 40063, 40066, {f: 4, c: 40069}, 31267,
  10580. 40075, 40078, {f: 3, c: 40080}, {f: 2, c: 40084}, {f: 2, c: 40090},
  10581. {f: 6, c: 40094}, {f: 5, c: 40101}, 40107, {f: 2, c: 40109},
  10582. {f: 8, c: 40112}, {f: 4, c: 40122}, {f: 4, c: 40132}, {f: 7, c: 40138},
  10583. {f: 3, c: 40147}, {f: 3, c: 40151}, {f: 2, c: 40156}, 40159, 40162, 38780,
  10584. 38789, {f: 2, c: 38801}, 38804, 38831, 38827, 38819, 38834, 38836, 39601,
  10585. 39600, 39607, 40536, 39606, 39610, 39612, 39617, 39616, 39621, 39618,
  10586. {f: 2, c: 39627}, 39633, 39749, 39747, 39751, 39753, 39752, 39757, 39761,
  10587. 39144, 39181, 39214, 39253, 39252, [12221, 39647], 39649, 39654, 39663,
  10588. 39659, 39675, 39661, 39673, 39688, 39695, 39699, 39711, 39715,
  10589. {f: 2, c: 40637}, 32315, 40578, {f: 2, c: 40583}, 40587, 40594, 37846,
  10590. 40605, 40607, {f: 3, c: 40667}, 40672, 40671, 40674, 40681, 40679, 40677,
  10591. 40682, 40687, 40738, 40748, 40751, 40761, 40759, {f: 2, c: 40765}, 40772,
  10592. 12295, {s: 13}, 30362, 34297, 31001, 24859, 39599, 35158, 22761, 32631,
  10593. 25850, 25943, 38930, 36774, 32070, 24171, 32129, 37770, 35607, 39165,
  10594. 23542, 22577, 39825, 36649, [12185, 35997], 37575, 29437, 20633, 24970,
  10595. 32179, 31558, 30050, 25987, 24163, 38281, 37002, 32232, 36022, 35722,
  10596. 36783, 36782, 27161, 40009, 30303, 28693, 28657, 36051, 25839, 39173,
  10597. 25765, 37474, 37457, 39361, 35036, 36001, 21443, 34870, 27544, 24922,
  10598. 24920, 29158, 33980, 33369, 20489, 28356, 21408, 20596, 28204, 23652,
  10599. 35435, 25881, 25723, 34796, 39262, 35730, 32399, 37855, 29987, 38369,
  10600. 39019, 22580, 22039, [12199, 38263], 20767, 33144, 24288, 26274, 37396,
  10601. [12190, 36554], 24505, 22645, 38515, 35183, 31281, 25074, 35488, 39425,
  10602. 36978, 39347, [12242, 40786], 29118, 34909, 34802, 23541, 30087, 36490,
  10603. 31820, 32162, 37276, 37604, 38619, 30990, 20786, 35320, 34389, 20659,
  10604. 30241, 38358, 21109, 37656, 32020, 32189, 36781, 35422, 36060, 32880,
  10605. 24478, 21474, 36517, 31428, 37679, 36948, 24118, 36024, 25812, 21934,
  10606. 37170, 25763, 33213, 24986, 35477, 24392, 30070, 25803, 40680, 34153,
  10607. 27284, 25623, 23798, 31153, 23566, 29128, 37159, 25973, 28364, 36958,
  10608. 32224, 39003, 40670, 22666, 38651, 28593, 37347, 35519, 35548, 37336,
  10609. 38914, 37664, 35330, 26481, 21205, 26847, 20941, [12222, 39717], 29346,
  10610. 29544, 35712, 36077, 37709, 37723, 26039, 32222, 38538, 23565, 22136,
  10611. 38931, 37389, 22890, 22702, 40285, 38989, 35355, 24801, 39187, 20818,
  10612. 29246, 39180, 36019, 30332, 32624, 38309, 31020, 37353, 29033, 31684,
  10613. 36009, 39151, 35370, 32033, [12214, 39131], 35513, 24290, 36027, 32027,
  10614. 22707, 22894, 24996, 31966, 35920, 26963, 37586, [12213, 39080], 30219,
  10615. 39342, 32299, 35575, 40179, 33178, 36667, 25771, 36628, 36070, 24489,
  10616. 36000, 35331, 23142, 32283, 35442, 37411, 33995, 24185, 36245, 36123,
  10617. 23713, 21083, 37628, 32177, 23831, 37804, 25841, 40255, 38307, 37499,
  10618. 20491, 32102, 40852, 38799, 36002, 37390, 28317, 27083, 36092, 34865,
  10619. 39015, 21102, 38364, 35264, 39208, 24931, 36011, 24291, 35215, 27512,
  10620. [12244, 40860], 38312, 36556, 35437, 27331, 36020, 21130, 36645, 37707,
  10621. 22283, 36942, 39405, 38867, 28450, 34399, 38305, 40372, 36032, 36703,
  10622. 40251, 32005, 22778, 35703, 28396, 22057, 33775, 30059, 21123, 35441,
  10623. 25079, 22750, 27489, 29872, 36996, 32233, 35594, 25582, 36637, 36036,
  10624. 31330, 26371, 29172, 21295, 35569, 35496, 32362, 33911, 28222, 29554,
  10625. 36008, 31117, 25802, 27231, 31309, 39249, 35663, 40388, 32318, 32221,
  10626. 26997, 36655, 32026, 25824, 24190, 34186, 21137, 28639, 35336, 35352,
  10627. 38555, 32380, 32000, 22846, 33698, 38960, 36040, 37440, 20729, 39381,
  10628. 27570, 30435, 22533, 31627, 38291, 33393, 32216, 32365, 27298, 40572,
  10629. 25536, 25791, 31777, 20745, 34214, 27323, 37970, 36368, 36068,
  10630. [12178, 35211], 37749, 33382, 21133, 39198, 28472, 28666, 28567, 23559,
  10631. 28479, 34083, 27123, 22892, 35611, 37292, 33184, 28550, 39509, 23308,
  10632. 25898, 37496, 30703, 20709, 39171, 32371, 32094, 36686, 36611, 38542,
  10633. 31680, 28500, 32080, 35489, 32202, 37670, 20677, 35641, 36914, 29180,
  10634. 30433, 21185, 33686, 39912, 39514, 32147, 38968, 37857, 24465, 30169,
  10635. 31478, 31998, 33290, 39378, 33289, 25818, 37624, 25084, 21127, 40273,
  10636. 32121, 35258, 35363, 32118, 37406, 36557, 39423, 38283, 20977, 38982,
  10637. 27579, 35506, 22718, 25031, 25715, 24235, 35122, 35463, 22602, 20744,
  10638. 23532, 31014, 26336, 34407, 24011, 31418, 39243, 28528, 25844, 38346,
  10639. 34847, 33240, 33802, 20358, 36084, 34253, 27396, 25876, 31811, 38348,
  10640. 34349, 28734, 35733, 25900, 35261, 25078, 32412, 29211, 28651, 25736,
  10641. 21214, 28551, 27138, 37939, 22744, 39006, 31852, 38626, 28757, 35023,
  10642. 39881, 31150, 40599, 21426, 21237, 31019, 27511, 28701, 38584, 20486,
  10643. 32879, 34030, 36899, 37934, 24976, 28451, 31806, 25986, 33225, 37832,
  10644. 25088, 29001, 32244, 31975, 20841, 36635, 35538, 30274, 36988, 37904,
  10645. 29557, 33256, 37168, 40023, 36035, 40801, 37428, 38728, 23994, 38936,
  10646. 39230, 21129, [12243, 40845], 32894, 22184, 31840, 22751, 25871, 38580,
  10647. 27155, 23105, 25695, 31757, 34310, 30439, 39025, 24300, 29200, 25796,
  10648. 28407, 34396, 39791, 36034, 37682, 38520, 39522, 37569, 23650, 32311,
  10649. 24942, 28670, 32209, 24018, 25891, 23423, 28772, 20098, 25476, 36650,
  10650. 20523, 20374, 28138, 32184, 35542, 34367, 32645, 37007, 38012, 31854,
  10651. 39486, 39409, 32097, 23229, 29802, 30908, 34718, [12218, 39340], 39393,
  10652. 21966, 36023, [12230, 40613], 36067, 36993, 30622, 39237, 34875, 28415,
  10653. 35646, 37672, 37466, 36031, 37762, [12200, 38272], 24758, 20497, 37683,
  10654. 22818, 35598, 24396, 35219, 32191, 32236, 24287, 28357, 25003, 38313,
  10655. 40180, 37528, 35628, 35584, 30045, 37385, 32013, 38627, 25747, 33126,
  10656. 24817, 39719, 39186, 25836, 33193, 25862, 37312, [12227, 40165], 32886,
  10657. 22169, 38007, 37811, 27320, 29552, 23527, 25840, 28632, 37397, 32016,
  10658. 33215, 28611, 36786, 30247, 35582, 27472, 40407, 27590, 22036, 28442,
  10659. 30436, 40848, 36064, 22132, 40300, 39449, 39108, 38971, 36007, 34315,
  10660. 24977, 35413, 28497, 38935, 25778, 37610, 20693, 27192, 35676, 33229,
  10661. [12241, 40778], 39438, 35912, 21843, 27683, 35350, 29309, 37370, 37467,
  10662. 36983, 31805, 35609, 37666, 37463, 28154, 35700, 22649, 27085, 21958,
  10663. 22715, 34196, 25654, 37740, 27211, 21932, 20689, 32761, 31429, 31434,
  10664. 27453, 35242, 23522, 36629, 27691, 20670, 38915, 35531, 24950, 29898,
  10665. 31406, 36264, 21312, 36544, 39493, 40818, 39028, 27402, 21240, 40306,
  10666. 30906, 35731, 39250, 25854, 32350, 29105, 38860, 35469, 32009, 27054,
  10667. 32104, 36575, 37613, 38287, 28516, 28753, 34217, 39955, 36093, 20632,
  10668. 21930, 39479, 25475, 28544, 27578, 32023, 31721, 26348, 38275, 38493,
  10669. 36109, 32341, 20663, 36062, 29138, 32057, 36050, 25448, 25885, 25086,
  10670. 35373, 32051, 23529, 23352, 33102, 28402, 32882, 32361, 21213, 32854,
  10671. 24107, 29509, 28629, 35433, 26178, 34645, 23526, 35672, 39387, 21218,
  10672. 36969, 37323, 39166, 35222, 35430, 22781, 29560, 27166, 36664, 26360,
  10673. 36118, 23660, 34899, 27193, 31466, 25976, 24101, 38617, 35504, 38918,
  10674. 35500, 30889, 29197, 32114, 39164, 39686, 32883, 24939, 38924, 35359,
  10675. 35494, 25851, 34311, 35380, 32901, 38614, 38568, 32143, 27506, 23403,
  10676. 25613, 32302, 29795, 37782, 29562, 25787, 33274, 24907, 25892, 36010,
  10677. 30321, 28760, 22727, 35674, 35527, 22022, 28271, 29145, 28644, 32295,
  10678. 35342, 39472, 35588, 37563, 38988, 39636, 26781, 36028, 37941, 24307,
  10679. 32893, 28916, 37509, 32113, 38957, 22294, 22615, 22296, 38973, 40213,
  10680. 39345, 39389, 27234, 31402, 35178, 24398, 28771, 38929, 33836, 32178,
  10681. [12209, 38859], 36949, 22285, 29234, 28656, 32173, 33894, 20553, 20702,
  10682. 32239, 35586, 34907, 32862, 32011, 31337, 21839, 25790, 34680, 28198,
  10683. 31401, 21978, 37794, 28879, 35491, 28961, 34154, 22626, 38695, 21209,
  10684. 35492, 37675, 29351, 35186, 32722, 37521, 25138, 32048, 34662, 36676,
  10685. 23805, 20448, 29433, 22151, 37697, 39854, 32406, 36066, 37532, 38289,
  10686. 39023, 38570, 29694, 29563, 32291, 39201, 25010, 32171, 38002, 37129,
  10687. 35443, 38911, 38917, 34157, 22210, 37559, 26313, 22063, 21332, 25406,
  10688. 33029, 35559, 23531, 28681, 35613, 37573, 37313, 33288, 37561, 32137,
  10689. 38920, 35377, 32210, 32396, 36562, 25080, 36984, 30316, 32098, 23416,
  10690. 21211, 35426, 23563, 39348, 35347, 35338, 36956, 22739, 40201, 40232,
  10691. 21854, 20126, 35357, 38329, 40573, 22196, 38996, 38331, 33399, 21421,
  10692. 30831, 35578, 39511, 40230, 26954, 25562, 30221, 38525, 30306, 39178,
  10693. 27171, 22575, 35617, 34277, 29242, [12212, 38913], 26989, 33865, 37291,
  10694. 37541, 38948, 36986, 20736, 34811, 34269, 20740, 25014, 32681, 35427,
  10695. 35696, 35516, 35695, 32377, 34093, 38512, 37504, 39154, 38577, 27387,
  10696. 23344, 40441, 25033, 32403, 29801, 34722, 29151, 29074, 34821, 36111,
  10697. 31310, 21938, 25793, 20653, 30320, 36404, 20778, 24962, 37109, 37438,
  10698. 29494, 35480, 36671, 39192, [12226, 39770], 28417, 33287, 23996, 35486,
  10699. 39729, 29508, 35709, 38928, 39341, 40219, 28149, 36677, 22290, 21729,
  10700. 22291, 32227, 36960, 39000, 32004, 36493, 38000, 38322, 38642, 37142,
  10701. 38549, 36939, 34292, 37270, 26248, 38620, 36617, 25890, 26283, 36106,
  10702. 36124, 33247, 38015, 26839, 31432, 36012, 25799, 21063, 28580, 36042,
  10703. 36104, 36555, 37720, 38296, 35408, 40779, 20661, 27656, 30430, 26028,
  10704. 36670, 23940, 26855, 25136, 32187, 24373, 28466, 24115, 36076, 33081,
  10705. 36249, 34756, 36685, 37754, 36889, 35998, 37341, 20597, 35386, 37806,
  10706. 38499, 24128, 30309, 37165, 35657, 32340, 32887, 22519, 34937, 32025,
  10707. 25711, 25842, 24159, 36074, 28399, 37912, 32066, 31278, 33131, 34886,
  10708. 35589, 36600, 30394, 26205, 39519, 35576, 35461, 29165, 30682, 22225,
  10709. 36015, 37956, 31689, 39376, 23560, 30938, 36681, 36090, 27137, 33674,
  10710. 35037, 22941, 22767, 29376, 37648, 36101, 22684, 32180, 35524, 28310,
  10711. 28609, 36039, 28460, 32156, 32317, 32305, 37138, 35419, 32068, 38013,
  10712. 21959, 21401, 21428, 38760, 36107, 21293, 21297, 36094, 21060, 21132,
  10713. 21108, 20660, 20480, 20630, 20757, 20738, 20756, 20796, 20791, 20712,
  10714. 20674, 20795, 20752, 20794, 20681, 31988, 40652, 22213, 40172, 35131,
  10715. 33248, 35329, 35344, 35340, 35349, 35635, 35406, 35365, 35393, 35382,
  10716. 35398, 35412, 35416, 35410, 35462, 35460, 35455, 35440, 35452, 35445,
  10717. 35436, 35438, 35533, 35554, 35425, 35482, 35493, {f: 2, c: 35473}, 35535,
  10718. 35537, 35529, 35547, 35543, 35522, 35510, 35574, 35563, 35604, 35585,
  10719. 35556, 35565, 35580, 35571, 35558, 35566, 35550, 35624, 35740, 35606,
  10720. 35610, 35600, 35627, 35629, 35670, 35673, 35662, 35742, 35691, 35734,
  10721. 38488, 37178, 37140, 37172, 37087, 37174, 37126, 37192, 33467, 21233,
  10722. 24048, 22538, 22745, 22754, 22752, 22746, 22497, 22607, 22550, 22610,
  10723. 22557, 22628, 34188, 34131, 34294, 33703, 33799, 34031, 33511, 34338,
  10724. 34086, 22603, 29026, 34136, 34045, 34126, 34184, 34234, 29334, 28366,
  10725. 34113, 34254, 34130, 33984, 33874, 33892, 33940, 33845, 34207, 34133,
  10726. 40367, 33939, 32264, 34118, 34146, 34078, 39488, 34362, 37795, 34167,
  10727. 34334, 34298, 34308, 34282, 34330, 22889, 23607, 25451, 25718, 25759,
  10728. 25681, 25692, 25779, 25860, 25878, 25847, 25852, 25883, 22064, 22072,
  10729. 22216, 22182, 21764, 21692, 22144, 22109, 22112, 22069, 22006, 22118,
  10730. 22130, 22156, 22117, 22044, 22062, 21993, 22038, 22208, 22029, 22195,
  10731. 22209, 22127, 36705, 22198, 22165, 22279, 24131, 24172, 24152, 24151,
  10732. 23943, 23796, 23888, 23852, 23975, 23968, 23959, 23821, 23992, 23937,
  10733. 24020, 24480, 29559, 29505, 29546, 29499, 29547, 29568, 29564, 39136,
  10734. 39219, 39145, 39228, {f: 2, c: 39146}, 39149, 39156, 39177, 39185, 39195,
  10735. 39223, 39231, 39235, {f: 3, c: 39240}, 39244, 39266, 24289, 36065, 25082,
  10736. 25006, 24938, 24894, 24757, 24884, 25036, 24927, 25064, 24827, 24887,
  10737. 24818, 24947, 24860, 24978, 38274, 38278, 38344, 38286, 38292, 38284,
  10738. 38373, 38317, 38315, 39726, 38316, 38334, 38326, 39721, 38335, 38333,
  10739. 38332, 38339, 38347, 38356, 38352, 38357, 38366, 28739, 28505, 28711,
  10740. 28696, 28668, 28039, 28025, 28254, 28590, 28687, 28408, 28527, 28150,
  10741. 28543, 28678, 28576, 28683, 28775, 28740, 28677, 28535, 28704, 28703,
  10742. 28722, 28712, 28765, 39467, 36999, 36885, 37008, 23656, 24371, 23285,
  10743. 23255, 23296, 23149, 23304, 23372, 23207, 23291, 23307, 23329, 23338,
  10744. 23321, 39380, 39391, 39385, 39478, 39515, 39377, 39384, 39501, 39498,
  10745. 39394, 39530, 39439, 39437, 39429, 39490, 39469, 39446, 39489, 39470,
  10746. 39480, {f: 2, c: 39491}, 39503, 39525, 39524, 31993, 32006, 32002,
  10747. {f: 2, c: 32007}, 32394, 32028, 32021, 32019, 32058, 32050, 32049, 32272,
  10748. 32060, 32064, 32063, 32093, 32078, 32115, 32134, 32131, 32136, 32190,
  10749. 32186, 32203, 32212, 32196, 32158, 32172, 32185, 32163, 32176, 32199,
  10750. 32217, 32215, 32249, 32242, 32354, 32230, 32246, 32241, 32267, 32225,
  10751. 32265, 32285, 32287, 32286, 32301, 32266, 32273, 32381, 32313, 32309,
  10752. 32306, 32326, 32325, 32392, 32346, 32338, 32366, 32382, 32368, 32367,
  10753. 32408, 29859, 29771, 29903, 38922, 29885, 29759, 29833, 29862, 29908,
  10754. 29914, 38873, 38878, 38876, 27050, 27370, 26776, 26838, 27141, 26783,
  10755. 27355, 27379, 27368, 27359, 27273, 26895, 27208, 26984, 27071, 27194,
  10756. 27292, 27410, 27422, 27357, 27111, 27407, 27414, 27372, 27354, 27384,
  10757. 27315, 27367, 27299, 27347, 27358, 27556, 27550, 27566, 27563, 27567,
  10758. 36564, 36571, 36594, 36603, 36708, 36601, 36604, 36587, 36580, 36706,
  10759. 36602, 36606, 36618, 36615, 36613, 36626, 36646, {f: 2, c: 36638}, 36636,
  10760. 36659, 36678, 36692, 25108, 25127, 29964, 26311, 26308, 26249, 26326,
  10761. 36033, 36016, 36026, 36029, 36100, 36018, 36037, 36112, 36049, 36058,
  10762. 36053, 36075, 36071, 36091, 35224, 35244, 35233, 35263, 35238, 35247,
  10763. 35250, 35255, 27647, 27660, 27692, 29272, 26407, 33110, 33242, 33051,
  10764. 33214, 33121, 33231, 27487, {f: 2, c: 39086}, 39094, 39100, 39110, 39112,
  10765. 36674, 40783, 26005, 29036, 29010, 29079, 29121, 29148, 29182, 31152,
  10766. 31118, 31146, 25055, 24932, 25059, 25095, 28585, 30959, 30893, 30824,
  10767. 30904, 31018, 31025, 30820, 30973, 30951, 30947, 40853, 30616, 30558,
  10768. 30652, 32646, 32648, {f: 3, c: 37330}, 37337, 37335, 37333, 37367, 37351,
  10769. 37348, 37702, 37365, 37369, 37384, 37414, 37445, 37393, 37392, 37377,
  10770. 37415, 37380, 37413, 37376, 37434, 37478, 37431, 37427, 37461, 37437,
  10771. 37432, 37470, {f: 2, c: 37484}, 37439, 37984, 37424, 37449, 37448, 37453,
  10772. 37422, 37433, 37944, 37548, 37536, 37498, 37546, 37614, 37583, 37891,
  10773. 37603, 37946, 37553, 37542, 37799, 37526, 37580, 37545, 37877, 37523,
  10774. 37503, 37801, 37530, 37658, 37547, 37507, 37899, 37544, 37539, 37906,
  10775. 37688, 37617, 37847, 37605, 37616, 37615, 37608, 37564, 37597, 37622,
  10776. {f: 2, c: 37926}, 37571, 37599, 37606, 37650, 37638, 37737, 37659, 37696,
  10777. 37633, 37653, 37678, 37699, {f: 2, c: 37639}, 37663, 37657, 37733, 37703,
  10778. 37750, 37716, 37732, 37802, 37744, 37764, 37860, 37848, 37928, 37767,
  10779. 37836, 37784, 37816, 37823, 37798, 37808, 37813, 37964, 37858,
  10780. {f: 2, c: 37852}, 37837, 37854, 37827, 37831, 37841, 37908, 37917, 37879,
  10781. 37989, 37907, 37997, 37920, 38009, 37881, 37913, 37962, 37938, 37951,
  10782. 37972, 37987, 37758, 31329, 40169, 40182, 40199, 40198, 40227, 40327,
  10783. 40469, 40221, 40223, 40421, 40239, 40409, 40240, 40258, 40478, 40275,
  10784. 40477, 40288, 40274, 40435, 40284, 40289, 40339, 40298, 40303, 40329,
  10785. 40344, 40346, 40384, 40357, 40361, 40386, 40380, 40474, 40403, 40410,
  10786. 40431, 40422, 40434, 40440, 40460, 40442, 40475, 30308, 30296, 30311,
  10787. 30210, {f: 2, c: 30278}, 30281, 30238, 30267, {f: 2, c: 30317}, 30313,
  10788. 30322, 31431, 31414, 35168, 35123, 35165, 35143, 35128, 35172, 30392,
  10789. 32814, 32812, 32889, 32885, 38919, {f: 2, c: 38926}, 38945, 38940, 28481,
  10790. 38950, 38967, 38990, 38995, 39027, 39010, 39001, 39013, 39020, 39024,
  10791. 34787, 34822, 34566, 34851, 34806, 34554, 34799, 34692, 34832, 34760,
  10792. 34833, 34747, 34766, 32588, 31716, 31591, 31849, 31731, 31744, 31691,
  10793. 31836, 31774, 31787, 31779, 31850, 31839, 33380, 33387, 35018, 32677,
  10794. 31986, 31990, 31965, 32310, 40617, 36274, 37317, 37315, 40570, 36489,
  10795. 36428, 36498, 36474, 36437, 36506, 36491, 36499, 36497, 36513, 36451,
  10796. 36522, 36518, 35316, 35318, 38746, 38722, 38717, 38724, 40788, 40799,
  10797. 40793, 40800, 40796, 40806, 40812, 40810, 40823, [12236, 40701], 40703,
  10798. 40713, 35726, 38014, 37864, 39799, 39796, 39809, 39811, 39822, 40056,
  10799. 31308, 39826, 40031, 39824, 39853, 39834, 39850, 39838, 40045, 39851,
  10800. 39837, 40024, 39873, 40058, 39985, 39993, 39971, 39991, 39872, 39882,
  10801. 39879, 39933, 39894, {f: 2, c: 39914}, 39905, 39908, 39911, 39901, 39906,
  10802. 39920, 39899, 39924, 39892, 40029, 39944, 39952, 39949, 39954, 39945,
  10803. 39935, 39968, 39986, 39981, 39976, 39973, 39977, 39987, 39998, 40008,
  10804. 39995, 39989, 40005, 40022, 40020, 40018, 40039, 38851, 38845, 38857,
  10805. 40379, 39631, 39638, 39637, 39768, 39758, 39255, 39260, 39714, 40695,
  10806. 40690, 35180, 38342, 37686, 24390, 34068, 32404, 40803, 22137, 40725,
  10807. 22081, 39662, 35079, 31296, 39091, 38308, 39693, 36852, 24409, 31339,
  10808. 39138, 20642, 34193, 20760, 25458, 21067, 30543, 32397, 26310, 30637,
  10809. [12228, 40565], 22217, 40692, 28635, 25054, 30663, 28720, 40629, 34890,
  10810. 38370, 38854, 31844, 32308, 38822, 40623, 22220, 39089, 27311, 32590,
  10811. 31984, 20418, 32363, 40569, 22190, 39706, 33903, 31142, 31858, 39634,
  10812. 38587, 32251, 35069, 30787, {f: 10, c: 8560}, {f: 2, c: 714}, 729, 8211,
  10813. 8213, 8229, 8245, 8453, 8457, {f: 4, c: 8598}, 8725, 8735, 8739, 8786,
  10814. {f: 2, c: 8806}, 8895, {f: 36, c: 9552}, {f: 15, c: 9601}, {f: 3, c: 9619},
  10815. {f: 2, c: 9660}, {f: 4, c: 9698}, 9737, 8853, 12306, {f: 2, c: 12317},
  10816. {f: 9, c: 12321}, 12963, {f: 2, c: 13198}, {f: 3, c: 13212}, 13217, 13252,
  10817. 13262, {f: 2, c: 13265}, 13269, 65072, 65506, 65508, 8481, 12849, 8208,
  10818. 12540, {f: 2, c: 12443}, {f: 2, c: 12541}, 12294, {f: 2, c: 12445},
  10819. {f: 10, c: 65097}, {f: 4, c: 65108}, {f: 14, c: 65113}, {f: 4, c: 65128},
  10820. 12350, {f: 12, c: 12272}, 19970, {f: 3, c: 19972}, 19983, 19986, 19991,
  10821. {f: 3, c: 19999}, 20003, 20006, 20009, {f: 2, c: 20014}, 20017, 20019,
  10822. 20021, 20023, 20028, {f: 3, c: 20032}, 20036, 20038, 20042, 20049, 20053,
  10823. 20055, {f: 2, c: 20058}, {f: 4, c: 20066}, {f: 2, c: 20071},
  10824. {f: 6, c: 20074}, 20082, {f: 10, c: 20084}, {f: 3, c: 20095},
  10825. {f: 2, c: 20099}, [12037, 20101], 20103, 20106, 20112, {f: 2, c: 20118},
  10826. 20121, {f: 2, c: 20124}, 20131, 20138, {f: 3, c: 20143}, 20148,
  10827. {f: 4, c: 20150}, {f: 3, c: 20156}, 20168, 20172, {f: 2, c: 20175}, 20178,
  10828. {f: 3, c: 20186}, 20192, 20194, {f: 2, c: 20198}, 20201, {f: 3, c: 20205},
  10829. 20209, 20212, {f: 3, c: 20216}, 20220, 20222, 20224, {f: 7, c: 20226},
  10830. {f: 2, c: 20235}, {f: 5, c: 20242}, {f: 2, c: 20252}, 20257, 20259,
  10831. {f: 2, c: 20264}, {f: 3, c: 20268}, 20273, 20275, 20277, 20279, 20281,
  10832. 20283, {f: 5, c: 20286}, {f: 2, c: 20292}, {f: 6, c: 20295}, 20306, 20308,
  10833. 20310, {f: 2, c: 20321}, 20326, 20328, {f: 2, c: 20330}, {f: 2, c: 20333},
  10834. {f: 2, c: 20337}, 20341, {f: 4, c: 20343}, 20349, {f: 3, c: 20352}, 20357,
  10835. 20359, 20362, 20364, 20366, 20368, {f: 2, c: 20370}, 20373,
  10836. {f: 3, c: 20376}, 20380, {f: 2, c: 20382}, {f: 2, c: 20385}, 20388, 20395,
  10837. 20397, {f: 5, c: 20400}, {f: 9, c: 20406}, {f: 2, c: 20416},
  10838. {f: 4, c: 20422}, {f: 3, c: 20427}, {f: 5, c: 20434}, 20441, 20443, 20450,
  10839. {f: 2, c: 20452}, 20455, {f: 2, c: 20459}, 20464, 20466, {f: 4, c: 20468},
  10840. 20473, {f: 3, c: 20475}, 20479, {f: 5, c: 20481}, {f: 2, c: 20487}, 20490,
  10841. 20494, 20496, 20499, {f: 3, c: 20501}, 20507, {f: 2, c: 20509}, 20512,
  10842. {f: 3, c: 20514}, 20519, {f: 11, c: 20527}, 20539, 20541, {f: 4, c: 20543},
  10843. {f: 3, c: 20548}, {f: 2, c: 20554}, 20557, {f: 5, c: 20560},
  10844. {f: 4, c: 20566}, 20571, {f: 8, c: 20573}, {f: 6, c: 20582},
  10845. {f: 7, c: 20589}, {f: 3, c: 20600}, {f: 2, c: 20604}, {f: 4, c: 20609},
  10846. {f: 2, c: 20614}, {f: 4, c: 20617}, {f: 8, c: 20622}, 20631,
  10847. {f: 8, c: 20634}, 20644, 20646, {f: 2, c: 20650}, {f: 4, c: 20654}, 20662,
  10848. {f: 2, c: 20664}, {f: 2, c: 20668}, {f: 3, c: 20671}, {f: 2, c: 20675},
  10849. {f: 3, c: 20678}, {f: 5, c: 20682}, 20688, {f: 3, c: 20690},
  10850. {f: 3, c: 20695}, {f: 3, c: 20699}, {f: 6, c: 20703}, {f: 3, c: 20713},
  10851. {f: 4, c: 20719}, 20724, {f: 3, c: 20726}, 20730, {f: 4, c: 20732}, 20737,
  10852. 20739, 20741, 20746, {f: 4, c: 20748}, 20753, 20755, {f: 2, c: 20758},
  10853. {f: 6, c: 20761}, 20768, {f: 8, c: 20770}, {f: 7, c: 20779},
  10854. {f: 4, c: 20787}, {f: 2, c: 20792}, {f: 2, c: 20797}, 20802, 20807, 20810,
  10855. 20812, {f: 3, c: 20814}, 20819, {f: 3, c: 20823}, 20827, {f: 5, c: 20829},
  10856. {f: 2, c: 20835}, {f: 2, c: 20838}, 20842, 20847, 20850, 20858,
  10857. {f: 2, c: 20862}, {f: 2, c: 20867}, {f: 2, c: 20870}, {f: 2, c: 20874},
  10858. {f: 4, c: 20878}, {f: 2, c: 20883}, 20888, 20890, {f: 3, c: 20893}, 20897,
  10859. 20899, {f: 5, c: 20902}, {f: 2, c: 20909}, 20916, {f: 3, c: 20920},
  10860. {f: 2, c: 20926}, {f: 3, c: 20929}, 20933, 20936, 20938, 20942, 20944,
  10861. {f: 9, c: 20946}, 20956, {f: 2, c: 20958}, {f: 2, c: 20962},
  10862. {f: 6, c: 20965}, 20972, 20974, 20978, 20980, 20983, 20990,
  10863. {f: 2, c: 20996}, 21001, {f: 2, c: 21003}, {f: 2, c: 21007},
  10864. {f: 3, c: 21011}, 21020, {f: 2, c: 21022}, {f: 3, c: 21025},
  10865. {f: 3, c: 21029}, 21034, 21036, 21039, {f: 2, c: 21041}, {f: 2, c: 21044},
  10866. 21052, 21054, {f: 2, c: 21061}, {f: 2, c: 21064}, {f: 2, c: 21070},
  10867. {f: 2, c: 21074}, 21077, {f: 4, c: 21079}, 21085, {f: 2, c: 21087},
  10868. {f: 3, c: 21090}, 21094, 21096, {f: 3, c: 21099}, {f: 2, c: 21104}, 21107,
  10869. {f: 7, c: 21110}, 21118, 21120, {f: 3, c: 21124}, 21131, {f: 2, c: 21134},
  10870. 21138, {f: 7, c: 21140}, 21148, {f: 4, c: 21156}, {f: 3, c: 21166},
  10871. {f: 10, c: 21172}, 21184, 21186, {f: 3, c: 21188}, 21192, 21194,
  10872. {f: 4, c: 21196}, 21201, {f: 2, c: 21203}, 21207, 21210, 21212,
  10873. {f: 2, c: 21216}, 21219, {f: 11, c: 21221}, {f: 3, c: 21234},
  10874. {f: 2, c: 21238}, {f: 3, c: 21243}, {f: 4, c: 21249}, 21255,
  10875. {f: 4, c: 21257}, 21262, {f: 4, c: 21265}, 21272, {f: 2, c: 21275},
  10876. {f: 2, c: 21278}, 21282, {f: 2, c: 21284}, {f: 3, c: 21287},
  10877. {f: 2, c: 21291}, 21296, {f: 6, c: 21298}, [12054, 21304],
  10878. {f: 2, c: 21308}, 21314, 21316, 21318, {f: 3, c: 21323}, 21328,
  10879. {f: 2, c: 21336}, 21339, 21341, 21349, 21352, 21354, {f: 2, c: 21356},
  10880. 21362, 21366, 21369, {f: 4, c: 21371}, {f: 2, c: 21376}, 21379,
  10881. {f: 2, c: 21383}, 21386, {f: 7, c: 21390}, {f: 2, c: 21398},
  10882. {f: 2, c: 21403}, 21406, 21409, 21412, 21415, {f: 3, c: 21418},
  10883. {f: 3, c: 21423}, 21427, 21429, {f: 4, c: 21431}, {f: 3, c: 21436}, 21440,
  10884. {f: 4, c: 21444}, {f: 3, c: 21454}, {f: 2, c: 21458}, 21461, 21466,
  10885. {f: 3, c: 21468}, 21473, 21479, 21492, 21498, {f: 3, c: 21502}, 21506,
  10886. 21509, 21511, 21515, 21524, {f: 3, c: 21528}, 21532, 21538,
  10887. {f: 2, c: 21540}, 21546, 21552, 21555, {f: 2, c: 21558}, 21562, 21565,
  10888. 21567, {f: 2, c: 21569}, {f: 2, c: 21572}, 21575, 21577, {f: 4, c: 21580},
  10889. 21585, 21594, {f: 5, c: 21597}, 21603, 21605, 21607, {f: 8, c: 21609},
  10890. 21620, {f: 2, c: 21625}, {f: 2, c: 21630}, 21633, 21635, 21637,
  10891. {f: 4, c: 21639}, 21645, 21649, 21651, {f: 2, c: 21655}, 21660,
  10892. {f: 5, c: 21662}, 21669, 21678, 21680, 21682, {f: 3, c: 21685},
  10893. {f: 2, c: 21689}, 21694, 21699, 21701, {f: 2, c: 21706}, 21718, 21720,
  10894. 21723, 21728, {f: 3, c: 21730}, {f: 2, c: 21739}, {f: 3, c: 21743},
  10895. {f: 6, c: 21748}, 21755, 21758, 21760, {f: 2, c: 21762}, 21765, 21768,
  10896. {f: 5, c: 21770}, {f: 2, c: 21778}, {f: 6, c: 21781}, {f: 4, c: 21788},
  10897. 21793, {f: 2, c: 21797}, {f: 2, c: 21800}, 21803, 21805, 21810,
  10898. {f: 3, c: 21812}, {f: 4, c: 21816}, 21821, 21824, 21826, 21829,
  10899. {f: 2, c: 21831}, {f: 4, c: 21835}, {f: 2, c: 21841}, 21844,
  10900. {f: 5, c: 21847}, 21853, {f: 2, c: 21855}, {f: 2, c: 21858},
  10901. {f: 2, c: 21864}, 21867, {f: 6, c: 21871}, {f: 2, c: 21881}, 21885, 21887,
  10902. {f: 2, c: 21893}, {f: 3, c: 21900}, 21904, {f: 2, c: 21906},
  10903. {f: 3, c: 21909}, {f: 2, c: 21914}, 21918, {f: 7, c: 21920},
  10904. {f: 2, c: 21928}, 21931, 21933, {f: 2, c: 21935}, 21940, 21942, 21944,
  10905. 21946, 21948, {f: 5, c: 21951}, 21960, {f: 2, c: 21962}, {f: 2, c: 21967},
  10906. 21973, {f: 3, c: 21975}, 21979, 21982, 21984, 21986, 21991,
  10907. {f: 2, c: 21997}, {f: 2, c: 22000}, 22004, {f: 5, c: 22008}, 22015,
  10908. {f: 4, c: 22018}, 22023, {f: 2, c: 22026}, {f: 4, c: 22032}, 22037,
  10909. {f: 2, c: 22041}, 22045, {f: 3, c: 22048}, {f: 2, c: 22053}, 22056,
  10910. {f: 2, c: 22058}, 22067, 22071, 22074, {f: 3, c: 22076}, 22080,
  10911. {f: 10, c: 22082}, {f: 5, c: 22095}, {f: 2, c: 22101}, {f: 2, c: 22106},
  10912. {f: 2, c: 22110}, 22113, 22115, 22119, {f: 2, c: 22125}, 22128, 22131,
  10913. 22133, 22135, 22138, {f: 3, c: 22141}, {f: 4, c: 22145}, {f: 4, c: 22152},
  10914. 22157, {f: 3, c: 22160}, 22164, {f: 3, c: 22166}, {f: 9, c: 22170},
  10915. {f: 2, c: 22180}, 22183, {f: 5, c: 22185}, {f: 3, c: 22192}, 22197,
  10916. {f: 4, c: 22200}, {f: 3, c: 22205}, {f: 2, c: 22211}, {f: 2, c: 22214},
  10917. 22219, {f: 4, c: 22221}, {f: 2, c: 22226}, {f: 2, c: 22229},
  10918. {f: 2, c: 22232}, 22236, 22243, {f: 6, c: 22245}, 22252, {f: 2, c: 22254},
  10919. {f: 2, c: 22258}, {f: 3, c: 22262}, {f: 2, c: 22267}, {f: 3, c: 22272},
  10920. 22277, 22284, {f: 4, c: 22286}, {f: 2, c: 22292}, 22295, {f: 3, c: 22297},
  10921. {f: 2, c: 22301}, {f: 3, c: 22304}, {f: 4, c: 22308}, 22315,
  10922. {f: 2, c: 22321}, {f: 5, c: 22324}, {f: 2, c: 22332}, 22335, 22337,
  10923. {f: 4, c: 22339}, {f: 2, c: 22344}, 22347, {f: 5, c: 22354},
  10924. {f: 2, c: 22360}, {f: 2, c: 22370}, 22373, 22375, 22380, 22382,
  10925. {f: 3, c: 22384}, {f: 2, c: 22388}, {f: 3, c: 22392}, {f: 5, c: 22397},
  10926. {f: 4, c: 22407}, {f: 5, c: 22413}, {f: 7, c: 22420}, {f: 4, c: 22428},
  10927. 22437, 22440, 22442, 22444, {f: 3, c: 22447}, 22451, {f: 3, c: 22453},
  10928. {f: 9, c: 22457}, {f: 7, c: 22468}, {f: 2, c: 22476}, {f: 2, c: 22480},
  10929. 22483, {f: 2, c: 22486}, {f: 2, c: 22491}, 22494, {f: 2, c: 22498},
  10930. {f: 8, c: 22501}, 22510, {f: 4, c: 22512}, {f: 2, c: 22517},
  10931. {f: 2, c: 22523}, {f: 2, c: 22526}, 22529, {f: 2, c: 22531},
  10932. {f: 2, c: 22536}, 22540, {f: 3, c: 22542}, {f: 3, c: 22546},
  10933. {f: 2, c: 22551}, {f: 3, c: 22554}, 22559, {f: 2, c: 22562},
  10934. {f: 5, c: 22565}, {f: 4, c: 22571}, {f: 2, c: 22578}, {f: 14, c: 22582},
  10935. {f: 5, c: 22597}, 22606, 22608, 22611, {f: 2, c: 22613}, {f: 5, c: 22617},
  10936. {f: 3, c: 22623}, 22627, {f: 5, c: 22630}, {f: 8, c: 22637},
  10937. {f: 3, c: 22646}, {f: 4, c: 22650}, 22655, 22658, 22660, {f: 3, c: 22662},
  10938. {f: 7, c: 22667}, {f: 5, c: 22676}, 22683, 22685, {f: 8, c: 22688},
  10939. {f: 4, c: 22698}, {f: 4, c: 22703}, {f: 7, c: 22708}, 22717,
  10940. {f: 2, c: 22719}, {f: 3, c: 22722}, 22726, {f: 9, c: 22728}, 22738, 22740,
  10941. {f: 2, c: 22742}, {f: 3, c: 22747}, 22753, 22755, {f: 4, c: 22757}, 22762,
  10942. 22765, {f: 2, c: 22769}, {f: 2, c: 22772}, {f: 2, c: 22775},
  10943. {f: 2, c: 22779}, {f: 4, c: 22782}, 22787, {f: 2, c: 22789},
  10944. {f: 2, c: 22792}, [12066, 22794], {f: 2, c: 22795}, 22798,
  10945. {f: 4, c: 22800}, {f: 2, c: 22807}, 22811, {f: 2, c: 22813},
  10946. {f: 2, c: 22816}, 22819, 22822, 22824, 22828, 22832, {f: 2, c: 22834},
  10947. {f: 2, c: 22837}, 22843, 22845, {f: 2, c: 22847}, 22851, {f: 2, c: 22853},
  10948. 22858, {f: 2, c: 22860}, 22864, {f: 2, c: 22866}, 22873, {f: 5, c: 22875},
  10949. 22881, {f: 2, c: 22883}, {f: 3, c: 22886}, 22891, 22893, {f: 4, c: 22895},
  10950. 22901, 22903, {f: 3, c: 22906}, {f: 3, c: 22910}, 22917, 22921,
  10951. {f: 2, c: 22923}, {f: 4, c: 22926}, {f: 2, c: 22932}, 22936,
  10952. {f: 3, c: 22938}, {f: 4, c: 22943}, {f: 2, c: 22950}, {f: 2, c: 22956},
  10953. {f: 2, c: 22960}, {f: 6, c: 22963}, 22970, {f: 2, c: 22972},
  10954. {f: 7, c: 22975}, {f: 3, c: 22983}, {f: 4, c: 22988}, {f: 2, c: 22997},
  10955. 23001, 23003, {f: 5, c: 23006}, 23012, {f: 2, c: 23014}, {f: 3, c: 23017},
  10956. {f: 12, c: 23021}, 23034, {f: 3, c: 23036}, 23040, 23042, {f: 2, c: 23050},
  10957. {f: 4, c: 23053}, 23058, {f: 4, c: 23060}, {f: 3, c: 23065},
  10958. {f: 2, c: 23069}, {f: 2, c: 23073}, 23076, {f: 3, c: 23078},
  10959. {f: 7, c: 23082}, 23091, 23093, {f: 5, c: 23095}, {f: 3, c: 23101},
  10960. {f: 4, c: 23106}, {f: 2, c: 23111}, {f: 10, c: 23115}, {f: 4, c: 23126},
  10961. {f: 7, c: 23131}, {f: 3, c: 23139}, {f: 2, c: 23144}, {f: 2, c: 23147},
  10962. {f: 6, c: 23150}, {f: 2, c: 23160}, {f: 4, c: 23163}, {f: 18, c: 23168},
  10963. {f: 7, c: 23187}, {f: 11, c: 23196}, {f: 2, c: 23208}, {f: 7, c: 23211},
  10964. 23220, {f: 2, c: 23222}, {f: 4, c: 23225}, {f: 2, c: 23231},
  10965. {f: 6, c: 23235}, {f: 2, c: 23242}, {f: 5, c: 23245}, 23251, 23253,
  10966. {f: 3, c: 23257}, {f: 3, c: 23261}, 23266, {f: 2, c: 23268},
  10967. {f: 2, c: 23271}, 23274, {f: 5, c: 23276}, {f: 3, c: 23282},
  10968. {f: 5, c: 23286}, {f: 4, c: 23292}, {f: 7, c: 23297}, 23306,
  10969. {f: 9, c: 23309}, 23320, {f: 7, c: 23322}, {f: 8, c: 23330},
  10970. {f: 5, c: 23339}, 23345, 23347, {f: 2, c: 23349}, {f: 7, c: 23353},
  10971. {f: 11, c: 23361}, {f: 3, c: 23373}, 23378, 23382, 23390, {f: 2, c: 23392},
  10972. {f: 2, c: 23399}, {f: 3, c: 23405}, 23410, 23412, {f: 2, c: 23414}, 23417,
  10973. {f: 2, c: 23419}, 23422, 23426, 23430, 23434, {f: 2, c: 23437},
  10974. {f: 3, c: 23440}, 23444, 23446, 23455, {f: 3, c: 23463}, {f: 4, c: 23468},
  10975. {f: 2, c: 23473}, 23479, {f: 3, c: 23482}, {f: 2, c: 23488}, 23491,
  10976. {f: 4, c: 23496}, {f: 3, c: 23501}, 23505, {f: 9, c: 23508}, 23520, 23523,
  10977. 23530, 23533, 23535, {f: 4, c: 23537}, 23543, {f: 2, c: 23549}, 23552,
  10978. {f: 2, c: 23554}, 23557, 23564, 23568, {f: 2, c: 23570}, 23575, 23577,
  10979. 23579, {f: 4, c: 23582}, 23587, 23590, {f: 4, c: 23592}, {f: 4, c: 23597},
  10980. {f: 2, c: 23602}, {f: 2, c: 23605}, {f: 2, c: 23619}, {f: 2, c: 23622},
  10981. {f: 2, c: 23628}, {f: 3, c: 23634}, {f: 3, c: 23638}, {f: 4, c: 23642},
  10982. 23647, 23655, {f: 3, c: 23657}, 23661, 23664, {f: 7, c: 23666},
  10983. {f: 4, c: 23675}, 23680, {f: 5, c: 23683}, {f: 3, c: 23689},
  10984. {f: 2, c: 23694}, {f: 2, c: 23698}, 23701, {f: 4, c: 23709},
  10985. {f: 5, c: 23716}, 23722, {f: 3, c: 23726}, 23730, 23732, 23734,
  10986. {f: 4, c: 23737}, 23742, 23744, {f: 2, c: 23746}, {f: 6, c: 23749},
  10987. {f: 6, c: 23756}, {f: 6, c: 23763}, {f: 7, c: 23770}, {f: 2, c: 23778},
  10988. 23783, 23785, {f: 2, c: 23787}, {f: 2, c: 23790}, {f: 3, c: 23793}, 23797,
  10989. {f: 4, c: 23799}, 23804, {f: 4, c: 23806}, {f: 2, c: 23812},
  10990. {f: 5, c: 23816}, {f: 5, c: 23823}, 23829, {f: 3, c: 23832},
  10991. {f: 2, c: 23836}, {f: 5, c: 23839}, 23845, 23848, {f: 2, c: 23850},
  10992. {f: 5, c: 23855}, {f: 8, c: 23861}, {f: 8, c: 23871}, {f: 2, c: 23880},
  10993. {f: 3, c: 23885}, {f: 7, c: 23889}, {f: 2, c: 23897}, 23900,
  10994. {f: 11, c: 23902}, 23914, {f: 2, c: 23917}, {f: 4, c: 23920},
  10995. {f: 12, c: 23925}, 23939, {f: 2, c: 23941}, {f: 15, c: 23944}, 23960,
  10996. {f: 3, c: 23962}, {f: 2, c: 23966}, {f: 6, c: 23969}, {f: 15, c: 23976},
  10997. 23993, 23995, {f: 8, c: 23997}, {f: 5, c: 24006}, 24012, {f: 4, c: 24014},
  10998. 24019, {f: 6, c: 24021}, 24028, {f: 2, c: 24031}, {f: 2, c: 24035}, 24042,
  10999. {f: 2, c: 24044}, {f: 2, c: 24053}, {f: 5, c: 24056}, {f: 2, c: 24063},
  11000. 24068, 24071, {f: 3, c: 24073}, {f: 2, c: 24077}, {f: 2, c: 24082}, 24087,
  11001. {f: 7, c: 24094}, {f: 3, c: 24104}, 24108, {f: 2, c: 24111}, 24114,
  11002. {f: 2, c: 24116}, {f: 2, c: 24121}, {f: 2, c: 24126}, 24129,
  11003. {f: 6, c: 24134}, {f: 7, c: 24141}, 24150, {f: 2, c: 24153},
  11004. {f: 2, c: 24156}, 24160, {f: 7, c: 24164}, {f: 5, c: 24173}, 24181, 24183,
  11005. {f: 3, c: 24193}, 24197, {f: 2, c: 24200}, {f: 3, c: 24204}, 24210, 24216,
  11006. 24219, 24221, {f: 4, c: 24225}, {f: 3, c: 24232}, 24236, {f: 5, c: 24238},
  11007. 24244, {f: 4, c: 24250}, {f: 10, c: 24255}, {f: 6, c: 24267},
  11008. {f: 2, c: 24276}, {f: 4, c: 24279}, {f: 3, c: 24284}, {f: 4, c: 24292},
  11009. 24297, 24299, {f: 6, c: 24301}, 24309, {f: 2, c: 24312}, {f: 3, c: 24315},
  11010. {f: 3, c: 24325}, 24329, {f: 3, c: 24332}, 24336, 24338, 24340, 24342,
  11011. {f: 2, c: 24345}, {f: 3, c: 24348}, {f: 4, c: 24353}, 24360,
  11012. {f: 2, c: 24363}, 24366, 24368, 24370, 24372, {f: 3, c: 24374}, 24379,
  11013. {f: 3, c: 24381}, {f: 5, c: 24385}, 24391, {f: 3, c: 24393}, 24397, 24399,
  11014. 24401, 24404, {f: 3, c: 24410}, {f: 3, c: 24414}, 24419, 24421,
  11015. {f: 2, c: 24423}, 24427, {f: 2, c: 24430}, 24434, {f: 3, c: 24436}, 24440,
  11016. 24442, {f: 3, c: 24445}, 24451, 24454, {f: 3, c: 24461}, {f: 2, c: 24467},
  11017. 24470, {f: 2, c: 24474}, 24477, 24479, {f: 6, c: 24482}, {f: 2, c: 24491},
  11018. {f: 6, c: 24495}, 24502, 24504, {f: 2, c: 24506}, {f: 5, c: 24510},
  11019. {f: 2, c: 24519}, {f: 2, c: 24522}, 24526, {f: 3, c: 24531},
  11020. {f: 3, c: 24538}, {f: 2, c: 24542}, {f: 2, c: 24546}, {f: 2, c: 24549},
  11021. {f: 2, c: 24552}, 24556, {f: 2, c: 24559}, {f: 3, c: 24562},
  11022. {f: 2, c: 24566}, {f: 2, c: 24569}, 24572, {f: 3, c: 24583},
  11023. {f: 2, c: 24587}, {f: 2, c: 24592}, 24595, {f: 2, c: 24599}, 24602,
  11024. {f: 2, c: 24606}, {f: 3, c: 24610}, {f: 3, c: 24620}, {f: 5, c: 24624},
  11025. {f: 5, c: 24630}, {f: 2, c: 24637}, 24640, {f: 7, c: 24644}, 24652,
  11026. {f: 2, c: 24654}, 24657, {f: 2, c: 24659}, {f: 3, c: 24662},
  11027. {f: 2, c: 24667}, {f: 4, c: 24670}, {f: 2, c: 24677}, 24686,
  11028. {f: 2, c: 24689}, {f: 2, c: 24692}, 24695, 24702, {f: 3, c: 24704},
  11029. {f: 4, c: 24709}, {f: 2, c: 24714}, {f: 4, c: 24718}, 24723, 24725,
  11030. {f: 3, c: 24727}, 24732, 24734, {f: 2, c: 24737}, {f: 2, c: 24740}, 24743,
  11031. {f: 2, c: 24745}, 24750, 24752, 24755, 24759, {f: 2, c: 24761},
  11032. {f: 8, c: 24765}, {f: 3, c: 24775}, {f: 5, c: 24780}, {f: 3, c: 24786},
  11033. {f: 2, c: 24790}, 24793, 24795, 24798, {f: 4, c: 24802}, 24810, 24821,
  11034. {f: 2, c: 24823}, {f: 4, c: 24828}, {f: 4, c: 24834}, 24839,
  11035. {f: 3, c: 24842}, {f: 5, c: 24848}, {f: 4, c: 24854}, {f: 2, c: 24861},
  11036. {f: 2, c: 24865}, 24869, {f: 3, c: 24872}, {f: 8, c: 24876},
  11037. {f: 2, c: 24885}, {f: 6, c: 24888}, {f: 8, c: 24896}, 24905, 24909,
  11038. {f: 2, c: 24911}, {f: 3, c: 24914}, {f: 2, c: 24918}, 24921,
  11039. {f: 2, c: 24923}, 24926, {f: 2, c: 24928}, {f: 2, c: 24933}, 24937,
  11040. {f: 2, c: 24940}, 24943, {f: 2, c: 24945}, 24948, {f: 10, c: 24952},
  11041. {f: 7, c: 24963}, {f: 2, c: 24972}, 24975, 24979, {f: 5, c: 24981},
  11042. {f: 2, c: 24987}, {f: 6, c: 24990}, {f: 2, c: 24997}, 25002, 25005,
  11043. {f: 3, c: 25007}, {f: 3, c: 25011}, {f: 6, c: 25016}, {f: 3, c: 25023},
  11044. {f: 4, c: 25027}, {f: 4, c: 25037}, 25043, {f: 9, c: 25045},
  11045. {f: 3, c: 25056}, {f: 2, c: 25060}, 25063, {f: 9, c: 25065},
  11046. {f: 2, c: 25075}, 25081, 25083, 25085, {f: 5, c: 25089}, 25097, 25107,
  11047. 25113, {f: 3, c: 25116}, 25120, 25123, 25126, {f: 2, c: 25128}, 25131,
  11048. 25133, 25135, 25137, 25141, [12094, 25142], {f: 5, c: 25144}, 25154,
  11049. {f: 3, c: 25156}, 25162, {f: 2, c: 25167}, {f: 3, c: 25173},
  11050. {f: 2, c: 25177}, {f: 7, c: 25180}, {f: 2, c: 25188}, 25192,
  11051. {f: 2, c: 25201}, {f: 2, c: 25204}, {f: 2, c: 25207}, {f: 2, c: 25210},
  11052. 25213, {f: 3, c: 25217}, {f: 4, c: 25221}, {f: 6, c: 25227}, 25236, 25241,
  11053. {f: 3, c: 25244}, 25251, {f: 2, c: 25254}, {f: 2, c: 25257},
  11054. {f: 4, c: 25261}, {f: 3, c: 25266}, {f: 3, c: 25270}, 25274, 25278,
  11055. {f: 2, c: 25280}, 25283, 25291, 25295, 25297, 25301, {f: 2, c: 25309},
  11056. {f: 2, c: 25312}, 25316, {f: 2, c: 25322}, 25328, 25330, 25333,
  11057. {f: 4, c: 25336}, 25344, {f: 4, c: 25347}, {f: 4, c: 25354},
  11058. {f: 2, c: 25359}, {f: 4, c: 25362}, {f: 3, c: 25367}, 25372,
  11059. {f: 2, c: 25382}, 25385, {f: 3, c: 25388}, {f: 2, c: 25392},
  11060. {f: 6, c: 25395}, {f: 2, c: 25403}, {f: 3, c: 25407}, 25412,
  11061. {f: 2, c: 25415}, 25418, {f: 4, c: 25425}, {f: 8, c: 25430}, 25440,
  11062. {f: 3, c: 25444}, 25450, 25452, {f: 2, c: 25455}, {f: 3, c: 25459},
  11063. {f: 2, c: 25464}, {f: 4, c: 25468}, 25473, {f: 2, c: 25477}, 25483, 25485,
  11064. 25489, {f: 3, c: 25491}, 25495, {f: 7, c: 25497}, 25505, 25508, 25510,
  11065. 25515, 25519, {f: 2, c: 25521}, {f: 2, c: 25525}, 25529, 25531, 25533,
  11066. 25535, {f: 3, c: 25537}, 25541, {f: 2, c: 25543}, {f: 3, c: 25546}, 25553,
  11067. {f: 3, c: 25555}, {f: 3, c: 25559}, {f: 3, c: 25563}, 25567, 25570,
  11068. {f: 5, c: 25572}, {f: 2, c: 25579}, {f: 3, c: 25583}, 25587, 25589, 25591,
  11069. {f: 4, c: 25593}, 25598, {f: 2, c: 25603}, {f: 5, c: 25606}, 25614,
  11070. {f: 2, c: 25617}, {f: 2, c: 25621}, {f: 3, c: 25624}, 25629, 25631,
  11071. {f: 4, c: 25634}, {f: 3, c: 25639}, 25643, {f: 6, c: 25646}, 25653,
  11072. {f: 3, c: 25655}, {f: 2, c: 25659}, 25662, 25664, {f: 2, c: 25666}, 25673,
  11073. {f: 6, c: 25675}, 25683, {f: 3, c: 25685}, {f: 3, c: 25689}, 25693,
  11074. {f: 7, c: 25696}, 25704, {f: 3, c: 25706}, 25710, {f: 3, c: 25712},
  11075. {f: 2, c: 25716}, 25719, {f: 6, c: 25724}, 25731, 25734, {f: 8, c: 25737},
  11076. 25748, {f: 2, c: 25751}, {f: 4, c: 25754}, {f: 3, c: 25760},
  11077. {f: 3, c: 25766}, 25770, 25775, 25777, 25780, 25782, 25785, 25789, 25795,
  11078. 25798, {f: 2, c: 25800}, 25804, 25807, 25809, 25811, {f: 2, c: 25813},
  11079. 25817, {f: 3, c: 25819}, 25823, 25825, 25827, 25829, {f: 5, c: 25831},
  11080. {f: 2, c: 25837}, 25843, {f: 2, c: 25845}, {f: 2, c: 25848}, 25853, 25855,
  11081. {f: 3, c: 25857}, 25861, {f: 2, c: 25863}, {f: 5, c: 25866},
  11082. {f: 2, c: 25872}, 25875, 25877, 25879, 25882, 25884, {f: 4, c: 25886},
  11083. {f: 4, c: 25894}, 25901, {f: 4, c: 25904}, 25911, 25914, {f: 2, c: 25916},
  11084. {f: 5, c: 25920}, {f: 2, c: 25926}, {f: 2, c: 25930}, {f: 2, c: 25933},
  11085. 25936, {f: 3, c: 25938}, 25944, 25946, 25948, {f: 3, c: 25951},
  11086. {f: 2, c: 25956}, {f: 4, c: 25959}, {f: 3, c: 25965}, 25969, 25971, 25974,
  11087. {f: 9, c: 25977}, {f: 3, c: 25988}, {f: 3, c: 25992}, {f: 3, c: 25997},
  11088. 26002, 26004, 26006, 26008, 26010, {f: 2, c: 26013}, 26016,
  11089. {f: 2, c: 26018}, 26022, 26024, 26026, 26030, {f: 6, c: 26033}, 26040,
  11090. {f: 2, c: 26042}, {f: 3, c: 26046}, 26050, {f: 4, c: 26055}, 26061,
  11091. {f: 2, c: 26064}, {f: 3, c: 26067}, {f: 8, c: 26072}, 26081,
  11092. {f: 2, c: 26083}, {f: 2, c: 26090}, {f: 4, c: 26098}, {f: 2, c: 26104},
  11093. {f: 5, c: 26107}, 26113, {f: 2, c: 26116}, {f: 3, c: 26119}, 26123, 26125,
  11094. {f: 3, c: 26128}, {f: 3, c: 26134}, {f: 3, c: 26138}, 26142,
  11095. {f: 4, c: 26145}, 26150, {f: 4, c: 26153}, 26158, 26160, {f: 2, c: 26162},
  11096. {f: 5, c: 26167}, 26173, {f: 2, c: 26175}, {f: 7, c: 26180},
  11097. {f: 2, c: 26189}, {f: 2, c: 26192}, {f: 2, c: 26200}, {f: 2, c: 26203},
  11098. 26206, 26208, {f: 2, c: 26210}, 26213, 26215, {f: 5, c: 26217},
  11099. {f: 3, c: 26225}, 26229, {f: 2, c: 26232}, {f: 3, c: 26235},
  11100. {f: 3, c: 26239}, 26243, {f: 2, c: 26245}, {f: 2, c: 26250},
  11101. {f: 4, c: 26253}, {f: 4, c: 26258}, {f: 5, c: 26264}, {f: 4, c: 26270},
  11102. {f: 4, c: 26275}, {f: 2, c: 26281}, {f: 2, c: 26284}, {f: 5, c: 26287},
  11103. {f: 4, c: 26293}, {f: 4, c: 26298}, {f: 5, c: 26303}, 26309, 26312,
  11104. {f: 12, c: 26314}, {f: 2, c: 26327}, 26330, {f: 2, c: 26334},
  11105. {f: 5, c: 26337}, {f: 2, c: 26343}, {f: 2, c: 26346}, {f: 3, c: 26349},
  11106. 26353, {f: 2, c: 26357}, {f: 2, c: 26362}, 26365, {f: 2, c: 26369},
  11107. {f: 4, c: 26372}, 26380, {f: 2, c: 26382}, {f: 3, c: 26385}, 26390,
  11108. {f: 3, c: 26392}, 26396, 26398, {f: 6, c: 26400}, 26409, 26414, 26416,
  11109. {f: 2, c: 26418}, {f: 4, c: 26422}, {f: 2, c: 26427}, {f: 2, c: 26430},
  11110. 26433, {f: 2, c: 26436}, 26439, {f: 2, c: 26442}, 26445, 26450,
  11111. {f: 2, c: 26452}, {f: 5, c: 26455}, 26461, {f: 3, c: 26466},
  11112. {f: 2, c: 26470}, {f: 2, c: 26475}, 26478, 26484, 26486, {f: 4, c: 26488},
  11113. 26493, 26496, {f: 2, c: 26498}, {f: 2, c: 26501}, 26504, 26506,
  11114. {f: 4, c: 26508}, {f: 4, c: 26513}, 26518, 26521, 26523, {f: 3, c: 26527},
  11115. 26532, 26534, 26537, 26540, 26542, {f: 2, c: 26545}, 26548,
  11116. {f: 8, c: 26553}, 26562, {f: 10, c: 26565}, {f: 3, c: 26581}, 26587, 26591,
  11117. 26593, {f: 2, c: 26595}, {f: 3, c: 26598}, {f: 2, c: 26602},
  11118. {f: 2, c: 26605}, 26610, {f: 8, c: 26613}, 26622, {f: 4, c: 26625}, 26630,
  11119. 26637, 26640, 26642, {f: 2, c: 26644}, {f: 5, c: 26648}, {f: 3, c: 26654},
  11120. {f: 7, c: 26658}, {f: 7, c: 26667}, {f: 3, c: 26676}, {f: 2, c: 26682},
  11121. 26687, 26695, 26699, 26701, 26703, 26706, {f: 10, c: 26710}, 26730,
  11122. {f: 8, c: 26732}, 26741, {f: 9, c: 26744}, 26754, 26756, {f: 8, c: 26759},
  11123. {f: 3, c: 26768}, {f: 3, c: 26772}, {f: 4, c: 26777}, 26782,
  11124. {f: 2, c: 26784}, {f: 3, c: 26787}, {f: 4, c: 26793}, 26798,
  11125. {f: 2, c: 26801}, 26804, {f: 10, c: 26806}, 26817, {f: 6, c: 26819}, 26826,
  11126. 26828, {f: 4, c: 26830}, {f: 2, c: 26835}, 26841, {f: 4, c: 26843},
  11127. {f: 2, c: 26849}, {f: 3, c: 26852}, {f: 6, c: 26856}, 26863,
  11128. {f: 3, c: 26866}, {f: 3, c: 26870}, 26875, {f: 4, c: 26877},
  11129. {f: 3, c: 26882}, {f: 5, c: 26886}, 26892, 26897, {f: 12, c: 26899},
  11130. {f: 3, c: 26913}, {f: 8, c: 26917}, {f: 2, c: 26926}, {f: 3, c: 26929},
  11131. {f: 4, c: 26933}, {f: 3, c: 26938}, 26942, {f: 2, c: 26944},
  11132. {f: 7, c: 26947}, {f: 8, c: 26955}, {f: 2, c: 26965}, {f: 2, c: 26968},
  11133. {f: 2, c: 26971}, 26975, {f: 2, c: 26977}, {f: 2, c: 26980}, 26983,
  11134. {f: 2, c: 26985}, 26988, {f: 2, c: 26991}, {f: 3, c: 26994}, 26998,
  11135. {f: 2, c: 27002}, {f: 3, c: 27005}, 27009, 27011, 27013, {f: 3, c: 27018},
  11136. {f: 6, c: 27022}, {f: 2, c: 27030}, {f: 2, c: 27033}, {f: 10, c: 27037},
  11137. 27049, 27052, {f: 2, c: 27055}, {f: 2, c: 27058}, {f: 2, c: 27061},
  11138. {f: 3, c: 27064}, {f: 3, c: 27068}, 27072, {f: 8, c: 27074}, 27087,
  11139. {f: 3, c: 27089}, {f: 6, c: 27093}, {f: 3, c: 27100}, {f: 6, c: 27105},
  11140. {f: 5, c: 27112}, {f: 4, c: 27118}, {f: 9, c: 27124}, 27134, 27136,
  11141. {f: 2, c: 27139}, {f: 4, c: 27142}, {f: 8, c: 27147}, {f: 3, c: 27156},
  11142. {f: 4, c: 27162}, 27168, 27170, {f: 4, c: 27172}, 27177, {f: 4, c: 27179},
  11143. 27184, {f: 3, c: 27186}, {f: 2, c: 27190}, {f: 2, c: 27195},
  11144. {f: 5, c: 27199}, {f: 2, c: 27205}, {f: 2, c: 27209}, {f: 4, c: 27212},
  11145. {f: 7, c: 27217}, 27226, {f: 3, c: 27228}, 27232, {f: 2, c: 27235},
  11146. {f: 11, c: 27238}, {f: 7, c: 27250}, {f: 2, c: 27258}, {f: 3, c: 27261},
  11147. {f: 3, c: 27265}, {f: 4, c: 27269}, {f: 4, c: 27274}, 27279,
  11148. {f: 2, c: 27282}, {f: 2, c: 27285}, {f: 4, c: 27288}, {f: 3, c: 27293},
  11149. 27297, {f: 5, c: 27300}, 27306, {f: 2, c: 27309}, {f: 3, c: 27312},
  11150. {f: 4, c: 27316}, {f: 2, c: 27321}, {f: 7, c: 27324}, {f: 15, c: 27332},
  11151. {f: 6, c: 27348}, 27356, {f: 7, c: 27360}, 27369, 27371, {f: 6, c: 27373},
  11152. {f: 4, c: 27380}, {f: 2, c: 27385}, {f: 8, c: 27388}, {f: 5, c: 27397},
  11153. {f: 4, c: 27403}, {f: 2, c: 27408}, {f: 3, c: 27411}, {f: 7, c: 27415},
  11154. 27423, {f: 2, c: 27429}, {f: 10, c: 27432}, {f: 4, c: 27443}, 27448,
  11155. {f: 2, c: 27451}, {f: 4, c: 27455}, {f: 2, c: 27460}, 27464,
  11156. {f: 2, c: 27466}, {f: 3, c: 27469}, {f: 8, c: 27473}, {f: 5, c: 27482},
  11157. 27488, {f: 2, c: 27496}, {f: 7, c: 27499}, {f: 4, c: 27507}, 27514,
  11158. {f: 4, c: 27517}, 27525, 27528, 27532, {f: 4, c: 27534}, {f: 2, c: 27540},
  11159. 27543, 27545, {f: 2, c: 27548}, {f: 2, c: 27551}, {f: 2, c: 27554},
  11160. {f: 5, c: 27557}, {f: 2, c: 27564}, {f: 2, c: 27568}, 27574,
  11161. {f: 2, c: 27576}, {f: 3, c: 27580}, 27584, {f: 2, c: 27587},
  11162. {f: 4, c: 27591}, 27596, 27598, {f: 2, c: 27600}, 27608, 27610,
  11163. {f: 5, c: 27612}, {f: 8, c: 27618}, {f: 3, c: 27628}, {f: 3, c: 27632},
  11164. 27636, {f: 3, c: 27638}, {f: 3, c: 27642}, 27646, {f: 5, c: 27648},
  11165. {f: 3, c: 27657}, 27662, 27666, 27671, {f: 3, c: 27676}, 27680, 27685,
  11166. 27693, 27697, 27699, {f: 2, c: 27702}, {f: 4, c: 27705}, {f: 2, c: 27710},
  11167. {f: 3, c: 27715}, 27720, {f: 5, c: 27723}, {f: 3, c: 27729}, 27734,
  11168. {f: 3, c: 27736}, {f: 2, c: 27746}, {f: 3, c: 27749}, {f: 5, c: 27755},
  11169. 27761, 27763, 27765, {f: 2, c: 27767}, {f: 3, c: 27770}, {f: 2, c: 27775},
  11170. 27780, 27783, {f: 2, c: 27786}, {f: 2, c: 27789}, {f: 2, c: 27793},
  11171. {f: 4, c: 27797}, 27802, {f: 3, c: 27804}, 27808, 27810, 27816, 27820,
  11172. {f: 2, c: 27823}, {f: 4, c: 27828}, 27834, {f: 4, c: 27840},
  11173. {f: 3, c: 27846}, 27851, {f: 3, c: 27853}, {f: 2, c: 27857},
  11174. {f: 3, c: 27864}, {f: 2, c: 27868}, 27871, 27876, {f: 2, c: 27878}, 27881,
  11175. {f: 2, c: 27884}, 27890, 27892, 27897, {f: 2, c: 27903}, {f: 2, c: 27906},
  11176. {f: 2, c: 27909}, {f: 3, c: 27912}, 27917, {f: 3, c: 27919},
  11177. {f: 4, c: 27923}, 27928, {f: 2, c: 27932}, {f: 6, c: 27935}, 27942,
  11178. {f: 2, c: 27944}, {f: 2, c: 27948}, {f: 2, c: 27951}, 27956,
  11179. {f: 3, c: 27958}, 27962, {f: 2, c: 27967}, 27970, 27972, 27977, 27980,
  11180. 27984, {f: 4, c: 27989}, 27995, 27997, 27999, {f: 2, c: 28001},
  11181. {f: 2, c: 28004}, {f: 2, c: 28007}, {f: 3, c: 28011}, {f: 4, c: 28016},
  11182. {f: 2, c: 28021}, {f: 2, c: 28026}, {f: 5, c: 28029}, {f: 2, c: 28035},
  11183. 28038, {f: 2, c: 28042}, 28045, {f: 2, c: 28047}, 28050, {f: 5, c: 28054},
  11184. 28060, 28066, 28069, {f: 2, c: 28076}, {f: 2, c: 28080}, {f: 2, c: 28083},
  11185. {f: 2, c: 28086}, {f: 6, c: 28089}, {f: 3, c: 28097}, {f: 3, c: 28104},
  11186. {f: 4, c: 28109}, {f: 4, c: 28114}, 28119, {f: 3, c: 28122}, 28127,
  11187. {f: 2, c: 28130}, 28133, {f: 3, c: 28135}, 28141, {f: 2, c: 28143}, 28146,
  11188. 28148, 28152, {f: 8, c: 28157}, {f: 4, c: 28166}, 28171, 28175,
  11189. {f: 2, c: 28178}, 28181, {f: 2, c: 28184}, {f: 2, c: 28187},
  11190. {f: 2, c: 28190}, 28194, {f: 2, c: 28199}, 28202, 28206, {f: 2, c: 28208},
  11191. 28211, {f: 3, c: 28213}, 28217, {f: 3, c: 28219}, {f: 4, c: 28223},
  11192. {f: 8, c: 28229}, {f: 4, c: 28239}, 28245, 28247, {f: 2, c: 28249},
  11193. {f: 2, c: 28252}, {f: 11, c: 28256}, {f: 2, c: 28268}, {f: 14, c: 28272},
  11194. {f: 3, c: 28288}, 28292, {f: 2, c: 28295}, {f: 5, c: 28298},
  11195. {f: 5, c: 28305}, 28311, {f: 3, c: 28313}, 28318, {f: 2, c: 28320},
  11196. {f: 2, c: 28323}, 28326, {f: 2, c: 28328}, {f: 4, c: 28331}, 28336, 28339,
  11197. 28341, {f: 2, c: 28344}, 28348, {f: 3, c: 28350}, 28355, 28358,
  11198. {f: 3, c: 28360}, 28365, 28368, 28370, 28374, {f: 2, c: 28376},
  11199. {f: 3, c: 28379}, 28387, 28391, {f: 2, c: 28394}, {f: 2, c: 28397},
  11200. {f: 2, c: 28400}, 28403, {f: 2, c: 28405}, {f: 5, c: 28410}, 28416,
  11201. {f: 3, c: 28419}, {f: 2, c: 28423}, {f: 5, c: 28426}, {f: 3, c: 28432},
  11202. {f: 4, c: 28438}, {f: 5, c: 28443}, 28449, {f: 4, c: 28453}, 28462, 28464,
  11203. {f: 2, c: 28468}, 28471, {f: 5, c: 28473}, 28480, {f: 4, c: 28482},
  11204. {f: 3, c: 28488}, 28492, {f: 3, c: 28494}, {f: 2, c: 28498},
  11205. {f: 3, c: 28501}, {f: 2, c: 28506}, 28509, {f: 3, c: 28511}, 28515, 28517,
  11206. {f: 6, c: 28519}, 28529, 28531, {f: 2, c: 28533}, 28537, 28539,
  11207. {f: 2, c: 28541}, {f: 3, c: 28545}, 28549, {f: 2, c: 28554},
  11208. {f: 8, c: 28559}, {f: 4, c: 28568}, {f: 3, c: 28573}, {f: 2, c: 28578},
  11209. {f: 2, c: 28581}, 28584, {f: 4, c: 28586}, {f: 2, c: 28591}, 28594,
  11210. {f: 2, c: 28596}, {f: 2, c: 28599}, {f: 6, c: 28602}, {f: 5, c: 28612},
  11211. {f: 7, c: 28618}, {f: 2, c: 28627}, {f: 2, c: 28630}, {f: 2, c: 28633},
  11212. {f: 2, c: 28636}, {f: 2, c: 28642}, {f: 6, c: 28645}, {f: 2, c: 28652},
  11213. {f: 8, c: 28658}, 28667, 28669, {f: 6, c: 28671}, {f: 2, c: 28679}, 28682,
  11214. {f: 3, c: 28684}, 28688, {f: 3, c: 28690}, {f: 2, c: 28694}, 28697, 28700,
  11215. 28702, {f: 2, c: 28705}, {f: 3, c: 28708}, {f: 7, c: 28713}, 28721,
  11216. {f: 2, c: 28723}, {f: 3, c: 28726}, {f: 4, c: 28730}, {f: 4, c: 28735},
  11217. {f: 7, c: 28741}, {f: 2, c: 28749}, 28752, {f: 3, c: 28754},
  11218. {f: 2, c: 28758}, {f: 4, c: 28761}, {f: 4, c: 28767}, {f: 2, c: 28773},
  11219. {f: 3, c: 28776}, 28782, {f: 4, c: 28785}, 28791, {f: 3, c: 28793}, 28797,
  11220. {f: 4, c: 28801}, {f: 3, c: 28806}, {f: 3, c: 28811}, {f: 3, c: 28815},
  11221. 28819, {f: 2, c: 28823}, {f: 2, c: 28826}, {f: 13, c: 28830}, 28848, 28850,
  11222. {f: 3, c: 28852}, 28858, {f: 2, c: 28862}, {f: 4, c: 28868}, 28873,
  11223. {f: 4, c: 28875}, {f: 8, c: 28880}, 28890, {f: 3, c: 28892},
  11224. {f: 4, c: 28896}, 28901, 28906, 28910, {f: 4, c: 28912}, {f: 2, c: 28917},
  11225. 28920, {f: 3, c: 28922}, {f: 11, c: 28926}, {f: 5, c: 28939},
  11226. {f: 2, c: 28945}, 28948, 28951, {f: 6, c: 28955}, {f: 4, c: 28962},
  11227. {f: 8, c: 28967}, {f: 4, c: 28978}, {f: 14, c: 28983}, {f: 3, c: 28998},
  11228. 29003, 29005, {f: 3, c: 29007}, {f: 9, c: 29011}, 29021, {f: 3, c: 29023},
  11229. 29027, 29029, {f: 2, c: 29034}, 29037, {f: 3, c: 29039}, {f: 4, c: 29044},
  11230. 29049, {f: 2, c: 29051}, {f: 6, c: 29054}, {f: 5, c: 29061},
  11231. {f: 4, c: 29067}, {f: 2, c: 29072}, 29075, {f: 2, c: 29077},
  11232. {f: 5, c: 29082}, {f: 7, c: 29089}, {f: 3, c: 29097}, {f: 4, c: 29101},
  11233. 29106, 29108, {f: 3, c: 29110}, {f: 4, c: 29114}, {f: 2, c: 29119}, 29122,
  11234. {f: 4, c: 29124}, {f: 5, c: 29129}, {f: 3, c: 29135}, 29139,
  11235. {f: 3, c: 29142}, {f: 2, c: 29146}, {f: 2, c: 29149}, {f: 4, c: 29153},
  11236. {f: 5, c: 29160}, {f: 5, c: 29167}, {f: 4, c: 29173}, {f: 2, c: 29178},
  11237. 29181, {f: 7, c: 29183}, {f: 6, c: 29191}, {f: 2, c: 29198},
  11238. {f: 10, c: 29201}, 29212, {f: 10, c: 29214}, 29225, 29227,
  11239. {f: 3, c: 29229}, {f: 2, c: 29235}, 29244, {f: 7, c: 29248},
  11240. {f: 3, c: 29257}, {f: 4, c: 29262}, {f: 3, c: 29267}, 29271, 29274, 29276,
  11241. 29278, 29280, {f: 3, c: 29283}, 29288, {f: 4, c: 29290}, {f: 2, c: 29296},
  11242. {f: 2, c: 29299}, {f: 3, c: 29302}, {f: 2, c: 29307}, {f: 2, c: 29314},
  11243. {f: 5, c: 29317}, 29324, 29326, {f: 2, c: 29328}, {f: 3, c: 29331},
  11244. {f: 8, c: 29335}, {f: 2, c: 29344}, {f: 4, c: 29347}, {f: 4, c: 29352},
  11245. 29358, {f: 3, c: 29361}, 29365, {f: 6, c: 29370}, {f: 3, c: 29381},
  11246. {f: 4, c: 29385}, 29391, 29393, {f: 4, c: 29395}, 29400, {f: 4, c: 29402},
  11247. 29407, {f: 6, c: 29410}, {f: 2, c: 29418}, {f: 2, c: 29429},
  11248. {f: 3, c: 29438}, 29442, {f: 6, c: 29444}, {f: 3, c: 29451},
  11249. {f: 4, c: 29455}, 29460, {f: 3, c: 29464}, {f: 2, c: 29471},
  11250. {f: 2, c: 29475}, {f: 3, c: 29478}, 29485, {f: 2, c: 29487},
  11251. {f: 2, c: 29490}, 29493, 29498, {f: 2, c: 29500}, 29504, {f: 2, c: 29506},
  11252. {f: 7, c: 29510}, {f: 2, c: 29518}, 29521, {f: 4, c: 29523},
  11253. {f: 8, c: 29528}, {f: 7, c: 29537}, 29545, 29550, 29553, {f: 2, c: 29555},
  11254. 29558, 29561, 29565, 29567, {f: 3, c: 29569}, {f: 2, c: 29573}, 29576,
  11255. 29578, {f: 2, c: 29580}, {f: 2, c: 29583}, {f: 4, c: 29586},
  11256. {f: 4, c: 29591}, {f: 3, c: 29596}, {f: 2, c: 29600}, {f: 6, c: 29603},
  11257. 29610, {f: 2, c: 29612}, 29617, {f: 3, c: 29620}, {f: 2, c: 29624},
  11258. {f: 4, c: 29628}, 29633, {f: 5, c: 29635}, {f: 2, c: 29643}, 29646,
  11259. {f: 7, c: 29650}, {f: 4, c: 29658}, 29663, {f: 4, c: 29665}, 29670, 29672,
  11260. {f: 3, c: 29674}, {f: 4, c: 29678}, {f: 11, c: 29683}, {f: 4, c: 29695},
  11261. 29700, {f: 2, c: 29703}, {f: 4, c: 29707}, {f: 9, c: 29713},
  11262. {f: 6, c: 29724}, {f: 2, c: 29731}, 29735, 29737, 29739, 29741, 29743,
  11263. {f: 2, c: 29745}, {f: 5, c: 29751}, {f: 2, c: 29757}, 29760,
  11264. {f: 9, c: 29762}, {f: 9, c: 29772}, 29782, 29784, 29789, {f: 3, c: 29792},
  11265. {f: 5, c: 29796}, {f: 2, c: 29803}, {f: 2, c: 29806}, {f: 5, c: 29809},
  11266. {f: 6, c: 29816}, 29823, 29826, {f: 3, c: 29828}, 29832, 29834,
  11267. {f: 2, c: 29836}, 29839, {f: 11, c: 29841}, 29853, {f: 4, c: 29855},
  11268. {f: 2, c: 29860}, {f: 6, c: 29866}, {f: 9, c: 29873}, {f: 2, c: 29883},
  11269. {f: 12, c: 29886}, {f: 4, c: 29899}, {f: 2, c: 29904}, 29907,
  11270. {f: 5, c: 29909}, 29915, 29917, 29919, 29921, 29925, {f: 7, c: 29927},
  11271. {f: 4, c: 29936}, 29941, {f: 7, c: 29944}, {f: 4, c: 29952},
  11272. {f: 7, c: 29957}, 29966, 29968, 29970, {f: 4, c: 29972}, 29979,
  11273. {f: 2, c: 29981}, {f: 3, c: 29984}, 29988, {f: 2, c: 29990}, 29994, 29998,
  11274. 30004, 30006, 30009, {f: 2, c: 30012}, 30015, {f: 4, c: 30017},
  11275. {f: 2, c: 30022}, {f: 2, c: 30025}, 30029, {f: 4, c: 30032},
  11276. {f: 4, c: 30037}, {f: 4, c: 30046}, {f: 2, c: 30051}, {f: 3, c: 30055},
  11277. {f: 6, c: 30060}, 30067, 30069, 30071, {f: 5, c: 30074}, {f: 3, c: 30080},
  11278. {f: 2, c: 30084}, {f: 3, c: 30088}, {f: 3, c: 30092}, 30096, 30099, 30101,
  11279. 30104, {f: 2, c: 30107}, 30110, 30114, {f: 5, c: 30118}, 30125,
  11280. {f: 2, c: 30134}, {f: 2, c: 30138}, {f: 3, c: 30143}, 30150,
  11281. {f: 2, c: 30155}, {f: 4, c: 30158}, 30163, 30167, 30170, {f: 2, c: 30172},
  11282. {f: 3, c: 30175}, 30181, 30185, {f: 4, c: 30188}, {f: 2, c: 30194},
  11283. {f: 4, c: 30197}, {f: 2, c: 30202}, {f: 2, c: 30205}, 30212,
  11284. {f: 4, c: 30214}, {f: 2, c: 30222}, {f: 4, c: 30225}, 30230, 30234,
  11285. {f: 2, c: 30236}, 30243, 30248, 30252, {f: 2, c: 30254}, {f: 2, c: 30257},
  11286. {f: 2, c: 30262}, {f: 2, c: 30265}, 30269, 30273, {f: 2, c: 30276}, 30280,
  11287. {f: 2, c: 30282}, {f: 6, c: 30286}, 30293, 30295, {f: 3, c: 30297}, 30301,
  11288. {f: 2, c: 30304}, 30310, 30312, 30314, {f: 3, c: 30323}, [12136, 30326],
  11289. 30327, {f: 2, c: 30329}, {f: 3, c: 30335}, 30339, 30341, {f: 2, c: 30345},
  11290. {f: 2, c: 30348}, {f: 2, c: 30351}, 30354, {f: 2, c: 30356},
  11291. {f: 2, c: 30359}, {f: 9, c: 30363}, {f: 9, c: 30373}, {f: 2, c: 30383},
  11292. 30387, {f: 3, c: 30389}, 30393, {f: 4, c: 30395}, {f: 2, c: 30400},
  11293. {f: 2, c: 30403}, 30407, 30409, {f: 2, c: 30411}, 30419, 30421,
  11294. {f: 2, c: 30425}, {f: 2, c: 30428}, 30432, 30434, 30438, {f: 6, c: 30440},
  11295. 30448, 30451, {f: 3, c: 30453}, {f: 2, c: 30458}, 30461, {f: 2, c: 30463},
  11296. {f: 2, c: 30466}, {f: 2, c: 30469}, 30474, 30476, {f: 11, c: 30478},
  11297. {f: 4, c: 30491}, 30497, {f: 3, c: 30499}, 30503, {f: 3, c: 30506}, 30510,
  11298. {f: 5, c: 30512}, 30521, 30523, {f: 3, c: 30525}, 30530, {f: 3, c: 30532},
  11299. {f: 7, c: 30536}, {f: 8, c: 30546}, {f: 2, c: 30556}, {f: 2, c: 30559},
  11300. 30564, 30567, {f: 2, c: 30569}, {f: 12, c: 30573}, {f: 3, c: 30586},
  11301. {f: 3, c: 30593}, {f: 6, c: 30598}, {f: 2, c: 30607}, {f: 5, c: 30611},
  11302. {f: 5, c: 30617}, 30625, {f: 2, c: 30627}, 30630, 30632, 30635,
  11303. {f: 2, c: 30638}, {f: 2, c: 30641}, 30644, {f: 5, c: 30646}, 30654,
  11304. {f: 7, c: 30656}, {f: 5, c: 30664}, {f: 9, c: 30670}, {f: 2, c: 30680},
  11305. {f: 5, c: 30685}, 30692, 30694, 30696, 30698, {f: 3, c: 30704},
  11306. {f: 2, c: 30708}, 30711, {f: 4, c: 30713}, {f: 6, c: 30723},
  11307. {f: 2, c: 30730}, {f: 3, c: 30734}, 30739, 30741, 30745, 30747, 30750,
  11308. {f: 3, c: 30752}, 30756, 30760, {f: 2, c: 30762}, {f: 2, c: 30766},
  11309. {f: 3, c: 30769}, {f: 2, c: 30773}, 30781, 30783, {f: 2, c: 30785}, 30788,
  11310. 30790, {f: 4, c: 30792}, 30797, 30799, 30801, {f: 2, c: 30803},
  11311. {f: 5, c: 30808}, {f: 6, c: 30814}, {f: 3, c: 30821}, 30825,
  11312. {f: 7, c: 30832}, {f: 4, c: 30840}, {f: 10, c: 30845}, 30856,
  11313. {f: 2, c: 30858}, {f: 2, c: 30863}, 30866, {f: 3, c: 30868}, 30873,
  11314. {f: 2, c: 30877}, 30880, 30882, 30884, 30886, 30888, {f: 3, c: 30890},
  11315. {f: 2, c: 30894}, {f: 3, c: 30901}, 30907, 30909, {f: 2, c: 30911},
  11316. {f: 3, c: 30914}, {f: 3, c: 30918}, {f: 4, c: 30924}, {f: 3, c: 30929},
  11317. {f: 3, c: 30934}, {f: 8, c: 30939}, {f: 3, c: 30948}, {f: 3, c: 30953},
  11318. {f: 2, c: 30957}, {f: 2, c: 30960}, 30963, {f: 2, c: 30965},
  11319. {f: 2, c: 30968}, {f: 2, c: 30971}, {f: 3, c: 30974}, {f: 3, c: 30978},
  11320. {f: 8, c: 30982}, {f: 4, c: 30991}, {f: 5, c: 30996}, {f: 4, c: 31002},
  11321. {f: 5, c: 31007}, 31013, {f: 3, c: 31015}, {f: 4, c: 31021},
  11322. {f: 2, c: 31026}, {f: 5, c: 31029}, 31037, 31039, {f: 4, c: 31042}, 31047,
  11323. {f: 9, c: 31050}, {f: 2, c: 31060}, {f: 2, c: 31064}, 31073,
  11324. {f: 2, c: 31075}, 31078, {f: 4, c: 31081}, 31086, {f: 7, c: 31088}, 31097,
  11325. {f: 5, c: 31099}, {f: 2, c: 31106}, {f: 4, c: 31110}, {f: 2, c: 31115},
  11326. {f: 10, c: 31120}, {f: 11, c: 31131}, {f: 2, c: 31144}, {f: 3, c: 31147},
  11327. 31151, 31154, {f: 4, c: 31156}, [12145, 31160], 31164, 31167, 31170,
  11328. {f: 2, c: 31172}, {f: 2, c: 31175}, 31178, 31180, {f: 3, c: 31182},
  11329. {f: 2, c: 31187}, {f: 2, c: 31190}, {f: 6, c: 31193}, {f: 3, c: 31200},
  11330. 31205, 31208, 31210, 31212, 31214, {f: 7, c: 31217}, {f: 2, c: 31225},
  11331. 31228, {f: 2, c: 31230}, 31233, {f: 2, c: 31236}, {f: 4, c: 31239}, 31244,
  11332. {f: 5, c: 31247}, {f: 2, c: 31253}, {f: 2, c: 31256}, {f: 3, c: 31259},
  11333. 31263, {f: 2, c: 31265}, {f: 10, c: 31268}, {f: 2, c: 31279}, 31282,
  11334. {f: 3, c: 31284}, 31288, 31290, 31294, {f: 5, c: 31297}, {f: 5, c: 31303},
  11335. {f: 2, c: 31311}, {f: 5, c: 31314}, {f: 9, c: 31320}, {f: 6, c: 31331},
  11336. 31338, {f: 4, c: 31340}, {f: 3, c: 31345}, 31349, {f: 4, c: 31355}, 31362,
  11337. 31365, 31367, {f: 4, c: 31369}, {f: 3, c: 31374}, {f: 2, c: 31379},
  11338. {f: 3, c: 31385}, 31390, {f: 4, c: 31393}, 31399, 31403, {f: 4, c: 31407},
  11339. {f: 2, c: 31412}, {f: 3, c: 31415}, {f: 4, c: 31419}, {f: 4, c: 31424},
  11340. 31430, 31433, {f: 10, c: 31436}, {f: 2, c: 31447}, {f: 4, c: 31450},
  11341. {f: 2, c: 31457}, 31460, {f: 3, c: 31463}, {f: 2, c: 31467}, 31470,
  11342. {f: 6, c: 31472}, {f: 2, c: 31479}, {f: 2, c: 31483}, 31486,
  11343. {f: 3, c: 31488}, 31493, 31495, 31497, {f: 3, c: 31500}, 31504,
  11344. {f: 2, c: 31506}, {f: 3, c: 31510}, 31514, {f: 2, c: 31516}, 31519,
  11345. {f: 3, c: 31521}, 31527, 31529, 31533, {f: 2, c: 31535}, 31538,
  11346. {f: 4, c: 31540}, 31545, 31547, 31549, {f: 6, c: 31551}, 31560, 31562,
  11347. {f: 2, c: 31565}, 31571, 31573, 31575, 31577, 31580, {f: 2, c: 31582},
  11348. 31585, {f: 4, c: 31587}, {f: 6, c: 31592}, {f: 2, c: 31599},
  11349. {f: 2, c: 31603}, 31606, 31608, 31610, {f: 2, c: 31612}, 31615,
  11350. {f: 4, c: 31617}, {f: 5, c: 31622}, 31628, {f: 2, c: 31630},
  11351. {f: 3, c: 31633}, 31638, {f: 4, c: 31640}, {f: 3, c: 31646},
  11352. {f: 3, c: 31651}, {f: 3, c: 31662}, {f: 2, c: 31666}, {f: 3, c: 31669},
  11353. {f: 7, c: 31673}, {f: 2, c: 31682}, 31685, 31688, 31690, {f: 4, c: 31693},
  11354. 31698, {f: 5, c: 31700}, {f: 2, c: 31707}, {f: 3, c: 31710},
  11355. {f: 2, c: 31714}, {f: 2, c: 31719}, {f: 3, c: 31723}, {f: 2, c: 31727},
  11356. 31730, {f: 3, c: 31732}, {f: 4, c: 31736}, 31741, 31743, {f: 6, c: 31745},
  11357. {f: 3, c: 31752}, 31758, {f: 6, c: 31760}, {f: 7, c: 31767}, 31776, 31778,
  11358. {f: 2, c: 31780}, {f: 2, c: 31784}, {f: 12, c: 31788}, {f: 4, c: 31801},
  11359. 31810, {f: 8, c: 31812}, {f: 14, c: 31822}, {f: 2, c: 31837},
  11360. {f: 3, c: 31841}, {f: 4, c: 31845}, 31851, 31853, {f: 3, c: 31855},
  11361. {f: 6, c: 31861}, {f: 11, c: 31870}, {f: 7, c: 31882}, {f: 2, c: 31891},
  11362. 31894, {f: 3, c: 31897}, {f: 2, c: 31904}, 31907, {f: 4, c: 31910},
  11363. {f: 3, c: 31915}, {f: 2, c: 31919}, {f: 5, c: 31924}, {f: 2, c: 31930},
  11364. {f: 2, c: 31935}, {f: 3, c: 31938}, 31942, 31945, 31947, {f: 7, c: 31950},
  11365. 31960, {f: 2, c: 31962}, {f: 6, c: 31969}, {f: 6, c: 31977}, 31985, 31987,
  11366. 31989, 31991, 31994, {f: 2, c: 31996}, 31999, 32001, 32003, 32012,
  11367. {f: 2, c: 32014}, {f: 2, c: 32017}, 32022, 32024, {f: 3, c: 32029},
  11368. {f: 4, c: 32035}, {f: 3, c: 32040}, {f: 3, c: 32044}, {f: 5, c: 32052},
  11369. 32059, {f: 2, c: 32061}, 32065, 32067, 32069, {f: 7, c: 32071}, 32079,
  11370. {f: 12, c: 32081}, {f: 2, c: 32095}, {f: 3, c: 32099}, 32103,
  11371. {f: 5, c: 32105}, {f: 2, c: 32111}, {f: 2, c: 32116}, 32120,
  11372. {f: 7, c: 32122}, 32130, {f: 2, c: 32132}, 32135, {f: 5, c: 32138},
  11373. {f: 3, c: 32144}, {f: 8, c: 32148}, 32157, {f: 3, c: 32159},
  11374. {f: 2, c: 32164}, {f: 4, c: 32167}, 32175, {f: 3, c: 32181}, 32188,
  11375. {f: 4, c: 32192}, {f: 2, c: 32197}, {f: 2, c: 32200}, {f: 5, c: 32204},
  11376. 32211, {f: 2, c: 32213}, {f: 3, c: 32218}, 32223, 32226, {f: 2, c: 32228},
  11377. 32231, {f: 2, c: 32234}, {f: 2, c: 32237}, 32240, 32243, 32245,
  11378. {f: 2, c: 32247}, 32250, {f: 12, c: 32252}, {f: 4, c: 32268},
  11379. {f: 9, c: 32274}, 32284, {f: 3, c: 32288}, {f: 3, c: 32292},
  11380. {f: 3, c: 32296}, 32300, {f: 2, c: 32303}, 32307, 32312, 32314, 32316,
  11381. {f: 2, c: 32319}, {f: 3, c: 32322}, {f: 10, c: 32328}, 32339,
  11382. {f: 4, c: 32342}, {f: 3, c: 32347}, {f: 3, c: 32351}, {f: 6, c: 32355},
  11383. 32364, {f: 2, c: 32369}, {f: 5, c: 32372}, {f: 2, c: 32378},
  11384. {f: 3, c: 32383}, {f: 5, c: 32387}, 32393, 32395, 32398, {f: 3, c: 32400},
  11385. 32405, 32407, {f: 2, c: 32409}, {f: 2, c: 32413}, 32430, 32436,
  11386. {f: 2, c: 32443}, 32470, 32484, 32492, 32505, 32522, 32528, 32542, 32567,
  11387. 32569, {f: 7, c: 32571}, 32579, {f: 6, c: 32582}, 32589, 32591,
  11388. {f: 2, c: 32594}, 32598, 32601, {f: 4, c: 32603}, 32608, {f: 5, c: 32611},
  11389. {f: 3, c: 32619}, 32623, 32627, {f: 2, c: 32629}, 32632, {f: 4, c: 32634},
  11390. {f: 2, c: 32639}, {f: 3, c: 32642}, 32647, 32649, 32651, 32653,
  11391. {f: 5, c: 32655}, {f: 5, c: 32661}, {f: 2, c: 32667}, 32672,
  11392. {f: 2, c: 32674}, 32678, 32680, {f: 5, c: 32682}, 32689, {f: 5, c: 32691},
  11393. {f: 2, c: 32698}, 32702, 32704, {f: 3, c: 32706}, {f: 4, c: 32710}, 32715,
  11394. 32717, {f: 3, c: 32719}, 32723, {f: 2, c: 32726}, {f: 6, c: 32729},
  11395. {f: 3, c: 32738}, {f: 2, c: 32743}, {f: 4, c: 32746}, 32751, 32754,
  11396. {f: 5, c: 32756}, 32762, {f: 3, c: 32765}, 32770, {f: 4, c: 32775},
  11397. {f: 2, c: 32782}, 32785, 32787, {f: 2, c: 32794}, {f: 3, c: 32797}, 32801,
  11398. {f: 2, c: 32803}, 32811, 32813, {f: 2, c: 32815}, 32818, 32820,
  11399. {f: 2, c: 32825}, 32828, 32830, {f: 2, c: 32832}, {f: 2, c: 32836},
  11400. {f: 3, c: 32839}, {f: 4, c: 32846}, 32851, 32853, 32855, 32857,
  11401. {f: 3, c: 32859}, {f: 10, c: 32863}, {f: 4, c: 32875}, 32884, 32888,
  11402. {f: 3, c: 32890}, {f: 2, c: 32897}, 32904, 32906, {f: 6, c: 32909},
  11403. {f: 2, c: 32916}, 32919, 32921, 32926, 32931, {f: 3, c: 32934}, 32940,
  11404. 32944, 32947, {f: 2, c: 32949}, {f: 2, c: 32952}, 32955, 32965,
  11405. {f: 5, c: 32967}, {f: 7, c: 32975}, 32984, {f: 2, c: 32991},
  11406. {f: 2, c: 32994}, 32998, 33006, 33013, 33015, 33017, 33019,
  11407. {f: 4, c: 33022}, {f: 2, c: 33027}, {f: 2, c: 33031}, {f: 2, c: 33035},
  11408. 33045, 33047, 33049, {f: 2, c: 33052}, {f: 13, c: 33055}, {f: 2, c: 33069},
  11409. 33072, {f: 3, c: 33075}, 33079, {f: 4, c: 33082}, {f: 7, c: 33087}, 33095,
  11410. 33097, 33101, 33103, 33106, {f: 2, c: 33111}, {f: 5, c: 33115},
  11411. {f: 3, c: 33122}, 33128, 33130, 33132, 33135, {f: 2, c: 33138},
  11412. {f: 3, c: 33141}, 33153, {f: 5, c: 33155}, 33161, {f: 4, c: 33163}, 33168,
  11413. {f: 6, c: 33170}, 33177, {f: 2, c: 33182}, {f: 2, c: 33185},
  11414. {f: 2, c: 33188}, 33191, {f: 8, c: 33195}, {f: 6, c: 33204}, 33212,
  11415. {f: 2, c: 33220}, {f: 2, c: 33223}, 33227, 33230, {f: 8, c: 33232}, 33241,
  11416. {f: 4, c: 33243}, {f: 2, c: 33249}, {f: 3, c: 33252}, 33257, 33259,
  11417. {f: 5, c: 33262}, {f: 5, c: 33269}, 33277, 33279, 33283, 33291,
  11418. {f: 2, c: 33294}, 33297, 33299, {f: 6, c: 33301}, 33309, 33312,
  11419. {f: 4, c: 33316}, 33321, 33326, 33330, 33338, {f: 2, c: 33340},
  11420. {f: 5, c: 33343}, {f: 2, c: 33349}, 33352, 33354, {f: 3, c: 33356},
  11421. {f: 8, c: 33360}, {f: 4, c: 33371}, {f: 4, c: 33376}, 33381, 33383,
  11422. {f: 2, c: 33385}, {f: 2, c: 33388}, {f: 2, c: 33397}, [12171, 33400],
  11423. {f: 2, c: 33403}, {f: 2, c: 33408}, 33411, {f: 3, c: 33413}, 33417, 33420,
  11424. 33424, {f: 4, c: 33427}, {f: 2, c: 33434}, 33438, 33440, {f: 2, c: 33442},
  11425. 33447, 33458, {f: 2, c: 33461}, 33466, 33468, {f: 2, c: 33471},
  11426. {f: 2, c: 33474}, {f: 2, c: 33477}, 33481, 33488, 33494, {f: 2, c: 33497},
  11427. 33501, 33506, {f: 3, c: 33512}, {f: 3, c: 33516}, 33520, {f: 2, c: 33522},
  11428. {f: 2, c: 33525}, 33528, 33530, {f: 5, c: 33532}, {f: 2, c: 33546}, 33549,
  11429. 33552, {f: 2, c: 33554}, 33558, {f: 2, c: 33560}, {f: 10, c: 33565},
  11430. {f: 2, c: 33577}, 33582, 33584, 33586, 33591, 33595, {f: 3, c: 33597},
  11431. {f: 2, c: 33601}, {f: 2, c: 33604}, 33608, {f: 5, c: 33610}, 33619,
  11432. {f: 5, c: 33621}, 33629, 33634, {f: 7, c: 33648}, {f: 2, c: 33657},
  11433. {f: 7, c: 33662}, {f: 2, c: 33671}, {f: 3, c: 33675}, {f: 3, c: 33679},
  11434. {f: 2, c: 33684}, 33687, {f: 2, c: 33689}, 33693, 33695, 33697,
  11435. {f: 4, c: 33699}, {f: 4, c: 33708}, 33717, 33723, {f: 2, c: 33726},
  11436. {f: 3, c: 33730}, 33734, {f: 2, c: 33736}, 33739, {f: 2, c: 33741},
  11437. {f: 4, c: 33744}, 33749, 33751, {f: 3, c: 33753}, 33758, {f: 3, c: 33762},
  11438. {f: 3, c: 33766}, {f: 4, c: 33771}, {f: 5, c: 33779}, {f: 3, c: 33786},
  11439. {f: 3, c: 33790}, 33794, 33797, {f: 2, c: 33800}, 33808, {f: 6, c: 33810},
  11440. {f: 3, c: 33817}, {f: 6, c: 33822}, {f: 3, c: 33833}, {f: 4, c: 33837},
  11441. {f: 3, c: 33842}, {f: 2, c: 33846}, {f: 3, c: 33849}, {f: 8, c: 33854},
  11442. {f: 2, c: 33863}, {f: 7, c: 33866}, {f: 4, c: 33875}, 33880,
  11443. {f: 4, c: 33885}, 33890, 33893, {f: 2, c: 33895}, 33898, 33902, 33904,
  11444. 33906, 33908, 33913, {f: 7, c: 33915}, {f: 4, c: 33923}, 33930, 33933,
  11445. {f: 4, c: 33935}, {f: 2, c: 33941}, 33944, {f: 2, c: 33946},
  11446. {f: 4, c: 33949}, {f: 13, c: 33954}, {f: 2, c: 33968}, 33971,
  11447. {f: 3, c: 33973}, 33979, 33982, {f: 2, c: 33986}, {f: 4, c: 33989}, 33996,
  11448. {f: 2, c: 33998}, 34002, {f: 2, c: 34004}, {f: 6, c: 34007}, 34014,
  11449. {f: 2, c: 34017}, 34020, {f: 5, c: 34023}, 34029, {f: 11, c: 34033}, 34046,
  11450. {f: 12, c: 34048}, {f: 4, c: 34061}, 34066, {f: 2, c: 34069},
  11451. {f: 2, c: 34072}, {f: 3, c: 34075}, 34080, 34082, {f: 2, c: 34084},
  11452. {f: 4, c: 34087}, {f: 9, c: 34094}, {f: 3, c: 34110}, 34114,
  11453. {f: 2, c: 34116}, 34119, {f: 3, c: 34123}, {f: 3, c: 34127}, 34132, 34135,
  11454. {f: 4, c: 34138}, {f: 3, c: 34143}, 34147, {f: 3, c: 34149},
  11455. {f: 2, c: 34155}, {f: 4, c: 34158}, 34163, {f: 2, c: 34165}, 34168,
  11456. {f: 2, c: 34172}, {f: 5, c: 34175}, 34182, 34185, 34187, {f: 2, c: 34189},
  11457. 34192, {f: 2, c: 34194}, {f: 6, c: 34197}, {f: 2, c: 34205},
  11458. {f: 4, c: 34208}, 34213, 34215, {f: 3, c: 34219}, {f: 6, c: 34225}, 34232,
  11459. {f: 6, c: 34235}, {f: 7, c: 34242}, {f: 3, c: 34250}, {f: 2, c: 34257},
  11460. 34260, {f: 6, c: 34262}, {f: 6, c: 34270}, {f: 3, c: 34278},
  11461. {f: 9, c: 34283}, 34293, {f: 2, c: 34295}, {f: 3, c: 34300},
  11462. {f: 4, c: 34304}, {f: 3, c: 34312}, {f: 5, c: 34316}, {f: 4, c: 34322},
  11463. {f: 3, c: 34327}, {f: 3, c: 34331}, {f: 3, c: 34335}, {f: 4, c: 34339},
  11464. 34344, {f: 3, c: 34346}, {f: 10, c: 34350}, 34361, 34363, {f: 2, c: 34365},
  11465. {f: 13, c: 34368}, {f: 2, c: 34386}, {f: 4, c: 34390}, 34395, 34397,
  11466. {f: 2, c: 34400}, {f: 4, c: 34403}, {f: 3, c: 34408}, 34413,
  11467. {f: 2, c: 34415}, {f: 7, c: 34418}, {f: 7, c: 34435}, {f: 5, c: 34446},
  11468. 34452, {f: 6, c: 34454}, {f: 5, c: 34462}, {f: 2, c: 34469}, 34475,
  11469. {f: 2, c: 34477}, {f: 2, c: 34482}, {f: 3, c: 34487}, {f: 5, c: 34491},
  11470. {f: 3, c: 34497}, 34501, 34504, {f: 2, c: 34508}, {f: 2, c: 34514},
  11471. {f: 3, c: 34517}, 34522, {f: 2, c: 34524}, {f: 4, c: 34528},
  11472. {f: 4, c: 34533}, {f: 3, c: 34538}, 34543, {f: 3, c: 34549},
  11473. {f: 3, c: 34555}, 34559, 34561, {f: 2, c: 34564}, {f: 2, c: 34571},
  11474. {f: 4, c: 34574}, 34580, 34582, 34585, 34587, 34589, {f: 2, c: 34591},
  11475. 34596, {f: 3, c: 34598}, {f: 4, c: 34602}, {f: 2, c: 34607},
  11476. {f: 2, c: 34610}, {f: 2, c: 34613}, {f: 3, c: 34616}, {f: 2, c: 34620},
  11477. {f: 7, c: 34624}, {f: 2, c: 34634}, 34637, {f: 4, c: 34639}, 34644, 34646,
  11478. 34648, {f: 6, c: 34650}, {f: 2, c: 34657}, {f: 7, c: 34663}, 34671,
  11479. {f: 3, c: 34673}, 34677, 34679, {f: 2, c: 34681}, {f: 3, c: 34687},
  11480. {f: 2, c: 34694}, {f: 2, c: 34697}, 34700, {f: 5, c: 34702},
  11481. {f: 3, c: 34708}, {f: 6, c: 34712}, {f: 2, c: 34720}, {f: 5, c: 34723},
  11482. {f: 2, c: 34729}, 34734, {f: 3, c: 34736}, 34740, {f: 4, c: 34742}, 34748,
  11483. {f: 2, c: 34750}, {f: 3, c: 34753}, 34757, 34759, 34761, {f: 2, c: 34764},
  11484. {f: 2, c: 34767}, {f: 7, c: 34772}, {f: 4, c: 34780}, {f: 2, c: 34785},
  11485. 34788, {f: 4, c: 34790}, 34795, 34797, {f: 2, c: 34800}, {f: 3, c: 34803},
  11486. {f: 2, c: 34807}, 34810, {f: 2, c: 34812}, {f: 4, c: 34815}, 34820,
  11487. {f: 3, c: 34823}, {f: 5, c: 34827}, 34834, 34836, {f: 4, c: 34839},
  11488. {f: 3, c: 34844}, 34848, {f: 13, c: 34852}, {f: 3, c: 34867},
  11489. {f: 2, c: 34871}, 34874, {f: 3, c: 34877}, {f: 3, c: 34881},
  11490. {f: 3, c: 34887}, 34891, {f: 5, c: 34894}, {f: 2, c: 34901}, 34904, 34906,
  11491. 34908, {f: 3, c: 34910}, {f: 2, c: 34918}, 34922, 34925, 34927, 34929,
  11492. {f: 4, c: 34931}, 34936, {f: 3, c: 34938}, 34944, 34947, {f: 2, c: 34950},
  11493. {f: 2, c: 34953}, 34956, {f: 4, c: 34958}, {f: 3, c: 34963},
  11494. {f: 5, c: 34967}, {f: 5, c: 34973}, 34979, {f: 6, c: 34981}, 34988,
  11495. {f: 3, c: 34990}, {f: 5, c: 34994}, {f: 4, c: 35000}, {f: 4, c: 35005},
  11496. {f: 2, c: 35011}, {f: 2, c: 35015}, {f: 3, c: 35019}, {f: 2, c: 35024},
  11497. 35027, {f: 2, c: 35030}, {f: 2, c: 35034}, 35038, {f: 2, c: 35040},
  11498. {f: 2, c: 35046}, {f: 7, c: 35049}, 35058, {f: 3, c: 35061},
  11499. {f: 2, c: 35066}, {f: 3, c: 35071}, {f: 4, c: 35075}, {f: 2, c: 35080},
  11500. {f: 5, c: 35083}, 35089, {f: 5, c: 35092}, {f: 5, c: 35100},
  11501. {f: 3, c: 35106}, {f: 4, c: 35110}, {f: 4, c: 35116}, 35121, 35125, 35127,
  11502. {f: 2, c: 35129}, {f: 5, c: 35132}, {f: 2, c: 35138}, {f: 2, c: 35141},
  11503. {f: 14, c: 35144}, {f: 6, c: 35159}, {f: 3, c: 35169}, 35173,
  11504. {f: 3, c: 35175}, 35179, {f: 2, c: 35181}, {f: 2, c: 35184},
  11505. {f: 8, c: 35187}, {f: 2, c: 35196}, [12177, 35198], 35200, 35202,
  11506. {f: 2, c: 35204}, {f: 4, c: 35207}, {f: 3, c: 35212}, {f: 3, c: 35216},
  11507. {f: 2, c: 35220}, 35223, {f: 8, c: 35225}, {f: 4, c: 35234},
  11508. {f: 3, c: 35239}, 35243, {f: 2, c: 35245}, {f: 2, c: 35248},
  11509. {f: 4, c: 35251}, {f: 2, c: 35256}, {f: 2, c: 35259}, 35262, 35267, 35277,
  11510. {f: 3, c: 35283}, {f: 3, c: 35287}, 35291, 35293, {f: 4, c: 35295}, 35300,
  11511. {f: 4, c: 35303}, {f: 3, c: 35308}, {f: 3, c: 35312}, 35317, 35319,
  11512. {f: 7, c: 35321}, {f: 3, c: 35332}, 35337, 35339, 35341, 35343,
  11513. {f: 2, c: 35345}, 35348, 35351, {f: 2, c: 35353}, 35356, 35358,
  11514. {f: 3, c: 35360}, 35364, {f: 4, c: 35366}, {f: 2, c: 35371},
  11515. {f: 3, c: 35374}, {f: 2, c: 35378}, 35381, {f: 3, c: 35383},
  11516. {f: 3, c: 35387}, {f: 2, c: 35391}, {f: 4, c: 35394}, 35399,
  11517. {f: 5, c: 35401}, 35407, 35409, 35411, {f: 2, c: 35414}, {f: 2, c: 35417},
  11518. {f: 2, c: 35420}, {f: 2, c: 35423}, {f: 2, c: 35428}, {f: 2, c: 35431},
  11519. 35434, 35439, 35444, {f: 3, c: 35446}, {f: 2, c: 35450}, {f: 2, c: 35453},
  11520. {f: 4, c: 35456}, 35464, {f: 2, c: 35467}, {f: 3, c: 35470}, 35476,
  11521. {f: 2, c: 35478}, 35481, {f: 3, c: 35483}, 35487, 35490, 35495,
  11522. {f: 3, c: 35497}, {f: 3, c: 35501}, 35505, {f: 3, c: 35507},
  11523. {f: 2, c: 35511}, {f: 2, c: 35514}, {f: 2, c: 35517}, {f: 2, c: 35520},
  11524. 35523, {f: 2, c: 35525}, 35528, 35530, 35532, 35534, 35536,
  11525. {f: 3, c: 35539}, {f: 3, c: 35544}, 35549, {f: 3, c: 35551}, 35555, 35557,
  11526. {f: 3, c: 35560}, 35564, {f: 2, c: 35567}, 35570, {f: 2, c: 35572}, 35577,
  11527. 35579, 35581, 35583, 35587, 35590, {f: 2, c: 35592}, {f: 3, c: 35595},
  11528. 35599, {f: 3, c: 35601}, 35605, 35608, 35612, {f: 3, c: 35614},
  11529. {f: 4, c: 35618}, 35623, {f: 2, c: 35625}, {f: 5, c: 35630},
  11530. {f: 5, c: 35636}, {f: 4, c: 35642}, {f: 10, c: 35647}, {f: 4, c: 35658},
  11531. {f: 6, c: 35664}, 35671, 35675, {f: 9, c: 35677}, {f: 4, c: 35687},
  11532. {f: 2, c: 35693}, {f: 3, c: 35697}, {f: 2, c: 35701}, {f: 5, c: 35704},
  11533. {f: 2, c: 35710}, {f: 9, c: 35713}, {f: 3, c: 35723}, {f: 3, c: 35727},
  11534. 35732, {f: 5, c: 35735}, 35741, 35743, 35756, 35761, 35771, 35783, 35792,
  11535. 35818, 35849, 35870, {f: 9, c: 35896}, {f: 4, c: 35906}, {f: 2, c: 35914},
  11536. {f: 3, c: 35917}, {f: 4, c: 35921}, {f: 4, c: 35926}, {f: 6, c: 35931},
  11537. {f: 7, c: 35939}, {f: 7, c: 35948}, {f: 4, c: 35956}, {f: 7, c: 35963},
  11538. {f: 2, c: 35971}, {f: 3, c: 35974}, 35979, {f: 7, c: 35981},
  11539. {f: 3, c: 35989}, {f: 4, c: 35993}, 35999, {f: 4, c: 36003},
  11540. {f: 2, c: 36013}, 36017, 36021, 36025, 36030, 36038, 36041,
  11541. {f: 6, c: 36043}, 36052, {f: 4, c: 36054}, 36059, 36061, 36063, 36069,
  11542. {f: 2, c: 36072}, {f: 6, c: 36078}, {f: 5, c: 36085}, {f: 5, c: 36095},
  11543. {f: 2, c: 36102}, 36105, 36108, 36110, {f: 5, c: 36113}, {f: 4, c: 36119},
  11544. 36128, {f: 2, c: 36177}, 36183, 36191, 36197, {f: 3, c: 36200}, 36204,
  11545. {f: 2, c: 36206}, {f: 2, c: 36209}, {f: 9, c: 36216}, {f: 2, c: 36226},
  11546. {f: 4, c: 36230}, {f: 5, c: 36236}, {f: 2, c: 36242}, {f: 3, c: 36246},
  11547. {f: 5, c: 36250}, {f: 3, c: 36256}, {f: 4, c: 36260}, {f: 8, c: 36265},
  11548. {f: 2, c: 36278}, 36281, 36283, 36285, {f: 3, c: 36288}, 36293,
  11549. {f: 4, c: 36295}, 36301, 36304, {f: 4, c: 36306}, {f: 2, c: 36312}, 36316,
  11550. {f: 3, c: 36320}, {f: 3, c: 36325}, 36329, {f: 2, c: 36333},
  11551. {f: 3, c: 36336}, 36340, 36342, 36348, {f: 7, c: 36350}, {f: 3, c: 36358},
  11552. 36363, {f: 2, c: 36365}, {f: 3, c: 36369}, {f: 8, c: 36373},
  11553. {f: 2, c: 36384}, {f: 5, c: 36388}, 36395, 36397, 36400, {f: 2, c: 36402},
  11554. {f: 3, c: 36406}, {f: 2, c: 36411}, {f: 2, c: 36414}, 36419,
  11555. {f: 2, c: 36421}, {f: 4, c: 36429}, {f: 2, c: 36435}, {f: 3, c: 36438},
  11556. {f: 9, c: 36442}, {f: 2, c: 36452}, {f: 2, c: 36455}, {f: 2, c: 36458},
  11557. 36462, 36465, 36467, 36469, {f: 3, c: 36471}, 36475, {f: 2, c: 36477},
  11558. 36480, {f: 3, c: 36482}, 36486, 36488, 36492, 36494, {f: 5, c: 36501},
  11559. 36507, 36509, {f: 2, c: 36511}, {f: 3, c: 36514}, {f: 3, c: 36519},
  11560. {f: 2, c: 36525}, {f: 2, c: 36528}, {f: 7, c: 36531}, {f: 5, c: 36539},
  11561. {f: 9, c: 36545}, {f: 3, c: 36559}, 36563, {f: 6, c: 36565},
  11562. {f: 3, c: 36572}, {f: 4, c: 36576}, {f: 6, c: 36581}, {f: 6, c: 36588},
  11563. {f: 5, c: 36595}, 36605, {f: 4, c: 36607}, 36612, 36614, 36616,
  11564. {f: 7, c: 36619}, 36627, {f: 5, c: 36630}, {f: 5, c: 36640},
  11565. {f: 2, c: 36647}, {f: 4, c: 36651}, {f: 3, c: 36656}, {f: 4, c: 36660},
  11566. {f: 2, c: 36665}, {f: 2, c: 36668}, {f: 2, c: 36672}, 36675,
  11567. {f: 2, c: 36679}, {f: 3, c: 36682}, {f: 5, c: 36687}, {f: 10, c: 36693},
  11568. 36704, 36707, 36709, 36714, 36736, 36748, 36754, 36765, {f: 3, c: 36768},
  11569. {f: 2, c: 36772}, 36775, 36778, 36780, {f: 2, c: 36787}, [12193, 36789],
  11570. {f: 2, c: 36791}, {f: 3, c: 36794}, {f: 2, c: 36799}, 36803, 36806,
  11571. {f: 5, c: 36809}, 36815, 36818, {f: 2, c: 36822}, 36826, {f: 2, c: 36832},
  11572. 36835, 36839, 36844, 36847, {f: 2, c: 36849}, {f: 2, c: 36853},
  11573. {f: 3, c: 36858}, {f: 2, c: 36862}, {f: 2, c: 36871}, 36876, 36878, 36883,
  11574. 36888, 36892, {f: 2, c: 36900}, {f: 6, c: 36903}, {f: 2, c: 36912},
  11575. {f: 2, c: 36915}, 36919, {f: 2, c: 36921}, 36925, {f: 2, c: 36927}, 36931,
  11576. {f: 2, c: 36933}, {f: 3, c: 36936}, 36940, 36950, {f: 2, c: 36953}, 36957,
  11577. 36959, 36961, 36964, {f: 2, c: 36966}, {f: 3, c: 36970}, {f: 3, c: 36975},
  11578. 36979, 36982, 36985, 36987, 36990, {f: 2, c: 36997}, 37001,
  11579. {f: 3, c: 37004}, 37010, 37012, 37014, 37016, 37018, 37020,
  11580. {f: 3, c: 37022}, {f: 2, c: 37028}, {f: 3, c: 37031}, 37035, 37037, 37042,
  11581. 37047, {f: 2, c: 37052}, {f: 2, c: 37055}, {f: 2, c: 37058}, 37062,
  11582. {f: 2, c: 37064}, {f: 3, c: 37067}, 37074, {f: 3, c: 37076},
  11583. {f: 3, c: 37080}, 37086, 37088, {f: 3, c: 37091}, {f: 2, c: 37097}, 37100,
  11584. 37102, {f: 4, c: 37104}, {f: 2, c: 37110}, {f: 4, c: 37113},
  11585. {f: 3, c: 37119}, 37123, 37125, {f: 2, c: 37127}, {f: 8, c: 37130}, 37139,
  11586. 37141, {f: 2, c: 37143}, {f: 4, c: 37146}, {f: 3, c: 37151},
  11587. {f: 3, c: 37156}, {f: 5, c: 37160}, 37166, 37171, 37173, {f: 2, c: 37175},
  11588. {f: 8, c: 37179}, {f: 2, c: 37188}, 37191, 37201, {f: 4, c: 37203},
  11589. {f: 2, c: 37208}, {f: 2, c: 37211}, {f: 2, c: 37215}, {f: 3, c: 37222},
  11590. 37227, 37229, 37235, {f: 3, c: 37242}, {f: 5, c: 37248}, 37254, 37256,
  11591. 37258, {f: 2, c: 37262}, {f: 3, c: 37267}, {f: 3, c: 37271},
  11592. {f: 5, c: 37277}, {f: 6, c: 37284}, {f: 4, c: 37296}, {f: 4, c: 37302},
  11593. {f: 5, c: 37307}, 37314, 37316, [12196, 37318], 37320, 37328, 37334,
  11594. {f: 2, c: 37338}, {f: 5, c: 37342}, {f: 2, c: 37349}, 37352,
  11595. {f: 11, c: 37354}, 37366, 37368, {f: 5, c: 37371}, {f: 2, c: 37378},
  11596. {f: 3, c: 37381}, {f: 3, c: 37386}, 37391, {f: 2, c: 37394},
  11597. {f: 8, c: 37398}, {f: 4, c: 37407}, 37412, {f: 6, c: 37416}, 37423,
  11598. {f: 2, c: 37425}, {f: 2, c: 37429}, {f: 2, c: 37435}, {f: 4, c: 37441},
  11599. {f: 2, c: 37446}, {f: 3, c: 37450}, {f: 3, c: 37454}, {f: 3, c: 37458},
  11600. 37462, {f: 2, c: 37464}, {f: 2, c: 37468}, {f: 3, c: 37471},
  11601. {f: 3, c: 37475}, {f: 5, c: 37479}, {f: 6, c: 37486}, {f: 3, c: 37493},
  11602. 37497, {f: 3, c: 37500}, {f: 2, c: 37505}, 37508, {f: 8, c: 37510},
  11603. {f: 2, c: 37519}, 37522, {f: 2, c: 37524}, 37527, 37529, 37531,
  11604. {f: 3, c: 37533}, {f: 2, c: 37537}, 37540, 37543, 37549, {f: 2, c: 37551},
  11605. {f: 5, c: 37554}, 37560, 37562, {f: 4, c: 37565}, 37570, 37572, 37574,
  11606. {f: 3, c: 37577}, {f: 2, c: 37581}, {f: 2, c: 37584}, {f: 10, c: 37587},
  11607. 37598, {f: 3, c: 37600}, 37607, 37609, {f: 2, c: 37611}, {f: 4, c: 37618},
  11608. 37623, {f: 3, c: 37625}, {f: 4, c: 37629}, {f: 4, c: 37634},
  11609. {f: 7, c: 37641}, 37649, {f: 2, c: 37651}, {f: 2, c: 37654},
  11610. {f: 3, c: 37660}, 37665, {f: 3, c: 37667}, 37671, {f: 2, c: 37673},
  11611. {f: 2, c: 37676}, {f: 2, c: 37680}, {f: 2, c: 37684}, 37687,
  11612. {f: 5, c: 37689}, 37695, 37698, {f: 2, c: 37700}, {f: 3, c: 37704}, 37708,
  11613. {f: 6, c: 37710}, {f: 3, c: 37717}, {f: 2, c: 37721}, {f: 8, c: 37724},
  11614. {f: 3, c: 37734}, 37739, {f: 3, c: 37741}, {f: 4, c: 37745},
  11615. {f: 3, c: 37751}, {f: 3, c: 37755}, {f: 3, c: 37759}, 37763,
  11616. {f: 2, c: 37765}, {f: 2, c: 37768}, {f: 4, c: 37771}, {f: 6, c: 37776},
  11617. 37783, {f: 9, c: 37785}, {f: 2, c: 37796}, 37800, 37803, 37805, 37807,
  11618. {f: 2, c: 37809}, 37812, {f: 2, c: 37814}, {f: 6, c: 37817},
  11619. {f: 3, c: 37824}, {f: 3, c: 37828}, 37833, 37835, {f: 3, c: 37838},
  11620. {f: 4, c: 37842}, {f: 3, c: 37849}, 37856, 37859, {f: 3, c: 37861},
  11621. {f: 12, c: 37865}, 37878, 37880, {f: 9, c: 37882}, {f: 7, c: 37892},
  11622. {f: 4, c: 37900}, 37905, {f: 3, c: 37909}, {f: 3, c: 37914},
  11623. {f: 2, c: 37918}, {f: 5, c: 37921}, {f: 5, c: 37929}, {f: 3, c: 37935},
  11624. 37940, {f: 2, c: 37942}, 37945, {f: 3, c: 37947}, {f: 4, c: 37952},
  11625. {f: 5, c: 37957}, 37963, {f: 5, c: 37965}, 37971, {f: 11, c: 37973},
  11626. {f: 2, c: 37985}, 37988, {f: 5, c: 37990}, 37996, {f: 2, c: 37998}, 38001,
  11627. {f: 4, c: 38003}, 38008, {f: 2, c: 38010}, {f: 5, c: 38016}, 38033, 38038,
  11628. 38040, 38087, 38095, {f: 2, c: 38099}, 38106, 38118, 38139, 38172, 38176,
  11629. 38183, 38195, 38205, 38211, 38216, 38219, 38229, 38234, 38240, 38254,
  11630. {f: 2, c: 38260}, {f: 7, c: 38264}, 38273, {f: 2, c: 38276},
  11631. {f: 2, c: 38279}, 38282, 38285, 38288, 38290, {f: 3, c: 38293},
  11632. {f: 8, c: 38297}, 38306, {f: 2, c: 38310}, 38314, {f: 4, c: 38318},
  11633. {f: 3, c: 38323}, {f: 2, c: 38327}, 38330, {f: 3, c: 38336},
  11634. {f: 2, c: 38340}, 38343, 38345, {f: 3, c: 38349}, {f: 3, c: 38353},
  11635. {f: 5, c: 38359}, 38365, {f: 2, c: 38367}, {f: 2, c: 38371},
  11636. {f: 2, c: 38374}, 38380, 38399, 38407, 38419, 38424, 38427, 38430, 38432,
  11637. {f: 7, c: 38435}, {f: 3, c: 38443}, {f: 2, c: 38447}, {f: 4, c: 38455},
  11638. 38462, 38465, 38467, 38474, {f: 2, c: 38478}, {f: 3, c: 38481},
  11639. {f: 2, c: 38486}, {f: 2, c: 38489}, 38492, 38494, 38496, {f: 2, c: 38501},
  11640. 38507, {f: 3, c: 38509}, 38513, {f: 4, c: 38521}, {f: 7, c: 38526}, 38535,
  11641. 38537, 38540, {f: 3, c: 38545}, 38550, 38554, {f: 10, c: 38557}, 38569,
  11642. {f: 5, c: 38571}, 38578, 38581, 38583, 38586, 38591, {f: 2, c: 38594},
  11643. 38600, {f: 2, c: 38602}, {f: 2, c: 38608}, {f: 2, c: 38611},
  11644. {f: 2, c: 38615}, 38618, {f: 3, c: 38621}, 38625, {f: 4, c: 38628},
  11645. {f: 4, c: 38635}, {f: 2, c: 38640}, {f: 2, c: 38644}, 38648, 38650,
  11646. {f: 2, c: 38652}, 38655, {f: 2, c: 38658}, 38661, {f: 3, c: 38666},
  11647. {f: 3, c: 38672}, {f: 2, c: 38676}, {f: 5, c: 38679}, 38685,
  11648. {f: 8, c: 38687}, {f: 2, c: 38696}, {f: 2, c: 38699}, {f: 2, c: 38702},
  11649. 38705, {f: 5, c: 38707}, {f: 3, c: 38714}, {f: 3, c: 38719}, 38723,
  11650. {f: 3, c: 38725}, {f: 8, c: 38729}, [12205, 38737], {f: 2, c: 38740},
  11651. {f: 2, c: 38743}, {f: 2, c: 38748}, 38751, {f: 2, c: 38755},
  11652. {f: 2, c: 38758}, {f: 9, c: 38762}, 38773, {f: 5, c: 38775},
  11653. {f: 8, c: 38781}, {f: 5, c: 38790}, 38796, 38798, 38800, 38803,
  11654. {f: 3, c: 38805}, {f: 7, c: 38809}, {f: 2, c: 38817}, {f: 2, c: 38820},
  11655. {f: 4, c: 38823}, 38828, 38830, {f: 2, c: 38832}, 38835, {f: 8, c: 38837},
  11656. {f: 5, c: 38846}, {f: 2, c: 38852}, {f: 2, c: 38855}, 38858,
  11657. {f: 6, c: 38861}, {f: 5, c: 38868}, {f: 2, c: 38874}, 38877,
  11658. {f: 7, c: 38879}, 38888, {f: 5, c: 38894}, 38900, {f: 8, c: 38903}, 38912,
  11659. 38916, 38921, 38923, 38925, {f: 3, c: 38932}, {f: 3, c: 38937},
  11660. {f: 4, c: 38941}, {f: 2, c: 38946}, 38949, {f: 6, c: 38951},
  11661. {f: 2, c: 38958}, {f: 6, c: 38961}, {f: 2, c: 38969}, 38972,
  11662. {f: 8, c: 38974}, {f: 5, c: 38983}, {f: 4, c: 38991}, {f: 3, c: 38997},
  11663. 39002, {f: 2, c: 39004}, {f: 3, c: 39007}, {f: 2, c: 39011}, 39014,
  11664. {f: 3, c: 39016}, {f: 2, c: 39021}, 39026, 39051, 39054, 39058, 39061,
  11665. 39065, 39075, {f: 5, c: 39081}, 39088, 39090, {f: 2, c: 39092},
  11666. {f: 5, c: 39095}, {f: 7, c: 39101}, 39109, 39111, {f: 5, c: 39113},
  11667. {f: 2, c: 39119}, 39124, {f: 2, c: 39126}, {f: 2, c: 39132}, 39137,
  11668. {f: 4, c: 39139}, 39148, 39150, {f: 2, c: 39152}, 39155, {f: 7, c: 39157},
  11669. {f: 4, c: 39167}, 39172, {f: 3, c: 39174}, 39179, {f: 2, c: 39182},
  11670. {f: 4, c: 39188}, {f: 2, c: 39193}, {f: 2, c: 39196}, {f: 2, c: 39199},
  11671. {f: 6, c: 39202}, {f: 5, c: 39209}, {f: 4, c: 39215}, {f: 3, c: 39220},
  11672. {f: 4, c: 39224}, 39229, {f: 3, c: 39232}, 39236, {f: 2, c: 39238},
  11673. {f: 4, c: 39245}, 39251, 39254, {f: 4, c: 39256}, 39261, {f: 3, c: 39263},
  11674. 39268, 39270, 39283, {f: 2, c: 39288}, 39291, 39294, {f: 2, c: 39298},
  11675. 39305, 39308, 39310, {f: 11, c: 39322}, {f: 2, c: 39334}, {f: 3, c: 39337},
  11676. {f: 2, c: 39343}, 39346, {f: 12, c: 39349}, {f: 14, c: 39362}, 39379,
  11677. {f: 2, c: 39382}, 39386, 39388, 39390, 39392, {f: 10, c: 39395},
  11678. {f: 3, c: 39406}, {f: 13, c: 39410}, 39424, {f: 3, c: 39426},
  11679. {f: 7, c: 39430}, {f: 6, c: 39440}, {f: 2, c: 39447}, {f: 17, c: 39450},
  11680. 39468, 39471, {f: 5, c: 39473}, {f: 5, c: 39481}, 39487, {f: 4, c: 39494},
  11681. {f: 2, c: 39499}, 39502, {f: 5, c: 39504}, 39510, {f: 2, c: 39512},
  11682. {f: 3, c: 39516}, {f: 2, c: 39520}, 39523, {f: 4, c: 39526}, 39531, 39538,
  11683. 39555, 39561, {f: 2, c: 39565}, {f: 2, c: 39572}, 39577, 39590,
  11684. {f: 6, c: 39593}, {f: 4, c: 39602}, 39609, 39611, {f: 3, c: 39613},
  11685. {f: 2, c: 39619}, {f: 5, c: 39622}, {f: 2, c: 39629}, 39632, 39639,
  11686. {f: 6, c: 39641}, 39648, {f: 4, c: 39650}, {f: 4, c: 39655}, 39660,
  11687. {f: 9, c: 39664}, 39674, {f: 7, c: 39676}, {f: 2, c: 39684}, 39687,
  11688. {f: 4, c: 39689}, 39694, {f: 3, c: 39696}, {f: 6, c: 39700},
  11689. {f: 4, c: 39707}, {f: 2, c: 39712}, 39716, 39718, 39720, {f: 4, c: 39722},
  11690. 39728, {f: 8, c: 39731}, {f: 4, c: 39741}, 39750, {f: 3, c: 39754}, 39760,
  11691. {f: 2, c: 39762}, {f: 3, c: 39765}, 39769, {f: 20, c: 39771},
  11692. {f: 4, c: 39792}, {f: 2, c: 39797}, {f: 9, c: 39800}, 39810,
  11693. {f: 10, c: 39812}, 39823, {f: 7, c: 39827}, {f: 2, c: 39835},
  11694. {f: 11, c: 39839}, 39852, {f: 17, c: 39855}, {f: 5, c: 39874}, 39880,
  11695. {f: 9, c: 39883}, 39893, {f: 4, c: 39895}, 39900, {f: 3, c: 39902}, 39907,
  11696. {f: 2, c: 39909}, 39913, {f: 4, c: 39916}, {f: 3, c: 39921},
  11697. {f: 8, c: 39925}, 39934, {f: 8, c: 39936}, {f: 3, c: 39946},
  11698. {f: 2, c: 39950}, 39953, {f: 12, c: 39956}, {f: 2, c: 39969}, 39972,
  11699. {f: 2, c: 39974}, {f: 3, c: 39978}, {f: 3, c: 39982}, 39988, 39990, 39992,
  11700. 39994, {f: 2, c: 39996}, {f: 6, c: 39999}, {f: 2, c: 40006},
  11701. {f: 8, c: 40010}, 40019, 40021, {f: 4, c: 40025}, 40030, {f: 7, c: 40032},
  11702. {f: 5, c: 40040}, {f: 10, c: 40046}, 40057, 40059, {f: 2, c: 40061}, 40064,
  11703. {f: 2, c: 40067}, {f: 2, c: 40073}, 40076, 40079, 40083, {f: 4, c: 40086},
  11704. 40093, 40106, 40108, 40111, 40121, {f: 5, c: 40126}, {f: 2, c: 40136},
  11705. {f: 2, c: 40145}, {f: 2, c: 40154}, {f: 2, c: 40160}, {f: 2, c: 40163},
  11706. {f: 3, c: 40166}, {f: 2, c: 40170}, {f: 6, c: 40173}, 40181,
  11707. {f: 15, c: 40183}, 40200, {f: 11, c: 40202}, {f: 5, c: 40214}, 40220,
  11708. 40222, {f: 3, c: 40224}, {f: 2, c: 40228}, 40231, {f: 6, c: 40233},
  11709. {f: 10, c: 40241}, {f: 3, c: 40252}, {f: 2, c: 40256}, {f: 14, c: 40259},
  11710. {f: 8, c: 40276}, {f: 2, c: 40286}, {f: 8, c: 40290}, 40299,
  11711. {f: 2, c: 40301}, {f: 2, c: 40304}, {f: 20, c: 40307}, 40328,
  11712. {f: 9, c: 40330}, {f: 4, c: 40340}, 40345, {f: 10, c: 40347},
  11713. {f: 3, c: 40358}, {f: 5, c: 40362}, {f: 4, c: 40368}, {f: 6, c: 40373},
  11714. {f: 3, c: 40381}, 40385, 40387, {f: 14, c: 40389}, {f: 3, c: 40404}, 40408,
  11715. {f: 10, c: 40411}, {f: 8, c: 40423}, {f: 2, c: 40432}, {f: 4, c: 40436},
  11716. {f: 17, c: 40443}, {f: 8, c: 40461}, {f: 4, c: 40470}, 40476, 40484, 40487,
  11717. 40494, 40496, 40500, {f: 2, c: 40507}, 40512, 40525, 40528,
  11718. {f: 3, c: 40530}, 40534, 40537, 40541, {f: 4, c: 40543}, 40549,
  11719. {f: 2, c: 40558}, 40562, 40564, {f: 3, c: 40566}, 40571, {f: 2, c: 40576},
  11720. {f: 4, c: 40579}, {f: 2, c: 40585}, {f: 6, c: 40588}, {f: 3, c: 40596},
  11721. {f: 5, c: 40600}, 40606, {f: 5, c: 40608}, {f: 2, c: 40615},
  11722. {f: 5, c: 40618}, {f: 4, c: 40624}, {f: 2, c: 40630}, {f: 2, c: 40633},
  11723. 40636, {f: 4, c: 40639}, [12232, 40643], {f: 4, c: 40645},
  11724. {f: 2, c: 40650}, 40656, {f: 2, c: 40658}, {f: 3, c: 40661},
  11725. {f: 2, c: 40665}, 40673, {f: 2, c: 40675}, 40678, {f: 4, c: 40683},
  11726. {f: 2, c: 40688}, 40691, {f: 2, c: 40693}, 40696, 40698, {f: 9, c: 40704},
  11727. 40714, 40716, 40719, {f: 2, c: 40721}, 40724, 40726, 40728,
  11728. {f: 6, c: 40730}, 40737, {f: 9, c: 40739}, {f: 2, c: 40749},
  11729. {f: 7, c: 40752}, 40760, 40762, 40764, {f: 5, c: 40767}, {f: 5, c: 40773},
  11730. {f: 3, c: 40780}, 40787, {f: 4, c: 40789}, {f: 2, c: 40794},
  11731. {f: 2, c: 40797}, 40802, {f: 2, c: 40804}, {f: 3, c: 40807}, 40811,
  11732. {f: 5, c: 40813}, {f: 4, c: 40819}, {f: 7, c: 40824}, {f: 2, c: 40833},
  11733. {f: 2, c: 40846}, {f: 3, c: 40849}, {f: 3, c: 40854}, {f: 2, c: 40861},
  11734. {f: 5, c: 40865}, 63788, {f: 3, c: 64013}, 64017, {f: 2, c: 64019}, 64024,
  11735. {f: 3, c: 64031}, {f: 2, c: 64035}, {f: 3, c: 64039}, 11905,
  11736. [59414, 131207], [59415, 131209], [59416, 131276], 11908, 13427, 13383,
  11737. 11912, 11915, 59422, 13726, 13850, 13838, 11916, 11927, 14702, 14616,
  11738. 59430, 14799, 14815, 14963, 14800, {f: 2, c: 59435}, 15182, 15470, 15584,
  11739. 11943, [59441, 136663], 59442, 11946, 16470, 16735, 11950, 17207, 11955,
  11740. {f: 2, c: 11958}, [59451, 141711], 17329, 17324, 11963, 17373, 17622,
  11741. 18017, 17996, [59459, 132361], 18211, 18217, 18300, 18317, 11978, 18759,
  11742. 18810, 18813, {f: 2, c: 18818}, {f: 2, c: 18821}, 18847, 18843, 18871,
  11743. 18870, [59476, 133533], [59477, 147966], 19619, {f: 3, c: 19615}, 19575,
  11744. 19618, {f: 7, c: 19731}, 19886, 59492, {s: 226}, 8364, 165, 0, 0, 12351,
  11745. {s: 17}, 12436, {s: 14}, 12535, 12537, 12536, 12538, 0, {f: 3, c: 12339},
  11746. {f: 3, c: 12344}, {f: 3, c: 12586}, {f: 24, c: 12704}, 11904,
  11747. {f: 2, c: 11906}, {f: 3, c: 11909}, {f: 2, c: 11913}, {f: 10, c: 11917},
  11748. {f: 2, c: 11928}, {f: 12, c: 11931}, {f: 2, c: 11944}, {f: 3, c: 11947},
  11749. {f: 4, c: 11951}, {f: 2, c: 11956}, {f: 3, c: 11960}, {f: 14, c: 11964},
  11750. {f: 41, c: 11979}, {f: 71, c: 13312}, {f: 43, c: 13384},
  11751. {f: 298, c: 13428}, {f: 111, c: 13727}, {f: 11, c: 13839},
  11752. {f: 765, c: 13851}, {f: 85, c: 14617}, {f: 96, c: 14703},
  11753. {f: 14, c: 14801}, {f: 147, c: 14816}, {f: 218, c: 14964},
  11754. {f: 287, c: 15183}, {f: 113, c: 15471}, {f: 885, c: 15585},
  11755. {f: 264, c: 16471}, {f: 471, c: 16736}, {f: 116, c: 17208},
  11756. {f: 4, c: 17325}, {f: 43, c: 17330}, {f: 248, c: 17374},
  11757. {f: 373, c: 17623}, {f: 20, c: 17997}, {f: 193, c: 18018},
  11758. {f: 5, c: 18212}, {f: 82, c: 18218}, {f: 16, c: 18301}, {f: 441, c: 18318},
  11759. {f: 50, c: 18760}, {f: 2, c: 18811}, {f: 4, c: 18814}, 18820,
  11760. {f: 20, c: 18823}, {f: 3, c: 18844}, {f: 22, c: 18848}, {f: 703, c: 18872},
  11761. {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
  11762. {f: 7, c: 19887}]
  11763. };
  11764. var PDFFunction = (function PDFFunctionClosure() {
  11765. var CONSTRUCT_SAMPLED = 0;
  11766. var CONSTRUCT_INTERPOLATED = 2;
  11767. var CONSTRUCT_STICHED = 3;
  11768. var CONSTRUCT_POSTSCRIPT = 4;
  11769. return {
  11770. getSampleArray: function PDFFunction_getSampleArray(size, outputSize, bps,
  11771. str) {
  11772. var i, ii;
  11773. var length = 1;
  11774. for (i = 0, ii = size.length; i < ii; i++) {
  11775. length *= size[i];
  11776. }
  11777. length *= outputSize;
  11778. var array = [];
  11779. var codeSize = 0;
  11780. var codeBuf = 0;
  11781. // 32 is a valid bps so shifting won't work
  11782. var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
  11783. var strBytes = str.getBytes((length * bps + 7) / 8);
  11784. var strIdx = 0;
  11785. for (i = 0; i < length; i++) {
  11786. while (codeSize < bps) {
  11787. codeBuf <<= 8;
  11788. codeBuf |= strBytes[strIdx++];
  11789. codeSize += 8;
  11790. }
  11791. codeSize -= bps;
  11792. array.push((codeBuf >> codeSize) * sampleMul);
  11793. codeBuf &= (1 << codeSize) - 1;
  11794. }
  11795. return array;
  11796. },
  11797. getIR: function PDFFunction_getIR(xref, fn) {
  11798. var dict = fn.dict;
  11799. if (!dict) {
  11800. dict = fn;
  11801. }
  11802. var types = [this.constructSampled,
  11803. null,
  11804. this.constructInterpolated,
  11805. this.constructStiched,
  11806. this.constructPostScript];
  11807. var typeNum = dict.get('FunctionType');
  11808. var typeFn = types[typeNum];
  11809. if (!typeFn) {
  11810. error('Unknown type of function');
  11811. }
  11812. return typeFn.call(this, fn, dict, xref);
  11813. },
  11814. fromIR: function PDFFunction_fromIR(IR) {
  11815. var type = IR[0];
  11816. switch (type) {
  11817. case CONSTRUCT_SAMPLED:
  11818. return this.constructSampledFromIR(IR);
  11819. case CONSTRUCT_INTERPOLATED:
  11820. return this.constructInterpolatedFromIR(IR);
  11821. case CONSTRUCT_STICHED:
  11822. return this.constructStichedFromIR(IR);
  11823. //case CONSTRUCT_POSTSCRIPT:
  11824. default:
  11825. return this.constructPostScriptFromIR(IR);
  11826. }
  11827. },
  11828. parse: function PDFFunction_parse(xref, fn) {
  11829. var IR = this.getIR(xref, fn);
  11830. return this.fromIR(IR);
  11831. },
  11832. constructSampled: function PDFFunction_constructSampled(str, dict) {
  11833. function toMultiArray(arr) {
  11834. var inputLength = arr.length;
  11835. var out = [];
  11836. var index = 0;
  11837. for (var i = 0; i < inputLength; i += 2) {
  11838. out[index] = [arr[i], arr[i + 1]];
  11839. ++index;
  11840. }
  11841. return out;
  11842. }
  11843. var domain = dict.get('Domain');
  11844. var range = dict.get('Range');
  11845. if (!domain || !range) {
  11846. error('No domain or range');
  11847. }
  11848. var inputSize = domain.length / 2;
  11849. var outputSize = range.length / 2;
  11850. domain = toMultiArray(domain);
  11851. range = toMultiArray(range);
  11852. var size = dict.get('Size');
  11853. var bps = dict.get('BitsPerSample');
  11854. var order = dict.get('Order') || 1;
  11855. if (order !== 1) {
  11856. // No description how cubic spline interpolation works in PDF32000:2008
  11857. // As in poppler, ignoring order, linear interpolation may work as good
  11858. info('No support for cubic spline interpolation: ' + order);
  11859. }
  11860. var encode = dict.get('Encode');
  11861. if (!encode) {
  11862. encode = [];
  11863. for (var i = 0; i < inputSize; ++i) {
  11864. encode.push(0);
  11865. encode.push(size[i] - 1);
  11866. }
  11867. }
  11868. encode = toMultiArray(encode);
  11869. var decode = dict.get('Decode');
  11870. if (!decode) {
  11871. decode = range;
  11872. } else {
  11873. decode = toMultiArray(decode);
  11874. }
  11875. var samples = this.getSampleArray(size, outputSize, bps, str);
  11876. return [
  11877. CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
  11878. outputSize, Math.pow(2, bps) - 1, range
  11879. ];
  11880. },
  11881. constructSampledFromIR: function PDFFunction_constructSampledFromIR(IR) {
  11882. // See chapter 3, page 109 of the PDF reference
  11883. function interpolate(x, xmin, xmax, ymin, ymax) {
  11884. return ymin + ((x - xmin) * ((ymax - ymin) / (xmax - xmin)));
  11885. }
  11886. return function constructSampledFromIRResult(args) {
  11887. // See chapter 3, page 110 of the PDF reference.
  11888. var m = IR[1];
  11889. var domain = IR[2];
  11890. var encode = IR[3];
  11891. var decode = IR[4];
  11892. var samples = IR[5];
  11893. var size = IR[6];
  11894. var n = IR[7];
  11895. //var mask = IR[8];
  11896. var range = IR[9];
  11897. if (m != args.length) {
  11898. error('Incorrect number of arguments: ' + m + ' != ' +
  11899. args.length);
  11900. }
  11901. var x = args;
  11902. // Building the cube vertices: its part and sample index
  11903. // http://rjwagner49.com/Mathematics/Interpolation.pdf
  11904. var cubeVertices = 1 << m;
  11905. var cubeN = new Float64Array(cubeVertices);
  11906. var cubeVertex = new Uint32Array(cubeVertices);
  11907. var i, j;
  11908. for (j = 0; j < cubeVertices; j++) {
  11909. cubeN[j] = 1;
  11910. }
  11911. var k = n, pos = 1;
  11912. // Map x_i to y_j for 0 <= i < m using the sampled function.
  11913. for (i = 0; i < m; ++i) {
  11914. // x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
  11915. var domain_2i = domain[i][0];
  11916. var domain_2i_1 = domain[i][1];
  11917. var xi = Math.min(Math.max(x[i], domain_2i), domain_2i_1);
  11918. // e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
  11919. // Encode_2i, Encode_2i+1)
  11920. var e = interpolate(xi, domain_2i, domain_2i_1,
  11921. encode[i][0], encode[i][1]);
  11922. // e_i' = min(max(e_i, 0), Size_i - 1)
  11923. var size_i = size[i];
  11924. e = Math.min(Math.max(e, 0), size_i - 1);
  11925. // Adjusting the cube: N and vertex sample index
  11926. var e0 = e < size_i - 1 ? Math.floor(e) : e - 1; // e1 = e0 + 1;
  11927. var n0 = e0 + 1 - e; // (e1 - e) / (e1 - e0);
  11928. var n1 = e - e0; // (e - e0) / (e1 - e0);
  11929. var offset0 = e0 * k;
  11930. var offset1 = offset0 + k; // e1 * k
  11931. for (j = 0; j < cubeVertices; j++) {
  11932. if (j & pos) {
  11933. cubeN[j] *= n1;
  11934. cubeVertex[j] += offset1;
  11935. } else {
  11936. cubeN[j] *= n0;
  11937. cubeVertex[j] += offset0;
  11938. }
  11939. }
  11940. k *= size_i;
  11941. pos <<= 1;
  11942. }
  11943. var y = new Float64Array(n);
  11944. for (j = 0; j < n; ++j) {
  11945. // Sum all cube vertices' samples portions
  11946. var rj = 0;
  11947. for (i = 0; i < cubeVertices; i++) {
  11948. rj += samples[cubeVertex[i] + j] * cubeN[i];
  11949. }
  11950. // r_j' = Interpolate(r_j, 0, 2^BitsPerSample - 1,
  11951. // Decode_2j, Decode_2j+1)
  11952. rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
  11953. // y_j = min(max(r_j, range_2j), range_2j+1)
  11954. y[j] = Math.min(Math.max(rj, range[j][0]), range[j][1]);
  11955. }
  11956. return y;
  11957. };
  11958. },
  11959. constructInterpolated: function PDFFunction_constructInterpolated(str,
  11960. dict) {
  11961. var c0 = dict.get('C0') || [0];
  11962. var c1 = dict.get('C1') || [1];
  11963. var n = dict.get('N');
  11964. if (!isArray(c0) || !isArray(c1)) {
  11965. error('Illegal dictionary for interpolated function');
  11966. }
  11967. var length = c0.length;
  11968. var diff = [];
  11969. for (var i = 0; i < length; ++i) {
  11970. diff.push(c1[i] - c0[i]);
  11971. }
  11972. return [CONSTRUCT_INTERPOLATED, c0, diff, n];
  11973. },
  11974. constructInterpolatedFromIR:
  11975. function PDFFunction_constructInterpolatedFromIR(IR) {
  11976. var c0 = IR[1];
  11977. var diff = IR[2];
  11978. var n = IR[3];
  11979. var length = diff.length;
  11980. return function constructInterpolatedFromIRResult(args) {
  11981. var x = n == 1 ? args[0] : Math.pow(args[0], n);
  11982. var out = [];
  11983. for (var j = 0; j < length; ++j) {
  11984. out.push(c0[j] + (x * diff[j]));
  11985. }
  11986. return out;
  11987. };
  11988. },
  11989. constructStiched: function PDFFunction_constructStiched(fn, dict, xref) {
  11990. var domain = dict.get('Domain');
  11991. if (!domain) {
  11992. error('No domain');
  11993. }
  11994. var inputSize = domain.length / 2;
  11995. if (inputSize != 1) {
  11996. error('Bad domain for stiched function');
  11997. }
  11998. var fnRefs = dict.get('Functions');
  11999. var fns = [];
  12000. for (var i = 0, ii = fnRefs.length; i < ii; ++i) {
  12001. fns.push(PDFFunction.getIR(xref, xref.fetchIfRef(fnRefs[i])));
  12002. }
  12003. var bounds = dict.get('Bounds');
  12004. var encode = dict.get('Encode');
  12005. return [CONSTRUCT_STICHED, domain, bounds, encode, fns];
  12006. },
  12007. constructStichedFromIR: function PDFFunction_constructStichedFromIR(IR) {
  12008. var domain = IR[1];
  12009. var bounds = IR[2];
  12010. var encode = IR[3];
  12011. var fnsIR = IR[4];
  12012. var fns = [];
  12013. for (var i = 0, ii = fnsIR.length; i < ii; i++) {
  12014. fns.push(PDFFunction.fromIR(fnsIR[i]));
  12015. }
  12016. return function constructStichedFromIRResult(args) {
  12017. var clip = function constructStichedFromIRClip(v, min, max) {
  12018. if (v > max) {
  12019. v = max;
  12020. } else if (v < min) {
  12021. v = min;
  12022. }
  12023. return v;
  12024. };
  12025. // clip to domain
  12026. var v = clip(args[0], domain[0], domain[1]);
  12027. // calulate which bound the value is in
  12028. for (var i = 0, ii = bounds.length; i < ii; ++i) {
  12029. if (v < bounds[i]) {
  12030. break;
  12031. }
  12032. }
  12033. // encode value into domain of function
  12034. var dmin = domain[0];
  12035. if (i > 0) {
  12036. dmin = bounds[i - 1];
  12037. }
  12038. var dmax = domain[1];
  12039. if (i < bounds.length) {
  12040. dmax = bounds[i];
  12041. }
  12042. var rmin = encode[2 * i];
  12043. var rmax = encode[2 * i + 1];
  12044. var v2 = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin);
  12045. // call the appropriate function
  12046. return fns[i]([v2]);
  12047. };
  12048. },
  12049. constructPostScript: function PDFFunction_constructPostScript(fn, dict,
  12050. xref) {
  12051. var domain = dict.get('Domain');
  12052. var range = dict.get('Range');
  12053. if (!domain) {
  12054. error('No domain.');
  12055. }
  12056. if (!range) {
  12057. error('No range.');
  12058. }
  12059. var lexer = new PostScriptLexer(fn);
  12060. var parser = new PostScriptParser(lexer);
  12061. var code = parser.parse();
  12062. return [CONSTRUCT_POSTSCRIPT, domain, range, code];
  12063. },
  12064. constructPostScriptFromIR: function PDFFunction_constructPostScriptFromIR(
  12065. IR) {
  12066. var domain = IR[1];
  12067. var range = IR[2];
  12068. var code = IR[3];
  12069. var numOutputs = range.length >> 1;
  12070. var numInputs = domain.length >> 1;
  12071. var evaluator = new PostScriptEvaluator(code);
  12072. // Cache the values for a big speed up, the cache size is limited though
  12073. // since the number of possible values can be huge from a PS function.
  12074. var cache = {};
  12075. // The MAX_CACHE_SIZE is set to ~4x the maximum number of distinct values
  12076. // seen in our tests.
  12077. var MAX_CACHE_SIZE = 2048 * 4;
  12078. var cache_available = MAX_CACHE_SIZE;
  12079. return function constructPostScriptFromIRResult(args) {
  12080. var i, value;
  12081. var key = '';
  12082. var input = new Array(numInputs);
  12083. for (i = 0; i < numInputs; i++) {
  12084. value = args[i];
  12085. input[i] = value;
  12086. key += value + '_';
  12087. }
  12088. var cachedValue = cache[key];
  12089. if (cachedValue !== undefined) {
  12090. return cachedValue;
  12091. }
  12092. var output = new Array(numOutputs);
  12093. var stack = evaluator.execute(input);
  12094. var stackIndex = stack.length - numOutputs;
  12095. for (i = 0; i < numOutputs; i++) {
  12096. value = stack[stackIndex + i];
  12097. var bound = range[i * 2];
  12098. if (value < bound) {
  12099. value = bound;
  12100. } else {
  12101. bound = range[i * 2 +1];
  12102. if (value > bound) {
  12103. value = bound;
  12104. }
  12105. }
  12106. output[i] = value;
  12107. }
  12108. if (cache_available > 0) {
  12109. cache_available--;
  12110. cache[key] = output;
  12111. }
  12112. return output;
  12113. };
  12114. }
  12115. };
  12116. })();
  12117. function isPDFFunction(v) {
  12118. var fnDict;
  12119. if (typeof v != 'object') {
  12120. return false;
  12121. } else if (isDict(v)) {
  12122. fnDict = v;
  12123. } else if (isStream(v)) {
  12124. fnDict = v.dict;
  12125. } else {
  12126. return false;
  12127. }
  12128. return fnDict.has('FunctionType');
  12129. }
  12130. var PostScriptStack = (function PostScriptStackClosure() {
  12131. var MAX_STACK_SIZE = 100;
  12132. function PostScriptStack(initialStack) {
  12133. this.stack = initialStack || [];
  12134. }
  12135. PostScriptStack.prototype = {
  12136. push: function PostScriptStack_push(value) {
  12137. if (this.stack.length >= MAX_STACK_SIZE) {
  12138. error('PostScript function stack overflow.');
  12139. }
  12140. this.stack.push(value);
  12141. },
  12142. pop: function PostScriptStack_pop() {
  12143. if (this.stack.length <= 0) {
  12144. error('PostScript function stack underflow.');
  12145. }
  12146. return this.stack.pop();
  12147. },
  12148. copy: function PostScriptStack_copy(n) {
  12149. if (this.stack.length + n >= MAX_STACK_SIZE) {
  12150. error('PostScript function stack overflow.');
  12151. }
  12152. var stack = this.stack;
  12153. for (var i = stack.length - n, j = n - 1; j >= 0; j--, i++) {
  12154. stack.push(stack[i]);
  12155. }
  12156. },
  12157. index: function PostScriptStack_index(n) {
  12158. this.push(this.stack[this.stack.length - n - 1]);
  12159. },
  12160. // rotate the last n stack elements p times
  12161. roll: function PostScriptStack_roll(n, p) {
  12162. var stack = this.stack;
  12163. var l = stack.length - n;
  12164. var r = stack.length - 1, c = l + (p - Math.floor(p / n) * n), i, j, t;
  12165. for (i = l, j = r; i < j; i++, j--) {
  12166. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  12167. }
  12168. for (i = l, j = c - 1; i < j; i++, j--) {
  12169. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  12170. }
  12171. for (i = c, j = r; i < j; i++, j--) {
  12172. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  12173. }
  12174. }
  12175. };
  12176. return PostScriptStack;
  12177. })();
  12178. var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
  12179. function PostScriptEvaluator(operators) {
  12180. this.operators = operators;
  12181. }
  12182. PostScriptEvaluator.prototype = {
  12183. execute: function PostScriptEvaluator_execute(initialStack) {
  12184. var stack = new PostScriptStack(initialStack);
  12185. var counter = 0;
  12186. var operators = this.operators;
  12187. var length = operators.length;
  12188. var operator, a, b;
  12189. while (counter < length) {
  12190. operator = operators[counter++];
  12191. if (typeof operator == 'number') {
  12192. // Operator is really an operand and should be pushed to the stack.
  12193. stack.push(operator);
  12194. continue;
  12195. }
  12196. switch (operator) {
  12197. // non standard ps operators
  12198. case 'jz': // jump if false
  12199. b = stack.pop();
  12200. a = stack.pop();
  12201. if (!a) {
  12202. counter = b;
  12203. }
  12204. break;
  12205. case 'j': // jump
  12206. a = stack.pop();
  12207. counter = a;
  12208. break;
  12209. // all ps operators in alphabetical order (excluding if/ifelse)
  12210. case 'abs':
  12211. a = stack.pop();
  12212. stack.push(Math.abs(a));
  12213. break;
  12214. case 'add':
  12215. b = stack.pop();
  12216. a = stack.pop();
  12217. stack.push(a + b);
  12218. break;
  12219. case 'and':
  12220. b = stack.pop();
  12221. a = stack.pop();
  12222. if (isBool(a) && isBool(b)) {
  12223. stack.push(a && b);
  12224. } else {
  12225. stack.push(a & b);
  12226. }
  12227. break;
  12228. case 'atan':
  12229. a = stack.pop();
  12230. stack.push(Math.atan(a));
  12231. break;
  12232. case 'bitshift':
  12233. b = stack.pop();
  12234. a = stack.pop();
  12235. if (a > 0) {
  12236. stack.push(a << b);
  12237. } else {
  12238. stack.push(a >> b);
  12239. }
  12240. break;
  12241. case 'ceiling':
  12242. a = stack.pop();
  12243. stack.push(Math.ceil(a));
  12244. break;
  12245. case 'copy':
  12246. a = stack.pop();
  12247. stack.copy(a);
  12248. break;
  12249. case 'cos':
  12250. a = stack.pop();
  12251. stack.push(Math.cos(a));
  12252. break;
  12253. case 'cvi':
  12254. a = stack.pop() | 0;
  12255. stack.push(a);
  12256. break;
  12257. case 'cvr':
  12258. // noop
  12259. break;
  12260. case 'div':
  12261. b = stack.pop();
  12262. a = stack.pop();
  12263. stack.push(a / b);
  12264. break;
  12265. case 'dup':
  12266. stack.copy(1);
  12267. break;
  12268. case 'eq':
  12269. b = stack.pop();
  12270. a = stack.pop();
  12271. stack.push(a == b);
  12272. break;
  12273. case 'exch':
  12274. stack.roll(2, 1);
  12275. break;
  12276. case 'exp':
  12277. b = stack.pop();
  12278. a = stack.pop();
  12279. stack.push(Math.pow(a, b));
  12280. break;
  12281. case 'false':
  12282. stack.push(false);
  12283. break;
  12284. case 'floor':
  12285. a = stack.pop();
  12286. stack.push(Math.floor(a));
  12287. break;
  12288. case 'ge':
  12289. b = stack.pop();
  12290. a = stack.pop();
  12291. stack.push(a >= b);
  12292. break;
  12293. case 'gt':
  12294. b = stack.pop();
  12295. a = stack.pop();
  12296. stack.push(a > b);
  12297. break;
  12298. case 'idiv':
  12299. b = stack.pop();
  12300. a = stack.pop();
  12301. stack.push((a / b) | 0);
  12302. break;
  12303. case 'index':
  12304. a = stack.pop();
  12305. stack.index(a);
  12306. break;
  12307. case 'le':
  12308. b = stack.pop();
  12309. a = stack.pop();
  12310. stack.push(a <= b);
  12311. break;
  12312. case 'ln':
  12313. a = stack.pop();
  12314. stack.push(Math.log(a));
  12315. break;
  12316. case 'log':
  12317. a = stack.pop();
  12318. stack.push(Math.log(a) / Math.LN10);
  12319. break;
  12320. case 'lt':
  12321. b = stack.pop();
  12322. a = stack.pop();
  12323. stack.push(a < b);
  12324. break;
  12325. case 'mod':
  12326. b = stack.pop();
  12327. a = stack.pop();
  12328. stack.push(a % b);
  12329. break;
  12330. case 'mul':
  12331. b = stack.pop();
  12332. a = stack.pop();
  12333. stack.push(a * b);
  12334. break;
  12335. case 'ne':
  12336. b = stack.pop();
  12337. a = stack.pop();
  12338. stack.push(a != b);
  12339. break;
  12340. case 'neg':
  12341. a = stack.pop();
  12342. stack.push(-a);
  12343. break;
  12344. case 'not':
  12345. a = stack.pop();
  12346. if (isBool(a)) {
  12347. stack.push(!a);
  12348. } else {
  12349. stack.push(~a);
  12350. }
  12351. break;
  12352. case 'or':
  12353. b = stack.pop();
  12354. a = stack.pop();
  12355. if (isBool(a) && isBool(b)) {
  12356. stack.push(a || b);
  12357. } else {
  12358. stack.push(a | b);
  12359. }
  12360. break;
  12361. case 'pop':
  12362. stack.pop();
  12363. break;
  12364. case 'roll':
  12365. b = stack.pop();
  12366. a = stack.pop();
  12367. stack.roll(a, b);
  12368. break;
  12369. case 'round':
  12370. a = stack.pop();
  12371. stack.push(Math.round(a));
  12372. break;
  12373. case 'sin':
  12374. a = stack.pop();
  12375. stack.push(Math.sin(a));
  12376. break;
  12377. case 'sqrt':
  12378. a = stack.pop();
  12379. stack.push(Math.sqrt(a));
  12380. break;
  12381. case 'sub':
  12382. b = stack.pop();
  12383. a = stack.pop();
  12384. stack.push(a - b);
  12385. break;
  12386. case 'true':
  12387. stack.push(true);
  12388. break;
  12389. case 'truncate':
  12390. a = stack.pop();
  12391. a = a < 0 ? Math.ceil(a) : Math.floor(a);
  12392. stack.push(a);
  12393. break;
  12394. case 'xor':
  12395. b = stack.pop();
  12396. a = stack.pop();
  12397. if (isBool(a) && isBool(b)) {
  12398. stack.push(a != b);
  12399. } else {
  12400. stack.push(a ^ b);
  12401. }
  12402. break;
  12403. default:
  12404. error('Unknown operator ' + operator);
  12405. break;
  12406. }
  12407. }
  12408. return stack.stack;
  12409. }
  12410. };
  12411. return PostScriptEvaluator;
  12412. })();
  12413. var ColorSpace = (function ColorSpaceClosure() {
  12414. // Constructor should define this.numComps, this.defaultColor, this.name
  12415. function ColorSpace() {
  12416. error('should not call ColorSpace constructor');
  12417. }
  12418. ColorSpace.prototype = {
  12419. /**
  12420. * Converts the color value to the RGB color. The color components are
  12421. * located in the src array starting from the srcOffset. Returns the array
  12422. * of the rgb components, each value ranging from [0,255].
  12423. */
  12424. getRgb: function ColorSpace_getRgb(src, srcOffset) {
  12425. var rgb = new Uint8Array(3);
  12426. this.getRgbItem(src, srcOffset, rgb, 0);
  12427. return rgb;
  12428. },
  12429. /**
  12430. * Converts the color value to the RGB color, similar to the getRgb method.
  12431. * The result placed into the dest array starting from the destOffset.
  12432. */
  12433. getRgbItem: function ColorSpace_getRgbItem(src, srcOffset,
  12434. dest, destOffset) {
  12435. error('Should not call ColorSpace.getRgbItem');
  12436. },
  12437. /**
  12438. * Converts the specified number of the color values to the RGB colors.
  12439. * The colors are located in the src array starting from the srcOffset.
  12440. * The result is placed into the dest array starting from the destOffset.
  12441. * The src array items shall be in [0,2^bits) range, the dest array items
  12442. * will be in [0,255] range. alpha01 indicates how many alpha components
  12443. * there are in the dest array; it will be either 0 (RGB array) or 1 (RGBA
  12444. * array).
  12445. */
  12446. getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count,
  12447. dest, destOffset, bits,
  12448. alpha01) {
  12449. error('Should not call ColorSpace.getRgbBuffer');
  12450. },
  12451. /**
  12452. * Determines the number of bytes required to store the result of the
  12453. * conversion done by the getRgbBuffer method. As in getRgbBuffer,
  12454. * |alpha01| is either 0 (RGB output) or 1 (RGBA output).
  12455. */
  12456. getOutputLength: function ColorSpace_getOutputLength(inputLength,
  12457. alpha01) {
  12458. error('Should not call ColorSpace.getOutputLength');
  12459. },
  12460. /**
  12461. * Returns true if source data will be equal the result/output data.
  12462. */
  12463. isPassthrough: function ColorSpace_isPassthrough(bits) {
  12464. return false;
  12465. },
  12466. /**
  12467. * Fills in the RGB colors in the destination buffer. alpha01 indicates
  12468. * how many alpha components there are in the dest array; it will be either
  12469. * 0 (RGB array) or 1 (RGBA array).
  12470. */
  12471. fillRgb: function ColorSpace_fillRgb(dest, originalWidth,
  12472. originalHeight, width, height,
  12473. actualHeight, bpc, comps, alpha01) {
  12474. var count = originalWidth * originalHeight;
  12475. var rgbBuf = null;
  12476. var numComponentColors = 1 << bpc;
  12477. var needsResizing = originalHeight != height || originalWidth != width;
  12478. var i, ii;
  12479. if (this.isPassthrough(bpc)) {
  12480. rgbBuf = comps;
  12481. } else if (this.numComps === 1 && count > numComponentColors &&
  12482. this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') {
  12483. // Optimization: create a color map when there is just one component and
  12484. // we are converting more colors than the size of the color map. We
  12485. // don't build the map if the colorspace is gray or rgb since those
  12486. // methods are faster than building a map. This mainly offers big speed
  12487. // ups for indexed and alternate colorspaces.
  12488. //
  12489. // TODO it may be worth while to cache the color map. While running
  12490. // testing I never hit a cache so I will leave that out for now (perhaps
  12491. // we are reparsing colorspaces too much?).
  12492. var allColors = bpc <= 8 ? new Uint8Array(numComponentColors) :
  12493. new Uint16Array(numComponentColors);
  12494. var key;
  12495. for (i = 0; i < numComponentColors; i++) {
  12496. allColors[i] = i;
  12497. }
  12498. var colorMap = new Uint8Array(numComponentColors * 3);
  12499. this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc,
  12500. /* alpha01 = */ 0);
  12501. var destPos, rgbPos;
  12502. if (!needsResizing) {
  12503. // Fill in the RGB values directly into |dest|.
  12504. destPos = 0;
  12505. for (i = 0; i < count; ++i) {
  12506. key = comps[i] * 3;
  12507. dest[destPos++] = colorMap[key];
  12508. dest[destPos++] = colorMap[key + 1];
  12509. dest[destPos++] = colorMap[key + 2];
  12510. destPos += alpha01;
  12511. }
  12512. } else {
  12513. rgbBuf = new Uint8Array(count * 3);
  12514. rgbPos = 0;
  12515. for (i = 0; i < count; ++i) {
  12516. key = comps[i] * 3;
  12517. rgbBuf[rgbPos++] = colorMap[key];
  12518. rgbBuf[rgbPos++] = colorMap[key + 1];
  12519. rgbBuf[rgbPos++] = colorMap[key + 2];
  12520. }
  12521. }
  12522. } else {
  12523. if (!needsResizing) {
  12524. // Fill in the RGB values directly into |dest|.
  12525. this.getRgbBuffer(comps, 0, width * actualHeight, dest, 0, bpc,
  12526. alpha01);
  12527. } else {
  12528. rgbBuf = new Uint8Array(count * 3);
  12529. this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc,
  12530. /* alpha01 = */ 0);
  12531. }
  12532. }
  12533. if (rgbBuf) {
  12534. if (needsResizing) {
  12535. PDFImage.resize(rgbBuf, bpc, 3, originalWidth, originalHeight, width,
  12536. height, dest, alpha01);
  12537. } else {
  12538. rgbPos = 0;
  12539. destPos = 0;
  12540. for (i = 0, ii = width * actualHeight; i < ii; i++) {
  12541. dest[destPos++] = rgbBuf[rgbPos++];
  12542. dest[destPos++] = rgbBuf[rgbPos++];
  12543. dest[destPos++] = rgbBuf[rgbPos++];
  12544. destPos += alpha01;
  12545. }
  12546. }
  12547. }
  12548. },
  12549. /**
  12550. * True if the colorspace has components in the default range of [0, 1].
  12551. * This should be true for all colorspaces except for lab color spaces
  12552. * which are [0,100], [-128, 127], [-128, 127].
  12553. */
  12554. usesZeroToOneRange: true
  12555. };
  12556. ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
  12557. var IR = ColorSpace.parseToIR(cs, xref, res);
  12558. if (IR instanceof AlternateCS) {
  12559. return IR;
  12560. }
  12561. return ColorSpace.fromIR(IR);
  12562. };
  12563. ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
  12564. var name = isArray(IR) ? IR[0] : IR;
  12565. var whitePoint, blackPoint;
  12566. switch (name) {
  12567. case 'DeviceGrayCS':
  12568. return this.singletons.gray;
  12569. case 'DeviceRgbCS':
  12570. return this.singletons.rgb;
  12571. case 'DeviceCmykCS':
  12572. return this.singletons.cmyk;
  12573. case 'CalGrayCS':
  12574. whitePoint = IR[1].WhitePoint;
  12575. blackPoint = IR[1].BlackPoint;
  12576. var gamma = IR[1].Gamma;
  12577. return new CalGrayCS(whitePoint, blackPoint, gamma);
  12578. case 'PatternCS':
  12579. var basePatternCS = IR[1];
  12580. if (basePatternCS) {
  12581. basePatternCS = ColorSpace.fromIR(basePatternCS);
  12582. }
  12583. return new PatternCS(basePatternCS);
  12584. case 'IndexedCS':
  12585. var baseIndexedCS = IR[1];
  12586. var hiVal = IR[2];
  12587. var lookup = IR[3];
  12588. return new IndexedCS(ColorSpace.fromIR(baseIndexedCS), hiVal, lookup);
  12589. case 'AlternateCS':
  12590. var numComps = IR[1];
  12591. var alt = IR[2];
  12592. var tintFnIR = IR[3];
  12593. return new AlternateCS(numComps, ColorSpace.fromIR(alt),
  12594. PDFFunction.fromIR(tintFnIR));
  12595. case 'LabCS':
  12596. whitePoint = IR[1].WhitePoint;
  12597. blackPoint = IR[1].BlackPoint;
  12598. var range = IR[1].Range;
  12599. return new LabCS(whitePoint, blackPoint, range);
  12600. default:
  12601. error('Unkown name ' + name);
  12602. }
  12603. return null;
  12604. };
  12605. ColorSpace.parseToIR = function ColorSpace_parseToIR(cs, xref, res) {
  12606. if (isName(cs)) {
  12607. var colorSpaces = res.get('ColorSpace');
  12608. if (isDict(colorSpaces)) {
  12609. var refcs = colorSpaces.get(cs.name);
  12610. if (refcs) {
  12611. cs = refcs;
  12612. }
  12613. }
  12614. }
  12615. cs = xref.fetchIfRef(cs);
  12616. var mode;
  12617. if (isName(cs)) {
  12618. mode = cs.name;
  12619. this.mode = mode;
  12620. switch (mode) {
  12621. case 'DeviceGray':
  12622. case 'G':
  12623. return 'DeviceGrayCS';
  12624. case 'DeviceRGB':
  12625. case 'RGB':
  12626. return 'DeviceRgbCS';
  12627. case 'DeviceCMYK':
  12628. case 'CMYK':
  12629. return 'DeviceCmykCS';
  12630. case 'Pattern':
  12631. return ['PatternCS', null];
  12632. default:
  12633. error('unrecognized colorspace ' + mode);
  12634. }
  12635. } else if (isArray(cs)) {
  12636. mode = cs[0].name;
  12637. this.mode = mode;
  12638. var numComps, params;
  12639. switch (mode) {
  12640. case 'DeviceGray':
  12641. case 'G':
  12642. return 'DeviceGrayCS';
  12643. case 'DeviceRGB':
  12644. case 'RGB':
  12645. return 'DeviceRgbCS';
  12646. case 'DeviceCMYK':
  12647. case 'CMYK':
  12648. return 'DeviceCmykCS';
  12649. case 'CalGray':
  12650. params = cs[1].getAll();
  12651. return ['CalGrayCS', params];
  12652. case 'CalRGB':
  12653. return 'DeviceRgbCS';
  12654. case 'ICCBased':
  12655. var stream = xref.fetchIfRef(cs[1]);
  12656. var dict = stream.dict;
  12657. numComps = dict.get('N');
  12658. if (numComps == 1) {
  12659. return 'DeviceGrayCS';
  12660. } else if (numComps == 3) {
  12661. return 'DeviceRgbCS';
  12662. } else if (numComps == 4) {
  12663. return 'DeviceCmykCS';
  12664. }
  12665. break;
  12666. case 'Pattern':
  12667. var basePatternCS = cs[1];
  12668. if (basePatternCS) {
  12669. basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
  12670. }
  12671. return ['PatternCS', basePatternCS];
  12672. case 'Indexed':
  12673. case 'I':
  12674. var baseIndexedCS = ColorSpace.parseToIR(cs[1], xref, res);
  12675. var hiVal = cs[2] + 1;
  12676. var lookup = xref.fetchIfRef(cs[3]);
  12677. if (isStream(lookup)) {
  12678. lookup = lookup.getBytes();
  12679. }
  12680. return ['IndexedCS', baseIndexedCS, hiVal, lookup];
  12681. case 'Separation':
  12682. case 'DeviceN':
  12683. var name = cs[1];
  12684. numComps = 1;
  12685. if (isName(name)) {
  12686. numComps = 1;
  12687. } else if (isArray(name)) {
  12688. numComps = name.length;
  12689. }
  12690. var alt = ColorSpace.parseToIR(cs[2], xref, res);
  12691. var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
  12692. return ['AlternateCS', numComps, alt, tintFnIR];
  12693. case 'Lab':
  12694. params = cs[1].getAll();
  12695. return ['LabCS', params];
  12696. default:
  12697. error('unimplemented color space object "' + mode + '"');
  12698. }
  12699. } else {
  12700. error('unrecognized color space object: "' + cs + '"');
  12701. }
  12702. return null;
  12703. };
  12704. /**
  12705. * Checks if a decode map matches the default decode map for a color space.
  12706. * This handles the general decode maps where there are two values per
  12707. * component. e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
  12708. * This does not handle Lab, Indexed, or Pattern decode maps since they are
  12709. * slightly different.
  12710. * @param {Array} decode Decode map (usually from an image).
  12711. * @param {Number} n Number of components the color space has.
  12712. */
  12713. ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
  12714. if (!decode) {
  12715. return true;
  12716. }
  12717. if (n * 2 !== decode.length) {
  12718. warn('The decode map is not the correct length');
  12719. return true;
  12720. }
  12721. for (var i = 0, ii = decode.length; i < ii; i += 2) {
  12722. if (decode[i] !== 0 || decode[i + 1] != 1) {
  12723. return false;
  12724. }
  12725. }
  12726. return true;
  12727. };
  12728. ColorSpace.singletons = {
  12729. get gray() {
  12730. return shadow(this, 'gray', new DeviceGrayCS());
  12731. },
  12732. get rgb() {
  12733. return shadow(this, 'rgb', new DeviceRgbCS());
  12734. },
  12735. get cmyk() {
  12736. return shadow(this, 'cmyk', new DeviceCmykCS());
  12737. }
  12738. };
  12739. return ColorSpace;
  12740. })();
  12741. /**
  12742. * Alternate color space handles both Separation and DeviceN color spaces. A
  12743. * Separation color space is actually just a DeviceN with one color component.
  12744. * Both color spaces use a tinting function to convert colors to a base color
  12745. * space.
  12746. */
  12747. var AlternateCS = (function AlternateCSClosure() {
  12748. function AlternateCS(numComps, base, tintFn) {
  12749. this.name = 'Alternate';
  12750. this.numComps = numComps;
  12751. this.defaultColor = new Float32Array(numComps);
  12752. for (var i = 0; i < numComps; ++i) {
  12753. this.defaultColor[i] = 1;
  12754. }
  12755. this.base = base;
  12756. this.tintFn = tintFn;
  12757. }
  12758. AlternateCS.prototype = {
  12759. getRgb: ColorSpace.prototype.getRgb,
  12760. getRgbItem: function AlternateCS_getRgbItem(src, srcOffset,
  12761. dest, destOffset) {
  12762. var baseNumComps = this.base.numComps;
  12763. var input = 'subarray' in src ?
  12764. src.subarray(srcOffset, srcOffset + this.numComps) :
  12765. Array.prototype.slice.call(src, srcOffset, srcOffset + this.numComps);
  12766. var tinted = this.tintFn(input);
  12767. this.base.getRgbItem(tinted, 0, dest, destOffset);
  12768. },
  12769. getRgbBuffer: function AlternateCS_getRgbBuffer(src, srcOffset, count,
  12770. dest, destOffset, bits,
  12771. alpha01) {
  12772. var tinted;
  12773. var tintFn = this.tintFn;
  12774. var base = this.base;
  12775. var scale = 1 / ((1 << bits) - 1);
  12776. var baseNumComps = base.numComps;
  12777. var usesZeroToOneRange = base.usesZeroToOneRange;
  12778. var isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) &&
  12779. alpha01 === 0;
  12780. var pos = isPassthrough ? destOffset : 0;
  12781. var baseBuf = isPassthrough ? dest : new Uint8Array(baseNumComps * count);
  12782. var numComps = this.numComps;
  12783. var scaled = new Float32Array(numComps);
  12784. var i, j;
  12785. if (usesZeroToOneRange) {
  12786. for (i = 0; i < count; i++) {
  12787. for (j = 0; j < numComps; j++) {
  12788. scaled[j] = src[srcOffset++] * scale;
  12789. }
  12790. tinted = tintFn(scaled);
  12791. for (j = 0; j < baseNumComps; j++) {
  12792. baseBuf[pos++] = tinted[j] * 255;
  12793. }
  12794. }
  12795. } else {
  12796. for (i = 0; i < count; i++) {
  12797. for (j = 0; j < numComps; j++) {
  12798. scaled[j] = src[srcOffset++] * scale;
  12799. }
  12800. tinted = tintFn(scaled);
  12801. base.getRgbItem(tinted, 0, baseBuf, pos);
  12802. pos += baseNumComps;
  12803. }
  12804. }
  12805. if (!isPassthrough) {
  12806. base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01);
  12807. }
  12808. },
  12809. getOutputLength: function AlternateCS_getOutputLength(inputLength,
  12810. alpha01) {
  12811. return this.base.getOutputLength(inputLength *
  12812. this.base.numComps / this.numComps,
  12813. alpha01);
  12814. },
  12815. isPassthrough: ColorSpace.prototype.isPassthrough,
  12816. fillRgb: ColorSpace.prototype.fillRgb,
  12817. isDefaultDecode: function AlternateCS_isDefaultDecode(decodeMap) {
  12818. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12819. },
  12820. usesZeroToOneRange: true
  12821. };
  12822. return AlternateCS;
  12823. })();
  12824. var PatternCS = (function PatternCSClosure() {
  12825. function PatternCS(baseCS) {
  12826. this.name = 'Pattern';
  12827. this.base = baseCS;
  12828. }
  12829. PatternCS.prototype = {};
  12830. return PatternCS;
  12831. })();
  12832. var IndexedCS = (function IndexedCSClosure() {
  12833. function IndexedCS(base, highVal, lookup) {
  12834. this.name = 'Indexed';
  12835. this.numComps = 1;
  12836. this.defaultColor = new Uint8Array([0]);
  12837. this.base = base;
  12838. this.highVal = highVal;
  12839. var baseNumComps = base.numComps;
  12840. var length = baseNumComps * highVal;
  12841. var lookupArray;
  12842. if (isStream(lookup)) {
  12843. lookupArray = new Uint8Array(length);
  12844. var bytes = lookup.getBytes(length);
  12845. lookupArray.set(bytes);
  12846. } else if (isString(lookup)) {
  12847. lookupArray = new Uint8Array(length);
  12848. for (var i = 0; i < length; ++i) {
  12849. lookupArray[i] = lookup.charCodeAt(i);
  12850. }
  12851. } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
  12852. lookupArray = lookup;
  12853. } else {
  12854. error('Unrecognized lookup table: ' + lookup);
  12855. }
  12856. this.lookup = lookupArray;
  12857. }
  12858. IndexedCS.prototype = {
  12859. getRgb: ColorSpace.prototype.getRgb,
  12860. getRgbItem: function IndexedCS_getRgbItem(src, srcOffset,
  12861. dest, destOffset) {
  12862. var numComps = this.base.numComps;
  12863. var start = src[srcOffset] * numComps;
  12864. this.base.getRgbItem(this.lookup, start, dest, destOffset);
  12865. },
  12866. getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
  12867. dest, destOffset, bits,
  12868. alpha01) {
  12869. var base = this.base;
  12870. var numComps = base.numComps;
  12871. var outputDelta = base.getOutputLength(numComps, alpha01);
  12872. var lookup = this.lookup;
  12873. for (var i = 0; i < count; ++i) {
  12874. var lookupPos = src[srcOffset++] * numComps;
  12875. base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01);
  12876. destOffset += outputDelta;
  12877. }
  12878. },
  12879. getOutputLength: function IndexedCS_getOutputLength(inputLength, alpha01) {
  12880. return this.base.getOutputLength(inputLength * this.base.numComps,
  12881. alpha01);
  12882. },
  12883. isPassthrough: ColorSpace.prototype.isPassthrough,
  12884. fillRgb: ColorSpace.prototype.fillRgb,
  12885. isDefaultDecode: function IndexedCS_isDefaultDecode(decodeMap) {
  12886. // indexed color maps shouldn't be changed
  12887. return true;
  12888. },
  12889. usesZeroToOneRange: true
  12890. };
  12891. return IndexedCS;
  12892. })();
  12893. var DeviceGrayCS = (function DeviceGrayCSClosure() {
  12894. function DeviceGrayCS() {
  12895. this.name = 'DeviceGray';
  12896. this.numComps = 1;
  12897. this.defaultColor = new Float32Array([0]);
  12898. }
  12899. DeviceGrayCS.prototype = {
  12900. getRgb: ColorSpace.prototype.getRgb,
  12901. getRgbItem: function DeviceGrayCS_getRgbItem(src, srcOffset,
  12902. dest, destOffset) {
  12903. var c = (src[srcOffset] * 255) | 0;
  12904. c = c < 0 ? 0 : c > 255 ? 255 : c;
  12905. dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c;
  12906. },
  12907. getRgbBuffer: function DeviceGrayCS_getRgbBuffer(src, srcOffset, count,
  12908. dest, destOffset, bits,
  12909. alpha01) {
  12910. var scale = 255 / ((1 << bits) - 1);
  12911. var j = srcOffset, q = destOffset;
  12912. for (var i = 0; i < count; ++i) {
  12913. var c = (scale * src[j++]) | 0;
  12914. dest[q++] = c;
  12915. dest[q++] = c;
  12916. dest[q++] = c;
  12917. q += alpha01;
  12918. }
  12919. },
  12920. getOutputLength: function DeviceGrayCS_getOutputLength(inputLength,
  12921. alpha01) {
  12922. return inputLength * (3 + alpha01);
  12923. },
  12924. isPassthrough: ColorSpace.prototype.isPassthrough,
  12925. fillRgb: ColorSpace.prototype.fillRgb,
  12926. isDefaultDecode: function DeviceGrayCS_isDefaultDecode(decodeMap) {
  12927. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12928. },
  12929. usesZeroToOneRange: true
  12930. };
  12931. return DeviceGrayCS;
  12932. })();
  12933. var DeviceRgbCS = (function DeviceRgbCSClosure() {
  12934. function DeviceRgbCS() {
  12935. this.name = 'DeviceRGB';
  12936. this.numComps = 3;
  12937. this.defaultColor = new Float32Array([0, 0, 0]);
  12938. }
  12939. DeviceRgbCS.prototype = {
  12940. getRgb: ColorSpace.prototype.getRgb,
  12941. getRgbItem: function DeviceRgbCS_getRgbItem(src, srcOffset,
  12942. dest, destOffset) {
  12943. var r = (src[srcOffset] * 255) | 0;
  12944. var g = (src[srcOffset + 1] * 255) | 0;
  12945. var b = (src[srcOffset + 2] * 255) | 0;
  12946. dest[destOffset] = r < 0 ? 0 : r > 255 ? 255 : r;
  12947. dest[destOffset + 1] = g < 0 ? 0 : g > 255 ? 255 : g;
  12948. dest[destOffset + 2] = b < 0 ? 0 : b > 255 ? 255 : b;
  12949. },
  12950. getRgbBuffer: function DeviceRgbCS_getRgbBuffer(src, srcOffset, count,
  12951. dest, destOffset, bits,
  12952. alpha01) {
  12953. if (bits === 8 && alpha01 === 0) {
  12954. dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset);
  12955. return;
  12956. }
  12957. var scale = 255 / ((1 << bits) - 1);
  12958. var j = srcOffset, q = destOffset;
  12959. for (var i = 0; i < count; ++i) {
  12960. dest[q++] = (scale * src[j++]) | 0;
  12961. dest[q++] = (scale * src[j++]) | 0;
  12962. dest[q++] = (scale * src[j++]) | 0;
  12963. q += alpha01;
  12964. }
  12965. },
  12966. getOutputLength: function DeviceRgbCS_getOutputLength(inputLength,
  12967. alpha01) {
  12968. return (inputLength * (3 + alpha01) / 3) | 0;
  12969. },
  12970. isPassthrough: function DeviceRgbCS_isPassthrough(bits) {
  12971. return bits == 8;
  12972. },
  12973. fillRgb: ColorSpace.prototype.fillRgb,
  12974. isDefaultDecode: function DeviceRgbCS_isDefaultDecode(decodeMap) {
  12975. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12976. },
  12977. usesZeroToOneRange: true
  12978. };
  12979. return DeviceRgbCS;
  12980. })();
  12981. var DeviceCmykCS = (function DeviceCmykCSClosure() {
  12982. // The coefficients below was found using numerical analysis: the method of
  12983. // steepest descent for the sum((f_i - color_value_i)^2) for r/g/b colors,
  12984. // where color_value is the tabular value from the table of sampled RGB colors
  12985. // from CMYK US Web Coated (SWOP) colorspace, and f_i is the corresponding
  12986. // CMYK color conversion using the estimation below:
  12987. // f(A, B,.. N) = Acc+Bcm+Ccy+Dck+c+Fmm+Gmy+Hmk+Im+Jyy+Kyk+Ly+Mkk+Nk+255
  12988. function convertToRgb(src, srcOffset, srcScale, dest, destOffset) {
  12989. var c = src[srcOffset + 0] * srcScale;
  12990. var m = src[srcOffset + 1] * srcScale;
  12991. var y = src[srcOffset + 2] * srcScale;
  12992. var k = src[srcOffset + 3] * srcScale;
  12993. var r =
  12994. (c * (-4.387332384609988 * c + 54.48615194189176 * m +
  12995. 18.82290502165302 * y + 212.25662451639585 * k +
  12996. -285.2331026137004) +
  12997. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  12998. -17.873870861415444 * k - 5.497006427196366) +
  12999. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  13000. 17.5119270841813) +
  13001. k * (-21.86122147463605 * k - 189.48180835922747) + 255) | 0;
  13002. var g =
  13003. (c * (8.841041422036149 * c + 60.118027045597366 * m +
  13004. 6.871425592049007 * y + 31.159100130055922 * k +
  13005. -79.2970844816548) +
  13006. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  13007. 131.35250912493976 * k - 190.9453302588951) +
  13008. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) +
  13009. k * (-20.737325471181034 * k - 187.80453709719578) + 255) | 0;
  13010. var b =
  13011. (c * (0.8842522430003296 * c + 8.078677503112928 * m +
  13012. 30.89978309703729 * y - 0.23883238689178934 * k +
  13013. -14.183576799673286) +
  13014. m * (10.49593273432072 * m + 63.02378494754052 * y +
  13015. 50.606957656360734 * k - 112.23884253719248) +
  13016. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  13017. -193.58209356861505) +
  13018. k * (-22.33816807309886 * k - 180.12613974708367) + 255) | 0;
  13019. dest[destOffset] = r > 255 ? 255 : r < 0 ? 0 : r;
  13020. dest[destOffset + 1] = g > 255 ? 255 : g < 0 ? 0 : g;
  13021. dest[destOffset + 2] = b > 255 ? 255 : b < 0 ? 0 : b;
  13022. }
  13023. function DeviceCmykCS() {
  13024. this.name = 'DeviceCMYK';
  13025. this.numComps = 4;
  13026. this.defaultColor = new Float32Array([0, 0, 0, 1]);
  13027. }
  13028. DeviceCmykCS.prototype = {
  13029. getRgb: ColorSpace.prototype.getRgb,
  13030. getRgbItem: function DeviceCmykCS_getRgbItem(src, srcOffset,
  13031. dest, destOffset) {
  13032. convertToRgb(src, srcOffset, 1, dest, destOffset);
  13033. },
  13034. getRgbBuffer: function DeviceCmykCS_getRgbBuffer(src, srcOffset, count,
  13035. dest, destOffset, bits,
  13036. alpha01) {
  13037. var scale = 1 / ((1 << bits) - 1);
  13038. for (var i = 0; i < count; i++) {
  13039. convertToRgb(src, srcOffset, scale, dest, destOffset);
  13040. srcOffset += 4;
  13041. destOffset += 3 + alpha01;
  13042. }
  13043. },
  13044. getOutputLength: function DeviceCmykCS_getOutputLength(inputLength,
  13045. alpha01) {
  13046. return (inputLength / 4 * (3 + alpha01)) | 0;
  13047. },
  13048. isPassthrough: ColorSpace.prototype.isPassthrough,
  13049. fillRgb: ColorSpace.prototype.fillRgb,
  13050. isDefaultDecode: function DeviceCmykCS_isDefaultDecode(decodeMap) {
  13051. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  13052. },
  13053. usesZeroToOneRange: true
  13054. };
  13055. return DeviceCmykCS;
  13056. })();
  13057. //
  13058. // CalGrayCS: Based on "PDF Reference, Sixth Ed", p.245
  13059. //
  13060. var CalGrayCS = (function CalGrayCSClosure() {
  13061. function CalGrayCS(whitePoint, blackPoint, gamma) {
  13062. this.name = 'CalGray';
  13063. this.numComps = 1;
  13064. this.defaultColor = new Float32Array([0]);
  13065. if (!whitePoint) {
  13066. error('WhitePoint missing - required for color space CalGray');
  13067. }
  13068. blackPoint = blackPoint || [0, 0, 0];
  13069. gamma = gamma || 1;
  13070. // Translate arguments to spec variables.
  13071. this.XW = whitePoint[0];
  13072. this.YW = whitePoint[1];
  13073. this.ZW = whitePoint[2];
  13074. this.XB = blackPoint[0];
  13075. this.YB = blackPoint[1];
  13076. this.ZB = blackPoint[2];
  13077. this.G = gamma;
  13078. // Validate variables as per spec.
  13079. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  13080. error('Invalid WhitePoint components for ' + this.name +
  13081. ', no fallback available');
  13082. }
  13083. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  13084. info('Invalid BlackPoint for ' + this.name + ', falling back to default');
  13085. this.XB = this.YB = this.ZB = 0;
  13086. }
  13087. if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) {
  13088. warn(this.name + ', BlackPoint: XB: ' + this.XB + ', YB: ' + this.YB +
  13089. ', ZB: ' + this.ZB + ', only default values are supported.');
  13090. }
  13091. if (this.G < 1) {
  13092. info('Invalid Gamma: ' + this.G + ' for ' + this.name +
  13093. ', falling back to default');
  13094. this.G = 1;
  13095. }
  13096. }
  13097. function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) {
  13098. // A represents a gray component of a calibrated gray space.
  13099. // A <---> AG in the spec
  13100. var A = src[srcOffset] * scale;
  13101. var AG = Math.pow(A, cs.G);
  13102. // Computes L as per spec. ( = cs.YW * AG )
  13103. // Except if other than default BlackPoint values are used.
  13104. var L = cs.YW * AG;
  13105. // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4.
  13106. // Convert values to rgb range [0, 255].
  13107. var val = Math.max(295.8 * Math.pow(L, 0.333333333333333333) - 40.8, 0) | 0;
  13108. dest[destOffset] = val;
  13109. dest[destOffset + 1] = val;
  13110. dest[destOffset + 2] = val;
  13111. }
  13112. CalGrayCS.prototype = {
  13113. getRgb: ColorSpace.prototype.getRgb,
  13114. getRgbItem: function CalGrayCS_getRgbItem(src, srcOffset,
  13115. dest, destOffset) {
  13116. convertToRgb(this, src, srcOffset, dest, destOffset, 1);
  13117. },
  13118. getRgbBuffer: function CalGrayCS_getRgbBuffer(src, srcOffset, count,
  13119. dest, destOffset, bits,
  13120. alpha01) {
  13121. var scale = 1 / ((1 << bits) - 1);
  13122. for (var i = 0; i < count; ++i) {
  13123. convertToRgb(this, src, srcOffset, dest, destOffset, scale);
  13124. srcOffset += 1;
  13125. destOffset += 3 + alpha01;
  13126. }
  13127. },
  13128. getOutputLength: function CalGrayCS_getOutputLength(inputLength, alpha01) {
  13129. return inputLength * (3 + alpha01);
  13130. },
  13131. isPassthrough: ColorSpace.prototype.isPassthrough,
  13132. fillRgb: ColorSpace.prototype.fillRgb,
  13133. isDefaultDecode: function CalGrayCS_isDefaultDecode(decodeMap) {
  13134. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  13135. },
  13136. usesZeroToOneRange: true
  13137. };
  13138. return CalGrayCS;
  13139. })();
  13140. //
  13141. // LabCS: Based on "PDF Reference, Sixth Ed", p.250
  13142. //
  13143. var LabCS = (function LabCSClosure() {
  13144. function LabCS(whitePoint, blackPoint, range) {
  13145. this.name = 'Lab';
  13146. this.numComps = 3;
  13147. this.defaultColor = new Float32Array([0, 0, 0]);
  13148. if (!whitePoint) {
  13149. error('WhitePoint missing - required for color space Lab');
  13150. }
  13151. blackPoint = blackPoint || [0, 0, 0];
  13152. range = range || [-100, 100, -100, 100];
  13153. // Translate args to spec variables
  13154. this.XW = whitePoint[0];
  13155. this.YW = whitePoint[1];
  13156. this.ZW = whitePoint[2];
  13157. this.amin = range[0];
  13158. this.amax = range[1];
  13159. this.bmin = range[2];
  13160. this.bmax = range[3];
  13161. // These are here just for completeness - the spec doesn't offer any
  13162. // formulas that use BlackPoint in Lab
  13163. this.XB = blackPoint[0];
  13164. this.YB = blackPoint[1];
  13165. this.ZB = blackPoint[2];
  13166. // Validate vars as per spec
  13167. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  13168. error('Invalid WhitePoint components, no fallback available');
  13169. }
  13170. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  13171. info('Invalid BlackPoint, falling back to default');
  13172. this.XB = this.YB = this.ZB = 0;
  13173. }
  13174. if (this.amin > this.amax || this.bmin > this.bmax) {
  13175. info('Invalid Range, falling back to defaults');
  13176. this.amin = -100;
  13177. this.amax = 100;
  13178. this.bmin = -100;
  13179. this.bmax = 100;
  13180. }
  13181. }
  13182. // Function g(x) from spec
  13183. function fn_g(x) {
  13184. if (x >= 6 / 29) {
  13185. return x * x * x;
  13186. } else {
  13187. return (108 / 841) * (x - 4 / 29);
  13188. }
  13189. }
  13190. function decode(value, high1, low2, high2) {
  13191. return low2 + (value) * (high2 - low2) / (high1);
  13192. }
  13193. // If decoding is needed maxVal should be 2^bits per component - 1.
  13194. function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) {
  13195. // XXX: Lab input is in the range of [0, 100], [amin, amax], [bmin, bmax]
  13196. // not the usual [0, 1]. If a command like setFillColor is used the src
  13197. // values will already be within the correct range. However, if we are
  13198. // converting an image we have to map the values to the correct range given
  13199. // above.
  13200. // Ls,as,bs <---> L*,a*,b* in the spec
  13201. var Ls = src[srcOffset];
  13202. var as = src[srcOffset + 1];
  13203. var bs = src[srcOffset + 2];
  13204. if (maxVal !== false) {
  13205. Ls = decode(Ls, maxVal, 0, 100);
  13206. as = decode(as, maxVal, cs.amin, cs.amax);
  13207. bs = decode(bs, maxVal, cs.bmin, cs.bmax);
  13208. }
  13209. // Adjust limits of 'as' and 'bs'
  13210. as = as > cs.amax ? cs.amax : as < cs.amin ? cs.amin : as;
  13211. bs = bs > cs.bmax ? cs.bmax : bs < cs.bmin ? cs.bmin : bs;
  13212. // Computes intermediate variables X,Y,Z as per spec
  13213. var M = (Ls + 16) / 116;
  13214. var L = M + (as / 500);
  13215. var N = M - (bs / 200);
  13216. var X = cs.XW * fn_g(L);
  13217. var Y = cs.YW * fn_g(M);
  13218. var Z = cs.ZW * fn_g(N);
  13219. var r, g, b;
  13220. // Using different conversions for D50 and D65 white points,
  13221. // per http://www.color.org/srgb.pdf
  13222. if (cs.ZW < 1) {
  13223. // Assuming D50 (X=0.9642, Y=1.00, Z=0.8249)
  13224. r = X * 3.1339 + Y * -1.6170 + Z * -0.4906;
  13225. g = X * -0.9785 + Y * 1.9160 + Z * 0.0333;
  13226. b = X * 0.0720 + Y * -0.2290 + Z * 1.4057;
  13227. } else {
  13228. // Assuming D65 (X=0.9505, Y=1.00, Z=1.0888)
  13229. r = X * 3.2406 + Y * -1.5372 + Z * -0.4986;
  13230. g = X * -0.9689 + Y * 1.8758 + Z * 0.0415;
  13231. b = X * 0.0557 + Y * -0.2040 + Z * 1.0570;
  13232. }
  13233. // clamp color values to [0,1] range then convert to [0,255] range.
  13234. dest[destOffset] = r <= 0 ? 0 : r >= 1 ? 255 : Math.sqrt(r) * 255 | 0;
  13235. dest[destOffset + 1] = g <= 0 ? 0 : g >= 1 ? 255 : Math.sqrt(g) * 255 | 0;
  13236. dest[destOffset + 2] = b <= 0 ? 0 : b >= 1 ? 255 : Math.sqrt(b) * 255 | 0;
  13237. }
  13238. LabCS.prototype = {
  13239. getRgb: ColorSpace.prototype.getRgb,
  13240. getRgbItem: function LabCS_getRgbItem(src, srcOffset, dest, destOffset) {
  13241. convertToRgb(this, src, srcOffset, false, dest, destOffset);
  13242. },
  13243. getRgbBuffer: function LabCS_getRgbBuffer(src, srcOffset, count,
  13244. dest, destOffset, bits,
  13245. alpha01) {
  13246. var maxVal = (1 << bits) - 1;
  13247. for (var i = 0; i < count; i++) {
  13248. convertToRgb(this, src, srcOffset, maxVal, dest, destOffset);
  13249. srcOffset += 3;
  13250. destOffset += 3 + alpha01;
  13251. }
  13252. },
  13253. getOutputLength: function LabCS_getOutputLength(inputLength, alpha01) {
  13254. return (inputLength * (3 + alpha01) / 3) | 0;
  13255. },
  13256. isPassthrough: ColorSpace.prototype.isPassthrough,
  13257. isDefaultDecode: function LabCS_isDefaultDecode(decodeMap) {
  13258. // XXX: Decoding is handled with the lab conversion because of the strange
  13259. // ranges that are used.
  13260. return true;
  13261. },
  13262. usesZeroToOneRange: false
  13263. };
  13264. return LabCS;
  13265. })();
  13266. var ARCFourCipher = (function ARCFourCipherClosure() {
  13267. function ARCFourCipher(key) {
  13268. this.a = 0;
  13269. this.b = 0;
  13270. var s = new Uint8Array(256);
  13271. var i, j = 0, tmp, keyLength = key.length;
  13272. for (i = 0; i < 256; ++i) {
  13273. s[i] = i;
  13274. }
  13275. for (i = 0; i < 256; ++i) {
  13276. tmp = s[i];
  13277. j = (j + tmp + key[i % keyLength]) & 0xFF;
  13278. s[i] = s[j];
  13279. s[j] = tmp;
  13280. }
  13281. this.s = s;
  13282. }
  13283. ARCFourCipher.prototype = {
  13284. encryptBlock: function ARCFourCipher_encryptBlock(data) {
  13285. var i, n = data.length, tmp, tmp2;
  13286. var a = this.a, b = this.b, s = this.s;
  13287. var output = new Uint8Array(n);
  13288. for (i = 0; i < n; ++i) {
  13289. a = (a + 1) & 0xFF;
  13290. tmp = s[a];
  13291. b = (b + tmp) & 0xFF;
  13292. tmp2 = s[b];
  13293. s[a] = tmp2;
  13294. s[b] = tmp;
  13295. output[i] = data[i] ^ s[(tmp + tmp2) & 0xFF];
  13296. }
  13297. this.a = a;
  13298. this.b = b;
  13299. return output;
  13300. }
  13301. };
  13302. ARCFourCipher.prototype.decryptBlock = ARCFourCipher.prototype.encryptBlock;
  13303. return ARCFourCipher;
  13304. })();
  13305. var calculateMD5 = (function calculateMD5Closure() {
  13306. var r = new Uint8Array([
  13307. 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
  13308. 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
  13309. 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
  13310. 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
  13311. var k = new Int32Array([
  13312. -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
  13313. -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
  13314. 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
  13315. 643717713, -373897302, -701558691, 38016083, -660478335, -405537848,
  13316. 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784,
  13317. 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556,
  13318. -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222,
  13319. -722521979, 76029189, -640364487, -421815835, 530742520, -995338651,
  13320. -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606,
  13321. -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649,
  13322. -145523070, -1120210379, 718787259, -343485551]);
  13323. function hash(data, offset, length) {
  13324. var h0 = 1732584193, h1 = -271733879, h2 = -1732584194, h3 = 271733878;
  13325. // pre-processing
  13326. var paddedLength = (length + 72) & ~63; // data + 9 extra bytes
  13327. var padded = new Uint8Array(paddedLength);
  13328. var i, j, n;
  13329. for (i = 0; i < length; ++i) {
  13330. padded[i] = data[offset++];
  13331. }
  13332. padded[i++] = 0x80;
  13333. n = paddedLength - 8;
  13334. while (i < n) {
  13335. padded[i++] = 0;
  13336. }
  13337. padded[i++] = (length << 3) & 0xFF;
  13338. padded[i++] = (length >> 5) & 0xFF;
  13339. padded[i++] = (length >> 13) & 0xFF;
  13340. padded[i++] = (length >> 21) & 0xFF;
  13341. padded[i++] = (length >>> 29) & 0xFF;
  13342. padded[i++] = 0;
  13343. padded[i++] = 0;
  13344. padded[i++] = 0;
  13345. var w = new Int32Array(16);
  13346. for (i = 0; i < paddedLength;) {
  13347. for (j = 0; j < 16; ++j, i += 4) {
  13348. w[j] = (padded[i] | (padded[i + 1] << 8) |
  13349. (padded[i + 2] << 16) | (padded[i + 3] << 24));
  13350. }
  13351. var a = h0, b = h1, c = h2, d = h3, f, g;
  13352. for (j = 0; j < 64; ++j) {
  13353. if (j < 16) {
  13354. f = (b & c) | ((~b) & d);
  13355. g = j;
  13356. } else if (j < 32) {
  13357. f = (d & b) | ((~d) & c);
  13358. g = (5 * j + 1) & 15;
  13359. } else if (j < 48) {
  13360. f = b ^ c ^ d;
  13361. g = (3 * j + 5) & 15;
  13362. } else {
  13363. f = c ^ (b | (~d));
  13364. g = (7 * j) & 15;
  13365. }
  13366. var tmp = d, rotateArg = (a + f + k[j] + w[g]) | 0, rotate = r[j];
  13367. d = c;
  13368. c = b;
  13369. b = (b + ((rotateArg << rotate) | (rotateArg >>> (32 - rotate)))) | 0;
  13370. a = tmp;
  13371. }
  13372. h0 = (h0 + a) | 0;
  13373. h1 = (h1 + b) | 0;
  13374. h2 = (h2 + c) | 0;
  13375. h3 = (h3 + d) | 0;
  13376. }
  13377. return new Uint8Array([
  13378. h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >>> 24) & 0xFF,
  13379. h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >>> 24) & 0xFF,
  13380. h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >>> 24) & 0xFF,
  13381. h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >>> 24) & 0xFF
  13382. ]);
  13383. }
  13384. return hash;
  13385. })();
  13386. var Word64 = (function Word64Closure() {
  13387. function Word64(highInteger, lowInteger) {
  13388. this.high = highInteger | 0;
  13389. this.low = lowInteger | 0;
  13390. }
  13391. Word64.prototype = {
  13392. and: function Word64_and(word) {
  13393. this.high &= word.high;
  13394. this.low &= word.low;
  13395. },
  13396. xor: function Word64_xor(word) {
  13397. this.high ^= word.high;
  13398. this.low ^= word.low;
  13399. },
  13400. or: function Word64_or(word) {
  13401. this.high |= word.high;
  13402. this.low |= word.low;
  13403. },
  13404. shiftRight: function Word64_shiftRight(places) {
  13405. if (places >= 32) {
  13406. this.low = (this.high >>> (places - 32)) | 0;
  13407. this.high = 0;
  13408. } else {
  13409. this.low = (this.low >>> places) | (this.high << (32 - places));
  13410. this.high = (this.high >>> places) | 0;
  13411. }
  13412. },
  13413. shiftLeft: function Word64_shiftLeft(places) {
  13414. if (places >= 32) {
  13415. this.high = this.low << (places - 32);
  13416. this.low = 0;
  13417. } else {
  13418. this.high = (this.high << places) | (this.low >>> (32 - places));
  13419. this.low = this.low << places;
  13420. }
  13421. },
  13422. rotateRight: function Word64_rotateRight(places) {
  13423. var low, high;
  13424. if (places & 32) {
  13425. high = this.low;
  13426. low = this.high;
  13427. } else {
  13428. low = this.low;
  13429. high = this.high;
  13430. }
  13431. places &= 31;
  13432. this.low = (low >>> places) | (high << (32 - places));
  13433. this.high = (high >>> places) | (low << (32 - places));
  13434. },
  13435. not: function Word64_not() {
  13436. this.high = ~this.high;
  13437. this.low = ~this.low;
  13438. },
  13439. add: function Word64_add(word) {
  13440. var lowAdd = (this.low >>> 0) + (word.low >>> 0);
  13441. var highAdd = (this.high >>> 0) + (word.high >>> 0);
  13442. if (lowAdd > 0xFFFFFFFF) {
  13443. highAdd += 1;
  13444. }
  13445. this.low = lowAdd | 0;
  13446. this.high = highAdd | 0;
  13447. },
  13448. copyTo: function Word64_copyTo(bytes, offset) {
  13449. bytes[offset] = (this.high >>> 24) & 0xFF;
  13450. bytes[offset + 1] = (this.high >> 16) & 0xFF;
  13451. bytes[offset + 2] = (this.high >> 8) & 0xFF;
  13452. bytes[offset + 3] = this.high & 0xFF;
  13453. bytes[offset + 4] = (this.low >>> 24) & 0xFF;
  13454. bytes[offset + 5] = (this.low >> 16) & 0xFF;
  13455. bytes[offset + 6] = (this.low >> 8) & 0xFF;
  13456. bytes[offset + 7] = this.low & 0xFF;
  13457. },
  13458. assign: function Word64_assign(word) {
  13459. this.high = word.high;
  13460. this.low = word.low;
  13461. }
  13462. };
  13463. return Word64;
  13464. })();
  13465. var calculateSHA256 = (function calculateSHA256Closure() {
  13466. function rotr(x, n) {
  13467. return (x >>> n) | (x << 32 - n);
  13468. }
  13469. function ch(x, y, z) {
  13470. return (x & y) ^ (~x & z);
  13471. }
  13472. function maj(x, y, z) {
  13473. return (x & y) ^ (x & z) ^ (y & z);
  13474. }
  13475. function sigma(x) {
  13476. return rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
  13477. }
  13478. function sigmaPrime(x) {
  13479. return rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
  13480. }
  13481. function littleSigma(x) {
  13482. return rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
  13483. }
  13484. function littleSigmaPrime(x) {
  13485. return rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
  13486. }
  13487. var k = [0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
  13488. 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
  13489. 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
  13490. 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
  13491. 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
  13492. 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
  13493. 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
  13494. 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
  13495. 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
  13496. 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
  13497. 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
  13498. 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
  13499. 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
  13500. 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
  13501. 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
  13502. 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2];
  13503. function hash(data, offset, length) {
  13504. // initial hash values
  13505. var h0 = 0x6a09e667, h1 = 0xbb67ae85, h2 = 0x3c6ef372,
  13506. h3 = 0xa54ff53a, h4 = 0x510e527f, h5 = 0x9b05688c,
  13507. h6 = 0x1f83d9ab, h7 = 0x5be0cd19;
  13508. // pre-processing
  13509. var paddedLength = Math.ceil((length + 9) / 64) * 64;
  13510. var padded = new Uint8Array(paddedLength);
  13511. var i, j, n;
  13512. for (i = 0; i < length; ++i) {
  13513. padded[i] = data[offset++];
  13514. }
  13515. padded[i++] = 0x80;
  13516. n = paddedLength - 8;
  13517. while (i < n) {
  13518. padded[i++] = 0;
  13519. }
  13520. padded[i++] = 0;
  13521. padded[i++] = 0;
  13522. padded[i++] = 0;
  13523. padded[i++] = (length >>> 29) & 0xFF;
  13524. padded[i++] = (length >> 21) & 0xFF;
  13525. padded[i++] = (length >> 13) & 0xFF;
  13526. padded[i++] = (length >> 5) & 0xFF;
  13527. padded[i++] = (length << 3) & 0xFF;
  13528. var w = new Uint32Array(64);
  13529. // for each 512 bit block
  13530. for (i = 0; i < paddedLength;) {
  13531. for (j = 0; j < 16; ++j) {
  13532. w[j] = (padded[i] << 24 | (padded[i + 1] << 16) |
  13533. (padded[i + 2] << 8) | (padded[i + 3]));
  13534. i += 4;
  13535. }
  13536. for (j = 16; j < 64; ++j) {
  13537. w[j] = littleSigmaPrime(w[j - 2]) + w[j - 7] +
  13538. littleSigma(w[j - 15]) + w[j - 16] | 0;
  13539. }
  13540. var a = h0, b = h1, c = h2, d = h3, e = h4,
  13541. f = h5, g = h6, h = h7, t1, t2;
  13542. for (j = 0; j < 64; ++j) {
  13543. t1 = h + sigmaPrime(e) + ch(e, f, g) + k[j] + w[j];
  13544. t2 = sigma(a) + maj(a, b, c);
  13545. h = g;
  13546. g = f;
  13547. f = e;
  13548. e = (d + t1) | 0;
  13549. d = c;
  13550. c = b;
  13551. b = a;
  13552. a = (t1 + t2) | 0;
  13553. }
  13554. h0 = (h0 + a) | 0;
  13555. h1 = (h1 + b) | 0;
  13556. h2 = (h2 + c) | 0;
  13557. h3 = (h3 + d) | 0;
  13558. h4 = (h4 + e) | 0;
  13559. h5 = (h5 + f) | 0;
  13560. h6 = (h6 + g) | 0;
  13561. h7 = (h7 + h) | 0;
  13562. }
  13563. return new Uint8Array([
  13564. (h0 >> 24) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 8) & 0xFF, (h0) & 0xFF,
  13565. (h1 >> 24) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 8) & 0xFF, (h1) & 0xFF,
  13566. (h2 >> 24) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 8) & 0xFF, (h2) & 0xFF,
  13567. (h3 >> 24) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 8) & 0xFF, (h3) & 0xFF,
  13568. (h4 >> 24) & 0xFF, (h4 >> 16) & 0xFF, (h4 >> 8) & 0xFF, (h4) & 0xFF,
  13569. (h5 >> 24) & 0xFF, (h5 >> 16) & 0xFF, (h5 >> 8) & 0xFF, (h5) & 0xFF,
  13570. (h6 >> 24) & 0xFF, (h6 >> 16) & 0xFF, (h6 >> 8) & 0xFF, (h6) & 0xFF,
  13571. (h7 >> 24) & 0xFF, (h7 >> 16) & 0xFF, (h7 >> 8) & 0xFF, (h7) & 0xFF
  13572. ]);
  13573. }
  13574. return hash;
  13575. })();
  13576. var calculateSHA512 = (function calculateSHA512Closure() {
  13577. function ch(result, x, y, z, tmp) {
  13578. result.assign(x);
  13579. result.and(y);
  13580. tmp.assign(x);
  13581. tmp.not();
  13582. tmp.and(z);
  13583. result.xor(tmp);
  13584. }
  13585. function maj(result, x, y, z, tmp) {
  13586. result.assign(x);
  13587. result.and(y);
  13588. tmp.assign(x);
  13589. tmp.and(z);
  13590. result.xor(tmp);
  13591. tmp.assign(y);
  13592. tmp.and(z);
  13593. result.xor(tmp);
  13594. }
  13595. function sigma(result, x, tmp) {
  13596. result.assign(x);
  13597. result.rotateRight(28);
  13598. tmp.assign(x);
  13599. tmp.rotateRight(34);
  13600. result.xor(tmp);
  13601. tmp.assign(x);
  13602. tmp.rotateRight(39);
  13603. result.xor(tmp);
  13604. }
  13605. function sigmaPrime(result, x, tmp) {
  13606. result.assign(x);
  13607. result.rotateRight(14);
  13608. tmp.assign(x);
  13609. tmp.rotateRight(18);
  13610. result.xor(tmp);
  13611. tmp.assign(x);
  13612. tmp.rotateRight(41);
  13613. result.xor(tmp);
  13614. }
  13615. function littleSigma(result, x, tmp) {
  13616. result.assign(x);
  13617. result.rotateRight(1);
  13618. tmp.assign(x);
  13619. tmp.rotateRight(8);
  13620. result.xor(tmp);
  13621. tmp.assign(x);
  13622. tmp.shiftRight(7);
  13623. result.xor(tmp);
  13624. }
  13625. function littleSigmaPrime(result, x, tmp) {
  13626. result.assign(x);
  13627. result.rotateRight(19);
  13628. tmp.assign(x);
  13629. tmp.rotateRight(61);
  13630. result.xor(tmp);
  13631. tmp.assign(x);
  13632. tmp.shiftRight(6);
  13633. result.xor(tmp);
  13634. }
  13635. var k = [
  13636. new Word64(0x428a2f98, 0xd728ae22), new Word64(0x71374491, 0x23ef65cd),
  13637. new Word64(0xb5c0fbcf, 0xec4d3b2f), new Word64(0xe9b5dba5, 0x8189dbbc),
  13638. new Word64(0x3956c25b, 0xf348b538), new Word64(0x59f111f1, 0xb605d019),
  13639. new Word64(0x923f82a4, 0xaf194f9b), new Word64(0xab1c5ed5, 0xda6d8118),
  13640. new Word64(0xd807aa98, 0xa3030242), new Word64(0x12835b01, 0x45706fbe),
  13641. new Word64(0x243185be, 0x4ee4b28c), new Word64(0x550c7dc3, 0xd5ffb4e2),
  13642. new Word64(0x72be5d74, 0xf27b896f), new Word64(0x80deb1fe, 0x3b1696b1),
  13643. new Word64(0x9bdc06a7, 0x25c71235), new Word64(0xc19bf174, 0xcf692694),
  13644. new Word64(0xe49b69c1, 0x9ef14ad2), new Word64(0xefbe4786, 0x384f25e3),
  13645. new Word64(0x0fc19dc6, 0x8b8cd5b5), new Word64(0x240ca1cc, 0x77ac9c65),
  13646. new Word64(0x2de92c6f, 0x592b0275), new Word64(0x4a7484aa, 0x6ea6e483),
  13647. new Word64(0x5cb0a9dc, 0xbd41fbd4), new Word64(0x76f988da, 0x831153b5),
  13648. new Word64(0x983e5152, 0xee66dfab), new Word64(0xa831c66d, 0x2db43210),
  13649. new Word64(0xb00327c8, 0x98fb213f), new Word64(0xbf597fc7, 0xbeef0ee4),
  13650. new Word64(0xc6e00bf3, 0x3da88fc2), new Word64(0xd5a79147, 0x930aa725),
  13651. new Word64(0x06ca6351, 0xe003826f), new Word64(0x14292967, 0x0a0e6e70),
  13652. new Word64(0x27b70a85, 0x46d22ffc), new Word64(0x2e1b2138, 0x5c26c926),
  13653. new Word64(0x4d2c6dfc, 0x5ac42aed), new Word64(0x53380d13, 0x9d95b3df),
  13654. new Word64(0x650a7354, 0x8baf63de), new Word64(0x766a0abb, 0x3c77b2a8),
  13655. new Word64(0x81c2c92e, 0x47edaee6), new Word64(0x92722c85, 0x1482353b),
  13656. new Word64(0xa2bfe8a1, 0x4cf10364), new Word64(0xa81a664b, 0xbc423001),
  13657. new Word64(0xc24b8b70, 0xd0f89791), new Word64(0xc76c51a3, 0x0654be30),
  13658. new Word64(0xd192e819, 0xd6ef5218), new Word64(0xd6990624, 0x5565a910),
  13659. new Word64(0xf40e3585, 0x5771202a), new Word64(0x106aa070, 0x32bbd1b8),
  13660. new Word64(0x19a4c116, 0xb8d2d0c8), new Word64(0x1e376c08, 0x5141ab53),
  13661. new Word64(0x2748774c, 0xdf8eeb99), new Word64(0x34b0bcb5, 0xe19b48a8),
  13662. new Word64(0x391c0cb3, 0xc5c95a63), new Word64(0x4ed8aa4a, 0xe3418acb),
  13663. new Word64(0x5b9cca4f, 0x7763e373), new Word64(0x682e6ff3, 0xd6b2b8a3),
  13664. new Word64(0x748f82ee, 0x5defb2fc), new Word64(0x78a5636f, 0x43172f60),
  13665. new Word64(0x84c87814, 0xa1f0ab72), new Word64(0x8cc70208, 0x1a6439ec),
  13666. new Word64(0x90befffa, 0x23631e28), new Word64(0xa4506ceb, 0xde82bde9),
  13667. new Word64(0xbef9a3f7, 0xb2c67915), new Word64(0xc67178f2, 0xe372532b),
  13668. new Word64(0xca273ece, 0xea26619c), new Word64(0xd186b8c7, 0x21c0c207),
  13669. new Word64(0xeada7dd6, 0xcde0eb1e), new Word64(0xf57d4f7f, 0xee6ed178),
  13670. new Word64(0x06f067aa, 0x72176fba), new Word64(0x0a637dc5, 0xa2c898a6),
  13671. new Word64(0x113f9804, 0xbef90dae), new Word64(0x1b710b35, 0x131c471b),
  13672. new Word64(0x28db77f5, 0x23047d84), new Word64(0x32caab7b, 0x40c72493),
  13673. new Word64(0x3c9ebe0a, 0x15c9bebc), new Word64(0x431d67c4, 0x9c100d4c),
  13674. new Word64(0x4cc5d4be, 0xcb3e42b6), new Word64(0x597f299c, 0xfc657e2a),
  13675. new Word64(0x5fcb6fab, 0x3ad6faec), new Word64(0x6c44198c, 0x4a475817)];
  13676. function hash(data, offset, length, mode384) {
  13677. mode384 = !!mode384;
  13678. // initial hash values
  13679. var h0, h1, h2, h3, h4, h5, h6, h7;
  13680. if (!mode384) {
  13681. h0 = new Word64(0x6a09e667, 0xf3bcc908);
  13682. h1 = new Word64(0xbb67ae85, 0x84caa73b);
  13683. h2 = new Word64(0x3c6ef372, 0xfe94f82b);
  13684. h3 = new Word64(0xa54ff53a, 0x5f1d36f1);
  13685. h4 = new Word64(0x510e527f, 0xade682d1);
  13686. h5 = new Word64(0x9b05688c, 0x2b3e6c1f);
  13687. h6 = new Word64(0x1f83d9ab, 0xfb41bd6b);
  13688. h7 = new Word64(0x5be0cd19, 0x137e2179);
  13689. }
  13690. else {
  13691. // SHA384 is exactly the same
  13692. // except with different starting values and a trimmed result
  13693. h0 = new Word64(0xcbbb9d5d, 0xc1059ed8);
  13694. h1 = new Word64(0x629a292a, 0x367cd507);
  13695. h2 = new Word64(0x9159015a, 0x3070dd17);
  13696. h3 = new Word64(0x152fecd8, 0xf70e5939);
  13697. h4 = new Word64(0x67332667, 0xffc00b31);
  13698. h5 = new Word64(0x8eb44a87, 0x68581511);
  13699. h6 = new Word64(0xdb0c2e0d, 0x64f98fa7);
  13700. h7 = new Word64(0x47b5481d, 0xbefa4fa4);
  13701. }
  13702. // pre-processing
  13703. var paddedLength = Math.ceil((length + 17) / 128) * 128;
  13704. var padded = new Uint8Array(paddedLength);
  13705. var i, j, n;
  13706. for (i = 0; i < length; ++i) {
  13707. padded[i] = data[offset++];
  13708. }
  13709. padded[i++] = 0x80;
  13710. n = paddedLength - 16;
  13711. while (i < n) {
  13712. padded[i++] = 0;
  13713. }
  13714. padded[i++] = 0;
  13715. padded[i++] = 0;
  13716. padded[i++] = 0;
  13717. padded[i++] = 0;
  13718. padded[i++] = 0;
  13719. padded[i++] = 0;
  13720. padded[i++] = 0;
  13721. padded[i++] = 0;
  13722. padded[i++] = 0;
  13723. padded[i++] = 0;
  13724. padded[i++] = 0;
  13725. padded[i++] = (length >>> 29) & 0xFF;
  13726. padded[i++] = (length >> 21) & 0xFF;
  13727. padded[i++] = (length >> 13) & 0xFF;
  13728. padded[i++] = (length >> 5) & 0xFF;
  13729. padded[i++] = (length << 3) & 0xFF;
  13730. var w = new Array(80);
  13731. for (i = 0; i < 80; i++) {
  13732. w[i] = new Word64(0, 0);
  13733. }
  13734. var a = new Word64(0, 0), b = new Word64(0, 0), c = new Word64(0, 0);
  13735. var d = new Word64(0, 0), e = new Word64(0, 0), f = new Word64(0, 0);
  13736. var g = new Word64(0, 0), h = new Word64(0, 0);
  13737. var t1 = new Word64(0, 0), t2 = new Word64(0, 0);
  13738. var tmp1 = new Word64(0, 0), tmp2 = new Word64(0, 0), tmp3;
  13739. // for each 1024 bit block
  13740. for (i = 0; i < paddedLength;) {
  13741. for (j = 0; j < 16; ++j) {
  13742. w[j].high = (padded[i] << 24) | (padded[i + 1] << 16) |
  13743. (padded[i + 2] << 8) | (padded[i + 3]);
  13744. w[j].low = (padded[i + 4]) << 24 | (padded[i + 5]) << 16 |
  13745. (padded[i + 6]) << 8 | (padded[i + 7]);
  13746. i += 8;
  13747. }
  13748. for (j = 16; j < 80; ++j) {
  13749. tmp3 = w[j];
  13750. littleSigmaPrime(tmp3, w[j - 2], tmp2);
  13751. tmp3.add(w[j - 7]);
  13752. littleSigma(tmp1, w[j - 15], tmp2);
  13753. tmp3.add(tmp1);
  13754. tmp3.add(w[j - 16]);
  13755. }
  13756. a.assign(h0); b.assign(h1); c.assign(h2); d.assign(h3);
  13757. e.assign(h4); f.assign(h5); g.assign(h6); h.assign(h7);
  13758. for (j = 0; j < 80; ++j) {
  13759. t1.assign(h);
  13760. sigmaPrime(tmp1, e, tmp2);
  13761. t1.add(tmp1);
  13762. ch(tmp1, e, f, g, tmp2);
  13763. t1.add(tmp1);
  13764. t1.add(k[j]);
  13765. t1.add(w[j]);
  13766. sigma(t2, a, tmp2);
  13767. maj(tmp1, a, b, c, tmp2);
  13768. t2.add(tmp1);
  13769. tmp3 = h;
  13770. h = g;
  13771. g = f;
  13772. f = e;
  13773. d.add(t1);
  13774. e = d;
  13775. d = c;
  13776. c = b;
  13777. b = a;
  13778. tmp3.assign(t1);
  13779. tmp3.add(t2);
  13780. a = tmp3;
  13781. }
  13782. h0.add(a);
  13783. h1.add(b);
  13784. h2.add(c);
  13785. h3.add(d);
  13786. h4.add(e);
  13787. h5.add(f);
  13788. h6.add(g);
  13789. h7.add(h);
  13790. }
  13791. var result;
  13792. if (!mode384) {
  13793. result = new Uint8Array(64);
  13794. h0.copyTo(result,0);
  13795. h1.copyTo(result,8);
  13796. h2.copyTo(result,16);
  13797. h3.copyTo(result,24);
  13798. h4.copyTo(result,32);
  13799. h5.copyTo(result,40);
  13800. h6.copyTo(result,48);
  13801. h7.copyTo(result,56);
  13802. }
  13803. else {
  13804. result = new Uint8Array(48);
  13805. h0.copyTo(result,0);
  13806. h1.copyTo(result,8);
  13807. h2.copyTo(result,16);
  13808. h3.copyTo(result,24);
  13809. h4.copyTo(result,32);
  13810. h5.copyTo(result,40);
  13811. }
  13812. return result;
  13813. }
  13814. return hash;
  13815. })();
  13816. var calculateSHA384 = (function calculateSHA384Closure() {
  13817. function hash(data, offset, length) {
  13818. return calculateSHA512(data, offset, length, true);
  13819. }
  13820. return hash;
  13821. })();
  13822. var NullCipher = (function NullCipherClosure() {
  13823. function NullCipher() {
  13824. }
  13825. NullCipher.prototype = {
  13826. decryptBlock: function NullCipher_decryptBlock(data) {
  13827. return data;
  13828. }
  13829. };
  13830. return NullCipher;
  13831. })();
  13832. var AES128Cipher = (function AES128CipherClosure() {
  13833. var rcon = new Uint8Array([
  13834. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13835. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13836. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13837. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13838. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  13839. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  13840. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  13841. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  13842. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  13843. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  13844. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  13845. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  13846. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  13847. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  13848. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  13849. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  13850. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  13851. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13852. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13853. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13854. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13855. 0x74, 0xe8, 0xcb, 0x8d]);
  13856. var s = new Uint8Array([
  13857. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  13858. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  13859. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  13860. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  13861. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  13862. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  13863. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  13864. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  13865. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  13866. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  13867. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  13868. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  13869. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  13870. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  13871. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  13872. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  13873. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  13874. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  13875. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  13876. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  13877. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  13878. 0xb0, 0x54, 0xbb, 0x16]);
  13879. var inv_s = new Uint8Array([
  13880. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  13881. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  13882. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  13883. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  13884. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  13885. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  13886. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  13887. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  13888. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  13889. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  13890. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  13891. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  13892. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  13893. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  13894. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  13895. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  13896. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  13897. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  13898. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  13899. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  13900. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  13901. 0x55, 0x21, 0x0c, 0x7d]);
  13902. var mixCol = new Uint8Array(256);
  13903. for (var i = 0; i < 256; i++) {
  13904. if (i < 128) {
  13905. mixCol[i] = i << 1;
  13906. } else {
  13907. mixCol[i] = (i << 1) ^ 0x1b;
  13908. }
  13909. }
  13910. var mix = new Uint32Array([
  13911. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  13912. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  13913. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  13914. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  13915. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  13916. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  13917. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  13918. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  13919. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  13920. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  13921. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  13922. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  13923. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  13924. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  13925. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  13926. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  13927. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  13928. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  13929. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  13930. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  13931. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  13932. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  13933. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  13934. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  13935. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  13936. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  13937. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  13938. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  13939. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  13940. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  13941. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  13942. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  13943. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  13944. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  13945. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  13946. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  13947. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  13948. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  13949. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  13950. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  13951. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  13952. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  13953. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  13954. function expandKey128(cipherKey) {
  13955. var b = 176, result = new Uint8Array(b);
  13956. result.set(cipherKey);
  13957. for (var j = 16, i = 1; j < b; ++i) {
  13958. // RotWord
  13959. var t1 = result[j - 3], t2 = result[j - 2],
  13960. t3 = result[j - 1], t4 = result[j - 4];
  13961. // SubWord
  13962. t1 = s[t1];
  13963. t2 = s[t2];
  13964. t3 = s[t3];
  13965. t4 = s[t4];
  13966. // Rcon
  13967. t1 = t1 ^ rcon[i];
  13968. for (var n = 0; n < 4; ++n) {
  13969. result[j] = (t1 ^= result[j - 16]);
  13970. j++;
  13971. result[j] = (t2 ^= result[j - 16]);
  13972. j++;
  13973. result[j] = (t3 ^= result[j - 16]);
  13974. j++;
  13975. result[j] = (t4 ^= result[j - 16]);
  13976. j++;
  13977. }
  13978. }
  13979. return result;
  13980. }
  13981. function decrypt128(input, key) {
  13982. var state = new Uint8Array(16);
  13983. state.set(input);
  13984. var i, j, k;
  13985. var t, u, v;
  13986. // AddRoundKey
  13987. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13988. state[j] ^= key[k];
  13989. }
  13990. for (i = 9; i >= 1; --i) {
  13991. // InvShiftRows
  13992. t = state[13];
  13993. state[13] = state[9];
  13994. state[9] = state[5];
  13995. state[5] = state[1];
  13996. state[1] = t;
  13997. t = state[14];
  13998. u = state[10];
  13999. state[14] = state[6];
  14000. state[10] = state[2];
  14001. state[6] = t;
  14002. state[2] = u;
  14003. t = state[15];
  14004. u = state[11];
  14005. v = state[7];
  14006. state[15] = state[3];
  14007. state[11] = t;
  14008. state[7] = u;
  14009. state[3] = v;
  14010. // InvSubBytes
  14011. for (j = 0; j < 16; ++j) {
  14012. state[j] = inv_s[state[j]];
  14013. }
  14014. // AddRoundKey
  14015. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  14016. state[j] ^= key[k];
  14017. }
  14018. // InvMixColumns
  14019. for (j = 0; j < 16; j += 4) {
  14020. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  14021. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  14022. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  14023. (s3 >>> 24) ^ (s3 << 8));
  14024. state[j] = (t >>> 24) & 0xFF;
  14025. state[j + 1] = (t >> 16) & 0xFF;
  14026. state[j + 2] = (t >> 8) & 0xFF;
  14027. state[j + 3] = t & 0xFF;
  14028. }
  14029. }
  14030. // InvShiftRows
  14031. t = state[13];
  14032. state[13] = state[9];
  14033. state[9] = state[5];
  14034. state[5] = state[1];
  14035. state[1] = t;
  14036. t = state[14];
  14037. u = state[10];
  14038. state[14] = state[6];
  14039. state[10] = state[2];
  14040. state[6] = t;
  14041. state[2] = u;
  14042. t = state[15];
  14043. u = state[11];
  14044. v = state[7];
  14045. state[15] = state[3];
  14046. state[11] = t;
  14047. state[7] = u;
  14048. state[3] = v;
  14049. for (j = 0; j < 16; ++j) {
  14050. // InvSubBytes
  14051. state[j] = inv_s[state[j]];
  14052. // AddRoundKey
  14053. state[j] ^= key[j];
  14054. }
  14055. return state;
  14056. }
  14057. function encrypt128(input, key) {
  14058. var t, u, v, k;
  14059. var state = new Uint8Array(16);
  14060. state.set(input);
  14061. for (j = 0; j < 16; ++j) {
  14062. // AddRoundKey
  14063. state[j] ^= key[j];
  14064. }
  14065. for (i = 1; i < 10; i++) {
  14066. //SubBytes
  14067. for (j = 0; j < 16; ++j) {
  14068. state[j] = s[state[j]];
  14069. }
  14070. //ShiftRows
  14071. v = state[1];
  14072. state[1] = state[5];
  14073. state[5] = state[9];
  14074. state[9] = state[13];
  14075. state[13] = v;
  14076. v = state[2];
  14077. u = state[6];
  14078. state[2] = state[10];
  14079. state[6] = state[14];
  14080. state[10] = v;
  14081. state[14] = u;
  14082. v = state[3];
  14083. u = state[7];
  14084. t = state[11];
  14085. state[3] = state[15];
  14086. state[7] = v;
  14087. state[11] = u;
  14088. state[15] = t;
  14089. //MixColumns
  14090. for (var j = 0; j < 16; j += 4) {
  14091. var s0 = state[j + 0], s1 = state[j + 1];
  14092. var s2 = state[j + 2], s3 = state[j + 3];
  14093. t = s0 ^ s1 ^ s2 ^ s3;
  14094. state[j + 0] ^= t ^ mixCol[s0 ^ s1];
  14095. state[j + 1] ^= t ^ mixCol[s1 ^ s2];
  14096. state[j + 2] ^= t ^ mixCol[s2 ^ s3];
  14097. state[j + 3] ^= t ^ mixCol[s3 ^ s0];
  14098. }
  14099. //AddRoundKey
  14100. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  14101. state[j] ^= key[k];
  14102. }
  14103. }
  14104. //SubBytes
  14105. for (j = 0; j < 16; ++j) {
  14106. state[j] = s[state[j]];
  14107. }
  14108. //ShiftRows
  14109. v = state[1];
  14110. state[1] = state[5];
  14111. state[5] = state[9];
  14112. state[9] = state[13];
  14113. state[13] = v;
  14114. v = state[2];
  14115. u = state[6];
  14116. state[2] = state[10];
  14117. state[6] = state[14];
  14118. state[10] = v;
  14119. state[14] = u;
  14120. v = state[3];
  14121. u = state[7];
  14122. t = state[11];
  14123. state[3] = state[15];
  14124. state[7] = v;
  14125. state[11] = u;
  14126. state[15] = t;
  14127. //AddRoundKey
  14128. for (j = 0, k = 160; j < 16; ++j, ++k) {
  14129. state[j] ^= key[k];
  14130. }
  14131. return state;
  14132. }
  14133. function AES128Cipher(key) {
  14134. this.key = expandKey128(key);
  14135. this.buffer = new Uint8Array(16);
  14136. this.bufferPosition = 0;
  14137. }
  14138. function decryptBlock2(data, finalize) {
  14139. var i, j, ii, sourceLength = data.length,
  14140. buffer = this.buffer, bufferLength = this.bufferPosition,
  14141. result = [], iv = this.iv;
  14142. for (i = 0; i < sourceLength; ++i) {
  14143. buffer[bufferLength] = data[i];
  14144. ++bufferLength;
  14145. if (bufferLength < 16) {
  14146. continue;
  14147. }
  14148. // buffer is full, decrypting
  14149. var plain = decrypt128(buffer, this.key);
  14150. // xor-ing the IV vector to get plain text
  14151. for (j = 0; j < 16; ++j) {
  14152. plain[j] ^= iv[j];
  14153. }
  14154. iv = buffer;
  14155. result.push(plain);
  14156. buffer = new Uint8Array(16);
  14157. bufferLength = 0;
  14158. }
  14159. // saving incomplete buffer
  14160. this.buffer = buffer;
  14161. this.bufferLength = bufferLength;
  14162. this.iv = iv;
  14163. if (result.length === 0) {
  14164. return new Uint8Array([]);
  14165. }
  14166. // combining plain text blocks into one
  14167. var outputLength = 16 * result.length;
  14168. if (finalize) {
  14169. // undo a padding that is described in RFC 2898
  14170. var lastBlock = result[result.length - 1];
  14171. outputLength -= lastBlock[15];
  14172. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  14173. }
  14174. var output = new Uint8Array(outputLength);
  14175. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14176. output.set(result[i], j);
  14177. }
  14178. return output;
  14179. }
  14180. AES128Cipher.prototype = {
  14181. decryptBlock: function AES128Cipher_decryptBlock(data, finalize) {
  14182. var i, sourceLength = data.length;
  14183. var buffer = this.buffer, bufferLength = this.bufferPosition;
  14184. // waiting for IV values -- they are at the start of the stream
  14185. for (i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength) {
  14186. buffer[bufferLength] = data[i];
  14187. }
  14188. if (bufferLength < 16) {
  14189. // need more data
  14190. this.bufferLength = bufferLength;
  14191. return new Uint8Array([]);
  14192. }
  14193. this.iv = buffer;
  14194. this.buffer = new Uint8Array(16);
  14195. this.bufferLength = 0;
  14196. // starting decryption
  14197. this.decryptBlock = decryptBlock2;
  14198. return this.decryptBlock(data.subarray(16), finalize);
  14199. },
  14200. encrypt: function AES128Cipher_encrypt(data, iv) {
  14201. var i, j, ii, sourceLength = data.length,
  14202. buffer = this.buffer, bufferLength = this.bufferPosition,
  14203. result = [];
  14204. if (!iv) {
  14205. iv = new Uint8Array(16);
  14206. }
  14207. for (i = 0; i < sourceLength; ++i) {
  14208. buffer[bufferLength] = data[i];
  14209. ++bufferLength;
  14210. if (bufferLength < 16) {
  14211. continue;
  14212. }
  14213. for (j = 0; j < 16; ++j) {
  14214. buffer[j] ^= iv[j];
  14215. }
  14216. // buffer is full, encrypting
  14217. var cipher = encrypt128(buffer, this.key);
  14218. iv = cipher;
  14219. result.push(cipher);
  14220. buffer = new Uint8Array(16);
  14221. bufferLength = 0;
  14222. }
  14223. // saving incomplete buffer
  14224. this.buffer = buffer;
  14225. this.bufferLength = bufferLength;
  14226. this.iv = iv;
  14227. if (result.length === 0) {
  14228. return new Uint8Array([]);
  14229. }
  14230. // combining plain text blocks into one
  14231. var outputLength = 16 * result.length;
  14232. var output = new Uint8Array(outputLength);
  14233. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14234. output.set(result[i], j);
  14235. }
  14236. return output;
  14237. }
  14238. };
  14239. return AES128Cipher;
  14240. })();
  14241. var AES256Cipher = (function AES256CipherClosure() {
  14242. var rcon = new Uint8Array([
  14243. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  14244. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  14245. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  14246. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  14247. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  14248. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  14249. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  14250. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  14251. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  14252. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  14253. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  14254. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  14255. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  14256. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  14257. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  14258. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  14259. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  14260. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  14261. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  14262. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  14263. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  14264. 0x74, 0xe8, 0xcb, 0x8d]);
  14265. var s = new Uint8Array([
  14266. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  14267. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  14268. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  14269. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  14270. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  14271. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  14272. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  14273. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  14274. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  14275. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  14276. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  14277. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  14278. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  14279. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  14280. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  14281. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  14282. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  14283. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  14284. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  14285. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  14286. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  14287. 0xb0, 0x54, 0xbb, 0x16]);
  14288. var inv_s = new Uint8Array([
  14289. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  14290. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  14291. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  14292. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  14293. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  14294. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  14295. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  14296. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  14297. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  14298. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  14299. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  14300. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  14301. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  14302. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  14303. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  14304. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  14305. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  14306. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  14307. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  14308. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  14309. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  14310. 0x55, 0x21, 0x0c, 0x7d]);
  14311. var mixCol = new Uint8Array(256);
  14312. for (var i = 0; i < 256; i++) {
  14313. if (i < 128) {
  14314. mixCol[i] = i << 1;
  14315. } else {
  14316. mixCol[i] = (i << 1) ^ 0x1b;
  14317. }
  14318. }
  14319. var mix = new Uint32Array([
  14320. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  14321. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  14322. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  14323. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  14324. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  14325. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  14326. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  14327. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  14328. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  14329. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  14330. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  14331. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  14332. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  14333. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  14334. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  14335. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  14336. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  14337. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  14338. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  14339. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  14340. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  14341. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  14342. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  14343. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  14344. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  14345. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  14346. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  14347. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  14348. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  14349. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  14350. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  14351. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  14352. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  14353. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  14354. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  14355. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  14356. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  14357. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  14358. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  14359. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  14360. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  14361. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  14362. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  14363. function expandKey256(cipherKey) {
  14364. var b = 240, result = new Uint8Array(b);
  14365. var r = 1;
  14366. result.set(cipherKey);
  14367. for (var j = 32, i = 1; j < b; ++i) {
  14368. if (j % 32 === 16) {
  14369. t1 = s[t1];
  14370. t2 = s[t2];
  14371. t3 = s[t3];
  14372. t4 = s[t4];
  14373. } else if (j % 32 === 0) {
  14374. // RotWord
  14375. var t1 = result[j - 3], t2 = result[j - 2],
  14376. t3 = result[j - 1], t4 = result[j - 4];
  14377. // SubWord
  14378. t1 = s[t1];
  14379. t2 = s[t2];
  14380. t3 = s[t3];
  14381. t4 = s[t4];
  14382. // Rcon
  14383. t1 = t1 ^ r;
  14384. if ((r <<= 1) >= 256) {
  14385. r = (r ^ 0x1b) & 0xFF;
  14386. }
  14387. }
  14388. for (var n = 0; n < 4; ++n) {
  14389. result[j] = (t1 ^= result[j - 32]);
  14390. j++;
  14391. result[j] = (t2 ^= result[j - 32]);
  14392. j++;
  14393. result[j] = (t3 ^= result[j - 32]);
  14394. j++;
  14395. result[j] = (t4 ^= result[j - 32]);
  14396. j++;
  14397. }
  14398. }
  14399. return result;
  14400. }
  14401. function decrypt256(input, key) {
  14402. var state = new Uint8Array(16);
  14403. state.set(input);
  14404. var i, j, k;
  14405. var t, u, v;
  14406. // AddRoundKey
  14407. for (j = 0, k = 224; j < 16; ++j, ++k) {
  14408. state[j] ^= key[k];
  14409. }
  14410. for (i = 13; i >= 1; --i) {
  14411. // InvShiftRows
  14412. t = state[13];
  14413. state[13] = state[9];
  14414. state[9] = state[5];
  14415. state[5] = state[1];
  14416. state[1] = t;
  14417. t = state[14];
  14418. u = state[10];
  14419. state[14] = state[6];
  14420. state[10] = state[2];
  14421. state[6] = t;
  14422. state[2] = u;
  14423. t = state[15];
  14424. u = state[11];
  14425. v = state[7];
  14426. state[15] = state[3];
  14427. state[11] = t;
  14428. state[7] = u;
  14429. state[3] = v;
  14430. // InvSubBytes
  14431. for (j = 0; j < 16; ++j) {
  14432. state[j] = inv_s[state[j]];
  14433. }
  14434. // AddRoundKey
  14435. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  14436. state[j] ^= key[k];
  14437. }
  14438. // InvMixColumns
  14439. for (j = 0; j < 16; j += 4) {
  14440. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  14441. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  14442. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  14443. (s3 >>> 24) ^ (s3 << 8));
  14444. state[j] = (t >>> 24) & 0xFF;
  14445. state[j + 1] = (t >> 16) & 0xFF;
  14446. state[j + 2] = (t >> 8) & 0xFF;
  14447. state[j + 3] = t & 0xFF;
  14448. }
  14449. }
  14450. // InvShiftRows
  14451. t = state[13];
  14452. state[13] = state[9];
  14453. state[9] = state[5];
  14454. state[5] = state[1];
  14455. state[1] = t;
  14456. t = state[14];
  14457. u = state[10];
  14458. state[14] = state[6];
  14459. state[10] = state[2];
  14460. state[6] = t;
  14461. state[2] = u;
  14462. t = state[15];
  14463. u = state[11];
  14464. v = state[7];
  14465. state[15] = state[3];
  14466. state[11] = t;
  14467. state[7] = u;
  14468. state[3] = v;
  14469. for (j = 0; j < 16; ++j) {
  14470. // InvSubBytes
  14471. state[j] = inv_s[state[j]];
  14472. // AddRoundKey
  14473. state[j] ^= key[j];
  14474. }
  14475. return state;
  14476. }
  14477. function encrypt256(input, key) {
  14478. var t, u, v, k;
  14479. var state = new Uint8Array(16);
  14480. state.set(input);
  14481. for (j = 0; j < 16; ++j) {
  14482. // AddRoundKey
  14483. state[j] ^= key[j];
  14484. }
  14485. for (i = 1; i < 14; i++) {
  14486. //SubBytes
  14487. for (j = 0; j < 16; ++j) {
  14488. state[j] = s[state[j]];
  14489. }
  14490. //ShiftRows
  14491. v = state[1];
  14492. state[1] = state[5];
  14493. state[5] = state[9];
  14494. state[9] = state[13];
  14495. state[13] = v;
  14496. v = state[2];
  14497. u = state[6];
  14498. state[2] = state[10];
  14499. state[6] = state[14];
  14500. state[10] = v;
  14501. state[14] = u;
  14502. v = state[3];
  14503. u = state[7];
  14504. t = state[11];
  14505. state[3] = state[15];
  14506. state[7] = v;
  14507. state[11] = u;
  14508. state[15] = t;
  14509. //MixColumns
  14510. for (var j = 0; j < 16; j += 4) {
  14511. var s0 = state[j + 0], s1 = state[j + 1];
  14512. var s2 = state[j + 2], s3 = state[j + 3];
  14513. t = s0 ^ s1 ^ s2 ^ s3;
  14514. state[j + 0] ^= t ^ mixCol[s0 ^ s1];
  14515. state[j + 1] ^= t ^ mixCol[s1 ^ s2];
  14516. state[j + 2] ^= t ^ mixCol[s2 ^ s3];
  14517. state[j + 3] ^= t ^ mixCol[s3 ^ s0];
  14518. }
  14519. //AddRoundKey
  14520. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  14521. state[j] ^= key[k];
  14522. }
  14523. }
  14524. //SubBytes
  14525. for (j = 0; j < 16; ++j) {
  14526. state[j] = s[state[j]];
  14527. }
  14528. //ShiftRows
  14529. v = state[1];
  14530. state[1] = state[5];
  14531. state[5] = state[9];
  14532. state[9] = state[13];
  14533. state[13] = v;
  14534. v = state[2];
  14535. u = state[6];
  14536. state[2] = state[10];
  14537. state[6] = state[14];
  14538. state[10] = v;
  14539. state[14] = u;
  14540. v = state[3];
  14541. u = state[7];
  14542. t = state[11];
  14543. state[3] = state[15];
  14544. state[7] = v;
  14545. state[11] = u;
  14546. state[15] = t;
  14547. //AddRoundKey
  14548. for (j = 0, k = 224; j < 16; ++j, ++k) {
  14549. state[j] ^= key[k];
  14550. }
  14551. return state;
  14552. }
  14553. function AES256Cipher(key) {
  14554. this.key = expandKey256(key);
  14555. this.buffer = new Uint8Array(16);
  14556. this.bufferPosition = 0;
  14557. }
  14558. function decryptBlock2(data, finalize) {
  14559. var i, j, ii, sourceLength = data.length,
  14560. buffer = this.buffer, bufferLength = this.bufferPosition,
  14561. result = [], iv = this.iv;
  14562. for (i = 0; i < sourceLength; ++i) {
  14563. buffer[bufferLength] = data[i];
  14564. ++bufferLength;
  14565. if (bufferLength < 16) {
  14566. continue;
  14567. }
  14568. // buffer is full, encrypting
  14569. var plain = decrypt256(buffer, this.key);
  14570. // xor-ing the IV vector to get plain text
  14571. for (j = 0; j < 16; ++j) {
  14572. plain[j] ^= iv[j];
  14573. }
  14574. iv = buffer;
  14575. result.push(plain);
  14576. buffer = new Uint8Array(16);
  14577. bufferLength = 0;
  14578. }
  14579. // saving incomplete buffer
  14580. this.buffer = buffer;
  14581. this.bufferLength = bufferLength;
  14582. this.iv = iv;
  14583. if (result.length === 0) {
  14584. return new Uint8Array([]);
  14585. }
  14586. // combining plain text blocks into one
  14587. var outputLength = 16 * result.length;
  14588. if (finalize) {
  14589. // undo a padding that is described in RFC 2898
  14590. var lastBlock = result[result.length - 1];
  14591. outputLength -= lastBlock[15];
  14592. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  14593. }
  14594. var output = new Uint8Array(outputLength);
  14595. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14596. output.set(result[i], j);
  14597. }
  14598. return output;
  14599. }
  14600. AES256Cipher.prototype = {
  14601. decryptBlock: function AES256Cipher_decryptBlock(data, finalize, iv) {
  14602. var i, sourceLength = data.length;
  14603. var buffer = this.buffer, bufferLength = this.bufferPosition;
  14604. // if not supplied an IV wait for IV values
  14605. // they are at the start of the stream
  14606. if (iv) {
  14607. this.iv = iv;
  14608. } else {
  14609. for (i = 0; bufferLength < 16 &&
  14610. i < sourceLength; ++i, ++bufferLength) {
  14611. buffer[bufferLength] = data[i];
  14612. }
  14613. if (bufferLength < 16) {
  14614. //need more data
  14615. this.bufferLength = bufferLength;
  14616. return new Uint8Array([]);
  14617. }
  14618. this.iv = buffer;
  14619. data = data.subarray(16);
  14620. }
  14621. this.buffer = new Uint8Array(16);
  14622. this.bufferLength = 0;
  14623. // starting decryption
  14624. this.decryptBlock = decryptBlock2;
  14625. return this.decryptBlock(data, finalize);
  14626. },
  14627. encrypt: function AES256Cipher_encrypt(data, iv) {
  14628. var i, j, ii, sourceLength = data.length,
  14629. buffer = this.buffer, bufferLength = this.bufferPosition,
  14630. result = [];
  14631. if (!iv) {
  14632. iv = new Uint8Array(16);
  14633. }
  14634. for (i = 0; i < sourceLength; ++i) {
  14635. buffer[bufferLength] = data[i];
  14636. ++bufferLength;
  14637. if (bufferLength < 16) {
  14638. continue;
  14639. }
  14640. for (j = 0; j < 16; ++j) {
  14641. buffer[j] ^= iv[j];
  14642. }
  14643. // buffer is full, encrypting
  14644. var cipher = encrypt256(buffer, this.key);
  14645. this.iv = cipher;
  14646. result.push(cipher);
  14647. buffer = new Uint8Array(16);
  14648. bufferLength = 0;
  14649. }
  14650. // saving incomplete buffer
  14651. this.buffer = buffer;
  14652. this.bufferLength = bufferLength;
  14653. this.iv = iv;
  14654. if (result.length === 0) {
  14655. return new Uint8Array([]);
  14656. }
  14657. // combining plain text blocks into one
  14658. var outputLength = 16 * result.length;
  14659. var output = new Uint8Array(outputLength);
  14660. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14661. output.set(result[i], j);
  14662. }
  14663. return output;
  14664. }
  14665. };
  14666. return AES256Cipher;
  14667. })();
  14668. var PDF17 = (function PDF17Closure() {
  14669. function compareByteArrays(array1, array2) {
  14670. if (array1.length !== array2.length) {
  14671. return false;
  14672. }
  14673. for (var i = 0; i < array1.length; i++) {
  14674. if (array1[i] !== array2[i]) {
  14675. return false;
  14676. }
  14677. }
  14678. return true;
  14679. }
  14680. function PDF17() {
  14681. }
  14682. PDF17.prototype = {
  14683. checkOwnerPassword: function PDF17_checkOwnerPassword(password,
  14684. ownerValidationSalt,
  14685. userBytes,
  14686. ownerPassword) {
  14687. var hashData = new Uint8Array(password.length + 56);
  14688. hashData.set(password, 0);
  14689. hashData.set(ownerValidationSalt, password.length);
  14690. hashData.set(userBytes, password.length + ownerValidationSalt.length);
  14691. var result = calculateSHA256(hashData, 0, hashData.length);
  14692. return compareByteArrays(result, ownerPassword);
  14693. },
  14694. checkUserPassword: function PDF17_checkUserPassword(password,
  14695. userValidationSalt,
  14696. userPassword) {
  14697. var hashData = new Uint8Array(password.length + 8);
  14698. hashData.set(password, 0);
  14699. hashData.set(userValidationSalt, password.length);
  14700. var result = calculateSHA256(hashData, 0, hashData.length);
  14701. return compareByteArrays(result, userPassword);
  14702. },
  14703. getOwnerKey: function PDF17_getOwnerKey(password, ownerKeySalt, userBytes,
  14704. ownerEncryption) {
  14705. var hashData = new Uint8Array(password.length + 56);
  14706. hashData.set(password, 0);
  14707. hashData.set(ownerKeySalt, password.length);
  14708. hashData.set(userBytes, password.length + ownerKeySalt.length);
  14709. var key = calculateSHA256(hashData, 0, hashData.length);
  14710. var cipher = new AES256Cipher(key);
  14711. return cipher.decryptBlock(ownerEncryption,
  14712. false,
  14713. new Uint8Array(16));
  14714. },
  14715. getUserKey: function PDF17_getUserKey(password, userKeySalt,
  14716. userEncryption) {
  14717. var hashData = new Uint8Array(password.length + 8);
  14718. hashData.set(password, 0);
  14719. hashData.set(userKeySalt, password.length);
  14720. //key is the decryption key for the UE string
  14721. var key = calculateSHA256(hashData, 0, hashData.length);
  14722. var cipher = new AES256Cipher(key);
  14723. return cipher.decryptBlock(userEncryption,
  14724. false,
  14725. new Uint8Array(16));
  14726. }
  14727. };
  14728. return PDF17;
  14729. })();
  14730. var PDF20 = (function PDF20Closure() {
  14731. function concatArrays(array1, array2) {
  14732. var t = new Uint8Array(array1.length + array2.length);
  14733. t.set(array1, 0);
  14734. t.set(array2, array1.length);
  14735. return t;
  14736. }
  14737. function calculatePDF20Hash(password, input, userBytes) {
  14738. //This refers to Algorithm 2.B as defined in ISO 32000-2
  14739. var k = calculateSHA256(input, 0, input.length).subarray(0, 32);
  14740. var e = [0];
  14741. var i = 0;
  14742. while (i < 64 || e[e.length - 1] > i - 32) {
  14743. var arrayLength = password.length + k.length + userBytes.length;
  14744. var k1 = new Uint8Array(arrayLength * 64);
  14745. var array = concatArrays(password, k);
  14746. array = concatArrays(array, userBytes);
  14747. for (var j = 0, pos = 0; j < 64; j++, pos += arrayLength) {
  14748. k1.set(array, pos);
  14749. }
  14750. //AES128 CBC NO PADDING with
  14751. //first 16 bytes of k as the key and the second 16 as the iv.
  14752. var cipher = new AES128Cipher(k.subarray(0, 16));
  14753. e = cipher.encrypt(k1, k.subarray(16, 32));
  14754. //Now we have to take the first 16 bytes of an unsigned
  14755. //big endian integer... and compute the remainder
  14756. //modulo 3.... That is a fairly large number and
  14757. //JavaScript isn't going to handle that well...
  14758. //So we're using a trick that allows us to perform
  14759. //modulo math byte by byte
  14760. var remainder = 0;
  14761. for (var z = 0; z < 16; z++) {
  14762. remainder *= (256 % 3);
  14763. remainder %= 3;
  14764. remainder += ((e[z] >>> 0) % 3);
  14765. remainder %= 3;
  14766. }
  14767. if (remainder === 0) {
  14768. k = calculateSHA256(e, 0, e.length);
  14769. }
  14770. else if (remainder === 1) {
  14771. k = calculateSHA384(e, 0, e.length);
  14772. }
  14773. else if (remainder === 2) {
  14774. k = calculateSHA512(e, 0, e.length);
  14775. }
  14776. i++;
  14777. }
  14778. return k.subarray(0, 32);
  14779. }
  14780. function PDF20() {
  14781. }
  14782. function compareByteArrays(array1, array2) {
  14783. if (array1.length !== array2.length) {
  14784. return false;
  14785. }
  14786. for (var i = 0; i < array1.length; i++) {
  14787. if (array1[i] !== array2[i]) {
  14788. return false;
  14789. }
  14790. }
  14791. return true;
  14792. }
  14793. PDF20.prototype = {
  14794. hash: function PDF20_hash(password, concatBytes, userBytes) {
  14795. return calculatePDF20Hash(password, concatBytes, userBytes);
  14796. },
  14797. checkOwnerPassword: function PDF20_checkOwnerPassword(password,
  14798. ownerValidationSalt,
  14799. userBytes,
  14800. ownerPassword) {
  14801. var hashData = new Uint8Array(password.length + 56);
  14802. hashData.set(password, 0);
  14803. hashData.set(ownerValidationSalt, password.length);
  14804. hashData.set(userBytes, password.length + ownerValidationSalt.length);
  14805. var result = calculatePDF20Hash(password, hashData, userBytes);
  14806. return compareByteArrays(result, ownerPassword);
  14807. },
  14808. checkUserPassword: function PDF20_checkUserPassword(password,
  14809. userValidationSalt,
  14810. userPassword) {
  14811. var hashData = new Uint8Array(password.length + 8);
  14812. hashData.set(password, 0);
  14813. hashData.set(userValidationSalt, password.length);
  14814. var result = calculatePDF20Hash(password, hashData, []);
  14815. return compareByteArrays(result, userPassword);
  14816. },
  14817. getOwnerKey: function PDF20_getOwnerKey(password, ownerKeySalt, userBytes,
  14818. ownerEncryption) {
  14819. var hashData = new Uint8Array(password.length + 56);
  14820. hashData.set(password, 0);
  14821. hashData.set(ownerKeySalt, password.length);
  14822. hashData.set(userBytes, password.length + ownerKeySalt.length);
  14823. var key = calculatePDF20Hash(password, hashData, userBytes);
  14824. var cipher = new AES256Cipher(key);
  14825. return cipher.decryptBlock(ownerEncryption,
  14826. false,
  14827. new Uint8Array(16));
  14828. },
  14829. getUserKey: function PDF20_getUserKey(password, userKeySalt,
  14830. userEncryption) {
  14831. var hashData = new Uint8Array(password.length + 8);
  14832. hashData.set(password, 0);
  14833. hashData.set(userKeySalt, password.length);
  14834. //key is the decryption key for the UE string
  14835. var key = calculatePDF20Hash(password, hashData, []);
  14836. var cipher = new AES256Cipher(key);
  14837. return cipher.decryptBlock(userEncryption,
  14838. false,
  14839. new Uint8Array(16));
  14840. }
  14841. };
  14842. return PDF20;
  14843. })();
  14844. var CipherTransform = (function CipherTransformClosure() {
  14845. function CipherTransform(stringCipherConstructor, streamCipherConstructor) {
  14846. this.stringCipherConstructor = stringCipherConstructor;
  14847. this.streamCipherConstructor = streamCipherConstructor;
  14848. }
  14849. CipherTransform.prototype = {
  14850. createStream: function CipherTransform_createStream(stream, length) {
  14851. var cipher = new this.streamCipherConstructor();
  14852. return new DecryptStream(stream, length,
  14853. function cipherTransformDecryptStream(data, finalize) {
  14854. return cipher.decryptBlock(data, finalize);
  14855. }
  14856. );
  14857. },
  14858. decryptString: function CipherTransform_decryptString(s) {
  14859. var cipher = new this.stringCipherConstructor();
  14860. var data = stringToBytes(s);
  14861. data = cipher.decryptBlock(data, true);
  14862. return bytesToString(data);
  14863. }
  14864. };
  14865. return CipherTransform;
  14866. })();
  14867. var CipherTransformFactory = (function CipherTransformFactoryClosure() {
  14868. var defaultPasswordBytes = new Uint8Array([
  14869. 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
  14870. 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
  14871. 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
  14872. 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
  14873. function createEncryptionKey20(revision, password, ownerPassword,
  14874. ownerValidationSalt, ownerKeySalt, uBytes,
  14875. userPassword, userValidationSalt, userKeySalt,
  14876. ownerEncryption, userEncryption, perms) {
  14877. if (password) {
  14878. var passwordLength = Math.min(127, password.length);
  14879. password = password.subarray(0, passwordLength);
  14880. } else {
  14881. password = [];
  14882. }
  14883. var pdfAlgorithm;
  14884. if (revision === 6) {
  14885. pdfAlgorithm = new PDF20();
  14886. } else {
  14887. pdfAlgorithm = new PDF17();
  14888. }
  14889. if (pdfAlgorithm) {
  14890. if (pdfAlgorithm.checkUserPassword(password, userValidationSalt,
  14891. userPassword)) {
  14892. return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption);
  14893. } else if (pdfAlgorithm.checkOwnerPassword(password, ownerValidationSalt,
  14894. uBytes,
  14895. ownerPassword)) {
  14896. return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes,
  14897. ownerEncryption);
  14898. }
  14899. }
  14900. return null;
  14901. }
  14902. function prepareKeyData(fileId, password, ownerPassword, userPassword,
  14903. flags, revision, keyLength, encryptMetadata) {
  14904. var hashDataSize = 40 + ownerPassword.length + fileId.length;
  14905. var hashData = new Uint8Array(hashDataSize), i = 0, j, n;
  14906. if (password) {
  14907. n = Math.min(32, password.length);
  14908. for (; i < n; ++i) {
  14909. hashData[i] = password[i];
  14910. }
  14911. }
  14912. j = 0;
  14913. while (i < 32) {
  14914. hashData[i++] = defaultPasswordBytes[j++];
  14915. }
  14916. // as now the padded password in the hashData[0..i]
  14917. for (j = 0, n = ownerPassword.length; j < n; ++j) {
  14918. hashData[i++] = ownerPassword[j];
  14919. }
  14920. hashData[i++] = flags & 0xFF;
  14921. hashData[i++] = (flags >> 8) & 0xFF;
  14922. hashData[i++] = (flags >> 16) & 0xFF;
  14923. hashData[i++] = (flags >>> 24) & 0xFF;
  14924. for (j = 0, n = fileId.length; j < n; ++j) {
  14925. hashData[i++] = fileId[j];
  14926. }
  14927. if (revision >= 4 && !encryptMetadata) {
  14928. hashData[i++] = 0xFF;
  14929. hashData[i++] = 0xFF;
  14930. hashData[i++] = 0xFF;
  14931. hashData[i++] = 0xFF;
  14932. }
  14933. var hash = calculateMD5(hashData, 0, i);
  14934. var keyLengthInBytes = keyLength >> 3;
  14935. if (revision >= 3) {
  14936. for (j = 0; j < 50; ++j) {
  14937. hash = calculateMD5(hash, 0, keyLengthInBytes);
  14938. }
  14939. }
  14940. var encryptionKey = hash.subarray(0, keyLengthInBytes);
  14941. var cipher, checkData;
  14942. if (revision >= 3) {
  14943. for (i = 0; i < 32; ++i) {
  14944. hashData[i] = defaultPasswordBytes[i];
  14945. }
  14946. for (j = 0, n = fileId.length; j < n; ++j) {
  14947. hashData[i++] = fileId[j];
  14948. }
  14949. cipher = new ARCFourCipher(encryptionKey);
  14950. checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i));
  14951. n = encryptionKey.length;
  14952. var derivedKey = new Uint8Array(n), k;
  14953. for (j = 1; j <= 19; ++j) {
  14954. for (k = 0; k < n; ++k) {
  14955. derivedKey[k] = encryptionKey[k] ^ j;
  14956. }
  14957. cipher = new ARCFourCipher(derivedKey);
  14958. checkData = cipher.encryptBlock(checkData);
  14959. }
  14960. for (j = 0, n = checkData.length; j < n; ++j) {
  14961. if (userPassword[j] !== checkData[j]) {
  14962. return null;
  14963. }
  14964. }
  14965. } else {
  14966. cipher = new ARCFourCipher(encryptionKey);
  14967. checkData = cipher.encryptBlock(defaultPasswordBytes);
  14968. for (j = 0, n = checkData.length; j < n; ++j) {
  14969. if (userPassword[j] !== checkData[j]) {
  14970. return null;
  14971. }
  14972. }
  14973. }
  14974. return encryptionKey;
  14975. }
  14976. function decodeUserPassword(password, ownerPassword, revision, keyLength) {
  14977. var hashData = new Uint8Array(32), i = 0, j, n;
  14978. n = Math.min(32, password.length);
  14979. for (; i < n; ++i) {
  14980. hashData[i] = password[i];
  14981. }
  14982. j = 0;
  14983. while (i < 32) {
  14984. hashData[i++] = defaultPasswordBytes[j++];
  14985. }
  14986. var hash = calculateMD5(hashData, 0, i);
  14987. var keyLengthInBytes = keyLength >> 3;
  14988. if (revision >= 3) {
  14989. for (j = 0; j < 50; ++j) {
  14990. hash = calculateMD5(hash, 0, hash.length);
  14991. }
  14992. }
  14993. var cipher, userPassword;
  14994. if (revision >= 3) {
  14995. userPassword = ownerPassword;
  14996. var derivedKey = new Uint8Array(keyLengthInBytes), k;
  14997. for (j = 19; j >= 0; j--) {
  14998. for (k = 0; k < keyLengthInBytes; ++k) {
  14999. derivedKey[k] = hash[k] ^ j;
  15000. }
  15001. cipher = new ARCFourCipher(derivedKey);
  15002. userPassword = cipher.encryptBlock(userPassword);
  15003. }
  15004. } else {
  15005. cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes));
  15006. userPassword = cipher.encryptBlock(ownerPassword);
  15007. }
  15008. return userPassword;
  15009. }
  15010. var identityName = Name.get('Identity');
  15011. function CipherTransformFactory(dict, fileId, password) {
  15012. var filter = dict.get('Filter');
  15013. if (!isName(filter) || filter.name !== 'Standard') {
  15014. error('unknown encryption method');
  15015. }
  15016. this.dict = dict;
  15017. var algorithm = dict.get('V');
  15018. if (!isInt(algorithm) ||
  15019. (algorithm !== 1 && algorithm !== 2 && algorithm !== 4 &&
  15020. algorithm !== 5)) {
  15021. error('unsupported encryption algorithm');
  15022. }
  15023. this.algorithm = algorithm;
  15024. var keyLength = dict.get('Length') || 40;
  15025. if (!isInt(keyLength) ||
  15026. keyLength < 40 || (keyLength % 8) !== 0) {
  15027. error('invalid key length');
  15028. }
  15029. // prepare keys
  15030. var ownerPassword = stringToBytes(dict.get('O')).subarray(0, 32);
  15031. var userPassword = stringToBytes(dict.get('U')).subarray(0, 32);
  15032. var flags = dict.get('P');
  15033. var revision = dict.get('R');
  15034. // meaningful when V is 4 or 5
  15035. var encryptMetadata = ((algorithm === 4 || algorithm === 5) &&
  15036. dict.get('EncryptMetadata') !== false);
  15037. this.encryptMetadata = encryptMetadata;
  15038. var fileIdBytes = stringToBytes(fileId);
  15039. var passwordBytes;
  15040. if (password) {
  15041. passwordBytes = stringToBytes(password);
  15042. }
  15043. var encryptionKey;
  15044. if (algorithm !== 5) {
  15045. encryptionKey = prepareKeyData(fileIdBytes, passwordBytes,
  15046. ownerPassword, userPassword, flags,
  15047. revision, keyLength, encryptMetadata);
  15048. }
  15049. else {
  15050. var ownerValidationSalt = stringToBytes(dict.get('O')).subarray(32, 40);
  15051. var ownerKeySalt = stringToBytes(dict.get('O')).subarray(40, 48);
  15052. var uBytes = stringToBytes(dict.get('U')).subarray(0, 48);
  15053. var userValidationSalt = stringToBytes(dict.get('U')).subarray(32, 40);
  15054. var userKeySalt = stringToBytes(dict.get('U')).subarray(40, 48);
  15055. var ownerEncryption = stringToBytes(dict.get('OE'));
  15056. var userEncryption = stringToBytes(dict.get('UE'));
  15057. var perms = stringToBytes(dict.get('Perms'));
  15058. encryptionKey =
  15059. createEncryptionKey20(revision, passwordBytes,
  15060. ownerPassword, ownerValidationSalt,
  15061. ownerKeySalt, uBytes,
  15062. userPassword, userValidationSalt,
  15063. userKeySalt, ownerEncryption,
  15064. userEncryption, perms);
  15065. }
  15066. if (!encryptionKey && !password) {
  15067. throw new PasswordException('No password given',
  15068. PasswordResponses.NEED_PASSWORD);
  15069. } else if (!encryptionKey && password) {
  15070. // Attempting use the password as an owner password
  15071. var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword,
  15072. revision, keyLength);
  15073. encryptionKey = prepareKeyData(fileIdBytes, decodedPassword,
  15074. ownerPassword, userPassword, flags,
  15075. revision, keyLength, encryptMetadata);
  15076. }
  15077. if (!encryptionKey) {
  15078. throw new PasswordException('Incorrect Password',
  15079. PasswordResponses.INCORRECT_PASSWORD);
  15080. }
  15081. this.encryptionKey = encryptionKey;
  15082. if (algorithm >= 4) {
  15083. this.cf = dict.get('CF');
  15084. this.stmf = dict.get('StmF') || identityName;
  15085. this.strf = dict.get('StrF') || identityName;
  15086. this.eff = dict.get('EFF') || this.strf;
  15087. }
  15088. }
  15089. function buildObjectKey(num, gen, encryptionKey, isAes) {
  15090. var key = new Uint8Array(encryptionKey.length + 9), i, n;
  15091. for (i = 0, n = encryptionKey.length; i < n; ++i) {
  15092. key[i] = encryptionKey[i];
  15093. }
  15094. key[i++] = num & 0xFF;
  15095. key[i++] = (num >> 8) & 0xFF;
  15096. key[i++] = (num >> 16) & 0xFF;
  15097. key[i++] = gen & 0xFF;
  15098. key[i++] = (gen >> 8) & 0xFF;
  15099. if (isAes) {
  15100. key[i++] = 0x73;
  15101. key[i++] = 0x41;
  15102. key[i++] = 0x6C;
  15103. key[i++] = 0x54;
  15104. }
  15105. var hash = calculateMD5(key, 0, i);
  15106. return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
  15107. }
  15108. function buildCipherConstructor(cf, name, num, gen, key) {
  15109. var cryptFilter = cf.get(name.name);
  15110. var cfm;
  15111. if (cryptFilter !== null && cryptFilter !== undefined) {
  15112. cfm = cryptFilter.get('CFM');
  15113. }
  15114. if (!cfm || cfm.name === 'None') {
  15115. return function cipherTransformFactoryBuildCipherConstructorNone() {
  15116. return new NullCipher();
  15117. };
  15118. }
  15119. if ('V2' === cfm.name) {
  15120. return function cipherTransformFactoryBuildCipherConstructorV2() {
  15121. return new ARCFourCipher(buildObjectKey(num, gen, key, false));
  15122. };
  15123. }
  15124. if ('AESV2' === cfm.name) {
  15125. return function cipherTransformFactoryBuildCipherConstructorAESV2() {
  15126. return new AES128Cipher(buildObjectKey(num, gen, key, true));
  15127. };
  15128. }
  15129. if ('AESV3' === cfm.name) {
  15130. return function cipherTransformFactoryBuildCipherConstructorAESV3() {
  15131. return new AES256Cipher(key);
  15132. };
  15133. }
  15134. error('Unknown crypto method');
  15135. }
  15136. CipherTransformFactory.prototype = {
  15137. createCipherTransform:
  15138. function CipherTransformFactory_createCipherTransform(num, gen) {
  15139. if (this.algorithm === 4 || this.algorithm === 5) {
  15140. return new CipherTransform(
  15141. buildCipherConstructor(this.cf, this.stmf,
  15142. num, gen, this.encryptionKey),
  15143. buildCipherConstructor(this.cf, this.strf,
  15144. num, gen, this.encryptionKey));
  15145. }
  15146. // algorithms 1 and 2
  15147. var key = buildObjectKey(num, gen, this.encryptionKey, false);
  15148. var cipherConstructor = function buildCipherCipherConstructor() {
  15149. return new ARCFourCipher(key);
  15150. };
  15151. return new CipherTransform(cipherConstructor, cipherConstructor);
  15152. }
  15153. };
  15154. return CipherTransformFactory;
  15155. })();
  15156. var PatternType = {
  15157. FUNCTION_BASED: 1,
  15158. AXIAL: 2,
  15159. RADIAL: 3,
  15160. FREE_FORM_MESH: 4,
  15161. LATTICE_FORM_MESH: 5,
  15162. COONS_PATCH_MESH: 6,
  15163. TENSOR_PATCH_MESH: 7
  15164. };
  15165. var Pattern = (function PatternClosure() {
  15166. // Constructor should define this.getPattern
  15167. function Pattern() {
  15168. error('should not call Pattern constructor');
  15169. }
  15170. Pattern.prototype = {
  15171. // Input: current Canvas context
  15172. // Output: the appropriate fillStyle or strokeStyle
  15173. getPattern: function Pattern_getPattern(ctx) {
  15174. error('Should not call Pattern.getStyle: ' + ctx);
  15175. }
  15176. };
  15177. Pattern.parseShading = function Pattern_parseShading(shading, matrix, xref,
  15178. res) {
  15179. var dict = isStream(shading) ? shading.dict : shading;
  15180. var type = dict.get('ShadingType');
  15181. switch (type) {
  15182. case PatternType.AXIAL:
  15183. case PatternType.RADIAL:
  15184. // Both radial and axial shadings are handled by RadialAxial shading.
  15185. return new Shadings.RadialAxial(dict, matrix, xref, res);
  15186. case PatternType.FREE_FORM_MESH:
  15187. case PatternType.LATTICE_FORM_MESH:
  15188. case PatternType.COONS_PATCH_MESH:
  15189. case PatternType.TENSOR_PATCH_MESH:
  15190. return new Shadings.Mesh(shading, matrix, xref, res);
  15191. default:
  15192. UnsupportedManager.notify(UNSUPPORTED_FEATURES.shadingPattern);
  15193. return new Shadings.Dummy();
  15194. }
  15195. };
  15196. return Pattern;
  15197. })();
  15198. var Shadings = {};
  15199. // A small number to offset the first/last color stops so we can insert ones to
  15200. // support extend. Number.MIN_VALUE appears to be too small and breaks the
  15201. // extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
  15202. // internally so we have to go bigger.
  15203. Shadings.SMALL_NUMBER = 1e-2;
  15204. // Radial and axial shading have very similar implementations
  15205. // If needed, the implementations can be broken into two classes
  15206. Shadings.RadialAxial = (function RadialAxialClosure() {
  15207. function RadialAxial(dict, matrix, xref, res) {
  15208. this.matrix = matrix;
  15209. this.coordsArr = dict.get('Coords');
  15210. this.shadingType = dict.get('ShadingType');
  15211. this.type = 'Pattern';
  15212. var cs = dict.get('ColorSpace', 'CS');
  15213. cs = ColorSpace.parse(cs, xref, res);
  15214. this.cs = cs;
  15215. var t0 = 0.0, t1 = 1.0;
  15216. if (dict.has('Domain')) {
  15217. var domainArr = dict.get('Domain');
  15218. t0 = domainArr[0];
  15219. t1 = domainArr[1];
  15220. }
  15221. var extendStart = false, extendEnd = false;
  15222. if (dict.has('Extend')) {
  15223. var extendArr = dict.get('Extend');
  15224. extendStart = extendArr[0];
  15225. extendEnd = extendArr[1];
  15226. }
  15227. if (this.shadingType === PatternType.RADIAL &&
  15228. (!extendStart || !extendEnd)) {
  15229. // Radial gradient only currently works if either circle is fully within
  15230. // the other circle.
  15231. var x1 = this.coordsArr[0];
  15232. var y1 = this.coordsArr[1];
  15233. var r1 = this.coordsArr[2];
  15234. var x2 = this.coordsArr[3];
  15235. var y2 = this.coordsArr[4];
  15236. var r2 = this.coordsArr[5];
  15237. var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  15238. if (r1 <= r2 + distance &&
  15239. r2 <= r1 + distance) {
  15240. warn('Unsupported radial gradient.');
  15241. }
  15242. }
  15243. this.extendStart = extendStart;
  15244. this.extendEnd = extendEnd;
  15245. var fnObj = dict.get('Function');
  15246. var fn;
  15247. if (isArray(fnObj)) {
  15248. var fnArray = [];
  15249. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  15250. var obj = xref.fetchIfRef(fnObj[j]);
  15251. if (!isPDFFunction(obj)) {
  15252. error('Invalid function');
  15253. }
  15254. fnArray.push(PDFFunction.parse(xref, obj));
  15255. }
  15256. fn = function radialAxialColorFunction(arg) {
  15257. var out = [];
  15258. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  15259. out.push(fnArray[i](arg)[0]);
  15260. }
  15261. return out;
  15262. };
  15263. } else {
  15264. if (!isPDFFunction(fnObj)) {
  15265. error('Invalid function');
  15266. }
  15267. fn = PDFFunction.parse(xref, fnObj);
  15268. }
  15269. // 10 samples seems good enough for now, but probably won't work
  15270. // if there are sharp color changes. Ideally, we would implement
  15271. // the spec faithfully and add lossless optimizations.
  15272. var diff = t1 - t0;
  15273. var step = diff / 10;
  15274. var colorStops = this.colorStops = [];
  15275. // Protect against bad domains so we don't end up in an infinte loop below.
  15276. if (t0 >= t1 || step <= 0) {
  15277. // Acrobat doesn't seem to handle these cases so we'll ignore for
  15278. // now.
  15279. info('Bad shading domain.');
  15280. return;
  15281. }
  15282. var rgbColor;
  15283. for (var i = t0; i <= t1; i += step) {
  15284. rgbColor = cs.getRgb(fn([i]), 0);
  15285. var cssColor = Util.makeCssRgb(rgbColor);
  15286. colorStops.push([(i - t0) / diff, cssColor]);
  15287. }
  15288. var background = 'transparent';
  15289. if (dict.has('Background')) {
  15290. rgbColor = cs.getRgb(dict.get('Background'), 0);
  15291. background = Util.makeCssRgb(rgbColor);
  15292. }
  15293. if (!extendStart) {
  15294. // Insert a color stop at the front and offset the first real color stop
  15295. // so it doesn't conflict with the one we insert.
  15296. colorStops.unshift([0, background]);
  15297. colorStops[1][0] += Shadings.SMALL_NUMBER;
  15298. }
  15299. if (!extendEnd) {
  15300. // Same idea as above in extendStart but for the end.
  15301. colorStops[colorStops.length - 1][0] -= Shadings.SMALL_NUMBER;
  15302. colorStops.push([1, background]);
  15303. }
  15304. this.colorStops = colorStops;
  15305. }
  15306. RadialAxial.prototype = {
  15307. getIR: function RadialAxial_getIR() {
  15308. var coordsArr = this.coordsArr;
  15309. var shadingType = this.shadingType;
  15310. var type, p0, p1, r0, r1;
  15311. if (shadingType == PatternType.AXIAL) {
  15312. p0 = [coordsArr[0], coordsArr[1]];
  15313. p1 = [coordsArr[2], coordsArr[3]];
  15314. r0 = null;
  15315. r1 = null;
  15316. type = 'axial';
  15317. } else if (shadingType == PatternType.RADIAL) {
  15318. p0 = [coordsArr[0], coordsArr[1]];
  15319. p1 = [coordsArr[3], coordsArr[4]];
  15320. r0 = coordsArr[2];
  15321. r1 = coordsArr[5];
  15322. type = 'radial';
  15323. } else {
  15324. error('getPattern type unknown: ' + shadingType);
  15325. }
  15326. var matrix = this.matrix;
  15327. if (matrix) {
  15328. p0 = Util.applyTransform(p0, matrix);
  15329. p1 = Util.applyTransform(p1, matrix);
  15330. }
  15331. return ['RadialAxial', type, this.colorStops, p0, p1, r0, r1];
  15332. }
  15333. };
  15334. return RadialAxial;
  15335. })();
  15336. // All mesh shading. For now, they will be presented as set of the triangles
  15337. // to be drawn on the canvas and rgb color for each vertex.
  15338. Shadings.Mesh = (function MeshClosure() {
  15339. function MeshStreamReader(stream, context) {
  15340. this.stream = stream;
  15341. this.context = context;
  15342. this.buffer = 0;
  15343. this.bufferLength = 0;
  15344. }
  15345. MeshStreamReader.prototype = {
  15346. get hasData() {
  15347. if (this.stream.end) {
  15348. return this.stream.pos < this.stream.end;
  15349. }
  15350. if (this.bufferLength > 0) {
  15351. return true;
  15352. }
  15353. var nextByte = this.stream.getByte();
  15354. if (nextByte < 0) {
  15355. return false;
  15356. }
  15357. this.buffer = nextByte;
  15358. this.bufferLength = 8;
  15359. return true;
  15360. },
  15361. readBits: function MeshStreamReader_readBits(n) {
  15362. var buffer = this.buffer;
  15363. var bufferLength = this.bufferLength;
  15364. if (n === 32) {
  15365. if (bufferLength === 0) {
  15366. return ((this.stream.getByte() << 24) |
  15367. (this.stream.getByte() << 16) | (this.stream.getByte() << 8) |
  15368. this.stream.getByte()) >>> 0;
  15369. }
  15370. buffer = (buffer << 24) | (this.stream.getByte() << 16) |
  15371. (this.stream.getByte() << 8) | this.stream.getByte();
  15372. var nextByte = this.stream.getByte();
  15373. this.buffer = nextByte & ((1 << bufferLength) - 1);
  15374. return ((buffer << (8 - bufferLength)) |
  15375. ((nextByte & 0xFF) >> bufferLength)) >>> 0;
  15376. }
  15377. if (n === 8 && bufferLength === 0) {
  15378. return this.stream.getByte();
  15379. }
  15380. while (bufferLength < n) {
  15381. buffer = (buffer << 8) | this.stream.getByte();
  15382. bufferLength += 8;
  15383. }
  15384. bufferLength -= n;
  15385. this.bufferLength = bufferLength;
  15386. this.buffer = buffer & ((1 << bufferLength) - 1);
  15387. return buffer >> bufferLength;
  15388. },
  15389. align: function MeshStreamReader_align() {
  15390. this.buffer = 0;
  15391. this.bufferLength = 0;
  15392. },
  15393. readFlag: function MeshStreamReader_readFlag() {
  15394. return this.readBits(this.context.bitsPerFlag);
  15395. },
  15396. readCoordinate: function MeshStreamReader_readCoordinate() {
  15397. var bitsPerCoordinate = this.context.bitsPerCoordinate;
  15398. var xi = this.readBits(bitsPerCoordinate);
  15399. var yi = this.readBits(bitsPerCoordinate);
  15400. var decode = this.context.decode;
  15401. var scale = bitsPerCoordinate < 32 ? 1 / ((1 << bitsPerCoordinate) - 1) :
  15402. 2.3283064365386963e-10; // 2 ^ -32
  15403. return [
  15404. xi * scale * (decode[1] - decode[0]) + decode[0],
  15405. yi * scale * (decode[3] - decode[2]) + decode[2]
  15406. ];
  15407. },
  15408. readComponents: function MeshStreamReader_readComponents() {
  15409. var numComps = this.context.numComps;
  15410. var bitsPerComponent = this.context.bitsPerComponent;
  15411. var scale = bitsPerComponent < 32 ? 1 / ((1 << bitsPerComponent) - 1) :
  15412. 2.3283064365386963e-10; // 2 ^ -32
  15413. var decode = this.context.decode;
  15414. var components = [];
  15415. for (var i = 0, j = 4; i < numComps; i++, j += 2) {
  15416. var ci = this.readBits(bitsPerComponent);
  15417. components.push(ci * scale * (decode[j + 1] - decode[j]) + decode[j]);
  15418. }
  15419. if (this.context.colorFn) {
  15420. components = this.context.colorFn(components);
  15421. }
  15422. return this.context.colorSpace.getRgb(components, 0);
  15423. }
  15424. };
  15425. function decodeType4Shading(mesh, reader) {
  15426. var coords = mesh.coords;
  15427. var colors = mesh.colors;
  15428. var operators = [];
  15429. var ps = []; // not maintaining cs since that will match ps
  15430. var verticesLeft = 0; // assuming we have all data to start a new triangle
  15431. while (reader.hasData) {
  15432. var f = reader.readFlag();
  15433. var coord = reader.readCoordinate();
  15434. var color = reader.readComponents();
  15435. if (verticesLeft === 0) { // ignoring flags if we started a triangle
  15436. assert(0 <= f && f <= 2, 'Unknown type4 flag');
  15437. switch (f) {
  15438. case 0:
  15439. verticesLeft = 3;
  15440. break;
  15441. case 1:
  15442. ps.push(ps[ps.length - 2], ps[ps.length - 1]);
  15443. verticesLeft = 1;
  15444. break;
  15445. case 2:
  15446. ps.push(ps[ps.length - 3], ps[ps.length - 1]);
  15447. verticesLeft = 1;
  15448. break;
  15449. }
  15450. operators.push(f);
  15451. }
  15452. ps.push(coords.length);
  15453. coords.push(coord);
  15454. colors.push(color);
  15455. verticesLeft--;
  15456. reader.align();
  15457. }
  15458. var psPacked = new Int32Array(ps);
  15459. mesh.figures.push({
  15460. type: 'triangles',
  15461. coords: psPacked,
  15462. colors: psPacked
  15463. });
  15464. }
  15465. function decodeType5Shading(mesh, reader, verticesPerRow) {
  15466. var coords = mesh.coords;
  15467. var colors = mesh.colors;
  15468. var ps = []; // not maintaining cs since that will match ps
  15469. while (reader.hasData) {
  15470. var coord = reader.readCoordinate();
  15471. var color = reader.readComponents();
  15472. ps.push(coords.length);
  15473. coords.push(coord);
  15474. colors.push(color);
  15475. }
  15476. var psPacked = new Int32Array(ps);
  15477. mesh.figures.push({
  15478. type: 'lattice',
  15479. coords: psPacked,
  15480. colors: psPacked,
  15481. verticesPerRow: verticesPerRow
  15482. });
  15483. }
  15484. var MIN_SPLIT_PATCH_CHUNKS_AMOUNT = 3;
  15485. var MAX_SPLIT_PATCH_CHUNKS_AMOUNT = 20;
  15486. var TRIANGLE_DENSITY = 20; // count of triangles per entire mesh bounds
  15487. var getB = (function getBClosure() {
  15488. function buildB(count) {
  15489. var lut = [];
  15490. for (var i = 0; i <= count; i++) {
  15491. var t = i / count, t_ = 1 - t;
  15492. lut.push(new Float32Array([t_ * t_ * t_, 3 * t * t_ * t_,
  15493. 3 * t * t * t_, t * t * t]));
  15494. }
  15495. return lut;
  15496. }
  15497. var cache = [];
  15498. return function getB(count) {
  15499. if (!cache[count]) {
  15500. cache[count] = buildB(count);
  15501. }
  15502. return cache[count];
  15503. };
  15504. })();
  15505. function buildFigureFromPatch(mesh, index) {
  15506. var figure = mesh.figures[index];
  15507. assert(figure.type === 'patch', 'Unexpected patch mesh figure');
  15508. var coords = mesh.coords, colors = mesh.colors;
  15509. var pi = figure.coords;
  15510. var ci = figure.colors;
  15511. var figureMinX = Math.min(coords[pi[0]][0], coords[pi[3]][0],
  15512. coords[pi[12]][0], coords[pi[15]][0]);
  15513. var figureMinY = Math.min(coords[pi[0]][1], coords[pi[3]][1],
  15514. coords[pi[12]][1], coords[pi[15]][1]);
  15515. var figureMaxX = Math.max(coords[pi[0]][0], coords[pi[3]][0],
  15516. coords[pi[12]][0], coords[pi[15]][0]);
  15517. var figureMaxY = Math.max(coords[pi[0]][1], coords[pi[3]][1],
  15518. coords[pi[12]][1], coords[pi[15]][1]);
  15519. var splitXBy = Math.ceil((figureMaxX - figureMinX) * TRIANGLE_DENSITY /
  15520. (mesh.bounds[2] - mesh.bounds[0]));
  15521. splitXBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  15522. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitXBy));
  15523. var splitYBy = Math.ceil((figureMaxY - figureMinY) * TRIANGLE_DENSITY /
  15524. (mesh.bounds[3] - mesh.bounds[1]));
  15525. splitYBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  15526. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitYBy));
  15527. var verticesPerRow = splitXBy + 1;
  15528. var figureCoords = new Int32Array((splitYBy + 1) * verticesPerRow);
  15529. var figureColors = new Int32Array((splitYBy + 1) * verticesPerRow);
  15530. var k = 0;
  15531. var cl = new Uint8Array(3), cr = new Uint8Array(3);
  15532. var c0 = colors[ci[0]], c1 = colors[ci[1]],
  15533. c2 = colors[ci[2]], c3 = colors[ci[3]];
  15534. var bRow = getB(splitYBy), bCol = getB(splitXBy);
  15535. for (var row = 0; row <= splitYBy; row++) {
  15536. cl[0] = ((c0[0] * (splitYBy - row) + c2[0] * row) / splitYBy) | 0;
  15537. cl[1] = ((c0[1] * (splitYBy - row) + c2[1] * row) / splitYBy) | 0;
  15538. cl[2] = ((c0[2] * (splitYBy - row) + c2[2] * row) / splitYBy) | 0;
  15539. cr[0] = ((c1[0] * (splitYBy - row) + c3[0] * row) / splitYBy) | 0;
  15540. cr[1] = ((c1[1] * (splitYBy - row) + c3[1] * row) / splitYBy) | 0;
  15541. cr[2] = ((c1[2] * (splitYBy - row) + c3[2] * row) / splitYBy) | 0;
  15542. for (var col = 0; col <= splitXBy; col++, k++) {
  15543. if ((row === 0 || row === splitYBy) &&
  15544. (col === 0 || col === splitXBy)) {
  15545. continue;
  15546. }
  15547. var x = 0, y = 0;
  15548. var q = 0;
  15549. for (var i = 0; i <= 3; i++) {
  15550. for (var j = 0; j <= 3; j++, q++) {
  15551. var m = bRow[row][i] * bCol[col][j];
  15552. x += coords[pi[q]][0] * m;
  15553. y += coords[pi[q]][1] * m;
  15554. }
  15555. }
  15556. figureCoords[k] = coords.length;
  15557. coords.push([x, y]);
  15558. figureColors[k] = colors.length;
  15559. var newColor = new Uint8Array(3);
  15560. newColor[0] = ((cl[0] * (splitXBy - col) + cr[0] * col) / splitXBy) | 0;
  15561. newColor[1] = ((cl[1] * (splitXBy - col) + cr[1] * col) / splitXBy) | 0;
  15562. newColor[2] = ((cl[2] * (splitXBy - col) + cr[2] * col) / splitXBy) | 0;
  15563. colors.push(newColor);
  15564. }
  15565. }
  15566. figureCoords[0] = pi[0];
  15567. figureColors[0] = ci[0];
  15568. figureCoords[splitXBy] = pi[3];
  15569. figureColors[splitXBy] = ci[1];
  15570. figureCoords[verticesPerRow * splitYBy] = pi[12];
  15571. figureColors[verticesPerRow * splitYBy] = ci[2];
  15572. figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15];
  15573. figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3];
  15574. mesh.figures[index] = {
  15575. type: 'lattice',
  15576. coords: figureCoords,
  15577. colors: figureColors,
  15578. verticesPerRow: verticesPerRow
  15579. };
  15580. }
  15581. function decodeType6Shading(mesh, reader) {
  15582. // A special case of Type 7. The p11, p12, p21, p22 automatically filled
  15583. var coords = mesh.coords;
  15584. var colors = mesh.colors;
  15585. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  15586. var cs = new Int32Array(4); // c00, c30, c03, c33
  15587. while (reader.hasData) {
  15588. var f = reader.readFlag();
  15589. assert(0 <= f && f <= 3, 'Unknown type6 flag');
  15590. var i, ii;
  15591. var pi = coords.length;
  15592. for (i = 0, ii = (f !== 0 ? 8 : 12); i < ii; i++) {
  15593. coords.push(reader.readCoordinate());
  15594. }
  15595. var ci = colors.length;
  15596. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  15597. colors.push(reader.readComponents());
  15598. }
  15599. var tmp1, tmp2, tmp3, tmp4;
  15600. switch (f) {
  15601. case 0:
  15602. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  15603. ps[ 8] = pi + 2; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  15604. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 8;
  15605. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  15606. cs[2] = ci + 1; cs[3] = ci + 2;
  15607. cs[0] = ci; cs[1] = ci + 3;
  15608. break;
  15609. case 1:
  15610. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  15611. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  15612. ps[ 8] = pi + 6; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 1;
  15613. ps[ 4] = pi + 7; /* calculated below */ ps[ 7] = pi;
  15614. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  15615. tmp1 = cs[2]; tmp2 = cs[3];
  15616. cs[2] = ci + 1; cs[3] = ci;
  15617. cs[0] = tmp1; cs[1] = tmp2;
  15618. break;
  15619. case 2:
  15620. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  15621. ps[ 8] = ps[11]; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 4;
  15622. ps[ 4] = ps[7]; /* calculated below */ ps[ 7] = pi + 3;
  15623. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  15624. cs[2] = cs[3]; cs[3] = ci + 1;
  15625. cs[0] = cs[1]; cs[1] = ci;
  15626. break;
  15627. case 3:
  15628. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  15629. ps[ 8] = pi; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  15630. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 6;
  15631. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  15632. cs[2] = cs[0]; cs[3] = cs[1];
  15633. cs[0] = ci; cs[1] = ci + 1;
  15634. break;
  15635. }
  15636. // set p11, p12, p21, p22
  15637. ps[5] = coords.length;
  15638. coords.push([
  15639. (-4 * coords[ps[0]][0] - coords[ps[15]][0] +
  15640. 6 * (coords[ps[4]][0] + coords[ps[1]][0]) -
  15641. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  15642. 3 * (coords[ps[13]][0] + coords[ps[7]][0])) / 9,
  15643. (-4 * coords[ps[0]][1] - coords[ps[15]][1] +
  15644. 6 * (coords[ps[4]][1] + coords[ps[1]][1]) -
  15645. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  15646. 3 * (coords[ps[13]][1] + coords[ps[7]][1])) / 9
  15647. ]);
  15648. ps[6] = coords.length;
  15649. coords.push([
  15650. (-4 * coords[ps[3]][0] - coords[ps[12]][0] +
  15651. 6 * (coords[ps[2]][0] + coords[ps[7]][0]) -
  15652. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  15653. 3 * (coords[ps[4]][0] + coords[ps[14]][0])) / 9,
  15654. (-4 * coords[ps[3]][1] - coords[ps[12]][1] +
  15655. 6 * (coords[ps[2]][1] + coords[ps[7]][1]) -
  15656. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  15657. 3 * (coords[ps[4]][1] + coords[ps[14]][1])) / 9
  15658. ]);
  15659. ps[9] = coords.length;
  15660. coords.push([
  15661. (-4 * coords[ps[12]][0] - coords[ps[3]][0] +
  15662. 6 * (coords[ps[8]][0] + coords[ps[13]][0]) -
  15663. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  15664. 3 * (coords[ps[11]][0] + coords[ps[1]][0])) / 9,
  15665. (-4 * coords[ps[12]][1] - coords[ps[3]][1] +
  15666. 6 * (coords[ps[8]][1] + coords[ps[13]][1]) -
  15667. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  15668. 3 * (coords[ps[11]][1] + coords[ps[1]][1])) / 9
  15669. ]);
  15670. ps[10] = coords.length;
  15671. coords.push([
  15672. (-4 * coords[ps[15]][0] - coords[ps[0]][0] +
  15673. 6 * (coords[ps[11]][0] + coords[ps[14]][0]) -
  15674. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  15675. 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9,
  15676. (-4 * coords[ps[15]][1] - coords[ps[0]][1] +
  15677. 6 * (coords[ps[11]][1] + coords[ps[14]][1]) -
  15678. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  15679. 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9
  15680. ]);
  15681. mesh.figures.push({
  15682. type: 'patch',
  15683. coords: new Int32Array(ps), // making copies of ps and cs
  15684. colors: new Int32Array(cs)
  15685. });
  15686. }
  15687. }
  15688. function decodeType7Shading(mesh, reader) {
  15689. var coords = mesh.coords;
  15690. var colors = mesh.colors;
  15691. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  15692. var cs = new Int32Array(4); // c00, c30, c03, c33
  15693. while (reader.hasData) {
  15694. var f = reader.readFlag();
  15695. assert(0 <= f && f <= 3, 'Unknown type7 flag');
  15696. var i, ii;
  15697. var pi = coords.length;
  15698. for (i = 0, ii = (f !== 0 ? 12 : 16); i < ii; i++) {
  15699. coords.push(reader.readCoordinate());
  15700. }
  15701. var ci = colors.length;
  15702. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  15703. colors.push(reader.readComponents());
  15704. }
  15705. var tmp1, tmp2, tmp3, tmp4;
  15706. switch (f) {
  15707. case 0:
  15708. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  15709. ps[ 8] = pi + 2; ps[ 9] = pi + 13; ps[10] = pi + 14; ps[11] = pi + 7;
  15710. ps[ 4] = pi + 1; ps[ 5] = pi + 12; ps[ 6] = pi + 15; ps[ 7] = pi + 8;
  15711. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  15712. cs[2] = ci + 1; cs[3] = ci + 2;
  15713. cs[0] = ci; cs[1] = ci + 3;
  15714. break;
  15715. case 1:
  15716. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  15717. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  15718. ps[ 8] = pi + 6; ps[ 9] = pi + 11; ps[10] = pi + 10; ps[11] = pi + 1;
  15719. ps[ 4] = pi + 7; ps[ 5] = pi + 8; ps[ 6] = pi + 9; ps[ 7] = pi;
  15720. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  15721. tmp1 = cs[2]; tmp2 = cs[3];
  15722. cs[2] = ci + 1; cs[3] = ci;
  15723. cs[0] = tmp1; cs[1] = tmp2;
  15724. break;
  15725. case 2:
  15726. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  15727. ps[ 8] = ps[11]; ps[ 9] = pi + 8; ps[10] = pi + 11; ps[11] = pi + 4;
  15728. ps[ 4] = ps[7]; ps[ 5] = pi + 9; ps[ 6] = pi + 10; ps[ 7] = pi + 3;
  15729. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  15730. cs[2] = cs[3]; cs[3] = ci + 1;
  15731. cs[0] = cs[1]; cs[1] = ci;
  15732. break;
  15733. case 3:
  15734. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  15735. ps[ 8] = pi; ps[ 9] = pi + 9; ps[10] = pi + 8; ps[11] = pi + 7;
  15736. ps[ 4] = pi + 1; ps[ 5] = pi + 10; ps[ 6] = pi + 11; ps[ 7] = pi + 6;
  15737. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  15738. cs[2] = cs[0]; cs[3] = cs[1];
  15739. cs[0] = ci; cs[1] = ci + 1;
  15740. break;
  15741. }
  15742. mesh.figures.push({
  15743. type: 'patch',
  15744. coords: new Int32Array(ps), // making copies of ps and cs
  15745. colors: new Int32Array(cs)
  15746. });
  15747. }
  15748. }
  15749. function updateBounds(mesh) {
  15750. var minX = mesh.coords[0][0], minY = mesh.coords[0][1],
  15751. maxX = minX, maxY = minY;
  15752. for (var i = 1, ii = mesh.coords.length; i < ii; i++) {
  15753. var x = mesh.coords[i][0], y = mesh.coords[i][1];
  15754. minX = minX > x ? x : minX;
  15755. minY = minY > y ? y : minY;
  15756. maxX = maxX < x ? x : maxX;
  15757. maxY = maxY < y ? y : maxY;
  15758. }
  15759. mesh.bounds = [minX, minY, maxX, maxY];
  15760. }
  15761. function packData(mesh) {
  15762. var i, ii, j, jj;
  15763. var coords = mesh.coords;
  15764. var coordsPacked = new Float32Array(coords.length * 2);
  15765. for (i = 0, j = 0, ii = coords.length; i < ii; i++) {
  15766. var xy = coords[i];
  15767. coordsPacked[j++] = xy[0];
  15768. coordsPacked[j++] = xy[1];
  15769. }
  15770. mesh.coords = coordsPacked;
  15771. var colors = mesh.colors;
  15772. var colorsPacked = new Uint8Array(colors.length * 3);
  15773. for (i = 0, j = 0, ii = colors.length; i < ii; i++) {
  15774. var c = colors[i];
  15775. colorsPacked[j++] = c[0];
  15776. colorsPacked[j++] = c[1];
  15777. colorsPacked[j++] = c[2];
  15778. }
  15779. mesh.colors = colorsPacked;
  15780. var figures = mesh.figures;
  15781. for (i = 0, ii = figures.length; i < ii; i++) {
  15782. var figure = figures[i], ps = figure.coords, cs = figure.colors;
  15783. for (j = 0, jj = ps.length; j < jj; j++) {
  15784. ps[j] *= 2;
  15785. cs[j] *= 3;
  15786. }
  15787. }
  15788. }
  15789. function Mesh(stream, matrix, xref, res) {
  15790. assert(isStream(stream), 'Mesh data is not a stream');
  15791. var dict = stream.dict;
  15792. this.matrix = matrix;
  15793. this.shadingType = dict.get('ShadingType');
  15794. this.type = 'Pattern';
  15795. this.bbox = dict.get('BBox');
  15796. var cs = dict.get('ColorSpace', 'CS');
  15797. cs = ColorSpace.parse(cs, xref, res);
  15798. this.cs = cs;
  15799. this.background = dict.has('Background') ?
  15800. cs.getRgb(dict.get('Background'), 0) : null;
  15801. var fnObj = dict.get('Function');
  15802. var fn;
  15803. if (!fnObj) {
  15804. fn = null;
  15805. } else if (isArray(fnObj)) {
  15806. var fnArray = [];
  15807. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  15808. var obj = xref.fetchIfRef(fnObj[j]);
  15809. if (!isPDFFunction(obj)) {
  15810. error('Invalid function');
  15811. }
  15812. fnArray.push(PDFFunction.parse(xref, obj));
  15813. }
  15814. fn = function radialAxialColorFunction(arg) {
  15815. var out = [];
  15816. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  15817. out.push(fnArray[i](arg)[0]);
  15818. }
  15819. return out;
  15820. };
  15821. } else {
  15822. if (!isPDFFunction(fnObj)) {
  15823. error('Invalid function');
  15824. }
  15825. fn = PDFFunction.parse(xref, fnObj);
  15826. }
  15827. this.coords = [];
  15828. this.colors = [];
  15829. this.figures = [];
  15830. var decodeContext = {
  15831. bitsPerCoordinate: dict.get('BitsPerCoordinate'),
  15832. bitsPerComponent: dict.get('BitsPerComponent'),
  15833. bitsPerFlag: dict.get('BitsPerFlag'),
  15834. decode: dict.get('Decode'),
  15835. colorFn: fn,
  15836. colorSpace: cs,
  15837. numComps: fn ? 1 : cs.numComps
  15838. };
  15839. var reader = new MeshStreamReader(stream, decodeContext);
  15840. var patchMesh = false;
  15841. switch (this.shadingType) {
  15842. case PatternType.FREE_FORM_MESH:
  15843. decodeType4Shading(this, reader);
  15844. break;
  15845. case PatternType.LATTICE_FORM_MESH:
  15846. var verticesPerRow = dict.get('VerticesPerRow') | 0;
  15847. assert(verticesPerRow >= 2, 'Invalid VerticesPerRow');
  15848. decodeType5Shading(this, reader, verticesPerRow);
  15849. break;
  15850. case PatternType.COONS_PATCH_MESH:
  15851. decodeType6Shading(this, reader);
  15852. patchMesh = true;
  15853. break;
  15854. case PatternType.TENSOR_PATCH_MESH:
  15855. decodeType7Shading(this, reader);
  15856. patchMesh = true;
  15857. break;
  15858. default:
  15859. error('Unsupported mesh type.');
  15860. break;
  15861. }
  15862. if (patchMesh) {
  15863. // dirty bounds calculation for determining, how dense shall be triangles
  15864. updateBounds(this);
  15865. for (var i = 0, ii = this.figures.length; i < ii; i++) {
  15866. buildFigureFromPatch(this, i);
  15867. }
  15868. }
  15869. // calculate bounds
  15870. updateBounds(this);
  15871. packData(this);
  15872. }
  15873. Mesh.prototype = {
  15874. getIR: function Mesh_getIR() {
  15875. return ['Mesh', this.shadingType, this.coords, this.colors, this.figures,
  15876. this.bounds, this.matrix, this.bbox, this.background];
  15877. }
  15878. };
  15879. return Mesh;
  15880. })();
  15881. Shadings.Dummy = (function DummyClosure() {
  15882. function Dummy() {
  15883. this.type = 'Pattern';
  15884. }
  15885. Dummy.prototype = {
  15886. getIR: function Dummy_getIR() {
  15887. return ['Dummy'];
  15888. }
  15889. };
  15890. return Dummy;
  15891. })();
  15892. function getTilingPatternIR(operatorList, dict, args) {
  15893. var matrix = dict.get('Matrix');
  15894. var bbox = dict.get('BBox');
  15895. var xstep = dict.get('XStep');
  15896. var ystep = dict.get('YStep');
  15897. var paintType = dict.get('PaintType');
  15898. var tilingType = dict.get('TilingType');
  15899. return [
  15900. 'TilingPattern', args, operatorList, matrix, bbox, xstep, ystep,
  15901. paintType, tilingType
  15902. ];
  15903. }
  15904. var PartialEvaluator = (function PartialEvaluatorClosure() {
  15905. function PartialEvaluator(pdfManager, xref, handler, pageIndex,
  15906. uniquePrefix, idCounters, fontCache) {
  15907. this.pdfManager = pdfManager;
  15908. this.xref = xref;
  15909. this.handler = handler;
  15910. this.pageIndex = pageIndex;
  15911. this.uniquePrefix = uniquePrefix;
  15912. this.idCounters = idCounters;
  15913. this.fontCache = fontCache;
  15914. }
  15915. // Trying to minimize Date.now() usage and check every 100 time
  15916. var TIME_SLOT_DURATION_MS = 20;
  15917. var CHECK_TIME_EVERY = 100;
  15918. function TimeSlotManager() {
  15919. this.reset();
  15920. }
  15921. TimeSlotManager.prototype = {
  15922. check: function TimeSlotManager_check() {
  15923. if (++this.checked < CHECK_TIME_EVERY) {
  15924. return false;
  15925. }
  15926. this.checked = 0;
  15927. return this.endTime <= Date.now();
  15928. },
  15929. reset: function TimeSlotManager_reset() {
  15930. this.endTime = Date.now() + TIME_SLOT_DURATION_MS;
  15931. this.checked = 0;
  15932. }
  15933. };
  15934. var deferred = Promise.resolve();
  15935. var TILING_PATTERN = 1, SHADING_PATTERN = 2;
  15936. PartialEvaluator.prototype = {
  15937. hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
  15938. if (!isDict(resources)) {
  15939. return false;
  15940. }
  15941. var processed = Object.create(null);
  15942. if (resources.objId) {
  15943. processed[resources.objId] = true;
  15944. }
  15945. var nodes = [resources];
  15946. while (nodes.length) {
  15947. var key;
  15948. var node = nodes.shift();
  15949. // First check the current resources for blend modes.
  15950. var graphicStates = node.get('ExtGState');
  15951. if (isDict(graphicStates)) {
  15952. graphicStates = graphicStates.getAll();
  15953. for (key in graphicStates) {
  15954. var graphicState = graphicStates[key];
  15955. var bm = graphicState['BM'];
  15956. if (isName(bm) && bm.name !== 'Normal') {
  15957. return true;
  15958. }
  15959. }
  15960. }
  15961. // Descend into the XObjects to look for more resources and blend modes.
  15962. var xObjects = node.get('XObject');
  15963. if (!isDict(xObjects)) {
  15964. continue;
  15965. }
  15966. xObjects = xObjects.getAll();
  15967. for (key in xObjects) {
  15968. var xObject = xObjects[key];
  15969. if (!isStream(xObject)) {
  15970. continue;
  15971. }
  15972. if (xObject.dict.objId) {
  15973. if (processed[xObject.dict.objId]) {
  15974. // stream has objId and is processed already
  15975. continue;
  15976. }
  15977. processed[xObject.dict.objId] = true;
  15978. }
  15979. var xResources = xObject.dict.get('Resources');
  15980. // Checking objId to detect an infinite loop.
  15981. if (isDict(xResources) &&
  15982. (!xResources.objId || !processed[xResources.objId])) {
  15983. nodes.push(xResources);
  15984. if (xResources.objId) {
  15985. processed[xResources.objId] = true;
  15986. }
  15987. }
  15988. }
  15989. }
  15990. return false;
  15991. },
  15992. buildFormXObject: function PartialEvaluator_buildFormXObject(resources,
  15993. xobj, smask,
  15994. operatorList,
  15995. initialState) {
  15996. var matrix = xobj.dict.get('Matrix');
  15997. var bbox = xobj.dict.get('BBox');
  15998. var group = xobj.dict.get('Group');
  15999. if (group) {
  16000. var groupOptions = {
  16001. matrix: matrix,
  16002. bbox: bbox,
  16003. smask: smask,
  16004. isolated: false,
  16005. knockout: false
  16006. };
  16007. var groupSubtype = group.get('S');
  16008. var colorSpace;
  16009. if (isName(groupSubtype) && groupSubtype.name === 'Transparency') {
  16010. groupOptions.isolated = (group.get('I') || false);
  16011. groupOptions.knockout = (group.get('K') || false);
  16012. colorSpace = (group.has('CS') ?
  16013. ColorSpace.parse(group.get('CS'), this.xref, resources) : null);
  16014. }
  16015. if (smask && smask.backdrop) {
  16016. colorSpace = colorSpace || ColorSpace.singletons.rgb;
  16017. smask.backdrop = colorSpace.getRgb(smask.backdrop, 0);
  16018. }
  16019. operatorList.addOp(OPS.beginGroup, [groupOptions]);
  16020. }
  16021. operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);
  16022. return this.getOperatorList(xobj,
  16023. (xobj.dict.get('Resources') || resources), operatorList, initialState).
  16024. then(function () {
  16025. operatorList.addOp(OPS.paintFormXObjectEnd, []);
  16026. if (group) {
  16027. operatorList.addOp(OPS.endGroup, [groupOptions]);
  16028. }
  16029. });
  16030. },
  16031. buildPaintImageXObject:
  16032. function PartialEvaluator_buildPaintImageXObject(resources, image,
  16033. inline, operatorList,
  16034. cacheKey, cache) {
  16035. var self = this;
  16036. var dict = image.dict;
  16037. var w = dict.get('Width', 'W');
  16038. var h = dict.get('Height', 'H');
  16039. if (!(w && isNum(w)) || !(h && isNum(h))) {
  16040. warn('Image dimensions are missing, or not numbers.');
  16041. return;
  16042. }
  16043. if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
  16044. warn('Image exceeded maximum allowed size and was removed.');
  16045. return;
  16046. }
  16047. var imageMask = (dict.get('ImageMask', 'IM') || false);
  16048. var imgData, args;
  16049. if (imageMask) {
  16050. // This depends on a tmpCanvas being filled with the
  16051. // current fillStyle, such that processing the pixel
  16052. // data can't be done here. Instead of creating a
  16053. // complete PDFImage, only read the information needed
  16054. // for later.
  16055. var width = dict.get('Width', 'W');
  16056. var height = dict.get('Height', 'H');
  16057. var bitStrideLength = (width + 7) >> 3;
  16058. var imgArray = image.getBytes(bitStrideLength * height);
  16059. var decode = dict.get('Decode', 'D');
  16060. var inverseDecode = (!!decode && decode[0] > 0);
  16061. imgData = PDFImage.createMask(imgArray, width, height,
  16062. image instanceof DecodeStream,
  16063. inverseDecode);
  16064. imgData.cached = true;
  16065. args = [imgData];
  16066. operatorList.addOp(OPS.paintImageMaskXObject, args);
  16067. if (cacheKey) {
  16068. cache.key = cacheKey;
  16069. cache.fn = OPS.paintImageMaskXObject;
  16070. cache.args = args;
  16071. }
  16072. return;
  16073. }
  16074. var softMask = (dict.get('SMask', 'SM') || false);
  16075. var mask = (dict.get('Mask') || false);
  16076. var SMALL_IMAGE_DIMENSIONS = 200;
  16077. // Inlining small images into the queue as RGB data
  16078. if (inline && !softMask && !mask && !(image instanceof JpegStream) &&
  16079. (w + h) < SMALL_IMAGE_DIMENSIONS) {
  16080. var imageObj = new PDFImage(this.xref, resources, image,
  16081. inline, null, null);
  16082. // We force the use of RGBA_32BPP images here, because we can't handle
  16083. // any other kind.
  16084. imgData = imageObj.createImageData(/* forceRGBA = */ true);
  16085. operatorList.addOp(OPS.paintInlineImageXObject, [imgData]);
  16086. return;
  16087. }
  16088. // If there is no imageMask, create the PDFImage and a lot
  16089. // of image processing can be done here.
  16090. var uniquePrefix = (this.uniquePrefix || '');
  16091. var objId = 'img_' + uniquePrefix + (++this.idCounters.obj);
  16092. operatorList.addDependency(objId);
  16093. args = [objId, w, h];
  16094. if (!softMask && !mask && image instanceof JpegStream &&
  16095. image.isNativelySupported(this.xref, resources)) {
  16096. // These JPEGs don't need any more processing so we can just send it.
  16097. operatorList.addOp(OPS.paintJpegXObject, args);
  16098. this.handler.send('obj',
  16099. [objId, this.pageIndex, 'JpegStream', image.getIR()]);
  16100. return;
  16101. }
  16102. PDFImage.buildImage(self.handler, self.xref, resources, image, inline).
  16103. then(function(imageObj) {
  16104. var imgData = imageObj.createImageData(/* forceRGBA = */ false);
  16105. self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
  16106. [imgData.data.buffer]);
  16107. }).then(null, function (reason) {
  16108. warn('Unable to decode image: ' + reason);
  16109. self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
  16110. });
  16111. operatorList.addOp(OPS.paintImageXObject, args);
  16112. if (cacheKey) {
  16113. cache.key = cacheKey;
  16114. cache.fn = OPS.paintImageXObject;
  16115. cache.args = args;
  16116. }
  16117. },
  16118. handleSMask: function PartialEvaluator_handleSmask(smask, resources,
  16119. operatorList,
  16120. stateManager) {
  16121. var smaskContent = smask.get('G');
  16122. var smaskOptions = {
  16123. subtype: smask.get('S').name,
  16124. backdrop: smask.get('BC')
  16125. };
  16126. return this.buildFormXObject(resources, smaskContent, smaskOptions,
  16127. operatorList, stateManager.state.clone());
  16128. },
  16129. handleTilingType:
  16130. function PartialEvaluator_handleTilingType(fn, args, resources,
  16131. pattern, patternDict,
  16132. operatorList) {
  16133. // Create an IR of the pattern code.
  16134. var tilingOpList = new OperatorList();
  16135. return this.getOperatorList(pattern,
  16136. (patternDict.get('Resources') || resources), tilingOpList).
  16137. then(function () {
  16138. // Add the dependencies to the parent operator list so they are
  16139. // resolved before sub operator list is executed synchronously.
  16140. operatorList.addDependencies(tilingOpList.dependencies);
  16141. operatorList.addOp(fn, getTilingPatternIR({
  16142. fnArray: tilingOpList.fnArray,
  16143. argsArray: tilingOpList.argsArray
  16144. }, patternDict, args));
  16145. });
  16146. },
  16147. handleSetFont:
  16148. function PartialEvaluator_handleSetFont(resources, fontArgs, fontRef,
  16149. operatorList, state) {
  16150. // TODO(mack): Not needed?
  16151. var fontName;
  16152. if (fontArgs) {
  16153. fontArgs = fontArgs.slice();
  16154. fontName = fontArgs[0].name;
  16155. }
  16156. var self = this;
  16157. return this.loadFont(fontName, fontRef, this.xref, resources).then(
  16158. function (translated) {
  16159. if (!translated.font.isType3Font) {
  16160. return translated;
  16161. }
  16162. return translated.loadType3Data(self, resources, operatorList).then(
  16163. function () {
  16164. return translated;
  16165. });
  16166. }).then(function (translated) {
  16167. state.font = translated.font;
  16168. translated.send(self.handler);
  16169. return translated.loadedName;
  16170. });
  16171. },
  16172. handleText: function PartialEvaluator_handleText(chars, state) {
  16173. var font = state.font;
  16174. var glyphs = font.charsToGlyphs(chars);
  16175. var isAddToPathSet = !!(state.textRenderingMode &
  16176. TextRenderingMode.ADD_TO_PATH_FLAG);
  16177. if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
  16178. var buildPath = function (fontChar) {
  16179. if (!font.renderer.hasBuiltPath(fontChar)) {
  16180. var path = font.renderer.getPathJs(fontChar);
  16181. this.handler.send('commonobj', [
  16182. font.loadedName + '_path_' + fontChar,
  16183. 'FontPath',
  16184. path
  16185. ]);
  16186. }
  16187. }.bind(this);
  16188. for (var i = 0, ii = glyphs.length; i < ii; i++) {
  16189. var glyph = glyphs[i];
  16190. if (glyph === null) {
  16191. continue;
  16192. }
  16193. buildPath(glyph.fontChar);
  16194. // If the glyph has an accent we need to build a path for its
  16195. // fontChar too, otherwise CanvasGraphics_paintChar will fail.
  16196. var accent = glyph.accent;
  16197. if (accent && accent.fontChar) {
  16198. buildPath(accent.fontChar);
  16199. }
  16200. }
  16201. }
  16202. return glyphs;
  16203. },
  16204. setGState: function PartialEvaluator_setGState(resources, gState,
  16205. operatorList, xref,
  16206. stateManager) {
  16207. // TODO(mack): This should be rewritten so that this function returns
  16208. // what should be added to the queue during each iteration
  16209. function setGStateForKey(gStateObj, key, value) {
  16210. switch (key) {
  16211. case 'Type':
  16212. break;
  16213. case 'LW':
  16214. case 'LC':
  16215. case 'LJ':
  16216. case 'ML':
  16217. case 'D':
  16218. case 'RI':
  16219. case 'FL':
  16220. case 'CA':
  16221. case 'ca':
  16222. gStateObj.push([key, value]);
  16223. break;
  16224. case 'Font':
  16225. promise = promise.then(function () {
  16226. return self.handleSetFont(resources, null, value[0],
  16227. operatorList, stateManager.state).
  16228. then(function (loadedName) {
  16229. operatorList.addDependency(loadedName);
  16230. gStateObj.push([key, [loadedName, value[1]]]);
  16231. });
  16232. });
  16233. break;
  16234. case 'BM':
  16235. gStateObj.push([key, value]);
  16236. break;
  16237. case 'SMask':
  16238. if (isName(value) && value.name === 'None') {
  16239. gStateObj.push([key, false]);
  16240. break;
  16241. }
  16242. var dict = xref.fetchIfRef(value);
  16243. if (isDict(dict)) {
  16244. promise = promise.then(function () {
  16245. return self.handleSMask(dict, resources, operatorList,
  16246. stateManager);
  16247. });
  16248. gStateObj.push([key, true]);
  16249. } else {
  16250. warn('Unsupported SMask type');
  16251. }
  16252. break;
  16253. // Only generate info log messages for the following since
  16254. // they are unlikey to have a big impact on the rendering.
  16255. case 'OP':
  16256. case 'op':
  16257. case 'OPM':
  16258. case 'BG':
  16259. case 'BG2':
  16260. case 'UCR':
  16261. case 'UCR2':
  16262. case 'TR':
  16263. case 'TR2':
  16264. case 'HT':
  16265. case 'SM':
  16266. case 'SA':
  16267. case 'AIS':
  16268. case 'TK':
  16269. // TODO implement these operators.
  16270. info('graphic state operator ' + key);
  16271. break;
  16272. default:
  16273. info('Unknown graphic state operator ' + key);
  16274. break;
  16275. }
  16276. }
  16277. // This array holds the converted/processed state data.
  16278. var gStateObj = [];
  16279. var gStateMap = gState.map;
  16280. var self = this;
  16281. var promise = Promise.resolve();
  16282. for (var key in gStateMap) {
  16283. var value = gStateMap[key];
  16284. setGStateForKey(gStateObj, key, value);
  16285. }
  16286. return promise.then(function () {
  16287. operatorList.addOp(OPS.setGState, [gStateObj]);
  16288. });
  16289. },
  16290. loadFont: function PartialEvaluator_loadFont(fontName, font, xref,
  16291. resources) {
  16292. function errorFont() {
  16293. return Promise.resolve(new TranslatedFont('g_font_error',
  16294. new ErrorFont('Font ' + fontName + ' is not available'), font));
  16295. }
  16296. var fontRef;
  16297. if (font) { // Loading by ref.
  16298. assert(isRef(font));
  16299. fontRef = font;
  16300. } else { // Loading by name.
  16301. var fontRes = resources.get('Font');
  16302. if (fontRes) {
  16303. fontRef = fontRes.getRaw(fontName);
  16304. } else {
  16305. warn('fontRes not available');
  16306. return errorFont();
  16307. }
  16308. }
  16309. if (!fontRef) {
  16310. warn('fontRef not available');
  16311. return errorFont();
  16312. }
  16313. if (this.fontCache.has(fontRef)) {
  16314. return this.fontCache.get(fontRef);
  16315. }
  16316. font = xref.fetchIfRef(fontRef);
  16317. if (!isDict(font)) {
  16318. return errorFont();
  16319. }
  16320. // We are holding font.translated references just for fontRef that are not
  16321. // dictionaries (Dict). See explanation below.
  16322. if (font.translated) {
  16323. return font.translated;
  16324. }
  16325. var fontCapability = createPromiseCapability();
  16326. var preEvaluatedFont = this.preEvaluateFont(font, xref);
  16327. var descriptor = preEvaluatedFont.descriptor;
  16328. var fontID = fontRef.num + '_' + fontRef.gen;
  16329. if (isDict(descriptor)) {
  16330. if (!descriptor.fontAliases) {
  16331. descriptor.fontAliases = Object.create(null);
  16332. }
  16333. var fontAliases = descriptor.fontAliases;
  16334. var hash = preEvaluatedFont.hash;
  16335. if (fontAliases[hash]) {
  16336. var aliasFontRef = fontAliases[hash].aliasRef;
  16337. if (aliasFontRef && this.fontCache.has(aliasFontRef)) {
  16338. this.fontCache.putAlias(fontRef, aliasFontRef);
  16339. return this.fontCache.get(fontRef);
  16340. }
  16341. }
  16342. if (!fontAliases[hash]) {
  16343. fontAliases[hash] = {
  16344. fontID: Font.getFontID()
  16345. };
  16346. }
  16347. fontAliases[hash].aliasRef = fontRef;
  16348. fontID = fontAliases[hash].fontID;
  16349. }
  16350. // Workaround for bad PDF generators that don't reference fonts
  16351. // properly, i.e. by not using an object identifier.
  16352. // Check if the fontRef is a Dict (as opposed to a standard object),
  16353. // in which case we don't cache the font and instead reference it by
  16354. // fontName in font.loadedName below.
  16355. var fontRefIsDict = isDict(fontRef);
  16356. if (!fontRefIsDict) {
  16357. this.fontCache.put(fontRef, fontCapability.promise);
  16358. }
  16359. // Keep track of each font we translated so the caller can
  16360. // load them asynchronously before calling display on a page.
  16361. font.loadedName = 'g_font_' + (fontRefIsDict ?
  16362. fontName.replace(/\W/g, '') : fontID);
  16363. font.translated = fontCapability.promise;
  16364. // TODO move promises into translate font
  16365. var translatedPromise;
  16366. try {
  16367. translatedPromise = Promise.resolve(
  16368. this.translateFont(preEvaluatedFont, xref));
  16369. } catch (e) {
  16370. translatedPromise = Promise.reject(e);
  16371. }
  16372. translatedPromise.then(function (translatedFont) {
  16373. if (translatedFont.fontType !== undefined) {
  16374. var xrefFontStats = xref.stats.fontTypes;
  16375. xrefFontStats[translatedFont.fontType] = true;
  16376. }
  16377. fontCapability.resolve(new TranslatedFont(font.loadedName,
  16378. translatedFont, font));
  16379. }, function (reason) {
  16380. // TODO fontCapability.reject?
  16381. UnsupportedManager.notify(UNSUPPORTED_FEATURES.font);
  16382. try {
  16383. // error, but it's still nice to have font type reported
  16384. var descriptor = preEvaluatedFont.descriptor;
  16385. var fontFile3 = descriptor && descriptor.get('FontFile3');
  16386. var subtype = fontFile3 && fontFile3.get('Subtype');
  16387. var fontType = getFontType(preEvaluatedFont.type,
  16388. subtype && subtype.name);
  16389. var xrefFontStats = xref.stats.fontTypes;
  16390. xrefFontStats[fontType] = true;
  16391. } catch (ex) { }
  16392. fontCapability.resolve(new TranslatedFont(font.loadedName,
  16393. new ErrorFont(reason instanceof Error ? reason.message : reason),
  16394. font));
  16395. });
  16396. return fontCapability.promise;
  16397. },
  16398. buildPath: function PartialEvaluator_buildPath(operatorList, fn, args) {
  16399. var lastIndex = operatorList.length - 1;
  16400. if (lastIndex < 0 ||
  16401. operatorList.fnArray[lastIndex] !== OPS.constructPath) {
  16402. operatorList.addOp(OPS.constructPath, [[fn], args]);
  16403. } else {
  16404. var opArgs = operatorList.argsArray[lastIndex];
  16405. opArgs[0].push(fn);
  16406. Array.prototype.push.apply(opArgs[1], args);
  16407. }
  16408. },
  16409. handleColorN: function PartialEvaluator_handleColorN(operatorList, fn, args,
  16410. cs, patterns, resources, xref) {
  16411. // compile tiling patterns
  16412. var patternName = args[args.length - 1];
  16413. // SCN/scn applies patterns along with normal colors
  16414. var pattern;
  16415. if (isName(patternName) &&
  16416. (pattern = patterns.get(patternName.name))) {
  16417. var dict = (isStream(pattern) ? pattern.dict : pattern);
  16418. var typeNum = dict.get('PatternType');
  16419. if (typeNum === TILING_PATTERN) {
  16420. var color = cs.base ? cs.base.getRgb(args, 0) : null;
  16421. return this.handleTilingType(fn, color, resources, pattern,
  16422. dict, operatorList);
  16423. } else if (typeNum === SHADING_PATTERN) {
  16424. var shading = dict.get('Shading');
  16425. var matrix = dict.get('Matrix');
  16426. pattern = Pattern.parseShading(shading, matrix, xref, resources);
  16427. operatorList.addOp(fn, pattern.getIR());
  16428. return Promise.resolve();
  16429. } else {
  16430. return Promise.reject('Unknown PatternType: ' + typeNum);
  16431. }
  16432. }
  16433. // TODO shall we fail here?
  16434. operatorList.addOp(fn, args);
  16435. return Promise.resolve();
  16436. },
  16437. getOperatorList: function PartialEvaluator_getOperatorList(stream,
  16438. resources,
  16439. operatorList,
  16440. initialState) {
  16441. var self = this;
  16442. var xref = this.xref;
  16443. var imageCache = {};
  16444. assert(operatorList);
  16445. resources = (resources || Dict.empty);
  16446. var xobjs = (resources.get('XObject') || Dict.empty);
  16447. var patterns = (resources.get('Pattern') || Dict.empty);
  16448. var stateManager = new StateManager(initialState || new EvalState());
  16449. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  16450. var timeSlotManager = new TimeSlotManager();
  16451. return new Promise(function next(resolve, reject) {
  16452. timeSlotManager.reset();
  16453. var stop, operation, i, ii, cs;
  16454. while (!(stop = timeSlotManager.check()) &&
  16455. (operation = preprocessor.read())) {
  16456. var args = operation.args;
  16457. var fn = operation.fn;
  16458. switch (fn | 0) {
  16459. case OPS.paintXObject:
  16460. if (args[0].code) {
  16461. break;
  16462. }
  16463. // eagerly compile XForm objects
  16464. var name = args[0].name;
  16465. if (imageCache.key === name) {
  16466. operatorList.addOp(imageCache.fn, imageCache.args);
  16467. args = [];
  16468. continue;
  16469. }
  16470. var xobj = xobjs.get(name);
  16471. if (xobj) {
  16472. assert(isStream(xobj), 'XObject should be a stream');
  16473. var type = xobj.dict.get('Subtype');
  16474. assert(isName(type),
  16475. 'XObject should have a Name subtype');
  16476. if (type.name === 'Form') {
  16477. stateManager.save();
  16478. return self.buildFormXObject(resources, xobj, null,
  16479. operatorList,
  16480. stateManager.state.clone()).
  16481. then(function () {
  16482. stateManager.restore();
  16483. next(resolve, reject);
  16484. }, reject);
  16485. } else if (type.name === 'Image') {
  16486. self.buildPaintImageXObject(resources, xobj, false,
  16487. operatorList, name, imageCache);
  16488. args = [];
  16489. continue;
  16490. } else if (type.name === 'PS') {
  16491. // PostScript XObjects are unused when viewing documents.
  16492. // See section 4.7.1 of Adobe's PDF reference.
  16493. info('Ignored XObject subtype PS');
  16494. continue;
  16495. } else {
  16496. error('Unhandled XObject subtype ' + type.name);
  16497. }
  16498. }
  16499. break;
  16500. case OPS.setFont:
  16501. var fontSize = args[1];
  16502. // eagerly collect all fonts
  16503. return self.handleSetFont(resources, args, null,
  16504. operatorList, stateManager.state).
  16505. then(function (loadedName) {
  16506. operatorList.addDependency(loadedName);
  16507. operatorList.addOp(OPS.setFont, [loadedName, fontSize]);
  16508. next(resolve, reject);
  16509. }, reject);
  16510. case OPS.endInlineImage:
  16511. var cacheKey = args[0].cacheKey;
  16512. if (cacheKey && imageCache.key === cacheKey) {
  16513. operatorList.addOp(imageCache.fn, imageCache.args);
  16514. args = [];
  16515. continue;
  16516. }
  16517. self.buildPaintImageXObject(resources, args[0], true,
  16518. operatorList, cacheKey, imageCache);
  16519. args = [];
  16520. continue;
  16521. case OPS.showText:
  16522. args[0] = self.handleText(args[0], stateManager.state);
  16523. break;
  16524. case OPS.showSpacedText:
  16525. var arr = args[0];
  16526. var combinedGlyphs = [];
  16527. var arrLength = arr.length;
  16528. for (i = 0; i < arrLength; ++i) {
  16529. var arrItem = arr[i];
  16530. if (isString(arrItem)) {
  16531. Array.prototype.push.apply(combinedGlyphs,
  16532. self.handleText(arrItem, stateManager.state));
  16533. } else if (isNum(arrItem)) {
  16534. combinedGlyphs.push(arrItem);
  16535. }
  16536. }
  16537. args[0] = combinedGlyphs;
  16538. fn = OPS.showText;
  16539. break;
  16540. case OPS.nextLineShowText:
  16541. operatorList.addOp(OPS.nextLine);
  16542. args[0] = self.handleText(args[0], stateManager.state);
  16543. fn = OPS.showText;
  16544. break;
  16545. case OPS.nextLineSetSpacingShowText:
  16546. operatorList.addOp(OPS.nextLine);
  16547. operatorList.addOp(OPS.setWordSpacing, [args.shift()]);
  16548. operatorList.addOp(OPS.setCharSpacing, [args.shift()]);
  16549. args[0] = self.handleText(args[0], stateManager.state);
  16550. fn = OPS.showText;
  16551. break;
  16552. case OPS.setTextRenderingMode:
  16553. stateManager.state.textRenderingMode = args[0];
  16554. break;
  16555. case OPS.setFillColorSpace:
  16556. stateManager.state.fillColorSpace =
  16557. ColorSpace.parse(args[0], xref, resources);
  16558. continue;
  16559. case OPS.setStrokeColorSpace:
  16560. stateManager.state.strokeColorSpace =
  16561. ColorSpace.parse(args[0], xref, resources);
  16562. continue;
  16563. case OPS.setFillColor:
  16564. cs = stateManager.state.fillColorSpace;
  16565. args = cs.getRgb(args, 0);
  16566. fn = OPS.setFillRGBColor;
  16567. break;
  16568. case OPS.setStrokeColor:
  16569. cs = stateManager.state.strokeColorSpace;
  16570. args = cs.getRgb(args, 0);
  16571. fn = OPS.setStrokeRGBColor;
  16572. break;
  16573. case OPS.setFillGray:
  16574. stateManager.state.fillColorSpace = ColorSpace.singletons.gray;
  16575. args = ColorSpace.singletons.gray.getRgb(args, 0);
  16576. fn = OPS.setFillRGBColor;
  16577. break;
  16578. case OPS.setStrokeGray:
  16579. stateManager.state.strokeColorSpace = ColorSpace.singletons.gray;
  16580. args = ColorSpace.singletons.gray.getRgb(args, 0);
  16581. fn = OPS.setStrokeRGBColor;
  16582. break;
  16583. case OPS.setFillCMYKColor:
  16584. stateManager.state.fillColorSpace = ColorSpace.singletons.cmyk;
  16585. args = ColorSpace.singletons.cmyk.getRgb(args, 0);
  16586. fn = OPS.setFillRGBColor;
  16587. break;
  16588. case OPS.setStrokeCMYKColor:
  16589. stateManager.state.strokeColorSpace = ColorSpace.singletons.cmyk;
  16590. args = ColorSpace.singletons.cmyk.getRgb(args, 0);
  16591. fn = OPS.setStrokeRGBColor;
  16592. break;
  16593. case OPS.setFillRGBColor:
  16594. stateManager.state.fillColorSpace = ColorSpace.singletons.rgb;
  16595. args = ColorSpace.singletons.rgb.getRgb(args, 0);
  16596. break;
  16597. case OPS.setStrokeRGBColor:
  16598. stateManager.state.strokeColorSpace = ColorSpace.singletons.rgb;
  16599. args = ColorSpace.singletons.rgb.getRgb(args, 0);
  16600. break;
  16601. case OPS.setFillColorN:
  16602. cs = stateManager.state.fillColorSpace;
  16603. if (cs.name === 'Pattern') {
  16604. return self.handleColorN(operatorList, OPS.setFillColorN,
  16605. args, cs, patterns, resources, xref).then(function() {
  16606. next(resolve, reject);
  16607. }, reject);
  16608. }
  16609. args = cs.getRgb(args, 0);
  16610. fn = OPS.setFillRGBColor;
  16611. break;
  16612. case OPS.setStrokeColorN:
  16613. cs = stateManager.state.strokeColorSpace;
  16614. if (cs.name === 'Pattern') {
  16615. return self.handleColorN(operatorList, OPS.setStrokeColorN,
  16616. args, cs, patterns, resources, xref).then(function() {
  16617. next(resolve, reject);
  16618. }, reject);
  16619. }
  16620. args = cs.getRgb(args, 0);
  16621. fn = OPS.setStrokeRGBColor;
  16622. break;
  16623. case OPS.shadingFill:
  16624. var shadingRes = resources.get('Shading');
  16625. if (!shadingRes) {
  16626. error('No shading resource found');
  16627. }
  16628. var shading = shadingRes.get(args[0].name);
  16629. if (!shading) {
  16630. error('No shading object found');
  16631. }
  16632. var shadingFill = Pattern.parseShading(shading, null, xref,
  16633. resources);
  16634. var patternIR = shadingFill.getIR();
  16635. args = [patternIR];
  16636. fn = OPS.shadingFill;
  16637. break;
  16638. case OPS.setGState:
  16639. var dictName = args[0];
  16640. var extGState = resources.get('ExtGState');
  16641. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  16642. break;
  16643. }
  16644. var gState = extGState.get(dictName.name);
  16645. return self.setGState(resources, gState, operatorList, xref,
  16646. stateManager).then(function() {
  16647. next(resolve, reject);
  16648. }, reject);
  16649. case OPS.moveTo:
  16650. case OPS.lineTo:
  16651. case OPS.curveTo:
  16652. case OPS.curveTo2:
  16653. case OPS.curveTo3:
  16654. case OPS.closePath:
  16655. self.buildPath(operatorList, fn, args);
  16656. continue;
  16657. }
  16658. operatorList.addOp(fn, args);
  16659. }
  16660. if (stop) {
  16661. deferred.then(function () {
  16662. next(resolve, reject);
  16663. });
  16664. return;
  16665. }
  16666. // Some PDFs don't close all restores inside object/form.
  16667. // Closing those for them.
  16668. for (i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) {
  16669. operatorList.addOp(OPS.restore, []);
  16670. }
  16671. resolve();
  16672. });
  16673. },
  16674. getTextContent: function PartialEvaluator_getTextContent(stream, resources,
  16675. stateManager) {
  16676. stateManager = (stateManager || new StateManager(new TextState()));
  16677. var textContent = {
  16678. items: [],
  16679. styles: Object.create(null)
  16680. };
  16681. var bidiTexts = textContent.items;
  16682. var SPACE_FACTOR = 0.35;
  16683. var MULTI_SPACE_FACTOR = 1.5;
  16684. var self = this;
  16685. var xref = this.xref;
  16686. resources = (xref.fetchIfRef(resources) || Dict.empty);
  16687. // The xobj is parsed iff it's needed, e.g. if there is a `DO` cmd.
  16688. var xobjs = null;
  16689. var xobjsCache = {};
  16690. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  16691. var operation;
  16692. var textState;
  16693. function newTextChunk() {
  16694. var font = textState.font;
  16695. if (!(font.loadedName in textContent.styles)) {
  16696. textContent.styles[font.loadedName] = {
  16697. fontFamily: font.fallbackName,
  16698. ascent: font.ascent,
  16699. descent: font.descent,
  16700. vertical: font.vertical
  16701. };
  16702. }
  16703. return {
  16704. str: '',
  16705. dir: null,
  16706. width: 0,
  16707. height: 0,
  16708. transform: null,
  16709. fontName: font.loadedName
  16710. };
  16711. }
  16712. function runBidi(textChunk) {
  16713. var bidiResult = PDFJS.bidi(textChunk.str, -1, textState.font.vertical);
  16714. textChunk.str = bidiResult.str;
  16715. textChunk.dir = bidiResult.dir;
  16716. return textChunk;
  16717. }
  16718. function handleSetFont(fontName, fontRef) {
  16719. return self.loadFont(fontName, fontRef, xref, resources).
  16720. then(function (translated) {
  16721. textState.font = translated.font;
  16722. textState.fontMatrix = translated.font.fontMatrix ||
  16723. FONT_IDENTITY_MATRIX;
  16724. });
  16725. }
  16726. function buildTextGeometry(chars, textChunk) {
  16727. var font = textState.font;
  16728. textChunk = textChunk || newTextChunk();
  16729. if (!textChunk.transform) {
  16730. // 9.4.4 Text Space Details
  16731. var tsm = [textState.fontSize * textState.textHScale, 0,
  16732. 0, textState.fontSize,
  16733. 0, textState.textRise];
  16734. var trm = textChunk.transform = Util.transform(textState.ctm,
  16735. Util.transform(textState.textMatrix, tsm));
  16736. if (!font.vertical) {
  16737. textChunk.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);
  16738. } else {
  16739. textChunk.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);
  16740. }
  16741. }
  16742. var width = 0;
  16743. var height = 0;
  16744. var glyphs = font.charsToGlyphs(chars);
  16745. var defaultVMetrics = font.defaultVMetrics;
  16746. for (var i = 0; i < glyphs.length; i++) {
  16747. var glyph = glyphs[i];
  16748. if (!glyph) { // Previous glyph was a space.
  16749. width += textState.wordSpacing * textState.textHScale;
  16750. continue;
  16751. }
  16752. var vMetricX = null;
  16753. var vMetricY = null;
  16754. var glyphWidth = null;
  16755. if (font.vertical) {
  16756. if (glyph.vmetric) {
  16757. glyphWidth = glyph.vmetric[0];
  16758. vMetricX = glyph.vmetric[1];
  16759. vMetricY = glyph.vmetric[2];
  16760. } else {
  16761. glyphWidth = glyph.width;
  16762. vMetricX = glyph.width * 0.5;
  16763. vMetricY = defaultVMetrics[2];
  16764. }
  16765. } else {
  16766. glyphWidth = glyph.width;
  16767. }
  16768. var glyphUnicode = glyph.unicode;
  16769. if (NormalizedUnicodes[glyphUnicode] !== undefined) {
  16770. glyphUnicode = NormalizedUnicodes[glyphUnicode];
  16771. }
  16772. glyphUnicode = reverseIfRtl(glyphUnicode);
  16773. // The following will calculate the x and y of the individual glyphs.
  16774. // if (font.vertical) {
  16775. // tsm[4] -= vMetricX * Math.abs(textState.fontSize) *
  16776. // textState.fontMatrix[0];
  16777. // tsm[5] -= vMetricY * textState.fontSize *
  16778. // textState.fontMatrix[0];
  16779. // }
  16780. // var trm = Util.transform(textState.textMatrix, tsm);
  16781. // var pt = Util.applyTransform([trm[4], trm[5]], textState.ctm);
  16782. // var x = pt[0];
  16783. // var y = pt[1];
  16784. var tx = 0;
  16785. var ty = 0;
  16786. if (!font.vertical) {
  16787. var w0 = glyphWidth * textState.fontMatrix[0];
  16788. tx = (w0 * textState.fontSize + textState.charSpacing) *
  16789. textState.textHScale;
  16790. width += tx;
  16791. } else {
  16792. var w1 = glyphWidth * textState.fontMatrix[0];
  16793. ty = w1 * textState.fontSize + textState.charSpacing;
  16794. height += ty;
  16795. }
  16796. textState.translateTextMatrix(tx, ty);
  16797. textChunk.str += glyphUnicode;
  16798. }
  16799. var a = textState.textLineMatrix[0];
  16800. var b = textState.textLineMatrix[1];
  16801. var scaleLineX = Math.sqrt(a * a + b * b);
  16802. a = textState.ctm[0];
  16803. b = textState.ctm[1];
  16804. var scaleCtmX = Math.sqrt(a * a + b * b);
  16805. if (!font.vertical) {
  16806. textChunk.width += width * scaleCtmX * scaleLineX;
  16807. } else {
  16808. textChunk.height += Math.abs(height * scaleCtmX * scaleLineX);
  16809. }
  16810. return textChunk;
  16811. }
  16812. var timeSlotManager = new TimeSlotManager();
  16813. return new Promise(function next(resolve, reject) {
  16814. timeSlotManager.reset();
  16815. var stop;
  16816. while (!(stop = timeSlotManager.check()) &&
  16817. (operation = preprocessor.read())) {
  16818. textState = stateManager.state;
  16819. var fn = operation.fn;
  16820. var args = operation.args;
  16821. switch (fn | 0) {
  16822. case OPS.setFont:
  16823. textState.fontSize = args[1];
  16824. return handleSetFont(args[0].name).then(function() {
  16825. next(resolve, reject);
  16826. }, reject);
  16827. case OPS.setTextRise:
  16828. textState.textRise = args[0];
  16829. break;
  16830. case OPS.setHScale:
  16831. textState.textHScale = args[0] / 100;
  16832. break;
  16833. case OPS.setLeading:
  16834. textState.leading = args[0];
  16835. break;
  16836. case OPS.moveText:
  16837. textState.translateTextLineMatrix(args[0], args[1]);
  16838. textState.textMatrix = textState.textLineMatrix.slice();
  16839. break;
  16840. case OPS.setLeadingMoveText:
  16841. textState.leading = -args[1];
  16842. textState.translateTextLineMatrix(args[0], args[1]);
  16843. textState.textMatrix = textState.textLineMatrix.slice();
  16844. break;
  16845. case OPS.nextLine:
  16846. textState.carriageReturn();
  16847. break;
  16848. case OPS.setTextMatrix:
  16849. textState.setTextMatrix(args[0], args[1], args[2], args[3],
  16850. args[4], args[5]);
  16851. textState.setTextLineMatrix(args[0], args[1], args[2], args[3],
  16852. args[4], args[5]);
  16853. break;
  16854. case OPS.setCharSpacing:
  16855. textState.charSpacing = args[0];
  16856. break;
  16857. case OPS.setWordSpacing:
  16858. textState.wordSpacing = args[0];
  16859. break;
  16860. case OPS.beginText:
  16861. textState.textMatrix = IDENTITY_MATRIX.slice();
  16862. textState.textLineMatrix = IDENTITY_MATRIX.slice();
  16863. break;
  16864. case OPS.showSpacedText:
  16865. var items = args[0];
  16866. var textChunk = newTextChunk();
  16867. var offset;
  16868. for (var j = 0, jj = items.length; j < jj; j++) {
  16869. if (typeof items[j] === 'string') {
  16870. buildTextGeometry(items[j], textChunk);
  16871. } else {
  16872. var val = items[j] / 1000;
  16873. if (!textState.font.vertical) {
  16874. offset = -val * textState.fontSize * textState.textHScale *
  16875. textState.textMatrix[0];
  16876. textState.translateTextMatrix(offset, 0);
  16877. textChunk.width += offset;
  16878. } else {
  16879. offset = -val * textState.fontSize *
  16880. textState.textMatrix[3];
  16881. textState.translateTextMatrix(0, offset);
  16882. textChunk.height += offset;
  16883. }
  16884. if (items[j] < 0 && textState.font.spaceWidth > 0) {
  16885. var fakeSpaces = -items[j] / textState.font.spaceWidth;
  16886. if (fakeSpaces > MULTI_SPACE_FACTOR) {
  16887. fakeSpaces = Math.round(fakeSpaces);
  16888. while (fakeSpaces--) {
  16889. textChunk.str += ' ';
  16890. }
  16891. } else if (fakeSpaces > SPACE_FACTOR) {
  16892. textChunk.str += ' ';
  16893. }
  16894. }
  16895. }
  16896. }
  16897. bidiTexts.push(runBidi(textChunk));
  16898. break;
  16899. case OPS.showText:
  16900. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  16901. break;
  16902. case OPS.nextLineShowText:
  16903. textState.carriageReturn();
  16904. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  16905. break;
  16906. case OPS.nextLineSetSpacingShowText:
  16907. textState.wordSpacing = args[0];
  16908. textState.charSpacing = args[1];
  16909. textState.carriageReturn();
  16910. bidiTexts.push(runBidi(buildTextGeometry(args[2])));
  16911. break;
  16912. case OPS.paintXObject:
  16913. if (args[0].code) {
  16914. break;
  16915. }
  16916. if (!xobjs) {
  16917. xobjs = (resources.get('XObject') || Dict.empty);
  16918. }
  16919. var name = args[0].name;
  16920. if (xobjsCache.key === name) {
  16921. if (xobjsCache.texts) {
  16922. Util.appendToArray(bidiTexts, xobjsCache.texts.items);
  16923. Util.extendObj(textContent.styles, xobjsCache.texts.styles);
  16924. }
  16925. break;
  16926. }
  16927. var xobj = xobjs.get(name);
  16928. if (!xobj) {
  16929. break;
  16930. }
  16931. assert(isStream(xobj), 'XObject should be a stream');
  16932. var type = xobj.dict.get('Subtype');
  16933. assert(isName(type),
  16934. 'XObject should have a Name subtype');
  16935. if ('Form' !== type.name) {
  16936. xobjsCache.key = name;
  16937. xobjsCache.texts = null;
  16938. break;
  16939. }
  16940. stateManager.save();
  16941. var matrix = xobj.dict.get('Matrix');
  16942. if (isArray(matrix) && matrix.length === 6) {
  16943. stateManager.transform(matrix);
  16944. }
  16945. return self.getTextContent(xobj,
  16946. xobj.dict.get('Resources') || resources, stateManager).
  16947. then(function (formTextContent) {
  16948. Util.appendToArray(bidiTexts, formTextContent.items);
  16949. Util.extendObj(textContent.styles, formTextContent.styles);
  16950. stateManager.restore();
  16951. xobjsCache.key = name;
  16952. xobjsCache.texts = formTextContent;
  16953. next(resolve, reject);
  16954. }, reject);
  16955. case OPS.setGState:
  16956. var dictName = args[0];
  16957. var extGState = resources.get('ExtGState');
  16958. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  16959. break;
  16960. }
  16961. var gsStateMap = extGState.get(dictName.name);
  16962. var gsStateFont = null;
  16963. for (var key in gsStateMap) {
  16964. if (key === 'Font') {
  16965. assert(!gsStateFont);
  16966. gsStateFont = gsStateMap[key];
  16967. }
  16968. }
  16969. if (gsStateFont) {
  16970. textState.fontSize = gsStateFont[1];
  16971. return handleSetFont(gsStateFont[0]).then(function() {
  16972. next(resolve, reject);
  16973. }, reject);
  16974. }
  16975. break;
  16976. } // switch
  16977. } // while
  16978. if (stop) {
  16979. deferred.then(function () {
  16980. next(resolve, reject);
  16981. });
  16982. return;
  16983. }
  16984. resolve(textContent);
  16985. });
  16986. },
  16987. extractDataStructures: function
  16988. partialEvaluatorExtractDataStructures(dict, baseDict,
  16989. xref, properties) {
  16990. // 9.10.2
  16991. var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode'));
  16992. if (toUnicode) {
  16993. properties.toUnicode = this.readToUnicode(toUnicode, xref, properties);
  16994. }
  16995. if (properties.composite) {
  16996. // CIDSystemInfo helps to match CID to glyphs
  16997. var cidSystemInfo = dict.get('CIDSystemInfo');
  16998. if (isDict(cidSystemInfo)) {
  16999. properties.cidSystemInfo = {
  17000. registry: cidSystemInfo.get('Registry'),
  17001. ordering: cidSystemInfo.get('Ordering'),
  17002. supplement: cidSystemInfo.get('Supplement')
  17003. };
  17004. }
  17005. var cidToGidMap = dict.get('CIDToGIDMap');
  17006. if (isStream(cidToGidMap)) {
  17007. properties.cidToGidMap = this.readCidToGidMap(cidToGidMap);
  17008. }
  17009. }
  17010. // Based on 9.6.6 of the spec the encoding can come from multiple places
  17011. // and depends on the font type. The base encoding and differences are
  17012. // read here, but the encoding that is actually used is chosen during
  17013. // glyph mapping in the font.
  17014. // TODO: Loading the built in encoding in the font would allow the
  17015. // differences to be merged in here not require us to hold on to it.
  17016. var differences = [];
  17017. var baseEncodingName = null;
  17018. var encoding;
  17019. if (dict.has('Encoding')) {
  17020. encoding = dict.get('Encoding');
  17021. if (isDict(encoding)) {
  17022. baseEncodingName = encoding.get('BaseEncoding');
  17023. baseEncodingName = (isName(baseEncodingName) ?
  17024. baseEncodingName.name : null);
  17025. // Load the differences between the base and original
  17026. if (encoding.has('Differences')) {
  17027. var diffEncoding = encoding.get('Differences');
  17028. var index = 0;
  17029. for (var j = 0, jj = diffEncoding.length; j < jj; j++) {
  17030. var data = diffEncoding[j];
  17031. if (isNum(data)) {
  17032. index = data;
  17033. } else {
  17034. differences[index++] = data.name;
  17035. }
  17036. }
  17037. }
  17038. } else if (isName(encoding)) {
  17039. baseEncodingName = encoding.name;
  17040. } else {
  17041. error('Encoding is not a Name nor a Dict');
  17042. }
  17043. // According to table 114 if the encoding is a named encoding it must be
  17044. // one of these predefined encodings.
  17045. if ((baseEncodingName !== 'MacRomanEncoding' &&
  17046. baseEncodingName !== 'MacExpertEncoding' &&
  17047. baseEncodingName !== 'WinAnsiEncoding')) {
  17048. baseEncodingName = null;
  17049. }
  17050. }
  17051. if (baseEncodingName) {
  17052. properties.defaultEncoding = Encodings[baseEncodingName].slice();
  17053. } else {
  17054. encoding = (properties.type === 'TrueType' ?
  17055. Encodings.WinAnsiEncoding : Encodings.StandardEncoding);
  17056. // The Symbolic attribute can be misused for regular fonts
  17057. // Heuristic: we have to check if the font is a standard one also
  17058. if (!!(properties.flags & FontFlags.Symbolic)) {
  17059. encoding = (!properties.file && /Symbol/i.test(properties.name) ?
  17060. Encodings.SymbolSetEncoding :
  17061. Encodings.MacRomanEncoding);
  17062. }
  17063. properties.defaultEncoding = encoding;
  17064. }
  17065. properties.differences = differences;
  17066. properties.baseEncodingName = baseEncodingName;
  17067. properties.dict = dict;
  17068. },
  17069. readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) {
  17070. var cmapObj = toUnicode;
  17071. if (isName(cmapObj)) {
  17072. return CMapFactory.create(cmapObj).map;
  17073. } else if (isStream(cmapObj)) {
  17074. var cmap = CMapFactory.create(cmapObj).map;
  17075. // Convert UTF-16BE
  17076. // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
  17077. // to iterate over all keys.
  17078. cmap.forEach(function(token, i) {
  17079. var str = [];
  17080. for (var k = 0; k < token.length; k += 2) {
  17081. var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  17082. if ((w1 & 0xF800) !== 0xD800) { // w1 < 0xD800 || w1 > 0xDFFF
  17083. str.push(w1);
  17084. continue;
  17085. }
  17086. k += 2;
  17087. var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  17088. str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
  17089. }
  17090. cmap[i] = String.fromCharCode.apply(String, str);
  17091. });
  17092. return cmap;
  17093. }
  17094. return null;
  17095. },
  17096. readCidToGidMap: function PartialEvaluator_readCidToGidMap(cidToGidStream) {
  17097. // Extract the encoding from the CIDToGIDMap
  17098. var glyphsData = cidToGidStream.getBytes();
  17099. // Set encoding 0 to later verify the font has an encoding
  17100. var result = [];
  17101. for (var j = 0, jj = glyphsData.length; j < jj; j++) {
  17102. var glyphID = (glyphsData[j++] << 8) | glyphsData[j];
  17103. if (glyphID === 0) {
  17104. continue;
  17105. }
  17106. var code = j >> 1;
  17107. result[code] = glyphID;
  17108. }
  17109. return result;
  17110. },
  17111. extractWidths: function PartialEvaluator_extractWidths(dict, xref,
  17112. descriptor,
  17113. properties) {
  17114. var glyphsWidths = [];
  17115. var defaultWidth = 0;
  17116. var glyphsVMetrics = [];
  17117. var defaultVMetrics;
  17118. var i, ii, j, jj, start, code, widths;
  17119. if (properties.composite) {
  17120. defaultWidth = dict.get('DW') || 1000;
  17121. widths = dict.get('W');
  17122. if (widths) {
  17123. for (i = 0, ii = widths.length; i < ii; i++) {
  17124. start = widths[i++];
  17125. code = xref.fetchIfRef(widths[i]);
  17126. if (isArray(code)) {
  17127. for (j = 0, jj = code.length; j < jj; j++) {
  17128. glyphsWidths[start++] = code[j];
  17129. }
  17130. } else {
  17131. var width = widths[++i];
  17132. for (j = start; j <= code; j++) {
  17133. glyphsWidths[j] = width;
  17134. }
  17135. }
  17136. }
  17137. }
  17138. if (properties.vertical) {
  17139. var vmetrics = (dict.get('DW2') || [880, -1000]);
  17140. defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
  17141. vmetrics = dict.get('W2');
  17142. if (vmetrics) {
  17143. for (i = 0, ii = vmetrics.length; i < ii; i++) {
  17144. start = vmetrics[i++];
  17145. code = xref.fetchIfRef(vmetrics[i]);
  17146. if (isArray(code)) {
  17147. for (j = 0, jj = code.length; j < jj; j++) {
  17148. glyphsVMetrics[start++] = [code[j++], code[j++], code[j]];
  17149. }
  17150. } else {
  17151. var vmetric = [vmetrics[++i], vmetrics[++i], vmetrics[++i]];
  17152. for (j = start; j <= code; j++) {
  17153. glyphsVMetrics[j] = vmetric;
  17154. }
  17155. }
  17156. }
  17157. }
  17158. }
  17159. } else {
  17160. var firstChar = properties.firstChar;
  17161. widths = dict.get('Widths');
  17162. if (widths) {
  17163. j = firstChar;
  17164. for (i = 0, ii = widths.length; i < ii; i++) {
  17165. glyphsWidths[j++] = widths[i];
  17166. }
  17167. defaultWidth = (parseFloat(descriptor.get('MissingWidth')) || 0);
  17168. } else {
  17169. // Trying get the BaseFont metrics (see comment above).
  17170. var baseFontName = dict.get('BaseFont');
  17171. if (isName(baseFontName)) {
  17172. var metrics = this.getBaseFontMetrics(baseFontName.name);
  17173. glyphsWidths = this.buildCharCodeToWidth(metrics.widths,
  17174. properties);
  17175. defaultWidth = metrics.defaultWidth;
  17176. }
  17177. }
  17178. }
  17179. // Heuristic: detection of monospace font by checking all non-zero widths
  17180. var isMonospace = true;
  17181. var firstWidth = defaultWidth;
  17182. for (var glyph in glyphsWidths) {
  17183. var glyphWidth = glyphsWidths[glyph];
  17184. if (!glyphWidth) {
  17185. continue;
  17186. }
  17187. if (!firstWidth) {
  17188. firstWidth = glyphWidth;
  17189. continue;
  17190. }
  17191. if (firstWidth != glyphWidth) {
  17192. isMonospace = false;
  17193. break;
  17194. }
  17195. }
  17196. if (isMonospace) {
  17197. properties.flags |= FontFlags.FixedPitch;
  17198. }
  17199. properties.defaultWidth = defaultWidth;
  17200. properties.widths = glyphsWidths;
  17201. properties.defaultVMetrics = defaultVMetrics;
  17202. properties.vmetrics = glyphsVMetrics;
  17203. },
  17204. isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) {
  17205. // Simulating descriptor flags attribute
  17206. var fontNameWoStyle = baseFontName.split('-')[0];
  17207. return (fontNameWoStyle in serifFonts) ||
  17208. (fontNameWoStyle.search(/serif/gi) !== -1);
  17209. },
  17210. getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
  17211. var defaultWidth = 0;
  17212. var widths = [];
  17213. var monospace = false;
  17214. var lookupName = (stdFontMap[name] || name);
  17215. if (!(lookupName in Metrics)) {
  17216. // Use default fonts for looking up font metrics if the passed
  17217. // font is not a base font
  17218. if (this.isSerifFont(name)) {
  17219. lookupName = 'Times-Roman';
  17220. } else {
  17221. lookupName = 'Helvetica';
  17222. }
  17223. }
  17224. var glyphWidths = Metrics[lookupName];
  17225. if (isNum(glyphWidths)) {
  17226. defaultWidth = glyphWidths;
  17227. monospace = true;
  17228. } else {
  17229. widths = glyphWidths;
  17230. }
  17231. return {
  17232. defaultWidth: defaultWidth,
  17233. monospace: monospace,
  17234. widths: widths
  17235. };
  17236. },
  17237. buildCharCodeToWidth:
  17238. function PartialEvaluator_bulildCharCodeToWidth(widthsByGlyphName,
  17239. properties) {
  17240. var widths = Object.create(null);
  17241. var differences = properties.differences;
  17242. var encoding = properties.defaultEncoding;
  17243. for (var charCode = 0; charCode < 256; charCode++) {
  17244. if (charCode in differences &&
  17245. widthsByGlyphName[differences[charCode]]) {
  17246. widths[charCode] = widthsByGlyphName[differences[charCode]];
  17247. continue;
  17248. }
  17249. if (charCode in encoding && widthsByGlyphName[encoding[charCode]]) {
  17250. widths[charCode] = widthsByGlyphName[encoding[charCode]];
  17251. continue;
  17252. }
  17253. }
  17254. return widths;
  17255. },
  17256. preEvaluateFont: function PartialEvaluator_preEvaluateFont(dict, xref) {
  17257. var baseDict = dict;
  17258. var type = dict.get('Subtype');
  17259. assert(isName(type), 'invalid font Subtype');
  17260. var composite = false;
  17261. var uint8array;
  17262. if (type.name === 'Type0') {
  17263. // If font is a composite
  17264. // - get the descendant font
  17265. // - set the type according to the descendant font
  17266. // - get the FontDescriptor from the descendant font
  17267. var df = dict.get('DescendantFonts');
  17268. if (!df) {
  17269. error('Descendant fonts are not specified');
  17270. }
  17271. dict = (isArray(df) ? xref.fetchIfRef(df[0]) : df);
  17272. type = dict.get('Subtype');
  17273. assert(isName(type), 'invalid font Subtype');
  17274. composite = true;
  17275. }
  17276. var descriptor = dict.get('FontDescriptor');
  17277. if (descriptor) {
  17278. var hash = new MurmurHash3_64();
  17279. var encoding = baseDict.getRaw('Encoding');
  17280. if (isName(encoding)) {
  17281. hash.update(encoding.name);
  17282. } else if (isRef(encoding)) {
  17283. hash.update(encoding.num + '_' + encoding.gen);
  17284. }
  17285. var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode');
  17286. if (isStream(toUnicode)) {
  17287. var stream = toUnicode.str || toUnicode;
  17288. uint8array = stream.buffer ?
  17289. new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) :
  17290. new Uint8Array(stream.bytes.buffer,
  17291. stream.start, stream.end - stream.start);
  17292. hash.update(uint8array);
  17293. } else if (isName(toUnicode)) {
  17294. hash.update(toUnicode.name);
  17295. }
  17296. var widths = dict.get('Widths') || baseDict.get('Widths');
  17297. if (widths) {
  17298. uint8array = new Uint8Array(new Uint32Array(widths).buffer);
  17299. hash.update(uint8array);
  17300. }
  17301. }
  17302. return {
  17303. descriptor: descriptor,
  17304. dict: dict,
  17305. baseDict: baseDict,
  17306. composite: composite,
  17307. type: type.name,
  17308. hash: hash ? hash.hexdigest() : ''
  17309. };
  17310. },
  17311. translateFont: function PartialEvaluator_translateFont(preEvaluatedFont,
  17312. xref) {
  17313. var baseDict = preEvaluatedFont.baseDict;
  17314. var dict = preEvaluatedFont.dict;
  17315. var composite = preEvaluatedFont.composite;
  17316. var descriptor = preEvaluatedFont.descriptor;
  17317. var type = preEvaluatedFont.type;
  17318. var maxCharIndex = (composite ? 0xFFFF : 0xFF);
  17319. var properties;
  17320. if (!descriptor) {
  17321. if (type === 'Type3') {
  17322. // FontDescriptor is only required for Type3 fonts when the document
  17323. // is a tagged pdf. Create a barbebones one to get by.
  17324. descriptor = new Dict(null);
  17325. descriptor.set('FontName', Name.get(type));
  17326. } else {
  17327. // Before PDF 1.5 if the font was one of the base 14 fonts, having a
  17328. // FontDescriptor was not required.
  17329. // This case is here for compatibility.
  17330. var baseFontName = dict.get('BaseFont');
  17331. if (!isName(baseFontName)) {
  17332. error('Base font is not specified');
  17333. }
  17334. // Using base font name as a font name.
  17335. baseFontName = baseFontName.name.replace(/[,_]/g, '-');
  17336. var metrics = this.getBaseFontMetrics(baseFontName);
  17337. // Simulating descriptor flags attribute
  17338. var fontNameWoStyle = baseFontName.split('-')[0];
  17339. var flags =
  17340. (this.isSerifFont(fontNameWoStyle) ? FontFlags.Serif : 0) |
  17341. (metrics.monospace ? FontFlags.FixedPitch : 0) |
  17342. (symbolsFonts[fontNameWoStyle] ? FontFlags.Symbolic :
  17343. FontFlags.Nonsymbolic);
  17344. properties = {
  17345. type: type,
  17346. name: baseFontName,
  17347. widths: metrics.widths,
  17348. defaultWidth: metrics.defaultWidth,
  17349. flags: flags,
  17350. firstChar: 0,
  17351. lastChar: maxCharIndex
  17352. };
  17353. this.extractDataStructures(dict, dict, xref, properties);
  17354. properties.widths = this.buildCharCodeToWidth(metrics.widths,
  17355. properties);
  17356. return new Font(baseFontName, null, properties);
  17357. }
  17358. }
  17359. // According to the spec if 'FontDescriptor' is declared, 'FirstChar',
  17360. // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem
  17361. // to ignore this rule when a variant of a standart font is used.
  17362. // TODO Fill the width array depending on which of the base font this is
  17363. // a variant.
  17364. var firstChar = (dict.get('FirstChar') || 0);
  17365. var lastChar = (dict.get('LastChar') || maxCharIndex);
  17366. var fontName = descriptor.get('FontName');
  17367. var baseFont = dict.get('BaseFont');
  17368. // Some bad PDFs have a string as the font name.
  17369. if (isString(fontName)) {
  17370. fontName = Name.get(fontName);
  17371. }
  17372. if (isString(baseFont)) {
  17373. baseFont = Name.get(baseFont);
  17374. }
  17375. if (type !== 'Type3') {
  17376. var fontNameStr = fontName && fontName.name;
  17377. var baseFontStr = baseFont && baseFont.name;
  17378. if (fontNameStr !== baseFontStr) {
  17379. info('The FontDescriptor\'s FontName is "' + fontNameStr +
  17380. '" but should be the same as the Font\'s BaseFont "' +
  17381. baseFontStr + '"');
  17382. // Workaround for cases where e.g. fontNameStr = 'Arial' and
  17383. // baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
  17384. if (fontNameStr && baseFontStr &&
  17385. baseFontStr.indexOf(fontNameStr) === 0) {
  17386. fontName = baseFont;
  17387. }
  17388. }
  17389. }
  17390. fontName = (fontName || baseFont);
  17391. assert(isName(fontName), 'invalid font name');
  17392. var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
  17393. if (fontFile) {
  17394. if (fontFile.dict) {
  17395. var subtype = fontFile.dict.get('Subtype');
  17396. if (subtype) {
  17397. subtype = subtype.name;
  17398. }
  17399. var length1 = fontFile.dict.get('Length1');
  17400. var length2 = fontFile.dict.get('Length2');
  17401. }
  17402. }
  17403. properties = {
  17404. type: type,
  17405. name: fontName.name,
  17406. subtype: subtype,
  17407. file: fontFile,
  17408. length1: length1,
  17409. length2: length2,
  17410. loadedName: baseDict.loadedName,
  17411. composite: composite,
  17412. wideChars: composite,
  17413. fixedPitch: false,
  17414. fontMatrix: (dict.get('FontMatrix') || FONT_IDENTITY_MATRIX),
  17415. firstChar: firstChar || 0,
  17416. lastChar: (lastChar || maxCharIndex),
  17417. bbox: descriptor.get('FontBBox'),
  17418. ascent: descriptor.get('Ascent'),
  17419. descent: descriptor.get('Descent'),
  17420. xHeight: descriptor.get('XHeight'),
  17421. capHeight: descriptor.get('CapHeight'),
  17422. flags: descriptor.get('Flags'),
  17423. italicAngle: descriptor.get('ItalicAngle'),
  17424. coded: false
  17425. };
  17426. if (composite) {
  17427. var cidEncoding = baseDict.get('Encoding');
  17428. if (isName(cidEncoding)) {
  17429. properties.cidEncoding = cidEncoding.name;
  17430. }
  17431. properties.cMap = CMapFactory.create(cidEncoding,
  17432. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  17433. properties.vertical = properties.cMap.vertical;
  17434. }
  17435. this.extractDataStructures(dict, baseDict, xref, properties);
  17436. this.extractWidths(dict, xref, descriptor, properties);
  17437. if (type === 'Type3') {
  17438. properties.isType3Font = true;
  17439. }
  17440. return new Font(fontName.name, fontFile, properties);
  17441. }
  17442. };
  17443. return PartialEvaluator;
  17444. })();
  17445. var TranslatedFont = (function TranslatedFontClosure() {
  17446. function TranslatedFont(loadedName, font, dict) {
  17447. this.loadedName = loadedName;
  17448. this.font = font;
  17449. this.dict = dict;
  17450. this.type3Loaded = null;
  17451. this.sent = false;
  17452. }
  17453. TranslatedFont.prototype = {
  17454. send: function (handler) {
  17455. if (this.sent) {
  17456. return;
  17457. }
  17458. var fontData = this.font.exportData();
  17459. handler.send('commonobj', [
  17460. this.loadedName,
  17461. 'Font',
  17462. fontData
  17463. ]);
  17464. this.sent = true;
  17465. },
  17466. loadType3Data: function (evaluator, resources, parentOperatorList) {
  17467. assert(this.font.isType3Font);
  17468. if (this.type3Loaded) {
  17469. return this.type3Loaded;
  17470. }
  17471. var translatedFont = this.font;
  17472. var loadCharProcsPromise = Promise.resolve();
  17473. var charProcs = this.dict.get('CharProcs').getAll();
  17474. var fontResources = this.dict.get('Resources') || resources;
  17475. var charProcKeys = Object.keys(charProcs);
  17476. var charProcOperatorList = {};
  17477. for (var i = 0, n = charProcKeys.length; i < n; ++i) {
  17478. loadCharProcsPromise = loadCharProcsPromise.then(function (key) {
  17479. var glyphStream = charProcs[key];
  17480. var operatorList = new OperatorList();
  17481. return evaluator.getOperatorList(glyphStream, fontResources,
  17482. operatorList).
  17483. then(function () {
  17484. charProcOperatorList[key] = operatorList.getIR();
  17485. // Add the dependencies to the parent operator list so they are
  17486. // resolved before sub operator list is executed synchronously.
  17487. parentOperatorList.addDependencies(operatorList.dependencies);
  17488. });
  17489. }.bind(this, charProcKeys[i]));
  17490. }
  17491. this.type3Loaded = loadCharProcsPromise.then(function () {
  17492. translatedFont.charProcOperatorList = charProcOperatorList;
  17493. });
  17494. return this.type3Loaded;
  17495. }
  17496. };
  17497. return TranslatedFont;
  17498. })();
  17499. var OperatorList = (function OperatorListClosure() {
  17500. var CHUNK_SIZE = 1000;
  17501. var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
  17502. function getTransfers(queue) {
  17503. var transfers = [];
  17504. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  17505. for (var i = 0, ii = queue.length; i < ii; i++) {
  17506. switch (fnArray[i]) {
  17507. case OPS.paintInlineImageXObject:
  17508. case OPS.paintInlineImageXObjectGroup:
  17509. case OPS.paintImageMaskXObject:
  17510. var arg = argsArray[i][0]; // first param in imgData
  17511. if (!arg.cached) {
  17512. transfers.push(arg.data.buffer);
  17513. }
  17514. break;
  17515. }
  17516. }
  17517. return transfers;
  17518. }
  17519. function OperatorList(intent, messageHandler, pageIndex) {
  17520. this.messageHandler = messageHandler;
  17521. this.fnArray = [];
  17522. this.argsArray = [];
  17523. this.dependencies = {};
  17524. this.pageIndex = pageIndex;
  17525. this.intent = intent;
  17526. }
  17527. OperatorList.prototype = {
  17528. get length() {
  17529. return this.argsArray.length;
  17530. },
  17531. addOp: function(fn, args) {
  17532. this.fnArray.push(fn);
  17533. this.argsArray.push(args);
  17534. if (this.messageHandler) {
  17535. if (this.fnArray.length >= CHUNK_SIZE) {
  17536. this.flush();
  17537. } else if (this.fnArray.length >= CHUNK_SIZE_ABOUT &&
  17538. (fn === OPS.restore || fn === OPS.endText)) {
  17539. // heuristic to flush on boundary of restore or endText
  17540. this.flush();
  17541. }
  17542. }
  17543. },
  17544. addDependency: function(dependency) {
  17545. if (dependency in this.dependencies) {
  17546. return;
  17547. }
  17548. this.dependencies[dependency] = true;
  17549. this.addOp(OPS.dependency, [dependency]);
  17550. },
  17551. addDependencies: function(dependencies) {
  17552. for (var key in dependencies) {
  17553. this.addDependency(key);
  17554. }
  17555. },
  17556. addOpList: function(opList) {
  17557. Util.extendObj(this.dependencies, opList.dependencies);
  17558. for (var i = 0, ii = opList.length; i < ii; i++) {
  17559. this.addOp(opList.fnArray[i], opList.argsArray[i]);
  17560. }
  17561. },
  17562. getIR: function() {
  17563. return {
  17564. fnArray: this.fnArray,
  17565. argsArray: this.argsArray,
  17566. length: this.length
  17567. };
  17568. },
  17569. flush: function(lastChunk) {
  17570. new QueueOptimizer().optimize(this);
  17571. var transfers = getTransfers(this);
  17572. this.messageHandler.send('RenderPageChunk', {
  17573. operatorList: {
  17574. fnArray: this.fnArray,
  17575. argsArray: this.argsArray,
  17576. lastChunk: lastChunk,
  17577. length: this.length
  17578. },
  17579. pageIndex: this.pageIndex,
  17580. intent: this.intent
  17581. }, transfers);
  17582. this.dependencies = {};
  17583. this.fnArray.length = 0;
  17584. this.argsArray.length = 0;
  17585. }
  17586. };
  17587. return OperatorList;
  17588. })();
  17589. var StateManager = (function StateManagerClosure() {
  17590. function StateManager(initialState) {
  17591. this.state = initialState;
  17592. this.stateStack = [];
  17593. }
  17594. StateManager.prototype = {
  17595. save: function () {
  17596. var old = this.state;
  17597. this.stateStack.push(this.state);
  17598. this.state = old.clone();
  17599. },
  17600. restore: function () {
  17601. var prev = this.stateStack.pop();
  17602. if (prev) {
  17603. this.state = prev;
  17604. }
  17605. },
  17606. transform: function (args) {
  17607. this.state.ctm = Util.transform(this.state.ctm, args);
  17608. }
  17609. };
  17610. return StateManager;
  17611. })();
  17612. var TextState = (function TextStateClosure() {
  17613. function TextState() {
  17614. this.ctm = new Float32Array(IDENTITY_MATRIX);
  17615. this.fontSize = 0;
  17616. this.font = null;
  17617. this.fontMatrix = FONT_IDENTITY_MATRIX;
  17618. this.textMatrix = IDENTITY_MATRIX.slice();
  17619. this.textLineMatrix = IDENTITY_MATRIX.slice();
  17620. this.charSpacing = 0;
  17621. this.wordSpacing = 0;
  17622. this.leading = 0;
  17623. this.textHScale = 1;
  17624. this.textRise = 0;
  17625. }
  17626. TextState.prototype = {
  17627. setTextMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  17628. var m = this.textMatrix;
  17629. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  17630. },
  17631. setTextLineMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  17632. var m = this.textLineMatrix;
  17633. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  17634. },
  17635. translateTextMatrix: function TextState_translateTextMatrix(x, y) {
  17636. var m = this.textMatrix;
  17637. m[4] = m[0] * x + m[2] * y + m[4];
  17638. m[5] = m[1] * x + m[3] * y + m[5];
  17639. },
  17640. translateTextLineMatrix: function TextState_translateTextMatrix(x, y) {
  17641. var m = this.textLineMatrix;
  17642. m[4] = m[0] * x + m[2] * y + m[4];
  17643. m[5] = m[1] * x + m[3] * y + m[5];
  17644. },
  17645. calcRenderMatrix: function TextState_calcRendeMatrix(ctm) {
  17646. // 9.4.4 Text Space Details
  17647. var tsm = [this.fontSize * this.textHScale, 0,
  17648. 0, this.fontSize,
  17649. 0, this.textRise];
  17650. return Util.transform(ctm, Util.transform(this.textMatrix, tsm));
  17651. },
  17652. carriageReturn: function TextState_carriageReturn() {
  17653. this.translateTextLineMatrix(0, -this.leading);
  17654. this.textMatrix = this.textLineMatrix.slice();
  17655. },
  17656. clone: function TextState_clone() {
  17657. var clone = Object.create(this);
  17658. clone.textMatrix = this.textMatrix.slice();
  17659. clone.textLineMatrix = this.textLineMatrix.slice();
  17660. clone.fontMatrix = this.fontMatrix.slice();
  17661. return clone;
  17662. }
  17663. };
  17664. return TextState;
  17665. })();
  17666. var EvalState = (function EvalStateClosure() {
  17667. function EvalState() {
  17668. this.ctm = new Float32Array(IDENTITY_MATRIX);
  17669. this.font = null;
  17670. this.textRenderingMode = TextRenderingMode.FILL;
  17671. this.fillColorSpace = ColorSpace.singletons.gray;
  17672. this.strokeColorSpace = ColorSpace.singletons.gray;
  17673. }
  17674. EvalState.prototype = {
  17675. clone: function CanvasExtraState_clone() {
  17676. return Object.create(this);
  17677. },
  17678. };
  17679. return EvalState;
  17680. })();
  17681. var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
  17682. // Specifies properties for each command
  17683. //
  17684. // If variableArgs === true: [0, `numArgs`] expected
  17685. // If variableArgs === false: exactly `numArgs` expected
  17686. var OP_MAP = {
  17687. // Graphic state
  17688. w: { id: OPS.setLineWidth, numArgs: 1, variableArgs: false },
  17689. J: { id: OPS.setLineCap, numArgs: 1, variableArgs: false },
  17690. j: { id: OPS.setLineJoin, numArgs: 1, variableArgs: false },
  17691. M: { id: OPS.setMiterLimit, numArgs: 1, variableArgs: false },
  17692. d: { id: OPS.setDash, numArgs: 2, variableArgs: false },
  17693. ri: { id: OPS.setRenderingIntent, numArgs: 1, variableArgs: false },
  17694. i: { id: OPS.setFlatness, numArgs: 1, variableArgs: false },
  17695. gs: { id: OPS.setGState, numArgs: 1, variableArgs: false },
  17696. q: { id: OPS.save, numArgs: 0, variableArgs: false },
  17697. Q: { id: OPS.restore, numArgs: 0, variableArgs: false },
  17698. cm: { id: OPS.transform, numArgs: 6, variableArgs: false },
  17699. // Path
  17700. m: { id: OPS.moveTo, numArgs: 2, variableArgs: false },
  17701. l: { id: OPS.lineTo, numArgs: 2, variableArgs: false },
  17702. c: { id: OPS.curveTo, numArgs: 6, variableArgs: false },
  17703. v: { id: OPS.curveTo2, numArgs: 4, variableArgs: false },
  17704. y: { id: OPS.curveTo3, numArgs: 4, variableArgs: false },
  17705. h: { id: OPS.closePath, numArgs: 0, variableArgs: false },
  17706. re: { id: OPS.rectangle, numArgs: 4, variableArgs: false },
  17707. S: { id: OPS.stroke, numArgs: 0, variableArgs: false },
  17708. s: { id: OPS.closeStroke, numArgs: 0, variableArgs: false },
  17709. f: { id: OPS.fill, numArgs: 0, variableArgs: false },
  17710. F: { id: OPS.fill, numArgs: 0, variableArgs: false },
  17711. 'f*': { id: OPS.eoFill, numArgs: 0, variableArgs: false },
  17712. B: { id: OPS.fillStroke, numArgs: 0, variableArgs: false },
  17713. 'B*': { id: OPS.eoFillStroke, numArgs: 0, variableArgs: false },
  17714. b: { id: OPS.closeFillStroke, numArgs: 0, variableArgs: false },
  17715. 'b*': { id: OPS.closeEOFillStroke, numArgs: 0, variableArgs: false },
  17716. n: { id: OPS.endPath, numArgs: 0, variableArgs: false },
  17717. // Clipping
  17718. W: { id: OPS.clip, numArgs: 0, variableArgs: false },
  17719. 'W*': { id: OPS.eoClip, numArgs: 0, variableArgs: false },
  17720. // Text
  17721. BT: { id: OPS.beginText, numArgs: 0, variableArgs: false },
  17722. ET: { id: OPS.endText, numArgs: 0, variableArgs: false },
  17723. Tc: { id: OPS.setCharSpacing, numArgs: 1, variableArgs: false },
  17724. Tw: { id: OPS.setWordSpacing, numArgs: 1, variableArgs: false },
  17725. Tz: { id: OPS.setHScale, numArgs: 1, variableArgs: false },
  17726. TL: { id: OPS.setLeading, numArgs: 1, variableArgs: false },
  17727. Tf: { id: OPS.setFont, numArgs: 2, variableArgs: false },
  17728. Tr: { id: OPS.setTextRenderingMode, numArgs: 1, variableArgs: false },
  17729. Ts: { id: OPS.setTextRise, numArgs: 1, variableArgs: false },
  17730. Td: { id: OPS.moveText, numArgs: 2, variableArgs: false },
  17731. TD: { id: OPS.setLeadingMoveText, numArgs: 2, variableArgs: false },
  17732. Tm: { id: OPS.setTextMatrix, numArgs: 6, variableArgs: false },
  17733. 'T*': { id: OPS.nextLine, numArgs: 0, variableArgs: false },
  17734. Tj: { id: OPS.showText, numArgs: 1, variableArgs: false },
  17735. TJ: { id: OPS.showSpacedText, numArgs: 1, variableArgs: false },
  17736. '\'': { id: OPS.nextLineShowText, numArgs: 1, variableArgs: false },
  17737. '"': { id: OPS.nextLineSetSpacingShowText, numArgs: 3,
  17738. variableArgs: false },
  17739. // Type3 fonts
  17740. d0: { id: OPS.setCharWidth, numArgs: 2, variableArgs: false },
  17741. d1: { id: OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false },
  17742. // Color
  17743. CS: { id: OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false },
  17744. cs: { id: OPS.setFillColorSpace, numArgs: 1, variableArgs: false },
  17745. SC: { id: OPS.setStrokeColor, numArgs: 4, variableArgs: true },
  17746. SCN: { id: OPS.setStrokeColorN, numArgs: 33, variableArgs: true },
  17747. sc: { id: OPS.setFillColor, numArgs: 4, variableArgs: true },
  17748. scn: { id: OPS.setFillColorN, numArgs: 33, variableArgs: true },
  17749. G: { id: OPS.setStrokeGray, numArgs: 1, variableArgs: false },
  17750. g: { id: OPS.setFillGray, numArgs: 1, variableArgs: false },
  17751. RG: { id: OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false },
  17752. rg: { id: OPS.setFillRGBColor, numArgs: 3, variableArgs: false },
  17753. K: { id: OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false },
  17754. k: { id: OPS.setFillCMYKColor, numArgs: 4, variableArgs: false },
  17755. // Shading
  17756. sh: { id: OPS.shadingFill, numArgs: 1, variableArgs: false },
  17757. // Images
  17758. BI: { id: OPS.beginInlineImage, numArgs: 0, variableArgs: false },
  17759. ID: { id: OPS.beginImageData, numArgs: 0, variableArgs: false },
  17760. EI: { id: OPS.endInlineImage, numArgs: 1, variableArgs: false },
  17761. // XObjects
  17762. Do: { id: OPS.paintXObject, numArgs: 1, variableArgs: false },
  17763. MP: { id: OPS.markPoint, numArgs: 1, variableArgs: false },
  17764. DP: { id: OPS.markPointProps, numArgs: 2, variableArgs: false },
  17765. BMC: { id: OPS.beginMarkedContent, numArgs: 1, variableArgs: false },
  17766. BDC: { id: OPS.beginMarkedContentProps, numArgs: 2,
  17767. variableArgs: false },
  17768. EMC: { id: OPS.endMarkedContent, numArgs: 0, variableArgs: false },
  17769. // Compatibility
  17770. BX: { id: OPS.beginCompat, numArgs: 0, variableArgs: false },
  17771. EX: { id: OPS.endCompat, numArgs: 0, variableArgs: false },
  17772. // (reserved partial commands for the lexer)
  17773. BM: null,
  17774. BD: null,
  17775. 'true': null,
  17776. fa: null,
  17777. fal: null,
  17778. fals: null,
  17779. 'false': null,
  17780. nu: null,
  17781. nul: null,
  17782. 'null': null
  17783. };
  17784. function EvaluatorPreprocessor(stream, xref, stateManager) {
  17785. // TODO(mduan): pass array of knownCommands rather than OP_MAP
  17786. // dictionary
  17787. this.parser = new Parser(new Lexer(stream, OP_MAP), false, xref);
  17788. this.stateManager = stateManager;
  17789. this.nonProcessedArgs = [];
  17790. }
  17791. EvaluatorPreprocessor.prototype = {
  17792. get savedStatesDepth() {
  17793. return this.stateManager.stateStack.length;
  17794. },
  17795. read: function EvaluatorPreprocessor_read() {
  17796. var args = [];
  17797. while (true) {
  17798. var obj = this.parser.getObj();
  17799. if (isEOF(obj)) {
  17800. return null; // no more commands
  17801. }
  17802. if (!isCmd(obj)) {
  17803. // argument
  17804. if (obj !== null) {
  17805. args.push((obj instanceof Dict ? obj.getAll() : obj));
  17806. assert(args.length <= 33, 'Too many arguments');
  17807. }
  17808. continue;
  17809. }
  17810. var cmd = obj.cmd;
  17811. // Check that the command is valid
  17812. var opSpec = OP_MAP[cmd];
  17813. if (!opSpec) {
  17814. warn('Unknown command "' + cmd + '"');
  17815. continue;
  17816. }
  17817. var fn = opSpec.id;
  17818. var numArgs = opSpec.numArgs;
  17819. if (!opSpec.variableArgs) {
  17820. // Some post script commands can be nested, e.g. /F2 /GS2 gs 5.711 Tf
  17821. if (args.length !== numArgs) {
  17822. var nonProcessedArgs = this.nonProcessedArgs;
  17823. while (args.length > numArgs) {
  17824. nonProcessedArgs.push(args.shift());
  17825. }
  17826. while (args.length < numArgs && nonProcessedArgs.length !== 0) {
  17827. args.unshift(nonProcessedArgs.pop());
  17828. }
  17829. }
  17830. if (args.length < numArgs) {
  17831. // If we receive too few args, it's not possible to possible
  17832. // to execute the command, so skip the command
  17833. info('Command ' + fn + ': because expected ' +
  17834. numArgs + ' args, but received ' + args.length +
  17835. ' args; skipping');
  17836. args = [];
  17837. continue;
  17838. }
  17839. } else if (args.length > numArgs) {
  17840. info('Command ' + fn + ': expected [0,' + numArgs +
  17841. '] args, but received ' + args.length + ' args');
  17842. }
  17843. // TODO figure out how to type-check vararg functions
  17844. this.preprocessCommand(fn, args);
  17845. return { fn: fn, args: args };
  17846. }
  17847. },
  17848. preprocessCommand:
  17849. function EvaluatorPreprocessor_preprocessCommand(fn, args) {
  17850. switch (fn | 0) {
  17851. case OPS.save:
  17852. this.stateManager.save();
  17853. break;
  17854. case OPS.restore:
  17855. this.stateManager.restore();
  17856. break;
  17857. case OPS.transform:
  17858. this.stateManager.transform(args);
  17859. break;
  17860. }
  17861. }
  17862. };
  17863. return EvaluatorPreprocessor;
  17864. })();
  17865. var QueueOptimizer = (function QueueOptimizerClosure() {
  17866. function addState(parentState, pattern, fn) {
  17867. var state = parentState;
  17868. for (var i = 0, ii = pattern.length - 1; i < ii; i++) {
  17869. var item = pattern[i];
  17870. state = (state[item] || (state[item] = []));
  17871. }
  17872. state[pattern[pattern.length - 1]] = fn;
  17873. }
  17874. function handlePaintSolidColorImageMask(index, count, fnArray, argsArray) {
  17875. // Handles special case of mainly LaTeX documents which
  17876. // use image masks to draw lines with the current fill style.
  17877. // 'count' groups of (save, transform, paintImageMaskXObject, restore)+
  17878. // have been found at index.
  17879. for (var i = 0; i < count; i++) {
  17880. var arg = argsArray[index + 4 * i + 2];
  17881. var imageMask = arg.length === 1 && arg[0];
  17882. if (imageMask && imageMask.width === 1 && imageMask.height === 1 &&
  17883. (!imageMask.data.length || (imageMask.data.length === 1 &&
  17884. imageMask.data[0] === 0))) {
  17885. fnArray[index + 4 * i + 2] = OPS.paintSolidColorImageMask;
  17886. continue;
  17887. }
  17888. break;
  17889. }
  17890. return count - i;
  17891. }
  17892. var InitialState = [];
  17893. addState(InitialState,
  17894. [OPS.save, OPS.transform, OPS.paintInlineImageXObject, OPS.restore],
  17895. function foundInlineImageGroup(context) {
  17896. // grouping paintInlineImageXObject's into paintInlineImageXObjectGroup
  17897. // searching for (save, transform, paintInlineImageXObject, restore)+
  17898. var MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10;
  17899. var MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200;
  17900. var MAX_WIDTH = 1000;
  17901. var IMAGE_PADDING = 1;
  17902. var fnArray = context.fnArray, argsArray = context.argsArray;
  17903. var j = context.currentOperation - 3, i = j + 4;
  17904. var ii = fnArray.length;
  17905. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  17906. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_INLINE_IMAGES_BLOCK);
  17907. if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) {
  17908. context.currentOperation = i - 1;
  17909. return;
  17910. }
  17911. // assuming that heights of those image is too small (~1 pixel)
  17912. // packing as much as possible by lines
  17913. var maxX = 0;
  17914. var map = [], maxLineHeight = 0;
  17915. var currentX = IMAGE_PADDING, currentY = IMAGE_PADDING;
  17916. var q;
  17917. for (q = 0; q < count; q++) {
  17918. var transform = argsArray[j + (q << 2) + 1];
  17919. var img = argsArray[j + (q << 2) + 2][0];
  17920. if (currentX + img.width > MAX_WIDTH) {
  17921. // starting new line
  17922. maxX = Math.max(maxX, currentX);
  17923. currentY += maxLineHeight + 2 * IMAGE_PADDING;
  17924. currentX = 0;
  17925. maxLineHeight = 0;
  17926. }
  17927. map.push({
  17928. transform: transform,
  17929. x: currentX, y: currentY,
  17930. w: img.width, h: img.height
  17931. });
  17932. currentX += img.width + 2 * IMAGE_PADDING;
  17933. maxLineHeight = Math.max(maxLineHeight, img.height);
  17934. }
  17935. var imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING;
  17936. var imgHeight = currentY + maxLineHeight + IMAGE_PADDING;
  17937. var imgData = new Uint8Array(imgWidth * imgHeight * 4);
  17938. var imgRowSize = imgWidth << 2;
  17939. for (q = 0; q < count; q++) {
  17940. var data = argsArray[j + (q << 2) + 2][0].data;
  17941. // copy image by lines and extends pixels into padding
  17942. var rowSize = map[q].w << 2;
  17943. var dataOffset = 0;
  17944. var offset = (map[q].x + map[q].y * imgWidth) << 2;
  17945. imgData.set(data.subarray(0, rowSize), offset - imgRowSize);
  17946. for (var k = 0, kk = map[q].h; k < kk; k++) {
  17947. imgData.set(data.subarray(dataOffset, dataOffset + rowSize), offset);
  17948. dataOffset += rowSize;
  17949. offset += imgRowSize;
  17950. }
  17951. imgData.set(data.subarray(dataOffset - rowSize, dataOffset), offset);
  17952. while (offset >= 0) {
  17953. data[offset - 4] = data[offset];
  17954. data[offset - 3] = data[offset + 1];
  17955. data[offset - 2] = data[offset + 2];
  17956. data[offset - 1] = data[offset + 3];
  17957. data[offset + rowSize] = data[offset + rowSize - 4];
  17958. data[offset + rowSize + 1] = data[offset + rowSize - 3];
  17959. data[offset + rowSize + 2] = data[offset + rowSize - 2];
  17960. data[offset + rowSize + 3] = data[offset + rowSize - 1];
  17961. offset -= imgRowSize;
  17962. }
  17963. }
  17964. // replacing queue items
  17965. fnArray.splice(j, count * 4, OPS.paintInlineImageXObjectGroup);
  17966. argsArray.splice(j, count * 4,
  17967. [{ width: imgWidth, height: imgHeight, kind: ImageKind.RGBA_32BPP,
  17968. data: imgData }, map]);
  17969. context.currentOperation = j;
  17970. });
  17971. addState(InitialState,
  17972. [OPS.save, OPS.transform, OPS.paintImageMaskXObject, OPS.restore],
  17973. function foundImageMaskGroup(context) {
  17974. // grouping paintImageMaskXObject's into paintImageMaskXObjectGroup
  17975. // searching for (save, transform, paintImageMaskXObject, restore)+
  17976. var MIN_IMAGES_IN_MASKS_BLOCK = 10;
  17977. var MAX_IMAGES_IN_MASKS_BLOCK = 100;
  17978. var MAX_SAME_IMAGES_IN_MASKS_BLOCK = 1000;
  17979. var fnArray = context.fnArray, argsArray = context.argsArray;
  17980. var j = context.currentOperation - 3, i = j + 4;
  17981. var ii = fnArray.length, q;
  17982. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  17983. var count = (i - j) >> 2;
  17984. count = handlePaintSolidColorImageMask(j, count, fnArray, argsArray);
  17985. if (count < MIN_IMAGES_IN_MASKS_BLOCK) {
  17986. context.currentOperation = i - 1;
  17987. return;
  17988. }
  17989. var isSameImage = false;
  17990. var transformArgs;
  17991. if (argsArray[j + 1][1] === 0 && argsArray[j + 1][2] === 0) {
  17992. i = j + 4;
  17993. isSameImage = true;
  17994. for (q = 1; q < count; q++, i += 4) {
  17995. var prevTransformArgs = argsArray[i - 3];
  17996. transformArgs = argsArray[i + 1];
  17997. if (argsArray[i - 2][0] !== argsArray[i + 2][0] ||
  17998. prevTransformArgs[0] !== transformArgs[0] ||
  17999. prevTransformArgs[1] !== transformArgs[1] ||
  18000. prevTransformArgs[2] !== transformArgs[2] ||
  18001. prevTransformArgs[3] !== transformArgs[3]) {
  18002. if (q < MIN_IMAGES_IN_MASKS_BLOCK) {
  18003. isSameImage = false;
  18004. } else {
  18005. count = q;
  18006. }
  18007. break; // different image or transform
  18008. }
  18009. }
  18010. }
  18011. if (isSameImage) {
  18012. count = Math.min(count, MAX_SAME_IMAGES_IN_MASKS_BLOCK);
  18013. var positions = new Float32Array(count * 2);
  18014. i = j + 1;
  18015. for (q = 0; q < count; q++) {
  18016. transformArgs = argsArray[i];
  18017. positions[(q << 1)] = transformArgs[4];
  18018. positions[(q << 1) + 1] = transformArgs[5];
  18019. i += 4;
  18020. }
  18021. // replacing queue items
  18022. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectRepeat);
  18023. argsArray.splice(j, count * 4, [argsArray[j + 2][0],
  18024. argsArray[j + 1][0], argsArray[j + 1][3], positions]);
  18025. context.currentOperation = j;
  18026. } else {
  18027. count = Math.min(count, MAX_IMAGES_IN_MASKS_BLOCK);
  18028. var images = [];
  18029. for (q = 0; q < count; q++) {
  18030. transformArgs = argsArray[j + (q << 2) + 1];
  18031. var maskParams = argsArray[j + (q << 2) + 2][0];
  18032. images.push({ data: maskParams.data, width: maskParams.width,
  18033. height: maskParams.height,
  18034. transform: transformArgs });
  18035. }
  18036. // replacing queue items
  18037. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectGroup);
  18038. argsArray.splice(j, count * 4, [images]);
  18039. context.currentOperation = j;
  18040. }
  18041. });
  18042. addState(InitialState,
  18043. [OPS.save, OPS.transform, OPS.paintImageXObject, OPS.restore],
  18044. function (context) {
  18045. var MIN_IMAGES_IN_BLOCK = 3;
  18046. var MAX_IMAGES_IN_BLOCK = 1000;
  18047. var fnArray = context.fnArray, argsArray = context.argsArray;
  18048. var j = context.currentOperation - 3, i = j + 4;
  18049. if (argsArray[j + 1][1] !== 0 || argsArray[j + 1][2] !== 0) {
  18050. return;
  18051. }
  18052. var ii = fnArray.length;
  18053. var transformArgs;
  18054. for (; i + 3 < ii && fnArray[i - 4] === fnArray[i]; i += 4) {
  18055. if (fnArray[i - 3] !== fnArray[i + 1] ||
  18056. fnArray[i - 2] !== fnArray[i + 2] ||
  18057. fnArray[i - 1] !== fnArray[i + 3]) {
  18058. break;
  18059. }
  18060. if (argsArray[i - 2][0] !== argsArray[i + 2][0]) {
  18061. break; // different image
  18062. }
  18063. var prevTransformArgs = argsArray[i - 3];
  18064. transformArgs = argsArray[i + 1];
  18065. if (prevTransformArgs[0] !== transformArgs[0] ||
  18066. prevTransformArgs[1] !== transformArgs[1] ||
  18067. prevTransformArgs[2] !== transformArgs[2] ||
  18068. prevTransformArgs[3] !== transformArgs[3]) {
  18069. break; // different transform
  18070. }
  18071. }
  18072. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_BLOCK);
  18073. if (count < MIN_IMAGES_IN_BLOCK) {
  18074. context.currentOperation = i - 1;
  18075. return;
  18076. }
  18077. var positions = new Float32Array(count * 2);
  18078. i = j + 1;
  18079. for (var q = 0; q < count; q++) {
  18080. transformArgs = argsArray[i];
  18081. positions[(q << 1)] = transformArgs[4];
  18082. positions[(q << 1) + 1] = transformArgs[5];
  18083. i += 4;
  18084. }
  18085. var args = [argsArray[j + 2][0], argsArray[j + 1][0],
  18086. argsArray[j + 1][3], positions];
  18087. // replacing queue items
  18088. fnArray.splice(j, count * 4, OPS.paintImageXObjectRepeat);
  18089. argsArray.splice(j, count * 4, args);
  18090. context.currentOperation = j;
  18091. });
  18092. addState(InitialState,
  18093. [OPS.beginText, OPS.setFont, OPS.setTextMatrix, OPS.showText, OPS.endText],
  18094. function (context) {
  18095. // moving single chars with same font into beginText/endText groups
  18096. // searching for (beginText, setFont, setTextMatrix, showText, endText)+
  18097. var MIN_CHARS_IN_BLOCK = 3;
  18098. var MAX_CHARS_IN_BLOCK = 1000;
  18099. var fnArray = context.fnArray, argsArray = context.argsArray;
  18100. var j = context.currentOperation - 4, i = j + 5;
  18101. var ii = fnArray.length;
  18102. for (; i < ii && fnArray[i - 5] === fnArray[i]; i++) {
  18103. if (fnArray[i] === OPS.setFont) {
  18104. if (argsArray[i - 5][0] !== argsArray[i][0] ||
  18105. argsArray[i - 5][1] !== argsArray[i][1]) {
  18106. break;
  18107. }
  18108. }
  18109. }
  18110. var count = Math.min(((i - j) / 5) | 0, MAX_CHARS_IN_BLOCK);
  18111. if (count < MIN_CHARS_IN_BLOCK) {
  18112. context.currentOperation = i - 1;
  18113. return;
  18114. }
  18115. if (j >= 4 && fnArray[j - 4] === fnArray[j + 1] &&
  18116. fnArray[j - 3] === fnArray[j + 2] &&
  18117. fnArray[j - 2] === fnArray[j + 3] &&
  18118. fnArray[j - 1] === fnArray[j + 4] &&
  18119. argsArray[j - 4][0] === argsArray[j + 1][0] &&
  18120. argsArray[j - 4][1] === argsArray[j + 1][1]) {
  18121. // extending one block ahead (very first block might have 'dependency')
  18122. count++;
  18123. j -= 5;
  18124. }
  18125. var k = j + 7;
  18126. i = j + 4;
  18127. for (var q = 1; q < count; q++) {
  18128. fnArray[i] = fnArray[k];
  18129. argsArray[i] = argsArray[k];
  18130. fnArray[i + 1] = fnArray[k + 1];
  18131. argsArray[i + 1] = argsArray[k + 1];
  18132. i += 2;
  18133. k += 5;
  18134. }
  18135. var removed = (count - 1) * 3;
  18136. fnArray.splice(i, removed);
  18137. argsArray.splice(i, removed);
  18138. context.currentOperation = i;
  18139. });
  18140. function QueueOptimizer() {}
  18141. QueueOptimizer.prototype = {
  18142. optimize: function QueueOptimizer_optimize(queue) {
  18143. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  18144. var context = {
  18145. currentOperation: 0,
  18146. fnArray: fnArray,
  18147. argsArray: argsArray
  18148. };
  18149. var i, ii = argsArray.length;
  18150. var state;
  18151. for (i = 0; i < ii; i++) {
  18152. state = (state || InitialState)[fnArray[i]];
  18153. if (typeof state === 'function') { // we found some handler
  18154. context.currentOperation = i;
  18155. state = state(context);
  18156. i = context.currentOperation;
  18157. ii = context.fnArray.length;
  18158. }
  18159. }
  18160. }
  18161. };
  18162. return QueueOptimizer;
  18163. })();
  18164. var BUILT_IN_CMAPS = [
  18165. // << Start unicode maps.
  18166. 'Adobe-GB1-UCS2',
  18167. 'Adobe-CNS1-UCS2',
  18168. 'Adobe-Japan1-UCS2',
  18169. 'Adobe-Korea1-UCS2',
  18170. // >> End unicode maps.
  18171. '78-EUC-H',
  18172. '78-EUC-V',
  18173. '78-H',
  18174. '78-RKSJ-H',
  18175. '78-RKSJ-V',
  18176. '78-V',
  18177. '78ms-RKSJ-H',
  18178. '78ms-RKSJ-V',
  18179. '83pv-RKSJ-H',
  18180. '90ms-RKSJ-H',
  18181. '90ms-RKSJ-V',
  18182. '90msp-RKSJ-H',
  18183. '90msp-RKSJ-V',
  18184. '90pv-RKSJ-H',
  18185. '90pv-RKSJ-V',
  18186. 'Add-H',
  18187. 'Add-RKSJ-H',
  18188. 'Add-RKSJ-V',
  18189. 'Add-V',
  18190. 'Adobe-CNS1-0',
  18191. 'Adobe-CNS1-1',
  18192. 'Adobe-CNS1-2',
  18193. 'Adobe-CNS1-3',
  18194. 'Adobe-CNS1-4',
  18195. 'Adobe-CNS1-5',
  18196. 'Adobe-CNS1-6',
  18197. 'Adobe-GB1-0',
  18198. 'Adobe-GB1-1',
  18199. 'Adobe-GB1-2',
  18200. 'Adobe-GB1-3',
  18201. 'Adobe-GB1-4',
  18202. 'Adobe-GB1-5',
  18203. 'Adobe-Japan1-0',
  18204. 'Adobe-Japan1-1',
  18205. 'Adobe-Japan1-2',
  18206. 'Adobe-Japan1-3',
  18207. 'Adobe-Japan1-4',
  18208. 'Adobe-Japan1-5',
  18209. 'Adobe-Japan1-6',
  18210. 'Adobe-Korea1-0',
  18211. 'Adobe-Korea1-1',
  18212. 'Adobe-Korea1-2',
  18213. 'B5-H',
  18214. 'B5-V',
  18215. 'B5pc-H',
  18216. 'B5pc-V',
  18217. 'CNS-EUC-H',
  18218. 'CNS-EUC-V',
  18219. 'CNS1-H',
  18220. 'CNS1-V',
  18221. 'CNS2-H',
  18222. 'CNS2-V',
  18223. 'ETHK-B5-H',
  18224. 'ETHK-B5-V',
  18225. 'ETen-B5-H',
  18226. 'ETen-B5-V',
  18227. 'ETenms-B5-H',
  18228. 'ETenms-B5-V',
  18229. 'EUC-H',
  18230. 'EUC-V',
  18231. 'Ext-H',
  18232. 'Ext-RKSJ-H',
  18233. 'Ext-RKSJ-V',
  18234. 'Ext-V',
  18235. 'GB-EUC-H',
  18236. 'GB-EUC-V',
  18237. 'GB-H',
  18238. 'GB-V',
  18239. 'GBK-EUC-H',
  18240. 'GBK-EUC-V',
  18241. 'GBK2K-H',
  18242. 'GBK2K-V',
  18243. 'GBKp-EUC-H',
  18244. 'GBKp-EUC-V',
  18245. 'GBT-EUC-H',
  18246. 'GBT-EUC-V',
  18247. 'GBT-H',
  18248. 'GBT-V',
  18249. 'GBTpc-EUC-H',
  18250. 'GBTpc-EUC-V',
  18251. 'GBpc-EUC-H',
  18252. 'GBpc-EUC-V',
  18253. 'H',
  18254. 'HKdla-B5-H',
  18255. 'HKdla-B5-V',
  18256. 'HKdlb-B5-H',
  18257. 'HKdlb-B5-V',
  18258. 'HKgccs-B5-H',
  18259. 'HKgccs-B5-V',
  18260. 'HKm314-B5-H',
  18261. 'HKm314-B5-V',
  18262. 'HKm471-B5-H',
  18263. 'HKm471-B5-V',
  18264. 'HKscs-B5-H',
  18265. 'HKscs-B5-V',
  18266. 'Hankaku',
  18267. 'Hiragana',
  18268. 'KSC-EUC-H',
  18269. 'KSC-EUC-V',
  18270. 'KSC-H',
  18271. 'KSC-Johab-H',
  18272. 'KSC-Johab-V',
  18273. 'KSC-V',
  18274. 'KSCms-UHC-H',
  18275. 'KSCms-UHC-HW-H',
  18276. 'KSCms-UHC-HW-V',
  18277. 'KSCms-UHC-V',
  18278. 'KSCpc-EUC-H',
  18279. 'KSCpc-EUC-V',
  18280. 'Katakana',
  18281. 'NWP-H',
  18282. 'NWP-V',
  18283. 'RKSJ-H',
  18284. 'RKSJ-V',
  18285. 'Roman',
  18286. 'UniCNS-UCS2-H',
  18287. 'UniCNS-UCS2-V',
  18288. 'UniCNS-UTF16-H',
  18289. 'UniCNS-UTF16-V',
  18290. 'UniCNS-UTF32-H',
  18291. 'UniCNS-UTF32-V',
  18292. 'UniCNS-UTF8-H',
  18293. 'UniCNS-UTF8-V',
  18294. 'UniGB-UCS2-H',
  18295. 'UniGB-UCS2-V',
  18296. 'UniGB-UTF16-H',
  18297. 'UniGB-UTF16-V',
  18298. 'UniGB-UTF32-H',
  18299. 'UniGB-UTF32-V',
  18300. 'UniGB-UTF8-H',
  18301. 'UniGB-UTF8-V',
  18302. 'UniJIS-UCS2-H',
  18303. 'UniJIS-UCS2-HW-H',
  18304. 'UniJIS-UCS2-HW-V',
  18305. 'UniJIS-UCS2-V',
  18306. 'UniJIS-UTF16-H',
  18307. 'UniJIS-UTF16-V',
  18308. 'UniJIS-UTF32-H',
  18309. 'UniJIS-UTF32-V',
  18310. 'UniJIS-UTF8-H',
  18311. 'UniJIS-UTF8-V',
  18312. 'UniJIS2004-UTF16-H',
  18313. 'UniJIS2004-UTF16-V',
  18314. 'UniJIS2004-UTF32-H',
  18315. 'UniJIS2004-UTF32-V',
  18316. 'UniJIS2004-UTF8-H',
  18317. 'UniJIS2004-UTF8-V',
  18318. 'UniJISPro-UCS2-HW-V',
  18319. 'UniJISPro-UCS2-V',
  18320. 'UniJISPro-UTF8-V',
  18321. 'UniJISX0213-UTF32-H',
  18322. 'UniJISX0213-UTF32-V',
  18323. 'UniJISX02132004-UTF32-H',
  18324. 'UniJISX02132004-UTF32-V',
  18325. 'UniKS-UCS2-H',
  18326. 'UniKS-UCS2-V',
  18327. 'UniKS-UTF16-H',
  18328. 'UniKS-UTF16-V',
  18329. 'UniKS-UTF32-H',
  18330. 'UniKS-UTF32-V',
  18331. 'UniKS-UTF8-H',
  18332. 'UniKS-UTF8-V',
  18333. 'V',
  18334. 'WP-Symbol'];
  18335. // CMap, not to be confused with TrueType's cmap.
  18336. var CMap = (function CMapClosure() {
  18337. function CMap(builtInCMap) {
  18338. // Codespace ranges are stored as follows:
  18339. // [[1BytePairs], [2BytePairs], [3BytePairs], [4BytePairs]]
  18340. // where nBytePairs are ranges e.g. [low1, high1, low2, high2, ...]
  18341. this.codespaceRanges = [[], [], [], []];
  18342. this.numCodespaceRanges = 0;
  18343. this.map = [];
  18344. this.vertical = false;
  18345. this.useCMap = null;
  18346. this.builtInCMap = builtInCMap;
  18347. }
  18348. CMap.prototype = {
  18349. addCodespaceRange: function(n, low, high) {
  18350. this.codespaceRanges[n - 1].push(low, high);
  18351. this.numCodespaceRanges++;
  18352. },
  18353. mapRange: function(low, high, dstLow) {
  18354. var lastByte = dstLow.length - 1;
  18355. while (low <= high) {
  18356. this.map[low] = dstLow;
  18357. // Only the last byte has to be incremented.
  18358. dstLow = dstLow.substr(0, lastByte) +
  18359. String.fromCharCode(dstLow.charCodeAt(lastByte) + 1);
  18360. ++low;
  18361. }
  18362. },
  18363. mapRangeToArray: function(low, high, array) {
  18364. var i = 0, ii = array.length;
  18365. while (low <= high && i < ii) {
  18366. this.map[low] = array[i++];
  18367. ++low;
  18368. }
  18369. },
  18370. mapOne: function(src, dst) {
  18371. this.map[src] = dst;
  18372. },
  18373. lookup: function(code) {
  18374. return this.map[code];
  18375. },
  18376. readCharCode: function(str, offset) {
  18377. var c = 0;
  18378. var codespaceRanges = this.codespaceRanges;
  18379. var codespaceRangesLen = this.codespaceRanges.length;
  18380. // 9.7.6.2 CMap Mapping
  18381. // The code length is at most 4.
  18382. for (var n = 0; n < codespaceRangesLen; n++) {
  18383. c = ((c << 8) | str.charCodeAt(offset + n)) >>> 0;
  18384. // Check each codespace range to see if it falls within.
  18385. var codespaceRange = codespaceRanges[n];
  18386. for (var k = 0, kk = codespaceRange.length; k < kk;) {
  18387. var low = codespaceRange[k++];
  18388. var high = codespaceRange[k++];
  18389. if (c >= low && c <= high) {
  18390. return [c, n + 1];
  18391. }
  18392. }
  18393. }
  18394. return [0, 1];
  18395. }
  18396. };
  18397. return CMap;
  18398. })();
  18399. var IdentityCMap = (function IdentityCMapClosure() {
  18400. function IdentityCMap(vertical, n) {
  18401. CMap.call(this);
  18402. this.vertical = vertical;
  18403. this.addCodespaceRange(n, 0, 0xffff);
  18404. this.mapRange(0, 0xffff, '\u0000');
  18405. }
  18406. Util.inherit(IdentityCMap, CMap, {});
  18407. return IdentityCMap;
  18408. })();
  18409. var BinaryCMapReader = (function BinaryCMapReaderClosure() {
  18410. function fetchBinaryData(url) {
  18411. var nonBinaryRequest = PDFJS.disableWorker;
  18412. var request = new XMLHttpRequest();
  18413. request.open('GET', url, false);
  18414. if (!nonBinaryRequest) {
  18415. try {
  18416. request.responseType = 'arraybuffer';
  18417. nonBinaryRequest = request.responseType !== 'arraybuffer';
  18418. } catch (e) {
  18419. nonBinaryRequest = true;
  18420. }
  18421. }
  18422. if (nonBinaryRequest && request.overrideMimeType) {
  18423. request.overrideMimeType('text/plain; charset=x-user-defined');
  18424. }
  18425. request.send(null);
  18426. if (request.status === 0 && /^https?:/i.test(url)) {
  18427. error('Unable to get binary cMap at: ' + url);
  18428. }
  18429. if (nonBinaryRequest) {
  18430. var data = Array.prototype.map.call(request.responseText, function (ch) {
  18431. return ch.charCodeAt(0) & 255;
  18432. });
  18433. return new Uint8Array(data);
  18434. }
  18435. return new Uint8Array(request.response);
  18436. }
  18437. function hexToInt(a, size) {
  18438. var n = 0;
  18439. for (var i = 0; i <= size; i++) {
  18440. n = (n << 8) | a[i];
  18441. }
  18442. return n >>> 0;
  18443. }
  18444. function hexToStr(a, size) {
  18445. return String.fromCharCode.apply(null, a.subarray(0, size + 1));
  18446. }
  18447. function addHex(a, b, size) {
  18448. var c = 0;
  18449. for (var i = size; i >= 0; i--) {
  18450. c += a[i] + b[i];
  18451. a[i] = c & 255;
  18452. c >>= 8;
  18453. }
  18454. }
  18455. function incHex(a, size) {
  18456. var c = 1;
  18457. for (var i = size; i >= 0 && c > 0; i--) {
  18458. c += a[i];
  18459. a[i] = c & 255;
  18460. c >>= 8;
  18461. }
  18462. }
  18463. var MAX_NUM_SIZE = 16;
  18464. var MAX_ENCODED_NUM_SIZE = 19; // ceil(MAX_NUM_SIZE * 7 / 8)
  18465. function BinaryCMapStream(data) {
  18466. this.buffer = data;
  18467. this.pos = 0;
  18468. this.end = data.length;
  18469. this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE);
  18470. }
  18471. BinaryCMapStream.prototype = {
  18472. readByte: function () {
  18473. if (this.pos >= this.end) {
  18474. return -1;
  18475. }
  18476. return this.buffer[this.pos++];
  18477. },
  18478. readNumber: function () {
  18479. var n = 0;
  18480. var last;
  18481. do {
  18482. var b = this.readByte();
  18483. if (b < 0) {
  18484. error('unexpected EOF in bcmap');
  18485. }
  18486. last = !(b & 0x80);
  18487. n = (n << 7) | (b & 0x7F);
  18488. } while (!last);
  18489. return n;
  18490. },
  18491. readSigned: function () {
  18492. var n = this.readNumber();
  18493. return (n & 1) ? ~(n >>> 1) : n >>> 1;
  18494. },
  18495. readHex: function (num, size) {
  18496. num.set(this.buffer.subarray(this.pos,
  18497. this.pos + size + 1));
  18498. this.pos += size + 1;
  18499. },
  18500. readHexNumber: function (num, size) {
  18501. var last;
  18502. var stack = this.tmpBuf, sp = 0;
  18503. do {
  18504. var b = this.readByte();
  18505. if (b < 0) {
  18506. error('unexpected EOF in bcmap');
  18507. }
  18508. last = !(b & 0x80);
  18509. stack[sp++] = b & 0x7F;
  18510. } while (!last);
  18511. var i = size, buffer = 0, bufferSize = 0;
  18512. while (i >= 0) {
  18513. while (bufferSize < 8 && stack.length > 0) {
  18514. buffer = (stack[--sp] << bufferSize) | buffer;
  18515. bufferSize += 7;
  18516. }
  18517. num[i] = buffer & 255;
  18518. i--;
  18519. buffer >>= 8;
  18520. bufferSize -= 8;
  18521. }
  18522. },
  18523. readHexSigned: function (num, size) {
  18524. this.readHexNumber(num, size);
  18525. var sign = num[size] & 1 ? 255 : 0;
  18526. var c = 0;
  18527. for (var i = 0; i <= size; i++) {
  18528. c = ((c & 1) << 8) | num[i];
  18529. num[i] = (c >> 1) ^ sign;
  18530. }
  18531. },
  18532. readString: function () {
  18533. var len = this.readNumber();
  18534. var s = '';
  18535. for (var i = 0; i < len; i++) {
  18536. s += String.fromCharCode(this.readNumber());
  18537. }
  18538. return s;
  18539. }
  18540. };
  18541. function processBinaryCMap(url, cMap, extend) {
  18542. var data = fetchBinaryData(url);
  18543. var stream = new BinaryCMapStream(data);
  18544. var header = stream.readByte();
  18545. cMap.vertical = !!(header & 1);
  18546. var useCMap = null;
  18547. var start = new Uint8Array(MAX_NUM_SIZE);
  18548. var end = new Uint8Array(MAX_NUM_SIZE);
  18549. var char = new Uint8Array(MAX_NUM_SIZE);
  18550. var charCode = new Uint8Array(MAX_NUM_SIZE);
  18551. var tmp = new Uint8Array(MAX_NUM_SIZE);
  18552. var code;
  18553. var b;
  18554. while ((b = stream.readByte()) >= 0) {
  18555. var type = b >> 5;
  18556. if (type === 7) { // metadata, e.g. comment or usecmap
  18557. switch (b & 0x1F) {
  18558. case 0:
  18559. stream.readString(); // skipping comment
  18560. break;
  18561. case 1:
  18562. useCMap = stream.readString();
  18563. break;
  18564. }
  18565. continue;
  18566. }
  18567. var sequence = !!(b & 0x10);
  18568. var dataSize = b & 15;
  18569. assert(dataSize + 1 <= MAX_NUM_SIZE);
  18570. var ucs2DataSize = 1;
  18571. var subitemsCount = stream.readNumber();
  18572. var i;
  18573. switch (type) {
  18574. case 0: // codespacerange
  18575. stream.readHex(start, dataSize);
  18576. stream.readHexNumber(end, dataSize);
  18577. addHex(end, start, dataSize);
  18578. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  18579. hexToInt(end, dataSize));
  18580. for (i = 1; i < subitemsCount; i++) {
  18581. incHex(end, dataSize);
  18582. stream.readHexNumber(start, dataSize);
  18583. addHex(start, end, dataSize);
  18584. stream.readHexNumber(end, dataSize);
  18585. addHex(end, start, dataSize);
  18586. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  18587. hexToInt(end, dataSize));
  18588. }
  18589. break;
  18590. case 1: // notdefrange
  18591. stream.readHex(start, dataSize);
  18592. stream.readHexNumber(end, dataSize);
  18593. addHex(end, start, dataSize);
  18594. code = stream.readNumber();
  18595. // undefined range, skipping
  18596. for (i = 1; i < subitemsCount; i++) {
  18597. incHex(end, dataSize);
  18598. stream.readHexNumber(start, dataSize);
  18599. addHex(start, end, dataSize);
  18600. stream.readHexNumber(end, dataSize);
  18601. addHex(end, start, dataSize);
  18602. code = stream.readNumber();
  18603. // nop
  18604. }
  18605. break;
  18606. case 2: // cidchar
  18607. stream.readHex(char, dataSize);
  18608. code = stream.readNumber();
  18609. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  18610. for (i = 1; i < subitemsCount; i++) {
  18611. incHex(char, dataSize);
  18612. if (!sequence) {
  18613. stream.readHexNumber(tmp, dataSize);
  18614. addHex(char, tmp, dataSize);
  18615. }
  18616. code = stream.readSigned() + (code + 1);
  18617. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  18618. }
  18619. break;
  18620. case 3: // cidrange
  18621. stream.readHex(start, dataSize);
  18622. stream.readHexNumber(end, dataSize);
  18623. addHex(end, start, dataSize);
  18624. code = stream.readNumber();
  18625. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  18626. String.fromCharCode(code));
  18627. for (i = 1; i < subitemsCount; i++) {
  18628. incHex(end, dataSize);
  18629. if (!sequence) {
  18630. stream.readHexNumber(start, dataSize);
  18631. addHex(start, end, dataSize);
  18632. } else {
  18633. start.set(end);
  18634. }
  18635. stream.readHexNumber(end, dataSize);
  18636. addHex(end, start, dataSize);
  18637. code = stream.readNumber();
  18638. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  18639. String.fromCharCode(code));
  18640. }
  18641. break;
  18642. case 4: // bfchar
  18643. stream.readHex(char, ucs2DataSize);
  18644. stream.readHex(charCode, dataSize);
  18645. cMap.mapOne(hexToInt(char, ucs2DataSize),
  18646. hexToStr(charCode, dataSize));
  18647. for (i = 1; i < subitemsCount; i++) {
  18648. incHex(char, ucs2DataSize);
  18649. if (!sequence) {
  18650. stream.readHexNumber(tmp, ucs2DataSize);
  18651. addHex(char, tmp, ucs2DataSize);
  18652. }
  18653. incHex(charCode, dataSize);
  18654. stream.readHexSigned(tmp, dataSize);
  18655. addHex(charCode, tmp, dataSize);
  18656. cMap.mapOne(hexToInt(char, ucs2DataSize),
  18657. hexToStr(charCode, dataSize));
  18658. }
  18659. break;
  18660. case 5: // bfrange
  18661. stream.readHex(start, ucs2DataSize);
  18662. stream.readHexNumber(end, ucs2DataSize);
  18663. addHex(end, start, ucs2DataSize);
  18664. stream.readHex(charCode, dataSize);
  18665. cMap.mapRange(hexToInt(start, ucs2DataSize),
  18666. hexToInt(end, ucs2DataSize),
  18667. hexToStr(charCode, dataSize));
  18668. for (i = 1; i < subitemsCount; i++) {
  18669. incHex(end, ucs2DataSize);
  18670. if (!sequence) {
  18671. stream.readHexNumber(start, ucs2DataSize);
  18672. addHex(start, end, ucs2DataSize);
  18673. } else {
  18674. start.set(end);
  18675. }
  18676. stream.readHexNumber(end, ucs2DataSize);
  18677. addHex(end, start, ucs2DataSize);
  18678. stream.readHex(charCode, dataSize);
  18679. cMap.mapRange(hexToInt(start, ucs2DataSize),
  18680. hexToInt(end, ucs2DataSize),
  18681. hexToStr(charCode, dataSize));
  18682. }
  18683. break;
  18684. default:
  18685. error('Unknown type: ' + type);
  18686. break;
  18687. }
  18688. }
  18689. if (useCMap) {
  18690. extend(useCMap);
  18691. }
  18692. return cMap;
  18693. }
  18694. function BinaryCMapReader() {}
  18695. BinaryCMapReader.prototype = {
  18696. read: processBinaryCMap
  18697. };
  18698. return BinaryCMapReader;
  18699. })();
  18700. var CMapFactory = (function CMapFactoryClosure() {
  18701. function strToInt(str) {
  18702. var a = 0;
  18703. for (var i = 0; i < str.length; i++) {
  18704. a = (a << 8) | str.charCodeAt(i);
  18705. }
  18706. return a >>> 0;
  18707. }
  18708. function expectString(obj) {
  18709. if (!isString(obj)) {
  18710. error('Malformed CMap: expected string.');
  18711. }
  18712. }
  18713. function expectInt(obj) {
  18714. if (!isInt(obj)) {
  18715. error('Malformed CMap: expected int.');
  18716. }
  18717. }
  18718. function parseBfChar(cMap, lexer) {
  18719. while (true) {
  18720. var obj = lexer.getObj();
  18721. if (isEOF(obj)) {
  18722. break;
  18723. }
  18724. if (isCmd(obj, 'endbfchar')) {
  18725. return;
  18726. }
  18727. expectString(obj);
  18728. var src = strToInt(obj);
  18729. obj = lexer.getObj();
  18730. // TODO are /dstName used?
  18731. expectString(obj);
  18732. var dst = obj;
  18733. cMap.mapOne(src, dst);
  18734. }
  18735. }
  18736. function parseBfRange(cMap, lexer) {
  18737. while (true) {
  18738. var obj = lexer.getObj();
  18739. if (isEOF(obj)) {
  18740. break;
  18741. }
  18742. if (isCmd(obj, 'endbfrange')) {
  18743. return;
  18744. }
  18745. expectString(obj);
  18746. var low = strToInt(obj);
  18747. obj = lexer.getObj();
  18748. expectString(obj);
  18749. var high = strToInt(obj);
  18750. obj = lexer.getObj();
  18751. if (isInt(obj) || isString(obj)) {
  18752. var dstLow = isInt(obj) ? String.fromCharCode(obj) : obj;
  18753. cMap.mapRange(low, high, dstLow);
  18754. } else if (isCmd(obj, '[')) {
  18755. obj = lexer.getObj();
  18756. var array = [];
  18757. while (!isCmd(obj, ']') && !isEOF(obj)) {
  18758. array.push(obj);
  18759. obj = lexer.getObj();
  18760. }
  18761. cMap.mapRangeToArray(low, high, array);
  18762. } else {
  18763. break;
  18764. }
  18765. }
  18766. error('Invalid bf range.');
  18767. }
  18768. function parseCidChar(cMap, lexer) {
  18769. while (true) {
  18770. var obj = lexer.getObj();
  18771. if (isEOF(obj)) {
  18772. break;
  18773. }
  18774. if (isCmd(obj, 'endcidchar')) {
  18775. return;
  18776. }
  18777. expectString(obj);
  18778. var src = strToInt(obj);
  18779. obj = lexer.getObj();
  18780. expectInt(obj);
  18781. var dst = String.fromCharCode(obj);
  18782. cMap.mapOne(src, dst);
  18783. }
  18784. }
  18785. function parseCidRange(cMap, lexer) {
  18786. while (true) {
  18787. var obj = lexer.getObj();
  18788. if (isEOF(obj)) {
  18789. break;
  18790. }
  18791. if (isCmd(obj, 'endcidrange')) {
  18792. return;
  18793. }
  18794. expectString(obj);
  18795. var low = strToInt(obj);
  18796. obj = lexer.getObj();
  18797. expectString(obj);
  18798. var high = strToInt(obj);
  18799. obj = lexer.getObj();
  18800. expectInt(obj);
  18801. var dstLow = String.fromCharCode(obj);
  18802. cMap.mapRange(low, high, dstLow);
  18803. }
  18804. }
  18805. function parseCodespaceRange(cMap, lexer) {
  18806. while (true) {
  18807. var obj = lexer.getObj();
  18808. if (isEOF(obj)) {
  18809. break;
  18810. }
  18811. if (isCmd(obj, 'endcodespacerange')) {
  18812. return;
  18813. }
  18814. if (!isString(obj)) {
  18815. break;
  18816. }
  18817. var low = strToInt(obj);
  18818. obj = lexer.getObj();
  18819. if (!isString(obj)) {
  18820. break;
  18821. }
  18822. var high = strToInt(obj);
  18823. cMap.addCodespaceRange(obj.length, low, high);
  18824. }
  18825. error('Invalid codespace range.');
  18826. }
  18827. function parseWMode(cMap, lexer) {
  18828. var obj = lexer.getObj();
  18829. if (isInt(obj)) {
  18830. cMap.vertical = !!obj;
  18831. }
  18832. }
  18833. function parseCMap(cMap, lexer, builtInCMapParams, useCMap) {
  18834. var previous;
  18835. var embededUseCMap;
  18836. objLoop: while (true) {
  18837. var obj = lexer.getObj();
  18838. if (isEOF(obj)) {
  18839. break;
  18840. } else if (isName(obj)) {
  18841. if (obj.name === 'WMode') {
  18842. parseWMode(cMap, lexer);
  18843. }
  18844. previous = obj;
  18845. } else if (isCmd(obj)) {
  18846. switch (obj.cmd) {
  18847. case 'endcmap':
  18848. break objLoop;
  18849. case 'usecmap':
  18850. if (isName(previous)) {
  18851. embededUseCMap = previous.name;
  18852. }
  18853. break;
  18854. case 'begincodespacerange':
  18855. parseCodespaceRange(cMap, lexer);
  18856. break;
  18857. case 'beginbfchar':
  18858. parseBfChar(cMap, lexer);
  18859. break;
  18860. case 'begincidchar':
  18861. parseCidChar(cMap, lexer);
  18862. break;
  18863. case 'beginbfrange':
  18864. parseBfRange(cMap, lexer);
  18865. break;
  18866. case 'begincidrange':
  18867. parseCidRange(cMap, lexer);
  18868. break;
  18869. }
  18870. }
  18871. }
  18872. if (!useCMap && embededUseCMap) {
  18873. // Load the usecmap definition from the file only if there wasn't one
  18874. // specified.
  18875. useCMap = embededUseCMap;
  18876. }
  18877. if (useCMap) {
  18878. extendCMap(cMap, builtInCMapParams, useCMap);
  18879. }
  18880. }
  18881. function extendCMap(cMap, builtInCMapParams, useCMap) {
  18882. cMap.useCMap = createBuiltInCMap(useCMap, builtInCMapParams);
  18883. // If there aren't any code space ranges defined clone all the parent ones
  18884. // into this cMap.
  18885. if (cMap.numCodespaceRanges === 0) {
  18886. var useCodespaceRanges = cMap.useCMap.codespaceRanges;
  18887. for (var i = 0; i < useCodespaceRanges.length; i++) {
  18888. cMap.codespaceRanges[i] = useCodespaceRanges[i].slice();
  18889. }
  18890. cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges;
  18891. }
  18892. // Merge the map into the current one, making sure not to override
  18893. // any previously defined entries.
  18894. for (var key in cMap.useCMap.map) {
  18895. if (key in cMap.map) {
  18896. continue;
  18897. }
  18898. cMap.map[key] = cMap.useCMap.map[key];
  18899. }
  18900. }
  18901. function parseBinaryCMap(name, builtInCMapParams) {
  18902. var url = builtInCMapParams.url + name + '.bcmap';
  18903. var cMap = new CMap(true);
  18904. new BinaryCMapReader().read(url, cMap, function (useCMap) {
  18905. extendCMap(cMap, builtInCMapParams, useCMap);
  18906. });
  18907. return cMap;
  18908. }
  18909. function createBuiltInCMap(name, builtInCMapParams) {
  18910. if (name === 'Identity-H') {
  18911. return new IdentityCMap(false, 2);
  18912. } else if (name === 'Identity-V') {
  18913. return new IdentityCMap(true, 2);
  18914. }
  18915. if (BUILT_IN_CMAPS.indexOf(name) === -1) {
  18916. error('Unknown cMap name: ' + name);
  18917. }
  18918. assert (builtInCMapParams, 'buildin cmap parameters are not provided');
  18919. if (builtInCMapParams.packed) {
  18920. return parseBinaryCMap(name, builtInCMapParams);
  18921. }
  18922. var request = new XMLHttpRequest();
  18923. var url = builtInCMapParams.url + name;
  18924. request.open('GET', url, false);
  18925. request.send(null);
  18926. if (request.status === 0 && /^https?:/i.test(url)) {
  18927. error('Unable to get cMap at: ' + url);
  18928. }
  18929. var cMap = new CMap(true);
  18930. var lexer = new Lexer(new StringStream(request.responseText));
  18931. parseCMap(cMap, lexer, builtInCMapParams, null);
  18932. return cMap;
  18933. }
  18934. return {
  18935. create: function (encoding, builtInCMapParams, useCMap) {
  18936. if (isName(encoding)) {
  18937. return createBuiltInCMap(encoding.name, builtInCMapParams);
  18938. } else if (isStream(encoding)) {
  18939. var cMap = new CMap();
  18940. var lexer = new Lexer(encoding);
  18941. try {
  18942. parseCMap(cMap, lexer, builtInCMapParams, useCMap);
  18943. } catch (e) {
  18944. warn('Invalid CMap data. ' + e);
  18945. }
  18946. return cMap;
  18947. }
  18948. error('Encoding required.');
  18949. }
  18950. };
  18951. })();
  18952. // Unicode Private Use Area
  18953. var PRIVATE_USE_OFFSET_START = 0xE000;
  18954. var PRIVATE_USE_OFFSET_END = 0xF8FF;
  18955. var SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = false;
  18956. // PDF Glyph Space Units are one Thousandth of a TextSpace Unit
  18957. // except for Type 3 fonts
  18958. var PDF_GLYPH_SPACE_UNITS = 1000;
  18959. // Hinting is currently disabled due to unknown problems on windows
  18960. // in tracemonkey and various other pdfs with type1 fonts.
  18961. var HINTING_ENABLED = false;
  18962. // Accented charactars are not displayed properly on windows, using this flag
  18963. // to control analysis of seac charstrings.
  18964. var SEAC_ANALYSIS_ENABLED = false;
  18965. var FontFlags = {
  18966. FixedPitch: 1,
  18967. Serif: 2,
  18968. Symbolic: 4,
  18969. Script: 8,
  18970. Nonsymbolic: 32,
  18971. Italic: 64,
  18972. AllCap: 65536,
  18973. SmallCap: 131072,
  18974. ForceBold: 262144
  18975. };
  18976. var Encodings = {
  18977. ExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18978. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18979. 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle',
  18980. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  18981. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  18982. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  18983. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  18984. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
  18985. 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
  18986. 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
  18987. 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior',
  18988. 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior',
  18989. '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '',
  18990. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  18991. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  18992. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  18993. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  18994. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  18995. 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '',
  18996. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18997. '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  18998. '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
  18999. 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
  19000. 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
  19001. 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
  19002. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  19003. 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
  19004. 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
  19005. 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
  19006. 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
  19007. 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
  19008. 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
  19009. 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
  19010. 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
  19011. 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  19012. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  19013. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  19014. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  19015. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  19016. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  19017. 'Ydieresissmall'],
  19018. MacExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19019. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19020. 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle',
  19021. 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
  19022. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  19023. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle',
  19024. 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle',
  19025. 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle',
  19026. 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '',
  19027. 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter',
  19028. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  19029. 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff',
  19030. 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
  19031. 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall',
  19032. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  19033. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  19034. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  19035. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  19036. 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '',
  19037. 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall',
  19038. 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall',
  19039. 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall',
  19040. 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall',
  19041. 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall',
  19042. 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '',
  19043. 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior',
  19044. 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior',
  19045. 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior',
  19046. 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '',
  19047. 'dollarinferior', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior',
  19048. 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall',
  19049. 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '',
  19050. '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '',
  19051. 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior',
  19052. 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  19053. 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior',
  19054. 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior',
  19055. '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall',
  19056. 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior',
  19057. 'periodsuperior', 'Dotaccentsmall', 'Ringsmall'],
  19058. MacRomanEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19059. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19060. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  19061. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  19062. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  19063. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  19064. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  19065. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  19066. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  19067. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  19068. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  19069. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '',
  19070. 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis',
  19071. 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde',
  19072. 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  19073. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute',
  19074. 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave',
  19075. 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling',
  19076. 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright',
  19077. 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity',
  19078. 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff',
  19079. 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine',
  19080. 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot',
  19081. 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft',
  19082. 'guillemotright', 'ellipsis', 'space', 'Agrave', 'Atilde', 'Otilde', 'OE',
  19083. 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft',
  19084. 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction',
  19085. 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl',
  19086. 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand',
  19087. 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute',
  19088. 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple',
  19089. 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex',
  19090. 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut',
  19091. 'ogonek', 'caron'],
  19092. StandardEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19093. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19094. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  19095. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  19096. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  19097. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  19098. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  19099. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  19100. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  19101. 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f',
  19102. 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
  19103. 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  19104. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19105. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown',
  19106. 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  19107. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  19108. 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl',
  19109. 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase',
  19110. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  19111. 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex',
  19112. 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla',
  19113. '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '',
  19114. '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '',
  19115. '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae',
  19116. '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'],
  19117. WinAnsiEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19118. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19119. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  19120. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  19121. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  19122. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  19123. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  19124. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  19125. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  19126. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  19127. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  19128. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  19129. 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase',
  19130. 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron',
  19131. 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft',
  19132. 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash',
  19133. 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet',
  19134. 'zcaron', 'Ydieresis', 'space', 'exclamdown', 'cent', 'sterling',
  19135. 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright',
  19136. 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered',
  19137. 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute',
  19138. 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior',
  19139. 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters',
  19140. 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis',
  19141. 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis',
  19142. 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve',
  19143. 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash',
  19144. 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn',
  19145. 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis',
  19146. 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis',
  19147. 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve',
  19148. 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash',
  19149. 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn',
  19150. 'ydieresis'],
  19151. SymbolSetEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19152. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19153. 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent',
  19154. 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus',
  19155. 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  19156. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  19157. 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi',
  19158. 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa',
  19159. 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau',
  19160. 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft',
  19161. 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex',
  19162. 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota',
  19163. 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho',
  19164. 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta',
  19165. 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '',
  19166. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19167. '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal',
  19168. 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade',
  19169. 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree',
  19170. 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional',
  19171. 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence',
  19172. 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn',
  19173. 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply',
  19174. 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset',
  19175. 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element',
  19176. 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif',
  19177. 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot',
  19178. 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup',
  19179. 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans',
  19180. 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp',
  19181. 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex',
  19182. 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex',
  19183. '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt',
  19184. 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp',
  19185. 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid',
  19186. 'bracerightbt'],
  19187. zapfDingbatsEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19188. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19189. 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117',
  19190. 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19',
  19191. 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7',
  19192. 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36',
  19193. 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46',
  19194. 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56',
  19195. 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66',
  19196. 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75',
  19197. 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97',
  19198. 'a98', 'a99', 'a100', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19199. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19200. '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112',
  19201. 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125',
  19202. 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134',
  19203. 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143',
  19204. 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152',
  19205. 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161',
  19206. 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169',
  19207. 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177',
  19208. 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201',
  19209. 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187',
  19210. 'a188', 'a189', 'a190', 'a191']
  19211. };
  19212. /**
  19213. * Hold a map of decoded fonts and of the standard fourteen Type1
  19214. * fonts and their acronyms.
  19215. */
  19216. var stdFontMap = {
  19217. 'ArialNarrow': 'Helvetica',
  19218. 'ArialNarrow-Bold': 'Helvetica-Bold',
  19219. 'ArialNarrow-BoldItalic': 'Helvetica-BoldOblique',
  19220. 'ArialNarrow-Italic': 'Helvetica-Oblique',
  19221. 'ArialBlack': 'Helvetica',
  19222. 'ArialBlack-Bold': 'Helvetica-Bold',
  19223. 'ArialBlack-BoldItalic': 'Helvetica-BoldOblique',
  19224. 'ArialBlack-Italic': 'Helvetica-Oblique',
  19225. 'Arial': 'Helvetica',
  19226. 'Arial-Bold': 'Helvetica-Bold',
  19227. 'Arial-BoldItalic': 'Helvetica-BoldOblique',
  19228. 'Arial-Italic': 'Helvetica-Oblique',
  19229. 'Arial-BoldItalicMT': 'Helvetica-BoldOblique',
  19230. 'Arial-BoldMT': 'Helvetica-Bold',
  19231. 'Arial-ItalicMT': 'Helvetica-Oblique',
  19232. 'ArialMT': 'Helvetica',
  19233. 'Courier-Bold': 'Courier-Bold',
  19234. 'Courier-BoldItalic': 'Courier-BoldOblique',
  19235. 'Courier-Italic': 'Courier-Oblique',
  19236. 'CourierNew': 'Courier',
  19237. 'CourierNew-Bold': 'Courier-Bold',
  19238. 'CourierNew-BoldItalic': 'Courier-BoldOblique',
  19239. 'CourierNew-Italic': 'Courier-Oblique',
  19240. 'CourierNewPS-BoldItalicMT': 'Courier-BoldOblique',
  19241. 'CourierNewPS-BoldMT': 'Courier-Bold',
  19242. 'CourierNewPS-ItalicMT': 'Courier-Oblique',
  19243. 'CourierNewPSMT': 'Courier',
  19244. 'Helvetica-Bold': 'Helvetica-Bold',
  19245. 'Helvetica-BoldItalic': 'Helvetica-BoldOblique',
  19246. 'Helvetica-Italic': 'Helvetica-Oblique',
  19247. 'Symbol-Bold': 'Symbol',
  19248. 'Symbol-BoldItalic': 'Symbol',
  19249. 'Symbol-Italic': 'Symbol',
  19250. 'TimesNewRoman': 'Times-Roman',
  19251. 'TimesNewRoman-Bold': 'Times-Bold',
  19252. 'TimesNewRoman-BoldItalic': 'Times-BoldItalic',
  19253. 'TimesNewRoman-Italic': 'Times-Italic',
  19254. 'TimesNewRomanPS': 'Times-Roman',
  19255. 'TimesNewRomanPS-Bold': 'Times-Bold',
  19256. 'TimesNewRomanPS-BoldItalic': 'Times-BoldItalic',
  19257. 'TimesNewRomanPS-BoldItalicMT': 'Times-BoldItalic',
  19258. 'TimesNewRomanPS-BoldMT': 'Times-Bold',
  19259. 'TimesNewRomanPS-Italic': 'Times-Italic',
  19260. 'TimesNewRomanPS-ItalicMT': 'Times-Italic',
  19261. 'TimesNewRomanPSMT': 'Times-Roman',
  19262. 'TimesNewRomanPSMT-Bold': 'Times-Bold',
  19263. 'TimesNewRomanPSMT-BoldItalic': 'Times-BoldItalic',
  19264. 'TimesNewRomanPSMT-Italic': 'Times-Italic'
  19265. };
  19266. /**
  19267. * Holds the map of the non-standard fonts that might be included as a standard
  19268. * fonts without glyph data.
  19269. */
  19270. var nonStdFontMap = {
  19271. 'ComicSansMS': 'Comic Sans MS',
  19272. 'ComicSansMS-Bold': 'Comic Sans MS-Bold',
  19273. 'ComicSansMS-BoldItalic': 'Comic Sans MS-BoldItalic',
  19274. 'ComicSansMS-Italic': 'Comic Sans MS-Italic',
  19275. 'LucidaConsole': 'Courier',
  19276. 'LucidaConsole-Bold': 'Courier-Bold',
  19277. 'LucidaConsole-BoldItalic': 'Courier-BoldOblique',
  19278. 'LucidaConsole-Italic': 'Courier-Oblique',
  19279. 'MS-Gothic': 'MS Gothic',
  19280. 'MS-Gothic-Bold': 'MS Gothic-Bold',
  19281. 'MS-Gothic-BoldItalic': 'MS Gothic-BoldItalic',
  19282. 'MS-Gothic-Italic': 'MS Gothic-Italic',
  19283. 'MS-Mincho': 'MS Mincho',
  19284. 'MS-Mincho-Bold': 'MS Mincho-Bold',
  19285. 'MS-Mincho-BoldItalic': 'MS Mincho-BoldItalic',
  19286. 'MS-Mincho-Italic': 'MS Mincho-Italic',
  19287. 'MS-PGothic': 'MS PGothic',
  19288. 'MS-PGothic-Bold': 'MS PGothic-Bold',
  19289. 'MS-PGothic-BoldItalic': 'MS PGothic-BoldItalic',
  19290. 'MS-PGothic-Italic': 'MS PGothic-Italic',
  19291. 'MS-PMincho': 'MS PMincho',
  19292. 'MS-PMincho-Bold': 'MS PMincho-Bold',
  19293. 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
  19294. 'MS-PMincho-Italic': 'MS PMincho-Italic'
  19295. };
  19296. var serifFonts = {
  19297. 'Adobe Jenson': true, 'Adobe Text': true, 'Albertus': true,
  19298. 'Aldus': true, 'Alexandria': true, 'Algerian': true,
  19299. 'American Typewriter': true, 'Antiqua': true, 'Apex': true,
  19300. 'Arno': true, 'Aster': true, 'Aurora': true,
  19301. 'Baskerville': true, 'Bell': true, 'Bembo': true,
  19302. 'Bembo Schoolbook': true, 'Benguiat': true, 'Berkeley Old Style': true,
  19303. 'Bernhard Modern': true, 'Berthold City': true, 'Bodoni': true,
  19304. 'Bauer Bodoni': true, 'Book Antiqua': true, 'Bookman': true,
  19305. 'Bordeaux Roman': true, 'Californian FB': true, 'Calisto': true,
  19306. 'Calvert': true, 'Capitals': true, 'Cambria': true,
  19307. 'Cartier': true, 'Caslon': true, 'Catull': true,
  19308. 'Centaur': true, 'Century Old Style': true, 'Century Schoolbook': true,
  19309. 'Chaparral': true, 'Charis SIL': true, 'Cheltenham': true,
  19310. 'Cholla Slab': true, 'Clarendon': true, 'Clearface': true,
  19311. 'Cochin': true, 'Colonna': true, 'Computer Modern': true,
  19312. 'Concrete Roman': true, 'Constantia': true, 'Cooper Black': true,
  19313. 'Corona': true, 'Ecotype': true, 'Egyptienne': true,
  19314. 'Elephant': true, 'Excelsior': true, 'Fairfield': true,
  19315. 'FF Scala': true, 'Folkard': true, 'Footlight': true,
  19316. 'FreeSerif': true, 'Friz Quadrata': true, 'Garamond': true,
  19317. 'Gentium': true, 'Georgia': true, 'Gloucester': true,
  19318. 'Goudy Old Style': true, 'Goudy Schoolbook': true, 'Goudy Pro Font': true,
  19319. 'Granjon': true, 'Guardian Egyptian': true, 'Heather': true,
  19320. 'Hercules': true, 'High Tower Text': true, 'Hiroshige': true,
  19321. 'Hoefler Text': true, 'Humana Serif': true, 'Imprint': true,
  19322. 'Ionic No. 5': true, 'Janson': true, 'Joanna': true,
  19323. 'Korinna': true, 'Lexicon': true, 'Liberation Serif': true,
  19324. 'Linux Libertine': true, 'Literaturnaya': true, 'Lucida': true,
  19325. 'Lucida Bright': true, 'Melior': true, 'Memphis': true,
  19326. 'Miller': true, 'Minion': true, 'Modern': true,
  19327. 'Mona Lisa': true, 'Mrs Eaves': true, 'MS Serif': true,
  19328. 'Museo Slab': true, 'New York': true, 'Nimbus Roman': true,
  19329. 'NPS Rawlinson Roadway': true, 'Palatino': true, 'Perpetua': true,
  19330. 'Plantin': true, 'Plantin Schoolbook': true, 'Playbill': true,
  19331. 'Poor Richard': true, 'Rawlinson Roadway': true, 'Renault': true,
  19332. 'Requiem': true, 'Rockwell': true, 'Roman': true,
  19333. 'Rotis Serif': true, 'Sabon': true, 'Scala': true,
  19334. 'Seagull': true, 'Sistina': true, 'Souvenir': true,
  19335. 'STIX': true, 'Stone Informal': true, 'Stone Serif': true,
  19336. 'Sylfaen': true, 'Times': true, 'Trajan': true,
  19337. 'Trinité': true, 'Trump Mediaeval': true, 'Utopia': true,
  19338. 'Vale Type': true, 'Bitstream Vera': true, 'Vera Serif': true,
  19339. 'Versailles': true, 'Wanted': true, 'Weiss': true,
  19340. 'Wide Latin': true, 'Windsor': true, 'XITS': true
  19341. };
  19342. var symbolsFonts = {
  19343. 'Dingbats': true, 'Symbol': true, 'ZapfDingbats': true
  19344. };
  19345. // Glyph map for well-known standard fonts. Sometimes Ghostscript uses CID fonts
  19346. // but does not embed the CID to GID mapping. The mapping is incomplete for all
  19347. // glyphs, but common for some set of the standard fonts.
  19348. var GlyphMapForStandardFonts = {
  19349. '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38,
  19350. '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 45,
  19351. '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52,
  19352. '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894,
  19353. '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66,
  19354. '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73,
  19355. '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80,
  19356. '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87,
  19357. '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94,
  19358. '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101,
  19359. '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108,
  19360. '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115,
  19361. '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122,
  19362. '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199,
  19363. '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224,
  19364. '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233,
  19365. '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238,
  19366. '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246,
  19367. '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224,
  19368. '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182,
  19369. '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168,
  19370. '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804,
  19371. '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719,
  19372. '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248,
  19373. '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776,
  19374. '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '223': 711,
  19375. '227': 353, '229': 382, '234': 253, '253': 268, '254': 269, '258': 258,
  19376. '268': 283, '269': 313, '278': 328, '284': 345, '292': 367, '305': 963,
  19377. '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359,
  19378. '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524,
  19379. '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776,
  19380. '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782,
  19381. '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769,
  19382. '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342,
  19383. '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363,
  19384. '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824,
  19385. '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045,
  19386. '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753,
  19387. '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849,
  19388. '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460,
  19389. '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467,
  19390. '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474,
  19391. '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480,
  19392. '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487,
  19393. '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494,
  19394. '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502,
  19395. '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509,
  19396. '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516,
  19397. '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522,
  19398. '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529,
  19399. '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549,
  19400. '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556,
  19401. '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290,
  19402. '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296,
  19403. '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533,
  19404. '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595,
  19405. '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606,
  19406. '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615,
  19407. '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884,
  19408. '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887,
  19409. '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889,
  19410. '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892,
  19411. '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588,
  19412. '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275,
  19413. '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799,
  19414. '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377
  19415. };
  19416. // Some characters, e.g. copyrightserif, mapped to the private use area and
  19417. // might not be displayed using standard fonts. Mapping/hacking well-known chars
  19418. // to the similar equivalents in the normal characters range.
  19419. function mapSpecialUnicodeValues(code) {
  19420. if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials unicode block.
  19421. return 0;
  19422. }
  19423. switch (code) {
  19424. case 0xF8E9: // copyrightsans
  19425. case 0xF6D9: // copyrightserif
  19426. return 0x00A9; // copyright
  19427. case 0xF8E8: // registersans
  19428. case 0xF6DA: // registerserif
  19429. return 0x00AE; // registered
  19430. case 0xF8EA: // trademarksans
  19431. case 0xF6DB: // trademarkserif
  19432. return 0x2122; // trademark
  19433. default:
  19434. return code;
  19435. }
  19436. }
  19437. var UnicodeRanges = [
  19438. { 'begin': 0x0000, 'end': 0x007F }, // Basic Latin
  19439. { 'begin': 0x0080, 'end': 0x00FF }, // Latin-1 Supplement
  19440. { 'begin': 0x0100, 'end': 0x017F }, // Latin Extended-A
  19441. { 'begin': 0x0180, 'end': 0x024F }, // Latin Extended-B
  19442. { 'begin': 0x0250, 'end': 0x02AF }, // IPA Extensions
  19443. { 'begin': 0x02B0, 'end': 0x02FF }, // Spacing Modifier Letters
  19444. { 'begin': 0x0300, 'end': 0x036F }, // Combining Diacritical Marks
  19445. { 'begin': 0x0370, 'end': 0x03FF }, // Greek and Coptic
  19446. { 'begin': 0x2C80, 'end': 0x2CFF }, // Coptic
  19447. { 'begin': 0x0400, 'end': 0x04FF }, // Cyrillic
  19448. { 'begin': 0x0530, 'end': 0x058F }, // Armenian
  19449. { 'begin': 0x0590, 'end': 0x05FF }, // Hebrew
  19450. { 'begin': 0xA500, 'end': 0xA63F }, // Vai
  19451. { 'begin': 0x0600, 'end': 0x06FF }, // Arabic
  19452. { 'begin': 0x07C0, 'end': 0x07FF }, // NKo
  19453. { 'begin': 0x0900, 'end': 0x097F }, // Devanagari
  19454. { 'begin': 0x0980, 'end': 0x09FF }, // Bengali
  19455. { 'begin': 0x0A00, 'end': 0x0A7F }, // Gurmukhi
  19456. { 'begin': 0x0A80, 'end': 0x0AFF }, // Gujarati
  19457. { 'begin': 0x0B00, 'end': 0x0B7F }, // Oriya
  19458. { 'begin': 0x0B80, 'end': 0x0BFF }, // Tamil
  19459. { 'begin': 0x0C00, 'end': 0x0C7F }, // Telugu
  19460. { 'begin': 0x0C80, 'end': 0x0CFF }, // Kannada
  19461. { 'begin': 0x0D00, 'end': 0x0D7F }, // Malayalam
  19462. { 'begin': 0x0E00, 'end': 0x0E7F }, // Thai
  19463. { 'begin': 0x0E80, 'end': 0x0EFF }, // Lao
  19464. { 'begin': 0x10A0, 'end': 0x10FF }, // Georgian
  19465. { 'begin': 0x1B00, 'end': 0x1B7F }, // Balinese
  19466. { 'begin': 0x1100, 'end': 0x11FF }, // Hangul Jamo
  19467. { 'begin': 0x1E00, 'end': 0x1EFF }, // Latin Extended Additional
  19468. { 'begin': 0x1F00, 'end': 0x1FFF }, // Greek Extended
  19469. { 'begin': 0x2000, 'end': 0x206F }, // General Punctuation
  19470. { 'begin': 0x2070, 'end': 0x209F }, // Superscripts And Subscripts
  19471. { 'begin': 0x20A0, 'end': 0x20CF }, // Currency Symbol
  19472. { 'begin': 0x20D0, 'end': 0x20FF }, // Combining Diacritical Marks For Symbols
  19473. { 'begin': 0x2100, 'end': 0x214F }, // Letterlike Symbols
  19474. { 'begin': 0x2150, 'end': 0x218F }, // Number Forms
  19475. { 'begin': 0x2190, 'end': 0x21FF }, // Arrows
  19476. { 'begin': 0x2200, 'end': 0x22FF }, // Mathematical Operators
  19477. { 'begin': 0x2300, 'end': 0x23FF }, // Miscellaneous Technical
  19478. { 'begin': 0x2400, 'end': 0x243F }, // Control Pictures
  19479. { 'begin': 0x2440, 'end': 0x245F }, // Optical Character Recognition
  19480. { 'begin': 0x2460, 'end': 0x24FF }, // Enclosed Alphanumerics
  19481. { 'begin': 0x2500, 'end': 0x257F }, // Box Drawing
  19482. { 'begin': 0x2580, 'end': 0x259F }, // Block Elements
  19483. { 'begin': 0x25A0, 'end': 0x25FF }, // Geometric Shapes
  19484. { 'begin': 0x2600, 'end': 0x26FF }, // Miscellaneous Symbols
  19485. { 'begin': 0x2700, 'end': 0x27BF }, // Dingbats
  19486. { 'begin': 0x3000, 'end': 0x303F }, // CJK Symbols And Punctuation
  19487. { 'begin': 0x3040, 'end': 0x309F }, // Hiragana
  19488. { 'begin': 0x30A0, 'end': 0x30FF }, // Katakana
  19489. { 'begin': 0x3100, 'end': 0x312F }, // Bopomofo
  19490. { 'begin': 0x3130, 'end': 0x318F }, // Hangul Compatibility Jamo
  19491. { 'begin': 0xA840, 'end': 0xA87F }, // Phags-pa
  19492. { 'begin': 0x3200, 'end': 0x32FF }, // Enclosed CJK Letters And Months
  19493. { 'begin': 0x3300, 'end': 0x33FF }, // CJK Compatibility
  19494. { 'begin': 0xAC00, 'end': 0xD7AF }, // Hangul Syllables
  19495. { 'begin': 0xD800, 'end': 0xDFFF }, // Non-Plane 0 *
  19496. { 'begin': 0x10900, 'end': 0x1091F }, // Phoenicia
  19497. { 'begin': 0x4E00, 'end': 0x9FFF }, // CJK Unified Ideographs
  19498. { 'begin': 0xE000, 'end': 0xF8FF }, // Private Use Area (plane 0)
  19499. { 'begin': 0x31C0, 'end': 0x31EF }, // CJK Strokes
  19500. { 'begin': 0xFB00, 'end': 0xFB4F }, // Alphabetic Presentation Forms
  19501. { 'begin': 0xFB50, 'end': 0xFDFF }, // Arabic Presentation Forms-A
  19502. { 'begin': 0xFE20, 'end': 0xFE2F }, // Combining Half Marks
  19503. { 'begin': 0xFE10, 'end': 0xFE1F }, // Vertical Forms
  19504. { 'begin': 0xFE50, 'end': 0xFE6F }, // Small Form Variants
  19505. { 'begin': 0xFE70, 'end': 0xFEFF }, // Arabic Presentation Forms-B
  19506. { 'begin': 0xFF00, 'end': 0xFFEF }, // Halfwidth And Fullwidth Forms
  19507. { 'begin': 0xFFF0, 'end': 0xFFFF }, // Specials
  19508. { 'begin': 0x0F00, 'end': 0x0FFF }, // Tibetan
  19509. { 'begin': 0x0700, 'end': 0x074F }, // Syriac
  19510. { 'begin': 0x0780, 'end': 0x07BF }, // Thaana
  19511. { 'begin': 0x0D80, 'end': 0x0DFF }, // Sinhala
  19512. { 'begin': 0x1000, 'end': 0x109F }, // Myanmar
  19513. { 'begin': 0x1200, 'end': 0x137F }, // Ethiopic
  19514. { 'begin': 0x13A0, 'end': 0x13FF }, // Cherokee
  19515. { 'begin': 0x1400, 'end': 0x167F }, // Unified Canadian Aboriginal Syllabics
  19516. { 'begin': 0x1680, 'end': 0x169F }, // Ogham
  19517. { 'begin': 0x16A0, 'end': 0x16FF }, // Runic
  19518. { 'begin': 0x1780, 'end': 0x17FF }, // Khmer
  19519. { 'begin': 0x1800, 'end': 0x18AF }, // Mongolian
  19520. { 'begin': 0x2800, 'end': 0x28FF }, // Braille Patterns
  19521. { 'begin': 0xA000, 'end': 0xA48F }, // Yi Syllables
  19522. { 'begin': 0x1700, 'end': 0x171F }, // Tagalog
  19523. { 'begin': 0x10300, 'end': 0x1032F }, // Old Italic
  19524. { 'begin': 0x10330, 'end': 0x1034F }, // Gothic
  19525. { 'begin': 0x10400, 'end': 0x1044F }, // Deseret
  19526. { 'begin': 0x1D000, 'end': 0x1D0FF }, // Byzantine Musical Symbols
  19527. { 'begin': 0x1D400, 'end': 0x1D7FF }, // Mathematical Alphanumeric Symbols
  19528. { 'begin': 0xFF000, 'end': 0xFFFFD }, // Private Use (plane 15)
  19529. { 'begin': 0xFE00, 'end': 0xFE0F }, // Variation Selectors
  19530. { 'begin': 0xE0000, 'end': 0xE007F }, // Tags
  19531. { 'begin': 0x1900, 'end': 0x194F }, // Limbu
  19532. { 'begin': 0x1950, 'end': 0x197F }, // Tai Le
  19533. { 'begin': 0x1980, 'end': 0x19DF }, // New Tai Lue
  19534. { 'begin': 0x1A00, 'end': 0x1A1F }, // Buginese
  19535. { 'begin': 0x2C00, 'end': 0x2C5F }, // Glagolitic
  19536. { 'begin': 0x2D30, 'end': 0x2D7F }, // Tifinagh
  19537. { 'begin': 0x4DC0, 'end': 0x4DFF }, // Yijing Hexagram Symbols
  19538. { 'begin': 0xA800, 'end': 0xA82F }, // Syloti Nagri
  19539. { 'begin': 0x10000, 'end': 0x1007F }, // Linear B Syllabary
  19540. { 'begin': 0x10140, 'end': 0x1018F }, // Ancient Greek Numbers
  19541. { 'begin': 0x10380, 'end': 0x1039F }, // Ugaritic
  19542. { 'begin': 0x103A0, 'end': 0x103DF }, // Old Persian
  19543. { 'begin': 0x10450, 'end': 0x1047F }, // Shavian
  19544. { 'begin': 0x10480, 'end': 0x104AF }, // Osmanya
  19545. { 'begin': 0x10800, 'end': 0x1083F }, // Cypriot Syllabary
  19546. { 'begin': 0x10A00, 'end': 0x10A5F }, // Kharoshthi
  19547. { 'begin': 0x1D300, 'end': 0x1D35F }, // Tai Xuan Jing Symbols
  19548. { 'begin': 0x12000, 'end': 0x123FF }, // Cuneiform
  19549. { 'begin': 0x1D360, 'end': 0x1D37F }, // Counting Rod Numerals
  19550. { 'begin': 0x1B80, 'end': 0x1BBF }, // Sundanese
  19551. { 'begin': 0x1C00, 'end': 0x1C4F }, // Lepcha
  19552. { 'begin': 0x1C50, 'end': 0x1C7F }, // Ol Chiki
  19553. { 'begin': 0xA880, 'end': 0xA8DF }, // Saurashtra
  19554. { 'begin': 0xA900, 'end': 0xA92F }, // Kayah Li
  19555. { 'begin': 0xA930, 'end': 0xA95F }, // Rejang
  19556. { 'begin': 0xAA00, 'end': 0xAA5F }, // Cham
  19557. { 'begin': 0x10190, 'end': 0x101CF }, // Ancient Symbols
  19558. { 'begin': 0x101D0, 'end': 0x101FF }, // Phaistos Disc
  19559. { 'begin': 0x102A0, 'end': 0x102DF }, // Carian
  19560. { 'begin': 0x1F030, 'end': 0x1F09F } // Domino Tiles
  19561. ];
  19562. var MacStandardGlyphOrdering = [
  19563. '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl',
  19564. 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft',
  19565. 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash',
  19566. 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  19567. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at',
  19568. 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  19569. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft',
  19570. 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b',
  19571. 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
  19572. 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright',
  19573. 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde',
  19574. 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis',
  19575. 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  19576. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve',
  19577. 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex',
  19578. 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet',
  19579. 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute',
  19580. 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal',
  19581. 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi',
  19582. 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash',
  19583. 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin',
  19584. 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis',
  19585. 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash',
  19586. 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright',
  19587. 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency',
  19588. 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered',
  19589. 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex',
  19590. 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex',
  19591. 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute',
  19592. 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron',
  19593. 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron',
  19594. 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar',
  19595. 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply',
  19596. 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter',
  19597. 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla',
  19598. 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat'];
  19599. function getUnicodeRangeFor(value) {
  19600. for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
  19601. var range = UnicodeRanges[i];
  19602. if (value >= range.begin && value < range.end) {
  19603. return i;
  19604. }
  19605. }
  19606. return -1;
  19607. }
  19608. function isRTLRangeFor(value) {
  19609. var range = UnicodeRanges[13];
  19610. if (value >= range.begin && value < range.end) {
  19611. return true;
  19612. }
  19613. range = UnicodeRanges[11];
  19614. if (value >= range.begin && value < range.end) {
  19615. return true;
  19616. }
  19617. return false;
  19618. }
  19619. // The normalization table is obtained by filtering the Unicode characters
  19620. // database with <compat> entries.
  19621. var NormalizedUnicodes = {
  19622. '\u00A8': '\u0020\u0308',
  19623. '\u00AF': '\u0020\u0304',
  19624. '\u00B4': '\u0020\u0301',
  19625. '\u00B5': '\u03BC',
  19626. '\u00B8': '\u0020\u0327',
  19627. '\u0132': '\u0049\u004A',
  19628. '\u0133': '\u0069\u006A',
  19629. '\u013F': '\u004C\u00B7',
  19630. '\u0140': '\u006C\u00B7',
  19631. '\u0149': '\u02BC\u006E',
  19632. '\u017F': '\u0073',
  19633. '\u01C4': '\u0044\u017D',
  19634. '\u01C5': '\u0044\u017E',
  19635. '\u01C6': '\u0064\u017E',
  19636. '\u01C7': '\u004C\u004A',
  19637. '\u01C8': '\u004C\u006A',
  19638. '\u01C9': '\u006C\u006A',
  19639. '\u01CA': '\u004E\u004A',
  19640. '\u01CB': '\u004E\u006A',
  19641. '\u01CC': '\u006E\u006A',
  19642. '\u01F1': '\u0044\u005A',
  19643. '\u01F2': '\u0044\u007A',
  19644. '\u01F3': '\u0064\u007A',
  19645. '\u02D8': '\u0020\u0306',
  19646. '\u02D9': '\u0020\u0307',
  19647. '\u02DA': '\u0020\u030A',
  19648. '\u02DB': '\u0020\u0328',
  19649. '\u02DC': '\u0020\u0303',
  19650. '\u02DD': '\u0020\u030B',
  19651. '\u037A': '\u0020\u0345',
  19652. '\u0384': '\u0020\u0301',
  19653. '\u03D0': '\u03B2',
  19654. '\u03D1': '\u03B8',
  19655. '\u03D2': '\u03A5',
  19656. '\u03D5': '\u03C6',
  19657. '\u03D6': '\u03C0',
  19658. '\u03F0': '\u03BA',
  19659. '\u03F1': '\u03C1',
  19660. '\u03F2': '\u03C2',
  19661. '\u03F4': '\u0398',
  19662. '\u03F5': '\u03B5',
  19663. '\u03F9': '\u03A3',
  19664. '\u0587': '\u0565\u0582',
  19665. '\u0675': '\u0627\u0674',
  19666. '\u0676': '\u0648\u0674',
  19667. '\u0677': '\u06C7\u0674',
  19668. '\u0678': '\u064A\u0674',
  19669. '\u0E33': '\u0E4D\u0E32',
  19670. '\u0EB3': '\u0ECD\u0EB2',
  19671. '\u0EDC': '\u0EAB\u0E99',
  19672. '\u0EDD': '\u0EAB\u0EA1',
  19673. '\u0F77': '\u0FB2\u0F81',
  19674. '\u0F79': '\u0FB3\u0F81',
  19675. '\u1E9A': '\u0061\u02BE',
  19676. '\u1FBD': '\u0020\u0313',
  19677. '\u1FBF': '\u0020\u0313',
  19678. '\u1FC0': '\u0020\u0342',
  19679. '\u1FFE': '\u0020\u0314',
  19680. '\u2002': '\u0020',
  19681. '\u2003': '\u0020',
  19682. '\u2004': '\u0020',
  19683. '\u2005': '\u0020',
  19684. '\u2006': '\u0020',
  19685. '\u2008': '\u0020',
  19686. '\u2009': '\u0020',
  19687. '\u200A': '\u0020',
  19688. '\u2017': '\u0020\u0333',
  19689. '\u2024': '\u002E',
  19690. '\u2025': '\u002E\u002E',
  19691. '\u2026': '\u002E\u002E\u002E',
  19692. '\u2033': '\u2032\u2032',
  19693. '\u2034': '\u2032\u2032\u2032',
  19694. '\u2036': '\u2035\u2035',
  19695. '\u2037': '\u2035\u2035\u2035',
  19696. '\u203C': '\u0021\u0021',
  19697. '\u203E': '\u0020\u0305',
  19698. '\u2047': '\u003F\u003F',
  19699. '\u2048': '\u003F\u0021',
  19700. '\u2049': '\u0021\u003F',
  19701. '\u2057': '\u2032\u2032\u2032\u2032',
  19702. '\u205F': '\u0020',
  19703. '\u20A8': '\u0052\u0073',
  19704. '\u2100': '\u0061\u002F\u0063',
  19705. '\u2101': '\u0061\u002F\u0073',
  19706. '\u2103': '\u00B0\u0043',
  19707. '\u2105': '\u0063\u002F\u006F',
  19708. '\u2106': '\u0063\u002F\u0075',
  19709. '\u2107': '\u0190',
  19710. '\u2109': '\u00B0\u0046',
  19711. '\u2116': '\u004E\u006F',
  19712. '\u2121': '\u0054\u0045\u004C',
  19713. '\u2135': '\u05D0',
  19714. '\u2136': '\u05D1',
  19715. '\u2137': '\u05D2',
  19716. '\u2138': '\u05D3',
  19717. '\u213B': '\u0046\u0041\u0058',
  19718. '\u2160': '\u0049',
  19719. '\u2161': '\u0049\u0049',
  19720. '\u2162': '\u0049\u0049\u0049',
  19721. '\u2163': '\u0049\u0056',
  19722. '\u2164': '\u0056',
  19723. '\u2165': '\u0056\u0049',
  19724. '\u2166': '\u0056\u0049\u0049',
  19725. '\u2167': '\u0056\u0049\u0049\u0049',
  19726. '\u2168': '\u0049\u0058',
  19727. '\u2169': '\u0058',
  19728. '\u216A': '\u0058\u0049',
  19729. '\u216B': '\u0058\u0049\u0049',
  19730. '\u216C': '\u004C',
  19731. '\u216D': '\u0043',
  19732. '\u216E': '\u0044',
  19733. '\u216F': '\u004D',
  19734. '\u2170': '\u0069',
  19735. '\u2171': '\u0069\u0069',
  19736. '\u2172': '\u0069\u0069\u0069',
  19737. '\u2173': '\u0069\u0076',
  19738. '\u2174': '\u0076',
  19739. '\u2175': '\u0076\u0069',
  19740. '\u2176': '\u0076\u0069\u0069',
  19741. '\u2177': '\u0076\u0069\u0069\u0069',
  19742. '\u2178': '\u0069\u0078',
  19743. '\u2179': '\u0078',
  19744. '\u217A': '\u0078\u0069',
  19745. '\u217B': '\u0078\u0069\u0069',
  19746. '\u217C': '\u006C',
  19747. '\u217D': '\u0063',
  19748. '\u217E': '\u0064',
  19749. '\u217F': '\u006D',
  19750. '\u222C': '\u222B\u222B',
  19751. '\u222D': '\u222B\u222B\u222B',
  19752. '\u222F': '\u222E\u222E',
  19753. '\u2230': '\u222E\u222E\u222E',
  19754. '\u2474': '\u0028\u0031\u0029',
  19755. '\u2475': '\u0028\u0032\u0029',
  19756. '\u2476': '\u0028\u0033\u0029',
  19757. '\u2477': '\u0028\u0034\u0029',
  19758. '\u2478': '\u0028\u0035\u0029',
  19759. '\u2479': '\u0028\u0036\u0029',
  19760. '\u247A': '\u0028\u0037\u0029',
  19761. '\u247B': '\u0028\u0038\u0029',
  19762. '\u247C': '\u0028\u0039\u0029',
  19763. '\u247D': '\u0028\u0031\u0030\u0029',
  19764. '\u247E': '\u0028\u0031\u0031\u0029',
  19765. '\u247F': '\u0028\u0031\u0032\u0029',
  19766. '\u2480': '\u0028\u0031\u0033\u0029',
  19767. '\u2481': '\u0028\u0031\u0034\u0029',
  19768. '\u2482': '\u0028\u0031\u0035\u0029',
  19769. '\u2483': '\u0028\u0031\u0036\u0029',
  19770. '\u2484': '\u0028\u0031\u0037\u0029',
  19771. '\u2485': '\u0028\u0031\u0038\u0029',
  19772. '\u2486': '\u0028\u0031\u0039\u0029',
  19773. '\u2487': '\u0028\u0032\u0030\u0029',
  19774. '\u2488': '\u0031\u002E',
  19775. '\u2489': '\u0032\u002E',
  19776. '\u248A': '\u0033\u002E',
  19777. '\u248B': '\u0034\u002E',
  19778. '\u248C': '\u0035\u002E',
  19779. '\u248D': '\u0036\u002E',
  19780. '\u248E': '\u0037\u002E',
  19781. '\u248F': '\u0038\u002E',
  19782. '\u2490': '\u0039\u002E',
  19783. '\u2491': '\u0031\u0030\u002E',
  19784. '\u2492': '\u0031\u0031\u002E',
  19785. '\u2493': '\u0031\u0032\u002E',
  19786. '\u2494': '\u0031\u0033\u002E',
  19787. '\u2495': '\u0031\u0034\u002E',
  19788. '\u2496': '\u0031\u0035\u002E',
  19789. '\u2497': '\u0031\u0036\u002E',
  19790. '\u2498': '\u0031\u0037\u002E',
  19791. '\u2499': '\u0031\u0038\u002E',
  19792. '\u249A': '\u0031\u0039\u002E',
  19793. '\u249B': '\u0032\u0030\u002E',
  19794. '\u249C': '\u0028\u0061\u0029',
  19795. '\u249D': '\u0028\u0062\u0029',
  19796. '\u249E': '\u0028\u0063\u0029',
  19797. '\u249F': '\u0028\u0064\u0029',
  19798. '\u24A0': '\u0028\u0065\u0029',
  19799. '\u24A1': '\u0028\u0066\u0029',
  19800. '\u24A2': '\u0028\u0067\u0029',
  19801. '\u24A3': '\u0028\u0068\u0029',
  19802. '\u24A4': '\u0028\u0069\u0029',
  19803. '\u24A5': '\u0028\u006A\u0029',
  19804. '\u24A6': '\u0028\u006B\u0029',
  19805. '\u24A7': '\u0028\u006C\u0029',
  19806. '\u24A8': '\u0028\u006D\u0029',
  19807. '\u24A9': '\u0028\u006E\u0029',
  19808. '\u24AA': '\u0028\u006F\u0029',
  19809. '\u24AB': '\u0028\u0070\u0029',
  19810. '\u24AC': '\u0028\u0071\u0029',
  19811. '\u24AD': '\u0028\u0072\u0029',
  19812. '\u24AE': '\u0028\u0073\u0029',
  19813. '\u24AF': '\u0028\u0074\u0029',
  19814. '\u24B0': '\u0028\u0075\u0029',
  19815. '\u24B1': '\u0028\u0076\u0029',
  19816. '\u24B2': '\u0028\u0077\u0029',
  19817. '\u24B3': '\u0028\u0078\u0029',
  19818. '\u24B4': '\u0028\u0079\u0029',
  19819. '\u24B5': '\u0028\u007A\u0029',
  19820. '\u2A0C': '\u222B\u222B\u222B\u222B',
  19821. '\u2A74': '\u003A\u003A\u003D',
  19822. '\u2A75': '\u003D\u003D',
  19823. '\u2A76': '\u003D\u003D\u003D',
  19824. '\u2E9F': '\u6BCD',
  19825. '\u2EF3': '\u9F9F',
  19826. '\u2F00': '\u4E00',
  19827. '\u2F01': '\u4E28',
  19828. '\u2F02': '\u4E36',
  19829. '\u2F03': '\u4E3F',
  19830. '\u2F04': '\u4E59',
  19831. '\u2F05': '\u4E85',
  19832. '\u2F06': '\u4E8C',
  19833. '\u2F07': '\u4EA0',
  19834. '\u2F08': '\u4EBA',
  19835. '\u2F09': '\u513F',
  19836. '\u2F0A': '\u5165',
  19837. '\u2F0B': '\u516B',
  19838. '\u2F0C': '\u5182',
  19839. '\u2F0D': '\u5196',
  19840. '\u2F0E': '\u51AB',
  19841. '\u2F0F': '\u51E0',
  19842. '\u2F10': '\u51F5',
  19843. '\u2F11': '\u5200',
  19844. '\u2F12': '\u529B',
  19845. '\u2F13': '\u52F9',
  19846. '\u2F14': '\u5315',
  19847. '\u2F15': '\u531A',
  19848. '\u2F16': '\u5338',
  19849. '\u2F17': '\u5341',
  19850. '\u2F18': '\u535C',
  19851. '\u2F19': '\u5369',
  19852. '\u2F1A': '\u5382',
  19853. '\u2F1B': '\u53B6',
  19854. '\u2F1C': '\u53C8',
  19855. '\u2F1D': '\u53E3',
  19856. '\u2F1E': '\u56D7',
  19857. '\u2F1F': '\u571F',
  19858. '\u2F20': '\u58EB',
  19859. '\u2F21': '\u5902',
  19860. '\u2F22': '\u590A',
  19861. '\u2F23': '\u5915',
  19862. '\u2F24': '\u5927',
  19863. '\u2F25': '\u5973',
  19864. '\u2F26': '\u5B50',
  19865. '\u2F27': '\u5B80',
  19866. '\u2F28': '\u5BF8',
  19867. '\u2F29': '\u5C0F',
  19868. '\u2F2A': '\u5C22',
  19869. '\u2F2B': '\u5C38',
  19870. '\u2F2C': '\u5C6E',
  19871. '\u2F2D': '\u5C71',
  19872. '\u2F2E': '\u5DDB',
  19873. '\u2F2F': '\u5DE5',
  19874. '\u2F30': '\u5DF1',
  19875. '\u2F31': '\u5DFE',
  19876. '\u2F32': '\u5E72',
  19877. '\u2F33': '\u5E7A',
  19878. '\u2F34': '\u5E7F',
  19879. '\u2F35': '\u5EF4',
  19880. '\u2F36': '\u5EFE',
  19881. '\u2F37': '\u5F0B',
  19882. '\u2F38': '\u5F13',
  19883. '\u2F39': '\u5F50',
  19884. '\u2F3A': '\u5F61',
  19885. '\u2F3B': '\u5F73',
  19886. '\u2F3C': '\u5FC3',
  19887. '\u2F3D': '\u6208',
  19888. '\u2F3E': '\u6236',
  19889. '\u2F3F': '\u624B',
  19890. '\u2F40': '\u652F',
  19891. '\u2F41': '\u6534',
  19892. '\u2F42': '\u6587',
  19893. '\u2F43': '\u6597',
  19894. '\u2F44': '\u65A4',
  19895. '\u2F45': '\u65B9',
  19896. '\u2F46': '\u65E0',
  19897. '\u2F47': '\u65E5',
  19898. '\u2F48': '\u66F0',
  19899. '\u2F49': '\u6708',
  19900. '\u2F4A': '\u6728',
  19901. '\u2F4B': '\u6B20',
  19902. '\u2F4C': '\u6B62',
  19903. '\u2F4D': '\u6B79',
  19904. '\u2F4E': '\u6BB3',
  19905. '\u2F4F': '\u6BCB',
  19906. '\u2F50': '\u6BD4',
  19907. '\u2F51': '\u6BDB',
  19908. '\u2F52': '\u6C0F',
  19909. '\u2F53': '\u6C14',
  19910. '\u2F54': '\u6C34',
  19911. '\u2F55': '\u706B',
  19912. '\u2F56': '\u722A',
  19913. '\u2F57': '\u7236',
  19914. '\u2F58': '\u723B',
  19915. '\u2F59': '\u723F',
  19916. '\u2F5A': '\u7247',
  19917. '\u2F5B': '\u7259',
  19918. '\u2F5C': '\u725B',
  19919. '\u2F5D': '\u72AC',
  19920. '\u2F5E': '\u7384',
  19921. '\u2F5F': '\u7389',
  19922. '\u2F60': '\u74DC',
  19923. '\u2F61': '\u74E6',
  19924. '\u2F62': '\u7518',
  19925. '\u2F63': '\u751F',
  19926. '\u2F64': '\u7528',
  19927. '\u2F65': '\u7530',
  19928. '\u2F66': '\u758B',
  19929. '\u2F67': '\u7592',
  19930. '\u2F68': '\u7676',
  19931. '\u2F69': '\u767D',
  19932. '\u2F6A': '\u76AE',
  19933. '\u2F6B': '\u76BF',
  19934. '\u2F6C': '\u76EE',
  19935. '\u2F6D': '\u77DB',
  19936. '\u2F6E': '\u77E2',
  19937. '\u2F6F': '\u77F3',
  19938. '\u2F70': '\u793A',
  19939. '\u2F71': '\u79B8',
  19940. '\u2F72': '\u79BE',
  19941. '\u2F73': '\u7A74',
  19942. '\u2F74': '\u7ACB',
  19943. '\u2F75': '\u7AF9',
  19944. '\u2F76': '\u7C73',
  19945. '\u2F77': '\u7CF8',
  19946. '\u2F78': '\u7F36',
  19947. '\u2F79': '\u7F51',
  19948. '\u2F7A': '\u7F8A',
  19949. '\u2F7B': '\u7FBD',
  19950. '\u2F7C': '\u8001',
  19951. '\u2F7D': '\u800C',
  19952. '\u2F7E': '\u8012',
  19953. '\u2F7F': '\u8033',
  19954. '\u2F80': '\u807F',
  19955. '\u2F81': '\u8089',
  19956. '\u2F82': '\u81E3',
  19957. '\u2F83': '\u81EA',
  19958. '\u2F84': '\u81F3',
  19959. '\u2F85': '\u81FC',
  19960. '\u2F86': '\u820C',
  19961. '\u2F87': '\u821B',
  19962. '\u2F88': '\u821F',
  19963. '\u2F89': '\u826E',
  19964. '\u2F8A': '\u8272',
  19965. '\u2F8B': '\u8278',
  19966. '\u2F8C': '\u864D',
  19967. '\u2F8D': '\u866B',
  19968. '\u2F8E': '\u8840',
  19969. '\u2F8F': '\u884C',
  19970. '\u2F90': '\u8863',
  19971. '\u2F91': '\u897E',
  19972. '\u2F92': '\u898B',
  19973. '\u2F93': '\u89D2',
  19974. '\u2F94': '\u8A00',
  19975. '\u2F95': '\u8C37',
  19976. '\u2F96': '\u8C46',
  19977. '\u2F97': '\u8C55',
  19978. '\u2F98': '\u8C78',
  19979. '\u2F99': '\u8C9D',
  19980. '\u2F9A': '\u8D64',
  19981. '\u2F9B': '\u8D70',
  19982. '\u2F9C': '\u8DB3',
  19983. '\u2F9D': '\u8EAB',
  19984. '\u2F9E': '\u8ECA',
  19985. '\u2F9F': '\u8F9B',
  19986. '\u2FA0': '\u8FB0',
  19987. '\u2FA1': '\u8FB5',
  19988. '\u2FA2': '\u9091',
  19989. '\u2FA3': '\u9149',
  19990. '\u2FA4': '\u91C6',
  19991. '\u2FA5': '\u91CC',
  19992. '\u2FA6': '\u91D1',
  19993. '\u2FA7': '\u9577',
  19994. '\u2FA8': '\u9580',
  19995. '\u2FA9': '\u961C',
  19996. '\u2FAA': '\u96B6',
  19997. '\u2FAB': '\u96B9',
  19998. '\u2FAC': '\u96E8',
  19999. '\u2FAD': '\u9751',
  20000. '\u2FAE': '\u975E',
  20001. '\u2FAF': '\u9762',
  20002. '\u2FB0': '\u9769',
  20003. '\u2FB1': '\u97CB',
  20004. '\u2FB2': '\u97ED',
  20005. '\u2FB3': '\u97F3',
  20006. '\u2FB4': '\u9801',
  20007. '\u2FB5': '\u98A8',
  20008. '\u2FB6': '\u98DB',
  20009. '\u2FB7': '\u98DF',
  20010. '\u2FB8': '\u9996',
  20011. '\u2FB9': '\u9999',
  20012. '\u2FBA': '\u99AC',
  20013. '\u2FBB': '\u9AA8',
  20014. '\u2FBC': '\u9AD8',
  20015. '\u2FBD': '\u9ADF',
  20016. '\u2FBE': '\u9B25',
  20017. '\u2FBF': '\u9B2F',
  20018. '\u2FC0': '\u9B32',
  20019. '\u2FC1': '\u9B3C',
  20020. '\u2FC2': '\u9B5A',
  20021. '\u2FC3': '\u9CE5',
  20022. '\u2FC4': '\u9E75',
  20023. '\u2FC5': '\u9E7F',
  20024. '\u2FC6': '\u9EA5',
  20025. '\u2FC7': '\u9EBB',
  20026. '\u2FC8': '\u9EC3',
  20027. '\u2FC9': '\u9ECD',
  20028. '\u2FCA': '\u9ED1',
  20029. '\u2FCB': '\u9EF9',
  20030. '\u2FCC': '\u9EFD',
  20031. '\u2FCD': '\u9F0E',
  20032. '\u2FCE': '\u9F13',
  20033. '\u2FCF': '\u9F20',
  20034. '\u2FD0': '\u9F3B',
  20035. '\u2FD1': '\u9F4A',
  20036. '\u2FD2': '\u9F52',
  20037. '\u2FD3': '\u9F8D',
  20038. '\u2FD4': '\u9F9C',
  20039. '\u2FD5': '\u9FA0',
  20040. '\u3036': '\u3012',
  20041. '\u3038': '\u5341',
  20042. '\u3039': '\u5344',
  20043. '\u303A': '\u5345',
  20044. '\u309B': '\u0020\u3099',
  20045. '\u309C': '\u0020\u309A',
  20046. '\u3131': '\u1100',
  20047. '\u3132': '\u1101',
  20048. '\u3133': '\u11AA',
  20049. '\u3134': '\u1102',
  20050. '\u3135': '\u11AC',
  20051. '\u3136': '\u11AD',
  20052. '\u3137': '\u1103',
  20053. '\u3138': '\u1104',
  20054. '\u3139': '\u1105',
  20055. '\u313A': '\u11B0',
  20056. '\u313B': '\u11B1',
  20057. '\u313C': '\u11B2',
  20058. '\u313D': '\u11B3',
  20059. '\u313E': '\u11B4',
  20060. '\u313F': '\u11B5',
  20061. '\u3140': '\u111A',
  20062. '\u3141': '\u1106',
  20063. '\u3142': '\u1107',
  20064. '\u3143': '\u1108',
  20065. '\u3144': '\u1121',
  20066. '\u3145': '\u1109',
  20067. '\u3146': '\u110A',
  20068. '\u3147': '\u110B',
  20069. '\u3148': '\u110C',
  20070. '\u3149': '\u110D',
  20071. '\u314A': '\u110E',
  20072. '\u314B': '\u110F',
  20073. '\u314C': '\u1110',
  20074. '\u314D': '\u1111',
  20075. '\u314E': '\u1112',
  20076. '\u314F': '\u1161',
  20077. '\u3150': '\u1162',
  20078. '\u3151': '\u1163',
  20079. '\u3152': '\u1164',
  20080. '\u3153': '\u1165',
  20081. '\u3154': '\u1166',
  20082. '\u3155': '\u1167',
  20083. '\u3156': '\u1168',
  20084. '\u3157': '\u1169',
  20085. '\u3158': '\u116A',
  20086. '\u3159': '\u116B',
  20087. '\u315A': '\u116C',
  20088. '\u315B': '\u116D',
  20089. '\u315C': '\u116E',
  20090. '\u315D': '\u116F',
  20091. '\u315E': '\u1170',
  20092. '\u315F': '\u1171',
  20093. '\u3160': '\u1172',
  20094. '\u3161': '\u1173',
  20095. '\u3162': '\u1174',
  20096. '\u3163': '\u1175',
  20097. '\u3164': '\u1160',
  20098. '\u3165': '\u1114',
  20099. '\u3166': '\u1115',
  20100. '\u3167': '\u11C7',
  20101. '\u3168': '\u11C8',
  20102. '\u3169': '\u11CC',
  20103. '\u316A': '\u11CE',
  20104. '\u316B': '\u11D3',
  20105. '\u316C': '\u11D7',
  20106. '\u316D': '\u11D9',
  20107. '\u316E': '\u111C',
  20108. '\u316F': '\u11DD',
  20109. '\u3170': '\u11DF',
  20110. '\u3171': '\u111D',
  20111. '\u3172': '\u111E',
  20112. '\u3173': '\u1120',
  20113. '\u3174': '\u1122',
  20114. '\u3175': '\u1123',
  20115. '\u3176': '\u1127',
  20116. '\u3177': '\u1129',
  20117. '\u3178': '\u112B',
  20118. '\u3179': '\u112C',
  20119. '\u317A': '\u112D',
  20120. '\u317B': '\u112E',
  20121. '\u317C': '\u112F',
  20122. '\u317D': '\u1132',
  20123. '\u317E': '\u1136',
  20124. '\u317F': '\u1140',
  20125. '\u3180': '\u1147',
  20126. '\u3181': '\u114C',
  20127. '\u3182': '\u11F1',
  20128. '\u3183': '\u11F2',
  20129. '\u3184': '\u1157',
  20130. '\u3185': '\u1158',
  20131. '\u3186': '\u1159',
  20132. '\u3187': '\u1184',
  20133. '\u3188': '\u1185',
  20134. '\u3189': '\u1188',
  20135. '\u318A': '\u1191',
  20136. '\u318B': '\u1192',
  20137. '\u318C': '\u1194',
  20138. '\u318D': '\u119E',
  20139. '\u318E': '\u11A1',
  20140. '\u3200': '\u0028\u1100\u0029',
  20141. '\u3201': '\u0028\u1102\u0029',
  20142. '\u3202': '\u0028\u1103\u0029',
  20143. '\u3203': '\u0028\u1105\u0029',
  20144. '\u3204': '\u0028\u1106\u0029',
  20145. '\u3205': '\u0028\u1107\u0029',
  20146. '\u3206': '\u0028\u1109\u0029',
  20147. '\u3207': '\u0028\u110B\u0029',
  20148. '\u3208': '\u0028\u110C\u0029',
  20149. '\u3209': '\u0028\u110E\u0029',
  20150. '\u320A': '\u0028\u110F\u0029',
  20151. '\u320B': '\u0028\u1110\u0029',
  20152. '\u320C': '\u0028\u1111\u0029',
  20153. '\u320D': '\u0028\u1112\u0029',
  20154. '\u320E': '\u0028\u1100\u1161\u0029',
  20155. '\u320F': '\u0028\u1102\u1161\u0029',
  20156. '\u3210': '\u0028\u1103\u1161\u0029',
  20157. '\u3211': '\u0028\u1105\u1161\u0029',
  20158. '\u3212': '\u0028\u1106\u1161\u0029',
  20159. '\u3213': '\u0028\u1107\u1161\u0029',
  20160. '\u3214': '\u0028\u1109\u1161\u0029',
  20161. '\u3215': '\u0028\u110B\u1161\u0029',
  20162. '\u3216': '\u0028\u110C\u1161\u0029',
  20163. '\u3217': '\u0028\u110E\u1161\u0029',
  20164. '\u3218': '\u0028\u110F\u1161\u0029',
  20165. '\u3219': '\u0028\u1110\u1161\u0029',
  20166. '\u321A': '\u0028\u1111\u1161\u0029',
  20167. '\u321B': '\u0028\u1112\u1161\u0029',
  20168. '\u321C': '\u0028\u110C\u116E\u0029',
  20169. '\u321D': '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029',
  20170. '\u321E': '\u0028\u110B\u1169\u1112\u116E\u0029',
  20171. '\u3220': '\u0028\u4E00\u0029',
  20172. '\u3221': '\u0028\u4E8C\u0029',
  20173. '\u3222': '\u0028\u4E09\u0029',
  20174. '\u3223': '\u0028\u56DB\u0029',
  20175. '\u3224': '\u0028\u4E94\u0029',
  20176. '\u3225': '\u0028\u516D\u0029',
  20177. '\u3226': '\u0028\u4E03\u0029',
  20178. '\u3227': '\u0028\u516B\u0029',
  20179. '\u3228': '\u0028\u4E5D\u0029',
  20180. '\u3229': '\u0028\u5341\u0029',
  20181. '\u322A': '\u0028\u6708\u0029',
  20182. '\u322B': '\u0028\u706B\u0029',
  20183. '\u322C': '\u0028\u6C34\u0029',
  20184. '\u322D': '\u0028\u6728\u0029',
  20185. '\u322E': '\u0028\u91D1\u0029',
  20186. '\u322F': '\u0028\u571F\u0029',
  20187. '\u3230': '\u0028\u65E5\u0029',
  20188. '\u3231': '\u0028\u682A\u0029',
  20189. '\u3232': '\u0028\u6709\u0029',
  20190. '\u3233': '\u0028\u793E\u0029',
  20191. '\u3234': '\u0028\u540D\u0029',
  20192. '\u3235': '\u0028\u7279\u0029',
  20193. '\u3236': '\u0028\u8CA1\u0029',
  20194. '\u3237': '\u0028\u795D\u0029',
  20195. '\u3238': '\u0028\u52B4\u0029',
  20196. '\u3239': '\u0028\u4EE3\u0029',
  20197. '\u323A': '\u0028\u547C\u0029',
  20198. '\u323B': '\u0028\u5B66\u0029',
  20199. '\u323C': '\u0028\u76E3\u0029',
  20200. '\u323D': '\u0028\u4F01\u0029',
  20201. '\u323E': '\u0028\u8CC7\u0029',
  20202. '\u323F': '\u0028\u5354\u0029',
  20203. '\u3240': '\u0028\u796D\u0029',
  20204. '\u3241': '\u0028\u4F11\u0029',
  20205. '\u3242': '\u0028\u81EA\u0029',
  20206. '\u3243': '\u0028\u81F3\u0029',
  20207. '\u32C0': '\u0031\u6708',
  20208. '\u32C1': '\u0032\u6708',
  20209. '\u32C2': '\u0033\u6708',
  20210. '\u32C3': '\u0034\u6708',
  20211. '\u32C4': '\u0035\u6708',
  20212. '\u32C5': '\u0036\u6708',
  20213. '\u32C6': '\u0037\u6708',
  20214. '\u32C7': '\u0038\u6708',
  20215. '\u32C8': '\u0039\u6708',
  20216. '\u32C9': '\u0031\u0030\u6708',
  20217. '\u32CA': '\u0031\u0031\u6708',
  20218. '\u32CB': '\u0031\u0032\u6708',
  20219. '\u3358': '\u0030\u70B9',
  20220. '\u3359': '\u0031\u70B9',
  20221. '\u335A': '\u0032\u70B9',
  20222. '\u335B': '\u0033\u70B9',
  20223. '\u335C': '\u0034\u70B9',
  20224. '\u335D': '\u0035\u70B9',
  20225. '\u335E': '\u0036\u70B9',
  20226. '\u335F': '\u0037\u70B9',
  20227. '\u3360': '\u0038\u70B9',
  20228. '\u3361': '\u0039\u70B9',
  20229. '\u3362': '\u0031\u0030\u70B9',
  20230. '\u3363': '\u0031\u0031\u70B9',
  20231. '\u3364': '\u0031\u0032\u70B9',
  20232. '\u3365': '\u0031\u0033\u70B9',
  20233. '\u3366': '\u0031\u0034\u70B9',
  20234. '\u3367': '\u0031\u0035\u70B9',
  20235. '\u3368': '\u0031\u0036\u70B9',
  20236. '\u3369': '\u0031\u0037\u70B9',
  20237. '\u336A': '\u0031\u0038\u70B9',
  20238. '\u336B': '\u0031\u0039\u70B9',
  20239. '\u336C': '\u0032\u0030\u70B9',
  20240. '\u336D': '\u0032\u0031\u70B9',
  20241. '\u336E': '\u0032\u0032\u70B9',
  20242. '\u336F': '\u0032\u0033\u70B9',
  20243. '\u3370': '\u0032\u0034\u70B9',
  20244. '\u33E0': '\u0031\u65E5',
  20245. '\u33E1': '\u0032\u65E5',
  20246. '\u33E2': '\u0033\u65E5',
  20247. '\u33E3': '\u0034\u65E5',
  20248. '\u33E4': '\u0035\u65E5',
  20249. '\u33E5': '\u0036\u65E5',
  20250. '\u33E6': '\u0037\u65E5',
  20251. '\u33E7': '\u0038\u65E5',
  20252. '\u33E8': '\u0039\u65E5',
  20253. '\u33E9': '\u0031\u0030\u65E5',
  20254. '\u33EA': '\u0031\u0031\u65E5',
  20255. '\u33EB': '\u0031\u0032\u65E5',
  20256. '\u33EC': '\u0031\u0033\u65E5',
  20257. '\u33ED': '\u0031\u0034\u65E5',
  20258. '\u33EE': '\u0031\u0035\u65E5',
  20259. '\u33EF': '\u0031\u0036\u65E5',
  20260. '\u33F0': '\u0031\u0037\u65E5',
  20261. '\u33F1': '\u0031\u0038\u65E5',
  20262. '\u33F2': '\u0031\u0039\u65E5',
  20263. '\u33F3': '\u0032\u0030\u65E5',
  20264. '\u33F4': '\u0032\u0031\u65E5',
  20265. '\u33F5': '\u0032\u0032\u65E5',
  20266. '\u33F6': '\u0032\u0033\u65E5',
  20267. '\u33F7': '\u0032\u0034\u65E5',
  20268. '\u33F8': '\u0032\u0035\u65E5',
  20269. '\u33F9': '\u0032\u0036\u65E5',
  20270. '\u33FA': '\u0032\u0037\u65E5',
  20271. '\u33FB': '\u0032\u0038\u65E5',
  20272. '\u33FC': '\u0032\u0039\u65E5',
  20273. '\u33FD': '\u0033\u0030\u65E5',
  20274. '\u33FE': '\u0033\u0031\u65E5',
  20275. '\uFB00': '\u0066\u0066',
  20276. '\uFB01': '\u0066\u0069',
  20277. '\uFB02': '\u0066\u006C',
  20278. '\uFB03': '\u0066\u0066\u0069',
  20279. '\uFB04': '\u0066\u0066\u006C',
  20280. '\uFB05': '\u017F\u0074',
  20281. '\uFB06': '\u0073\u0074',
  20282. '\uFB13': '\u0574\u0576',
  20283. '\uFB14': '\u0574\u0565',
  20284. '\uFB15': '\u0574\u056B',
  20285. '\uFB16': '\u057E\u0576',
  20286. '\uFB17': '\u0574\u056D',
  20287. '\uFB4F': '\u05D0\u05DC',
  20288. '\uFB50': '\u0671',
  20289. '\uFB51': '\u0671',
  20290. '\uFB52': '\u067B',
  20291. '\uFB53': '\u067B',
  20292. '\uFB54': '\u067B',
  20293. '\uFB55': '\u067B',
  20294. '\uFB56': '\u067E',
  20295. '\uFB57': '\u067E',
  20296. '\uFB58': '\u067E',
  20297. '\uFB59': '\u067E',
  20298. '\uFB5A': '\u0680',
  20299. '\uFB5B': '\u0680',
  20300. '\uFB5C': '\u0680',
  20301. '\uFB5D': '\u0680',
  20302. '\uFB5E': '\u067A',
  20303. '\uFB5F': '\u067A',
  20304. '\uFB60': '\u067A',
  20305. '\uFB61': '\u067A',
  20306. '\uFB62': '\u067F',
  20307. '\uFB63': '\u067F',
  20308. '\uFB64': '\u067F',
  20309. '\uFB65': '\u067F',
  20310. '\uFB66': '\u0679',
  20311. '\uFB67': '\u0679',
  20312. '\uFB68': '\u0679',
  20313. '\uFB69': '\u0679',
  20314. '\uFB6A': '\u06A4',
  20315. '\uFB6B': '\u06A4',
  20316. '\uFB6C': '\u06A4',
  20317. '\uFB6D': '\u06A4',
  20318. '\uFB6E': '\u06A6',
  20319. '\uFB6F': '\u06A6',
  20320. '\uFB70': '\u06A6',
  20321. '\uFB71': '\u06A6',
  20322. '\uFB72': '\u0684',
  20323. '\uFB73': '\u0684',
  20324. '\uFB74': '\u0684',
  20325. '\uFB75': '\u0684',
  20326. '\uFB76': '\u0683',
  20327. '\uFB77': '\u0683',
  20328. '\uFB78': '\u0683',
  20329. '\uFB79': '\u0683',
  20330. '\uFB7A': '\u0686',
  20331. '\uFB7B': '\u0686',
  20332. '\uFB7C': '\u0686',
  20333. '\uFB7D': '\u0686',
  20334. '\uFB7E': '\u0687',
  20335. '\uFB7F': '\u0687',
  20336. '\uFB80': '\u0687',
  20337. '\uFB81': '\u0687',
  20338. '\uFB82': '\u068D',
  20339. '\uFB83': '\u068D',
  20340. '\uFB84': '\u068C',
  20341. '\uFB85': '\u068C',
  20342. '\uFB86': '\u068E',
  20343. '\uFB87': '\u068E',
  20344. '\uFB88': '\u0688',
  20345. '\uFB89': '\u0688',
  20346. '\uFB8A': '\u0698',
  20347. '\uFB8B': '\u0698',
  20348. '\uFB8C': '\u0691',
  20349. '\uFB8D': '\u0691',
  20350. '\uFB8E': '\u06A9',
  20351. '\uFB8F': '\u06A9',
  20352. '\uFB90': '\u06A9',
  20353. '\uFB91': '\u06A9',
  20354. '\uFB92': '\u06AF',
  20355. '\uFB93': '\u06AF',
  20356. '\uFB94': '\u06AF',
  20357. '\uFB95': '\u06AF',
  20358. '\uFB96': '\u06B3',
  20359. '\uFB97': '\u06B3',
  20360. '\uFB98': '\u06B3',
  20361. '\uFB99': '\u06B3',
  20362. '\uFB9A': '\u06B1',
  20363. '\uFB9B': '\u06B1',
  20364. '\uFB9C': '\u06B1',
  20365. '\uFB9D': '\u06B1',
  20366. '\uFB9E': '\u06BA',
  20367. '\uFB9F': '\u06BA',
  20368. '\uFBA0': '\u06BB',
  20369. '\uFBA1': '\u06BB',
  20370. '\uFBA2': '\u06BB',
  20371. '\uFBA3': '\u06BB',
  20372. '\uFBA4': '\u06C0',
  20373. '\uFBA5': '\u06C0',
  20374. '\uFBA6': '\u06C1',
  20375. '\uFBA7': '\u06C1',
  20376. '\uFBA8': '\u06C1',
  20377. '\uFBA9': '\u06C1',
  20378. '\uFBAA': '\u06BE',
  20379. '\uFBAB': '\u06BE',
  20380. '\uFBAC': '\u06BE',
  20381. '\uFBAD': '\u06BE',
  20382. '\uFBAE': '\u06D2',
  20383. '\uFBAF': '\u06D2',
  20384. '\uFBB0': '\u06D3',
  20385. '\uFBB1': '\u06D3',
  20386. '\uFBD3': '\u06AD',
  20387. '\uFBD4': '\u06AD',
  20388. '\uFBD5': '\u06AD',
  20389. '\uFBD6': '\u06AD',
  20390. '\uFBD7': '\u06C7',
  20391. '\uFBD8': '\u06C7',
  20392. '\uFBD9': '\u06C6',
  20393. '\uFBDA': '\u06C6',
  20394. '\uFBDB': '\u06C8',
  20395. '\uFBDC': '\u06C8',
  20396. '\uFBDD': '\u0677',
  20397. '\uFBDE': '\u06CB',
  20398. '\uFBDF': '\u06CB',
  20399. '\uFBE0': '\u06C5',
  20400. '\uFBE1': '\u06C5',
  20401. '\uFBE2': '\u06C9',
  20402. '\uFBE3': '\u06C9',
  20403. '\uFBE4': '\u06D0',
  20404. '\uFBE5': '\u06D0',
  20405. '\uFBE6': '\u06D0',
  20406. '\uFBE7': '\u06D0',
  20407. '\uFBE8': '\u0649',
  20408. '\uFBE9': '\u0649',
  20409. '\uFBEA': '\u0626\u0627',
  20410. '\uFBEB': '\u0626\u0627',
  20411. '\uFBEC': '\u0626\u06D5',
  20412. '\uFBED': '\u0626\u06D5',
  20413. '\uFBEE': '\u0626\u0648',
  20414. '\uFBEF': '\u0626\u0648',
  20415. '\uFBF0': '\u0626\u06C7',
  20416. '\uFBF1': '\u0626\u06C7',
  20417. '\uFBF2': '\u0626\u06C6',
  20418. '\uFBF3': '\u0626\u06C6',
  20419. '\uFBF4': '\u0626\u06C8',
  20420. '\uFBF5': '\u0626\u06C8',
  20421. '\uFBF6': '\u0626\u06D0',
  20422. '\uFBF7': '\u0626\u06D0',
  20423. '\uFBF8': '\u0626\u06D0',
  20424. '\uFBF9': '\u0626\u0649',
  20425. '\uFBFA': '\u0626\u0649',
  20426. '\uFBFB': '\u0626\u0649',
  20427. '\uFBFC': '\u06CC',
  20428. '\uFBFD': '\u06CC',
  20429. '\uFBFE': '\u06CC',
  20430. '\uFBFF': '\u06CC',
  20431. '\uFC00': '\u0626\u062C',
  20432. '\uFC01': '\u0626\u062D',
  20433. '\uFC02': '\u0626\u0645',
  20434. '\uFC03': '\u0626\u0649',
  20435. '\uFC04': '\u0626\u064A',
  20436. '\uFC05': '\u0628\u062C',
  20437. '\uFC06': '\u0628\u062D',
  20438. '\uFC07': '\u0628\u062E',
  20439. '\uFC08': '\u0628\u0645',
  20440. '\uFC09': '\u0628\u0649',
  20441. '\uFC0A': '\u0628\u064A',
  20442. '\uFC0B': '\u062A\u062C',
  20443. '\uFC0C': '\u062A\u062D',
  20444. '\uFC0D': '\u062A\u062E',
  20445. '\uFC0E': '\u062A\u0645',
  20446. '\uFC0F': '\u062A\u0649',
  20447. '\uFC10': '\u062A\u064A',
  20448. '\uFC11': '\u062B\u062C',
  20449. '\uFC12': '\u062B\u0645',
  20450. '\uFC13': '\u062B\u0649',
  20451. '\uFC14': '\u062B\u064A',
  20452. '\uFC15': '\u062C\u062D',
  20453. '\uFC16': '\u062C\u0645',
  20454. '\uFC17': '\u062D\u062C',
  20455. '\uFC18': '\u062D\u0645',
  20456. '\uFC19': '\u062E\u062C',
  20457. '\uFC1A': '\u062E\u062D',
  20458. '\uFC1B': '\u062E\u0645',
  20459. '\uFC1C': '\u0633\u062C',
  20460. '\uFC1D': '\u0633\u062D',
  20461. '\uFC1E': '\u0633\u062E',
  20462. '\uFC1F': '\u0633\u0645',
  20463. '\uFC20': '\u0635\u062D',
  20464. '\uFC21': '\u0635\u0645',
  20465. '\uFC22': '\u0636\u062C',
  20466. '\uFC23': '\u0636\u062D',
  20467. '\uFC24': '\u0636\u062E',
  20468. '\uFC25': '\u0636\u0645',
  20469. '\uFC26': '\u0637\u062D',
  20470. '\uFC27': '\u0637\u0645',
  20471. '\uFC28': '\u0638\u0645',
  20472. '\uFC29': '\u0639\u062C',
  20473. '\uFC2A': '\u0639\u0645',
  20474. '\uFC2B': '\u063A\u062C',
  20475. '\uFC2C': '\u063A\u0645',
  20476. '\uFC2D': '\u0641\u062C',
  20477. '\uFC2E': '\u0641\u062D',
  20478. '\uFC2F': '\u0641\u062E',
  20479. '\uFC30': '\u0641\u0645',
  20480. '\uFC31': '\u0641\u0649',
  20481. '\uFC32': '\u0641\u064A',
  20482. '\uFC33': '\u0642\u062D',
  20483. '\uFC34': '\u0642\u0645',
  20484. '\uFC35': '\u0642\u0649',
  20485. '\uFC36': '\u0642\u064A',
  20486. '\uFC37': '\u0643\u0627',
  20487. '\uFC38': '\u0643\u062C',
  20488. '\uFC39': '\u0643\u062D',
  20489. '\uFC3A': '\u0643\u062E',
  20490. '\uFC3B': '\u0643\u0644',
  20491. '\uFC3C': '\u0643\u0645',
  20492. '\uFC3D': '\u0643\u0649',
  20493. '\uFC3E': '\u0643\u064A',
  20494. '\uFC3F': '\u0644\u062C',
  20495. '\uFC40': '\u0644\u062D',
  20496. '\uFC41': '\u0644\u062E',
  20497. '\uFC42': '\u0644\u0645',
  20498. '\uFC43': '\u0644\u0649',
  20499. '\uFC44': '\u0644\u064A',
  20500. '\uFC45': '\u0645\u062C',
  20501. '\uFC46': '\u0645\u062D',
  20502. '\uFC47': '\u0645\u062E',
  20503. '\uFC48': '\u0645\u0645',
  20504. '\uFC49': '\u0645\u0649',
  20505. '\uFC4A': '\u0645\u064A',
  20506. '\uFC4B': '\u0646\u062C',
  20507. '\uFC4C': '\u0646\u062D',
  20508. '\uFC4D': '\u0646\u062E',
  20509. '\uFC4E': '\u0646\u0645',
  20510. '\uFC4F': '\u0646\u0649',
  20511. '\uFC50': '\u0646\u064A',
  20512. '\uFC51': '\u0647\u062C',
  20513. '\uFC52': '\u0647\u0645',
  20514. '\uFC53': '\u0647\u0649',
  20515. '\uFC54': '\u0647\u064A',
  20516. '\uFC55': '\u064A\u062C',
  20517. '\uFC56': '\u064A\u062D',
  20518. '\uFC57': '\u064A\u062E',
  20519. '\uFC58': '\u064A\u0645',
  20520. '\uFC59': '\u064A\u0649',
  20521. '\uFC5A': '\u064A\u064A',
  20522. '\uFC5B': '\u0630\u0670',
  20523. '\uFC5C': '\u0631\u0670',
  20524. '\uFC5D': '\u0649\u0670',
  20525. '\uFC5E': '\u0020\u064C\u0651',
  20526. '\uFC5F': '\u0020\u064D\u0651',
  20527. '\uFC60': '\u0020\u064E\u0651',
  20528. '\uFC61': '\u0020\u064F\u0651',
  20529. '\uFC62': '\u0020\u0650\u0651',
  20530. '\uFC63': '\u0020\u0651\u0670',
  20531. '\uFC64': '\u0626\u0631',
  20532. '\uFC65': '\u0626\u0632',
  20533. '\uFC66': '\u0626\u0645',
  20534. '\uFC67': '\u0626\u0646',
  20535. '\uFC68': '\u0626\u0649',
  20536. '\uFC69': '\u0626\u064A',
  20537. '\uFC6A': '\u0628\u0631',
  20538. '\uFC6B': '\u0628\u0632',
  20539. '\uFC6C': '\u0628\u0645',
  20540. '\uFC6D': '\u0628\u0646',
  20541. '\uFC6E': '\u0628\u0649',
  20542. '\uFC6F': '\u0628\u064A',
  20543. '\uFC70': '\u062A\u0631',
  20544. '\uFC71': '\u062A\u0632',
  20545. '\uFC72': '\u062A\u0645',
  20546. '\uFC73': '\u062A\u0646',
  20547. '\uFC74': '\u062A\u0649',
  20548. '\uFC75': '\u062A\u064A',
  20549. '\uFC76': '\u062B\u0631',
  20550. '\uFC77': '\u062B\u0632',
  20551. '\uFC78': '\u062B\u0645',
  20552. '\uFC79': '\u062B\u0646',
  20553. '\uFC7A': '\u062B\u0649',
  20554. '\uFC7B': '\u062B\u064A',
  20555. '\uFC7C': '\u0641\u0649',
  20556. '\uFC7D': '\u0641\u064A',
  20557. '\uFC7E': '\u0642\u0649',
  20558. '\uFC7F': '\u0642\u064A',
  20559. '\uFC80': '\u0643\u0627',
  20560. '\uFC81': '\u0643\u0644',
  20561. '\uFC82': '\u0643\u0645',
  20562. '\uFC83': '\u0643\u0649',
  20563. '\uFC84': '\u0643\u064A',
  20564. '\uFC85': '\u0644\u0645',
  20565. '\uFC86': '\u0644\u0649',
  20566. '\uFC87': '\u0644\u064A',
  20567. '\uFC88': '\u0645\u0627',
  20568. '\uFC89': '\u0645\u0645',
  20569. '\uFC8A': '\u0646\u0631',
  20570. '\uFC8B': '\u0646\u0632',
  20571. '\uFC8C': '\u0646\u0645',
  20572. '\uFC8D': '\u0646\u0646',
  20573. '\uFC8E': '\u0646\u0649',
  20574. '\uFC8F': '\u0646\u064A',
  20575. '\uFC90': '\u0649\u0670',
  20576. '\uFC91': '\u064A\u0631',
  20577. '\uFC92': '\u064A\u0632',
  20578. '\uFC93': '\u064A\u0645',
  20579. '\uFC94': '\u064A\u0646',
  20580. '\uFC95': '\u064A\u0649',
  20581. '\uFC96': '\u064A\u064A',
  20582. '\uFC97': '\u0626\u062C',
  20583. '\uFC98': '\u0626\u062D',
  20584. '\uFC99': '\u0626\u062E',
  20585. '\uFC9A': '\u0626\u0645',
  20586. '\uFC9B': '\u0626\u0647',
  20587. '\uFC9C': '\u0628\u062C',
  20588. '\uFC9D': '\u0628\u062D',
  20589. '\uFC9E': '\u0628\u062E',
  20590. '\uFC9F': '\u0628\u0645',
  20591. '\uFCA0': '\u0628\u0647',
  20592. '\uFCA1': '\u062A\u062C',
  20593. '\uFCA2': '\u062A\u062D',
  20594. '\uFCA3': '\u062A\u062E',
  20595. '\uFCA4': '\u062A\u0645',
  20596. '\uFCA5': '\u062A\u0647',
  20597. '\uFCA6': '\u062B\u0645',
  20598. '\uFCA7': '\u062C\u062D',
  20599. '\uFCA8': '\u062C\u0645',
  20600. '\uFCA9': '\u062D\u062C',
  20601. '\uFCAA': '\u062D\u0645',
  20602. '\uFCAB': '\u062E\u062C',
  20603. '\uFCAC': '\u062E\u0645',
  20604. '\uFCAD': '\u0633\u062C',
  20605. '\uFCAE': '\u0633\u062D',
  20606. '\uFCAF': '\u0633\u062E',
  20607. '\uFCB0': '\u0633\u0645',
  20608. '\uFCB1': '\u0635\u062D',
  20609. '\uFCB2': '\u0635\u062E',
  20610. '\uFCB3': '\u0635\u0645',
  20611. '\uFCB4': '\u0636\u062C',
  20612. '\uFCB5': '\u0636\u062D',
  20613. '\uFCB6': '\u0636\u062E',
  20614. '\uFCB7': '\u0636\u0645',
  20615. '\uFCB8': '\u0637\u062D',
  20616. '\uFCB9': '\u0638\u0645',
  20617. '\uFCBA': '\u0639\u062C',
  20618. '\uFCBB': '\u0639\u0645',
  20619. '\uFCBC': '\u063A\u062C',
  20620. '\uFCBD': '\u063A\u0645',
  20621. '\uFCBE': '\u0641\u062C',
  20622. '\uFCBF': '\u0641\u062D',
  20623. '\uFCC0': '\u0641\u062E',
  20624. '\uFCC1': '\u0641\u0645',
  20625. '\uFCC2': '\u0642\u062D',
  20626. '\uFCC3': '\u0642\u0645',
  20627. '\uFCC4': '\u0643\u062C',
  20628. '\uFCC5': '\u0643\u062D',
  20629. '\uFCC6': '\u0643\u062E',
  20630. '\uFCC7': '\u0643\u0644',
  20631. '\uFCC8': '\u0643\u0645',
  20632. '\uFCC9': '\u0644\u062C',
  20633. '\uFCCA': '\u0644\u062D',
  20634. '\uFCCB': '\u0644\u062E',
  20635. '\uFCCC': '\u0644\u0645',
  20636. '\uFCCD': '\u0644\u0647',
  20637. '\uFCCE': '\u0645\u062C',
  20638. '\uFCCF': '\u0645\u062D',
  20639. '\uFCD0': '\u0645\u062E',
  20640. '\uFCD1': '\u0645\u0645',
  20641. '\uFCD2': '\u0646\u062C',
  20642. '\uFCD3': '\u0646\u062D',
  20643. '\uFCD4': '\u0646\u062E',
  20644. '\uFCD5': '\u0646\u0645',
  20645. '\uFCD6': '\u0646\u0647',
  20646. '\uFCD7': '\u0647\u062C',
  20647. '\uFCD8': '\u0647\u0645',
  20648. '\uFCD9': '\u0647\u0670',
  20649. '\uFCDA': '\u064A\u062C',
  20650. '\uFCDB': '\u064A\u062D',
  20651. '\uFCDC': '\u064A\u062E',
  20652. '\uFCDD': '\u064A\u0645',
  20653. '\uFCDE': '\u064A\u0647',
  20654. '\uFCDF': '\u0626\u0645',
  20655. '\uFCE0': '\u0626\u0647',
  20656. '\uFCE1': '\u0628\u0645',
  20657. '\uFCE2': '\u0628\u0647',
  20658. '\uFCE3': '\u062A\u0645',
  20659. '\uFCE4': '\u062A\u0647',
  20660. '\uFCE5': '\u062B\u0645',
  20661. '\uFCE6': '\u062B\u0647',
  20662. '\uFCE7': '\u0633\u0645',
  20663. '\uFCE8': '\u0633\u0647',
  20664. '\uFCE9': '\u0634\u0645',
  20665. '\uFCEA': '\u0634\u0647',
  20666. '\uFCEB': '\u0643\u0644',
  20667. '\uFCEC': '\u0643\u0645',
  20668. '\uFCED': '\u0644\u0645',
  20669. '\uFCEE': '\u0646\u0645',
  20670. '\uFCEF': '\u0646\u0647',
  20671. '\uFCF0': '\u064A\u0645',
  20672. '\uFCF1': '\u064A\u0647',
  20673. '\uFCF2': '\u0640\u064E\u0651',
  20674. '\uFCF3': '\u0640\u064F\u0651',
  20675. '\uFCF4': '\u0640\u0650\u0651',
  20676. '\uFCF5': '\u0637\u0649',
  20677. '\uFCF6': '\u0637\u064A',
  20678. '\uFCF7': '\u0639\u0649',
  20679. '\uFCF8': '\u0639\u064A',
  20680. '\uFCF9': '\u063A\u0649',
  20681. '\uFCFA': '\u063A\u064A',
  20682. '\uFCFB': '\u0633\u0649',
  20683. '\uFCFC': '\u0633\u064A',
  20684. '\uFCFD': '\u0634\u0649',
  20685. '\uFCFE': '\u0634\u064A',
  20686. '\uFCFF': '\u062D\u0649',
  20687. '\uFD00': '\u062D\u064A',
  20688. '\uFD01': '\u062C\u0649',
  20689. '\uFD02': '\u062C\u064A',
  20690. '\uFD03': '\u062E\u0649',
  20691. '\uFD04': '\u062E\u064A',
  20692. '\uFD05': '\u0635\u0649',
  20693. '\uFD06': '\u0635\u064A',
  20694. '\uFD07': '\u0636\u0649',
  20695. '\uFD08': '\u0636\u064A',
  20696. '\uFD09': '\u0634\u062C',
  20697. '\uFD0A': '\u0634\u062D',
  20698. '\uFD0B': '\u0634\u062E',
  20699. '\uFD0C': '\u0634\u0645',
  20700. '\uFD0D': '\u0634\u0631',
  20701. '\uFD0E': '\u0633\u0631',
  20702. '\uFD0F': '\u0635\u0631',
  20703. '\uFD10': '\u0636\u0631',
  20704. '\uFD11': '\u0637\u0649',
  20705. '\uFD12': '\u0637\u064A',
  20706. '\uFD13': '\u0639\u0649',
  20707. '\uFD14': '\u0639\u064A',
  20708. '\uFD15': '\u063A\u0649',
  20709. '\uFD16': '\u063A\u064A',
  20710. '\uFD17': '\u0633\u0649',
  20711. '\uFD18': '\u0633\u064A',
  20712. '\uFD19': '\u0634\u0649',
  20713. '\uFD1A': '\u0634\u064A',
  20714. '\uFD1B': '\u062D\u0649',
  20715. '\uFD1C': '\u062D\u064A',
  20716. '\uFD1D': '\u062C\u0649',
  20717. '\uFD1E': '\u062C\u064A',
  20718. '\uFD1F': '\u062E\u0649',
  20719. '\uFD20': '\u062E\u064A',
  20720. '\uFD21': '\u0635\u0649',
  20721. '\uFD22': '\u0635\u064A',
  20722. '\uFD23': '\u0636\u0649',
  20723. '\uFD24': '\u0636\u064A',
  20724. '\uFD25': '\u0634\u062C',
  20725. '\uFD26': '\u0634\u062D',
  20726. '\uFD27': '\u0634\u062E',
  20727. '\uFD28': '\u0634\u0645',
  20728. '\uFD29': '\u0634\u0631',
  20729. '\uFD2A': '\u0633\u0631',
  20730. '\uFD2B': '\u0635\u0631',
  20731. '\uFD2C': '\u0636\u0631',
  20732. '\uFD2D': '\u0634\u062C',
  20733. '\uFD2E': '\u0634\u062D',
  20734. '\uFD2F': '\u0634\u062E',
  20735. '\uFD30': '\u0634\u0645',
  20736. '\uFD31': '\u0633\u0647',
  20737. '\uFD32': '\u0634\u0647',
  20738. '\uFD33': '\u0637\u0645',
  20739. '\uFD34': '\u0633\u062C',
  20740. '\uFD35': '\u0633\u062D',
  20741. '\uFD36': '\u0633\u062E',
  20742. '\uFD37': '\u0634\u062C',
  20743. '\uFD38': '\u0634\u062D',
  20744. '\uFD39': '\u0634\u062E',
  20745. '\uFD3A': '\u0637\u0645',
  20746. '\uFD3B': '\u0638\u0645',
  20747. '\uFD3C': '\u0627\u064B',
  20748. '\uFD3D': '\u0627\u064B',
  20749. '\uFD50': '\u062A\u062C\u0645',
  20750. '\uFD51': '\u062A\u062D\u062C',
  20751. '\uFD52': '\u062A\u062D\u062C',
  20752. '\uFD53': '\u062A\u062D\u0645',
  20753. '\uFD54': '\u062A\u062E\u0645',
  20754. '\uFD55': '\u062A\u0645\u062C',
  20755. '\uFD56': '\u062A\u0645\u062D',
  20756. '\uFD57': '\u062A\u0645\u062E',
  20757. '\uFD58': '\u062C\u0645\u062D',
  20758. '\uFD59': '\u062C\u0645\u062D',
  20759. '\uFD5A': '\u062D\u0645\u064A',
  20760. '\uFD5B': '\u062D\u0645\u0649',
  20761. '\uFD5C': '\u0633\u062D\u062C',
  20762. '\uFD5D': '\u0633\u062C\u062D',
  20763. '\uFD5E': '\u0633\u062C\u0649',
  20764. '\uFD5F': '\u0633\u0645\u062D',
  20765. '\uFD60': '\u0633\u0645\u062D',
  20766. '\uFD61': '\u0633\u0645\u062C',
  20767. '\uFD62': '\u0633\u0645\u0645',
  20768. '\uFD63': '\u0633\u0645\u0645',
  20769. '\uFD64': '\u0635\u062D\u062D',
  20770. '\uFD65': '\u0635\u062D\u062D',
  20771. '\uFD66': '\u0635\u0645\u0645',
  20772. '\uFD67': '\u0634\u062D\u0645',
  20773. '\uFD68': '\u0634\u062D\u0645',
  20774. '\uFD69': '\u0634\u062C\u064A',
  20775. '\uFD6A': '\u0634\u0645\u062E',
  20776. '\uFD6B': '\u0634\u0645\u062E',
  20777. '\uFD6C': '\u0634\u0645\u0645',
  20778. '\uFD6D': '\u0634\u0645\u0645',
  20779. '\uFD6E': '\u0636\u062D\u0649',
  20780. '\uFD6F': '\u0636\u062E\u0645',
  20781. '\uFD70': '\u0636\u062E\u0645',
  20782. '\uFD71': '\u0637\u0645\u062D',
  20783. '\uFD72': '\u0637\u0645\u062D',
  20784. '\uFD73': '\u0637\u0645\u0645',
  20785. '\uFD74': '\u0637\u0645\u064A',
  20786. '\uFD75': '\u0639\u062C\u0645',
  20787. '\uFD76': '\u0639\u0645\u0645',
  20788. '\uFD77': '\u0639\u0645\u0645',
  20789. '\uFD78': '\u0639\u0645\u0649',
  20790. '\uFD79': '\u063A\u0645\u0645',
  20791. '\uFD7A': '\u063A\u0645\u064A',
  20792. '\uFD7B': '\u063A\u0645\u0649',
  20793. '\uFD7C': '\u0641\u062E\u0645',
  20794. '\uFD7D': '\u0641\u062E\u0645',
  20795. '\uFD7E': '\u0642\u0645\u062D',
  20796. '\uFD7F': '\u0642\u0645\u0645',
  20797. '\uFD80': '\u0644\u062D\u0645',
  20798. '\uFD81': '\u0644\u062D\u064A',
  20799. '\uFD82': '\u0644\u062D\u0649',
  20800. '\uFD83': '\u0644\u062C\u062C',
  20801. '\uFD84': '\u0644\u062C\u062C',
  20802. '\uFD85': '\u0644\u062E\u0645',
  20803. '\uFD86': '\u0644\u062E\u0645',
  20804. '\uFD87': '\u0644\u0645\u062D',
  20805. '\uFD88': '\u0644\u0645\u062D',
  20806. '\uFD89': '\u0645\u062D\u062C',
  20807. '\uFD8A': '\u0645\u062D\u0645',
  20808. '\uFD8B': '\u0645\u062D\u064A',
  20809. '\uFD8C': '\u0645\u062C\u062D',
  20810. '\uFD8D': '\u0645\u062C\u0645',
  20811. '\uFD8E': '\u0645\u062E\u062C',
  20812. '\uFD8F': '\u0645\u062E\u0645',
  20813. '\uFD92': '\u0645\u062C\u062E',
  20814. '\uFD93': '\u0647\u0645\u062C',
  20815. '\uFD94': '\u0647\u0645\u0645',
  20816. '\uFD95': '\u0646\u062D\u0645',
  20817. '\uFD96': '\u0646\u062D\u0649',
  20818. '\uFD97': '\u0646\u062C\u0645',
  20819. '\uFD98': '\u0646\u062C\u0645',
  20820. '\uFD99': '\u0646\u062C\u0649',
  20821. '\uFD9A': '\u0646\u0645\u064A',
  20822. '\uFD9B': '\u0646\u0645\u0649',
  20823. '\uFD9C': '\u064A\u0645\u0645',
  20824. '\uFD9D': '\u064A\u0645\u0645',
  20825. '\uFD9E': '\u0628\u062E\u064A',
  20826. '\uFD9F': '\u062A\u062C\u064A',
  20827. '\uFDA0': '\u062A\u062C\u0649',
  20828. '\uFDA1': '\u062A\u062E\u064A',
  20829. '\uFDA2': '\u062A\u062E\u0649',
  20830. '\uFDA3': '\u062A\u0645\u064A',
  20831. '\uFDA4': '\u062A\u0645\u0649',
  20832. '\uFDA5': '\u062C\u0645\u064A',
  20833. '\uFDA6': '\u062C\u062D\u0649',
  20834. '\uFDA7': '\u062C\u0645\u0649',
  20835. '\uFDA8': '\u0633\u062E\u0649',
  20836. '\uFDA9': '\u0635\u062D\u064A',
  20837. '\uFDAA': '\u0634\u062D\u064A',
  20838. '\uFDAB': '\u0636\u062D\u064A',
  20839. '\uFDAC': '\u0644\u062C\u064A',
  20840. '\uFDAD': '\u0644\u0645\u064A',
  20841. '\uFDAE': '\u064A\u062D\u064A',
  20842. '\uFDAF': '\u064A\u062C\u064A',
  20843. '\uFDB0': '\u064A\u0645\u064A',
  20844. '\uFDB1': '\u0645\u0645\u064A',
  20845. '\uFDB2': '\u0642\u0645\u064A',
  20846. '\uFDB3': '\u0646\u062D\u064A',
  20847. '\uFDB4': '\u0642\u0645\u062D',
  20848. '\uFDB5': '\u0644\u062D\u0645',
  20849. '\uFDB6': '\u0639\u0645\u064A',
  20850. '\uFDB7': '\u0643\u0645\u064A',
  20851. '\uFDB8': '\u0646\u062C\u062D',
  20852. '\uFDB9': '\u0645\u062E\u064A',
  20853. '\uFDBA': '\u0644\u062C\u0645',
  20854. '\uFDBB': '\u0643\u0645\u0645',
  20855. '\uFDBC': '\u0644\u062C\u0645',
  20856. '\uFDBD': '\u0646\u062C\u062D',
  20857. '\uFDBE': '\u062C\u062D\u064A',
  20858. '\uFDBF': '\u062D\u062C\u064A',
  20859. '\uFDC0': '\u0645\u062C\u064A',
  20860. '\uFDC1': '\u0641\u0645\u064A',
  20861. '\uFDC2': '\u0628\u062D\u064A',
  20862. '\uFDC3': '\u0643\u0645\u0645',
  20863. '\uFDC4': '\u0639\u062C\u0645',
  20864. '\uFDC5': '\u0635\u0645\u0645',
  20865. '\uFDC6': '\u0633\u062E\u064A',
  20866. '\uFDC7': '\u0646\u062C\u064A',
  20867. '\uFE49': '\u203E',
  20868. '\uFE4A': '\u203E',
  20869. '\uFE4B': '\u203E',
  20870. '\uFE4C': '\u203E',
  20871. '\uFE4D': '\u005F',
  20872. '\uFE4E': '\u005F',
  20873. '\uFE4F': '\u005F',
  20874. '\uFE80': '\u0621',
  20875. '\uFE81': '\u0622',
  20876. '\uFE82': '\u0622',
  20877. '\uFE83': '\u0623',
  20878. '\uFE84': '\u0623',
  20879. '\uFE85': '\u0624',
  20880. '\uFE86': '\u0624',
  20881. '\uFE87': '\u0625',
  20882. '\uFE88': '\u0625',
  20883. '\uFE89': '\u0626',
  20884. '\uFE8A': '\u0626',
  20885. '\uFE8B': '\u0626',
  20886. '\uFE8C': '\u0626',
  20887. '\uFE8D': '\u0627',
  20888. '\uFE8E': '\u0627',
  20889. '\uFE8F': '\u0628',
  20890. '\uFE90': '\u0628',
  20891. '\uFE91': '\u0628',
  20892. '\uFE92': '\u0628',
  20893. '\uFE93': '\u0629',
  20894. '\uFE94': '\u0629',
  20895. '\uFE95': '\u062A',
  20896. '\uFE96': '\u062A',
  20897. '\uFE97': '\u062A',
  20898. '\uFE98': '\u062A',
  20899. '\uFE99': '\u062B',
  20900. '\uFE9A': '\u062B',
  20901. '\uFE9B': '\u062B',
  20902. '\uFE9C': '\u062B',
  20903. '\uFE9D': '\u062C',
  20904. '\uFE9E': '\u062C',
  20905. '\uFE9F': '\u062C',
  20906. '\uFEA0': '\u062C',
  20907. '\uFEA1': '\u062D',
  20908. '\uFEA2': '\u062D',
  20909. '\uFEA3': '\u062D',
  20910. '\uFEA4': '\u062D',
  20911. '\uFEA5': '\u062E',
  20912. '\uFEA6': '\u062E',
  20913. '\uFEA7': '\u062E',
  20914. '\uFEA8': '\u062E',
  20915. '\uFEA9': '\u062F',
  20916. '\uFEAA': '\u062F',
  20917. '\uFEAB': '\u0630',
  20918. '\uFEAC': '\u0630',
  20919. '\uFEAD': '\u0631',
  20920. '\uFEAE': '\u0631',
  20921. '\uFEAF': '\u0632',
  20922. '\uFEB0': '\u0632',
  20923. '\uFEB1': '\u0633',
  20924. '\uFEB2': '\u0633',
  20925. '\uFEB3': '\u0633',
  20926. '\uFEB4': '\u0633',
  20927. '\uFEB5': '\u0634',
  20928. '\uFEB6': '\u0634',
  20929. '\uFEB7': '\u0634',
  20930. '\uFEB8': '\u0634',
  20931. '\uFEB9': '\u0635',
  20932. '\uFEBA': '\u0635',
  20933. '\uFEBB': '\u0635',
  20934. '\uFEBC': '\u0635',
  20935. '\uFEBD': '\u0636',
  20936. '\uFEBE': '\u0636',
  20937. '\uFEBF': '\u0636',
  20938. '\uFEC0': '\u0636',
  20939. '\uFEC1': '\u0637',
  20940. '\uFEC2': '\u0637',
  20941. '\uFEC3': '\u0637',
  20942. '\uFEC4': '\u0637',
  20943. '\uFEC5': '\u0638',
  20944. '\uFEC6': '\u0638',
  20945. '\uFEC7': '\u0638',
  20946. '\uFEC8': '\u0638',
  20947. '\uFEC9': '\u0639',
  20948. '\uFECA': '\u0639',
  20949. '\uFECB': '\u0639',
  20950. '\uFECC': '\u0639',
  20951. '\uFECD': '\u063A',
  20952. '\uFECE': '\u063A',
  20953. '\uFECF': '\u063A',
  20954. '\uFED0': '\u063A',
  20955. '\uFED1': '\u0641',
  20956. '\uFED2': '\u0641',
  20957. '\uFED3': '\u0641',
  20958. '\uFED4': '\u0641',
  20959. '\uFED5': '\u0642',
  20960. '\uFED6': '\u0642',
  20961. '\uFED7': '\u0642',
  20962. '\uFED8': '\u0642',
  20963. '\uFED9': '\u0643',
  20964. '\uFEDA': '\u0643',
  20965. '\uFEDB': '\u0643',
  20966. '\uFEDC': '\u0643',
  20967. '\uFEDD': '\u0644',
  20968. '\uFEDE': '\u0644',
  20969. '\uFEDF': '\u0644',
  20970. '\uFEE0': '\u0644',
  20971. '\uFEE1': '\u0645',
  20972. '\uFEE2': '\u0645',
  20973. '\uFEE3': '\u0645',
  20974. '\uFEE4': '\u0645',
  20975. '\uFEE5': '\u0646',
  20976. '\uFEE6': '\u0646',
  20977. '\uFEE7': '\u0646',
  20978. '\uFEE8': '\u0646',
  20979. '\uFEE9': '\u0647',
  20980. '\uFEEA': '\u0647',
  20981. '\uFEEB': '\u0647',
  20982. '\uFEEC': '\u0647',
  20983. '\uFEED': '\u0648',
  20984. '\uFEEE': '\u0648',
  20985. '\uFEEF': '\u0649',
  20986. '\uFEF0': '\u0649',
  20987. '\uFEF1': '\u064A',
  20988. '\uFEF2': '\u064A',
  20989. '\uFEF3': '\u064A',
  20990. '\uFEF4': '\u064A',
  20991. '\uFEF5': '\u0644\u0622',
  20992. '\uFEF6': '\u0644\u0622',
  20993. '\uFEF7': '\u0644\u0623',
  20994. '\uFEF8': '\u0644\u0623',
  20995. '\uFEF9': '\u0644\u0625',
  20996. '\uFEFA': '\u0644\u0625',
  20997. '\uFEFB': '\u0644\u0627',
  20998. '\uFEFC': '\u0644\u0627'
  20999. };
  21000. function reverseIfRtl(chars) {
  21001. var charsLength = chars.length;
  21002. //reverse an arabic ligature
  21003. if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) {
  21004. return chars;
  21005. }
  21006. var s = '';
  21007. for (var ii = charsLength - 1; ii >= 0; ii--) {
  21008. s += chars[ii];
  21009. }
  21010. return s;
  21011. }
  21012. function adjustWidths(properties) {
  21013. if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
  21014. return;
  21015. }
  21016. // adjusting width to fontMatrix scale
  21017. var scale = 0.001 / properties.fontMatrix[0];
  21018. var glyphsWidths = properties.widths;
  21019. for (var glyph in glyphsWidths) {
  21020. glyphsWidths[glyph] *= scale;
  21021. }
  21022. properties.defaultWidth *= scale;
  21023. }
  21024. function getFontType(type, subtype) {
  21025. switch (type) {
  21026. case 'Type1':
  21027. return subtype === 'Type1C' ? FontType.TYPE1C : FontType.TYPE1;
  21028. case 'CIDFontType0':
  21029. return subtype === 'CIDFontType0C' ? FontType.CIDFONTTYPE0C :
  21030. FontType.CIDFONTTYPE0;
  21031. case 'OpenType':
  21032. return FontType.OPENTYPE;
  21033. case 'TrueType':
  21034. return FontType.TRUETYPE;
  21035. case 'CIDFontType2':
  21036. return FontType.CIDFONTTYPE2;
  21037. case 'MMType1':
  21038. return FontType.MMTYPE1;
  21039. case 'Type0':
  21040. return FontType.TYPE0;
  21041. default:
  21042. return FontType.UNKNOWN;
  21043. }
  21044. }
  21045. var Glyph = (function GlyphClosure() {
  21046. function Glyph(fontChar, unicode, accent, width, vmetric, operatorListId) {
  21047. this.fontChar = fontChar;
  21048. this.unicode = unicode;
  21049. this.accent = accent;
  21050. this.width = width;
  21051. this.vmetric = vmetric;
  21052. this.operatorListId = operatorListId;
  21053. }
  21054. Glyph.prototype.matchesForCache =
  21055. function(fontChar, unicode, accent, width, vmetric, operatorListId) {
  21056. return this.fontChar === fontChar &&
  21057. this.unicode === unicode &&
  21058. this.accent === accent &&
  21059. this.width === width &&
  21060. this.vmetric === vmetric &&
  21061. this.operatorListId === operatorListId;
  21062. };
  21063. return Glyph;
  21064. })();
  21065. /**
  21066. * 'Font' is the class the outside world should use, it encapsulate all the font
  21067. * decoding logics whatever type it is (assuming the font type is supported).
  21068. *
  21069. * For example to read a Type1 font and to attach it to the document:
  21070. * var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
  21071. * type1Font.bind();
  21072. */
  21073. var Font = (function FontClosure() {
  21074. function Font(name, file, properties) {
  21075. var charCode;
  21076. this.name = name;
  21077. this.loadedName = properties.loadedName;
  21078. this.isType3Font = properties.isType3Font;
  21079. this.sizes = [];
  21080. this.glyphCache = {};
  21081. var names = name.split('+');
  21082. names = names.length > 1 ? names[1] : names[0];
  21083. names = names.split(/[-,_]/g)[0];
  21084. this.isSerifFont = !!(properties.flags & FontFlags.Serif);
  21085. this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
  21086. this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
  21087. var type = properties.type;
  21088. var subtype = properties.subtype;
  21089. this.type = type;
  21090. this.fallbackName = (this.isMonospace ? 'monospace' :
  21091. (this.isSerifFont ? 'serif' : 'sans-serif'));
  21092. this.differences = properties.differences;
  21093. this.widths = properties.widths;
  21094. this.defaultWidth = properties.defaultWidth;
  21095. this.composite = properties.composite;
  21096. this.wideChars = properties.wideChars;
  21097. this.cMap = properties.cMap;
  21098. this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
  21099. this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
  21100. this.fontMatrix = properties.fontMatrix;
  21101. var unicode = this.buildToUnicode(properties);
  21102. this.toUnicode = properties.toUnicode = unicode.toUnicode;
  21103. this.isIdentityUnicode = properties.isIdentityUnicode = unicode.isIdentity;
  21104. this.toFontChar = [];
  21105. if (properties.type == 'Type3') {
  21106. for (charCode = 0; charCode < 256; charCode++) {
  21107. this.toFontChar[charCode] = (this.differences[charCode] ||
  21108. properties.defaultEncoding[charCode]);
  21109. }
  21110. this.fontType = FontType.TYPE3;
  21111. return;
  21112. }
  21113. this.cidEncoding = properties.cidEncoding;
  21114. this.vertical = properties.vertical;
  21115. if (this.vertical) {
  21116. this.vmetrics = properties.vmetrics;
  21117. this.defaultVMetrics = properties.defaultVMetrics;
  21118. }
  21119. if (!file || file.isEmpty) {
  21120. if (file) {
  21121. // Some bad PDF generators will include empty font files,
  21122. // attempting to recover by assuming that no file exists.
  21123. warn('Font file is empty in "' + name + '" (' + this.loadedName + ')');
  21124. }
  21125. this.missingFile = true;
  21126. // The file data is not specified. Trying to fix the font name
  21127. // to be used with the canvas.font.
  21128. var fontName = name.replace(/[,_]/g, '-');
  21129. var isStandardFont = fontName in stdFontMap;
  21130. fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName;
  21131. this.bold = (fontName.search(/bold/gi) != -1);
  21132. this.italic = ((fontName.search(/oblique/gi) != -1) ||
  21133. (fontName.search(/italic/gi) != -1));
  21134. // Use 'name' instead of 'fontName' here because the original
  21135. // name ArialBlack for example will be replaced by Helvetica.
  21136. this.black = (name.search(/Black/g) != -1);
  21137. // if at least one width is present, remeasure all chars when exists
  21138. this.remeasure = Object.keys(this.widths).length > 0;
  21139. if (isStandardFont && type === 'CIDFontType2' &&
  21140. properties.cidEncoding.indexOf('Identity-') === 0) {
  21141. // Standard fonts might be embedded as CID font without glyph mapping.
  21142. // Building one based on GlyphMapForStandardFonts.
  21143. var map = [];
  21144. for (var code in GlyphMapForStandardFonts) {
  21145. map[+code] = GlyphMapForStandardFonts[code];
  21146. }
  21147. this.toFontChar = map;
  21148. this.toUnicode = map;
  21149. } else if (/Symbol/i.test(fontName)) {
  21150. var symbols = Encodings.SymbolSetEncoding;
  21151. for (charCode in symbols) {
  21152. var fontChar = GlyphsUnicode[symbols[charCode]];
  21153. if (!fontChar) {
  21154. continue;
  21155. }
  21156. this.toFontChar[charCode] = fontChar;
  21157. }
  21158. } else if (isStandardFont) {
  21159. this.toFontChar = [];
  21160. for (charCode in properties.defaultEncoding) {
  21161. var glyphName = properties.differences[charCode] ||
  21162. properties.defaultEncoding[charCode];
  21163. this.toFontChar[charCode] = GlyphsUnicode[glyphName];
  21164. }
  21165. } else {
  21166. for (charCode in this.toUnicode) {
  21167. this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0);
  21168. }
  21169. }
  21170. this.loadedName = fontName.split('-')[0];
  21171. this.loading = false;
  21172. this.fontType = getFontType(type, subtype);
  21173. return;
  21174. }
  21175. // Some fonts might use wrong font types for Type1C or CIDFontType0C
  21176. if (subtype == 'Type1C' && (type != 'Type1' && type != 'MMType1')) {
  21177. // Some TrueType fonts by mistake claim Type1C
  21178. if (isTrueTypeFile(file)) {
  21179. subtype = 'TrueType';
  21180. } else {
  21181. type = 'Type1';
  21182. }
  21183. }
  21184. if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') {
  21185. type = 'CIDFontType0';
  21186. }
  21187. // XXX: Temporarily change the type for open type so we trigger a warning.
  21188. // This should be removed when we add support for open type.
  21189. if (subtype === 'OpenType') {
  21190. type = 'OpenType';
  21191. }
  21192. var data;
  21193. switch (type) {
  21194. case 'Type1':
  21195. case 'CIDFontType0':
  21196. this.mimetype = 'font/opentype';
  21197. var cff = (subtype === 'Type1C' || subtype === 'CIDFontType0C') ?
  21198. new CFFFont(file, properties) : new Type1Font(name, file, properties);
  21199. adjustWidths(properties);
  21200. // Wrap the CFF data inside an OTF font file
  21201. data = this.convert(name, cff, properties);
  21202. break;
  21203. case 'OpenType':
  21204. case 'TrueType':
  21205. case 'CIDFontType2':
  21206. this.mimetype = 'font/opentype';
  21207. // Repair the TrueType file. It is can be damaged in the point of
  21208. // view of the sanitizer
  21209. data = this.checkAndRepair(name, file, properties);
  21210. if (this.isOpenType) {
  21211. type = 'OpenType';
  21212. }
  21213. break;
  21214. default:
  21215. error('Font ' + type + ' is not supported');
  21216. break;
  21217. }
  21218. this.data = data;
  21219. this.fontType = getFontType(type, subtype);
  21220. // Transfer some properties again that could change during font conversion
  21221. this.fontMatrix = properties.fontMatrix;
  21222. this.widths = properties.widths;
  21223. this.defaultWidth = properties.defaultWidth;
  21224. this.encoding = properties.baseEncoding;
  21225. this.seacMap = properties.seacMap;
  21226. this.loading = true;
  21227. }
  21228. Font.getFontID = (function () {
  21229. var ID = 1;
  21230. return function Font_getFontID() {
  21231. return String(ID++);
  21232. };
  21233. })();
  21234. function int16(b0, b1) {
  21235. return (b0 << 8) + b1;
  21236. }
  21237. function int32(b0, b1, b2, b3) {
  21238. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  21239. }
  21240. function getMaxPower2(number) {
  21241. var maxPower = 0;
  21242. var value = number;
  21243. while (value >= 2) {
  21244. value /= 2;
  21245. maxPower++;
  21246. }
  21247. value = 2;
  21248. for (var i = 1; i < maxPower; i++) {
  21249. value *= 2;
  21250. }
  21251. return value;
  21252. }
  21253. function string16(value) {
  21254. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  21255. }
  21256. function safeString16(value) {
  21257. // clamp value to the 16-bit int range
  21258. value = (value > 0x7FFF ? 0x7FFF : (value < -0x8000 ? -0x8000 : value));
  21259. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  21260. }
  21261. function createOpenTypeHeader(sfnt, file, numTables) {
  21262. // Windows hates the Mac TrueType sfnt version number
  21263. if (sfnt == 'true') {
  21264. sfnt = string32(0x00010000);
  21265. }
  21266. // sfnt version (4 bytes)
  21267. var header = sfnt;
  21268. // numTables (2 bytes)
  21269. header += string16(numTables);
  21270. // searchRange (2 bytes)
  21271. var tablesMaxPower2 = getMaxPower2(numTables);
  21272. var searchRange = tablesMaxPower2 * 16;
  21273. header += string16(searchRange);
  21274. // entrySelector (2 bytes)
  21275. header += string16(Math.log(tablesMaxPower2) / Math.log(2));
  21276. // rangeShift (2 bytes)
  21277. header += string16(numTables * 16 - searchRange);
  21278. file.file += header;
  21279. file.virtualOffset += header.length;
  21280. }
  21281. function createTableEntry(file, tag, data) {
  21282. // offset
  21283. var offset = file.virtualOffset;
  21284. // length
  21285. var length = data.length;
  21286. // Per spec tables must be 4-bytes align so add padding as needed
  21287. while (data.length & 3) {
  21288. data.push(0x00);
  21289. }
  21290. while (file.virtualOffset & 3) {
  21291. file.virtualOffset++;
  21292. }
  21293. // checksum
  21294. var checksum = 0, n = data.length;
  21295. for (var i = 0; i < n; i += 4) {
  21296. checksum = (checksum + int32(data[i], data[i + 1], data[i + 2],
  21297. data[i + 3])) | 0;
  21298. }
  21299. var tableEntry = (tag + string32(checksum) +
  21300. string32(offset) + string32(length));
  21301. file.file += tableEntry;
  21302. file.virtualOffset += data.length;
  21303. }
  21304. function isTrueTypeFile(file) {
  21305. var header = file.peekBytes(4);
  21306. return readUint32(header, 0) === 0x00010000;
  21307. }
  21308. /**
  21309. * Rebuilds the char code to glyph ID map by trying to replace the char codes
  21310. * with their unicode value. It also moves char codes that are in known
  21311. * problematic locations.
  21312. * @return {Object} Two properties:
  21313. * 'toFontChar' - maps original char codes(the value that will be read
  21314. * from commands such as show text) to the char codes that will be used in the
  21315. * font that we build
  21316. * 'charCodeToGlyphId' - maps the new font char codes to glyph ids
  21317. */
  21318. function adjustMapping(charCodeToGlyphId, properties) {
  21319. var toUnicode = properties.toUnicode;
  21320. var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
  21321. var isIdentityUnicode = properties.isIdentityUnicode;
  21322. var newMap = Object.create(null);
  21323. var toFontChar = [];
  21324. var usedFontCharCodes = [];
  21325. var nextAvailableFontCharCode = PRIVATE_USE_OFFSET_START;
  21326. for (var originalCharCode in charCodeToGlyphId) {
  21327. originalCharCode |= 0;
  21328. var glyphId = charCodeToGlyphId[originalCharCode];
  21329. var fontCharCode = originalCharCode;
  21330. // First try to map the value to a unicode position if a non identity map
  21331. // was created.
  21332. if (!isIdentityUnicode && originalCharCode in toUnicode) {
  21333. var unicode = toUnicode[fontCharCode];
  21334. // TODO: Try to map ligatures to the correct spot.
  21335. if (unicode.length === 1) {
  21336. fontCharCode = unicode.charCodeAt(0);
  21337. }
  21338. }
  21339. // Try to move control characters, special characters and already mapped
  21340. // characters to the private use area since they will not be drawn by
  21341. // canvas if left in their current position. Also, move characters if the
  21342. // font was symbolic and there is only an identity unicode map since the
  21343. // characters probably aren't in the correct position (fixes an issue
  21344. // with firefox and thuluthfont).
  21345. if ((fontCharCode in usedFontCharCodes ||
  21346. fontCharCode <= 0x1f || // Control chars
  21347. fontCharCode === 0x7F || // Control char
  21348. fontCharCode === 0xAD || // Soft hyphen
  21349. (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
  21350. // Prevent drawing characters in the specials unicode block.
  21351. (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
  21352. (isSymbolic && isIdentityUnicode)) &&
  21353. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) { // Room left.
  21354. // Loop to try and find a free spot in the private use area.
  21355. do {
  21356. fontCharCode = nextAvailableFontCharCode++;
  21357. if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
  21358. fontCharCode = 0xF020;
  21359. nextAvailableFontCharCode = fontCharCode + 1;
  21360. }
  21361. } while (fontCharCode in usedFontCharCodes &&
  21362. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END);
  21363. }
  21364. newMap[fontCharCode] = glyphId;
  21365. toFontChar[originalCharCode] = fontCharCode;
  21366. usedFontCharCodes[fontCharCode] = true;
  21367. }
  21368. return {
  21369. toFontChar: toFontChar,
  21370. charCodeToGlyphId: newMap,
  21371. nextAvailableFontCharCode: nextAvailableFontCharCode
  21372. };
  21373. }
  21374. function getRanges(glyphs) {
  21375. // Array.sort() sorts by characters, not numerically, so convert to an
  21376. // array of characters.
  21377. var codes = [];
  21378. for (var charCode in glyphs) {
  21379. codes.push({ fontCharCode: charCode | 0, glyphId: glyphs[charCode] });
  21380. }
  21381. codes.sort(function fontGetRangesSort(a, b) {
  21382. return a.fontCharCode - b.fontCharCode;
  21383. });
  21384. // Split the sorted codes into ranges.
  21385. var ranges = [];
  21386. var length = codes.length;
  21387. for (var n = 0; n < length; ) {
  21388. var start = codes[n].fontCharCode;
  21389. var codeIndices = [codes[n].glyphId];
  21390. ++n;
  21391. var end = start;
  21392. while (n < length && end + 1 == codes[n].fontCharCode) {
  21393. codeIndices.push(codes[n].glyphId);
  21394. ++end;
  21395. ++n;
  21396. if (end === 0xFFFF) {
  21397. break;
  21398. }
  21399. }
  21400. ranges.push([start, end, codeIndices]);
  21401. }
  21402. return ranges;
  21403. }
  21404. function createCmapTable(glyphs) {
  21405. var ranges = getRanges(glyphs);
  21406. var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1;
  21407. var cmap = '\x00\x00' + // version
  21408. string16(numTables) + // numTables
  21409. '\x00\x03' + // platformID
  21410. '\x00\x01' + // encodingID
  21411. string32(4 + numTables * 8); // start of the table record
  21412. var i, ii, j, jj;
  21413. for (i = ranges.length - 1; i >= 0; --i) {
  21414. if (ranges[i][0] <= 0xFFFF) { break; }
  21415. }
  21416. var bmpLength = i + 1;
  21417. if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) {
  21418. ranges[i][1] = 0xFFFE;
  21419. }
  21420. var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0;
  21421. var segCount = bmpLength + trailingRangesCount;
  21422. var segCount2 = segCount * 2;
  21423. var searchRange = getMaxPower2(segCount) * 2;
  21424. var searchEntry = Math.log(segCount) / Math.log(2);
  21425. var rangeShift = 2 * segCount - searchRange;
  21426. // Fill up the 4 parallel arrays describing the segments.
  21427. var startCount = '';
  21428. var endCount = '';
  21429. var idDeltas = '';
  21430. var idRangeOffsets = '';
  21431. var glyphsIds = '';
  21432. var bias = 0;
  21433. var range, start, end, codes;
  21434. for (i = 0, ii = bmpLength; i < ii; i++) {
  21435. range = ranges[i];
  21436. start = range[0];
  21437. end = range[1];
  21438. startCount += string16(start);
  21439. endCount += string16(end);
  21440. codes = range[2];
  21441. var contiguous = true;
  21442. for (j = 1, jj = codes.length; j < jj; ++j) {
  21443. if (codes[j] !== codes[j - 1] + 1) {
  21444. contiguous = false;
  21445. break;
  21446. }
  21447. }
  21448. if (!contiguous) {
  21449. var offset = (segCount - i) * 2 + bias * 2;
  21450. bias += (end - start + 1);
  21451. idDeltas += string16(0);
  21452. idRangeOffsets += string16(offset);
  21453. for (j = 0, jj = codes.length; j < jj; ++j) {
  21454. glyphsIds += string16(codes[j]);
  21455. }
  21456. } else {
  21457. var startCode = codes[0];
  21458. idDeltas += string16((startCode - start) & 0xFFFF);
  21459. idRangeOffsets += string16(0);
  21460. }
  21461. }
  21462. if (trailingRangesCount > 0) {
  21463. endCount += '\xFF\xFF';
  21464. startCount += '\xFF\xFF';
  21465. idDeltas += '\x00\x01';
  21466. idRangeOffsets += '\x00\x00';
  21467. }
  21468. var format314 = '\x00\x00' + // language
  21469. string16(segCount2) +
  21470. string16(searchRange) +
  21471. string16(searchEntry) +
  21472. string16(rangeShift) +
  21473. endCount + '\x00\x00' + startCount +
  21474. idDeltas + idRangeOffsets + glyphsIds;
  21475. var format31012 = '';
  21476. var header31012 = '';
  21477. if (numTables > 1) {
  21478. cmap += '\x00\x03' + // platformID
  21479. '\x00\x0A' + // encodingID
  21480. string32(4 + numTables * 8 +
  21481. 4 + format314.length); // start of the table record
  21482. format31012 = '';
  21483. for (i = 0, ii = ranges.length; i < ii; i++) {
  21484. range = ranges[i];
  21485. start = range[0];
  21486. codes = range[2];
  21487. var code = codes[0];
  21488. for (j = 1, jj = codes.length; j < jj; ++j) {
  21489. if (codes[j] !== codes[j - 1] + 1) {
  21490. end = range[0] + j - 1;
  21491. format31012 += string32(start) + // startCharCode
  21492. string32(end) + // endCharCode
  21493. string32(code); // startGlyphID
  21494. start = end + 1;
  21495. code = codes[j];
  21496. }
  21497. }
  21498. format31012 += string32(start) + // startCharCode
  21499. string32(range[1]) + // endCharCode
  21500. string32(code); // startGlyphID
  21501. }
  21502. header31012 = '\x00\x0C' + // format
  21503. '\x00\x00' + // reserved
  21504. string32(format31012.length + 16) + // length
  21505. '\x00\x00\x00\x00' + // language
  21506. string32(format31012.length / 12); // nGroups
  21507. }
  21508. return stringToArray(cmap +
  21509. '\x00\x04' + // format
  21510. string16(format314.length + 4) + // length
  21511. format314 + header31012 + format31012);
  21512. }
  21513. function validateOS2Table(os2) {
  21514. var stream = new Stream(os2.data);
  21515. var version = stream.getUint16();
  21516. // TODO verify all OS/2 tables fields, but currently we validate only those
  21517. // that give us issues
  21518. stream.getBytes(60); // skipping type, misc sizes, panose, unicode ranges
  21519. var selection = stream.getUint16();
  21520. if (version < 4 && (selection & 0x0300)) {
  21521. return false;
  21522. }
  21523. var firstChar = stream.getUint16();
  21524. var lastChar = stream.getUint16();
  21525. if (firstChar > lastChar) {
  21526. return false;
  21527. }
  21528. stream.getBytes(6); // skipping sTypoAscender/Descender/LineGap
  21529. var usWinAscent = stream.getUint16();
  21530. if (usWinAscent === 0) { // makes font unreadable by windows
  21531. return false;
  21532. }
  21533. // OS/2 appears to be valid, resetting some fields
  21534. os2.data[8] = os2.data[9] = 0; // IE rejects fonts if fsType != 0
  21535. return true;
  21536. }
  21537. function createOS2Table(properties, charstrings, override) {
  21538. override = override || {
  21539. unitsPerEm: 0,
  21540. yMax: 0,
  21541. yMin: 0,
  21542. ascent: 0,
  21543. descent: 0
  21544. };
  21545. var ulUnicodeRange1 = 0;
  21546. var ulUnicodeRange2 = 0;
  21547. var ulUnicodeRange3 = 0;
  21548. var ulUnicodeRange4 = 0;
  21549. var firstCharIndex = null;
  21550. var lastCharIndex = 0;
  21551. if (charstrings) {
  21552. for (var code in charstrings) {
  21553. code |= 0;
  21554. if (firstCharIndex > code || !firstCharIndex) {
  21555. firstCharIndex = code;
  21556. }
  21557. if (lastCharIndex < code) {
  21558. lastCharIndex = code;
  21559. }
  21560. var position = getUnicodeRangeFor(code);
  21561. if (position < 32) {
  21562. ulUnicodeRange1 |= 1 << position;
  21563. } else if (position < 64) {
  21564. ulUnicodeRange2 |= 1 << position - 32;
  21565. } else if (position < 96) {
  21566. ulUnicodeRange3 |= 1 << position - 64;
  21567. } else if (position < 123) {
  21568. ulUnicodeRange4 |= 1 << position - 96;
  21569. } else {
  21570. error('Unicode ranges Bits > 123 are reserved for internal usage');
  21571. }
  21572. }
  21573. } else {
  21574. // TODO
  21575. firstCharIndex = 0;
  21576. lastCharIndex = 255;
  21577. }
  21578. var bbox = properties.bbox || [0, 0, 0, 0];
  21579. var unitsPerEm = (override.unitsPerEm ||
  21580. 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0]);
  21581. // if the font units differ to the PDF glyph space units
  21582. // then scale up the values
  21583. var scale = (properties.ascentScaled ? 1.0 :
  21584. unitsPerEm / PDF_GLYPH_SPACE_UNITS);
  21585. var typoAscent = (override.ascent ||
  21586. Math.round(scale * (properties.ascent || bbox[3])));
  21587. var typoDescent = (override.descent ||
  21588. Math.round(scale * (properties.descent || bbox[1])));
  21589. if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) {
  21590. typoDescent = -typoDescent; // fixing incorrect descent
  21591. }
  21592. var winAscent = override.yMax || typoAscent;
  21593. var winDescent = -override.yMin || -typoDescent;
  21594. return '\x00\x03' + // version
  21595. '\x02\x24' + // xAvgCharWidth
  21596. '\x01\xF4' + // usWeightClass
  21597. '\x00\x05' + // usWidthClass
  21598. '\x00\x00' + // fstype (0 to let the font loads via font-face on IE)
  21599. '\x02\x8A' + // ySubscriptXSize
  21600. '\x02\xBB' + // ySubscriptYSize
  21601. '\x00\x00' + // ySubscriptXOffset
  21602. '\x00\x8C' + // ySubscriptYOffset
  21603. '\x02\x8A' + // ySuperScriptXSize
  21604. '\x02\xBB' + // ySuperScriptYSize
  21605. '\x00\x00' + // ySuperScriptXOffset
  21606. '\x01\xDF' + // ySuperScriptYOffset
  21607. '\x00\x31' + // yStrikeOutSize
  21608. '\x01\x02' + // yStrikeOutPosition
  21609. '\x00\x00' + // sFamilyClass
  21610. '\x00\x00\x06' +
  21611. String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) +
  21612. '\x00\x00\x00\x00\x00\x00' + // Panose
  21613. string32(ulUnicodeRange1) + // ulUnicodeRange1 (Bits 0-31)
  21614. string32(ulUnicodeRange2) + // ulUnicodeRange2 (Bits 32-63)
  21615. string32(ulUnicodeRange3) + // ulUnicodeRange3 (Bits 64-95)
  21616. string32(ulUnicodeRange4) + // ulUnicodeRange4 (Bits 96-127)
  21617. '\x2A\x32\x31\x2A' + // achVendID
  21618. string16(properties.italicAngle ? 1 : 0) + // fsSelection
  21619. string16(firstCharIndex ||
  21620. properties.firstChar) + // usFirstCharIndex
  21621. string16(lastCharIndex || properties.lastChar) + // usLastCharIndex
  21622. string16(typoAscent) + // sTypoAscender
  21623. string16(typoDescent) + // sTypoDescender
  21624. '\x00\x64' + // sTypoLineGap (7%-10% of the unitsPerEM value)
  21625. string16(winAscent) + // usWinAscent
  21626. string16(winDescent) + // usWinDescent
  21627. '\x00\x00\x00\x00' + // ulCodePageRange1 (Bits 0-31)
  21628. '\x00\x00\x00\x00' + // ulCodePageRange2 (Bits 32-63)
  21629. string16(properties.xHeight) + // sxHeight
  21630. string16(properties.capHeight) + // sCapHeight
  21631. string16(0) + // usDefaultChar
  21632. string16(firstCharIndex || properties.firstChar) + // usBreakChar
  21633. '\x00\x03'; // usMaxContext
  21634. }
  21635. function createPostTable(properties) {
  21636. var angle = Math.floor(properties.italicAngle * (Math.pow(2, 16)));
  21637. return ('\x00\x03\x00\x00' + // Version number
  21638. string32(angle) + // italicAngle
  21639. '\x00\x00' + // underlinePosition
  21640. '\x00\x00' + // underlineThickness
  21641. string32(properties.fixedPitch) + // isFixedPitch
  21642. '\x00\x00\x00\x00' + // minMemType42
  21643. '\x00\x00\x00\x00' + // maxMemType42
  21644. '\x00\x00\x00\x00' + // minMemType1
  21645. '\x00\x00\x00\x00'); // maxMemType1
  21646. }
  21647. function createNameTable(name, proto) {
  21648. if (!proto) {
  21649. proto = [[], []]; // no strings and unicode strings
  21650. }
  21651. var strings = [
  21652. proto[0][0] || 'Original licence', // 0.Copyright
  21653. proto[0][1] || name, // 1.Font family
  21654. proto[0][2] || 'Unknown', // 2.Font subfamily (font weight)
  21655. proto[0][3] || 'uniqueID', // 3.Unique ID
  21656. proto[0][4] || name, // 4.Full font name
  21657. proto[0][5] || 'Version 0.11', // 5.Version
  21658. proto[0][6] || '', // 6.Postscript name
  21659. proto[0][7] || 'Unknown', // 7.Trademark
  21660. proto[0][8] || 'Unknown', // 8.Manufacturer
  21661. proto[0][9] || 'Unknown' // 9.Designer
  21662. ];
  21663. // Mac want 1-byte per character strings while Windows want
  21664. // 2-bytes per character, so duplicate the names table
  21665. var stringsUnicode = [];
  21666. var i, ii, j, jj, str;
  21667. for (i = 0, ii = strings.length; i < ii; i++) {
  21668. str = proto[1][i] || strings[i];
  21669. var strBufUnicode = [];
  21670. for (j = 0, jj = str.length; j < jj; j++) {
  21671. strBufUnicode.push(string16(str.charCodeAt(j)));
  21672. }
  21673. stringsUnicode.push(strBufUnicode.join(''));
  21674. }
  21675. var names = [strings, stringsUnicode];
  21676. var platforms = ['\x00\x01', '\x00\x03'];
  21677. var encodings = ['\x00\x00', '\x00\x01'];
  21678. var languages = ['\x00\x00', '\x04\x09'];
  21679. var namesRecordCount = strings.length * platforms.length;
  21680. var nameTable =
  21681. '\x00\x00' + // format
  21682. string16(namesRecordCount) + // Number of names Record
  21683. string16(namesRecordCount * 12 + 6); // Storage
  21684. // Build the name records field
  21685. var strOffset = 0;
  21686. for (i = 0, ii = platforms.length; i < ii; i++) {
  21687. var strs = names[i];
  21688. for (j = 0, jj = strs.length; j < jj; j++) {
  21689. str = strs[j];
  21690. var nameRecord =
  21691. platforms[i] + // platform ID
  21692. encodings[i] + // encoding ID
  21693. languages[i] + // language ID
  21694. string16(j) + // name ID
  21695. string16(str.length) +
  21696. string16(strOffset);
  21697. nameTable += nameRecord;
  21698. strOffset += str.length;
  21699. }
  21700. }
  21701. nameTable += strings.join('') + stringsUnicode.join('');
  21702. return nameTable;
  21703. }
  21704. Font.prototype = {
  21705. name: null,
  21706. font: null,
  21707. mimetype: null,
  21708. encoding: null,
  21709. get renderer() {
  21710. var renderer = FontRendererFactory.create(this);
  21711. return shadow(this, 'renderer', renderer);
  21712. },
  21713. exportData: function Font_exportData() {
  21714. var data = {};
  21715. for (var i in this) {
  21716. if (this.hasOwnProperty(i)) {
  21717. data[i] = this[i];
  21718. }
  21719. }
  21720. return data;
  21721. },
  21722. checkAndRepair: function Font_checkAndRepair(name, font, properties) {
  21723. function readTableEntry(file) {
  21724. var tag = bytesToString(file.getBytes(4));
  21725. var checksum = file.getInt32();
  21726. var offset = file.getInt32() >>> 0;
  21727. var length = file.getInt32() >>> 0;
  21728. // Read the table associated data
  21729. var previousPosition = file.pos;
  21730. file.pos = file.start ? file.start : 0;
  21731. file.skip(offset);
  21732. var data = file.getBytes(length);
  21733. file.pos = previousPosition;
  21734. if (tag == 'head') {
  21735. // clearing checksum adjustment
  21736. data[8] = data[9] = data[10] = data[11] = 0;
  21737. data[17] |= 0x20; //Set font optimized for cleartype flag
  21738. }
  21739. return {
  21740. tag: tag,
  21741. checksum: checksum,
  21742. length: length,
  21743. offset: offset,
  21744. data: data
  21745. };
  21746. }
  21747. function readOpenTypeHeader(ttf) {
  21748. return {
  21749. version: bytesToString(ttf.getBytes(4)),
  21750. numTables: ttf.getUint16(),
  21751. searchRange: ttf.getUint16(),
  21752. entrySelector: ttf.getUint16(),
  21753. rangeShift: ttf.getUint16()
  21754. };
  21755. }
  21756. /**
  21757. * Read the appropriate subtable from the cmap according to 9.6.6.4 from
  21758. * PDF spec
  21759. */
  21760. function readCmapTable(cmap, font, isSymbolicFont) {
  21761. var segment;
  21762. var start = (font.start ? font.start : 0) + cmap.offset;
  21763. font.pos = start;
  21764. var version = font.getUint16();
  21765. var numTables = font.getUint16();
  21766. var potentialTable;
  21767. var canBreak = false;
  21768. // There's an order of preference in terms of which cmap subtable to
  21769. // use:
  21770. // - non-symbolic fonts the preference is a 3,1 table then a 1,0 table
  21771. // - symbolic fonts the preference is a 3,0 table then a 1,0 table
  21772. // The following takes advantage of the fact that the tables are sorted
  21773. // to work.
  21774. for (var i = 0; i < numTables; i++) {
  21775. var platformId = font.getUint16();
  21776. var encodingId = font.getUint16();
  21777. var offset = font.getInt32() >>> 0;
  21778. var useTable = false;
  21779. if (platformId == 1 && encodingId === 0) {
  21780. useTable = true;
  21781. // Continue the loop since there still may be a higher priority
  21782. // table.
  21783. } else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
  21784. useTable = true;
  21785. canBreak = true;
  21786. } else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
  21787. useTable = true;
  21788. canBreak = true;
  21789. }
  21790. if (useTable) {
  21791. potentialTable = {
  21792. platformId: platformId,
  21793. encodingId: encodingId,
  21794. offset: offset
  21795. };
  21796. }
  21797. if (canBreak) {
  21798. break;
  21799. }
  21800. }
  21801. if (!potentialTable) {
  21802. warn('Could not find a preferred cmap table.');
  21803. return {
  21804. platformId: -1,
  21805. encodingId: -1,
  21806. mappings: [],
  21807. hasShortCmap: false
  21808. };
  21809. }
  21810. font.pos = start + potentialTable.offset;
  21811. var format = font.getUint16();
  21812. var length = font.getUint16();
  21813. var language = font.getUint16();
  21814. var hasShortCmap = false;
  21815. var mappings = [];
  21816. var j, glyphId;
  21817. // TODO(mack): refactor this cmap subtable reading logic out
  21818. if (format === 0) {
  21819. for (j = 0; j < 256; j++) {
  21820. var index = font.getByte();
  21821. if (!index) {
  21822. continue;
  21823. }
  21824. mappings.push({
  21825. charCode: j,
  21826. glyphId: index
  21827. });
  21828. }
  21829. hasShortCmap = true;
  21830. } else if (format === 4) {
  21831. // re-creating the table in format 4 since the encoding
  21832. // might be changed
  21833. var segCount = (font.getUint16() >> 1);
  21834. font.getBytes(6); // skipping range fields
  21835. var segIndex, segments = [];
  21836. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21837. segments.push({ end: font.getUint16() });
  21838. }
  21839. font.getUint16();
  21840. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21841. segments[segIndex].start = font.getUint16();
  21842. }
  21843. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21844. segments[segIndex].delta = font.getUint16();
  21845. }
  21846. var offsetsCount = 0;
  21847. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21848. segment = segments[segIndex];
  21849. var rangeOffset = font.getUint16();
  21850. if (!rangeOffset) {
  21851. segment.offsetIndex = -1;
  21852. continue;
  21853. }
  21854. var offsetIndex = (rangeOffset >> 1) - (segCount - segIndex);
  21855. segment.offsetIndex = offsetIndex;
  21856. offsetsCount = Math.max(offsetsCount, offsetIndex +
  21857. segment.end - segment.start + 1);
  21858. }
  21859. var offsets = [];
  21860. for (j = 0; j < offsetsCount; j++) {
  21861. offsets.push(font.getUint16());
  21862. }
  21863. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21864. segment = segments[segIndex];
  21865. start = segment.start;
  21866. var end = segment.end;
  21867. var delta = segment.delta;
  21868. offsetIndex = segment.offsetIndex;
  21869. for (j = start; j <= end; j++) {
  21870. if (j == 0xFFFF) {
  21871. continue;
  21872. }
  21873. glyphId = (offsetIndex < 0 ?
  21874. j : offsets[offsetIndex + j - start]);
  21875. glyphId = (glyphId + delta) & 0xFFFF;
  21876. if (glyphId === 0) {
  21877. continue;
  21878. }
  21879. mappings.push({
  21880. charCode: j,
  21881. glyphId: glyphId
  21882. });
  21883. }
  21884. }
  21885. } else if (format == 6) {
  21886. // Format 6 is a 2-bytes dense mapping, which means the font data
  21887. // lives glue together even if they are pretty far in the unicode
  21888. // table. (This looks weird, so I can have missed something), this
  21889. // works on Linux but seems to fails on Mac so let's rewrite the
  21890. // cmap table to a 3-1-4 style
  21891. var firstCode = font.getUint16();
  21892. var entryCount = font.getUint16();
  21893. for (j = 0; j < entryCount; j++) {
  21894. glyphId = font.getUint16();
  21895. var charCode = firstCode + j;
  21896. mappings.push({
  21897. charCode: charCode,
  21898. glyphId: glyphId
  21899. });
  21900. }
  21901. } else {
  21902. error('cmap table has unsupported format: ' + format);
  21903. }
  21904. // removing duplicate entries
  21905. mappings.sort(function (a, b) {
  21906. return a.charCode - b.charCode;
  21907. });
  21908. for (i = 1; i < mappings.length; i++) {
  21909. if (mappings[i - 1].charCode === mappings[i].charCode) {
  21910. mappings.splice(i, 1);
  21911. i--;
  21912. }
  21913. }
  21914. return {
  21915. platformId: potentialTable.platformId,
  21916. encodingId: potentialTable.encodingId,
  21917. mappings: mappings,
  21918. hasShortCmap: hasShortCmap
  21919. };
  21920. }
  21921. function sanitizeMetrics(font, header, metrics, numGlyphs) {
  21922. if (!header) {
  21923. if (metrics) {
  21924. metrics.data = null;
  21925. }
  21926. return;
  21927. }
  21928. font.pos = (font.start ? font.start : 0) + header.offset;
  21929. font.pos += header.length - 2;
  21930. var numOfMetrics = font.getUint16();
  21931. if (numOfMetrics > numGlyphs) {
  21932. info('The numOfMetrics (' + numOfMetrics + ') should not be ' +
  21933. 'greater than the numGlyphs (' + numGlyphs + ')');
  21934. // Reduce numOfMetrics if it is greater than numGlyphs
  21935. numOfMetrics = numGlyphs;
  21936. header.data[34] = (numOfMetrics & 0xff00) >> 8;
  21937. header.data[35] = numOfMetrics & 0x00ff;
  21938. }
  21939. var numOfSidebearings = numGlyphs - numOfMetrics;
  21940. var numMissing = numOfSidebearings -
  21941. ((metrics.length - numOfMetrics * 4) >> 1);
  21942. var i, ii;
  21943. if (numMissing > 0) {
  21944. font.pos = (font.start ? font.start : 0) + metrics.offset;
  21945. var entries = '';
  21946. for (i = 0, ii = metrics.length; i < ii; i++) {
  21947. entries += String.fromCharCode(font.getByte());
  21948. }
  21949. for (i = 0; i < numMissing; i++) {
  21950. entries += '\x00\x00';
  21951. }
  21952. metrics.data = stringToArray(entries);
  21953. }
  21954. }
  21955. function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart,
  21956. hintsValid) {
  21957. if (sourceEnd - sourceStart <= 12) {
  21958. // glyph with data less than 12 is invalid one
  21959. return 0;
  21960. }
  21961. var glyf = source.subarray(sourceStart, sourceEnd);
  21962. var contoursCount = (glyf[0] << 8) | glyf[1];
  21963. if (contoursCount & 0x8000) {
  21964. // complex glyph, writing as is
  21965. dest.set(glyf, destStart);
  21966. return glyf.length;
  21967. }
  21968. var i, j = 10, flagsCount = 0;
  21969. for (i = 0; i < contoursCount; i++) {
  21970. var endPoint = (glyf[j] << 8) | glyf[j + 1];
  21971. flagsCount = endPoint + 1;
  21972. j += 2;
  21973. }
  21974. // skipping instructions
  21975. var instructionsStart = j;
  21976. var instructionsLength = (glyf[j] << 8) | glyf[j + 1];
  21977. j += 2 + instructionsLength;
  21978. var instructionsEnd = j;
  21979. // validating flags
  21980. var coordinatesLength = 0;
  21981. for (i = 0; i < flagsCount; i++) {
  21982. var flag = glyf[j++];
  21983. if (flag & 0xC0) {
  21984. // reserved flags must be zero, cleaning up
  21985. glyf[j - 1] = flag & 0x3F;
  21986. }
  21987. var xyLength = ((flag & 2) ? 1 : (flag & 16) ? 0 : 2) +
  21988. ((flag & 4) ? 1 : (flag & 32) ? 0 : 2);
  21989. coordinatesLength += xyLength;
  21990. if (flag & 8) {
  21991. var repeat = glyf[j++];
  21992. i += repeat;
  21993. coordinatesLength += repeat * xyLength;
  21994. }
  21995. }
  21996. // glyph without coordinates will be rejected
  21997. if (coordinatesLength === 0) {
  21998. return 0;
  21999. }
  22000. var glyphDataLength = j + coordinatesLength;
  22001. if (glyphDataLength > glyf.length) {
  22002. // not enough data for coordinates
  22003. return 0;
  22004. }
  22005. if (!hintsValid && instructionsLength > 0) {
  22006. dest.set(glyf.subarray(0, instructionsStart), destStart);
  22007. dest.set([0, 0], destStart + instructionsStart);
  22008. dest.set(glyf.subarray(instructionsEnd, glyphDataLength),
  22009. destStart + instructionsStart + 2);
  22010. glyphDataLength -= instructionsLength;
  22011. if (glyf.length - glyphDataLength > 3) {
  22012. glyphDataLength = (glyphDataLength + 3) & ~3;
  22013. }
  22014. return glyphDataLength;
  22015. }
  22016. if (glyf.length - glyphDataLength > 3) {
  22017. // truncating and aligning to 4 bytes the long glyph data
  22018. glyphDataLength = (glyphDataLength + 3) & ~3;
  22019. dest.set(glyf.subarray(0, glyphDataLength), destStart);
  22020. return glyphDataLength;
  22021. }
  22022. // glyph data is fine
  22023. dest.set(glyf, destStart);
  22024. return glyf.length;
  22025. }
  22026. function sanitizeHead(head, numGlyphs, locaLength) {
  22027. var data = head.data;
  22028. // Validate version:
  22029. // Should always be 0x00010000
  22030. var version = int32(data[0], data[1], data[2], data[3]);
  22031. if (version >> 16 !== 1) {
  22032. info('Attempting to fix invalid version in head table: ' + version);
  22033. data[0] = 0;
  22034. data[1] = 1;
  22035. data[2] = 0;
  22036. data[3] = 0;
  22037. }
  22038. var indexToLocFormat = int16(data[50], data[51]);
  22039. if (indexToLocFormat < 0 || indexToLocFormat > 1) {
  22040. info('Attempting to fix invalid indexToLocFormat in head table: ' +
  22041. indexToLocFormat);
  22042. // The value of indexToLocFormat should be 0 if the loca table
  22043. // consists of short offsets, and should be 1 if the loca table
  22044. // consists of long offsets.
  22045. //
  22046. // The number of entries in the loca table should be numGlyphs + 1.
  22047. //
  22048. // Using this information, we can work backwards to deduce if the
  22049. // size of each offset in the loca table, and thus figure out the
  22050. // appropriate value for indexToLocFormat.
  22051. var numGlyphsPlusOne = numGlyphs + 1;
  22052. if (locaLength === numGlyphsPlusOne << 1) {
  22053. // 0x0000 indicates the loca table consists of short offsets
  22054. data[50] = 0;
  22055. data[51] = 0;
  22056. } else if (locaLength === numGlyphsPlusOne << 2) {
  22057. // 0x0001 indicates the loca table consists of long offsets
  22058. data[50] = 0;
  22059. data[51] = 1;
  22060. } else {
  22061. warn('Could not fix indexToLocFormat: ' + indexToLocFormat);
  22062. }
  22063. }
  22064. }
  22065. function sanitizeGlyphLocations(loca, glyf, numGlyphs,
  22066. isGlyphLocationsLong, hintsValid,
  22067. dupFirstEntry) {
  22068. var itemSize, itemDecode, itemEncode;
  22069. if (isGlyphLocationsLong) {
  22070. itemSize = 4;
  22071. itemDecode = function fontItemDecodeLong(data, offset) {
  22072. return (data[offset] << 24) | (data[offset + 1] << 16) |
  22073. (data[offset + 2] << 8) | data[offset + 3];
  22074. };
  22075. itemEncode = function fontItemEncodeLong(data, offset, value) {
  22076. data[offset] = (value >>> 24) & 0xFF;
  22077. data[offset + 1] = (value >> 16) & 0xFF;
  22078. data[offset + 2] = (value >> 8) & 0xFF;
  22079. data[offset + 3] = value & 0xFF;
  22080. };
  22081. } else {
  22082. itemSize = 2;
  22083. itemDecode = function fontItemDecode(data, offset) {
  22084. return (data[offset] << 9) | (data[offset + 1] << 1);
  22085. };
  22086. itemEncode = function fontItemEncode(data, offset, value) {
  22087. data[offset] = (value >> 9) & 0xFF;
  22088. data[offset + 1] = (value >> 1) & 0xFF;
  22089. };
  22090. }
  22091. var locaData = loca.data;
  22092. var locaDataSize = itemSize * (1 + numGlyphs);
  22093. // is loca.data too short or long?
  22094. if (locaData.length !== locaDataSize) {
  22095. locaData = new Uint8Array(locaDataSize);
  22096. locaData.set(loca.data.subarray(0, locaDataSize));
  22097. loca.data = locaData;
  22098. }
  22099. // removing the invalid glyphs
  22100. var oldGlyfData = glyf.data;
  22101. var oldGlyfDataLength = oldGlyfData.length;
  22102. var newGlyfData = new Uint8Array(oldGlyfDataLength);
  22103. var startOffset = itemDecode(locaData, 0);
  22104. var writeOffset = 0;
  22105. itemEncode(locaData, 0, writeOffset);
  22106. var i, j;
  22107. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  22108. var endOffset = itemDecode(locaData, j);
  22109. if (endOffset > oldGlyfDataLength &&
  22110. ((oldGlyfDataLength + 3) & ~3) === endOffset) {
  22111. // Aspose breaks fonts by aligning the glyphs to the qword, but not
  22112. // the glyf table size, which makes last glyph out of range.
  22113. endOffset = oldGlyfDataLength;
  22114. }
  22115. if (endOffset > oldGlyfDataLength) {
  22116. // glyph end offset points outside glyf data, rejecting the glyph
  22117. itemEncode(locaData, j, writeOffset);
  22118. startOffset = endOffset;
  22119. continue;
  22120. }
  22121. var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset,
  22122. newGlyfData, writeOffset, hintsValid);
  22123. writeOffset += newLength;
  22124. itemEncode(locaData, j, writeOffset);
  22125. startOffset = endOffset;
  22126. }
  22127. if (writeOffset === 0) {
  22128. // glyf table cannot be empty -- redoing the glyf and loca tables
  22129. // to have single glyph with one point
  22130. var simpleGlyph = new Uint8Array(
  22131. [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]);
  22132. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  22133. itemEncode(locaData, j, simpleGlyph.length);
  22134. }
  22135. glyf.data = simpleGlyph;
  22136. return;
  22137. }
  22138. if (dupFirstEntry) {
  22139. var firstEntryLength = itemDecode(locaData, itemSize);
  22140. if (newGlyfData.length > firstEntryLength + writeOffset) {
  22141. glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset);
  22142. } else {
  22143. glyf.data = new Uint8Array(firstEntryLength + writeOffset);
  22144. glyf.data.set(newGlyfData.subarray(0, writeOffset));
  22145. }
  22146. glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset);
  22147. itemEncode(loca.data, locaData.length - itemSize,
  22148. writeOffset + firstEntryLength);
  22149. } else {
  22150. glyf.data = newGlyfData.subarray(0, writeOffset);
  22151. }
  22152. }
  22153. function readPostScriptTable(post, properties, maxpNumGlyphs) {
  22154. var start = (font.start ? font.start : 0) + post.offset;
  22155. font.pos = start;
  22156. var length = post.length, end = start + length;
  22157. var version = font.getInt32();
  22158. // skip rest to the tables
  22159. font.getBytes(28);
  22160. var glyphNames;
  22161. var valid = true;
  22162. var i;
  22163. switch (version) {
  22164. case 0x00010000:
  22165. glyphNames = MacStandardGlyphOrdering;
  22166. break;
  22167. case 0x00020000:
  22168. var numGlyphs = font.getUint16();
  22169. if (numGlyphs != maxpNumGlyphs) {
  22170. valid = false;
  22171. break;
  22172. }
  22173. var glyphNameIndexes = [];
  22174. for (i = 0; i < numGlyphs; ++i) {
  22175. var index = font.getUint16();
  22176. if (index >= 32768) {
  22177. valid = false;
  22178. break;
  22179. }
  22180. glyphNameIndexes.push(index);
  22181. }
  22182. if (!valid) {
  22183. break;
  22184. }
  22185. var customNames = [];
  22186. while (font.pos < end) {
  22187. var stringLength = font.getByte();
  22188. var string = '';
  22189. for (i = 0; i < stringLength; ++i) {
  22190. string += String.fromCharCode(font.getByte());
  22191. }
  22192. customNames.push(string);
  22193. }
  22194. glyphNames = [];
  22195. for (i = 0; i < numGlyphs; ++i) {
  22196. var j = glyphNameIndexes[i];
  22197. if (j < 258) {
  22198. glyphNames.push(MacStandardGlyphOrdering[j]);
  22199. continue;
  22200. }
  22201. glyphNames.push(customNames[j - 258]);
  22202. }
  22203. break;
  22204. case 0x00030000:
  22205. break;
  22206. default:
  22207. warn('Unknown/unsupported post table version ' + version);
  22208. valid = false;
  22209. break;
  22210. }
  22211. properties.glyphNames = glyphNames;
  22212. return valid;
  22213. }
  22214. function readNameTable(nameTable) {
  22215. var start = (font.start ? font.start : 0) + nameTable.offset;
  22216. font.pos = start;
  22217. var names = [[], []];
  22218. var length = nameTable.length, end = start + length;
  22219. var format = font.getUint16();
  22220. var FORMAT_0_HEADER_LENGTH = 6;
  22221. if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) {
  22222. // unsupported name table format or table "too" small
  22223. return names;
  22224. }
  22225. var numRecords = font.getUint16();
  22226. var stringsStart = font.getUint16();
  22227. var records = [];
  22228. var NAME_RECORD_LENGTH = 12;
  22229. var i, ii;
  22230. for (i = 0; i < numRecords &&
  22231. font.pos + NAME_RECORD_LENGTH <= end; i++) {
  22232. var r = {
  22233. platform: font.getUint16(),
  22234. encoding: font.getUint16(),
  22235. language: font.getUint16(),
  22236. name: font.getUint16(),
  22237. length: font.getUint16(),
  22238. offset: font.getUint16()
  22239. };
  22240. // using only Macintosh and Windows platform/encoding names
  22241. if ((r.platform == 1 && r.encoding === 0 && r.language === 0) ||
  22242. (r.platform == 3 && r.encoding == 1 && r.language == 0x409)) {
  22243. records.push(r);
  22244. }
  22245. }
  22246. for (i = 0, ii = records.length; i < ii; i++) {
  22247. var record = records[i];
  22248. var pos = start + stringsStart + record.offset;
  22249. if (pos + record.length > end) {
  22250. continue; // outside of name table, ignoring
  22251. }
  22252. font.pos = pos;
  22253. var nameIndex = record.name;
  22254. if (record.encoding) {
  22255. // unicode
  22256. var str = '';
  22257. for (var j = 0, jj = record.length; j < jj; j += 2) {
  22258. str += String.fromCharCode(font.getUint16());
  22259. }
  22260. names[1][nameIndex] = str;
  22261. } else {
  22262. names[0][nameIndex] = bytesToString(font.getBytes(record.length));
  22263. }
  22264. }
  22265. return names;
  22266. }
  22267. var TTOpsStackDeltas = [
  22268. 0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5,
  22269. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1,
  22270. 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1,
  22271. 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2,
  22272. 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1,
  22273. -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1,
  22274. -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  22275. -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1,
  22276. -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2];
  22277. // 0xC0-DF == -1 and 0xE0-FF == -2
  22278. function sanitizeTTProgram(table, ttContext) {
  22279. var data = table.data;
  22280. var i = 0, j, n, b, funcId, pc, lastEndf = 0, lastDeff = 0;
  22281. var stack = [];
  22282. var callstack = [];
  22283. var functionsCalled = [];
  22284. var tooComplexToFollowFunctions =
  22285. ttContext.tooComplexToFollowFunctions;
  22286. var inFDEF = false, ifLevel = 0, inELSE = 0;
  22287. for (var ii = data.length; i < ii;) {
  22288. var op = data[i++];
  22289. // The TrueType instruction set docs can be found at
  22290. // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html
  22291. if (op === 0x40) { // NPUSHB - pushes n bytes
  22292. n = data[i++];
  22293. if (inFDEF || inELSE) {
  22294. i += n;
  22295. } else {
  22296. for (j = 0; j < n; j++) {
  22297. stack.push(data[i++]);
  22298. }
  22299. }
  22300. } else if (op === 0x41) { // NPUSHW - pushes n words
  22301. n = data[i++];
  22302. if (inFDEF || inELSE) {
  22303. i += n * 2;
  22304. } else {
  22305. for (j = 0; j < n; j++) {
  22306. b = data[i++];
  22307. stack.push((b << 8) | data[i++]);
  22308. }
  22309. }
  22310. } else if ((op & 0xF8) === 0xB0) { // PUSHB - pushes bytes
  22311. n = op - 0xB0 + 1;
  22312. if (inFDEF || inELSE) {
  22313. i += n;
  22314. } else {
  22315. for (j = 0; j < n; j++) {
  22316. stack.push(data[i++]);
  22317. }
  22318. }
  22319. } else if ((op & 0xF8) === 0xB8) { // PUSHW - pushes words
  22320. n = op - 0xB8 + 1;
  22321. if (inFDEF || inELSE) {
  22322. i += n * 2;
  22323. } else {
  22324. for (j = 0; j < n; j++) {
  22325. b = data[i++];
  22326. stack.push((b << 8) | data[i++]);
  22327. }
  22328. }
  22329. } else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
  22330. if (!inFDEF && !inELSE) {
  22331. // collecting inforamtion about which functions are used
  22332. funcId = stack[stack.length - 1];
  22333. ttContext.functionsUsed[funcId] = true;
  22334. if (funcId in ttContext.functionsStackDeltas) {
  22335. stack.length += ttContext.functionsStackDeltas[funcId];
  22336. } else if (funcId in ttContext.functionsDefined &&
  22337. functionsCalled.indexOf(funcId) < 0) {
  22338. callstack.push({data: data, i: i, stackTop: stack.length - 1});
  22339. functionsCalled.push(funcId);
  22340. pc = ttContext.functionsDefined[funcId];
  22341. if (!pc) {
  22342. warn('TT: CALL non-existent function');
  22343. ttContext.hintsValid = false;
  22344. return;
  22345. }
  22346. data = pc.data;
  22347. i = pc.i;
  22348. }
  22349. }
  22350. } else if (op === 0x2C && !tooComplexToFollowFunctions) { // FDEF
  22351. if (inFDEF || inELSE) {
  22352. warn('TT: nested FDEFs not allowed');
  22353. tooComplexToFollowFunctions = true;
  22354. }
  22355. inFDEF = true;
  22356. // collecting inforamtion about which functions are defined
  22357. lastDeff = i;
  22358. funcId = stack.pop();
  22359. ttContext.functionsDefined[funcId] = {data: data, i: i};
  22360. } else if (op === 0x2D) { // ENDF - end of function
  22361. if (inFDEF) {
  22362. inFDEF = false;
  22363. lastEndf = i;
  22364. } else {
  22365. pc = callstack.pop();
  22366. if (!pc) {
  22367. warn('TT: ENDF bad stack');
  22368. ttContext.hintsValid = false;
  22369. return;
  22370. }
  22371. funcId = functionsCalled.pop();
  22372. data = pc.data;
  22373. i = pc.i;
  22374. ttContext.functionsStackDeltas[funcId] =
  22375. stack.length - pc.stackTop;
  22376. }
  22377. } else if (op === 0x89) { // IDEF - instruction definition
  22378. if (inFDEF || inELSE) {
  22379. warn('TT: nested IDEFs not allowed');
  22380. tooComplexToFollowFunctions = true;
  22381. }
  22382. inFDEF = true;
  22383. // recording it as a function to track ENDF
  22384. lastDeff = i;
  22385. } else if (op === 0x58) { // IF
  22386. ++ifLevel;
  22387. } else if (op === 0x1B) { // ELSE
  22388. inELSE = ifLevel;
  22389. } else if (op === 0x59) { // EIF
  22390. if (inELSE === ifLevel) {
  22391. inELSE = 0;
  22392. }
  22393. --ifLevel;
  22394. } else if (op === 0x1C) { // JMPR
  22395. if (!inFDEF && !inELSE) {
  22396. var offset = stack[stack.length - 1];
  22397. // only jumping forward to prevent infinite loop
  22398. if (offset > 0) {
  22399. i += offset - 1;
  22400. }
  22401. }
  22402. }
  22403. // Adjusting stack not extactly, but just enough to get function id
  22404. if (!inFDEF && !inELSE) {
  22405. var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] :
  22406. op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0;
  22407. if (op >= 0x71 && op <= 0x75) {
  22408. n = stack.pop();
  22409. if (n === n) {
  22410. stackDelta = -n * 2;
  22411. }
  22412. }
  22413. while (stackDelta < 0 && stack.length > 0) {
  22414. stack.pop();
  22415. stackDelta++;
  22416. }
  22417. while (stackDelta > 0) {
  22418. stack.push(NaN); // pushing any number into stack
  22419. stackDelta--;
  22420. }
  22421. }
  22422. }
  22423. ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions;
  22424. var content = [data];
  22425. if (i > data.length) {
  22426. content.push(new Uint8Array(i - data.length));
  22427. }
  22428. if (lastDeff > lastEndf) {
  22429. warn('TT: complementing a missing function tail');
  22430. // new function definition started, but not finished
  22431. // complete function by [CLEAR, ENDF]
  22432. content.push(new Uint8Array([0x22, 0x2D]));
  22433. }
  22434. foldTTTable(table, content);
  22435. }
  22436. function checkInvalidFunctions(ttContext, maxFunctionDefs) {
  22437. if (ttContext.tooComplexToFollowFunctions) {
  22438. return;
  22439. }
  22440. if (ttContext.functionsDefined.length > maxFunctionDefs) {
  22441. warn('TT: more functions defined than expected');
  22442. ttContext.hintsValid = false;
  22443. return;
  22444. }
  22445. for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) {
  22446. if (j > maxFunctionDefs) {
  22447. warn('TT: invalid function id: ' + j);
  22448. ttContext.hintsValid = false;
  22449. return;
  22450. }
  22451. if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) {
  22452. warn('TT: undefined function: ' + j);
  22453. ttContext.hintsValid = false;
  22454. return;
  22455. }
  22456. }
  22457. }
  22458. function foldTTTable(table, content) {
  22459. if (content.length > 1) {
  22460. // concatenating the content items
  22461. var newLength = 0;
  22462. var j, jj;
  22463. for (j = 0, jj = content.length; j < jj; j++) {
  22464. newLength += content[j].length;
  22465. }
  22466. newLength = (newLength + 3) & ~3;
  22467. var result = new Uint8Array(newLength);
  22468. var pos = 0;
  22469. for (j = 0, jj = content.length; j < jj; j++) {
  22470. result.set(content[j], pos);
  22471. pos += content[j].length;
  22472. }
  22473. table.data = result;
  22474. table.length = newLength;
  22475. }
  22476. }
  22477. function sanitizeTTPrograms(fpgm, prep, cvt) {
  22478. var ttContext = {
  22479. functionsDefined: [],
  22480. functionsUsed: [],
  22481. functionsStackDeltas: [],
  22482. tooComplexToFollowFunctions: false,
  22483. hintsValid: true
  22484. };
  22485. if (fpgm) {
  22486. sanitizeTTProgram(fpgm, ttContext);
  22487. }
  22488. if (prep) {
  22489. sanitizeTTProgram(prep, ttContext);
  22490. }
  22491. if (fpgm) {
  22492. checkInvalidFunctions(ttContext, maxFunctionDefs);
  22493. }
  22494. if (cvt && (cvt.length & 1)) {
  22495. var cvtData = new Uint8Array(cvt.length + 1);
  22496. cvtData.set(cvt.data);
  22497. cvt.data = cvtData;
  22498. }
  22499. return ttContext.hintsValid;
  22500. }
  22501. // The following steps modify the original font data, making copy
  22502. font = new Stream(new Uint8Array(font.getBytes()));
  22503. var VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp',
  22504. 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF '];
  22505. var header = readOpenTypeHeader(font);
  22506. var numTables = header.numTables;
  22507. var cff, cffFile;
  22508. var tables = { 'OS/2': null, cmap: null, head: null, hhea: null,
  22509. hmtx: null, maxp: null, name: null, post: null };
  22510. var table, tableData;
  22511. for (var i = 0; i < numTables; i++) {
  22512. table = readTableEntry(font);
  22513. if (VALID_TABLES.indexOf(table.tag) < 0) {
  22514. continue; // skipping table if it's not a required or optional table
  22515. }
  22516. if (table.length === 0) {
  22517. continue; // skipping empty tables
  22518. }
  22519. tables[table.tag] = table;
  22520. }
  22521. var isTrueType = !tables['CFF '];
  22522. if (!isTrueType) {
  22523. // OpenType font
  22524. if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
  22525. // no major tables: throwing everything at CFFFont
  22526. cffFile = new Stream(tables['CFF '].data);
  22527. cff = new CFFFont(cffFile, properties);
  22528. return this.convert(name, cff, properties);
  22529. }
  22530. delete tables.glyf;
  22531. delete tables.loca;
  22532. delete tables.fpgm;
  22533. delete tables.prep;
  22534. delete tables['cvt '];
  22535. this.isOpenType = true;
  22536. } else {
  22537. if (!tables.glyf || !tables.loca) {
  22538. error('Required "glyf" or "loca" tables are not found');
  22539. }
  22540. this.isOpenType = false;
  22541. }
  22542. if (!tables.maxp) {
  22543. error('Required "maxp" table is not found');
  22544. }
  22545. font.pos = (font.start || 0) + tables.maxp.offset;
  22546. var version = font.getInt32();
  22547. var numGlyphs = font.getUint16();
  22548. var maxFunctionDefs = 0;
  22549. if (version >= 0x00010000 && tables.maxp.length >= 22) {
  22550. // maxZones can be invalid
  22551. font.pos += 8;
  22552. var maxZones = font.getUint16();
  22553. if (maxZones > 2) { // reset to 2 if font has invalid maxZones
  22554. tables.maxp.data[14] = 0;
  22555. tables.maxp.data[15] = 2;
  22556. }
  22557. font.pos += 4;
  22558. maxFunctionDefs = font.getUint16();
  22559. }
  22560. var dupFirstEntry = false;
  22561. if (properties.type == 'CIDFontType2' && properties.toUnicode &&
  22562. properties.toUnicode[0] > '\u0000') {
  22563. // oracle's defect (see 3427), duplicating first entry
  22564. dupFirstEntry = true;
  22565. numGlyphs++;
  22566. tables.maxp.data[4] = numGlyphs >> 8;
  22567. tables.maxp.data[5] = numGlyphs & 255;
  22568. }
  22569. var hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep,
  22570. tables['cvt '], maxFunctionDefs);
  22571. if (!hintsValid) {
  22572. delete tables.fpgm;
  22573. delete tables.prep;
  22574. delete tables['cvt '];
  22575. }
  22576. // Tables needs to be written by ascendant alphabetic order
  22577. var tablesNames = Object.keys(tables);
  22578. tablesNames.sort();
  22579. numTables = tablesNames.length;
  22580. // header and new offsets. Table entry information is appended to the
  22581. // end of file. The virtualOffset represents where to put the actual
  22582. // data of a particular table;
  22583. var ttf = {
  22584. file: '',
  22585. virtualOffset: numTables * (4 * 4)
  22586. };
  22587. // The new numbers of tables will be the last one plus the num
  22588. // of missing tables
  22589. createOpenTypeHeader(header.version, ttf, numTables);
  22590. // Ensure the hmtx table contains the advance width and
  22591. // sidebearings information for numGlyphs in the maxp table
  22592. sanitizeMetrics(font, tables.hhea, tables.hmtx, numGlyphs);
  22593. if (!tables.head) {
  22594. error('Required "head" table is not found');
  22595. }
  22596. sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0);
  22597. if (isTrueType) {
  22598. var isGlyphLocationsLong = int16(tables.head.data[50],
  22599. tables.head.data[51]);
  22600. sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs,
  22601. isGlyphLocationsLong, hintsValid, dupFirstEntry);
  22602. }
  22603. if (!tables.hhea) {
  22604. error('Required "hhea" table is not found');
  22605. }
  22606. // Sanitizer reduces the glyph advanceWidth to the maxAdvanceWidth
  22607. // Sometimes it's 0. That needs to be fixed
  22608. if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) {
  22609. tables.hhea.data[10] = 0xFF;
  22610. tables.hhea.data[11] = 0xFF;
  22611. }
  22612. // The 'post' table has glyphs names.
  22613. if (tables.post) {
  22614. var valid = readPostScriptTable(tables.post, properties, numGlyphs);
  22615. if (!valid) {
  22616. tables.post = null;
  22617. }
  22618. }
  22619. var charCodeToGlyphId = [], charCode;
  22620. if (properties.type == 'CIDFontType2') {
  22621. var cidToGidMap = properties.cidToGidMap || [];
  22622. var cMap = properties.cMap.map;
  22623. for (charCode in cMap) {
  22624. charCode |= 0;
  22625. var cid = cMap[charCode];
  22626. assert(cid.length === 1, 'Max size of CID is 65,535');
  22627. cid = cid.charCodeAt(0);
  22628. var glyphId = -1;
  22629. if (cidToGidMap.length === 0) {
  22630. glyphId = charCode;
  22631. } else if (cid in cidToGidMap) {
  22632. glyphId = cidToGidMap[cid];
  22633. }
  22634. if (glyphId >= 0 && glyphId < numGlyphs) {
  22635. charCodeToGlyphId[charCode] = glyphId;
  22636. }
  22637. }
  22638. if (dupFirstEntry) {
  22639. charCodeToGlyphId[0] = numGlyphs - 1;
  22640. }
  22641. } else {
  22642. // Most of the following logic in this code branch is based on the
  22643. // 9.6.6.4 of the PDF spec.
  22644. var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont);
  22645. var cmapPlatformId = cmapTable.platformId;
  22646. var cmapEncodingId = cmapTable.encodingId;
  22647. var cmapMappings = cmapTable.mappings;
  22648. var cmapMappingsLength = cmapMappings.length;
  22649. var hasEncoding = properties.differences.length ||
  22650. !!properties.baseEncodingName;
  22651. // The spec seems to imply that if the font is symbolic the encoding
  22652. // should be ignored, this doesn't appear to work for 'preistabelle.pdf'
  22653. // where the the font is symbolic and it has an encoding.
  22654. if (hasEncoding &&
  22655. (cmapPlatformId === 3 && cmapEncodingId === 1 ||
  22656. cmapPlatformId === 1 && cmapEncodingId === 0)) {
  22657. var baseEncoding = [];
  22658. if (properties.baseEncodingName === 'MacRomanEncoding' ||
  22659. properties.baseEncodingName === 'WinAnsiEncoding') {
  22660. baseEncoding = Encodings[properties.baseEncodingName];
  22661. }
  22662. for (charCode = 0; charCode < 256; charCode++) {
  22663. var glyphName;
  22664. if (this.differences && charCode in this.differences) {
  22665. glyphName = this.differences[charCode];
  22666. } else if (charCode in baseEncoding &&
  22667. baseEncoding[charCode] !== '') {
  22668. glyphName = baseEncoding[charCode];
  22669. } else {
  22670. glyphName = Encodings.StandardEncoding[charCode];
  22671. }
  22672. if (!glyphName) {
  22673. continue;
  22674. }
  22675. var unicodeOrCharCode;
  22676. if (cmapPlatformId === 3 && cmapEncodingId === 1) {
  22677. unicodeOrCharCode = GlyphsUnicode[glyphName];
  22678. } else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
  22679. // TODO: the encoding needs to be updated with mac os table.
  22680. unicodeOrCharCode = Encodings.MacRomanEncoding.indexOf(glyphName);
  22681. }
  22682. var found = false;
  22683. for (i = 0; i < cmapMappingsLength; ++i) {
  22684. if (cmapMappings[i].charCode === unicodeOrCharCode) {
  22685. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  22686. found = true;
  22687. break;
  22688. }
  22689. }
  22690. if (!found && properties.glyphNames) {
  22691. // Try to map using the post table. There are currently no known
  22692. // pdfs that this fixes.
  22693. glyphId = properties.glyphNames.indexOf(glyphName);
  22694. if (glyphId > 0) {
  22695. charCodeToGlyphId[charCode] = glyphId;
  22696. }
  22697. }
  22698. }
  22699. } else {
  22700. // For (3, 0) cmap tables:
  22701. // The charcode key being stored in charCodeToGlyphId is the lower
  22702. // byte of the two-byte charcodes of the cmap table since according to
  22703. // the spec: 'each byte from the string shall be prepended with the
  22704. // high byte of the range [of charcodes in the cmap table], to form
  22705. // a two-byte character, which shall be used to select the
  22706. // associated glyph description from the subtable'.
  22707. //
  22708. // For (1, 0) cmap tables:
  22709. // 'single bytes from the string shall be used to look up the
  22710. // associated glyph descriptions from the subtable'. This means
  22711. // charcodes in the cmap will be single bytes, so no-op since
  22712. // glyph.charCode & 0xFF === glyph.charCode
  22713. for (i = 0; i < cmapMappingsLength; ++i) {
  22714. charCode = cmapMappings[i].charCode & 0xFF;
  22715. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  22716. }
  22717. }
  22718. }
  22719. if (charCodeToGlyphId.length === 0) {
  22720. // defines at least one glyph
  22721. charCodeToGlyphId[0] = 0;
  22722. }
  22723. // Converting glyphs and ids into font's cmap table
  22724. var newMapping = adjustMapping(charCodeToGlyphId, properties);
  22725. this.toFontChar = newMapping.toFontChar;
  22726. tables.cmap = {
  22727. tag: 'cmap',
  22728. data: createCmapTable(newMapping.charCodeToGlyphId)
  22729. };
  22730. if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
  22731. // extract some more font properties from the OpenType head and
  22732. // hhea tables; yMin and descent value are always negative
  22733. var override = {
  22734. unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),
  22735. yMax: int16(tables.head.data[42], tables.head.data[43]),
  22736. yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,
  22737. ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),
  22738. descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000
  22739. };
  22740. tables['OS/2'] = {
  22741. tag: 'OS/2',
  22742. data: stringToArray(createOS2Table(properties,
  22743. newMapping.charCodeToGlyphId,
  22744. override))
  22745. };
  22746. }
  22747. // Rewrite the 'post' table if needed
  22748. if (!tables.post) {
  22749. tables.post = {
  22750. tag: 'post',
  22751. data: stringToArray(createPostTable(properties))
  22752. };
  22753. }
  22754. if (!isTrueType) {
  22755. try {
  22756. // Trying to repair CFF file
  22757. cffFile = new Stream(tables['CFF '].data);
  22758. var parser = new CFFParser(cffFile, properties);
  22759. cff = parser.parse();
  22760. var compiler = new CFFCompiler(cff);
  22761. tables['CFF '].data = compiler.compile();
  22762. } catch (e) {
  22763. warn('Failed to compile font ' + properties.loadedName);
  22764. }
  22765. }
  22766. // Re-creating 'name' table
  22767. if (!tables.name) {
  22768. tables.name = {
  22769. tag: 'name',
  22770. data: stringToArray(createNameTable(this.name))
  22771. };
  22772. } else {
  22773. // ... using existing 'name' table as prototype
  22774. var namePrototype = readNameTable(tables.name);
  22775. tables.name.data = stringToArray(createNameTable(name, namePrototype));
  22776. }
  22777. // rewrite the tables but tweak offsets
  22778. for (i = 0; i < numTables; i++) {
  22779. table = tables[tablesNames[i]];
  22780. var data = [];
  22781. tableData = table.data;
  22782. for (var j = 0, jj = tableData.length; j < jj; j++) {
  22783. data.push(tableData[j]);
  22784. }
  22785. createTableEntry(ttf, table.tag, data);
  22786. }
  22787. // Add the table datas
  22788. for (i = 0; i < numTables; i++) {
  22789. table = tables[tablesNames[i]];
  22790. tableData = table.data;
  22791. ttf.file += bytesToString(new Uint8Array(tableData));
  22792. // 4-byte aligned data
  22793. while (ttf.file.length & 3) {
  22794. ttf.file += String.fromCharCode(0);
  22795. }
  22796. }
  22797. return stringToArray(ttf.file);
  22798. },
  22799. convert: function Font_convert(fontName, font, properties) {
  22800. // The offsets object holds at the same time a representation of where
  22801. // to write the table entry information about a table and another offset
  22802. // representing the offset where to draw the actual data of a particular
  22803. // table
  22804. var otf = {
  22805. file: '',
  22806. virtualOffset: 9 * (4 * 4)
  22807. };
  22808. createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
  22809. // TODO: Check the charstring widths to determine this.
  22810. properties.fixedPitch = false;
  22811. var mapping = font.getGlyphMapping(properties);
  22812. var newMapping = adjustMapping(mapping, properties);
  22813. this.toFontChar = newMapping.toFontChar;
  22814. var numGlyphs = font.numGlyphs;
  22815. function getCharCode(charCodeToGlyphId, glyphId, addMap) {
  22816. for (var charCode in charCodeToGlyphId) {
  22817. if (glyphId === charCodeToGlyphId[charCode]) {
  22818. return charCode | 0;
  22819. }
  22820. }
  22821. if (addMap) {
  22822. newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
  22823. glyphId;
  22824. return newMapping.nextAvailableFontCharCode++;
  22825. }
  22826. return null;
  22827. }
  22828. var seacs = font.seacs;
  22829. if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
  22830. var matrix = properties.fontMatrix || FONT_IDENTITY_MATRIX;
  22831. var charset = font.getCharset();
  22832. var seacMap = Object.create(null);
  22833. for (var glyphId in seacs) {
  22834. glyphId |= 0;
  22835. var seac = seacs[glyphId];
  22836. var baseGlyphName = Encodings.StandardEncoding[seac[2]];
  22837. var accentGlyphName = Encodings.StandardEncoding[seac[3]];
  22838. var baseGlyphId = charset.indexOf(baseGlyphName);
  22839. var accentGlyphId = charset.indexOf(accentGlyphName);
  22840. if (baseGlyphId < 0 || accentGlyphId < 0) {
  22841. continue;
  22842. }
  22843. var accentOffset = {
  22844. x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4],
  22845. y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
  22846. };
  22847. var charCode = getCharCode(mapping, glyphId);
  22848. if (charCode === null) {
  22849. // There's no point in mapping it if the char code was never mapped
  22850. // to begin with.
  22851. continue;
  22852. }
  22853. // Find a fontCharCode that maps to the base and accent glyphs. If one
  22854. // doesn't exists, create it.
  22855. var charCodeToGlyphId = newMapping.charCodeToGlyphId;
  22856. var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId,
  22857. true);
  22858. var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId,
  22859. true);
  22860. seacMap[charCode] = {
  22861. baseFontCharCode: baseFontCharCode,
  22862. accentFontCharCode: accentFontCharCode,
  22863. accentOffset: accentOffset
  22864. };
  22865. }
  22866. properties.seacMap = seacMap;
  22867. }
  22868. var unitsPerEm = 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  22869. var fields = {
  22870. // PostScript Font Program
  22871. 'CFF ': font.data,
  22872. // OS/2 and Windows Specific metrics
  22873. 'OS/2': stringToArray(createOS2Table(properties,
  22874. newMapping.charCodeToGlyphId)),
  22875. // Character to glyphs mapping
  22876. 'cmap': createCmapTable(newMapping.charCodeToGlyphId),
  22877. // Font header
  22878. 'head': (function fontFieldsHead() {
  22879. return stringToArray(
  22880. '\x00\x01\x00\x00' + // Version number
  22881. '\x00\x00\x10\x00' + // fontRevision
  22882. '\x00\x00\x00\x00' + // checksumAdjustement
  22883. '\x5F\x0F\x3C\xF5' + // magicNumber
  22884. '\x00\x00' + // Flags
  22885. safeString16(unitsPerEm) + // unitsPerEM
  22886. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // creation date
  22887. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // modifification date
  22888. '\x00\x00' + // xMin
  22889. safeString16(properties.descent) + // yMin
  22890. '\x0F\xFF' + // xMax
  22891. safeString16(properties.ascent) + // yMax
  22892. string16(properties.italicAngle ? 2 : 0) + // macStyle
  22893. '\x00\x11' + // lowestRecPPEM
  22894. '\x00\x00' + // fontDirectionHint
  22895. '\x00\x00' + // indexToLocFormat
  22896. '\x00\x00'); // glyphDataFormat
  22897. })(),
  22898. // Horizontal header
  22899. 'hhea': (function fontFieldsHhea() {
  22900. return stringToArray(
  22901. '\x00\x01\x00\x00' + // Version number
  22902. safeString16(properties.ascent) + // Typographic Ascent
  22903. safeString16(properties.descent) + // Typographic Descent
  22904. '\x00\x00' + // Line Gap
  22905. '\xFF\xFF' + // advanceWidthMax
  22906. '\x00\x00' + // minLeftSidebearing
  22907. '\x00\x00' + // minRightSidebearing
  22908. '\x00\x00' + // xMaxExtent
  22909. safeString16(properties.capHeight) + // caretSlopeRise
  22910. safeString16(Math.tan(properties.italicAngle) *
  22911. properties.xHeight) + // caretSlopeRun
  22912. '\x00\x00' + // caretOffset
  22913. '\x00\x00' + // -reserved-
  22914. '\x00\x00' + // -reserved-
  22915. '\x00\x00' + // -reserved-
  22916. '\x00\x00' + // -reserved-
  22917. '\x00\x00' + // metricDataFormat
  22918. string16(numGlyphs)); // Number of HMetrics
  22919. })(),
  22920. // Horizontal metrics
  22921. 'hmtx': (function fontFieldsHmtx() {
  22922. var charstrings = font.charstrings;
  22923. var hmtx = '\x00\x00\x00\x00'; // Fake .notdef
  22924. for (var i = 1, ii = numGlyphs; i < ii; i++) {
  22925. // TODO: For CFF fonts the width should technically match th x in
  22926. // the glyph, but it doesn't seem to matter.
  22927. var charstring = charstrings ? charstrings[i - 1] : {};
  22928. var width = 'width' in charstring ? charstring.width : 0;
  22929. hmtx += string16(width) + string16(0);
  22930. }
  22931. return stringToArray(hmtx);
  22932. })(),
  22933. // Maximum profile
  22934. 'maxp': (function fontFieldsMaxp() {
  22935. return stringToArray(
  22936. '\x00\x00\x50\x00' + // Version number
  22937. string16(numGlyphs)); // Num of glyphs
  22938. })(),
  22939. // Naming tables
  22940. 'name': stringToArray(createNameTable(fontName)),
  22941. // PostScript informations
  22942. 'post': stringToArray(createPostTable(properties))
  22943. };
  22944. var field;
  22945. for (field in fields) {
  22946. createTableEntry(otf, field, fields[field]);
  22947. }
  22948. for (field in fields) {
  22949. var table = fields[field];
  22950. otf.file += bytesToString(new Uint8Array(table));
  22951. }
  22952. return stringToArray(otf.file);
  22953. },
  22954. /**
  22955. * Builds a char code to unicode map based on section 9.10 of the spec.
  22956. * @param {Object} properties Font properties object.
  22957. * @return {Object} Has two properties: 'toUnicode' which maps char codes to
  22958. * unicode (string) values and 'isIdentity' which is true if an identity map
  22959. * is used.
  22960. */
  22961. buildToUnicode: function Font_buildToUnicode(properties) {
  22962. var map = {
  22963. isIdentity: false,
  22964. toUnicode: null
  22965. };
  22966. // Section 9.10.2 Mapping Character Codes to Unicode Values
  22967. if (properties.toUnicode && properties.toUnicode.length !== 0) {
  22968. map.toUnicode = properties.toUnicode;
  22969. return map;
  22970. }
  22971. // According to the spec if the font is a simple font we should only map
  22972. // to unicode if the base encoding is MacRoman, MacExpert, or WinAnsi or
  22973. // the differences array only contains adobe standard or symbol set names,
  22974. // in pratice it seems better to always try to create a toUnicode
  22975. // map based of the default encoding.
  22976. var toUnicode, charcode;
  22977. if (!properties.composite /* is simple font */) {
  22978. toUnicode = [];
  22979. var encoding = properties.defaultEncoding.slice();
  22980. // Merge in the differences array.
  22981. var differences = properties.differences;
  22982. for (charcode in differences) {
  22983. encoding[charcode] = differences[charcode];
  22984. }
  22985. for (charcode in encoding) {
  22986. // a) Map the character code to a character name.
  22987. var glyphName = encoding[charcode];
  22988. // b) Look up the character name in the Adobe Glyph List (see the
  22989. // Bibliography) to obtain the corresponding Unicode value.
  22990. if (glyphName === '' || !(glyphName in GlyphsUnicode)) {
  22991. // (undocumented) c) Few heuristics to recognize unknown glyphs
  22992. // NOTE: Adobe Reader does not do this step, but OSX Preview does
  22993. var code;
  22994. // Gxx glyph
  22995. if (glyphName.length === 3 &&
  22996. glyphName[0] === 'G' &&
  22997. (code = parseInt(glyphName.substr(1), 16))) {
  22998. toUnicode[charcode] = String.fromCharCode(code);
  22999. }
  23000. // Cddd glyph
  23001. if (glyphName.length >= 3 &&
  23002. glyphName[0] === 'C' &&
  23003. (code = +glyphName.substr(1))) {
  23004. toUnicode[charcode] = String.fromCharCode(code);
  23005. }
  23006. continue;
  23007. }
  23008. toUnicode[charcode] = String.fromCharCode(GlyphsUnicode[glyphName]);
  23009. }
  23010. map.toUnicode = toUnicode;
  23011. return map;
  23012. }
  23013. // If the font is a composite font that uses one of the predefined CMaps
  23014. // listed in Table 118 (except Identity–H and Identity–V) or whose
  23015. // descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1, or
  23016. // Adobe-Korea1 character collection:
  23017. if (properties.composite && (
  23018. (properties.cMap.builtInCMap &&
  23019. !(properties.cMap instanceof IdentityCMap)) ||
  23020. (properties.cidSystemInfo.registry === 'Adobe' &&
  23021. (properties.cidSystemInfo.ordering === 'GB1' ||
  23022. properties.cidSystemInfo.ordering === 'CNS1' ||
  23023. properties.cidSystemInfo.ordering === 'Japan1' ||
  23024. properties.cidSystemInfo.ordering === 'Korea1')))) {
  23025. // Then:
  23026. // a) Map the character code to a character identifier (CID) according
  23027. // to the font’s CMap.
  23028. // b) Obtain the registry and ordering of the character collection used
  23029. // by the font’s CMap (for example, Adobe and Japan1) from its
  23030. // CIDSystemInfo dictionary.
  23031. var registry = properties.cidSystemInfo.registry;
  23032. var ordering = properties.cidSystemInfo.ordering;
  23033. // c) Construct a second CMap name by concatenating the registry and
  23034. // ordering obtained in step (b) in the format registry–ordering–UCS2
  23035. // (for example, Adobe–Japan1–UCS2).
  23036. var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2');
  23037. // d) Obtain the CMap with the name constructed in step (c) (available
  23038. // from the ASN Web site; see the Bibliography).
  23039. var ucs2CMap = CMapFactory.create(ucs2CMapName,
  23040. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  23041. var cMap = properties.cMap;
  23042. toUnicode = [];
  23043. for (charcode in cMap.map) {
  23044. var cid = cMap.map[charcode];
  23045. assert(cid.length === 1, 'Max size of CID is 65,535');
  23046. // e) Map the CID obtained in step (a) according to the CMap obtained
  23047. // in step (d), producing a Unicode value.
  23048. var ucs2 = ucs2CMap.map[cid.charCodeAt(0)];
  23049. if (!ucs2) {
  23050. continue;
  23051. }
  23052. toUnicode[charcode] = String.fromCharCode((ucs2.charCodeAt(0) << 8) +
  23053. ucs2.charCodeAt(1));
  23054. }
  23055. map.toUnicode = toUnicode;
  23056. return map;
  23057. }
  23058. // The viewer's choice, just use an identity map.
  23059. toUnicode = [];
  23060. var firstChar = properties.firstChar, lastChar = properties.lastChar;
  23061. for (var i = firstChar; i <= lastChar; i++) {
  23062. toUnicode[i] = String.fromCharCode(i);
  23063. }
  23064. map.isIdentity = true;
  23065. map.toUnicode = toUnicode;
  23066. return map;
  23067. },
  23068. get spaceWidth() {
  23069. if ('_shadowWidth' in this) {
  23070. return this._shadowWidth;
  23071. }
  23072. // trying to estimate space character width
  23073. var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
  23074. var width;
  23075. for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
  23076. var glyphName = possibleSpaceReplacements[i];
  23077. // if possible, getting width by glyph name
  23078. if (glyphName in this.widths) {
  23079. width = this.widths[glyphName];
  23080. break;
  23081. }
  23082. var glyphUnicode = GlyphsUnicode[glyphName];
  23083. // finding the charcode via unicodeToCID map
  23084. var charcode = 0;
  23085. if (this.composite) {
  23086. if (glyphUnicode in this.cMap.map) {
  23087. charcode = this.cMap.lookup(glyphUnicode).charCodeAt(0);
  23088. }
  23089. }
  23090. // ... via toUnicode map
  23091. if (!charcode && 'toUnicode' in this) {
  23092. charcode = this.toUnicode.indexOf(glyphUnicode);
  23093. }
  23094. // setting it to unicode if negative or undefined
  23095. if (charcode <= 0) {
  23096. charcode = glyphUnicode;
  23097. }
  23098. // trying to get width via charcode
  23099. width = this.widths[charcode];
  23100. if (width) {
  23101. break; // the non-zero width found
  23102. }
  23103. }
  23104. width = width || this.defaultWidth;
  23105. // Do not shadow the property here. See discussion:
  23106. // https://github.com/mozilla/pdf.js/pull/2127#discussion_r1662280
  23107. this._shadowWidth = width;
  23108. return width;
  23109. },
  23110. charToGlyph: function Font_charToGlyph(charcode) {
  23111. var fontCharCode, width, operatorListId;
  23112. var widthCode = charcode;
  23113. if (this.cMap && charcode in this.cMap.map) {
  23114. widthCode = this.cMap.map[charcode].charCodeAt(0);
  23115. }
  23116. width = this.widths[widthCode];
  23117. width = isNum(width) ? width : this.defaultWidth;
  23118. var vmetric = this.vmetrics && this.vmetrics[widthCode];
  23119. var unicode = this.toUnicode[charcode] || charcode;
  23120. if (typeof unicode === 'number') {
  23121. unicode = String.fromCharCode(unicode);
  23122. }
  23123. // First try the toFontChar map, if it's not there then try falling
  23124. // back to the char code.
  23125. fontCharCode = this.toFontChar[charcode] || charcode;
  23126. if (this.missingFile) {
  23127. fontCharCode = mapSpecialUnicodeValues(fontCharCode);
  23128. }
  23129. if (this.isType3Font) {
  23130. // Font char code in this case is actually a glyph name.
  23131. operatorListId = fontCharCode;
  23132. }
  23133. var accent = null;
  23134. if (this.seacMap && this.seacMap[charcode]) {
  23135. var seac = this.seacMap[charcode];
  23136. fontCharCode = seac.baseFontCharCode;
  23137. accent = {
  23138. fontChar: String.fromCharCode(seac.accentFontCharCode),
  23139. offset: seac.accentOffset
  23140. };
  23141. }
  23142. var fontChar = String.fromCharCode(fontCharCode);
  23143. var glyph = this.glyphCache[charcode];
  23144. if (!glyph ||
  23145. !glyph.matchesForCache(fontChar, unicode, accent, width, vmetric,
  23146. operatorListId)) {
  23147. glyph = new Glyph(fontChar, unicode, accent, width, vmetric,
  23148. operatorListId);
  23149. this.glyphCache[charcode] = glyph;
  23150. }
  23151. return glyph;
  23152. },
  23153. charsToGlyphs: function Font_charsToGlyphs(chars) {
  23154. var charsCache = this.charsCache;
  23155. var glyphs, glyph, charcode;
  23156. // if we translated this string before, just grab it from the cache
  23157. if (charsCache) {
  23158. glyphs = charsCache[chars];
  23159. if (glyphs) {
  23160. return glyphs;
  23161. }
  23162. }
  23163. // lazily create the translation cache
  23164. if (!charsCache) {
  23165. charsCache = this.charsCache = Object.create(null);
  23166. }
  23167. glyphs = [];
  23168. var charsCacheKey = chars;
  23169. var i = 0, ii;
  23170. if (this.cMap) {
  23171. // composite fonts have multi-byte strings convert the string from
  23172. // single-byte to multi-byte
  23173. while (i < chars.length) {
  23174. var c = this.cMap.readCharCode(chars, i);
  23175. charcode = c[0];
  23176. var length = c[1];
  23177. i += length;
  23178. glyph = this.charToGlyph(charcode);
  23179. glyphs.push(glyph);
  23180. // placing null after each word break charcode (ASCII SPACE)
  23181. // Ignore occurences of 0x20 in multiple-byte codes.
  23182. if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {
  23183. glyphs.push(null);
  23184. }
  23185. }
  23186. } else {
  23187. for (i = 0, ii = chars.length; i < ii; ++i) {
  23188. charcode = chars.charCodeAt(i);
  23189. glyph = this.charToGlyph(charcode);
  23190. glyphs.push(glyph);
  23191. if (charcode == 0x20) {
  23192. glyphs.push(null);
  23193. }
  23194. }
  23195. }
  23196. // Enter the translated string into the cache
  23197. return (charsCache[charsCacheKey] = glyphs);
  23198. }
  23199. };
  23200. return Font;
  23201. })();
  23202. var ErrorFont = (function ErrorFontClosure() {
  23203. function ErrorFont(error) {
  23204. this.error = error;
  23205. this.loadedName = 'g_font_error';
  23206. this.loading = false;
  23207. }
  23208. ErrorFont.prototype = {
  23209. charsToGlyphs: function ErrorFont_charsToGlyphs() {
  23210. return [];
  23211. },
  23212. exportData: function ErrorFont_exportData() {
  23213. return {error: this.error};
  23214. }
  23215. };
  23216. return ErrorFont;
  23217. })();
  23218. /**
  23219. * Shared logic for building a char code to glyph id mapping for Type1 and
  23220. * simple CFF fonts. See section 9.6.6.2 of the spec.
  23221. * @param {Object} properties Font properties object.
  23222. * @param {Object} builtInEncoding The encoding contained within the actual font
  23223. * data.
  23224. * @param {Array} Array of glyph names where the index is the glyph ID.
  23225. * @returns {Object} A char code to glyph ID map.
  23226. */
  23227. function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
  23228. var charCodeToGlyphId = Object.create(null);
  23229. var glyphId, charCode, baseEncoding;
  23230. if (properties.baseEncodingName) {
  23231. // If a valid base encoding name was used, the mapping is initialized with
  23232. // that.
  23233. baseEncoding = Encodings[properties.baseEncodingName];
  23234. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  23235. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  23236. if (glyphId >= 0) {
  23237. charCodeToGlyphId[charCode] = glyphId;
  23238. }
  23239. }
  23240. } else if (!!(properties.flags & FontFlags.Symbolic)) {
  23241. // For a symbolic font the encoding should be the fonts built-in
  23242. // encoding.
  23243. for (charCode in builtInEncoding) {
  23244. charCodeToGlyphId[charCode] = builtInEncoding[charCode];
  23245. }
  23246. } else {
  23247. // For non-symbolic fonts that don't have a base encoding the standard
  23248. // encoding should be used.
  23249. baseEncoding = Encodings.StandardEncoding;
  23250. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  23251. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  23252. if (glyphId >= 0) {
  23253. charCodeToGlyphId[charCode] = glyphId;
  23254. }
  23255. }
  23256. }
  23257. // Lastly, merge in the differences.
  23258. var differences = properties.differences;
  23259. if (differences) {
  23260. for (charCode in differences) {
  23261. var glyphName = differences[charCode];
  23262. glyphId = glyphNames.indexOf(glyphName);
  23263. if (glyphId >= 0) {
  23264. charCodeToGlyphId[charCode] = glyphId;
  23265. }
  23266. }
  23267. }
  23268. return charCodeToGlyphId;
  23269. }
  23270. /*
  23271. * CharStrings are encoded following the the CharString Encoding sequence
  23272. * describe in Chapter 6 of the "Adobe Type1 Font Format" specification.
  23273. * The value in a byte indicates a command, a number, or subsequent bytes
  23274. * that are to be interpreted in a special way.
  23275. *
  23276. * CharString Number Encoding:
  23277. * A CharString byte containing the values from 32 through 255 inclusive
  23278. * indicate an integer. These values are decoded in four ranges.
  23279. *
  23280. * 1. A CharString byte containing a value, v, between 32 and 246 inclusive,
  23281. * indicate the integer v - 139. Thus, the integer values from -107 through
  23282. * 107 inclusive may be encoded in single byte.
  23283. *
  23284. * 2. A CharString byte containing a value, v, between 247 and 250 inclusive,
  23285. * indicates an integer involving the next byte, w, according to the formula:
  23286. * [(v - 247) x 256] + w + 108
  23287. *
  23288. * 3. A CharString byte containing a value, v, between 251 and 254 inclusive,
  23289. * indicates an integer involving the next byte, w, according to the formula:
  23290. * -[(v - 251) * 256] - w - 108
  23291. *
  23292. * 4. A CharString containing the value 255 indicates that the next 4 bytes
  23293. * are a two complement signed integer. The first of these bytes contains the
  23294. * highest order bits, the second byte contains the next higher order bits
  23295. * and the fourth byte contain the lowest order bits.
  23296. *
  23297. *
  23298. * CharString Command Encoding:
  23299. * CharStrings commands are encoded in 1 or 2 bytes.
  23300. *
  23301. * Single byte commands are encoded in 1 byte that contains a value between
  23302. * 0 and 31 inclusive.
  23303. * If a command byte contains the value 12, then the value in the next byte
  23304. * indicates a command. This "escape" mechanism allows many extra commands
  23305. * to be encoded and this encoding technique helps to minimize the length of
  23306. * the charStrings.
  23307. */
  23308. var Type1CharString = (function Type1CharStringClosure() {
  23309. var COMMAND_MAP = {
  23310. 'hstem': [1],
  23311. 'vstem': [3],
  23312. 'vmoveto': [4],
  23313. 'rlineto': [5],
  23314. 'hlineto': [6],
  23315. 'vlineto': [7],
  23316. 'rrcurveto': [8],
  23317. 'callsubr': [10],
  23318. 'flex': [12, 35],
  23319. 'drop' : [12, 18],
  23320. 'endchar': [14],
  23321. 'rmoveto': [21],
  23322. 'hmoveto': [22],
  23323. 'vhcurveto': [30],
  23324. 'hvcurveto': [31]
  23325. };
  23326. function Type1CharString() {
  23327. this.width = 0;
  23328. this.lsb = 0;
  23329. this.flexing = false;
  23330. this.output = [];
  23331. this.stack = [];
  23332. }
  23333. Type1CharString.prototype = {
  23334. convert: function Type1CharString_convert(encoded, subrs) {
  23335. var count = encoded.length;
  23336. var error = false;
  23337. var wx, sbx, subrNumber;
  23338. for (var i = 0; i < count; i++) {
  23339. var value = encoded[i];
  23340. if (value < 32) {
  23341. if (value === 12) {
  23342. value = (value << 8) + encoded[++i];
  23343. }
  23344. switch (value) {
  23345. case 1: // hstem
  23346. if (!HINTING_ENABLED) {
  23347. this.stack = [];
  23348. break;
  23349. }
  23350. error = this.executeCommand(2, COMMAND_MAP.hstem);
  23351. break;
  23352. case 3: // vstem
  23353. if (!HINTING_ENABLED) {
  23354. this.stack = [];
  23355. break;
  23356. }
  23357. error = this.executeCommand(2, COMMAND_MAP.vstem);
  23358. break;
  23359. case 4: // vmoveto
  23360. if (this.flexing) {
  23361. if (this.stack.length < 1) {
  23362. error = true;
  23363. break;
  23364. }
  23365. // Add the dx for flex and but also swap the values so they are
  23366. // the right order.
  23367. var dy = this.stack.pop();
  23368. this.stack.push(0, dy);
  23369. break;
  23370. }
  23371. error = this.executeCommand(1, COMMAND_MAP.vmoveto);
  23372. break;
  23373. case 5: // rlineto
  23374. error = this.executeCommand(2, COMMAND_MAP.rlineto);
  23375. break;
  23376. case 6: // hlineto
  23377. error = this.executeCommand(1, COMMAND_MAP.hlineto);
  23378. break;
  23379. case 7: // vlineto
  23380. error = this.executeCommand(1, COMMAND_MAP.vlineto);
  23381. break;
  23382. case 8: // rrcurveto
  23383. error = this.executeCommand(6, COMMAND_MAP.rrcurveto);
  23384. break;
  23385. case 9: // closepath
  23386. // closepath is a Type1 command that does not take argument and is
  23387. // useless in Type2 and it can simply be ignored.
  23388. this.stack = [];
  23389. break;
  23390. case 10: // callsubr
  23391. if (this.stack.length < 1) {
  23392. error = true;
  23393. break;
  23394. }
  23395. subrNumber = this.stack.pop();
  23396. error = this.convert(subrs[subrNumber], subrs);
  23397. break;
  23398. case 11: // return
  23399. return error;
  23400. case 13: // hsbw
  23401. if (this.stack.length < 2) {
  23402. error = true;
  23403. break;
  23404. }
  23405. // To convert to type2 we have to move the width value to the
  23406. // first part of the charstring and then use hmoveto with lsb.
  23407. wx = this.stack.pop();
  23408. sbx = this.stack.pop();
  23409. this.lsb = sbx;
  23410. this.width = wx;
  23411. this.stack.push(sbx);
  23412. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  23413. break;
  23414. case 14: // endchar
  23415. this.output.push(COMMAND_MAP.endchar[0]);
  23416. break;
  23417. case 21: // rmoveto
  23418. if (this.flexing) {
  23419. break;
  23420. }
  23421. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  23422. break;
  23423. case 22: // hmoveto
  23424. if (this.flexing) {
  23425. // Add the dy for flex.
  23426. this.stack.push(0);
  23427. break;
  23428. }
  23429. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  23430. break;
  23431. case 30: // vhcurveto
  23432. error = this.executeCommand(4, COMMAND_MAP.vhcurveto);
  23433. break;
  23434. case 31: // hvcurveto
  23435. error = this.executeCommand(4, COMMAND_MAP.hvcurveto);
  23436. break;
  23437. case (12 << 8) + 0: // dotsection
  23438. // dotsection is a Type1 command to specify some hinting feature
  23439. // for dots that do not take a parameter and it can safely be
  23440. // ignored for Type2.
  23441. this.stack = [];
  23442. break;
  23443. case (12 << 8) + 1: // vstem3
  23444. if (!HINTING_ENABLED) {
  23445. this.stack = [];
  23446. break;
  23447. }
  23448. // [vh]stem3 are Type1 only and Type2 supports [vh]stem with
  23449. // multiple parameters, so instead of returning [vh]stem3 take a
  23450. // shortcut and return [vhstem] instead.
  23451. error = this.executeCommand(2, COMMAND_MAP.vstem);
  23452. break;
  23453. case (12 << 8) + 2: // hstem3
  23454. if (!HINTING_ENABLED) {
  23455. this.stack = [];
  23456. break;
  23457. }
  23458. // See vstem3.
  23459. error = this.executeCommand(2, COMMAND_MAP.hstem);
  23460. break;
  23461. case (12 << 8) + 6: // seac
  23462. // seac is like type 2's special endchar but it doesn't use the
  23463. // first argument asb, so remove it.
  23464. if (SEAC_ANALYSIS_ENABLED) {
  23465. this.seac = this.stack.splice(-4, 4);
  23466. error = this.executeCommand(0, COMMAND_MAP.endchar);
  23467. } else {
  23468. error = this.executeCommand(4, COMMAND_MAP.endchar);
  23469. }
  23470. break;
  23471. case (12 << 8) + 7: // sbw
  23472. if (this.stack.length < 4) {
  23473. error = true;
  23474. break;
  23475. }
  23476. // To convert to type2 we have to move the width value to the
  23477. // first part of the charstring and then use rmoveto with
  23478. // (dx, dy). The height argument will not be used for vmtx and
  23479. // vhea tables reconstruction -- ignoring it.
  23480. var wy = this.stack.pop();
  23481. wx = this.stack.pop();
  23482. var sby = this.stack.pop();
  23483. sbx = this.stack.pop();
  23484. this.lsb = sbx;
  23485. this.width = wx;
  23486. this.stack.push(sbx, sby);
  23487. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  23488. break;
  23489. case (12 << 8) + 12: // div
  23490. if (this.stack.length < 2) {
  23491. error = true;
  23492. break;
  23493. }
  23494. var num2 = this.stack.pop();
  23495. var num1 = this.stack.pop();
  23496. this.stack.push(num1 / num2);
  23497. break;
  23498. case (12 << 8) + 16: // callothersubr
  23499. if (this.stack.length < 2) {
  23500. error = true;
  23501. break;
  23502. }
  23503. subrNumber = this.stack.pop();
  23504. var numArgs = this.stack.pop();
  23505. if (subrNumber === 0 && numArgs === 3) {
  23506. var flexArgs = this.stack.splice(this.stack.length - 17, 17);
  23507. this.stack.push(
  23508. flexArgs[2] + flexArgs[0], // bcp1x + rpx
  23509. flexArgs[3] + flexArgs[1], // bcp1y + rpy
  23510. flexArgs[4], // bcp2x
  23511. flexArgs[5], // bcp2y
  23512. flexArgs[6], // p2x
  23513. flexArgs[7], // p2y
  23514. flexArgs[8], // bcp3x
  23515. flexArgs[9], // bcp3y
  23516. flexArgs[10], // bcp4x
  23517. flexArgs[11], // bcp4y
  23518. flexArgs[12], // p3x
  23519. flexArgs[13], // p3y
  23520. flexArgs[14] // flexDepth
  23521. // 15 = finalx unused by flex
  23522. // 16 = finaly unused by flex
  23523. );
  23524. error = this.executeCommand(13, COMMAND_MAP.flex, true);
  23525. this.flexing = false;
  23526. this.stack.push(flexArgs[15], flexArgs[16]);
  23527. } else if (subrNumber === 1 && numArgs === 0) {
  23528. this.flexing = true;
  23529. }
  23530. break;
  23531. case (12 << 8) + 17: // pop
  23532. // Ignore this since it is only used with othersubr.
  23533. break;
  23534. case (12 << 8) + 33: // setcurrentpoint
  23535. // Ignore for now.
  23536. this.stack = [];
  23537. break;
  23538. default:
  23539. warn('Unknown type 1 charstring command of "' + value + '"');
  23540. break;
  23541. }
  23542. if (error) {
  23543. break;
  23544. }
  23545. continue;
  23546. } else if (value <= 246) {
  23547. value = value - 139;
  23548. } else if (value <= 250) {
  23549. value = ((value - 247) * 256) + encoded[++i] + 108;
  23550. } else if (value <= 254) {
  23551. value = -((value - 251) * 256) - encoded[++i] - 108;
  23552. } else {
  23553. value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 |
  23554. (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0;
  23555. }
  23556. this.stack.push(value);
  23557. }
  23558. return error;
  23559. },
  23560. executeCommand: function(howManyArgs, command, keepStack) {
  23561. var stackLength = this.stack.length;
  23562. if (howManyArgs > stackLength) {
  23563. return true;
  23564. }
  23565. var start = stackLength - howManyArgs;
  23566. for (var i = start; i < stackLength; i++) {
  23567. var value = this.stack[i];
  23568. if (value === (value | 0)) { // int
  23569. this.output.push(28, (value >> 8) & 0xff, value & 0xff);
  23570. } else { // fixed point
  23571. value = (65536 * value) | 0;
  23572. this.output.push(255,
  23573. (value >> 24) & 0xFF,
  23574. (value >> 16) & 0xFF,
  23575. (value >> 8) & 0xFF,
  23576. value & 0xFF);
  23577. }
  23578. }
  23579. this.output.push.apply(this.output, command);
  23580. if (keepStack) {
  23581. this.stack.splice(start, howManyArgs);
  23582. } else {
  23583. this.stack.length = 0;
  23584. }
  23585. return false;
  23586. }
  23587. };
  23588. return Type1CharString;
  23589. })();
  23590. /*
  23591. * Type1Parser encapsulate the needed code for parsing a Type1 font
  23592. * program. Some of its logic depends on the Type2 charstrings
  23593. * structure.
  23594. * Note: this doesn't really parse the font since that would require evaluation
  23595. * of PostScript, but it is possible in most cases to extract what we need
  23596. * without a full parse.
  23597. */
  23598. var Type1Parser = (function Type1ParserClosure() {
  23599. /*
  23600. * Decrypt a Sequence of Ciphertext Bytes to Produce the Original Sequence
  23601. * of Plaintext Bytes. The function took a key as a parameter which can be
  23602. * for decrypting the eexec block of for decoding charStrings.
  23603. */
  23604. var EEXEC_ENCRYPT_KEY = 55665;
  23605. var CHAR_STRS_ENCRYPT_KEY = 4330;
  23606. function isHexDigit(code) {
  23607. return code >= 48 && code <= 57 || // '0'-'9'
  23608. code >= 65 && code <= 70 || // 'A'-'F'
  23609. code >= 97 && code <= 102; // 'a'-'f'
  23610. }
  23611. function decrypt(data, key, discardNumber) {
  23612. var r = key | 0, c1 = 52845, c2 = 22719;
  23613. var count = data.length;
  23614. var decrypted = new Uint8Array(count);
  23615. for (var i = 0; i < count; i++) {
  23616. var value = data[i];
  23617. decrypted[i] = value ^ (r >> 8);
  23618. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  23619. }
  23620. return Array.prototype.slice.call(decrypted, discardNumber);
  23621. }
  23622. function decryptAscii(data, key, discardNumber) {
  23623. var r = key | 0, c1 = 52845, c2 = 22719;
  23624. var count = data.length, maybeLength = count >>> 1;
  23625. var decrypted = new Uint8Array(maybeLength);
  23626. var i, j;
  23627. for (i = 0, j = 0; i < count; i++) {
  23628. var digit1 = data[i];
  23629. if (!isHexDigit(digit1)) {
  23630. continue;
  23631. }
  23632. i++;
  23633. var digit2;
  23634. while (i < count && !isHexDigit(digit2 = data[i])) {
  23635. i++;
  23636. }
  23637. if (i < count) {
  23638. var value = parseInt(String.fromCharCode(digit1, digit2), 16);
  23639. decrypted[j++] = value ^ (r >> 8);
  23640. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  23641. }
  23642. }
  23643. return Array.prototype.slice.call(decrypted, discardNumber, j);
  23644. }
  23645. function isSpecial(c) {
  23646. return c === 0x2F || // '/'
  23647. c === 0x5B || c === 0x5D || // '[', ']'
  23648. c === 0x7B || c === 0x7D || // '{', '}'
  23649. c === 0x28 || c === 0x29; // '(', ')'
  23650. }
  23651. function Type1Parser(stream, encrypted) {
  23652. if (encrypted) {
  23653. var data = stream.getBytes();
  23654. var isBinary = !(isHexDigit(data[0]) && isHexDigit(data[1]) &&
  23655. isHexDigit(data[2]) && isHexDigit(data[3]));
  23656. stream = new Stream(isBinary ? decrypt(data, EEXEC_ENCRYPT_KEY, 4) :
  23657. decryptAscii(data, EEXEC_ENCRYPT_KEY, 4));
  23658. }
  23659. this.stream = stream;
  23660. this.nextChar();
  23661. }
  23662. Type1Parser.prototype = {
  23663. readNumberArray: function Type1Parser_readNumberArray() {
  23664. this.getToken(); // read '[' or '{' (arrays can start with either)
  23665. var array = [];
  23666. while (true) {
  23667. var token = this.getToken();
  23668. if (token === null || token === ']' || token === '}') {
  23669. break;
  23670. }
  23671. array.push(parseFloat(token || 0));
  23672. }
  23673. return array;
  23674. },
  23675. readNumber: function Type1Parser_readNumber() {
  23676. var token = this.getToken();
  23677. return parseFloat(token || 0);
  23678. },
  23679. readInt: function Type1Parser_readInt() {
  23680. // Use '| 0' to prevent setting a double into length such as the double
  23681. // does not flow into the loop variable.
  23682. var token = this.getToken();
  23683. return parseInt(token || 0, 10) | 0;
  23684. },
  23685. readBoolean: function Type1Parser_readBoolean() {
  23686. var token = this.getToken();
  23687. // Use 1 and 0 since that's what type2 charstrings use.
  23688. return token === 'true' ? 1 : 0;
  23689. },
  23690. nextChar : function Type1_nextChar() {
  23691. return (this.currentChar = this.stream.getByte());
  23692. },
  23693. getToken: function Type1Parser_getToken() {
  23694. // Eat whitespace and comments.
  23695. var comment = false;
  23696. var ch = this.currentChar;
  23697. while (true) {
  23698. if (ch === -1) {
  23699. return null;
  23700. }
  23701. if (comment) {
  23702. if (ch === 0x0A || ch === 0x0D) {
  23703. comment = false;
  23704. }
  23705. } else if (ch === 0x25) { // '%'
  23706. comment = true;
  23707. } else if (!Lexer.isSpace(ch)) {
  23708. break;
  23709. }
  23710. ch = this.nextChar();
  23711. }
  23712. if (isSpecial(ch)) {
  23713. this.nextChar();
  23714. return String.fromCharCode(ch);
  23715. }
  23716. var token = '';
  23717. do {
  23718. token += String.fromCharCode(ch);
  23719. ch = this.nextChar();
  23720. } while (ch >= 0 && !Lexer.isSpace(ch) && !isSpecial(ch));
  23721. return token;
  23722. },
  23723. /*
  23724. * Returns an object containing a Subrs array and a CharStrings
  23725. * array extracted from and eexec encrypted block of data
  23726. */
  23727. extractFontProgram: function Type1Parser_extractFontProgram() {
  23728. var stream = this.stream;
  23729. var subrs = [], charstrings = [];
  23730. var program = {
  23731. subrs: [],
  23732. charstrings: [],
  23733. properties: {
  23734. 'privateData': {
  23735. 'lenIV': 4
  23736. }
  23737. }
  23738. };
  23739. var token, length, data, lenIV, encoded;
  23740. while ((token = this.getToken()) !== null) {
  23741. if (token !== '/') {
  23742. continue;
  23743. }
  23744. token = this.getToken();
  23745. switch (token) {
  23746. case 'CharStrings':
  23747. // The number immediately following CharStrings must be greater or
  23748. // equal to the number of CharStrings.
  23749. this.getToken();
  23750. this.getToken(); // read in 'dict'
  23751. this.getToken(); // read in 'dup'
  23752. this.getToken(); // read in 'begin'
  23753. while(true) {
  23754. token = this.getToken();
  23755. if (token === null || token === 'end') {
  23756. break;
  23757. }
  23758. if (token !== '/') {
  23759. continue;
  23760. }
  23761. var glyph = this.getToken();
  23762. length = this.readInt();
  23763. this.getToken(); // read in 'RD' or '-|'
  23764. data = stream.makeSubStream(stream.pos, length);
  23765. lenIV = program.properties.privateData['lenIV'];
  23766. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  23767. // Skip past the required space and binary data.
  23768. stream.skip(length);
  23769. this.nextChar();
  23770. token = this.getToken(); // read in 'ND' or '|-'
  23771. if (token === 'noaccess') {
  23772. this.getToken(); // read in 'def'
  23773. }
  23774. charstrings.push({
  23775. glyph: glyph,
  23776. encoded: encoded
  23777. });
  23778. }
  23779. break;
  23780. case 'Subrs':
  23781. var num = this.readInt();
  23782. this.getToken(); // read in 'array'
  23783. while ((token = this.getToken()) === 'dup') {
  23784. var index = this.readInt();
  23785. length = this.readInt();
  23786. this.getToken(); // read in 'RD' or '-|'
  23787. data = stream.makeSubStream(stream.pos, length);
  23788. lenIV = program.properties.privateData['lenIV'];
  23789. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  23790. // Skip past the required space and binary data.
  23791. stream.skip(length);
  23792. this.nextChar();
  23793. token = this.getToken(); // read in 'NP' or '|'
  23794. if (token === 'noaccess') {
  23795. this.getToken(); // read in 'put'
  23796. }
  23797. subrs[index] = encoded;
  23798. }
  23799. break;
  23800. case 'BlueValues':
  23801. case 'OtherBlues':
  23802. case 'FamilyBlues':
  23803. case 'FamilyOtherBlues':
  23804. var blueArray = this.readNumberArray();
  23805. // *Blue* values may contain invalid data: disables reading of
  23806. // those values when hinting is disabled.
  23807. if (blueArray.length > 0 && (blueArray.length % 2) === 0 &&
  23808. HINTING_ENABLED) {
  23809. program.properties.privateData[token] = blueArray;
  23810. }
  23811. break;
  23812. case 'StemSnapH':
  23813. case 'StemSnapV':
  23814. program.properties.privateData[token] = this.readNumberArray();
  23815. break;
  23816. case 'StdHW':
  23817. case 'StdVW':
  23818. program.properties.privateData[token] =
  23819. this.readNumberArray()[0];
  23820. break;
  23821. case 'BlueShift':
  23822. case 'lenIV':
  23823. case 'BlueFuzz':
  23824. case 'BlueScale':
  23825. case 'LanguageGroup':
  23826. case 'ExpansionFactor':
  23827. program.properties.privateData[token] = this.readNumber();
  23828. break;
  23829. case 'ForceBold':
  23830. program.properties.privateData[token] = this.readBoolean();
  23831. break;
  23832. }
  23833. }
  23834. for (var i = 0; i < charstrings.length; i++) {
  23835. glyph = charstrings[i].glyph;
  23836. encoded = charstrings[i].encoded;
  23837. var charString = new Type1CharString();
  23838. var error = charString.convert(encoded, subrs);
  23839. var output = charString.output;
  23840. if (error) {
  23841. // It seems when FreeType encounters an error while evaluating a glyph
  23842. // that it completely ignores the glyph so we'll mimic that behaviour
  23843. // here and put an endchar to make the validator happy.
  23844. output = [14];
  23845. }
  23846. program.charstrings.push({
  23847. glyphName: glyph,
  23848. charstring: output,
  23849. width: charString.width,
  23850. lsb: charString.lsb,
  23851. seac: charString.seac
  23852. });
  23853. }
  23854. return program;
  23855. },
  23856. extractFontHeader: function Type1Parser_extractFontHeader(properties) {
  23857. var token;
  23858. while ((token = this.getToken()) !== null) {
  23859. if (token !== '/') {
  23860. continue;
  23861. }
  23862. token = this.getToken();
  23863. switch (token) {
  23864. case 'FontMatrix':
  23865. var matrix = this.readNumberArray();
  23866. properties.fontMatrix = matrix;
  23867. break;
  23868. case 'Encoding':
  23869. var encodingArg = this.getToken();
  23870. var encoding;
  23871. if (!/^\d+$/.test(encodingArg)) {
  23872. // encoding name is specified
  23873. encoding = Encodings[encodingArg];
  23874. } else {
  23875. encoding = [];
  23876. var size = parseInt(encodingArg, 10) | 0;
  23877. this.getToken(); // read in 'array'
  23878. for (var j = 0; j < size; j++) {
  23879. token = this.getToken();
  23880. // skipping till first dup or def (e.g. ignoring for statement)
  23881. while (token !== 'dup' && token !== 'def') {
  23882. token = this.getToken();
  23883. if (token === null) {
  23884. return; // invalid header
  23885. }
  23886. }
  23887. if (token === 'def') {
  23888. break; // read all array data
  23889. }
  23890. var index = this.readInt();
  23891. this.getToken(); // read in '/'
  23892. var glyph = this.getToken();
  23893. encoding[index] = glyph;
  23894. this.getToken(); // read the in 'put'
  23895. }
  23896. }
  23897. properties.builtInEncoding = encoding;
  23898. break;
  23899. case 'FontBBox':
  23900. var fontBBox = this.readNumberArray();
  23901. // adjusting ascent/descent
  23902. properties.ascent = fontBBox[3];
  23903. properties.descent = fontBBox[1];
  23904. properties.ascentScaled = true;
  23905. break;
  23906. }
  23907. }
  23908. }
  23909. };
  23910. return Type1Parser;
  23911. })();
  23912. /**
  23913. * The CFF class takes a Type1 file and wrap it into a
  23914. * 'Compact Font Format' which itself embed Type2 charstrings.
  23915. */
  23916. var CFFStandardStrings = [
  23917. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  23918. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  23919. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  23920. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  23921. 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  23922. 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  23923. 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum',
  23924. 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
  23925. 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
  23926. 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  23927. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  23928. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  23929. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  23930. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase',
  23931. 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown',
  23932. 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent',
  23933. 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash',
  23934. 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae',
  23935. 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior',
  23936. 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn',
  23937. 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters',
  23938. 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior',
  23939. 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring',
  23940. 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave',
  23941. 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute',
  23942. 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute',
  23943. 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron',
  23944. 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde',
  23945. 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute',
  23946. 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex',
  23947. 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex',
  23948. 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall',
  23949. 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall',
  23950. 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  23951. 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle',
  23952. 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle',
  23953. 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior',
  23954. 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior',
  23955. 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior',
  23956. 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  23957. 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior',
  23958. 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
  23959. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  23960. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  23961. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  23962. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  23963. 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  23964. 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall',
  23965. 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior',
  23966. 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth',
  23967. 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds',
  23968. 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  23969. 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior',
  23970. 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior',
  23971. 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior',
  23972. 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior',
  23973. 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall',
  23974. 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall',
  23975. 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall',
  23976. 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall',
  23977. 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall',
  23978. 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall',
  23979. 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall',
  23980. 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003',
  23981. 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
  23982. ];
  23983. // Type1Font is also a CIDFontType0.
  23984. var Type1Font = function Type1Font(name, file, properties) {
  23985. // Some bad generators embed pfb file as is, we have to strip 6-byte headers.
  23986. // Also, length1 and length2 might be off by 6 bytes as well.
  23987. // http://www.math.ubc.ca/~cass/piscript/type1.pdf
  23988. var PFB_HEADER_SIZE = 6;
  23989. var headerBlockLength = properties.length1;
  23990. var eexecBlockLength = properties.length2;
  23991. var pfbHeader = file.peekBytes(PFB_HEADER_SIZE);
  23992. var pfbHeaderPresent = pfbHeader[0] == 0x80 && pfbHeader[1] == 0x01;
  23993. if (pfbHeaderPresent) {
  23994. file.skip(PFB_HEADER_SIZE);
  23995. headerBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  23996. (pfbHeader[3] << 8) | pfbHeader[2];
  23997. }
  23998. // Get the data block containing glyphs and subrs informations
  23999. var headerBlock = new Stream(file.getBytes(headerBlockLength));
  24000. var headerBlockParser = new Type1Parser(headerBlock);
  24001. headerBlockParser.extractFontHeader(properties);
  24002. if (pfbHeaderPresent) {
  24003. pfbHeader = file.getBytes(PFB_HEADER_SIZE);
  24004. eexecBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  24005. (pfbHeader[3] << 8) | pfbHeader[2];
  24006. }
  24007. // Decrypt the data blocks and retrieve it's content
  24008. var eexecBlock = new Stream(file.getBytes(eexecBlockLength));
  24009. var eexecBlockParser = new Type1Parser(eexecBlock, true);
  24010. var data = eexecBlockParser.extractFontProgram();
  24011. for (var info in data.properties) {
  24012. properties[info] = data.properties[info];
  24013. }
  24014. var charstrings = data.charstrings;
  24015. var type2Charstrings = this.getType2Charstrings(charstrings);
  24016. var subrs = this.getType2Subrs(data.subrs);
  24017. this.charstrings = charstrings;
  24018. this.data = this.wrap(name, type2Charstrings, this.charstrings,
  24019. subrs, properties);
  24020. this.seacs = this.getSeacs(data.charstrings);
  24021. };
  24022. Type1Font.prototype = {
  24023. get numGlyphs() {
  24024. return this.charstrings.length + 1;
  24025. },
  24026. getCharset: function Type1Font_getCharset() {
  24027. var charset = ['.notdef'];
  24028. var charstrings = this.charstrings;
  24029. for (var glyphId = 0; glyphId < charstrings.length; glyphId++) {
  24030. charset.push(charstrings[glyphId].glyphName);
  24031. }
  24032. return charset;
  24033. },
  24034. getGlyphMapping: function Type1Font_getGlyphMapping(properties) {
  24035. var charstrings = this.charstrings;
  24036. var glyphNames = ['.notdef'], glyphId;
  24037. for (glyphId = 0; glyphId < charstrings.length; glyphId++) {
  24038. glyphNames.push(charstrings[glyphId].glyphName);
  24039. }
  24040. var encoding = properties.builtInEncoding;
  24041. if (encoding) {
  24042. var builtInEncoding = {};
  24043. for (var charCode in encoding) {
  24044. glyphId = glyphNames.indexOf(encoding[charCode]);
  24045. if (glyphId >= 0) {
  24046. builtInEncoding[charCode] = glyphId;
  24047. }
  24048. }
  24049. }
  24050. return type1FontGlyphMapping(properties, builtInEncoding, glyphNames);
  24051. },
  24052. getSeacs: function Type1Font_getSeacs(charstrings) {
  24053. var i, ii;
  24054. var seacMap = [];
  24055. for (i = 0, ii = charstrings.length; i < ii; i++) {
  24056. var charstring = charstrings[i];
  24057. if (charstring.seac) {
  24058. // Offset by 1 for .notdef
  24059. seacMap[i + 1] = charstring.seac;
  24060. }
  24061. }
  24062. return seacMap;
  24063. },
  24064. getType2Charstrings: function Type1Font_getType2Charstrings(
  24065. type1Charstrings) {
  24066. var type2Charstrings = [];
  24067. for (var i = 0, ii = type1Charstrings.length; i < ii; i++) {
  24068. type2Charstrings.push(type1Charstrings[i].charstring);
  24069. }
  24070. return type2Charstrings;
  24071. },
  24072. getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
  24073. var bias = 0;
  24074. var count = type1Subrs.length;
  24075. if (count < 1133) {
  24076. bias = 107;
  24077. } else if (count < 33769) {
  24078. bias = 1131;
  24079. } else {
  24080. bias = 32768;
  24081. }
  24082. // Add a bunch of empty subrs to deal with the Type2 bias
  24083. var type2Subrs = [];
  24084. var i;
  24085. for (i = 0; i < bias; i++) {
  24086. type2Subrs.push([0x0B]);
  24087. }
  24088. for (i = 0; i < count; i++) {
  24089. type2Subrs.push(type1Subrs[i]);
  24090. }
  24091. return type2Subrs;
  24092. },
  24093. wrap: function Type1Font_wrap(name, glyphs, charstrings, subrs, properties) {
  24094. var cff = new CFF();
  24095. cff.header = new CFFHeader(1, 0, 4, 4);
  24096. cff.names = [name];
  24097. var topDict = new CFFTopDict();
  24098. // CFF strings IDs 0...390 are predefined names, so refering
  24099. // to entries in our own String INDEX starts at SID 391.
  24100. topDict.setByName('version', 391);
  24101. topDict.setByName('Notice', 392);
  24102. topDict.setByName('FullName', 393);
  24103. topDict.setByName('FamilyName', 394);
  24104. topDict.setByName('Weight', 395);
  24105. topDict.setByName('Encoding', null); // placeholder
  24106. topDict.setByName('FontMatrix', properties.fontMatrix);
  24107. topDict.setByName('FontBBox', properties.bbox);
  24108. topDict.setByName('charset', null); // placeholder
  24109. topDict.setByName('CharStrings', null); // placeholder
  24110. topDict.setByName('Private', null); // placeholder
  24111. cff.topDict = topDict;
  24112. var strings = new CFFStrings();
  24113. strings.add('Version 0.11'); // Version
  24114. strings.add('See original notice'); // Notice
  24115. strings.add(name); // FullName
  24116. strings.add(name); // FamilyName
  24117. strings.add('Medium'); // Weight
  24118. cff.strings = strings;
  24119. cff.globalSubrIndex = new CFFIndex();
  24120. var count = glyphs.length;
  24121. var charsetArray = [0];
  24122. var i, ii;
  24123. for (i = 0; i < count; i++) {
  24124. var index = CFFStandardStrings.indexOf(charstrings[i].glyphName);
  24125. // TODO: Insert the string and correctly map it. Previously it was
  24126. // thought mapping names that aren't in the standard strings to .notdef
  24127. // was fine, however in issue818 when mapping them all to .notdef the
  24128. // adieresis glyph no longer worked.
  24129. if (index == -1) {
  24130. index = 0;
  24131. }
  24132. charsetArray.push((index >> 8) & 0xff, index & 0xff);
  24133. }
  24134. cff.charset = new CFFCharset(false, 0, [], charsetArray);
  24135. var charStringsIndex = new CFFIndex();
  24136. charStringsIndex.add([0x8B, 0x0E]); // .notdef
  24137. for (i = 0; i < count; i++) {
  24138. charStringsIndex.add(glyphs[i]);
  24139. }
  24140. cff.charStrings = charStringsIndex;
  24141. var privateDict = new CFFPrivateDict();
  24142. privateDict.setByName('Subrs', null); // placeholder
  24143. var fields = [
  24144. 'BlueValues',
  24145. 'OtherBlues',
  24146. 'FamilyBlues',
  24147. 'FamilyOtherBlues',
  24148. 'StemSnapH',
  24149. 'StemSnapV',
  24150. 'BlueShift',
  24151. 'BlueFuzz',
  24152. 'BlueScale',
  24153. 'LanguageGroup',
  24154. 'ExpansionFactor',
  24155. 'ForceBold',
  24156. 'StdHW',
  24157. 'StdVW'
  24158. ];
  24159. for (i = 0, ii = fields.length; i < ii; i++) {
  24160. var field = fields[i];
  24161. if (!properties.privateData.hasOwnProperty(field)) {
  24162. continue;
  24163. }
  24164. var value = properties.privateData[field];
  24165. if (isArray(value)) {
  24166. // All of the private dictionary array data in CFF must be stored as
  24167. // "delta-encoded" numbers.
  24168. for (var j = value.length - 1; j > 0; j--) {
  24169. value[j] -= value[j - 1]; // ... difference from previous value
  24170. }
  24171. }
  24172. privateDict.setByName(field, value);
  24173. }
  24174. cff.topDict.privateDict = privateDict;
  24175. var subrIndex = new CFFIndex();
  24176. for (i = 0, ii = subrs.length; i < ii; i++) {
  24177. subrIndex.add(subrs[i]);
  24178. }
  24179. privateDict.subrsIndex = subrIndex;
  24180. var compiler = new CFFCompiler(cff);
  24181. return compiler.compile();
  24182. }
  24183. };
  24184. var CFFFont = (function CFFFontClosure() {
  24185. function CFFFont(file, properties) {
  24186. this.properties = properties;
  24187. var parser = new CFFParser(file, properties);
  24188. this.cff = parser.parse();
  24189. var compiler = new CFFCompiler(this.cff);
  24190. this.seacs = this.cff.seacs;
  24191. try {
  24192. this.data = compiler.compile();
  24193. } catch (e) {
  24194. warn('Failed to compile font ' + properties.loadedName);
  24195. // There may have just been an issue with the compiler, set the data
  24196. // anyway and hope the font loaded.
  24197. this.data = file;
  24198. }
  24199. }
  24200. CFFFont.prototype = {
  24201. get numGlyphs() {
  24202. return this.cff.charStrings.count;
  24203. },
  24204. getCharset: function CFFFont_getCharset() {
  24205. return this.cff.charset.charset;
  24206. },
  24207. getGlyphMapping: function CFFFont_getGlyphMapping() {
  24208. var cff = this.cff;
  24209. var properties = this.properties;
  24210. var charsets = cff.charset.charset;
  24211. var charCodeToGlyphId;
  24212. var glyphId;
  24213. if (properties.composite) {
  24214. charCodeToGlyphId = Object.create(null);
  24215. if (cff.isCIDFont) {
  24216. // If the font is actually a CID font then we should use the charset
  24217. // to map CIDs to GIDs.
  24218. for (glyphId = 0; glyphId < charsets.length; glyphId++) {
  24219. var cidString = String.fromCharCode(charsets[glyphId]);
  24220. var charCode = properties.cMap.map.indexOf(cidString);
  24221. charCodeToGlyphId[charCode] = glyphId;
  24222. }
  24223. } else {
  24224. // If it is NOT actually a CID font then CIDs should be mapped
  24225. // directly to GIDs.
  24226. for (glyphId = 0; glyphId < cff.charStrings.count; glyphId++) {
  24227. charCodeToGlyphId[glyphId] = glyphId;
  24228. }
  24229. }
  24230. return charCodeToGlyphId;
  24231. }
  24232. var encoding = cff.encoding ? cff.encoding.encoding : null;
  24233. charCodeToGlyphId = type1FontGlyphMapping(properties, encoding, charsets);
  24234. return charCodeToGlyphId;
  24235. }
  24236. };
  24237. return CFFFont;
  24238. })();
  24239. var CFFParser = (function CFFParserClosure() {
  24240. var CharstringValidationData = [
  24241. null,
  24242. { id: 'hstem', min: 2, resetStack: true, stem: true },
  24243. null,
  24244. { id: 'vstem', min: 2, resetStack: true, stem: true },
  24245. { id: 'vmoveto', min: 1, resetStack: true },
  24246. { id: 'rlineto', min: 2, resetStack: true },
  24247. { id: 'hlineto', min: 1, resetStack: true },
  24248. { id: 'vlineto', min: 1, resetStack: true },
  24249. { id: 'rrcurveto', min: 6, resetStack: true },
  24250. null,
  24251. { id: 'callsubr', min: 1, undefStack: true },
  24252. { id: 'return', min: 0, undefStack: true },
  24253. null, // 12
  24254. null,
  24255. null, // endchar
  24256. null,
  24257. null,
  24258. null,
  24259. { id: 'hstemhm', min: 2, resetStack: true, stem: true },
  24260. null, // hintmask
  24261. null, // cntrmask
  24262. { id: 'rmoveto', min: 2, resetStack: true },
  24263. { id: 'hmoveto', min: 1, resetStack: true },
  24264. { id: 'vstemhm', min: 2, resetStack: true, stem: true },
  24265. { id: 'rcurveline', min: 8, resetStack: true },
  24266. { id: 'rlinecurve', min: 8, resetStack: true },
  24267. { id: 'vvcurveto', min: 4, resetStack: true },
  24268. { id: 'hhcurveto', min: 4, resetStack: true },
  24269. null, // shortint
  24270. { id: 'callgsubr', min: 1, undefStack: true },
  24271. { id: 'vhcurveto', min: 4, resetStack: true },
  24272. { id: 'hvcurveto', min: 4, resetStack: true }
  24273. ];
  24274. var CharstringValidationData12 = [
  24275. null,
  24276. null,
  24277. null,
  24278. { id: 'and', min: 2, stackDelta: -1 },
  24279. { id: 'or', min: 2, stackDelta: -1 },
  24280. { id: 'not', min: 1, stackDelta: 0 },
  24281. null,
  24282. null,
  24283. null,
  24284. { id: 'abs', min: 1, stackDelta: 0 },
  24285. { id: 'add', min: 2, stackDelta: -1,
  24286. stackFn: function stack_div(stack, index) {
  24287. stack[index - 2] = stack[index - 2] + stack[index - 1];
  24288. }
  24289. },
  24290. { id: 'sub', min: 2, stackDelta: -1,
  24291. stackFn: function stack_div(stack, index) {
  24292. stack[index - 2] = stack[index - 2] - stack[index - 1];
  24293. }
  24294. },
  24295. { id: 'div', min: 2, stackDelta: -1,
  24296. stackFn: function stack_div(stack, index) {
  24297. stack[index - 2] = stack[index - 2] / stack[index - 1];
  24298. }
  24299. },
  24300. null,
  24301. { id: 'neg', min: 1, stackDelta: 0,
  24302. stackFn: function stack_div(stack, index) {
  24303. stack[index - 1] = -stack[index - 1];
  24304. }
  24305. },
  24306. { id: 'eq', min: 2, stackDelta: -1 },
  24307. null,
  24308. null,
  24309. { id: 'drop', min: 1, stackDelta: -1 },
  24310. null,
  24311. { id: 'put', min: 2, stackDelta: -2 },
  24312. { id: 'get', min: 1, stackDelta: 0 },
  24313. { id: 'ifelse', min: 4, stackDelta: -3 },
  24314. { id: 'random', min: 0, stackDelta: 1 },
  24315. { id: 'mul', min: 2, stackDelta: -1,
  24316. stackFn: function stack_div(stack, index) {
  24317. stack[index - 2] = stack[index - 2] * stack[index - 1];
  24318. }
  24319. },
  24320. null,
  24321. { id: 'sqrt', min: 1, stackDelta: 0 },
  24322. { id: 'dup', min: 1, stackDelta: 1 },
  24323. { id: 'exch', min: 2, stackDelta: 0 },
  24324. { id: 'index', min: 2, stackDelta: 0 },
  24325. { id: 'roll', min: 3, stackDelta: -2 },
  24326. null,
  24327. null,
  24328. null,
  24329. { id: 'hflex', min: 7, resetStack: true },
  24330. { id: 'flex', min: 13, resetStack: true },
  24331. { id: 'hflex1', min: 9, resetStack: true },
  24332. { id: 'flex1', min: 11, resetStack: true }
  24333. ];
  24334. function CFFParser(file, properties) {
  24335. this.bytes = file.getBytes();
  24336. this.properties = properties;
  24337. }
  24338. CFFParser.prototype = {
  24339. parse: function CFFParser_parse() {
  24340. var properties = this.properties;
  24341. var cff = new CFF();
  24342. this.cff = cff;
  24343. // The first five sections must be in order, all the others are reached
  24344. // via offsets contained in one of the below.
  24345. var header = this.parseHeader();
  24346. var nameIndex = this.parseIndex(header.endPos);
  24347. var topDictIndex = this.parseIndex(nameIndex.endPos);
  24348. var stringIndex = this.parseIndex(topDictIndex.endPos);
  24349. var globalSubrIndex = this.parseIndex(stringIndex.endPos);
  24350. var topDictParsed = this.parseDict(topDictIndex.obj.get(0));
  24351. var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
  24352. cff.header = header.obj;
  24353. cff.names = this.parseNameIndex(nameIndex.obj);
  24354. cff.strings = this.parseStringIndex(stringIndex.obj);
  24355. cff.topDict = topDict;
  24356. cff.globalSubrIndex = globalSubrIndex.obj;
  24357. this.parsePrivateDict(cff.topDict);
  24358. cff.isCIDFont = topDict.hasName('ROS');
  24359. var charStringOffset = topDict.getByName('CharStrings');
  24360. var charStringsAndSeacs = this.parseCharStrings(charStringOffset);
  24361. cff.charStrings = charStringsAndSeacs.charStrings;
  24362. cff.seacs = charStringsAndSeacs.seacs;
  24363. var fontMatrix = topDict.getByName('FontMatrix');
  24364. if (fontMatrix) {
  24365. properties.fontMatrix = fontMatrix;
  24366. }
  24367. var fontBBox = topDict.getByName('FontBBox');
  24368. if (fontBBox) {
  24369. // adjusting ascent/descent
  24370. properties.ascent = fontBBox[3];
  24371. properties.descent = fontBBox[1];
  24372. properties.ascentScaled = true;
  24373. }
  24374. var charset, encoding;
  24375. if (cff.isCIDFont) {
  24376. var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
  24377. for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
  24378. var dictRaw = fdArrayIndex.get(i);
  24379. var fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw),
  24380. cff.strings);
  24381. this.parsePrivateDict(fontDict);
  24382. cff.fdArray.push(fontDict);
  24383. }
  24384. // cid fonts don't have an encoding
  24385. encoding = null;
  24386. charset = this.parseCharsets(topDict.getByName('charset'),
  24387. cff.charStrings.count, cff.strings, true);
  24388. cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
  24389. cff.charStrings.count);
  24390. } else {
  24391. charset = this.parseCharsets(topDict.getByName('charset'),
  24392. cff.charStrings.count, cff.strings, false);
  24393. encoding = this.parseEncoding(topDict.getByName('Encoding'),
  24394. properties,
  24395. cff.strings, charset.charset);
  24396. }
  24397. cff.charset = charset;
  24398. cff.encoding = encoding;
  24399. return cff;
  24400. },
  24401. parseHeader: function CFFParser_parseHeader() {
  24402. var bytes = this.bytes;
  24403. var bytesLength = bytes.length;
  24404. var offset = 0;
  24405. // Prevent an infinite loop, by checking that the offset is within the
  24406. // bounds of the bytes array. Necessary in empty, or invalid, font files.
  24407. while (offset < bytesLength && bytes[offset] !== 1) {
  24408. ++offset;
  24409. }
  24410. if (offset >= bytesLength) {
  24411. error('Invalid CFF header');
  24412. } else if (offset !== 0) {
  24413. info('cff data is shifted');
  24414. bytes = bytes.subarray(offset);
  24415. this.bytes = bytes;
  24416. }
  24417. var major = bytes[0];
  24418. var minor = bytes[1];
  24419. var hdrSize = bytes[2];
  24420. var offSize = bytes[3];
  24421. var header = new CFFHeader(major, minor, hdrSize, offSize);
  24422. return { obj: header, endPos: hdrSize };
  24423. },
  24424. parseDict: function CFFParser_parseDict(dict) {
  24425. var pos = 0;
  24426. function parseOperand() {
  24427. var value = dict[pos++];
  24428. if (value === 30) {
  24429. return parseFloatOperand(pos);
  24430. } else if (value === 28) {
  24431. value = dict[pos++];
  24432. value = ((value << 24) | (dict[pos++] << 16)) >> 16;
  24433. return value;
  24434. } else if (value === 29) {
  24435. value = dict[pos++];
  24436. value = (value << 8) | dict[pos++];
  24437. value = (value << 8) | dict[pos++];
  24438. value = (value << 8) | dict[pos++];
  24439. return value;
  24440. } else if (value >= 32 && value <= 246) {
  24441. return value - 139;
  24442. } else if (value >= 247 && value <= 250) {
  24443. return ((value - 247) * 256) + dict[pos++] + 108;
  24444. } else if (value >= 251 && value <= 254) {
  24445. return -((value - 251) * 256) - dict[pos++] - 108;
  24446. } else {
  24447. error('255 is not a valid DICT command');
  24448. }
  24449. return -1;
  24450. }
  24451. function parseFloatOperand() {
  24452. var str = '';
  24453. var eof = 15;
  24454. var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
  24455. '9', '.', 'E', 'E-', null, '-'];
  24456. var length = dict.length;
  24457. while (pos < length) {
  24458. var b = dict[pos++];
  24459. var b1 = b >> 4;
  24460. var b2 = b & 15;
  24461. if (b1 == eof) {
  24462. break;
  24463. }
  24464. str += lookup[b1];
  24465. if (b2 == eof) {
  24466. break;
  24467. }
  24468. str += lookup[b2];
  24469. }
  24470. return parseFloat(str);
  24471. }
  24472. var operands = [];
  24473. var entries = [];
  24474. pos = 0;
  24475. var end = dict.length;
  24476. while (pos < end) {
  24477. var b = dict[pos];
  24478. if (b <= 21) {
  24479. if (b === 12) {
  24480. b = (b << 8) | dict[++pos];
  24481. }
  24482. entries.push([b, operands]);
  24483. operands = [];
  24484. ++pos;
  24485. } else {
  24486. operands.push(parseOperand());
  24487. }
  24488. }
  24489. return entries;
  24490. },
  24491. parseIndex: function CFFParser_parseIndex(pos) {
  24492. var cffIndex = new CFFIndex();
  24493. var bytes = this.bytes;
  24494. var count = (bytes[pos++] << 8) | bytes[pos++];
  24495. var offsets = [];
  24496. var end = pos;
  24497. var i, ii;
  24498. if (count !== 0) {
  24499. var offsetSize = bytes[pos++];
  24500. // add 1 for offset to determine size of last object
  24501. var startPos = pos + ((count + 1) * offsetSize) - 1;
  24502. for (i = 0, ii = count + 1; i < ii; ++i) {
  24503. var offset = 0;
  24504. for (var j = 0; j < offsetSize; ++j) {
  24505. offset <<= 8;
  24506. offset += bytes[pos++];
  24507. }
  24508. offsets.push(startPos + offset);
  24509. }
  24510. end = offsets[count];
  24511. }
  24512. for (i = 0, ii = offsets.length - 1; i < ii; ++i) {
  24513. var offsetStart = offsets[i];
  24514. var offsetEnd = offsets[i + 1];
  24515. cffIndex.add(bytes.subarray(offsetStart, offsetEnd));
  24516. }
  24517. return {obj: cffIndex, endPos: end};
  24518. },
  24519. parseNameIndex: function CFFParser_parseNameIndex(index) {
  24520. var names = [];
  24521. for (var i = 0, ii = index.count; i < ii; ++i) {
  24522. var name = index.get(i);
  24523. // OTS doesn't allow names to be over 127 characters.
  24524. var length = Math.min(name.length, 127);
  24525. var data = [];
  24526. // OTS also only permits certain characters in the name.
  24527. for (var j = 0; j < length; ++j) {
  24528. var c = name[j];
  24529. if (j === 0 && c === 0) {
  24530. data[j] = c;
  24531. continue;
  24532. }
  24533. if ((c < 33 || c > 126) || c === 91 /* [ */ || c === 93 /* ] */ ||
  24534. c === 40 /* ( */ || c === 41 /* ) */ || c === 123 /* { */ ||
  24535. c === 125 /* } */ || c === 60 /* < */ || c === 62 /* > */ ||
  24536. c === 47 /* / */ || c === 37 /* % */ || c === 35 /* # */) {
  24537. data[j] = 95;
  24538. continue;
  24539. }
  24540. data[j] = c;
  24541. }
  24542. names.push(bytesToString(data));
  24543. }
  24544. return names;
  24545. },
  24546. parseStringIndex: function CFFParser_parseStringIndex(index) {
  24547. var strings = new CFFStrings();
  24548. for (var i = 0, ii = index.count; i < ii; ++i) {
  24549. var data = index.get(i);
  24550. strings.add(bytesToString(data));
  24551. }
  24552. return strings;
  24553. },
  24554. createDict: function CFFParser_createDict(Type, dict, strings) {
  24555. var cffDict = new Type(strings);
  24556. for (var i = 0, ii = dict.length; i < ii; ++i) {
  24557. var pair = dict[i];
  24558. var key = pair[0];
  24559. var value = pair[1];
  24560. cffDict.setByKey(key, value);
  24561. }
  24562. return cffDict;
  24563. },
  24564. parseCharStrings: function CFFParser_parseCharStrings(charStringOffset) {
  24565. var charStrings = this.parseIndex(charStringOffset).obj;
  24566. var seacs = [];
  24567. var count = charStrings.count;
  24568. for (var i = 0; i < count; i++) {
  24569. var charstring = charStrings.get(i);
  24570. var stackSize = 0;
  24571. var stack = [];
  24572. var undefStack = true;
  24573. var hints = 0;
  24574. var valid = true;
  24575. var data = charstring;
  24576. var length = data.length;
  24577. for (var j = 0; j < length;) {
  24578. var value = data[j++];
  24579. var validationCommand = null;
  24580. if (value == 12) {
  24581. var q = data[j++];
  24582. if (q === 0) {
  24583. // The CFF specification state that the 'dotsection' command
  24584. // (12, 0) is deprecated and treated as a no-op, but all Type2
  24585. // charstrings processors should support them. Unfortunately
  24586. // the font sanitizer don't. As a workaround the sequence (12, 0)
  24587. // is replaced by a useless (0, hmoveto).
  24588. data[j - 2] = 139;
  24589. data[j - 1] = 22;
  24590. stackSize = 0;
  24591. } else {
  24592. validationCommand = CharstringValidationData12[q];
  24593. }
  24594. } else if (value === 28) { // number (16 bit)
  24595. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16)) >> 16;
  24596. j += 2;
  24597. stackSize++;
  24598. } else if (value == 14) {
  24599. if (stackSize >= 4) {
  24600. stackSize -= 4;
  24601. if (SEAC_ANALYSIS_ENABLED) {
  24602. seacs[i] = stack.slice(stackSize, stackSize + 4);
  24603. valid = false;
  24604. }
  24605. }
  24606. } else if (value >= 32 && value <= 246) { // number
  24607. stack[stackSize] = value - 139;
  24608. stackSize++;
  24609. } else if (value >= 247 && value <= 254) { // number (+1 bytes)
  24610. stack[stackSize] = (value < 251 ?
  24611. ((value - 247) << 8) + data[j] + 108 :
  24612. -((value - 251) << 8) - data[j] - 108);
  24613. j++;
  24614. stackSize++;
  24615. } else if (value == 255) { // number (32 bit)
  24616. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16) |
  24617. (data[j + 2] << 8) | data[j + 3]) / 65536;
  24618. j += 4;
  24619. stackSize++;
  24620. } else if (value == 19 || value == 20) {
  24621. hints += stackSize >> 1;
  24622. j += (hints + 7) >> 3; // skipping right amount of hints flag data
  24623. stackSize = 0;
  24624. } else {
  24625. validationCommand = CharstringValidationData[value];
  24626. }
  24627. if (validationCommand) {
  24628. if (validationCommand.stem) {
  24629. hints += stackSize >> 1;
  24630. }
  24631. if ('min' in validationCommand) {
  24632. if (!undefStack && stackSize < validationCommand.min) {
  24633. warn('Not enough parameters for ' + validationCommand.id +
  24634. '; actual: ' + stackSize +
  24635. ', expected: ' + validationCommand.min);
  24636. valid = false;
  24637. break;
  24638. }
  24639. }
  24640. if ('stackDelta' in validationCommand) {
  24641. if ('stackFn' in validationCommand) {
  24642. validationCommand.stackFn(stack, stackSize);
  24643. }
  24644. stackSize += validationCommand.stackDelta;
  24645. } else if (validationCommand.resetStack) {
  24646. stackSize = 0;
  24647. undefStack = false;
  24648. } else if (validationCommand.undefStack) {
  24649. stackSize = 0;
  24650. undefStack = true;
  24651. }
  24652. }
  24653. }
  24654. if (!valid) {
  24655. // resetting invalid charstring to single 'endchar'
  24656. charStrings.set(i, new Uint8Array([14]));
  24657. }
  24658. }
  24659. return { charStrings: charStrings, seacs: seacs };
  24660. },
  24661. emptyPrivateDictionary:
  24662. function CFFParser_emptyPrivateDictionary(parentDict) {
  24663. var privateDict = this.createDict(CFFPrivateDict, [],
  24664. parentDict.strings);
  24665. parentDict.setByKey(18, [0, 0]);
  24666. parentDict.privateDict = privateDict;
  24667. },
  24668. parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) {
  24669. // no private dict, do nothing
  24670. if (!parentDict.hasName('Private')) {
  24671. this.emptyPrivateDictionary(parentDict);
  24672. return;
  24673. }
  24674. var privateOffset = parentDict.getByName('Private');
  24675. // make sure the params are formatted correctly
  24676. if (!isArray(privateOffset) || privateOffset.length !== 2) {
  24677. parentDict.removeByName('Private');
  24678. return;
  24679. }
  24680. var size = privateOffset[0];
  24681. var offset = privateOffset[1];
  24682. // remove empty dicts or ones that refer to invalid location
  24683. if (size === 0 || offset >= this.bytes.length) {
  24684. this.emptyPrivateDictionary(parentDict);
  24685. return;
  24686. }
  24687. var privateDictEnd = offset + size;
  24688. var dictData = this.bytes.subarray(offset, privateDictEnd);
  24689. var dict = this.parseDict(dictData);
  24690. var privateDict = this.createDict(CFFPrivateDict, dict,
  24691. parentDict.strings);
  24692. parentDict.privateDict = privateDict;
  24693. // Parse the Subrs index also since it's relative to the private dict.
  24694. if (!privateDict.getByName('Subrs')) {
  24695. return;
  24696. }
  24697. var subrsOffset = privateDict.getByName('Subrs');
  24698. var relativeOffset = offset + subrsOffset;
  24699. // Validate the offset.
  24700. if (subrsOffset === 0 || relativeOffset >= this.bytes.length) {
  24701. this.emptyPrivateDictionary(parentDict);
  24702. return;
  24703. }
  24704. var subrsIndex = this.parseIndex(relativeOffset);
  24705. privateDict.subrsIndex = subrsIndex.obj;
  24706. },
  24707. parseCharsets: function CFFParser_parseCharsets(pos, length, strings, cid) {
  24708. if (pos === 0) {
  24709. return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE,
  24710. ISOAdobeCharset);
  24711. } else if (pos == 1) {
  24712. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT,
  24713. ExpertCharset);
  24714. } else if (pos == 2) {
  24715. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET,
  24716. ExpertSubsetCharset);
  24717. }
  24718. var bytes = this.bytes;
  24719. var start = pos;
  24720. var format = bytes[pos++];
  24721. var charset = ['.notdef'];
  24722. var id, count, i;
  24723. // subtract 1 for the .notdef glyph
  24724. length -= 1;
  24725. switch (format) {
  24726. case 0:
  24727. for (i = 0; i < length; i++) {
  24728. id = (bytes[pos++] << 8) | bytes[pos++];
  24729. charset.push(cid ? id : strings.get(id));
  24730. }
  24731. break;
  24732. case 1:
  24733. while (charset.length <= length) {
  24734. id = (bytes[pos++] << 8) | bytes[pos++];
  24735. count = bytes[pos++];
  24736. for (i = 0; i <= count; i++) {
  24737. charset.push(cid ? id++ : strings.get(id++));
  24738. }
  24739. }
  24740. break;
  24741. case 2:
  24742. while (charset.length <= length) {
  24743. id = (bytes[pos++] << 8) | bytes[pos++];
  24744. count = (bytes[pos++] << 8) | bytes[pos++];
  24745. for (i = 0; i <= count; i++) {
  24746. charset.push(cid ? id++ : strings.get(id++));
  24747. }
  24748. }
  24749. break;
  24750. default:
  24751. error('Unknown charset format');
  24752. }
  24753. // Raw won't be needed if we actually compile the charset.
  24754. var end = pos;
  24755. var raw = bytes.subarray(start, end);
  24756. return new CFFCharset(false, format, charset, raw);
  24757. },
  24758. parseEncoding: function CFFParser_parseEncoding(pos,
  24759. properties,
  24760. strings,
  24761. charset) {
  24762. var encoding = {};
  24763. var bytes = this.bytes;
  24764. var predefined = false;
  24765. var hasSupplement = false;
  24766. var format, i, ii;
  24767. var raw = null;
  24768. function readSupplement() {
  24769. var supplementsCount = bytes[pos++];
  24770. for (i = 0; i < supplementsCount; i++) {
  24771. var code = bytes[pos++];
  24772. var sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff);
  24773. encoding[code] = charset.indexOf(strings.get(sid));
  24774. }
  24775. }
  24776. if (pos === 0 || pos == 1) {
  24777. predefined = true;
  24778. format = pos;
  24779. var baseEncoding = pos ? Encodings.ExpertEncoding :
  24780. Encodings.StandardEncoding;
  24781. for (i = 0, ii = charset.length; i < ii; i++) {
  24782. var index = baseEncoding.indexOf(charset[i]);
  24783. if (index != -1) {
  24784. encoding[index] = i;
  24785. }
  24786. }
  24787. } else {
  24788. var dataStart = pos;
  24789. format = bytes[pos++];
  24790. switch (format & 0x7f) {
  24791. case 0:
  24792. var glyphsCount = bytes[pos++];
  24793. for (i = 1; i <= glyphsCount; i++) {
  24794. encoding[bytes[pos++]] = i;
  24795. }
  24796. break;
  24797. case 1:
  24798. var rangesCount = bytes[pos++];
  24799. var gid = 1;
  24800. for (i = 0; i < rangesCount; i++) {
  24801. var start = bytes[pos++];
  24802. var left = bytes[pos++];
  24803. for (var j = start; j <= start + left; j++) {
  24804. encoding[j] = gid++;
  24805. }
  24806. }
  24807. break;
  24808. default:
  24809. error('Unknow encoding format: ' + format + ' in CFF');
  24810. break;
  24811. }
  24812. var dataEnd = pos;
  24813. if (format & 0x80) {
  24814. // The font sanitizer does not support CFF encoding with a
  24815. // supplement, since the encoding is not really used to map
  24816. // between gid to glyph, let's overwrite what is declared in
  24817. // the top dictionary to let the sanitizer think the font use
  24818. // StandardEncoding, that's a lie but that's ok.
  24819. bytes[dataStart] &= 0x7f;
  24820. readSupplement();
  24821. hasSupplement = true;
  24822. }
  24823. raw = bytes.subarray(dataStart, dataEnd);
  24824. }
  24825. format = format & 0x7f;
  24826. return new CFFEncoding(predefined, format, encoding, raw);
  24827. },
  24828. parseFDSelect: function CFFParser_parseFDSelect(pos, length) {
  24829. var start = pos;
  24830. var bytes = this.bytes;
  24831. var format = bytes[pos++];
  24832. var fdSelect = [];
  24833. var i;
  24834. switch (format) {
  24835. case 0:
  24836. for (i = 0; i < length; ++i) {
  24837. var id = bytes[pos++];
  24838. fdSelect.push(id);
  24839. }
  24840. break;
  24841. case 3:
  24842. var rangesCount = (bytes[pos++] << 8) | bytes[pos++];
  24843. for (i = 0; i < rangesCount; ++i) {
  24844. var first = (bytes[pos++] << 8) | bytes[pos++];
  24845. var fdIndex = bytes[pos++];
  24846. var next = (bytes[pos] << 8) | bytes[pos + 1];
  24847. for (var j = first; j < next; ++j) {
  24848. fdSelect.push(fdIndex);
  24849. }
  24850. }
  24851. // Advance past the sentinel(next).
  24852. pos += 2;
  24853. break;
  24854. default:
  24855. error('Unknown fdselect format ' + format);
  24856. break;
  24857. }
  24858. var end = pos;
  24859. return new CFFFDSelect(fdSelect, bytes.subarray(start, end));
  24860. }
  24861. };
  24862. return CFFParser;
  24863. })();
  24864. // Compact Font Format
  24865. var CFF = (function CFFClosure() {
  24866. function CFF() {
  24867. this.header = null;
  24868. this.names = [];
  24869. this.topDict = null;
  24870. this.strings = new CFFStrings();
  24871. this.globalSubrIndex = null;
  24872. // The following could really be per font, but since we only have one font
  24873. // store them here.
  24874. this.encoding = null;
  24875. this.charset = null;
  24876. this.charStrings = null;
  24877. this.fdArray = [];
  24878. this.fdSelect = null;
  24879. this.isCIDFont = false;
  24880. }
  24881. return CFF;
  24882. })();
  24883. var CFFHeader = (function CFFHeaderClosure() {
  24884. function CFFHeader(major, minor, hdrSize, offSize) {
  24885. this.major = major;
  24886. this.minor = minor;
  24887. this.hdrSize = hdrSize;
  24888. this.offSize = offSize;
  24889. }
  24890. return CFFHeader;
  24891. })();
  24892. var CFFStrings = (function CFFStringsClosure() {
  24893. function CFFStrings() {
  24894. this.strings = [];
  24895. }
  24896. CFFStrings.prototype = {
  24897. get: function CFFStrings_get(index) {
  24898. if (index >= 0 && index <= 390) {
  24899. return CFFStandardStrings[index];
  24900. }
  24901. if (index - 391 <= this.strings.length) {
  24902. return this.strings[index - 391];
  24903. }
  24904. return CFFStandardStrings[0];
  24905. },
  24906. add: function CFFStrings_add(value) {
  24907. this.strings.push(value);
  24908. },
  24909. get count() {
  24910. return this.strings.length;
  24911. }
  24912. };
  24913. return CFFStrings;
  24914. })();
  24915. var CFFIndex = (function CFFIndexClosure() {
  24916. function CFFIndex() {
  24917. this.objects = [];
  24918. this.length = 0;
  24919. }
  24920. CFFIndex.prototype = {
  24921. add: function CFFIndex_add(data) {
  24922. this.length += data.length;
  24923. this.objects.push(data);
  24924. },
  24925. set: function CFFIndex_set(index, data) {
  24926. this.length += data.length - this.objects[index].length;
  24927. this.objects[index] = data;
  24928. },
  24929. get: function CFFIndex_get(index) {
  24930. return this.objects[index];
  24931. },
  24932. get count() {
  24933. return this.objects.length;
  24934. }
  24935. };
  24936. return CFFIndex;
  24937. })();
  24938. var CFFDict = (function CFFDictClosure() {
  24939. function CFFDict(tables, strings) {
  24940. this.keyToNameMap = tables.keyToNameMap;
  24941. this.nameToKeyMap = tables.nameToKeyMap;
  24942. this.defaults = tables.defaults;
  24943. this.types = tables.types;
  24944. this.opcodes = tables.opcodes;
  24945. this.order = tables.order;
  24946. this.strings = strings;
  24947. this.values = {};
  24948. }
  24949. CFFDict.prototype = {
  24950. // value should always be an array
  24951. setByKey: function CFFDict_setByKey(key, value) {
  24952. if (!(key in this.keyToNameMap)) {
  24953. return false;
  24954. }
  24955. // ignore empty values
  24956. if (value.length === 0) {
  24957. return true;
  24958. }
  24959. var type = this.types[key];
  24960. // remove the array wrapping these types of values
  24961. if (type === 'num' || type === 'sid' || type === 'offset') {
  24962. value = value[0];
  24963. }
  24964. this.values[key] = value;
  24965. return true;
  24966. },
  24967. setByName: function CFFDict_setByName(name, value) {
  24968. if (!(name in this.nameToKeyMap)) {
  24969. error('Invalid dictionary name "' + name + '"');
  24970. }
  24971. this.values[this.nameToKeyMap[name]] = value;
  24972. },
  24973. hasName: function CFFDict_hasName(name) {
  24974. return this.nameToKeyMap[name] in this.values;
  24975. },
  24976. getByName: function CFFDict_getByName(name) {
  24977. if (!(name in this.nameToKeyMap)) {
  24978. error('Invalid dictionary name "' + name + '"');
  24979. }
  24980. var key = this.nameToKeyMap[name];
  24981. if (!(key in this.values)) {
  24982. return this.defaults[key];
  24983. }
  24984. return this.values[key];
  24985. },
  24986. removeByName: function CFFDict_removeByName(name) {
  24987. delete this.values[this.nameToKeyMap[name]];
  24988. }
  24989. };
  24990. CFFDict.createTables = function CFFDict_createTables(layout) {
  24991. var tables = {
  24992. keyToNameMap: {},
  24993. nameToKeyMap: {},
  24994. defaults: {},
  24995. types: {},
  24996. opcodes: {},
  24997. order: []
  24998. };
  24999. for (var i = 0, ii = layout.length; i < ii; ++i) {
  25000. var entry = layout[i];
  25001. var key = isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
  25002. tables.keyToNameMap[key] = entry[1];
  25003. tables.nameToKeyMap[entry[1]] = key;
  25004. tables.types[key] = entry[2];
  25005. tables.defaults[key] = entry[3];
  25006. tables.opcodes[key] = isArray(entry[0]) ? entry[0] : [entry[0]];
  25007. tables.order.push(key);
  25008. }
  25009. return tables;
  25010. };
  25011. return CFFDict;
  25012. })();
  25013. var CFFTopDict = (function CFFTopDictClosure() {
  25014. var layout = [
  25015. [[12, 30], 'ROS', ['sid', 'sid', 'num'], null],
  25016. [[12, 20], 'SyntheticBase', 'num', null],
  25017. [0, 'version', 'sid', null],
  25018. [1, 'Notice', 'sid', null],
  25019. [[12, 0], 'Copyright', 'sid', null],
  25020. [2, 'FullName', 'sid', null],
  25021. [3, 'FamilyName', 'sid', null],
  25022. [4, 'Weight', 'sid', null],
  25023. [[12, 1], 'isFixedPitch', 'num', 0],
  25024. [[12, 2], 'ItalicAngle', 'num', 0],
  25025. [[12, 3], 'UnderlinePosition', 'num', -100],
  25026. [[12, 4], 'UnderlineThickness', 'num', 50],
  25027. [[12, 5], 'PaintType', 'num', 0],
  25028. [[12, 6], 'CharstringType', 'num', 2],
  25029. [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'],
  25030. [0.001, 0, 0, 0.001, 0, 0]],
  25031. [13, 'UniqueID', 'num', null],
  25032. [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]],
  25033. [[12, 8], 'StrokeWidth', 'num', 0],
  25034. [14, 'XUID', 'array', null],
  25035. [15, 'charset', 'offset', 0],
  25036. [16, 'Encoding', 'offset', 0],
  25037. [17, 'CharStrings', 'offset', 0],
  25038. [18, 'Private', ['offset', 'offset'], null],
  25039. [[12, 21], 'PostScript', 'sid', null],
  25040. [[12, 22], 'BaseFontName', 'sid', null],
  25041. [[12, 23], 'BaseFontBlend', 'delta', null],
  25042. [[12, 31], 'CIDFontVersion', 'num', 0],
  25043. [[12, 32], 'CIDFontRevision', 'num', 0],
  25044. [[12, 33], 'CIDFontType', 'num', 0],
  25045. [[12, 34], 'CIDCount', 'num', 8720],
  25046. [[12, 35], 'UIDBase', 'num', null],
  25047. // XXX: CID Fonts on DirectWrite 6.1 only seem to work if FDSelect comes
  25048. // before FDArray.
  25049. [[12, 37], 'FDSelect', 'offset', null],
  25050. [[12, 36], 'FDArray', 'offset', null],
  25051. [[12, 38], 'FontName', 'sid', null]
  25052. ];
  25053. var tables = null;
  25054. function CFFTopDict(strings) {
  25055. if (tables === null) {
  25056. tables = CFFDict.createTables(layout);
  25057. }
  25058. CFFDict.call(this, tables, strings);
  25059. this.privateDict = null;
  25060. }
  25061. CFFTopDict.prototype = Object.create(CFFDict.prototype);
  25062. return CFFTopDict;
  25063. })();
  25064. var CFFPrivateDict = (function CFFPrivateDictClosure() {
  25065. var layout = [
  25066. [6, 'BlueValues', 'delta', null],
  25067. [7, 'OtherBlues', 'delta', null],
  25068. [8, 'FamilyBlues', 'delta', null],
  25069. [9, 'FamilyOtherBlues', 'delta', null],
  25070. [[12, 9], 'BlueScale', 'num', 0.039625],
  25071. [[12, 10], 'BlueShift', 'num', 7],
  25072. [[12, 11], 'BlueFuzz', 'num', 1],
  25073. [10, 'StdHW', 'num', null],
  25074. [11, 'StdVW', 'num', null],
  25075. [[12, 12], 'StemSnapH', 'delta', null],
  25076. [[12, 13], 'StemSnapV', 'delta', null],
  25077. [[12, 14], 'ForceBold', 'num', 0],
  25078. [[12, 17], 'LanguageGroup', 'num', 0],
  25079. [[12, 18], 'ExpansionFactor', 'num', 0.06],
  25080. [[12, 19], 'initialRandomSeed', 'num', 0],
  25081. [20, 'defaultWidthX', 'num', 0],
  25082. [21, 'nominalWidthX', 'num', 0],
  25083. [19, 'Subrs', 'offset', null]
  25084. ];
  25085. var tables = null;
  25086. function CFFPrivateDict(strings) {
  25087. if (tables === null) {
  25088. tables = CFFDict.createTables(layout);
  25089. }
  25090. CFFDict.call(this, tables, strings);
  25091. this.subrsIndex = null;
  25092. }
  25093. CFFPrivateDict.prototype = Object.create(CFFDict.prototype);
  25094. return CFFPrivateDict;
  25095. })();
  25096. var CFFCharsetPredefinedTypes = {
  25097. ISO_ADOBE: 0,
  25098. EXPERT: 1,
  25099. EXPERT_SUBSET: 2
  25100. };
  25101. var CFFCharset = (function CFFCharsetClosure() {
  25102. function CFFCharset(predefined, format, charset, raw) {
  25103. this.predefined = predefined;
  25104. this.format = format;
  25105. this.charset = charset;
  25106. this.raw = raw;
  25107. }
  25108. return CFFCharset;
  25109. })();
  25110. var CFFEncoding = (function CFFEncodingClosure() {
  25111. function CFFEncoding(predefined, format, encoding, raw) {
  25112. this.predefined = predefined;
  25113. this.format = format;
  25114. this.encoding = encoding;
  25115. this.raw = raw;
  25116. }
  25117. return CFFEncoding;
  25118. })();
  25119. var CFFFDSelect = (function CFFFDSelectClosure() {
  25120. function CFFFDSelect(fdSelect, raw) {
  25121. this.fdSelect = fdSelect;
  25122. this.raw = raw;
  25123. }
  25124. return CFFFDSelect;
  25125. })();
  25126. // Helper class to keep track of where an offset is within the data and helps
  25127. // filling in that offset once it's known.
  25128. var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
  25129. function CFFOffsetTracker() {
  25130. this.offsets = {};
  25131. }
  25132. CFFOffsetTracker.prototype = {
  25133. isTracking: function CFFOffsetTracker_isTracking(key) {
  25134. return key in this.offsets;
  25135. },
  25136. track: function CFFOffsetTracker_track(key, location) {
  25137. if (key in this.offsets) {
  25138. error('Already tracking location of ' + key);
  25139. }
  25140. this.offsets[key] = location;
  25141. },
  25142. offset: function CFFOffsetTracker_offset(value) {
  25143. for (var key in this.offsets) {
  25144. this.offsets[key] += value;
  25145. }
  25146. },
  25147. setEntryLocation: function CFFOffsetTracker_setEntryLocation(key,
  25148. values,
  25149. output) {
  25150. if (!(key in this.offsets)) {
  25151. error('Not tracking location of ' + key);
  25152. }
  25153. var data = output.data;
  25154. var dataOffset = this.offsets[key];
  25155. var size = 5;
  25156. for (var i = 0, ii = values.length; i < ii; ++i) {
  25157. var offset0 = i * size + dataOffset;
  25158. var offset1 = offset0 + 1;
  25159. var offset2 = offset0 + 2;
  25160. var offset3 = offset0 + 3;
  25161. var offset4 = offset0 + 4;
  25162. // It's easy to screw up offsets so perform this sanity check.
  25163. if (data[offset0] !== 0x1d || data[offset1] !== 0 ||
  25164. data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) {
  25165. error('writing to an offset that is not empty');
  25166. }
  25167. var value = values[i];
  25168. data[offset0] = 0x1d;
  25169. data[offset1] = (value >> 24) & 0xFF;
  25170. data[offset2] = (value >> 16) & 0xFF;
  25171. data[offset3] = (value >> 8) & 0xFF;
  25172. data[offset4] = value & 0xFF;
  25173. }
  25174. }
  25175. };
  25176. return CFFOffsetTracker;
  25177. })();
  25178. // Takes a CFF and converts it to the binary representation.
  25179. var CFFCompiler = (function CFFCompilerClosure() {
  25180. function CFFCompiler(cff) {
  25181. this.cff = cff;
  25182. }
  25183. CFFCompiler.prototype = {
  25184. compile: function CFFCompiler_compile() {
  25185. var cff = this.cff;
  25186. var output = {
  25187. data: [],
  25188. length: 0,
  25189. add: function CFFCompiler_add(data) {
  25190. this.data = this.data.concat(data);
  25191. this.length = this.data.length;
  25192. }
  25193. };
  25194. // Compile the five entries that must be in order.
  25195. var header = this.compileHeader(cff.header);
  25196. output.add(header);
  25197. var nameIndex = this.compileNameIndex(cff.names);
  25198. output.add(nameIndex);
  25199. if (cff.isCIDFont) {
  25200. // The spec is unclear on how font matrices should relate to each other
  25201. // when there is one in the main top dict and the sub top dicts.
  25202. // Windows handles this differently than linux and osx so we have to
  25203. // normalize to work on all.
  25204. // Rules based off of some mailing list discussions:
  25205. // - If main font has a matrix and subfont doesn't, use the main matrix.
  25206. // - If no main font matrix and there is a subfont matrix, use the
  25207. // subfont matrix.
  25208. // - If both have matrices, concat together.
  25209. // - If neither have matrices, use default.
  25210. // To make this work on all platforms we move the top matrix into each
  25211. // sub top dict and concat if necessary.
  25212. if (cff.topDict.hasName('FontMatrix')) {
  25213. var base = cff.topDict.getByName('FontMatrix');
  25214. cff.topDict.removeByName('FontMatrix');
  25215. for (var i = 0, ii = cff.fdArray.length; i < ii; i++) {
  25216. var subDict = cff.fdArray[i];
  25217. var matrix = base.slice(0);
  25218. if (subDict.hasName('FontMatrix')) {
  25219. matrix = Util.transform(matrix, subDict.getByName('FontMatrix'));
  25220. }
  25221. subDict.setByName('FontMatrix', matrix);
  25222. }
  25223. }
  25224. }
  25225. var compiled = this.compileTopDicts([cff.topDict],
  25226. output.length,
  25227. cff.isCIDFont);
  25228. output.add(compiled.output);
  25229. var topDictTracker = compiled.trackers[0];
  25230. var stringIndex = this.compileStringIndex(cff.strings.strings);
  25231. output.add(stringIndex);
  25232. var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
  25233. output.add(globalSubrIndex);
  25234. // Now start on the other entries that have no specfic order.
  25235. if (cff.encoding && cff.topDict.hasName('Encoding')) {
  25236. if (cff.encoding.predefined) {
  25237. topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
  25238. output);
  25239. } else {
  25240. var encoding = this.compileEncoding(cff.encoding);
  25241. topDictTracker.setEntryLocation('Encoding', [output.length], output);
  25242. output.add(encoding);
  25243. }
  25244. }
  25245. if (cff.charset && cff.topDict.hasName('charset')) {
  25246. if (cff.charset.predefined) {
  25247. topDictTracker.setEntryLocation('charset', [cff.charset.format],
  25248. output);
  25249. } else {
  25250. var charset = this.compileCharset(cff.charset);
  25251. topDictTracker.setEntryLocation('charset', [output.length], output);
  25252. output.add(charset);
  25253. }
  25254. }
  25255. var charStrings = this.compileCharStrings(cff.charStrings);
  25256. topDictTracker.setEntryLocation('CharStrings', [output.length], output);
  25257. output.add(charStrings);
  25258. if (cff.isCIDFont) {
  25259. // For some reason FDSelect must be in front of FDArray on windows. OSX
  25260. // and linux don't seem to care.
  25261. topDictTracker.setEntryLocation('FDSelect', [output.length], output);
  25262. var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
  25263. output.add(fdSelect);
  25264. // It is unclear if the sub font dictionary can have CID related
  25265. // dictionary keys, but the sanitizer doesn't like them so remove them.
  25266. compiled = this.compileTopDicts(cff.fdArray, output.length, true);
  25267. topDictTracker.setEntryLocation('FDArray', [output.length], output);
  25268. output.add(compiled.output);
  25269. var fontDictTrackers = compiled.trackers;
  25270. this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
  25271. }
  25272. this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
  25273. // If the font data ends with INDEX whose object data is zero-length,
  25274. // the sanitizer will bail out. Add a dummy byte to avoid that.
  25275. output.add([0]);
  25276. return output.data;
  25277. },
  25278. encodeNumber: function CFFCompiler_encodeNumber(value) {
  25279. if (parseFloat(value) == parseInt(value, 10) && !isNaN(value)) { // isInt
  25280. return this.encodeInteger(value);
  25281. } else {
  25282. return this.encodeFloat(value);
  25283. }
  25284. },
  25285. encodeFloat: function CFFCompiler_encodeFloat(num) {
  25286. var value = num.toString();
  25287. // rounding inaccurate doubles
  25288. var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);
  25289. if (m) {
  25290. var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));
  25291. value = (Math.round(num * epsilon) / epsilon).toString();
  25292. }
  25293. var nibbles = '';
  25294. var i, ii;
  25295. for (i = 0, ii = value.length; i < ii; ++i) {
  25296. var a = value[i];
  25297. if (a === 'e') {
  25298. nibbles += value[++i] === '-' ? 'c' : 'b';
  25299. } else if (a === '.') {
  25300. nibbles += 'a';
  25301. } else if (a === '-') {
  25302. nibbles += 'e';
  25303. } else {
  25304. nibbles += a;
  25305. }
  25306. }
  25307. nibbles += (nibbles.length & 1) ? 'f' : 'ff';
  25308. var out = [30];
  25309. for (i = 0, ii = nibbles.length; i < ii; i += 2) {
  25310. out.push(parseInt(nibbles.substr(i, 2), 16));
  25311. }
  25312. return out;
  25313. },
  25314. encodeInteger: function CFFCompiler_encodeInteger(value) {
  25315. var code;
  25316. if (value >= -107 && value <= 107) {
  25317. code = [value + 139];
  25318. } else if (value >= 108 && value <= 1131) {
  25319. value = [value - 108];
  25320. code = [(value >> 8) + 247, value & 0xFF];
  25321. } else if (value >= -1131 && value <= -108) {
  25322. value = -value - 108;
  25323. code = [(value >> 8) + 251, value & 0xFF];
  25324. } else if (value >= -32768 && value <= 32767) {
  25325. code = [0x1c, (value >> 8) & 0xFF, value & 0xFF];
  25326. } else {
  25327. code = [0x1d,
  25328. (value >> 24) & 0xFF,
  25329. (value >> 16) & 0xFF,
  25330. (value >> 8) & 0xFF,
  25331. value & 0xFF];
  25332. }
  25333. return code;
  25334. },
  25335. compileHeader: function CFFCompiler_compileHeader(header) {
  25336. return [
  25337. header.major,
  25338. header.minor,
  25339. header.hdrSize,
  25340. header.offSize
  25341. ];
  25342. },
  25343. compileNameIndex: function CFFCompiler_compileNameIndex(names) {
  25344. var nameIndex = new CFFIndex();
  25345. for (var i = 0, ii = names.length; i < ii; ++i) {
  25346. nameIndex.add(stringToArray(names[i]));
  25347. }
  25348. return this.compileIndex(nameIndex);
  25349. },
  25350. compileTopDicts: function CFFCompiler_compileTopDicts(dicts,
  25351. length,
  25352. removeCidKeys) {
  25353. var fontDictTrackers = [];
  25354. var fdArrayIndex = new CFFIndex();
  25355. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  25356. var fontDict = dicts[i];
  25357. if (removeCidKeys) {
  25358. fontDict.removeByName('CIDFontVersion');
  25359. fontDict.removeByName('CIDFontRevision');
  25360. fontDict.removeByName('CIDFontType');
  25361. fontDict.removeByName('CIDCount');
  25362. fontDict.removeByName('UIDBase');
  25363. }
  25364. var fontDictTracker = new CFFOffsetTracker();
  25365. var fontDictData = this.compileDict(fontDict, fontDictTracker);
  25366. fontDictTrackers.push(fontDictTracker);
  25367. fdArrayIndex.add(fontDictData);
  25368. fontDictTracker.offset(length);
  25369. }
  25370. fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers);
  25371. return {
  25372. trackers: fontDictTrackers,
  25373. output: fdArrayIndex
  25374. };
  25375. },
  25376. compilePrivateDicts: function CFFCompiler_compilePrivateDicts(dicts,
  25377. trackers,
  25378. output) {
  25379. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  25380. var fontDict = dicts[i];
  25381. assert(fontDict.privateDict && fontDict.hasName('Private'),
  25382. 'There must be an private dictionary.');
  25383. var privateDict = fontDict.privateDict;
  25384. var privateDictTracker = new CFFOffsetTracker();
  25385. var privateDictData = this.compileDict(privateDict, privateDictTracker);
  25386. var outputLength = output.length;
  25387. privateDictTracker.offset(outputLength);
  25388. if (!privateDictData.length) {
  25389. // The private dictionary was empty, set the output length to zero to
  25390. // ensure the offset length isn't out of bounds in the eyes of the
  25391. // sanitizer.
  25392. outputLength = 0;
  25393. }
  25394. trackers[i].setEntryLocation('Private',
  25395. [privateDictData.length, outputLength],
  25396. output);
  25397. output.add(privateDictData);
  25398. if (privateDict.subrsIndex && privateDict.hasName('Subrs')) {
  25399. var subrs = this.compileIndex(privateDict.subrsIndex);
  25400. privateDictTracker.setEntryLocation('Subrs', [privateDictData.length],
  25401. output);
  25402. output.add(subrs);
  25403. }
  25404. }
  25405. },
  25406. compileDict: function CFFCompiler_compileDict(dict, offsetTracker) {
  25407. var out = [];
  25408. // The dictionary keys must be in a certain order.
  25409. var order = dict.order;
  25410. for (var i = 0; i < order.length; ++i) {
  25411. var key = order[i];
  25412. if (!(key in dict.values)) {
  25413. continue;
  25414. }
  25415. var values = dict.values[key];
  25416. var types = dict.types[key];
  25417. if (!isArray(types)) {
  25418. types = [types];
  25419. }
  25420. if (!isArray(values)) {
  25421. values = [values];
  25422. }
  25423. // Remove any empty dict values.
  25424. if (values.length === 0) {
  25425. continue;
  25426. }
  25427. for (var j = 0, jj = types.length; j < jj; ++j) {
  25428. var type = types[j];
  25429. var value = values[j];
  25430. switch (type) {
  25431. case 'num':
  25432. case 'sid':
  25433. out = out.concat(this.encodeNumber(value));
  25434. break;
  25435. case 'offset':
  25436. // For offsets we just insert a 32bit integer so we don't have to
  25437. // deal with figuring out the length of the offset when it gets
  25438. // replaced later on by the compiler.
  25439. var name = dict.keyToNameMap[key];
  25440. // Some offsets have the offset and the length, so just record the
  25441. // position of the first one.
  25442. if (!offsetTracker.isTracking(name)) {
  25443. offsetTracker.track(name, out.length);
  25444. }
  25445. out = out.concat([0x1d, 0, 0, 0, 0]);
  25446. break;
  25447. case 'array':
  25448. case 'delta':
  25449. out = out.concat(this.encodeNumber(value));
  25450. for (var k = 1, kk = values.length; k < kk; ++k) {
  25451. out = out.concat(this.encodeNumber(values[k]));
  25452. }
  25453. break;
  25454. default:
  25455. error('Unknown data type of ' + type);
  25456. break;
  25457. }
  25458. }
  25459. out = out.concat(dict.opcodes[key]);
  25460. }
  25461. return out;
  25462. },
  25463. compileStringIndex: function CFFCompiler_compileStringIndex(strings) {
  25464. var stringIndex = new CFFIndex();
  25465. for (var i = 0, ii = strings.length; i < ii; ++i) {
  25466. stringIndex.add(stringToArray(strings[i]));
  25467. }
  25468. return this.compileIndex(stringIndex);
  25469. },
  25470. compileGlobalSubrIndex: function CFFCompiler_compileGlobalSubrIndex() {
  25471. var globalSubrIndex = this.cff.globalSubrIndex;
  25472. this.out.writeByteArray(this.compileIndex(globalSubrIndex));
  25473. },
  25474. compileCharStrings: function CFFCompiler_compileCharStrings(charStrings) {
  25475. return this.compileIndex(charStrings);
  25476. },
  25477. compileCharset: function CFFCompiler_compileCharset(charset) {
  25478. return this.compileTypedArray(charset.raw);
  25479. },
  25480. compileEncoding: function CFFCompiler_compileEncoding(encoding) {
  25481. return this.compileTypedArray(encoding.raw);
  25482. },
  25483. compileFDSelect: function CFFCompiler_compileFDSelect(fdSelect) {
  25484. return this.compileTypedArray(fdSelect);
  25485. },
  25486. compileTypedArray: function CFFCompiler_compileTypedArray(data) {
  25487. var out = [];
  25488. for (var i = 0, ii = data.length; i < ii; ++i) {
  25489. out[i] = data[i];
  25490. }
  25491. return out;
  25492. },
  25493. compileIndex: function CFFCompiler_compileIndex(index, trackers) {
  25494. trackers = trackers || [];
  25495. var objects = index.objects;
  25496. // First 2 bytes contains the number of objects contained into this index
  25497. var count = objects.length;
  25498. // If there is no object, just create an index. This technically
  25499. // should just be [0, 0] but OTS has an issue with that.
  25500. if (count === 0) {
  25501. return [0, 0, 0];
  25502. }
  25503. var data = [(count >> 8) & 0xFF, count & 0xff];
  25504. var lastOffset = 1, i;
  25505. for (i = 0; i < count; ++i) {
  25506. lastOffset += objects[i].length;
  25507. }
  25508. var offsetSize;
  25509. if (lastOffset < 0x100) {
  25510. offsetSize = 1;
  25511. } else if (lastOffset < 0x10000) {
  25512. offsetSize = 2;
  25513. } else if (lastOffset < 0x1000000) {
  25514. offsetSize = 3;
  25515. } else {
  25516. offsetSize = 4;
  25517. }
  25518. // Next byte contains the offset size use to reference object in the file
  25519. data.push(offsetSize);
  25520. // Add another offset after this one because we need a new offset
  25521. var relativeOffset = 1;
  25522. for (i = 0; i < count + 1; i++) {
  25523. if (offsetSize === 1) {
  25524. data.push(relativeOffset & 0xFF);
  25525. } else if (offsetSize === 2) {
  25526. data.push((relativeOffset >> 8) & 0xFF,
  25527. relativeOffset & 0xFF);
  25528. } else if (offsetSize === 3) {
  25529. data.push((relativeOffset >> 16) & 0xFF,
  25530. (relativeOffset >> 8) & 0xFF,
  25531. relativeOffset & 0xFF);
  25532. } else {
  25533. data.push((relativeOffset >>> 24) & 0xFF,
  25534. (relativeOffset >> 16) & 0xFF,
  25535. (relativeOffset >> 8) & 0xFF,
  25536. relativeOffset & 0xFF);
  25537. }
  25538. if (objects[i]) {
  25539. relativeOffset += objects[i].length;
  25540. }
  25541. }
  25542. for (i = 0; i < count; i++) {
  25543. // Notify the tracker where the object will be offset in the data.
  25544. if (trackers[i]) {
  25545. trackers[i].offset(data.length);
  25546. }
  25547. for (var j = 0, jj = objects[i].length; j < jj; j++) {
  25548. data.push(objects[i][j]);
  25549. }
  25550. }
  25551. return data;
  25552. }
  25553. };
  25554. return CFFCompiler;
  25555. })();
  25556. // Workaround for seac on Windows.
  25557. (function checkSeacSupport() {
  25558. if (/Windows/.test(navigator.userAgent)) {
  25559. SEAC_ANALYSIS_ENABLED = true;
  25560. }
  25561. })();
  25562. // Workaround for Private Use Area characters in Chrome on Windows
  25563. // http://code.google.com/p/chromium/issues/detail?id=122465
  25564. // https://github.com/mozilla/pdf.js/issues/1689
  25565. (function checkChromeWindows() {
  25566. if (/Windows.*Chrome/.test(navigator.userAgent)) {
  25567. SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
  25568. }
  25569. })();
  25570. var FontRendererFactory = (function FontRendererFactoryClosure() {
  25571. function getLong(data, offset) {
  25572. return (data[offset] << 24) | (data[offset + 1] << 16) |
  25573. (data[offset + 2] << 8) | data[offset + 3];
  25574. }
  25575. function getUshort(data, offset) {
  25576. return (data[offset] << 8) | data[offset + 1];
  25577. }
  25578. function parseCmap(data, start, end) {
  25579. var offset = (getUshort(data, start + 2) === 1 ?
  25580. getLong(data, start + 8) : getLong(data, start + 16));
  25581. var format = getUshort(data, start + offset);
  25582. var length, ranges, p, i;
  25583. if (format === 4) {
  25584. length = getUshort(data, start + offset + 2);
  25585. var segCount = getUshort(data, start + offset + 6) >> 1;
  25586. p = start + offset + 14;
  25587. ranges = [];
  25588. for (i = 0; i < segCount; i++, p += 2) {
  25589. ranges[i] = {end: getUshort(data, p)};
  25590. }
  25591. p += 2;
  25592. for (i = 0; i < segCount; i++, p += 2) {
  25593. ranges[i].start = getUshort(data, p);
  25594. }
  25595. for (i = 0; i < segCount; i++, p += 2) {
  25596. ranges[i].idDelta = getUshort(data, p);
  25597. }
  25598. for (i = 0; i < segCount; i++, p += 2) {
  25599. var idOffset = getUshort(data, p);
  25600. if (idOffset === 0) {
  25601. continue;
  25602. }
  25603. ranges[i].ids = [];
  25604. for (var j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) {
  25605. ranges[i].ids[j] = getUshort(data, p + idOffset);
  25606. idOffset += 2;
  25607. }
  25608. }
  25609. return ranges;
  25610. } else if (format === 12) {
  25611. length = getLong(data, start + offset + 4);
  25612. var groups = getLong(data, start + offset + 12);
  25613. p = start + offset + 16;
  25614. ranges = [];
  25615. for (i = 0; i < groups; i++) {
  25616. ranges.push({
  25617. start: getLong(data, p),
  25618. end: getLong(data, p + 4),
  25619. idDelta: getLong(data, p + 8) - getLong(data, p)
  25620. });
  25621. p += 12;
  25622. }
  25623. return ranges;
  25624. }
  25625. error('not supported cmap: ' + format);
  25626. }
  25627. function parseCff(data, start, end) {
  25628. var properties = {};
  25629. var parser = new CFFParser(new Stream(data, start, end - start),
  25630. properties);
  25631. var cff = parser.parse();
  25632. return {
  25633. glyphs: cff.charStrings.objects,
  25634. subrs: (cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex &&
  25635. cff.topDict.privateDict.subrsIndex.objects),
  25636. gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects
  25637. };
  25638. }
  25639. function parseGlyfTable(glyf, loca, isGlyphLocationsLong) {
  25640. var itemSize, itemDecode;
  25641. if (isGlyphLocationsLong) {
  25642. itemSize = 4;
  25643. itemDecode = function fontItemDecodeLong(data, offset) {
  25644. return (data[offset] << 24) | (data[offset + 1] << 16) |
  25645. (data[offset + 2] << 8) | data[offset + 3];
  25646. };
  25647. } else {
  25648. itemSize = 2;
  25649. itemDecode = function fontItemDecode(data, offset) {
  25650. return (data[offset] << 9) | (data[offset + 1] << 1);
  25651. };
  25652. }
  25653. var glyphs = [];
  25654. var startOffset = itemDecode(loca, 0);
  25655. for (var j = itemSize; j < loca.length; j += itemSize) {
  25656. var endOffset = itemDecode(loca, j);
  25657. glyphs.push(glyf.subarray(startOffset, endOffset));
  25658. startOffset = endOffset;
  25659. }
  25660. return glyphs;
  25661. }
  25662. function lookupCmap(ranges, unicode) {
  25663. var code = unicode.charCodeAt(0);
  25664. var l = 0, r = ranges.length - 1;
  25665. while (l < r) {
  25666. var c = (l + r + 1) >> 1;
  25667. if (code < ranges[c].start) {
  25668. r = c - 1;
  25669. } else {
  25670. l = c;
  25671. }
  25672. }
  25673. if (ranges[l].start <= code && code <= ranges[l].end) {
  25674. return (ranges[l].idDelta + (ranges[l].ids ?
  25675. ranges[l].ids[code - ranges[l].start] : code)) & 0xFFFF;
  25676. }
  25677. return 0;
  25678. }
  25679. function compileGlyf(code, js, font) {
  25680. function moveTo(x, y) {
  25681. js.push('c.moveTo(' + x + ',' + y + ');');
  25682. }
  25683. function lineTo(x, y) {
  25684. js.push('c.lineTo(' + x + ',' + y + ');');
  25685. }
  25686. function quadraticCurveTo(xa, ya, x, y) {
  25687. js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +
  25688. x + ',' + y + ');');
  25689. }
  25690. var i = 0;
  25691. var numberOfContours = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25692. var flags;
  25693. var x = 0, y = 0;
  25694. i += 10;
  25695. if (numberOfContours < 0) {
  25696. // composite glyph
  25697. do {
  25698. flags = (code[i] << 8) | code[i + 1];
  25699. var glyphIndex = (code[i + 2] << 8) | code[i + 3];
  25700. i += 4;
  25701. var arg1, arg2;
  25702. if ((flags & 0x01)) {
  25703. arg1 = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25704. arg2 = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  25705. i += 4;
  25706. } else {
  25707. arg1 = code[i++]; arg2 = code[i++];
  25708. }
  25709. if ((flags & 0x02)) {
  25710. x = arg1;
  25711. y = arg2;
  25712. } else {
  25713. x = 0; y = 0; // TODO "they are points" ?
  25714. }
  25715. var scaleX = 1, scaleY = 1, scale01 = 0, scale10 = 0;
  25716. if ((flags & 0x08)) {
  25717. scaleX =
  25718. scaleY = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  25719. i += 2;
  25720. } else if ((flags & 0x40)) {
  25721. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  25722. scaleY = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  25723. i += 4;
  25724. } else if ((flags & 0x80)) {
  25725. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  25726. scale01 = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  25727. scale10 = ((code[i + 4] << 24) | (code[i + 5] << 16)) / 1073741824;
  25728. scaleY = ((code[i + 6] << 24) | (code[i + 7] << 16)) / 1073741824;
  25729. i += 8;
  25730. }
  25731. var subglyph = font.glyphs[glyphIndex];
  25732. if (subglyph) {
  25733. js.push('c.save();');
  25734. js.push('c.transform(' + scaleX + ',' + scale01 + ',' +
  25735. scale10 + ',' + scaleY + ',' + x + ',' + y + ');');
  25736. compileGlyf(subglyph, js, font);
  25737. js.push('c.restore();');
  25738. }
  25739. } while ((flags & 0x20));
  25740. } else {
  25741. // simple glyph
  25742. var endPtsOfContours = [];
  25743. var j, jj;
  25744. for (j = 0; j < numberOfContours; j++) {
  25745. endPtsOfContours.push((code[i] << 8) | code[i + 1]);
  25746. i += 2;
  25747. }
  25748. var instructionLength = (code[i] << 8) | code[i + 1];
  25749. i += 2 + instructionLength; // skipping the instructions
  25750. var numberOfPoints = endPtsOfContours[endPtsOfContours.length - 1] + 1;
  25751. var points = [];
  25752. while (points.length < numberOfPoints) {
  25753. flags = code[i++];
  25754. var repeat = 1;
  25755. if ((flags & 0x08)) {
  25756. repeat += code[i++];
  25757. }
  25758. while (repeat-- > 0) {
  25759. points.push({flags: flags});
  25760. }
  25761. }
  25762. for (j = 0; j < numberOfPoints; j++) {
  25763. switch (points[j].flags & 0x12) {
  25764. case 0x00:
  25765. x += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25766. i += 2;
  25767. break;
  25768. case 0x02:
  25769. x -= code[i++];
  25770. break;
  25771. case 0x12:
  25772. x += code[i++];
  25773. break;
  25774. }
  25775. points[j].x = x;
  25776. }
  25777. for (j = 0; j < numberOfPoints; j++) {
  25778. switch (points[j].flags & 0x24) {
  25779. case 0x00:
  25780. y += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25781. i += 2;
  25782. break;
  25783. case 0x04:
  25784. y -= code[i++];
  25785. break;
  25786. case 0x24:
  25787. y += code[i++];
  25788. break;
  25789. }
  25790. points[j].y = y;
  25791. }
  25792. var startPoint = 0;
  25793. for (i = 0; i < numberOfContours; i++) {
  25794. var endPoint = endPtsOfContours[i];
  25795. // contours might have implicit points, which is located in the middle
  25796. // between two neighboring off-curve points
  25797. var contour = points.slice(startPoint, endPoint + 1);
  25798. if ((contour[0].flags & 1)) {
  25799. contour.push(contour[0]); // using start point at the contour end
  25800. } else if ((contour[contour.length - 1].flags & 1)) {
  25801. // first is off-curve point, trying to use one from the end
  25802. contour.unshift(contour[contour.length - 1]);
  25803. } else {
  25804. // start and end are off-curve points, creating implicit one
  25805. var p = {
  25806. flags: 1,
  25807. x: (contour[0].x + contour[contour.length - 1].x) / 2,
  25808. y: (contour[0].y + contour[contour.length - 1].y) / 2
  25809. };
  25810. contour.unshift(p);
  25811. contour.push(p);
  25812. }
  25813. moveTo(contour[0].x, contour[0].y);
  25814. for (j = 1, jj = contour.length; j < jj; j++) {
  25815. if ((contour[j].flags & 1)) {
  25816. lineTo(contour[j].x, contour[j].y);
  25817. } else if ((contour[j + 1].flags & 1)){
  25818. quadraticCurveTo(contour[j].x, contour[j].y,
  25819. contour[j + 1].x, contour[j + 1].y);
  25820. j++;
  25821. } else {
  25822. quadraticCurveTo(contour[j].x, contour[j].y,
  25823. (contour[j].x + contour[j + 1].x) / 2,
  25824. (contour[j].y + contour[j + 1].y) / 2);
  25825. }
  25826. }
  25827. startPoint = endPoint + 1;
  25828. }
  25829. }
  25830. }
  25831. function compileCharString(code, js, font) {
  25832. var stack = [];
  25833. var x = 0, y = 0;
  25834. var stems = 0;
  25835. function moveTo(x, y) {
  25836. js.push('c.moveTo(' + x + ',' + y + ');');
  25837. }
  25838. function lineTo(x, y) {
  25839. js.push('c.lineTo(' + x + ',' + y + ');');
  25840. }
  25841. function bezierCurveTo(x1, y1, x2, y2, x, y) {
  25842. js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +
  25843. x + ',' + y + ');');
  25844. }
  25845. function parse(code) {
  25846. var i = 0;
  25847. while (i < code.length) {
  25848. var stackClean = false;
  25849. var v = code[i++];
  25850. var xa, xb, ya, yb, y1, y2, y3, n, subrCode;
  25851. switch (v) {
  25852. case 1: // hstem
  25853. stems += stack.length >> 1;
  25854. stackClean = true;
  25855. break;
  25856. case 3: // vstem
  25857. stems += stack.length >> 1;
  25858. stackClean = true;
  25859. break;
  25860. case 4: // vmoveto
  25861. y += stack.pop();
  25862. moveTo(x, y);
  25863. stackClean = true;
  25864. break;
  25865. case 5: // rlineto
  25866. while (stack.length > 0) {
  25867. x += stack.shift();
  25868. y += stack.shift();
  25869. lineTo(x, y);
  25870. }
  25871. break;
  25872. case 6: // hlineto
  25873. while (stack.length > 0) {
  25874. x += stack.shift();
  25875. lineTo(x, y);
  25876. if (stack.length === 0) {
  25877. break;
  25878. }
  25879. y += stack.shift();
  25880. lineTo(x, y);
  25881. }
  25882. break;
  25883. case 7: // vlineto
  25884. while (stack.length > 0) {
  25885. y += stack.shift();
  25886. lineTo(x, y);
  25887. if (stack.length === 0) {
  25888. break;
  25889. }
  25890. x += stack.shift();
  25891. lineTo(x, y);
  25892. }
  25893. break;
  25894. case 8: // rrcurveto
  25895. while (stack.length > 0) {
  25896. xa = x + stack.shift(); ya = y + stack.shift();
  25897. xb = xa + stack.shift(); yb = ya + stack.shift();
  25898. x = xb + stack.shift(); y = yb + stack.shift();
  25899. bezierCurveTo(xa, ya, xb, yb, x, y);
  25900. }
  25901. break;
  25902. case 10: // callsubr
  25903. n = stack.pop() + font.subrsBias;
  25904. subrCode = font.subrs[n];
  25905. if (subrCode) {
  25906. parse(subrCode);
  25907. }
  25908. break;
  25909. case 11: // return
  25910. return;
  25911. case 12:
  25912. v = code[i++];
  25913. switch (v) {
  25914. case 34: // flex
  25915. xa = x + stack.shift();
  25916. xb = xa + stack.shift(); y1 = y + stack.shift();
  25917. x = xb + stack.shift();
  25918. bezierCurveTo(xa, y, xb, y1, x, y1);
  25919. xa = x + stack.shift();
  25920. xb = xa + stack.shift();
  25921. x = xb + stack.shift();
  25922. bezierCurveTo(xa, y1, xb, y, x, y);
  25923. break;
  25924. case 35: // flex
  25925. xa = x + stack.shift(); ya = y + stack.shift();
  25926. xb = xa + stack.shift(); yb = ya + stack.shift();
  25927. x = xb + stack.shift(); y = yb + stack.shift();
  25928. bezierCurveTo(xa, ya, xb, yb, x, y);
  25929. xa = x + stack.shift(); ya = y + stack.shift();
  25930. xb = xa + stack.shift(); yb = ya + stack.shift();
  25931. x = xb + stack.shift(); y = yb + stack.shift();
  25932. bezierCurveTo(xa, ya, xb, yb, x, y);
  25933. stack.pop(); // fd
  25934. break;
  25935. case 36: // hflex1
  25936. xa = x + stack.shift(); y1 = y + stack.shift();
  25937. xb = xa + stack.shift(); y2 = y1 + stack.shift();
  25938. x = xb + stack.shift();
  25939. bezierCurveTo(xa, y1, xb, y2, x, y2);
  25940. xa = x + stack.shift();
  25941. xb = xa + stack.shift(); y3 = y2 + stack.shift();
  25942. x = xb + stack.shift();
  25943. bezierCurveTo(xa, y2, xb, y3, x, y);
  25944. break;
  25945. case 37: // flex1
  25946. var x0 = x, y0 = y;
  25947. xa = x + stack.shift(); ya = y + stack.shift();
  25948. xb = xa + stack.shift(); yb = ya + stack.shift();
  25949. x = xb + stack.shift(); y = yb + stack.shift();
  25950. bezierCurveTo(xa, ya, xb, yb, x, y);
  25951. xa = x + stack.shift(); ya = y + stack.shift();
  25952. xb = xa + stack.shift(); yb = ya + stack.shift();
  25953. x = xb; y = yb;
  25954. if (Math.abs(x - x0) > Math.abs(y - y0)) {
  25955. x += stack.shift();
  25956. } else {
  25957. y += stack.shift();
  25958. }
  25959. bezierCurveTo(xa, ya, xb, yb, x, y);
  25960. break;
  25961. default:
  25962. error('unknown operator: 12 ' + v);
  25963. }
  25964. break;
  25965. case 14: // endchar
  25966. if (stack.length >= 4) {
  25967. var achar = stack.pop();
  25968. var bchar = stack.pop();
  25969. y = stack.pop();
  25970. x = stack.pop();
  25971. js.push('c.save();');
  25972. js.push('c.translate('+ x + ',' + y + ');');
  25973. var gid = lookupCmap(font.cmap, String.fromCharCode(
  25974. font.glyphNameMap[Encodings.StandardEncoding[achar]]));
  25975. compileCharString(font.glyphs[gid], js, font);
  25976. js.push('c.restore();');
  25977. gid = lookupCmap(font.cmap, String.fromCharCode(
  25978. font.glyphNameMap[Encodings.StandardEncoding[bchar]]));
  25979. compileCharString(font.glyphs[gid], js, font);
  25980. }
  25981. return;
  25982. case 18: // hstemhm
  25983. stems += stack.length >> 1;
  25984. stackClean = true;
  25985. break;
  25986. case 19: // hintmask
  25987. stems += stack.length >> 1;
  25988. i += (stems + 7) >> 3;
  25989. stackClean = true;
  25990. break;
  25991. case 20: // cntrmask
  25992. stems += stack.length >> 1;
  25993. i += (stems + 7) >> 3;
  25994. stackClean = true;
  25995. break;
  25996. case 21: // rmoveto
  25997. y += stack.pop();
  25998. x += stack.pop();
  25999. moveTo(x, y);
  26000. stackClean = true;
  26001. break;
  26002. case 22: // hmoveto
  26003. x += stack.pop();
  26004. moveTo(x, y);
  26005. stackClean = true;
  26006. break;
  26007. case 23: // vstemhm
  26008. stems += stack.length >> 1;
  26009. stackClean = true;
  26010. break;
  26011. case 24: // rcurveline
  26012. while (stack.length > 2) {
  26013. xa = x + stack.shift(); ya = y + stack.shift();
  26014. xb = xa + stack.shift(); yb = ya + stack.shift();
  26015. x = xb + stack.shift(); y = yb + stack.shift();
  26016. bezierCurveTo(xa, ya, xb, yb, x, y);
  26017. }
  26018. x += stack.shift();
  26019. y += stack.shift();
  26020. lineTo(x, y);
  26021. break;
  26022. case 25: // rlinecurve
  26023. while (stack.length > 6) {
  26024. x += stack.shift();
  26025. y += stack.shift();
  26026. lineTo(x, y);
  26027. }
  26028. xa = x + stack.shift(); ya = y + stack.shift();
  26029. xb = xa + stack.shift(); yb = ya + stack.shift();
  26030. x = xb + stack.shift(); y = yb + stack.shift();
  26031. bezierCurveTo(xa, ya, xb, yb, x, y);
  26032. break;
  26033. case 26: // vvcurveto
  26034. if (stack.length % 2) {
  26035. x += stack.shift();
  26036. }
  26037. while (stack.length > 0) {
  26038. xa = x; ya = y + stack.shift();
  26039. xb = xa + stack.shift(); yb = ya + stack.shift();
  26040. x = xb; y = yb + stack.shift();
  26041. bezierCurveTo(xa, ya, xb, yb, x, y);
  26042. }
  26043. break;
  26044. case 27: // hhcurveto
  26045. if (stack.length % 2) {
  26046. y += stack.shift();
  26047. }
  26048. while (stack.length > 0) {
  26049. xa = x + stack.shift(); ya = y;
  26050. xb = xa + stack.shift(); yb = ya + stack.shift();
  26051. x = xb + stack.shift(); y = yb;
  26052. bezierCurveTo(xa, ya, xb, yb, x, y);
  26053. }
  26054. break;
  26055. case 28:
  26056. stack.push(((code[i] << 24) | (code[i + 1] << 16)) >> 16);
  26057. i += 2;
  26058. break;
  26059. case 29: // callgsubr
  26060. n = stack.pop() + font.gsubrsBias;
  26061. subrCode = font.gsubrs[n];
  26062. if (subrCode) {
  26063. parse(subrCode);
  26064. }
  26065. break;
  26066. case 30: // vhcurveto
  26067. while (stack.length > 0) {
  26068. xa = x; ya = y + stack.shift();
  26069. xb = xa + stack.shift(); yb = ya + stack.shift();
  26070. x = xb + stack.shift();
  26071. y = yb + (stack.length === 1 ? stack.shift() : 0);
  26072. bezierCurveTo(xa, ya, xb, yb, x, y);
  26073. if (stack.length === 0) {
  26074. break;
  26075. }
  26076. xa = x + stack.shift(); ya = y;
  26077. xb = xa + stack.shift(); yb = ya + stack.shift();
  26078. y = yb + stack.shift();
  26079. x = xb + (stack.length === 1 ? stack.shift() : 0);
  26080. bezierCurveTo(xa, ya, xb, yb, x, y);
  26081. }
  26082. break;
  26083. case 31: // hvcurveto
  26084. while (stack.length > 0) {
  26085. xa = x + stack.shift(); ya = y;
  26086. xb = xa + stack.shift(); yb = ya + stack.shift();
  26087. y = yb + stack.shift();
  26088. x = xb + (stack.length === 1 ? stack.shift() : 0);
  26089. bezierCurveTo(xa, ya, xb, yb, x, y);
  26090. if (stack.length === 0) {
  26091. break;
  26092. }
  26093. xa = x; ya = y + stack.shift();
  26094. xb = xa + stack.shift(); yb = ya + stack.shift();
  26095. x = xb + stack.shift();
  26096. y = yb + (stack.length === 1 ? stack.shift() : 0);
  26097. bezierCurveTo(xa, ya, xb, yb, x, y);
  26098. }
  26099. break;
  26100. default:
  26101. if (v < 32) {
  26102. error('unknown operator: ' + v);
  26103. }
  26104. if (v < 247) {
  26105. stack.push(v - 139);
  26106. } else if (v < 251) {
  26107. stack.push((v - 247) * 256 + code[i++] + 108);
  26108. } else if (v < 255) {
  26109. stack.push(-(v - 251) * 256 - code[i++] - 108);
  26110. } else {
  26111. stack.push(((code[i] << 24) | (code[i + 1] << 16) |
  26112. (code[i + 2] << 8) | code[i + 3]) / 65536);
  26113. i += 4;
  26114. }
  26115. break;
  26116. }
  26117. if (stackClean) {
  26118. stack.length = 0;
  26119. }
  26120. }
  26121. }
  26122. parse(code);
  26123. }
  26124. var noop = '';
  26125. function CompiledFont(fontMatrix) {
  26126. this.compiledGlyphs = {};
  26127. this.fontMatrix = fontMatrix;
  26128. }
  26129. CompiledFont.prototype = {
  26130. getPathJs: function (unicode) {
  26131. var gid = lookupCmap(this.cmap, unicode);
  26132. var fn = this.compiledGlyphs[gid];
  26133. if (!fn) {
  26134. this.compiledGlyphs[gid] = fn = this.compileGlyph(this.glyphs[gid]);
  26135. }
  26136. return fn;
  26137. },
  26138. compileGlyph: function (code) {
  26139. if (!code || code.length === 0 || code[0] === 14) {
  26140. return noop;
  26141. }
  26142. var js = [];
  26143. js.push('c.save();');
  26144. js.push('c.transform(' + this.fontMatrix.join(',') + ');');
  26145. js.push('c.scale(size, -size);');
  26146. this.compileGlyphImpl(code, js);
  26147. js.push('c.restore();');
  26148. return js.join('\n');
  26149. },
  26150. compileGlyphImpl: function () {
  26151. error('Children classes should implement this.');
  26152. },
  26153. hasBuiltPath: function (unicode) {
  26154. var gid = lookupCmap(this.cmap, unicode);
  26155. return gid in this.compiledGlyphs;
  26156. }
  26157. };
  26158. function TrueTypeCompiled(glyphs, cmap, fontMatrix) {
  26159. fontMatrix = fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0];
  26160. CompiledFont.call(this, fontMatrix);
  26161. this.glyphs = glyphs;
  26162. this.cmap = cmap;
  26163. this.compiledGlyphs = [];
  26164. }
  26165. Util.inherit(TrueTypeCompiled, CompiledFont, {
  26166. compileGlyphImpl: function (code, js) {
  26167. compileGlyf(code, js, this);
  26168. }
  26169. });
  26170. function Type2Compiled(cffInfo, cmap, fontMatrix, glyphNameMap) {
  26171. fontMatrix = fontMatrix || [0.001, 0, 0, 0.001, 0, 0];
  26172. CompiledFont.call(this, fontMatrix);
  26173. this.glyphs = cffInfo.glyphs;
  26174. this.gsubrs = cffInfo.gsubrs || [];
  26175. this.subrs = cffInfo.subrs || [];
  26176. this.cmap = cmap;
  26177. this.glyphNameMap = glyphNameMap || GlyphsUnicode;
  26178. this.compiledGlyphs = [];
  26179. this.gsubrsBias = (this.gsubrs.length < 1240 ?
  26180. 107 : (this.gsubrs.length < 33900 ? 1131 : 32768));
  26181. this.subrsBias = (this.subrs.length < 1240 ?
  26182. 107 : (this.subrs.length < 33900 ? 1131 : 32768));
  26183. }
  26184. Util.inherit(Type2Compiled, CompiledFont, {
  26185. compileGlyphImpl: function (code, js) {
  26186. compileCharString(code, js, this);
  26187. }
  26188. });
  26189. return {
  26190. create: function FontRendererFactory_create(font) {
  26191. var data = new Uint8Array(font.data);
  26192. var cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm;
  26193. var numTables = getUshort(data, 4);
  26194. for (var i = 0, p = 12; i < numTables; i++, p += 16) {
  26195. var tag = bytesToString(data.subarray(p, p + 4));
  26196. var offset = getLong(data, p + 8);
  26197. var length = getLong(data, p + 12);
  26198. switch (tag) {
  26199. case 'cmap':
  26200. cmap = parseCmap(data, offset, offset + length);
  26201. break;
  26202. case 'glyf':
  26203. glyf = data.subarray(offset, offset + length);
  26204. break;
  26205. case 'loca':
  26206. loca = data.subarray(offset, offset + length);
  26207. break;
  26208. case 'head':
  26209. unitsPerEm = getUshort(data, offset + 18);
  26210. indexToLocFormat = getUshort(data, offset + 50);
  26211. break;
  26212. case 'CFF ':
  26213. cff = parseCff(data, offset, offset + length);
  26214. break;
  26215. }
  26216. }
  26217. if (glyf) {
  26218. var fontMatrix = (!unitsPerEm ? font.fontMatrix :
  26219. [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0]);
  26220. return new TrueTypeCompiled(
  26221. parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix);
  26222. } else {
  26223. return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
  26224. }
  26225. }
  26226. };
  26227. })();
  26228. var GlyphsUnicode = {
  26229. A: 0x0041,
  26230. AE: 0x00C6,
  26231. AEacute: 0x01FC,
  26232. AEmacron: 0x01E2,
  26233. AEsmall: 0xF7E6,
  26234. Aacute: 0x00C1,
  26235. Aacutesmall: 0xF7E1,
  26236. Abreve: 0x0102,
  26237. Abreveacute: 0x1EAE,
  26238. Abrevecyrillic: 0x04D0,
  26239. Abrevedotbelow: 0x1EB6,
  26240. Abrevegrave: 0x1EB0,
  26241. Abrevehookabove: 0x1EB2,
  26242. Abrevetilde: 0x1EB4,
  26243. Acaron: 0x01CD,
  26244. Acircle: 0x24B6,
  26245. Acircumflex: 0x00C2,
  26246. Acircumflexacute: 0x1EA4,
  26247. Acircumflexdotbelow: 0x1EAC,
  26248. Acircumflexgrave: 0x1EA6,
  26249. Acircumflexhookabove: 0x1EA8,
  26250. Acircumflexsmall: 0xF7E2,
  26251. Acircumflextilde: 0x1EAA,
  26252. Acute: 0xF6C9,
  26253. Acutesmall: 0xF7B4,
  26254. Acyrillic: 0x0410,
  26255. Adblgrave: 0x0200,
  26256. Adieresis: 0x00C4,
  26257. Adieresiscyrillic: 0x04D2,
  26258. Adieresismacron: 0x01DE,
  26259. Adieresissmall: 0xF7E4,
  26260. Adotbelow: 0x1EA0,
  26261. Adotmacron: 0x01E0,
  26262. Agrave: 0x00C0,
  26263. Agravesmall: 0xF7E0,
  26264. Ahookabove: 0x1EA2,
  26265. Aiecyrillic: 0x04D4,
  26266. Ainvertedbreve: 0x0202,
  26267. Alpha: 0x0391,
  26268. Alphatonos: 0x0386,
  26269. Amacron: 0x0100,
  26270. Amonospace: 0xFF21,
  26271. Aogonek: 0x0104,
  26272. Aring: 0x00C5,
  26273. Aringacute: 0x01FA,
  26274. Aringbelow: 0x1E00,
  26275. Aringsmall: 0xF7E5,
  26276. Asmall: 0xF761,
  26277. Atilde: 0x00C3,
  26278. Atildesmall: 0xF7E3,
  26279. Aybarmenian: 0x0531,
  26280. B: 0x0042,
  26281. Bcircle: 0x24B7,
  26282. Bdotaccent: 0x1E02,
  26283. Bdotbelow: 0x1E04,
  26284. Becyrillic: 0x0411,
  26285. Benarmenian: 0x0532,
  26286. Beta: 0x0392,
  26287. Bhook: 0x0181,
  26288. Blinebelow: 0x1E06,
  26289. Bmonospace: 0xFF22,
  26290. Brevesmall: 0xF6F4,
  26291. Bsmall: 0xF762,
  26292. Btopbar: 0x0182,
  26293. C: 0x0043,
  26294. Caarmenian: 0x053E,
  26295. Cacute: 0x0106,
  26296. Caron: 0xF6CA,
  26297. Caronsmall: 0xF6F5,
  26298. Ccaron: 0x010C,
  26299. Ccedilla: 0x00C7,
  26300. Ccedillaacute: 0x1E08,
  26301. Ccedillasmall: 0xF7E7,
  26302. Ccircle: 0x24B8,
  26303. Ccircumflex: 0x0108,
  26304. Cdot: 0x010A,
  26305. Cdotaccent: 0x010A,
  26306. Cedillasmall: 0xF7B8,
  26307. Chaarmenian: 0x0549,
  26308. Cheabkhasiancyrillic: 0x04BC,
  26309. Checyrillic: 0x0427,
  26310. Chedescenderabkhasiancyrillic: 0x04BE,
  26311. Chedescendercyrillic: 0x04B6,
  26312. Chedieresiscyrillic: 0x04F4,
  26313. Cheharmenian: 0x0543,
  26314. Chekhakassiancyrillic: 0x04CB,
  26315. Cheverticalstrokecyrillic: 0x04B8,
  26316. Chi: 0x03A7,
  26317. Chook: 0x0187,
  26318. Circumflexsmall: 0xF6F6,
  26319. Cmonospace: 0xFF23,
  26320. Coarmenian: 0x0551,
  26321. Csmall: 0xF763,
  26322. D: 0x0044,
  26323. DZ: 0x01F1,
  26324. DZcaron: 0x01C4,
  26325. Daarmenian: 0x0534,
  26326. Dafrican: 0x0189,
  26327. Dcaron: 0x010E,
  26328. Dcedilla: 0x1E10,
  26329. Dcircle: 0x24B9,
  26330. Dcircumflexbelow: 0x1E12,
  26331. Dcroat: 0x0110,
  26332. Ddotaccent: 0x1E0A,
  26333. Ddotbelow: 0x1E0C,
  26334. Decyrillic: 0x0414,
  26335. Deicoptic: 0x03EE,
  26336. Delta: 0x2206,
  26337. Deltagreek: 0x0394,
  26338. Dhook: 0x018A,
  26339. Dieresis: 0xF6CB,
  26340. DieresisAcute: 0xF6CC,
  26341. DieresisGrave: 0xF6CD,
  26342. Dieresissmall: 0xF7A8,
  26343. Digammagreek: 0x03DC,
  26344. Djecyrillic: 0x0402,
  26345. Dlinebelow: 0x1E0E,
  26346. Dmonospace: 0xFF24,
  26347. Dotaccentsmall: 0xF6F7,
  26348. Dslash: 0x0110,
  26349. Dsmall: 0xF764,
  26350. Dtopbar: 0x018B,
  26351. Dz: 0x01F2,
  26352. Dzcaron: 0x01C5,
  26353. Dzeabkhasiancyrillic: 0x04E0,
  26354. Dzecyrillic: 0x0405,
  26355. Dzhecyrillic: 0x040F,
  26356. E: 0x0045,
  26357. Eacute: 0x00C9,
  26358. Eacutesmall: 0xF7E9,
  26359. Ebreve: 0x0114,
  26360. Ecaron: 0x011A,
  26361. Ecedillabreve: 0x1E1C,
  26362. Echarmenian: 0x0535,
  26363. Ecircle: 0x24BA,
  26364. Ecircumflex: 0x00CA,
  26365. Ecircumflexacute: 0x1EBE,
  26366. Ecircumflexbelow: 0x1E18,
  26367. Ecircumflexdotbelow: 0x1EC6,
  26368. Ecircumflexgrave: 0x1EC0,
  26369. Ecircumflexhookabove: 0x1EC2,
  26370. Ecircumflexsmall: 0xF7EA,
  26371. Ecircumflextilde: 0x1EC4,
  26372. Ecyrillic: 0x0404,
  26373. Edblgrave: 0x0204,
  26374. Edieresis: 0x00CB,
  26375. Edieresissmall: 0xF7EB,
  26376. Edot: 0x0116,
  26377. Edotaccent: 0x0116,
  26378. Edotbelow: 0x1EB8,
  26379. Efcyrillic: 0x0424,
  26380. Egrave: 0x00C8,
  26381. Egravesmall: 0xF7E8,
  26382. Eharmenian: 0x0537,
  26383. Ehookabove: 0x1EBA,
  26384. Eightroman: 0x2167,
  26385. Einvertedbreve: 0x0206,
  26386. Eiotifiedcyrillic: 0x0464,
  26387. Elcyrillic: 0x041B,
  26388. Elevenroman: 0x216A,
  26389. Emacron: 0x0112,
  26390. Emacronacute: 0x1E16,
  26391. Emacrongrave: 0x1E14,
  26392. Emcyrillic: 0x041C,
  26393. Emonospace: 0xFF25,
  26394. Encyrillic: 0x041D,
  26395. Endescendercyrillic: 0x04A2,
  26396. Eng: 0x014A,
  26397. Enghecyrillic: 0x04A4,
  26398. Enhookcyrillic: 0x04C7,
  26399. Eogonek: 0x0118,
  26400. Eopen: 0x0190,
  26401. Epsilon: 0x0395,
  26402. Epsilontonos: 0x0388,
  26403. Ercyrillic: 0x0420,
  26404. Ereversed: 0x018E,
  26405. Ereversedcyrillic: 0x042D,
  26406. Escyrillic: 0x0421,
  26407. Esdescendercyrillic: 0x04AA,
  26408. Esh: 0x01A9,
  26409. Esmall: 0xF765,
  26410. Eta: 0x0397,
  26411. Etarmenian: 0x0538,
  26412. Etatonos: 0x0389,
  26413. Eth: 0x00D0,
  26414. Ethsmall: 0xF7F0,
  26415. Etilde: 0x1EBC,
  26416. Etildebelow: 0x1E1A,
  26417. Euro: 0x20AC,
  26418. Ezh: 0x01B7,
  26419. Ezhcaron: 0x01EE,
  26420. Ezhreversed: 0x01B8,
  26421. F: 0x0046,
  26422. Fcircle: 0x24BB,
  26423. Fdotaccent: 0x1E1E,
  26424. Feharmenian: 0x0556,
  26425. Feicoptic: 0x03E4,
  26426. Fhook: 0x0191,
  26427. Fitacyrillic: 0x0472,
  26428. Fiveroman: 0x2164,
  26429. Fmonospace: 0xFF26,
  26430. Fourroman: 0x2163,
  26431. Fsmall: 0xF766,
  26432. G: 0x0047,
  26433. GBsquare: 0x3387,
  26434. Gacute: 0x01F4,
  26435. Gamma: 0x0393,
  26436. Gammaafrican: 0x0194,
  26437. Gangiacoptic: 0x03EA,
  26438. Gbreve: 0x011E,
  26439. Gcaron: 0x01E6,
  26440. Gcedilla: 0x0122,
  26441. Gcircle: 0x24BC,
  26442. Gcircumflex: 0x011C,
  26443. Gcommaaccent: 0x0122,
  26444. Gdot: 0x0120,
  26445. Gdotaccent: 0x0120,
  26446. Gecyrillic: 0x0413,
  26447. Ghadarmenian: 0x0542,
  26448. Ghemiddlehookcyrillic: 0x0494,
  26449. Ghestrokecyrillic: 0x0492,
  26450. Gheupturncyrillic: 0x0490,
  26451. Ghook: 0x0193,
  26452. Gimarmenian: 0x0533,
  26453. Gjecyrillic: 0x0403,
  26454. Gmacron: 0x1E20,
  26455. Gmonospace: 0xFF27,
  26456. Grave: 0xF6CE,
  26457. Gravesmall: 0xF760,
  26458. Gsmall: 0xF767,
  26459. Gsmallhook: 0x029B,
  26460. Gstroke: 0x01E4,
  26461. H: 0x0048,
  26462. H18533: 0x25CF,
  26463. H18543: 0x25AA,
  26464. H18551: 0x25AB,
  26465. H22073: 0x25A1,
  26466. HPsquare: 0x33CB,
  26467. Haabkhasiancyrillic: 0x04A8,
  26468. Hadescendercyrillic: 0x04B2,
  26469. Hardsigncyrillic: 0x042A,
  26470. Hbar: 0x0126,
  26471. Hbrevebelow: 0x1E2A,
  26472. Hcedilla: 0x1E28,
  26473. Hcircle: 0x24BD,
  26474. Hcircumflex: 0x0124,
  26475. Hdieresis: 0x1E26,
  26476. Hdotaccent: 0x1E22,
  26477. Hdotbelow: 0x1E24,
  26478. Hmonospace: 0xFF28,
  26479. Hoarmenian: 0x0540,
  26480. Horicoptic: 0x03E8,
  26481. Hsmall: 0xF768,
  26482. Hungarumlaut: 0xF6CF,
  26483. Hungarumlautsmall: 0xF6F8,
  26484. Hzsquare: 0x3390,
  26485. I: 0x0049,
  26486. IAcyrillic: 0x042F,
  26487. IJ: 0x0132,
  26488. IUcyrillic: 0x042E,
  26489. Iacute: 0x00CD,
  26490. Iacutesmall: 0xF7ED,
  26491. Ibreve: 0x012C,
  26492. Icaron: 0x01CF,
  26493. Icircle: 0x24BE,
  26494. Icircumflex: 0x00CE,
  26495. Icircumflexsmall: 0xF7EE,
  26496. Icyrillic: 0x0406,
  26497. Idblgrave: 0x0208,
  26498. Idieresis: 0x00CF,
  26499. Idieresisacute: 0x1E2E,
  26500. Idieresiscyrillic: 0x04E4,
  26501. Idieresissmall: 0xF7EF,
  26502. Idot: 0x0130,
  26503. Idotaccent: 0x0130,
  26504. Idotbelow: 0x1ECA,
  26505. Iebrevecyrillic: 0x04D6,
  26506. Iecyrillic: 0x0415,
  26507. Ifraktur: 0x2111,
  26508. Igrave: 0x00CC,
  26509. Igravesmall: 0xF7EC,
  26510. Ihookabove: 0x1EC8,
  26511. Iicyrillic: 0x0418,
  26512. Iinvertedbreve: 0x020A,
  26513. Iishortcyrillic: 0x0419,
  26514. Imacron: 0x012A,
  26515. Imacroncyrillic: 0x04E2,
  26516. Imonospace: 0xFF29,
  26517. Iniarmenian: 0x053B,
  26518. Iocyrillic: 0x0401,
  26519. Iogonek: 0x012E,
  26520. Iota: 0x0399,
  26521. Iotaafrican: 0x0196,
  26522. Iotadieresis: 0x03AA,
  26523. Iotatonos: 0x038A,
  26524. Ismall: 0xF769,
  26525. Istroke: 0x0197,
  26526. Itilde: 0x0128,
  26527. Itildebelow: 0x1E2C,
  26528. Izhitsacyrillic: 0x0474,
  26529. Izhitsadblgravecyrillic: 0x0476,
  26530. J: 0x004A,
  26531. Jaarmenian: 0x0541,
  26532. Jcircle: 0x24BF,
  26533. Jcircumflex: 0x0134,
  26534. Jecyrillic: 0x0408,
  26535. Jheharmenian: 0x054B,
  26536. Jmonospace: 0xFF2A,
  26537. Jsmall: 0xF76A,
  26538. K: 0x004B,
  26539. KBsquare: 0x3385,
  26540. KKsquare: 0x33CD,
  26541. Kabashkircyrillic: 0x04A0,
  26542. Kacute: 0x1E30,
  26543. Kacyrillic: 0x041A,
  26544. Kadescendercyrillic: 0x049A,
  26545. Kahookcyrillic: 0x04C3,
  26546. Kappa: 0x039A,
  26547. Kastrokecyrillic: 0x049E,
  26548. Kaverticalstrokecyrillic: 0x049C,
  26549. Kcaron: 0x01E8,
  26550. Kcedilla: 0x0136,
  26551. Kcircle: 0x24C0,
  26552. Kcommaaccent: 0x0136,
  26553. Kdotbelow: 0x1E32,
  26554. Keharmenian: 0x0554,
  26555. Kenarmenian: 0x053F,
  26556. Khacyrillic: 0x0425,
  26557. Kheicoptic: 0x03E6,
  26558. Khook: 0x0198,
  26559. Kjecyrillic: 0x040C,
  26560. Klinebelow: 0x1E34,
  26561. Kmonospace: 0xFF2B,
  26562. Koppacyrillic: 0x0480,
  26563. Koppagreek: 0x03DE,
  26564. Ksicyrillic: 0x046E,
  26565. Ksmall: 0xF76B,
  26566. L: 0x004C,
  26567. LJ: 0x01C7,
  26568. LL: 0xF6BF,
  26569. Lacute: 0x0139,
  26570. Lambda: 0x039B,
  26571. Lcaron: 0x013D,
  26572. Lcedilla: 0x013B,
  26573. Lcircle: 0x24C1,
  26574. Lcircumflexbelow: 0x1E3C,
  26575. Lcommaaccent: 0x013B,
  26576. Ldot: 0x013F,
  26577. Ldotaccent: 0x013F,
  26578. Ldotbelow: 0x1E36,
  26579. Ldotbelowmacron: 0x1E38,
  26580. Liwnarmenian: 0x053C,
  26581. Lj: 0x01C8,
  26582. Ljecyrillic: 0x0409,
  26583. Llinebelow: 0x1E3A,
  26584. Lmonospace: 0xFF2C,
  26585. Lslash: 0x0141,
  26586. Lslashsmall: 0xF6F9,
  26587. Lsmall: 0xF76C,
  26588. M: 0x004D,
  26589. MBsquare: 0x3386,
  26590. Macron: 0xF6D0,
  26591. Macronsmall: 0xF7AF,
  26592. Macute: 0x1E3E,
  26593. Mcircle: 0x24C2,
  26594. Mdotaccent: 0x1E40,
  26595. Mdotbelow: 0x1E42,
  26596. Menarmenian: 0x0544,
  26597. Mmonospace: 0xFF2D,
  26598. Msmall: 0xF76D,
  26599. Mturned: 0x019C,
  26600. Mu: 0x039C,
  26601. N: 0x004E,
  26602. NJ: 0x01CA,
  26603. Nacute: 0x0143,
  26604. Ncaron: 0x0147,
  26605. Ncedilla: 0x0145,
  26606. Ncircle: 0x24C3,
  26607. Ncircumflexbelow: 0x1E4A,
  26608. Ncommaaccent: 0x0145,
  26609. Ndotaccent: 0x1E44,
  26610. Ndotbelow: 0x1E46,
  26611. Nhookleft: 0x019D,
  26612. Nineroman: 0x2168,
  26613. Nj: 0x01CB,
  26614. Njecyrillic: 0x040A,
  26615. Nlinebelow: 0x1E48,
  26616. Nmonospace: 0xFF2E,
  26617. Nowarmenian: 0x0546,
  26618. Nsmall: 0xF76E,
  26619. Ntilde: 0x00D1,
  26620. Ntildesmall: 0xF7F1,
  26621. Nu: 0x039D,
  26622. O: 0x004F,
  26623. OE: 0x0152,
  26624. OEsmall: 0xF6FA,
  26625. Oacute: 0x00D3,
  26626. Oacutesmall: 0xF7F3,
  26627. Obarredcyrillic: 0x04E8,
  26628. Obarreddieresiscyrillic: 0x04EA,
  26629. Obreve: 0x014E,
  26630. Ocaron: 0x01D1,
  26631. Ocenteredtilde: 0x019F,
  26632. Ocircle: 0x24C4,
  26633. Ocircumflex: 0x00D4,
  26634. Ocircumflexacute: 0x1ED0,
  26635. Ocircumflexdotbelow: 0x1ED8,
  26636. Ocircumflexgrave: 0x1ED2,
  26637. Ocircumflexhookabove: 0x1ED4,
  26638. Ocircumflexsmall: 0xF7F4,
  26639. Ocircumflextilde: 0x1ED6,
  26640. Ocyrillic: 0x041E,
  26641. Odblacute: 0x0150,
  26642. Odblgrave: 0x020C,
  26643. Odieresis: 0x00D6,
  26644. Odieresiscyrillic: 0x04E6,
  26645. Odieresissmall: 0xF7F6,
  26646. Odotbelow: 0x1ECC,
  26647. Ogoneksmall: 0xF6FB,
  26648. Ograve: 0x00D2,
  26649. Ogravesmall: 0xF7F2,
  26650. Oharmenian: 0x0555,
  26651. Ohm: 0x2126,
  26652. Ohookabove: 0x1ECE,
  26653. Ohorn: 0x01A0,
  26654. Ohornacute: 0x1EDA,
  26655. Ohorndotbelow: 0x1EE2,
  26656. Ohorngrave: 0x1EDC,
  26657. Ohornhookabove: 0x1EDE,
  26658. Ohorntilde: 0x1EE0,
  26659. Ohungarumlaut: 0x0150,
  26660. Oi: 0x01A2,
  26661. Oinvertedbreve: 0x020E,
  26662. Omacron: 0x014C,
  26663. Omacronacute: 0x1E52,
  26664. Omacrongrave: 0x1E50,
  26665. Omega: 0x2126,
  26666. Omegacyrillic: 0x0460,
  26667. Omegagreek: 0x03A9,
  26668. Omegaroundcyrillic: 0x047A,
  26669. Omegatitlocyrillic: 0x047C,
  26670. Omegatonos: 0x038F,
  26671. Omicron: 0x039F,
  26672. Omicrontonos: 0x038C,
  26673. Omonospace: 0xFF2F,
  26674. Oneroman: 0x2160,
  26675. Oogonek: 0x01EA,
  26676. Oogonekmacron: 0x01EC,
  26677. Oopen: 0x0186,
  26678. Oslash: 0x00D8,
  26679. Oslashacute: 0x01FE,
  26680. Oslashsmall: 0xF7F8,
  26681. Osmall: 0xF76F,
  26682. Ostrokeacute: 0x01FE,
  26683. Otcyrillic: 0x047E,
  26684. Otilde: 0x00D5,
  26685. Otildeacute: 0x1E4C,
  26686. Otildedieresis: 0x1E4E,
  26687. Otildesmall: 0xF7F5,
  26688. P: 0x0050,
  26689. Pacute: 0x1E54,
  26690. Pcircle: 0x24C5,
  26691. Pdotaccent: 0x1E56,
  26692. Pecyrillic: 0x041F,
  26693. Peharmenian: 0x054A,
  26694. Pemiddlehookcyrillic: 0x04A6,
  26695. Phi: 0x03A6,
  26696. Phook: 0x01A4,
  26697. Pi: 0x03A0,
  26698. Piwrarmenian: 0x0553,
  26699. Pmonospace: 0xFF30,
  26700. Psi: 0x03A8,
  26701. Psicyrillic: 0x0470,
  26702. Psmall: 0xF770,
  26703. Q: 0x0051,
  26704. Qcircle: 0x24C6,
  26705. Qmonospace: 0xFF31,
  26706. Qsmall: 0xF771,
  26707. R: 0x0052,
  26708. Raarmenian: 0x054C,
  26709. Racute: 0x0154,
  26710. Rcaron: 0x0158,
  26711. Rcedilla: 0x0156,
  26712. Rcircle: 0x24C7,
  26713. Rcommaaccent: 0x0156,
  26714. Rdblgrave: 0x0210,
  26715. Rdotaccent: 0x1E58,
  26716. Rdotbelow: 0x1E5A,
  26717. Rdotbelowmacron: 0x1E5C,
  26718. Reharmenian: 0x0550,
  26719. Rfraktur: 0x211C,
  26720. Rho: 0x03A1,
  26721. Ringsmall: 0xF6FC,
  26722. Rinvertedbreve: 0x0212,
  26723. Rlinebelow: 0x1E5E,
  26724. Rmonospace: 0xFF32,
  26725. Rsmall: 0xF772,
  26726. Rsmallinverted: 0x0281,
  26727. Rsmallinvertedsuperior: 0x02B6,
  26728. S: 0x0053,
  26729. SF010000: 0x250C,
  26730. SF020000: 0x2514,
  26731. SF030000: 0x2510,
  26732. SF040000: 0x2518,
  26733. SF050000: 0x253C,
  26734. SF060000: 0x252C,
  26735. SF070000: 0x2534,
  26736. SF080000: 0x251C,
  26737. SF090000: 0x2524,
  26738. SF100000: 0x2500,
  26739. SF110000: 0x2502,
  26740. SF190000: 0x2561,
  26741. SF200000: 0x2562,
  26742. SF210000: 0x2556,
  26743. SF220000: 0x2555,
  26744. SF230000: 0x2563,
  26745. SF240000: 0x2551,
  26746. SF250000: 0x2557,
  26747. SF260000: 0x255D,
  26748. SF270000: 0x255C,
  26749. SF280000: 0x255B,
  26750. SF360000: 0x255E,
  26751. SF370000: 0x255F,
  26752. SF380000: 0x255A,
  26753. SF390000: 0x2554,
  26754. SF400000: 0x2569,
  26755. SF410000: 0x2566,
  26756. SF420000: 0x2560,
  26757. SF430000: 0x2550,
  26758. SF440000: 0x256C,
  26759. SF450000: 0x2567,
  26760. SF460000: 0x2568,
  26761. SF470000: 0x2564,
  26762. SF480000: 0x2565,
  26763. SF490000: 0x2559,
  26764. SF500000: 0x2558,
  26765. SF510000: 0x2552,
  26766. SF520000: 0x2553,
  26767. SF530000: 0x256B,
  26768. SF540000: 0x256A,
  26769. Sacute: 0x015A,
  26770. Sacutedotaccent: 0x1E64,
  26771. Sampigreek: 0x03E0,
  26772. Scaron: 0x0160,
  26773. Scarondotaccent: 0x1E66,
  26774. Scaronsmall: 0xF6FD,
  26775. Scedilla: 0x015E,
  26776. Schwa: 0x018F,
  26777. Schwacyrillic: 0x04D8,
  26778. Schwadieresiscyrillic: 0x04DA,
  26779. Scircle: 0x24C8,
  26780. Scircumflex: 0x015C,
  26781. Scommaaccent: 0x0218,
  26782. Sdotaccent: 0x1E60,
  26783. Sdotbelow: 0x1E62,
  26784. Sdotbelowdotaccent: 0x1E68,
  26785. Seharmenian: 0x054D,
  26786. Sevenroman: 0x2166,
  26787. Shaarmenian: 0x0547,
  26788. Shacyrillic: 0x0428,
  26789. Shchacyrillic: 0x0429,
  26790. Sheicoptic: 0x03E2,
  26791. Shhacyrillic: 0x04BA,
  26792. Shimacoptic: 0x03EC,
  26793. Sigma: 0x03A3,
  26794. Sixroman: 0x2165,
  26795. Smonospace: 0xFF33,
  26796. Softsigncyrillic: 0x042C,
  26797. Ssmall: 0xF773,
  26798. Stigmagreek: 0x03DA,
  26799. T: 0x0054,
  26800. Tau: 0x03A4,
  26801. Tbar: 0x0166,
  26802. Tcaron: 0x0164,
  26803. Tcedilla: 0x0162,
  26804. Tcircle: 0x24C9,
  26805. Tcircumflexbelow: 0x1E70,
  26806. Tcommaaccent: 0x0162,
  26807. Tdotaccent: 0x1E6A,
  26808. Tdotbelow: 0x1E6C,
  26809. Tecyrillic: 0x0422,
  26810. Tedescendercyrillic: 0x04AC,
  26811. Tenroman: 0x2169,
  26812. Tetsecyrillic: 0x04B4,
  26813. Theta: 0x0398,
  26814. Thook: 0x01AC,
  26815. Thorn: 0x00DE,
  26816. Thornsmall: 0xF7FE,
  26817. Threeroman: 0x2162,
  26818. Tildesmall: 0xF6FE,
  26819. Tiwnarmenian: 0x054F,
  26820. Tlinebelow: 0x1E6E,
  26821. Tmonospace: 0xFF34,
  26822. Toarmenian: 0x0539,
  26823. Tonefive: 0x01BC,
  26824. Tonesix: 0x0184,
  26825. Tonetwo: 0x01A7,
  26826. Tretroflexhook: 0x01AE,
  26827. Tsecyrillic: 0x0426,
  26828. Tshecyrillic: 0x040B,
  26829. Tsmall: 0xF774,
  26830. Twelveroman: 0x216B,
  26831. Tworoman: 0x2161,
  26832. U: 0x0055,
  26833. Uacute: 0x00DA,
  26834. Uacutesmall: 0xF7FA,
  26835. Ubreve: 0x016C,
  26836. Ucaron: 0x01D3,
  26837. Ucircle: 0x24CA,
  26838. Ucircumflex: 0x00DB,
  26839. Ucircumflexbelow: 0x1E76,
  26840. Ucircumflexsmall: 0xF7FB,
  26841. Ucyrillic: 0x0423,
  26842. Udblacute: 0x0170,
  26843. Udblgrave: 0x0214,
  26844. Udieresis: 0x00DC,
  26845. Udieresisacute: 0x01D7,
  26846. Udieresisbelow: 0x1E72,
  26847. Udieresiscaron: 0x01D9,
  26848. Udieresiscyrillic: 0x04F0,
  26849. Udieresisgrave: 0x01DB,
  26850. Udieresismacron: 0x01D5,
  26851. Udieresissmall: 0xF7FC,
  26852. Udotbelow: 0x1EE4,
  26853. Ugrave: 0x00D9,
  26854. Ugravesmall: 0xF7F9,
  26855. Uhookabove: 0x1EE6,
  26856. Uhorn: 0x01AF,
  26857. Uhornacute: 0x1EE8,
  26858. Uhorndotbelow: 0x1EF0,
  26859. Uhorngrave: 0x1EEA,
  26860. Uhornhookabove: 0x1EEC,
  26861. Uhorntilde: 0x1EEE,
  26862. Uhungarumlaut: 0x0170,
  26863. Uhungarumlautcyrillic: 0x04F2,
  26864. Uinvertedbreve: 0x0216,
  26865. Ukcyrillic: 0x0478,
  26866. Umacron: 0x016A,
  26867. Umacroncyrillic: 0x04EE,
  26868. Umacrondieresis: 0x1E7A,
  26869. Umonospace: 0xFF35,
  26870. Uogonek: 0x0172,
  26871. Upsilon: 0x03A5,
  26872. Upsilon1: 0x03D2,
  26873. Upsilonacutehooksymbolgreek: 0x03D3,
  26874. Upsilonafrican: 0x01B1,
  26875. Upsilondieresis: 0x03AB,
  26876. Upsilondieresishooksymbolgreek: 0x03D4,
  26877. Upsilonhooksymbol: 0x03D2,
  26878. Upsilontonos: 0x038E,
  26879. Uring: 0x016E,
  26880. Ushortcyrillic: 0x040E,
  26881. Usmall: 0xF775,
  26882. Ustraightcyrillic: 0x04AE,
  26883. Ustraightstrokecyrillic: 0x04B0,
  26884. Utilde: 0x0168,
  26885. Utildeacute: 0x1E78,
  26886. Utildebelow: 0x1E74,
  26887. V: 0x0056,
  26888. Vcircle: 0x24CB,
  26889. Vdotbelow: 0x1E7E,
  26890. Vecyrillic: 0x0412,
  26891. Vewarmenian: 0x054E,
  26892. Vhook: 0x01B2,
  26893. Vmonospace: 0xFF36,
  26894. Voarmenian: 0x0548,
  26895. Vsmall: 0xF776,
  26896. Vtilde: 0x1E7C,
  26897. W: 0x0057,
  26898. Wacute: 0x1E82,
  26899. Wcircle: 0x24CC,
  26900. Wcircumflex: 0x0174,
  26901. Wdieresis: 0x1E84,
  26902. Wdotaccent: 0x1E86,
  26903. Wdotbelow: 0x1E88,
  26904. Wgrave: 0x1E80,
  26905. Wmonospace: 0xFF37,
  26906. Wsmall: 0xF777,
  26907. X: 0x0058,
  26908. Xcircle: 0x24CD,
  26909. Xdieresis: 0x1E8C,
  26910. Xdotaccent: 0x1E8A,
  26911. Xeharmenian: 0x053D,
  26912. Xi: 0x039E,
  26913. Xmonospace: 0xFF38,
  26914. Xsmall: 0xF778,
  26915. Y: 0x0059,
  26916. Yacute: 0x00DD,
  26917. Yacutesmall: 0xF7FD,
  26918. Yatcyrillic: 0x0462,
  26919. Ycircle: 0x24CE,
  26920. Ycircumflex: 0x0176,
  26921. Ydieresis: 0x0178,
  26922. Ydieresissmall: 0xF7FF,
  26923. Ydotaccent: 0x1E8E,
  26924. Ydotbelow: 0x1EF4,
  26925. Yericyrillic: 0x042B,
  26926. Yerudieresiscyrillic: 0x04F8,
  26927. Ygrave: 0x1EF2,
  26928. Yhook: 0x01B3,
  26929. Yhookabove: 0x1EF6,
  26930. Yiarmenian: 0x0545,
  26931. Yicyrillic: 0x0407,
  26932. Yiwnarmenian: 0x0552,
  26933. Ymonospace: 0xFF39,
  26934. Ysmall: 0xF779,
  26935. Ytilde: 0x1EF8,
  26936. Yusbigcyrillic: 0x046A,
  26937. Yusbigiotifiedcyrillic: 0x046C,
  26938. Yuslittlecyrillic: 0x0466,
  26939. Yuslittleiotifiedcyrillic: 0x0468,
  26940. Z: 0x005A,
  26941. Zaarmenian: 0x0536,
  26942. Zacute: 0x0179,
  26943. Zcaron: 0x017D,
  26944. Zcaronsmall: 0xF6FF,
  26945. Zcircle: 0x24CF,
  26946. Zcircumflex: 0x1E90,
  26947. Zdot: 0x017B,
  26948. Zdotaccent: 0x017B,
  26949. Zdotbelow: 0x1E92,
  26950. Zecyrillic: 0x0417,
  26951. Zedescendercyrillic: 0x0498,
  26952. Zedieresiscyrillic: 0x04DE,
  26953. Zeta: 0x0396,
  26954. Zhearmenian: 0x053A,
  26955. Zhebrevecyrillic: 0x04C1,
  26956. Zhecyrillic: 0x0416,
  26957. Zhedescendercyrillic: 0x0496,
  26958. Zhedieresiscyrillic: 0x04DC,
  26959. Zlinebelow: 0x1E94,
  26960. Zmonospace: 0xFF3A,
  26961. Zsmall: 0xF77A,
  26962. Zstroke: 0x01B5,
  26963. a: 0x0061,
  26964. aabengali: 0x0986,
  26965. aacute: 0x00E1,
  26966. aadeva: 0x0906,
  26967. aagujarati: 0x0A86,
  26968. aagurmukhi: 0x0A06,
  26969. aamatragurmukhi: 0x0A3E,
  26970. aarusquare: 0x3303,
  26971. aavowelsignbengali: 0x09BE,
  26972. aavowelsigndeva: 0x093E,
  26973. aavowelsigngujarati: 0x0ABE,
  26974. abbreviationmarkarmenian: 0x055F,
  26975. abbreviationsigndeva: 0x0970,
  26976. abengali: 0x0985,
  26977. abopomofo: 0x311A,
  26978. abreve: 0x0103,
  26979. abreveacute: 0x1EAF,
  26980. abrevecyrillic: 0x04D1,
  26981. abrevedotbelow: 0x1EB7,
  26982. abrevegrave: 0x1EB1,
  26983. abrevehookabove: 0x1EB3,
  26984. abrevetilde: 0x1EB5,
  26985. acaron: 0x01CE,
  26986. acircle: 0x24D0,
  26987. acircumflex: 0x00E2,
  26988. acircumflexacute: 0x1EA5,
  26989. acircumflexdotbelow: 0x1EAD,
  26990. acircumflexgrave: 0x1EA7,
  26991. acircumflexhookabove: 0x1EA9,
  26992. acircumflextilde: 0x1EAB,
  26993. acute: 0x00B4,
  26994. acutebelowcmb: 0x0317,
  26995. acutecmb: 0x0301,
  26996. acutecomb: 0x0301,
  26997. acutedeva: 0x0954,
  26998. acutelowmod: 0x02CF,
  26999. acutetonecmb: 0x0341,
  27000. acyrillic: 0x0430,
  27001. adblgrave: 0x0201,
  27002. addakgurmukhi: 0x0A71,
  27003. adeva: 0x0905,
  27004. adieresis: 0x00E4,
  27005. adieresiscyrillic: 0x04D3,
  27006. adieresismacron: 0x01DF,
  27007. adotbelow: 0x1EA1,
  27008. adotmacron: 0x01E1,
  27009. ae: 0x00E6,
  27010. aeacute: 0x01FD,
  27011. aekorean: 0x3150,
  27012. aemacron: 0x01E3,
  27013. afii00208: 0x2015,
  27014. afii08941: 0x20A4,
  27015. afii10017: 0x0410,
  27016. afii10018: 0x0411,
  27017. afii10019: 0x0412,
  27018. afii10020: 0x0413,
  27019. afii10021: 0x0414,
  27020. afii10022: 0x0415,
  27021. afii10023: 0x0401,
  27022. afii10024: 0x0416,
  27023. afii10025: 0x0417,
  27024. afii10026: 0x0418,
  27025. afii10027: 0x0419,
  27026. afii10028: 0x041A,
  27027. afii10029: 0x041B,
  27028. afii10030: 0x041C,
  27029. afii10031: 0x041D,
  27030. afii10032: 0x041E,
  27031. afii10033: 0x041F,
  27032. afii10034: 0x0420,
  27033. afii10035: 0x0421,
  27034. afii10036: 0x0422,
  27035. afii10037: 0x0423,
  27036. afii10038: 0x0424,
  27037. afii10039: 0x0425,
  27038. afii10040: 0x0426,
  27039. afii10041: 0x0427,
  27040. afii10042: 0x0428,
  27041. afii10043: 0x0429,
  27042. afii10044: 0x042A,
  27043. afii10045: 0x042B,
  27044. afii10046: 0x042C,
  27045. afii10047: 0x042D,
  27046. afii10048: 0x042E,
  27047. afii10049: 0x042F,
  27048. afii10050: 0x0490,
  27049. afii10051: 0x0402,
  27050. afii10052: 0x0403,
  27051. afii10053: 0x0404,
  27052. afii10054: 0x0405,
  27053. afii10055: 0x0406,
  27054. afii10056: 0x0407,
  27055. afii10057: 0x0408,
  27056. afii10058: 0x0409,
  27057. afii10059: 0x040A,
  27058. afii10060: 0x040B,
  27059. afii10061: 0x040C,
  27060. afii10062: 0x040E,
  27061. afii10063: 0xF6C4,
  27062. afii10064: 0xF6C5,
  27063. afii10065: 0x0430,
  27064. afii10066: 0x0431,
  27065. afii10067: 0x0432,
  27066. afii10068: 0x0433,
  27067. afii10069: 0x0434,
  27068. afii10070: 0x0435,
  27069. afii10071: 0x0451,
  27070. afii10072: 0x0436,
  27071. afii10073: 0x0437,
  27072. afii10074: 0x0438,
  27073. afii10075: 0x0439,
  27074. afii10076: 0x043A,
  27075. afii10077: 0x043B,
  27076. afii10078: 0x043C,
  27077. afii10079: 0x043D,
  27078. afii10080: 0x043E,
  27079. afii10081: 0x043F,
  27080. afii10082: 0x0440,
  27081. afii10083: 0x0441,
  27082. afii10084: 0x0442,
  27083. afii10085: 0x0443,
  27084. afii10086: 0x0444,
  27085. afii10087: 0x0445,
  27086. afii10088: 0x0446,
  27087. afii10089: 0x0447,
  27088. afii10090: 0x0448,
  27089. afii10091: 0x0449,
  27090. afii10092: 0x044A,
  27091. afii10093: 0x044B,
  27092. afii10094: 0x044C,
  27093. afii10095: 0x044D,
  27094. afii10096: 0x044E,
  27095. afii10097: 0x044F,
  27096. afii10098: 0x0491,
  27097. afii10099: 0x0452,
  27098. afii10100: 0x0453,
  27099. afii10101: 0x0454,
  27100. afii10102: 0x0455,
  27101. afii10103: 0x0456,
  27102. afii10104: 0x0457,
  27103. afii10105: 0x0458,
  27104. afii10106: 0x0459,
  27105. afii10107: 0x045A,
  27106. afii10108: 0x045B,
  27107. afii10109: 0x045C,
  27108. afii10110: 0x045E,
  27109. afii10145: 0x040F,
  27110. afii10146: 0x0462,
  27111. afii10147: 0x0472,
  27112. afii10148: 0x0474,
  27113. afii10192: 0xF6C6,
  27114. afii10193: 0x045F,
  27115. afii10194: 0x0463,
  27116. afii10195: 0x0473,
  27117. afii10196: 0x0475,
  27118. afii10831: 0xF6C7,
  27119. afii10832: 0xF6C8,
  27120. afii10846: 0x04D9,
  27121. afii299: 0x200E,
  27122. afii300: 0x200F,
  27123. afii301: 0x200D,
  27124. afii57381: 0x066A,
  27125. afii57388: 0x060C,
  27126. afii57392: 0x0660,
  27127. afii57393: 0x0661,
  27128. afii57394: 0x0662,
  27129. afii57395: 0x0663,
  27130. afii57396: 0x0664,
  27131. afii57397: 0x0665,
  27132. afii57398: 0x0666,
  27133. afii57399: 0x0667,
  27134. afii57400: 0x0668,
  27135. afii57401: 0x0669,
  27136. afii57403: 0x061B,
  27137. afii57407: 0x061F,
  27138. afii57409: 0x0621,
  27139. afii57410: 0x0622,
  27140. afii57411: 0x0623,
  27141. afii57412: 0x0624,
  27142. afii57413: 0x0625,
  27143. afii57414: 0x0626,
  27144. afii57415: 0x0627,
  27145. afii57416: 0x0628,
  27146. afii57417: 0x0629,
  27147. afii57418: 0x062A,
  27148. afii57419: 0x062B,
  27149. afii57420: 0x062C,
  27150. afii57421: 0x062D,
  27151. afii57422: 0x062E,
  27152. afii57423: 0x062F,
  27153. afii57424: 0x0630,
  27154. afii57425: 0x0631,
  27155. afii57426: 0x0632,
  27156. afii57427: 0x0633,
  27157. afii57428: 0x0634,
  27158. afii57429: 0x0635,
  27159. afii57430: 0x0636,
  27160. afii57431: 0x0637,
  27161. afii57432: 0x0638,
  27162. afii57433: 0x0639,
  27163. afii57434: 0x063A,
  27164. afii57440: 0x0640,
  27165. afii57441: 0x0641,
  27166. afii57442: 0x0642,
  27167. afii57443: 0x0643,
  27168. afii57444: 0x0644,
  27169. afii57445: 0x0645,
  27170. afii57446: 0x0646,
  27171. afii57448: 0x0648,
  27172. afii57449: 0x0649,
  27173. afii57450: 0x064A,
  27174. afii57451: 0x064B,
  27175. afii57452: 0x064C,
  27176. afii57453: 0x064D,
  27177. afii57454: 0x064E,
  27178. afii57455: 0x064F,
  27179. afii57456: 0x0650,
  27180. afii57457: 0x0651,
  27181. afii57458: 0x0652,
  27182. afii57470: 0x0647,
  27183. afii57505: 0x06A4,
  27184. afii57506: 0x067E,
  27185. afii57507: 0x0686,
  27186. afii57508: 0x0698,
  27187. afii57509: 0x06AF,
  27188. afii57511: 0x0679,
  27189. afii57512: 0x0688,
  27190. afii57513: 0x0691,
  27191. afii57514: 0x06BA,
  27192. afii57519: 0x06D2,
  27193. afii57534: 0x06D5,
  27194. afii57636: 0x20AA,
  27195. afii57645: 0x05BE,
  27196. afii57658: 0x05C3,
  27197. afii57664: 0x05D0,
  27198. afii57665: 0x05D1,
  27199. afii57666: 0x05D2,
  27200. afii57667: 0x05D3,
  27201. afii57668: 0x05D4,
  27202. afii57669: 0x05D5,
  27203. afii57670: 0x05D6,
  27204. afii57671: 0x05D7,
  27205. afii57672: 0x05D8,
  27206. afii57673: 0x05D9,
  27207. afii57674: 0x05DA,
  27208. afii57675: 0x05DB,
  27209. afii57676: 0x05DC,
  27210. afii57677: 0x05DD,
  27211. afii57678: 0x05DE,
  27212. afii57679: 0x05DF,
  27213. afii57680: 0x05E0,
  27214. afii57681: 0x05E1,
  27215. afii57682: 0x05E2,
  27216. afii57683: 0x05E3,
  27217. afii57684: 0x05E4,
  27218. afii57685: 0x05E5,
  27219. afii57686: 0x05E6,
  27220. afii57687: 0x05E7,
  27221. afii57688: 0x05E8,
  27222. afii57689: 0x05E9,
  27223. afii57690: 0x05EA,
  27224. afii57694: 0xFB2A,
  27225. afii57695: 0xFB2B,
  27226. afii57700: 0xFB4B,
  27227. afii57705: 0xFB1F,
  27228. afii57716: 0x05F0,
  27229. afii57717: 0x05F1,
  27230. afii57718: 0x05F2,
  27231. afii57723: 0xFB35,
  27232. afii57793: 0x05B4,
  27233. afii57794: 0x05B5,
  27234. afii57795: 0x05B6,
  27235. afii57796: 0x05BB,
  27236. afii57797: 0x05B8,
  27237. afii57798: 0x05B7,
  27238. afii57799: 0x05B0,
  27239. afii57800: 0x05B2,
  27240. afii57801: 0x05B1,
  27241. afii57802: 0x05B3,
  27242. afii57803: 0x05C2,
  27243. afii57804: 0x05C1,
  27244. afii57806: 0x05B9,
  27245. afii57807: 0x05BC,
  27246. afii57839: 0x05BD,
  27247. afii57841: 0x05BF,
  27248. afii57842: 0x05C0,
  27249. afii57929: 0x02BC,
  27250. afii61248: 0x2105,
  27251. afii61289: 0x2113,
  27252. afii61352: 0x2116,
  27253. afii61573: 0x202C,
  27254. afii61574: 0x202D,
  27255. afii61575: 0x202E,
  27256. afii61664: 0x200C,
  27257. afii63167: 0x066D,
  27258. afii64937: 0x02BD,
  27259. agrave: 0x00E0,
  27260. agujarati: 0x0A85,
  27261. agurmukhi: 0x0A05,
  27262. ahiragana: 0x3042,
  27263. ahookabove: 0x1EA3,
  27264. aibengali: 0x0990,
  27265. aibopomofo: 0x311E,
  27266. aideva: 0x0910,
  27267. aiecyrillic: 0x04D5,
  27268. aigujarati: 0x0A90,
  27269. aigurmukhi: 0x0A10,
  27270. aimatragurmukhi: 0x0A48,
  27271. ainarabic: 0x0639,
  27272. ainfinalarabic: 0xFECA,
  27273. aininitialarabic: 0xFECB,
  27274. ainmedialarabic: 0xFECC,
  27275. ainvertedbreve: 0x0203,
  27276. aivowelsignbengali: 0x09C8,
  27277. aivowelsigndeva: 0x0948,
  27278. aivowelsigngujarati: 0x0AC8,
  27279. akatakana: 0x30A2,
  27280. akatakanahalfwidth: 0xFF71,
  27281. akorean: 0x314F,
  27282. alef: 0x05D0,
  27283. alefarabic: 0x0627,
  27284. alefdageshhebrew: 0xFB30,
  27285. aleffinalarabic: 0xFE8E,
  27286. alefhamzaabovearabic: 0x0623,
  27287. alefhamzaabovefinalarabic: 0xFE84,
  27288. alefhamzabelowarabic: 0x0625,
  27289. alefhamzabelowfinalarabic: 0xFE88,
  27290. alefhebrew: 0x05D0,
  27291. aleflamedhebrew: 0xFB4F,
  27292. alefmaddaabovearabic: 0x0622,
  27293. alefmaddaabovefinalarabic: 0xFE82,
  27294. alefmaksuraarabic: 0x0649,
  27295. alefmaksurafinalarabic: 0xFEF0,
  27296. alefmaksurainitialarabic: 0xFEF3,
  27297. alefmaksuramedialarabic: 0xFEF4,
  27298. alefpatahhebrew: 0xFB2E,
  27299. alefqamatshebrew: 0xFB2F,
  27300. aleph: 0x2135,
  27301. allequal: 0x224C,
  27302. alpha: 0x03B1,
  27303. alphatonos: 0x03AC,
  27304. amacron: 0x0101,
  27305. amonospace: 0xFF41,
  27306. ampersand: 0x0026,
  27307. ampersandmonospace: 0xFF06,
  27308. ampersandsmall: 0xF726,
  27309. amsquare: 0x33C2,
  27310. anbopomofo: 0x3122,
  27311. angbopomofo: 0x3124,
  27312. angbracketleft: 0x3008, // This glyph is missing from Adobe's original list.
  27313. angbracketright: 0x3009, // This glyph is missing from Adobe's original list.
  27314. angkhankhuthai: 0x0E5A,
  27315. angle: 0x2220,
  27316. anglebracketleft: 0x3008,
  27317. anglebracketleftvertical: 0xFE3F,
  27318. anglebracketright: 0x3009,
  27319. anglebracketrightvertical: 0xFE40,
  27320. angleleft: 0x2329,
  27321. angleright: 0x232A,
  27322. angstrom: 0x212B,
  27323. anoteleia: 0x0387,
  27324. anudattadeva: 0x0952,
  27325. anusvarabengali: 0x0982,
  27326. anusvaradeva: 0x0902,
  27327. anusvaragujarati: 0x0A82,
  27328. aogonek: 0x0105,
  27329. apaatosquare: 0x3300,
  27330. aparen: 0x249C,
  27331. apostrophearmenian: 0x055A,
  27332. apostrophemod: 0x02BC,
  27333. apple: 0xF8FF,
  27334. approaches: 0x2250,
  27335. approxequal: 0x2248,
  27336. approxequalorimage: 0x2252,
  27337. approximatelyequal: 0x2245,
  27338. araeaekorean: 0x318E,
  27339. araeakorean: 0x318D,
  27340. arc: 0x2312,
  27341. arighthalfring: 0x1E9A,
  27342. aring: 0x00E5,
  27343. aringacute: 0x01FB,
  27344. aringbelow: 0x1E01,
  27345. arrowboth: 0x2194,
  27346. arrowdashdown: 0x21E3,
  27347. arrowdashleft: 0x21E0,
  27348. arrowdashright: 0x21E2,
  27349. arrowdashup: 0x21E1,
  27350. arrowdblboth: 0x21D4,
  27351. arrowdbldown: 0x21D3,
  27352. arrowdblleft: 0x21D0,
  27353. arrowdblright: 0x21D2,
  27354. arrowdblup: 0x21D1,
  27355. arrowdown: 0x2193,
  27356. arrowdownleft: 0x2199,
  27357. arrowdownright: 0x2198,
  27358. arrowdownwhite: 0x21E9,
  27359. arrowheaddownmod: 0x02C5,
  27360. arrowheadleftmod: 0x02C2,
  27361. arrowheadrightmod: 0x02C3,
  27362. arrowheadupmod: 0x02C4,
  27363. arrowhorizex: 0xF8E7,
  27364. arrowleft: 0x2190,
  27365. arrowleftdbl: 0x21D0,
  27366. arrowleftdblstroke: 0x21CD,
  27367. arrowleftoverright: 0x21C6,
  27368. arrowleftwhite: 0x21E6,
  27369. arrowright: 0x2192,
  27370. arrowrightdblstroke: 0x21CF,
  27371. arrowrightheavy: 0x279E,
  27372. arrowrightoverleft: 0x21C4,
  27373. arrowrightwhite: 0x21E8,
  27374. arrowtableft: 0x21E4,
  27375. arrowtabright: 0x21E5,
  27376. arrowup: 0x2191,
  27377. arrowupdn: 0x2195,
  27378. arrowupdnbse: 0x21A8,
  27379. arrowupdownbase: 0x21A8,
  27380. arrowupleft: 0x2196,
  27381. arrowupleftofdown: 0x21C5,
  27382. arrowupright: 0x2197,
  27383. arrowupwhite: 0x21E7,
  27384. arrowvertex: 0xF8E6,
  27385. asciicircum: 0x005E,
  27386. asciicircummonospace: 0xFF3E,
  27387. asciitilde: 0x007E,
  27388. asciitildemonospace: 0xFF5E,
  27389. ascript: 0x0251,
  27390. ascriptturned: 0x0252,
  27391. asmallhiragana: 0x3041,
  27392. asmallkatakana: 0x30A1,
  27393. asmallkatakanahalfwidth: 0xFF67,
  27394. asterisk: 0x002A,
  27395. asteriskaltonearabic: 0x066D,
  27396. asteriskarabic: 0x066D,
  27397. asteriskmath: 0x2217,
  27398. asteriskmonospace: 0xFF0A,
  27399. asterisksmall: 0xFE61,
  27400. asterism: 0x2042,
  27401. asuperior: 0xF6E9,
  27402. asymptoticallyequal: 0x2243,
  27403. at: 0x0040,
  27404. atilde: 0x00E3,
  27405. atmonospace: 0xFF20,
  27406. atsmall: 0xFE6B,
  27407. aturned: 0x0250,
  27408. aubengali: 0x0994,
  27409. aubopomofo: 0x3120,
  27410. audeva: 0x0914,
  27411. augujarati: 0x0A94,
  27412. augurmukhi: 0x0A14,
  27413. aulengthmarkbengali: 0x09D7,
  27414. aumatragurmukhi: 0x0A4C,
  27415. auvowelsignbengali: 0x09CC,
  27416. auvowelsigndeva: 0x094C,
  27417. auvowelsigngujarati: 0x0ACC,
  27418. avagrahadeva: 0x093D,
  27419. aybarmenian: 0x0561,
  27420. ayin: 0x05E2,
  27421. ayinaltonehebrew: 0xFB20,
  27422. ayinhebrew: 0x05E2,
  27423. b: 0x0062,
  27424. babengali: 0x09AC,
  27425. backslash: 0x005C,
  27426. backslashmonospace: 0xFF3C,
  27427. badeva: 0x092C,
  27428. bagujarati: 0x0AAC,
  27429. bagurmukhi: 0x0A2C,
  27430. bahiragana: 0x3070,
  27431. bahtthai: 0x0E3F,
  27432. bakatakana: 0x30D0,
  27433. bar: 0x007C,
  27434. barmonospace: 0xFF5C,
  27435. bbopomofo: 0x3105,
  27436. bcircle: 0x24D1,
  27437. bdotaccent: 0x1E03,
  27438. bdotbelow: 0x1E05,
  27439. beamedsixteenthnotes: 0x266C,
  27440. because: 0x2235,
  27441. becyrillic: 0x0431,
  27442. beharabic: 0x0628,
  27443. behfinalarabic: 0xFE90,
  27444. behinitialarabic: 0xFE91,
  27445. behiragana: 0x3079,
  27446. behmedialarabic: 0xFE92,
  27447. behmeeminitialarabic: 0xFC9F,
  27448. behmeemisolatedarabic: 0xFC08,
  27449. behnoonfinalarabic: 0xFC6D,
  27450. bekatakana: 0x30D9,
  27451. benarmenian: 0x0562,
  27452. bet: 0x05D1,
  27453. beta: 0x03B2,
  27454. betasymbolgreek: 0x03D0,
  27455. betdagesh: 0xFB31,
  27456. betdageshhebrew: 0xFB31,
  27457. bethebrew: 0x05D1,
  27458. betrafehebrew: 0xFB4C,
  27459. bhabengali: 0x09AD,
  27460. bhadeva: 0x092D,
  27461. bhagujarati: 0x0AAD,
  27462. bhagurmukhi: 0x0A2D,
  27463. bhook: 0x0253,
  27464. bihiragana: 0x3073,
  27465. bikatakana: 0x30D3,
  27466. bilabialclick: 0x0298,
  27467. bindigurmukhi: 0x0A02,
  27468. birusquare: 0x3331,
  27469. blackcircle: 0x25CF,
  27470. blackdiamond: 0x25C6,
  27471. blackdownpointingtriangle: 0x25BC,
  27472. blackleftpointingpointer: 0x25C4,
  27473. blackleftpointingtriangle: 0x25C0,
  27474. blacklenticularbracketleft: 0x3010,
  27475. blacklenticularbracketleftvertical: 0xFE3B,
  27476. blacklenticularbracketright: 0x3011,
  27477. blacklenticularbracketrightvertical: 0xFE3C,
  27478. blacklowerlefttriangle: 0x25E3,
  27479. blacklowerrighttriangle: 0x25E2,
  27480. blackrectangle: 0x25AC,
  27481. blackrightpointingpointer: 0x25BA,
  27482. blackrightpointingtriangle: 0x25B6,
  27483. blacksmallsquare: 0x25AA,
  27484. blacksmilingface: 0x263B,
  27485. blacksquare: 0x25A0,
  27486. blackstar: 0x2605,
  27487. blackupperlefttriangle: 0x25E4,
  27488. blackupperrighttriangle: 0x25E5,
  27489. blackuppointingsmalltriangle: 0x25B4,
  27490. blackuppointingtriangle: 0x25B2,
  27491. blank: 0x2423,
  27492. blinebelow: 0x1E07,
  27493. block: 0x2588,
  27494. bmonospace: 0xFF42,
  27495. bobaimaithai: 0x0E1A,
  27496. bohiragana: 0x307C,
  27497. bokatakana: 0x30DC,
  27498. bparen: 0x249D,
  27499. bqsquare: 0x33C3,
  27500. braceex: 0xF8F4,
  27501. braceleft: 0x007B,
  27502. braceleftbt: 0xF8F3,
  27503. braceleftmid: 0xF8F2,
  27504. braceleftmonospace: 0xFF5B,
  27505. braceleftsmall: 0xFE5B,
  27506. bracelefttp: 0xF8F1,
  27507. braceleftvertical: 0xFE37,
  27508. braceright: 0x007D,
  27509. bracerightbt: 0xF8FE,
  27510. bracerightmid: 0xF8FD,
  27511. bracerightmonospace: 0xFF5D,
  27512. bracerightsmall: 0xFE5C,
  27513. bracerighttp: 0xF8FC,
  27514. bracerightvertical: 0xFE38,
  27515. bracketleft: 0x005B,
  27516. bracketleftbt: 0xF8F0,
  27517. bracketleftex: 0xF8EF,
  27518. bracketleftmonospace: 0xFF3B,
  27519. bracketlefttp: 0xF8EE,
  27520. bracketright: 0x005D,
  27521. bracketrightbt: 0xF8FB,
  27522. bracketrightex: 0xF8FA,
  27523. bracketrightmonospace: 0xFF3D,
  27524. bracketrighttp: 0xF8F9,
  27525. breve: 0x02D8,
  27526. brevebelowcmb: 0x032E,
  27527. brevecmb: 0x0306,
  27528. breveinvertedbelowcmb: 0x032F,
  27529. breveinvertedcmb: 0x0311,
  27530. breveinverteddoublecmb: 0x0361,
  27531. bridgebelowcmb: 0x032A,
  27532. bridgeinvertedbelowcmb: 0x033A,
  27533. brokenbar: 0x00A6,
  27534. bstroke: 0x0180,
  27535. bsuperior: 0xF6EA,
  27536. btopbar: 0x0183,
  27537. buhiragana: 0x3076,
  27538. bukatakana: 0x30D6,
  27539. bullet: 0x2022,
  27540. bulletinverse: 0x25D8,
  27541. bulletoperator: 0x2219,
  27542. bullseye: 0x25CE,
  27543. c: 0x0063,
  27544. caarmenian: 0x056E,
  27545. cabengali: 0x099A,
  27546. cacute: 0x0107,
  27547. cadeva: 0x091A,
  27548. cagujarati: 0x0A9A,
  27549. cagurmukhi: 0x0A1A,
  27550. calsquare: 0x3388,
  27551. candrabindubengali: 0x0981,
  27552. candrabinducmb: 0x0310,
  27553. candrabindudeva: 0x0901,
  27554. candrabindugujarati: 0x0A81,
  27555. capslock: 0x21EA,
  27556. careof: 0x2105,
  27557. caron: 0x02C7,
  27558. caronbelowcmb: 0x032C,
  27559. caroncmb: 0x030C,
  27560. carriagereturn: 0x21B5,
  27561. cbopomofo: 0x3118,
  27562. ccaron: 0x010D,
  27563. ccedilla: 0x00E7,
  27564. ccedillaacute: 0x1E09,
  27565. ccircle: 0x24D2,
  27566. ccircumflex: 0x0109,
  27567. ccurl: 0x0255,
  27568. cdot: 0x010B,
  27569. cdotaccent: 0x010B,
  27570. cdsquare: 0x33C5,
  27571. cedilla: 0x00B8,
  27572. cedillacmb: 0x0327,
  27573. cent: 0x00A2,
  27574. centigrade: 0x2103,
  27575. centinferior: 0xF6DF,
  27576. centmonospace: 0xFFE0,
  27577. centoldstyle: 0xF7A2,
  27578. centsuperior: 0xF6E0,
  27579. chaarmenian: 0x0579,
  27580. chabengali: 0x099B,
  27581. chadeva: 0x091B,
  27582. chagujarati: 0x0A9B,
  27583. chagurmukhi: 0x0A1B,
  27584. chbopomofo: 0x3114,
  27585. cheabkhasiancyrillic: 0x04BD,
  27586. checkmark: 0x2713,
  27587. checyrillic: 0x0447,
  27588. chedescenderabkhasiancyrillic: 0x04BF,
  27589. chedescendercyrillic: 0x04B7,
  27590. chedieresiscyrillic: 0x04F5,
  27591. cheharmenian: 0x0573,
  27592. chekhakassiancyrillic: 0x04CC,
  27593. cheverticalstrokecyrillic: 0x04B9,
  27594. chi: 0x03C7,
  27595. chieuchacirclekorean: 0x3277,
  27596. chieuchaparenkorean: 0x3217,
  27597. chieuchcirclekorean: 0x3269,
  27598. chieuchkorean: 0x314A,
  27599. chieuchparenkorean: 0x3209,
  27600. chochangthai: 0x0E0A,
  27601. chochanthai: 0x0E08,
  27602. chochingthai: 0x0E09,
  27603. chochoethai: 0x0E0C,
  27604. chook: 0x0188,
  27605. cieucacirclekorean: 0x3276,
  27606. cieucaparenkorean: 0x3216,
  27607. cieuccirclekorean: 0x3268,
  27608. cieuckorean: 0x3148,
  27609. cieucparenkorean: 0x3208,
  27610. cieucuparenkorean: 0x321C,
  27611. circle: 0x25CB,
  27612. circlecopyrt: 0x00A9, // This glyph is missing from Adobe's original list.
  27613. circlemultiply: 0x2297,
  27614. circleot: 0x2299,
  27615. circleplus: 0x2295,
  27616. circlepostalmark: 0x3036,
  27617. circlewithlefthalfblack: 0x25D0,
  27618. circlewithrighthalfblack: 0x25D1,
  27619. circumflex: 0x02C6,
  27620. circumflexbelowcmb: 0x032D,
  27621. circumflexcmb: 0x0302,
  27622. clear: 0x2327,
  27623. clickalveolar: 0x01C2,
  27624. clickdental: 0x01C0,
  27625. clicklateral: 0x01C1,
  27626. clickretroflex: 0x01C3,
  27627. club: 0x2663,
  27628. clubsuitblack: 0x2663,
  27629. clubsuitwhite: 0x2667,
  27630. cmcubedsquare: 0x33A4,
  27631. cmonospace: 0xFF43,
  27632. cmsquaredsquare: 0x33A0,
  27633. coarmenian: 0x0581,
  27634. colon: 0x003A,
  27635. colonmonetary: 0x20A1,
  27636. colonmonospace: 0xFF1A,
  27637. colonsign: 0x20A1,
  27638. colonsmall: 0xFE55,
  27639. colontriangularhalfmod: 0x02D1,
  27640. colontriangularmod: 0x02D0,
  27641. comma: 0x002C,
  27642. commaabovecmb: 0x0313,
  27643. commaaboverightcmb: 0x0315,
  27644. commaaccent: 0xF6C3,
  27645. commaarabic: 0x060C,
  27646. commaarmenian: 0x055D,
  27647. commainferior: 0xF6E1,
  27648. commamonospace: 0xFF0C,
  27649. commareversedabovecmb: 0x0314,
  27650. commareversedmod: 0x02BD,
  27651. commasmall: 0xFE50,
  27652. commasuperior: 0xF6E2,
  27653. commaturnedabovecmb: 0x0312,
  27654. commaturnedmod: 0x02BB,
  27655. compass: 0x263C,
  27656. congruent: 0x2245,
  27657. contourintegral: 0x222E,
  27658. control: 0x2303,
  27659. controlACK: 0x0006,
  27660. controlBEL: 0x0007,
  27661. controlBS: 0x0008,
  27662. controlCAN: 0x0018,
  27663. controlCR: 0x000D,
  27664. controlDC1: 0x0011,
  27665. controlDC2: 0x0012,
  27666. controlDC3: 0x0013,
  27667. controlDC4: 0x0014,
  27668. controlDEL: 0x007F,
  27669. controlDLE: 0x0010,
  27670. controlEM: 0x0019,
  27671. controlENQ: 0x0005,
  27672. controlEOT: 0x0004,
  27673. controlESC: 0x001B,
  27674. controlETB: 0x0017,
  27675. controlETX: 0x0003,
  27676. controlFF: 0x000C,
  27677. controlFS: 0x001C,
  27678. controlGS: 0x001D,
  27679. controlHT: 0x0009,
  27680. controlLF: 0x000A,
  27681. controlNAK: 0x0015,
  27682. controlRS: 0x001E,
  27683. controlSI: 0x000F,
  27684. controlSO: 0x000E,
  27685. controlSOT: 0x0002,
  27686. controlSTX: 0x0001,
  27687. controlSUB: 0x001A,
  27688. controlSYN: 0x0016,
  27689. controlUS: 0x001F,
  27690. controlVT: 0x000B,
  27691. copyright: 0x00A9,
  27692. copyrightsans: 0xF8E9,
  27693. copyrightserif: 0xF6D9,
  27694. cornerbracketleft: 0x300C,
  27695. cornerbracketlefthalfwidth: 0xFF62,
  27696. cornerbracketleftvertical: 0xFE41,
  27697. cornerbracketright: 0x300D,
  27698. cornerbracketrighthalfwidth: 0xFF63,
  27699. cornerbracketrightvertical: 0xFE42,
  27700. corporationsquare: 0x337F,
  27701. cosquare: 0x33C7,
  27702. coverkgsquare: 0x33C6,
  27703. cparen: 0x249E,
  27704. cruzeiro: 0x20A2,
  27705. cstretched: 0x0297,
  27706. curlyand: 0x22CF,
  27707. curlyor: 0x22CE,
  27708. currency: 0x00A4,
  27709. cyrBreve: 0xF6D1,
  27710. cyrFlex: 0xF6D2,
  27711. cyrbreve: 0xF6D4,
  27712. cyrflex: 0xF6D5,
  27713. d: 0x0064,
  27714. daarmenian: 0x0564,
  27715. dabengali: 0x09A6,
  27716. dadarabic: 0x0636,
  27717. dadeva: 0x0926,
  27718. dadfinalarabic: 0xFEBE,
  27719. dadinitialarabic: 0xFEBF,
  27720. dadmedialarabic: 0xFEC0,
  27721. dagesh: 0x05BC,
  27722. dageshhebrew: 0x05BC,
  27723. dagger: 0x2020,
  27724. daggerdbl: 0x2021,
  27725. dagujarati: 0x0AA6,
  27726. dagurmukhi: 0x0A26,
  27727. dahiragana: 0x3060,
  27728. dakatakana: 0x30C0,
  27729. dalarabic: 0x062F,
  27730. dalet: 0x05D3,
  27731. daletdagesh: 0xFB33,
  27732. daletdageshhebrew: 0xFB33,
  27733. dalethebrew: 0x05D3,
  27734. dalfinalarabic: 0xFEAA,
  27735. dammaarabic: 0x064F,
  27736. dammalowarabic: 0x064F,
  27737. dammatanaltonearabic: 0x064C,
  27738. dammatanarabic: 0x064C,
  27739. danda: 0x0964,
  27740. dargahebrew: 0x05A7,
  27741. dargalefthebrew: 0x05A7,
  27742. dasiapneumatacyrilliccmb: 0x0485,
  27743. dblGrave: 0xF6D3,
  27744. dblanglebracketleft: 0x300A,
  27745. dblanglebracketleftvertical: 0xFE3D,
  27746. dblanglebracketright: 0x300B,
  27747. dblanglebracketrightvertical: 0xFE3E,
  27748. dblarchinvertedbelowcmb: 0x032B,
  27749. dblarrowleft: 0x21D4,
  27750. dblarrowright: 0x21D2,
  27751. dbldanda: 0x0965,
  27752. dblgrave: 0xF6D6,
  27753. dblgravecmb: 0x030F,
  27754. dblintegral: 0x222C,
  27755. dbllowline: 0x2017,
  27756. dbllowlinecmb: 0x0333,
  27757. dbloverlinecmb: 0x033F,
  27758. dblprimemod: 0x02BA,
  27759. dblverticalbar: 0x2016,
  27760. dblverticallineabovecmb: 0x030E,
  27761. dbopomofo: 0x3109,
  27762. dbsquare: 0x33C8,
  27763. dcaron: 0x010F,
  27764. dcedilla: 0x1E11,
  27765. dcircle: 0x24D3,
  27766. dcircumflexbelow: 0x1E13,
  27767. dcroat: 0x0111,
  27768. ddabengali: 0x09A1,
  27769. ddadeva: 0x0921,
  27770. ddagujarati: 0x0AA1,
  27771. ddagurmukhi: 0x0A21,
  27772. ddalarabic: 0x0688,
  27773. ddalfinalarabic: 0xFB89,
  27774. dddhadeva: 0x095C,
  27775. ddhabengali: 0x09A2,
  27776. ddhadeva: 0x0922,
  27777. ddhagujarati: 0x0AA2,
  27778. ddhagurmukhi: 0x0A22,
  27779. ddotaccent: 0x1E0B,
  27780. ddotbelow: 0x1E0D,
  27781. decimalseparatorarabic: 0x066B,
  27782. decimalseparatorpersian: 0x066B,
  27783. decyrillic: 0x0434,
  27784. degree: 0x00B0,
  27785. dehihebrew: 0x05AD,
  27786. dehiragana: 0x3067,
  27787. deicoptic: 0x03EF,
  27788. dekatakana: 0x30C7,
  27789. deleteleft: 0x232B,
  27790. deleteright: 0x2326,
  27791. delta: 0x03B4,
  27792. deltaturned: 0x018D,
  27793. denominatorminusonenumeratorbengali: 0x09F8,
  27794. dezh: 0x02A4,
  27795. dhabengali: 0x09A7,
  27796. dhadeva: 0x0927,
  27797. dhagujarati: 0x0AA7,
  27798. dhagurmukhi: 0x0A27,
  27799. dhook: 0x0257,
  27800. dialytikatonos: 0x0385,
  27801. dialytikatonoscmb: 0x0344,
  27802. diamond: 0x2666,
  27803. diamondsuitwhite: 0x2662,
  27804. dieresis: 0x00A8,
  27805. dieresisacute: 0xF6D7,
  27806. dieresisbelowcmb: 0x0324,
  27807. dieresiscmb: 0x0308,
  27808. dieresisgrave: 0xF6D8,
  27809. dieresistonos: 0x0385,
  27810. dihiragana: 0x3062,
  27811. dikatakana: 0x30C2,
  27812. dittomark: 0x3003,
  27813. divide: 0x00F7,
  27814. divides: 0x2223,
  27815. divisionslash: 0x2215,
  27816. djecyrillic: 0x0452,
  27817. dkshade: 0x2593,
  27818. dlinebelow: 0x1E0F,
  27819. dlsquare: 0x3397,
  27820. dmacron: 0x0111,
  27821. dmonospace: 0xFF44,
  27822. dnblock: 0x2584,
  27823. dochadathai: 0x0E0E,
  27824. dodekthai: 0x0E14,
  27825. dohiragana: 0x3069,
  27826. dokatakana: 0x30C9,
  27827. dollar: 0x0024,
  27828. dollarinferior: 0xF6E3,
  27829. dollarmonospace: 0xFF04,
  27830. dollaroldstyle: 0xF724,
  27831. dollarsmall: 0xFE69,
  27832. dollarsuperior: 0xF6E4,
  27833. dong: 0x20AB,
  27834. dorusquare: 0x3326,
  27835. dotaccent: 0x02D9,
  27836. dotaccentcmb: 0x0307,
  27837. dotbelowcmb: 0x0323,
  27838. dotbelowcomb: 0x0323,
  27839. dotkatakana: 0x30FB,
  27840. dotlessi: 0x0131,
  27841. dotlessj: 0xF6BE,
  27842. dotlessjstrokehook: 0x0284,
  27843. dotmath: 0x22C5,
  27844. dottedcircle: 0x25CC,
  27845. doubleyodpatah: 0xFB1F,
  27846. doubleyodpatahhebrew: 0xFB1F,
  27847. downtackbelowcmb: 0x031E,
  27848. downtackmod: 0x02D5,
  27849. dparen: 0x249F,
  27850. dsuperior: 0xF6EB,
  27851. dtail: 0x0256,
  27852. dtopbar: 0x018C,
  27853. duhiragana: 0x3065,
  27854. dukatakana: 0x30C5,
  27855. dz: 0x01F3,
  27856. dzaltone: 0x02A3,
  27857. dzcaron: 0x01C6,
  27858. dzcurl: 0x02A5,
  27859. dzeabkhasiancyrillic: 0x04E1,
  27860. dzecyrillic: 0x0455,
  27861. dzhecyrillic: 0x045F,
  27862. e: 0x0065,
  27863. eacute: 0x00E9,
  27864. earth: 0x2641,
  27865. ebengali: 0x098F,
  27866. ebopomofo: 0x311C,
  27867. ebreve: 0x0115,
  27868. ecandradeva: 0x090D,
  27869. ecandragujarati: 0x0A8D,
  27870. ecandravowelsigndeva: 0x0945,
  27871. ecandravowelsigngujarati: 0x0AC5,
  27872. ecaron: 0x011B,
  27873. ecedillabreve: 0x1E1D,
  27874. echarmenian: 0x0565,
  27875. echyiwnarmenian: 0x0587,
  27876. ecircle: 0x24D4,
  27877. ecircumflex: 0x00EA,
  27878. ecircumflexacute: 0x1EBF,
  27879. ecircumflexbelow: 0x1E19,
  27880. ecircumflexdotbelow: 0x1EC7,
  27881. ecircumflexgrave: 0x1EC1,
  27882. ecircumflexhookabove: 0x1EC3,
  27883. ecircumflextilde: 0x1EC5,
  27884. ecyrillic: 0x0454,
  27885. edblgrave: 0x0205,
  27886. edeva: 0x090F,
  27887. edieresis: 0x00EB,
  27888. edot: 0x0117,
  27889. edotaccent: 0x0117,
  27890. edotbelow: 0x1EB9,
  27891. eegurmukhi: 0x0A0F,
  27892. eematragurmukhi: 0x0A47,
  27893. efcyrillic: 0x0444,
  27894. egrave: 0x00E8,
  27895. egujarati: 0x0A8F,
  27896. eharmenian: 0x0567,
  27897. ehbopomofo: 0x311D,
  27898. ehiragana: 0x3048,
  27899. ehookabove: 0x1EBB,
  27900. eibopomofo: 0x311F,
  27901. eight: 0x0038,
  27902. eightarabic: 0x0668,
  27903. eightbengali: 0x09EE,
  27904. eightcircle: 0x2467,
  27905. eightcircleinversesansserif: 0x2791,
  27906. eightdeva: 0x096E,
  27907. eighteencircle: 0x2471,
  27908. eighteenparen: 0x2485,
  27909. eighteenperiod: 0x2499,
  27910. eightgujarati: 0x0AEE,
  27911. eightgurmukhi: 0x0A6E,
  27912. eighthackarabic: 0x0668,
  27913. eighthangzhou: 0x3028,
  27914. eighthnotebeamed: 0x266B,
  27915. eightideographicparen: 0x3227,
  27916. eightinferior: 0x2088,
  27917. eightmonospace: 0xFF18,
  27918. eightoldstyle: 0xF738,
  27919. eightparen: 0x247B,
  27920. eightperiod: 0x248F,
  27921. eightpersian: 0x06F8,
  27922. eightroman: 0x2177,
  27923. eightsuperior: 0x2078,
  27924. eightthai: 0x0E58,
  27925. einvertedbreve: 0x0207,
  27926. eiotifiedcyrillic: 0x0465,
  27927. ekatakana: 0x30A8,
  27928. ekatakanahalfwidth: 0xFF74,
  27929. ekonkargurmukhi: 0x0A74,
  27930. ekorean: 0x3154,
  27931. elcyrillic: 0x043B,
  27932. element: 0x2208,
  27933. elevencircle: 0x246A,
  27934. elevenparen: 0x247E,
  27935. elevenperiod: 0x2492,
  27936. elevenroman: 0x217A,
  27937. ellipsis: 0x2026,
  27938. ellipsisvertical: 0x22EE,
  27939. emacron: 0x0113,
  27940. emacronacute: 0x1E17,
  27941. emacrongrave: 0x1E15,
  27942. emcyrillic: 0x043C,
  27943. emdash: 0x2014,
  27944. emdashvertical: 0xFE31,
  27945. emonospace: 0xFF45,
  27946. emphasismarkarmenian: 0x055B,
  27947. emptyset: 0x2205,
  27948. enbopomofo: 0x3123,
  27949. encyrillic: 0x043D,
  27950. endash: 0x2013,
  27951. endashvertical: 0xFE32,
  27952. endescendercyrillic: 0x04A3,
  27953. eng: 0x014B,
  27954. engbopomofo: 0x3125,
  27955. enghecyrillic: 0x04A5,
  27956. enhookcyrillic: 0x04C8,
  27957. enspace: 0x2002,
  27958. eogonek: 0x0119,
  27959. eokorean: 0x3153,
  27960. eopen: 0x025B,
  27961. eopenclosed: 0x029A,
  27962. eopenreversed: 0x025C,
  27963. eopenreversedclosed: 0x025E,
  27964. eopenreversedhook: 0x025D,
  27965. eparen: 0x24A0,
  27966. epsilon: 0x03B5,
  27967. epsilontonos: 0x03AD,
  27968. equal: 0x003D,
  27969. equalmonospace: 0xFF1D,
  27970. equalsmall: 0xFE66,
  27971. equalsuperior: 0x207C,
  27972. equivalence: 0x2261,
  27973. erbopomofo: 0x3126,
  27974. ercyrillic: 0x0440,
  27975. ereversed: 0x0258,
  27976. ereversedcyrillic: 0x044D,
  27977. escyrillic: 0x0441,
  27978. esdescendercyrillic: 0x04AB,
  27979. esh: 0x0283,
  27980. eshcurl: 0x0286,
  27981. eshortdeva: 0x090E,
  27982. eshortvowelsigndeva: 0x0946,
  27983. eshreversedloop: 0x01AA,
  27984. eshsquatreversed: 0x0285,
  27985. esmallhiragana: 0x3047,
  27986. esmallkatakana: 0x30A7,
  27987. esmallkatakanahalfwidth: 0xFF6A,
  27988. estimated: 0x212E,
  27989. esuperior: 0xF6EC,
  27990. eta: 0x03B7,
  27991. etarmenian: 0x0568,
  27992. etatonos: 0x03AE,
  27993. eth: 0x00F0,
  27994. etilde: 0x1EBD,
  27995. etildebelow: 0x1E1B,
  27996. etnahtafoukhhebrew: 0x0591,
  27997. etnahtafoukhlefthebrew: 0x0591,
  27998. etnahtahebrew: 0x0591,
  27999. etnahtalefthebrew: 0x0591,
  28000. eturned: 0x01DD,
  28001. eukorean: 0x3161,
  28002. euro: 0x20AC,
  28003. evowelsignbengali: 0x09C7,
  28004. evowelsigndeva: 0x0947,
  28005. evowelsigngujarati: 0x0AC7,
  28006. exclam: 0x0021,
  28007. exclamarmenian: 0x055C,
  28008. exclamdbl: 0x203C,
  28009. exclamdown: 0x00A1,
  28010. exclamdownsmall: 0xF7A1,
  28011. exclammonospace: 0xFF01,
  28012. exclamsmall: 0xF721,
  28013. existential: 0x2203,
  28014. ezh: 0x0292,
  28015. ezhcaron: 0x01EF,
  28016. ezhcurl: 0x0293,
  28017. ezhreversed: 0x01B9,
  28018. ezhtail: 0x01BA,
  28019. f: 0x0066,
  28020. fadeva: 0x095E,
  28021. fagurmukhi: 0x0A5E,
  28022. fahrenheit: 0x2109,
  28023. fathaarabic: 0x064E,
  28024. fathalowarabic: 0x064E,
  28025. fathatanarabic: 0x064B,
  28026. fbopomofo: 0x3108,
  28027. fcircle: 0x24D5,
  28028. fdotaccent: 0x1E1F,
  28029. feharabic: 0x0641,
  28030. feharmenian: 0x0586,
  28031. fehfinalarabic: 0xFED2,
  28032. fehinitialarabic: 0xFED3,
  28033. fehmedialarabic: 0xFED4,
  28034. feicoptic: 0x03E5,
  28035. female: 0x2640,
  28036. ff: 0xFB00,
  28037. ffi: 0xFB03,
  28038. ffl: 0xFB04,
  28039. fi: 0xFB01,
  28040. fifteencircle: 0x246E,
  28041. fifteenparen: 0x2482,
  28042. fifteenperiod: 0x2496,
  28043. figuredash: 0x2012,
  28044. filledbox: 0x25A0,
  28045. filledrect: 0x25AC,
  28046. finalkaf: 0x05DA,
  28047. finalkafdagesh: 0xFB3A,
  28048. finalkafdageshhebrew: 0xFB3A,
  28049. finalkafhebrew: 0x05DA,
  28050. finalmem: 0x05DD,
  28051. finalmemhebrew: 0x05DD,
  28052. finalnun: 0x05DF,
  28053. finalnunhebrew: 0x05DF,
  28054. finalpe: 0x05E3,
  28055. finalpehebrew: 0x05E3,
  28056. finaltsadi: 0x05E5,
  28057. finaltsadihebrew: 0x05E5,
  28058. firsttonechinese: 0x02C9,
  28059. fisheye: 0x25C9,
  28060. fitacyrillic: 0x0473,
  28061. five: 0x0035,
  28062. fivearabic: 0x0665,
  28063. fivebengali: 0x09EB,
  28064. fivecircle: 0x2464,
  28065. fivecircleinversesansserif: 0x278E,
  28066. fivedeva: 0x096B,
  28067. fiveeighths: 0x215D,
  28068. fivegujarati: 0x0AEB,
  28069. fivegurmukhi: 0x0A6B,
  28070. fivehackarabic: 0x0665,
  28071. fivehangzhou: 0x3025,
  28072. fiveideographicparen: 0x3224,
  28073. fiveinferior: 0x2085,
  28074. fivemonospace: 0xFF15,
  28075. fiveoldstyle: 0xF735,
  28076. fiveparen: 0x2478,
  28077. fiveperiod: 0x248C,
  28078. fivepersian: 0x06F5,
  28079. fiveroman: 0x2174,
  28080. fivesuperior: 0x2075,
  28081. fivethai: 0x0E55,
  28082. fl: 0xFB02,
  28083. florin: 0x0192,
  28084. fmonospace: 0xFF46,
  28085. fmsquare: 0x3399,
  28086. fofanthai: 0x0E1F,
  28087. fofathai: 0x0E1D,
  28088. fongmanthai: 0x0E4F,
  28089. forall: 0x2200,
  28090. four: 0x0034,
  28091. fourarabic: 0x0664,
  28092. fourbengali: 0x09EA,
  28093. fourcircle: 0x2463,
  28094. fourcircleinversesansserif: 0x278D,
  28095. fourdeva: 0x096A,
  28096. fourgujarati: 0x0AEA,
  28097. fourgurmukhi: 0x0A6A,
  28098. fourhackarabic: 0x0664,
  28099. fourhangzhou: 0x3024,
  28100. fourideographicparen: 0x3223,
  28101. fourinferior: 0x2084,
  28102. fourmonospace: 0xFF14,
  28103. fournumeratorbengali: 0x09F7,
  28104. fouroldstyle: 0xF734,
  28105. fourparen: 0x2477,
  28106. fourperiod: 0x248B,
  28107. fourpersian: 0x06F4,
  28108. fourroman: 0x2173,
  28109. foursuperior: 0x2074,
  28110. fourteencircle: 0x246D,
  28111. fourteenparen: 0x2481,
  28112. fourteenperiod: 0x2495,
  28113. fourthai: 0x0E54,
  28114. fourthtonechinese: 0x02CB,
  28115. fparen: 0x24A1,
  28116. fraction: 0x2044,
  28117. franc: 0x20A3,
  28118. g: 0x0067,
  28119. gabengali: 0x0997,
  28120. gacute: 0x01F5,
  28121. gadeva: 0x0917,
  28122. gafarabic: 0x06AF,
  28123. gaffinalarabic: 0xFB93,
  28124. gafinitialarabic: 0xFB94,
  28125. gafmedialarabic: 0xFB95,
  28126. gagujarati: 0x0A97,
  28127. gagurmukhi: 0x0A17,
  28128. gahiragana: 0x304C,
  28129. gakatakana: 0x30AC,
  28130. gamma: 0x03B3,
  28131. gammalatinsmall: 0x0263,
  28132. gammasuperior: 0x02E0,
  28133. gangiacoptic: 0x03EB,
  28134. gbopomofo: 0x310D,
  28135. gbreve: 0x011F,
  28136. gcaron: 0x01E7,
  28137. gcedilla: 0x0123,
  28138. gcircle: 0x24D6,
  28139. gcircumflex: 0x011D,
  28140. gcommaaccent: 0x0123,
  28141. gdot: 0x0121,
  28142. gdotaccent: 0x0121,
  28143. gecyrillic: 0x0433,
  28144. gehiragana: 0x3052,
  28145. gekatakana: 0x30B2,
  28146. geometricallyequal: 0x2251,
  28147. gereshaccenthebrew: 0x059C,
  28148. gereshhebrew: 0x05F3,
  28149. gereshmuqdamhebrew: 0x059D,
  28150. germandbls: 0x00DF,
  28151. gershayimaccenthebrew: 0x059E,
  28152. gershayimhebrew: 0x05F4,
  28153. getamark: 0x3013,
  28154. ghabengali: 0x0998,
  28155. ghadarmenian: 0x0572,
  28156. ghadeva: 0x0918,
  28157. ghagujarati: 0x0A98,
  28158. ghagurmukhi: 0x0A18,
  28159. ghainarabic: 0x063A,
  28160. ghainfinalarabic: 0xFECE,
  28161. ghaininitialarabic: 0xFECF,
  28162. ghainmedialarabic: 0xFED0,
  28163. ghemiddlehookcyrillic: 0x0495,
  28164. ghestrokecyrillic: 0x0493,
  28165. gheupturncyrillic: 0x0491,
  28166. ghhadeva: 0x095A,
  28167. ghhagurmukhi: 0x0A5A,
  28168. ghook: 0x0260,
  28169. ghzsquare: 0x3393,
  28170. gihiragana: 0x304E,
  28171. gikatakana: 0x30AE,
  28172. gimarmenian: 0x0563,
  28173. gimel: 0x05D2,
  28174. gimeldagesh: 0xFB32,
  28175. gimeldageshhebrew: 0xFB32,
  28176. gimelhebrew: 0x05D2,
  28177. gjecyrillic: 0x0453,
  28178. glottalinvertedstroke: 0x01BE,
  28179. glottalstop: 0x0294,
  28180. glottalstopinverted: 0x0296,
  28181. glottalstopmod: 0x02C0,
  28182. glottalstopreversed: 0x0295,
  28183. glottalstopreversedmod: 0x02C1,
  28184. glottalstopreversedsuperior: 0x02E4,
  28185. glottalstopstroke: 0x02A1,
  28186. glottalstopstrokereversed: 0x02A2,
  28187. gmacron: 0x1E21,
  28188. gmonospace: 0xFF47,
  28189. gohiragana: 0x3054,
  28190. gokatakana: 0x30B4,
  28191. gparen: 0x24A2,
  28192. gpasquare: 0x33AC,
  28193. gradient: 0x2207,
  28194. grave: 0x0060,
  28195. gravebelowcmb: 0x0316,
  28196. gravecmb: 0x0300,
  28197. gravecomb: 0x0300,
  28198. gravedeva: 0x0953,
  28199. gravelowmod: 0x02CE,
  28200. gravemonospace: 0xFF40,
  28201. gravetonecmb: 0x0340,
  28202. greater: 0x003E,
  28203. greaterequal: 0x2265,
  28204. greaterequalorless: 0x22DB,
  28205. greatermonospace: 0xFF1E,
  28206. greaterorequivalent: 0x2273,
  28207. greaterorless: 0x2277,
  28208. greateroverequal: 0x2267,
  28209. greatersmall: 0xFE65,
  28210. gscript: 0x0261,
  28211. gstroke: 0x01E5,
  28212. guhiragana: 0x3050,
  28213. guillemotleft: 0x00AB,
  28214. guillemotright: 0x00BB,
  28215. guilsinglleft: 0x2039,
  28216. guilsinglright: 0x203A,
  28217. gukatakana: 0x30B0,
  28218. guramusquare: 0x3318,
  28219. gysquare: 0x33C9,
  28220. h: 0x0068,
  28221. haabkhasiancyrillic: 0x04A9,
  28222. haaltonearabic: 0x06C1,
  28223. habengali: 0x09B9,
  28224. hadescendercyrillic: 0x04B3,
  28225. hadeva: 0x0939,
  28226. hagujarati: 0x0AB9,
  28227. hagurmukhi: 0x0A39,
  28228. haharabic: 0x062D,
  28229. hahfinalarabic: 0xFEA2,
  28230. hahinitialarabic: 0xFEA3,
  28231. hahiragana: 0x306F,
  28232. hahmedialarabic: 0xFEA4,
  28233. haitusquare: 0x332A,
  28234. hakatakana: 0x30CF,
  28235. hakatakanahalfwidth: 0xFF8A,
  28236. halantgurmukhi: 0x0A4D,
  28237. hamzaarabic: 0x0621,
  28238. hamzalowarabic: 0x0621,
  28239. hangulfiller: 0x3164,
  28240. hardsigncyrillic: 0x044A,
  28241. harpoonleftbarbup: 0x21BC,
  28242. harpoonrightbarbup: 0x21C0,
  28243. hasquare: 0x33CA,
  28244. hatafpatah: 0x05B2,
  28245. hatafpatah16: 0x05B2,
  28246. hatafpatah23: 0x05B2,
  28247. hatafpatah2f: 0x05B2,
  28248. hatafpatahhebrew: 0x05B2,
  28249. hatafpatahnarrowhebrew: 0x05B2,
  28250. hatafpatahquarterhebrew: 0x05B2,
  28251. hatafpatahwidehebrew: 0x05B2,
  28252. hatafqamats: 0x05B3,
  28253. hatafqamats1b: 0x05B3,
  28254. hatafqamats28: 0x05B3,
  28255. hatafqamats34: 0x05B3,
  28256. hatafqamatshebrew: 0x05B3,
  28257. hatafqamatsnarrowhebrew: 0x05B3,
  28258. hatafqamatsquarterhebrew: 0x05B3,
  28259. hatafqamatswidehebrew: 0x05B3,
  28260. hatafsegol: 0x05B1,
  28261. hatafsegol17: 0x05B1,
  28262. hatafsegol24: 0x05B1,
  28263. hatafsegol30: 0x05B1,
  28264. hatafsegolhebrew: 0x05B1,
  28265. hatafsegolnarrowhebrew: 0x05B1,
  28266. hatafsegolquarterhebrew: 0x05B1,
  28267. hatafsegolwidehebrew: 0x05B1,
  28268. hbar: 0x0127,
  28269. hbopomofo: 0x310F,
  28270. hbrevebelow: 0x1E2B,
  28271. hcedilla: 0x1E29,
  28272. hcircle: 0x24D7,
  28273. hcircumflex: 0x0125,
  28274. hdieresis: 0x1E27,
  28275. hdotaccent: 0x1E23,
  28276. hdotbelow: 0x1E25,
  28277. he: 0x05D4,
  28278. heart: 0x2665,
  28279. heartsuitblack: 0x2665,
  28280. heartsuitwhite: 0x2661,
  28281. hedagesh: 0xFB34,
  28282. hedageshhebrew: 0xFB34,
  28283. hehaltonearabic: 0x06C1,
  28284. heharabic: 0x0647,
  28285. hehebrew: 0x05D4,
  28286. hehfinalaltonearabic: 0xFBA7,
  28287. hehfinalalttwoarabic: 0xFEEA,
  28288. hehfinalarabic: 0xFEEA,
  28289. hehhamzaabovefinalarabic: 0xFBA5,
  28290. hehhamzaaboveisolatedarabic: 0xFBA4,
  28291. hehinitialaltonearabic: 0xFBA8,
  28292. hehinitialarabic: 0xFEEB,
  28293. hehiragana: 0x3078,
  28294. hehmedialaltonearabic: 0xFBA9,
  28295. hehmedialarabic: 0xFEEC,
  28296. heiseierasquare: 0x337B,
  28297. hekatakana: 0x30D8,
  28298. hekatakanahalfwidth: 0xFF8D,
  28299. hekutaarusquare: 0x3336,
  28300. henghook: 0x0267,
  28301. herutusquare: 0x3339,
  28302. het: 0x05D7,
  28303. hethebrew: 0x05D7,
  28304. hhook: 0x0266,
  28305. hhooksuperior: 0x02B1,
  28306. hieuhacirclekorean: 0x327B,
  28307. hieuhaparenkorean: 0x321B,
  28308. hieuhcirclekorean: 0x326D,
  28309. hieuhkorean: 0x314E,
  28310. hieuhparenkorean: 0x320D,
  28311. hihiragana: 0x3072,
  28312. hikatakana: 0x30D2,
  28313. hikatakanahalfwidth: 0xFF8B,
  28314. hiriq: 0x05B4,
  28315. hiriq14: 0x05B4,
  28316. hiriq21: 0x05B4,
  28317. hiriq2d: 0x05B4,
  28318. hiriqhebrew: 0x05B4,
  28319. hiriqnarrowhebrew: 0x05B4,
  28320. hiriqquarterhebrew: 0x05B4,
  28321. hiriqwidehebrew: 0x05B4,
  28322. hlinebelow: 0x1E96,
  28323. hmonospace: 0xFF48,
  28324. hoarmenian: 0x0570,
  28325. hohipthai: 0x0E2B,
  28326. hohiragana: 0x307B,
  28327. hokatakana: 0x30DB,
  28328. hokatakanahalfwidth: 0xFF8E,
  28329. holam: 0x05B9,
  28330. holam19: 0x05B9,
  28331. holam26: 0x05B9,
  28332. holam32: 0x05B9,
  28333. holamhebrew: 0x05B9,
  28334. holamnarrowhebrew: 0x05B9,
  28335. holamquarterhebrew: 0x05B9,
  28336. holamwidehebrew: 0x05B9,
  28337. honokhukthai: 0x0E2E,
  28338. hookabovecomb: 0x0309,
  28339. hookcmb: 0x0309,
  28340. hookpalatalizedbelowcmb: 0x0321,
  28341. hookretroflexbelowcmb: 0x0322,
  28342. hoonsquare: 0x3342,
  28343. horicoptic: 0x03E9,
  28344. horizontalbar: 0x2015,
  28345. horncmb: 0x031B,
  28346. hotsprings: 0x2668,
  28347. house: 0x2302,
  28348. hparen: 0x24A3,
  28349. hsuperior: 0x02B0,
  28350. hturned: 0x0265,
  28351. huhiragana: 0x3075,
  28352. huiitosquare: 0x3333,
  28353. hukatakana: 0x30D5,
  28354. hukatakanahalfwidth: 0xFF8C,
  28355. hungarumlaut: 0x02DD,
  28356. hungarumlautcmb: 0x030B,
  28357. hv: 0x0195,
  28358. hyphen: 0x002D,
  28359. hypheninferior: 0xF6E5,
  28360. hyphenmonospace: 0xFF0D,
  28361. hyphensmall: 0xFE63,
  28362. hyphensuperior: 0xF6E6,
  28363. hyphentwo: 0x2010,
  28364. i: 0x0069,
  28365. iacute: 0x00ED,
  28366. iacyrillic: 0x044F,
  28367. ibengali: 0x0987,
  28368. ibopomofo: 0x3127,
  28369. ibreve: 0x012D,
  28370. icaron: 0x01D0,
  28371. icircle: 0x24D8,
  28372. icircumflex: 0x00EE,
  28373. icyrillic: 0x0456,
  28374. idblgrave: 0x0209,
  28375. ideographearthcircle: 0x328F,
  28376. ideographfirecircle: 0x328B,
  28377. ideographicallianceparen: 0x323F,
  28378. ideographiccallparen: 0x323A,
  28379. ideographiccentrecircle: 0x32A5,
  28380. ideographicclose: 0x3006,
  28381. ideographiccomma: 0x3001,
  28382. ideographiccommaleft: 0xFF64,
  28383. ideographiccongratulationparen: 0x3237,
  28384. ideographiccorrectcircle: 0x32A3,
  28385. ideographicearthparen: 0x322F,
  28386. ideographicenterpriseparen: 0x323D,
  28387. ideographicexcellentcircle: 0x329D,
  28388. ideographicfestivalparen: 0x3240,
  28389. ideographicfinancialcircle: 0x3296,
  28390. ideographicfinancialparen: 0x3236,
  28391. ideographicfireparen: 0x322B,
  28392. ideographichaveparen: 0x3232,
  28393. ideographichighcircle: 0x32A4,
  28394. ideographiciterationmark: 0x3005,
  28395. ideographiclaborcircle: 0x3298,
  28396. ideographiclaborparen: 0x3238,
  28397. ideographicleftcircle: 0x32A7,
  28398. ideographiclowcircle: 0x32A6,
  28399. ideographicmedicinecircle: 0x32A9,
  28400. ideographicmetalparen: 0x322E,
  28401. ideographicmoonparen: 0x322A,
  28402. ideographicnameparen: 0x3234,
  28403. ideographicperiod: 0x3002,
  28404. ideographicprintcircle: 0x329E,
  28405. ideographicreachparen: 0x3243,
  28406. ideographicrepresentparen: 0x3239,
  28407. ideographicresourceparen: 0x323E,
  28408. ideographicrightcircle: 0x32A8,
  28409. ideographicsecretcircle: 0x3299,
  28410. ideographicselfparen: 0x3242,
  28411. ideographicsocietyparen: 0x3233,
  28412. ideographicspace: 0x3000,
  28413. ideographicspecialparen: 0x3235,
  28414. ideographicstockparen: 0x3231,
  28415. ideographicstudyparen: 0x323B,
  28416. ideographicsunparen: 0x3230,
  28417. ideographicsuperviseparen: 0x323C,
  28418. ideographicwaterparen: 0x322C,
  28419. ideographicwoodparen: 0x322D,
  28420. ideographiczero: 0x3007,
  28421. ideographmetalcircle: 0x328E,
  28422. ideographmooncircle: 0x328A,
  28423. ideographnamecircle: 0x3294,
  28424. ideographsuncircle: 0x3290,
  28425. ideographwatercircle: 0x328C,
  28426. ideographwoodcircle: 0x328D,
  28427. ideva: 0x0907,
  28428. idieresis: 0x00EF,
  28429. idieresisacute: 0x1E2F,
  28430. idieresiscyrillic: 0x04E5,
  28431. idotbelow: 0x1ECB,
  28432. iebrevecyrillic: 0x04D7,
  28433. iecyrillic: 0x0435,
  28434. ieungacirclekorean: 0x3275,
  28435. ieungaparenkorean: 0x3215,
  28436. ieungcirclekorean: 0x3267,
  28437. ieungkorean: 0x3147,
  28438. ieungparenkorean: 0x3207,
  28439. igrave: 0x00EC,
  28440. igujarati: 0x0A87,
  28441. igurmukhi: 0x0A07,
  28442. ihiragana: 0x3044,
  28443. ihookabove: 0x1EC9,
  28444. iibengali: 0x0988,
  28445. iicyrillic: 0x0438,
  28446. iideva: 0x0908,
  28447. iigujarati: 0x0A88,
  28448. iigurmukhi: 0x0A08,
  28449. iimatragurmukhi: 0x0A40,
  28450. iinvertedbreve: 0x020B,
  28451. iishortcyrillic: 0x0439,
  28452. iivowelsignbengali: 0x09C0,
  28453. iivowelsigndeva: 0x0940,
  28454. iivowelsigngujarati: 0x0AC0,
  28455. ij: 0x0133,
  28456. ikatakana: 0x30A4,
  28457. ikatakanahalfwidth: 0xFF72,
  28458. ikorean: 0x3163,
  28459. ilde: 0x02DC,
  28460. iluyhebrew: 0x05AC,
  28461. imacron: 0x012B,
  28462. imacroncyrillic: 0x04E3,
  28463. imageorapproximatelyequal: 0x2253,
  28464. imatragurmukhi: 0x0A3F,
  28465. imonospace: 0xFF49,
  28466. increment: 0x2206,
  28467. infinity: 0x221E,
  28468. iniarmenian: 0x056B,
  28469. integral: 0x222B,
  28470. integralbottom: 0x2321,
  28471. integralbt: 0x2321,
  28472. integralex: 0xF8F5,
  28473. integraltop: 0x2320,
  28474. integraltp: 0x2320,
  28475. intersection: 0x2229,
  28476. intisquare: 0x3305,
  28477. invbullet: 0x25D8,
  28478. invcircle: 0x25D9,
  28479. invsmileface: 0x263B,
  28480. iocyrillic: 0x0451,
  28481. iogonek: 0x012F,
  28482. iota: 0x03B9,
  28483. iotadieresis: 0x03CA,
  28484. iotadieresistonos: 0x0390,
  28485. iotalatin: 0x0269,
  28486. iotatonos: 0x03AF,
  28487. iparen: 0x24A4,
  28488. irigurmukhi: 0x0A72,
  28489. ismallhiragana: 0x3043,
  28490. ismallkatakana: 0x30A3,
  28491. ismallkatakanahalfwidth: 0xFF68,
  28492. issharbengali: 0x09FA,
  28493. istroke: 0x0268,
  28494. isuperior: 0xF6ED,
  28495. iterationhiragana: 0x309D,
  28496. iterationkatakana: 0x30FD,
  28497. itilde: 0x0129,
  28498. itildebelow: 0x1E2D,
  28499. iubopomofo: 0x3129,
  28500. iucyrillic: 0x044E,
  28501. ivowelsignbengali: 0x09BF,
  28502. ivowelsigndeva: 0x093F,
  28503. ivowelsigngujarati: 0x0ABF,
  28504. izhitsacyrillic: 0x0475,
  28505. izhitsadblgravecyrillic: 0x0477,
  28506. j: 0x006A,
  28507. jaarmenian: 0x0571,
  28508. jabengali: 0x099C,
  28509. jadeva: 0x091C,
  28510. jagujarati: 0x0A9C,
  28511. jagurmukhi: 0x0A1C,
  28512. jbopomofo: 0x3110,
  28513. jcaron: 0x01F0,
  28514. jcircle: 0x24D9,
  28515. jcircumflex: 0x0135,
  28516. jcrossedtail: 0x029D,
  28517. jdotlessstroke: 0x025F,
  28518. jecyrillic: 0x0458,
  28519. jeemarabic: 0x062C,
  28520. jeemfinalarabic: 0xFE9E,
  28521. jeeminitialarabic: 0xFE9F,
  28522. jeemmedialarabic: 0xFEA0,
  28523. jeharabic: 0x0698,
  28524. jehfinalarabic: 0xFB8B,
  28525. jhabengali: 0x099D,
  28526. jhadeva: 0x091D,
  28527. jhagujarati: 0x0A9D,
  28528. jhagurmukhi: 0x0A1D,
  28529. jheharmenian: 0x057B,
  28530. jis: 0x3004,
  28531. jmonospace: 0xFF4A,
  28532. jparen: 0x24A5,
  28533. jsuperior: 0x02B2,
  28534. k: 0x006B,
  28535. kabashkircyrillic: 0x04A1,
  28536. kabengali: 0x0995,
  28537. kacute: 0x1E31,
  28538. kacyrillic: 0x043A,
  28539. kadescendercyrillic: 0x049B,
  28540. kadeva: 0x0915,
  28541. kaf: 0x05DB,
  28542. kafarabic: 0x0643,
  28543. kafdagesh: 0xFB3B,
  28544. kafdageshhebrew: 0xFB3B,
  28545. kaffinalarabic: 0xFEDA,
  28546. kafhebrew: 0x05DB,
  28547. kafinitialarabic: 0xFEDB,
  28548. kafmedialarabic: 0xFEDC,
  28549. kafrafehebrew: 0xFB4D,
  28550. kagujarati: 0x0A95,
  28551. kagurmukhi: 0x0A15,
  28552. kahiragana: 0x304B,
  28553. kahookcyrillic: 0x04C4,
  28554. kakatakana: 0x30AB,
  28555. kakatakanahalfwidth: 0xFF76,
  28556. kappa: 0x03BA,
  28557. kappasymbolgreek: 0x03F0,
  28558. kapyeounmieumkorean: 0x3171,
  28559. kapyeounphieuphkorean: 0x3184,
  28560. kapyeounpieupkorean: 0x3178,
  28561. kapyeounssangpieupkorean: 0x3179,
  28562. karoriisquare: 0x330D,
  28563. kashidaautoarabic: 0x0640,
  28564. kashidaautonosidebearingarabic: 0x0640,
  28565. kasmallkatakana: 0x30F5,
  28566. kasquare: 0x3384,
  28567. kasraarabic: 0x0650,
  28568. kasratanarabic: 0x064D,
  28569. kastrokecyrillic: 0x049F,
  28570. katahiraprolongmarkhalfwidth: 0xFF70,
  28571. kaverticalstrokecyrillic: 0x049D,
  28572. kbopomofo: 0x310E,
  28573. kcalsquare: 0x3389,
  28574. kcaron: 0x01E9,
  28575. kcedilla: 0x0137,
  28576. kcircle: 0x24DA,
  28577. kcommaaccent: 0x0137,
  28578. kdotbelow: 0x1E33,
  28579. keharmenian: 0x0584,
  28580. kehiragana: 0x3051,
  28581. kekatakana: 0x30B1,
  28582. kekatakanahalfwidth: 0xFF79,
  28583. kenarmenian: 0x056F,
  28584. kesmallkatakana: 0x30F6,
  28585. kgreenlandic: 0x0138,
  28586. khabengali: 0x0996,
  28587. khacyrillic: 0x0445,
  28588. khadeva: 0x0916,
  28589. khagujarati: 0x0A96,
  28590. khagurmukhi: 0x0A16,
  28591. khaharabic: 0x062E,
  28592. khahfinalarabic: 0xFEA6,
  28593. khahinitialarabic: 0xFEA7,
  28594. khahmedialarabic: 0xFEA8,
  28595. kheicoptic: 0x03E7,
  28596. khhadeva: 0x0959,
  28597. khhagurmukhi: 0x0A59,
  28598. khieukhacirclekorean: 0x3278,
  28599. khieukhaparenkorean: 0x3218,
  28600. khieukhcirclekorean: 0x326A,
  28601. khieukhkorean: 0x314B,
  28602. khieukhparenkorean: 0x320A,
  28603. khokhaithai: 0x0E02,
  28604. khokhonthai: 0x0E05,
  28605. khokhuatthai: 0x0E03,
  28606. khokhwaithai: 0x0E04,
  28607. khomutthai: 0x0E5B,
  28608. khook: 0x0199,
  28609. khorakhangthai: 0x0E06,
  28610. khzsquare: 0x3391,
  28611. kihiragana: 0x304D,
  28612. kikatakana: 0x30AD,
  28613. kikatakanahalfwidth: 0xFF77,
  28614. kiroguramusquare: 0x3315,
  28615. kiromeetorusquare: 0x3316,
  28616. kirosquare: 0x3314,
  28617. kiyeokacirclekorean: 0x326E,
  28618. kiyeokaparenkorean: 0x320E,
  28619. kiyeokcirclekorean: 0x3260,
  28620. kiyeokkorean: 0x3131,
  28621. kiyeokparenkorean: 0x3200,
  28622. kiyeoksioskorean: 0x3133,
  28623. kjecyrillic: 0x045C,
  28624. klinebelow: 0x1E35,
  28625. klsquare: 0x3398,
  28626. kmcubedsquare: 0x33A6,
  28627. kmonospace: 0xFF4B,
  28628. kmsquaredsquare: 0x33A2,
  28629. kohiragana: 0x3053,
  28630. kohmsquare: 0x33C0,
  28631. kokaithai: 0x0E01,
  28632. kokatakana: 0x30B3,
  28633. kokatakanahalfwidth: 0xFF7A,
  28634. kooposquare: 0x331E,
  28635. koppacyrillic: 0x0481,
  28636. koreanstandardsymbol: 0x327F,
  28637. koroniscmb: 0x0343,
  28638. kparen: 0x24A6,
  28639. kpasquare: 0x33AA,
  28640. ksicyrillic: 0x046F,
  28641. ktsquare: 0x33CF,
  28642. kturned: 0x029E,
  28643. kuhiragana: 0x304F,
  28644. kukatakana: 0x30AF,
  28645. kukatakanahalfwidth: 0xFF78,
  28646. kvsquare: 0x33B8,
  28647. kwsquare: 0x33BE,
  28648. l: 0x006C,
  28649. labengali: 0x09B2,
  28650. lacute: 0x013A,
  28651. ladeva: 0x0932,
  28652. lagujarati: 0x0AB2,
  28653. lagurmukhi: 0x0A32,
  28654. lakkhangyaothai: 0x0E45,
  28655. lamaleffinalarabic: 0xFEFC,
  28656. lamalefhamzaabovefinalarabic: 0xFEF8,
  28657. lamalefhamzaaboveisolatedarabic: 0xFEF7,
  28658. lamalefhamzabelowfinalarabic: 0xFEFA,
  28659. lamalefhamzabelowisolatedarabic: 0xFEF9,
  28660. lamalefisolatedarabic: 0xFEFB,
  28661. lamalefmaddaabovefinalarabic: 0xFEF6,
  28662. lamalefmaddaaboveisolatedarabic: 0xFEF5,
  28663. lamarabic: 0x0644,
  28664. lambda: 0x03BB,
  28665. lambdastroke: 0x019B,
  28666. lamed: 0x05DC,
  28667. lameddagesh: 0xFB3C,
  28668. lameddageshhebrew: 0xFB3C,
  28669. lamedhebrew: 0x05DC,
  28670. lamfinalarabic: 0xFEDE,
  28671. lamhahinitialarabic: 0xFCCA,
  28672. laminitialarabic: 0xFEDF,
  28673. lamjeeminitialarabic: 0xFCC9,
  28674. lamkhahinitialarabic: 0xFCCB,
  28675. lamlamhehisolatedarabic: 0xFDF2,
  28676. lammedialarabic: 0xFEE0,
  28677. lammeemhahinitialarabic: 0xFD88,
  28678. lammeeminitialarabic: 0xFCCC,
  28679. largecircle: 0x25EF,
  28680. lbar: 0x019A,
  28681. lbelt: 0x026C,
  28682. lbopomofo: 0x310C,
  28683. lcaron: 0x013E,
  28684. lcedilla: 0x013C,
  28685. lcircle: 0x24DB,
  28686. lcircumflexbelow: 0x1E3D,
  28687. lcommaaccent: 0x013C,
  28688. ldot: 0x0140,
  28689. ldotaccent: 0x0140,
  28690. ldotbelow: 0x1E37,
  28691. ldotbelowmacron: 0x1E39,
  28692. leftangleabovecmb: 0x031A,
  28693. lefttackbelowcmb: 0x0318,
  28694. less: 0x003C,
  28695. lessequal: 0x2264,
  28696. lessequalorgreater: 0x22DA,
  28697. lessmonospace: 0xFF1C,
  28698. lessorequivalent: 0x2272,
  28699. lessorgreater: 0x2276,
  28700. lessoverequal: 0x2266,
  28701. lesssmall: 0xFE64,
  28702. lezh: 0x026E,
  28703. lfblock: 0x258C,
  28704. lhookretroflex: 0x026D,
  28705. lira: 0x20A4,
  28706. liwnarmenian: 0x056C,
  28707. lj: 0x01C9,
  28708. ljecyrillic: 0x0459,
  28709. ll: 0xF6C0,
  28710. lladeva: 0x0933,
  28711. llagujarati: 0x0AB3,
  28712. llinebelow: 0x1E3B,
  28713. llladeva: 0x0934,
  28714. llvocalicbengali: 0x09E1,
  28715. llvocalicdeva: 0x0961,
  28716. llvocalicvowelsignbengali: 0x09E3,
  28717. llvocalicvowelsigndeva: 0x0963,
  28718. lmiddletilde: 0x026B,
  28719. lmonospace: 0xFF4C,
  28720. lmsquare: 0x33D0,
  28721. lochulathai: 0x0E2C,
  28722. logicaland: 0x2227,
  28723. logicalnot: 0x00AC,
  28724. logicalnotreversed: 0x2310,
  28725. logicalor: 0x2228,
  28726. lolingthai: 0x0E25,
  28727. longs: 0x017F,
  28728. lowlinecenterline: 0xFE4E,
  28729. lowlinecmb: 0x0332,
  28730. lowlinedashed: 0xFE4D,
  28731. lozenge: 0x25CA,
  28732. lparen: 0x24A7,
  28733. lslash: 0x0142,
  28734. lsquare: 0x2113,
  28735. lsuperior: 0xF6EE,
  28736. ltshade: 0x2591,
  28737. luthai: 0x0E26,
  28738. lvocalicbengali: 0x098C,
  28739. lvocalicdeva: 0x090C,
  28740. lvocalicvowelsignbengali: 0x09E2,
  28741. lvocalicvowelsigndeva: 0x0962,
  28742. lxsquare: 0x33D3,
  28743. m: 0x006D,
  28744. mabengali: 0x09AE,
  28745. macron: 0x00AF,
  28746. macronbelowcmb: 0x0331,
  28747. macroncmb: 0x0304,
  28748. macronlowmod: 0x02CD,
  28749. macronmonospace: 0xFFE3,
  28750. macute: 0x1E3F,
  28751. madeva: 0x092E,
  28752. magujarati: 0x0AAE,
  28753. magurmukhi: 0x0A2E,
  28754. mahapakhhebrew: 0x05A4,
  28755. mahapakhlefthebrew: 0x05A4,
  28756. mahiragana: 0x307E,
  28757. maichattawalowleftthai: 0xF895,
  28758. maichattawalowrightthai: 0xF894,
  28759. maichattawathai: 0x0E4B,
  28760. maichattawaupperleftthai: 0xF893,
  28761. maieklowleftthai: 0xF88C,
  28762. maieklowrightthai: 0xF88B,
  28763. maiekthai: 0x0E48,
  28764. maiekupperleftthai: 0xF88A,
  28765. maihanakatleftthai: 0xF884,
  28766. maihanakatthai: 0x0E31,
  28767. maitaikhuleftthai: 0xF889,
  28768. maitaikhuthai: 0x0E47,
  28769. maitholowleftthai: 0xF88F,
  28770. maitholowrightthai: 0xF88E,
  28771. maithothai: 0x0E49,
  28772. maithoupperleftthai: 0xF88D,
  28773. maitrilowleftthai: 0xF892,
  28774. maitrilowrightthai: 0xF891,
  28775. maitrithai: 0x0E4A,
  28776. maitriupperleftthai: 0xF890,
  28777. maiyamokthai: 0x0E46,
  28778. makatakana: 0x30DE,
  28779. makatakanahalfwidth: 0xFF8F,
  28780. male: 0x2642,
  28781. mansyonsquare: 0x3347,
  28782. maqafhebrew: 0x05BE,
  28783. mars: 0x2642,
  28784. masoracirclehebrew: 0x05AF,
  28785. masquare: 0x3383,
  28786. mbopomofo: 0x3107,
  28787. mbsquare: 0x33D4,
  28788. mcircle: 0x24DC,
  28789. mcubedsquare: 0x33A5,
  28790. mdotaccent: 0x1E41,
  28791. mdotbelow: 0x1E43,
  28792. meemarabic: 0x0645,
  28793. meemfinalarabic: 0xFEE2,
  28794. meeminitialarabic: 0xFEE3,
  28795. meemmedialarabic: 0xFEE4,
  28796. meemmeeminitialarabic: 0xFCD1,
  28797. meemmeemisolatedarabic: 0xFC48,
  28798. meetorusquare: 0x334D,
  28799. mehiragana: 0x3081,
  28800. meizierasquare: 0x337E,
  28801. mekatakana: 0x30E1,
  28802. mekatakanahalfwidth: 0xFF92,
  28803. mem: 0x05DE,
  28804. memdagesh: 0xFB3E,
  28805. memdageshhebrew: 0xFB3E,
  28806. memhebrew: 0x05DE,
  28807. menarmenian: 0x0574,
  28808. merkhahebrew: 0x05A5,
  28809. merkhakefulahebrew: 0x05A6,
  28810. merkhakefulalefthebrew: 0x05A6,
  28811. merkhalefthebrew: 0x05A5,
  28812. mhook: 0x0271,
  28813. mhzsquare: 0x3392,
  28814. middledotkatakanahalfwidth: 0xFF65,
  28815. middot: 0x00B7,
  28816. mieumacirclekorean: 0x3272,
  28817. mieumaparenkorean: 0x3212,
  28818. mieumcirclekorean: 0x3264,
  28819. mieumkorean: 0x3141,
  28820. mieumpansioskorean: 0x3170,
  28821. mieumparenkorean: 0x3204,
  28822. mieumpieupkorean: 0x316E,
  28823. mieumsioskorean: 0x316F,
  28824. mihiragana: 0x307F,
  28825. mikatakana: 0x30DF,
  28826. mikatakanahalfwidth: 0xFF90,
  28827. minus: 0x2212,
  28828. minusbelowcmb: 0x0320,
  28829. minuscircle: 0x2296,
  28830. minusmod: 0x02D7,
  28831. minusplus: 0x2213,
  28832. minute: 0x2032,
  28833. miribaarusquare: 0x334A,
  28834. mirisquare: 0x3349,
  28835. mlonglegturned: 0x0270,
  28836. mlsquare: 0x3396,
  28837. mmcubedsquare: 0x33A3,
  28838. mmonospace: 0xFF4D,
  28839. mmsquaredsquare: 0x339F,
  28840. mohiragana: 0x3082,
  28841. mohmsquare: 0x33C1,
  28842. mokatakana: 0x30E2,
  28843. mokatakanahalfwidth: 0xFF93,
  28844. molsquare: 0x33D6,
  28845. momathai: 0x0E21,
  28846. moverssquare: 0x33A7,
  28847. moverssquaredsquare: 0x33A8,
  28848. mparen: 0x24A8,
  28849. mpasquare: 0x33AB,
  28850. mssquare: 0x33B3,
  28851. msuperior: 0xF6EF,
  28852. mturned: 0x026F,
  28853. mu: 0x00B5,
  28854. mu1: 0x00B5,
  28855. muasquare: 0x3382,
  28856. muchgreater: 0x226B,
  28857. muchless: 0x226A,
  28858. mufsquare: 0x338C,
  28859. mugreek: 0x03BC,
  28860. mugsquare: 0x338D,
  28861. muhiragana: 0x3080,
  28862. mukatakana: 0x30E0,
  28863. mukatakanahalfwidth: 0xFF91,
  28864. mulsquare: 0x3395,
  28865. multiply: 0x00D7,
  28866. mumsquare: 0x339B,
  28867. munahhebrew: 0x05A3,
  28868. munahlefthebrew: 0x05A3,
  28869. musicalnote: 0x266A,
  28870. musicalnotedbl: 0x266B,
  28871. musicflatsign: 0x266D,
  28872. musicsharpsign: 0x266F,
  28873. mussquare: 0x33B2,
  28874. muvsquare: 0x33B6,
  28875. muwsquare: 0x33BC,
  28876. mvmegasquare: 0x33B9,
  28877. mvsquare: 0x33B7,
  28878. mwmegasquare: 0x33BF,
  28879. mwsquare: 0x33BD,
  28880. n: 0x006E,
  28881. nabengali: 0x09A8,
  28882. nabla: 0x2207,
  28883. nacute: 0x0144,
  28884. nadeva: 0x0928,
  28885. nagujarati: 0x0AA8,
  28886. nagurmukhi: 0x0A28,
  28887. nahiragana: 0x306A,
  28888. nakatakana: 0x30CA,
  28889. nakatakanahalfwidth: 0xFF85,
  28890. napostrophe: 0x0149,
  28891. nasquare: 0x3381,
  28892. nbopomofo: 0x310B,
  28893. nbspace: 0x00A0,
  28894. ncaron: 0x0148,
  28895. ncedilla: 0x0146,
  28896. ncircle: 0x24DD,
  28897. ncircumflexbelow: 0x1E4B,
  28898. ncommaaccent: 0x0146,
  28899. ndotaccent: 0x1E45,
  28900. ndotbelow: 0x1E47,
  28901. nehiragana: 0x306D,
  28902. nekatakana: 0x30CD,
  28903. nekatakanahalfwidth: 0xFF88,
  28904. newsheqelsign: 0x20AA,
  28905. nfsquare: 0x338B,
  28906. ngabengali: 0x0999,
  28907. ngadeva: 0x0919,
  28908. ngagujarati: 0x0A99,
  28909. ngagurmukhi: 0x0A19,
  28910. ngonguthai: 0x0E07,
  28911. nhiragana: 0x3093,
  28912. nhookleft: 0x0272,
  28913. nhookretroflex: 0x0273,
  28914. nieunacirclekorean: 0x326F,
  28915. nieunaparenkorean: 0x320F,
  28916. nieuncieuckorean: 0x3135,
  28917. nieuncirclekorean: 0x3261,
  28918. nieunhieuhkorean: 0x3136,
  28919. nieunkorean: 0x3134,
  28920. nieunpansioskorean: 0x3168,
  28921. nieunparenkorean: 0x3201,
  28922. nieunsioskorean: 0x3167,
  28923. nieuntikeutkorean: 0x3166,
  28924. nihiragana: 0x306B,
  28925. nikatakana: 0x30CB,
  28926. nikatakanahalfwidth: 0xFF86,
  28927. nikhahitleftthai: 0xF899,
  28928. nikhahitthai: 0x0E4D,
  28929. nine: 0x0039,
  28930. ninearabic: 0x0669,
  28931. ninebengali: 0x09EF,
  28932. ninecircle: 0x2468,
  28933. ninecircleinversesansserif: 0x2792,
  28934. ninedeva: 0x096F,
  28935. ninegujarati: 0x0AEF,
  28936. ninegurmukhi: 0x0A6F,
  28937. ninehackarabic: 0x0669,
  28938. ninehangzhou: 0x3029,
  28939. nineideographicparen: 0x3228,
  28940. nineinferior: 0x2089,
  28941. ninemonospace: 0xFF19,
  28942. nineoldstyle: 0xF739,
  28943. nineparen: 0x247C,
  28944. nineperiod: 0x2490,
  28945. ninepersian: 0x06F9,
  28946. nineroman: 0x2178,
  28947. ninesuperior: 0x2079,
  28948. nineteencircle: 0x2472,
  28949. nineteenparen: 0x2486,
  28950. nineteenperiod: 0x249A,
  28951. ninethai: 0x0E59,
  28952. nj: 0x01CC,
  28953. njecyrillic: 0x045A,
  28954. nkatakana: 0x30F3,
  28955. nkatakanahalfwidth: 0xFF9D,
  28956. nlegrightlong: 0x019E,
  28957. nlinebelow: 0x1E49,
  28958. nmonospace: 0xFF4E,
  28959. nmsquare: 0x339A,
  28960. nnabengali: 0x09A3,
  28961. nnadeva: 0x0923,
  28962. nnagujarati: 0x0AA3,
  28963. nnagurmukhi: 0x0A23,
  28964. nnnadeva: 0x0929,
  28965. nohiragana: 0x306E,
  28966. nokatakana: 0x30CE,
  28967. nokatakanahalfwidth: 0xFF89,
  28968. nonbreakingspace: 0x00A0,
  28969. nonenthai: 0x0E13,
  28970. nonuthai: 0x0E19,
  28971. noonarabic: 0x0646,
  28972. noonfinalarabic: 0xFEE6,
  28973. noonghunnaarabic: 0x06BA,
  28974. noonghunnafinalarabic: 0xFB9F,
  28975. nooninitialarabic: 0xFEE7,
  28976. noonjeeminitialarabic: 0xFCD2,
  28977. noonjeemisolatedarabic: 0xFC4B,
  28978. noonmedialarabic: 0xFEE8,
  28979. noonmeeminitialarabic: 0xFCD5,
  28980. noonmeemisolatedarabic: 0xFC4E,
  28981. noonnoonfinalarabic: 0xFC8D,
  28982. notcontains: 0x220C,
  28983. notelement: 0x2209,
  28984. notelementof: 0x2209,
  28985. notequal: 0x2260,
  28986. notgreater: 0x226F,
  28987. notgreaternorequal: 0x2271,
  28988. notgreaternorless: 0x2279,
  28989. notidentical: 0x2262,
  28990. notless: 0x226E,
  28991. notlessnorequal: 0x2270,
  28992. notparallel: 0x2226,
  28993. notprecedes: 0x2280,
  28994. notsubset: 0x2284,
  28995. notsucceeds: 0x2281,
  28996. notsuperset: 0x2285,
  28997. nowarmenian: 0x0576,
  28998. nparen: 0x24A9,
  28999. nssquare: 0x33B1,
  29000. nsuperior: 0x207F,
  29001. ntilde: 0x00F1,
  29002. nu: 0x03BD,
  29003. nuhiragana: 0x306C,
  29004. nukatakana: 0x30CC,
  29005. nukatakanahalfwidth: 0xFF87,
  29006. nuktabengali: 0x09BC,
  29007. nuktadeva: 0x093C,
  29008. nuktagujarati: 0x0ABC,
  29009. nuktagurmukhi: 0x0A3C,
  29010. numbersign: 0x0023,
  29011. numbersignmonospace: 0xFF03,
  29012. numbersignsmall: 0xFE5F,
  29013. numeralsigngreek: 0x0374,
  29014. numeralsignlowergreek: 0x0375,
  29015. numero: 0x2116,
  29016. nun: 0x05E0,
  29017. nundagesh: 0xFB40,
  29018. nundageshhebrew: 0xFB40,
  29019. nunhebrew: 0x05E0,
  29020. nvsquare: 0x33B5,
  29021. nwsquare: 0x33BB,
  29022. nyabengali: 0x099E,
  29023. nyadeva: 0x091E,
  29024. nyagujarati: 0x0A9E,
  29025. nyagurmukhi: 0x0A1E,
  29026. o: 0x006F,
  29027. oacute: 0x00F3,
  29028. oangthai: 0x0E2D,
  29029. obarred: 0x0275,
  29030. obarredcyrillic: 0x04E9,
  29031. obarreddieresiscyrillic: 0x04EB,
  29032. obengali: 0x0993,
  29033. obopomofo: 0x311B,
  29034. obreve: 0x014F,
  29035. ocandradeva: 0x0911,
  29036. ocandragujarati: 0x0A91,
  29037. ocandravowelsigndeva: 0x0949,
  29038. ocandravowelsigngujarati: 0x0AC9,
  29039. ocaron: 0x01D2,
  29040. ocircle: 0x24DE,
  29041. ocircumflex: 0x00F4,
  29042. ocircumflexacute: 0x1ED1,
  29043. ocircumflexdotbelow: 0x1ED9,
  29044. ocircumflexgrave: 0x1ED3,
  29045. ocircumflexhookabove: 0x1ED5,
  29046. ocircumflextilde: 0x1ED7,
  29047. ocyrillic: 0x043E,
  29048. odblacute: 0x0151,
  29049. odblgrave: 0x020D,
  29050. odeva: 0x0913,
  29051. odieresis: 0x00F6,
  29052. odieresiscyrillic: 0x04E7,
  29053. odotbelow: 0x1ECD,
  29054. oe: 0x0153,
  29055. oekorean: 0x315A,
  29056. ogonek: 0x02DB,
  29057. ogonekcmb: 0x0328,
  29058. ograve: 0x00F2,
  29059. ogujarati: 0x0A93,
  29060. oharmenian: 0x0585,
  29061. ohiragana: 0x304A,
  29062. ohookabove: 0x1ECF,
  29063. ohorn: 0x01A1,
  29064. ohornacute: 0x1EDB,
  29065. ohorndotbelow: 0x1EE3,
  29066. ohorngrave: 0x1EDD,
  29067. ohornhookabove: 0x1EDF,
  29068. ohorntilde: 0x1EE1,
  29069. ohungarumlaut: 0x0151,
  29070. oi: 0x01A3,
  29071. oinvertedbreve: 0x020F,
  29072. okatakana: 0x30AA,
  29073. okatakanahalfwidth: 0xFF75,
  29074. okorean: 0x3157,
  29075. olehebrew: 0x05AB,
  29076. omacron: 0x014D,
  29077. omacronacute: 0x1E53,
  29078. omacrongrave: 0x1E51,
  29079. omdeva: 0x0950,
  29080. omega: 0x03C9,
  29081. omega1: 0x03D6,
  29082. omegacyrillic: 0x0461,
  29083. omegalatinclosed: 0x0277,
  29084. omegaroundcyrillic: 0x047B,
  29085. omegatitlocyrillic: 0x047D,
  29086. omegatonos: 0x03CE,
  29087. omgujarati: 0x0AD0,
  29088. omicron: 0x03BF,
  29089. omicrontonos: 0x03CC,
  29090. omonospace: 0xFF4F,
  29091. one: 0x0031,
  29092. onearabic: 0x0661,
  29093. onebengali: 0x09E7,
  29094. onecircle: 0x2460,
  29095. onecircleinversesansserif: 0x278A,
  29096. onedeva: 0x0967,
  29097. onedotenleader: 0x2024,
  29098. oneeighth: 0x215B,
  29099. onefitted: 0xF6DC,
  29100. onegujarati: 0x0AE7,
  29101. onegurmukhi: 0x0A67,
  29102. onehackarabic: 0x0661,
  29103. onehalf: 0x00BD,
  29104. onehangzhou: 0x3021,
  29105. oneideographicparen: 0x3220,
  29106. oneinferior: 0x2081,
  29107. onemonospace: 0xFF11,
  29108. onenumeratorbengali: 0x09F4,
  29109. oneoldstyle: 0xF731,
  29110. oneparen: 0x2474,
  29111. oneperiod: 0x2488,
  29112. onepersian: 0x06F1,
  29113. onequarter: 0x00BC,
  29114. oneroman: 0x2170,
  29115. onesuperior: 0x00B9,
  29116. onethai: 0x0E51,
  29117. onethird: 0x2153,
  29118. oogonek: 0x01EB,
  29119. oogonekmacron: 0x01ED,
  29120. oogurmukhi: 0x0A13,
  29121. oomatragurmukhi: 0x0A4B,
  29122. oopen: 0x0254,
  29123. oparen: 0x24AA,
  29124. openbullet: 0x25E6,
  29125. option: 0x2325,
  29126. ordfeminine: 0x00AA,
  29127. ordmasculine: 0x00BA,
  29128. orthogonal: 0x221F,
  29129. oshortdeva: 0x0912,
  29130. oshortvowelsigndeva: 0x094A,
  29131. oslash: 0x00F8,
  29132. oslashacute: 0x01FF,
  29133. osmallhiragana: 0x3049,
  29134. osmallkatakana: 0x30A9,
  29135. osmallkatakanahalfwidth: 0xFF6B,
  29136. ostrokeacute: 0x01FF,
  29137. osuperior: 0xF6F0,
  29138. otcyrillic: 0x047F,
  29139. otilde: 0x00F5,
  29140. otildeacute: 0x1E4D,
  29141. otildedieresis: 0x1E4F,
  29142. oubopomofo: 0x3121,
  29143. overline: 0x203E,
  29144. overlinecenterline: 0xFE4A,
  29145. overlinecmb: 0x0305,
  29146. overlinedashed: 0xFE49,
  29147. overlinedblwavy: 0xFE4C,
  29148. overlinewavy: 0xFE4B,
  29149. overscore: 0x00AF,
  29150. ovowelsignbengali: 0x09CB,
  29151. ovowelsigndeva: 0x094B,
  29152. ovowelsigngujarati: 0x0ACB,
  29153. p: 0x0070,
  29154. paampssquare: 0x3380,
  29155. paasentosquare: 0x332B,
  29156. pabengali: 0x09AA,
  29157. pacute: 0x1E55,
  29158. padeva: 0x092A,
  29159. pagedown: 0x21DF,
  29160. pageup: 0x21DE,
  29161. pagujarati: 0x0AAA,
  29162. pagurmukhi: 0x0A2A,
  29163. pahiragana: 0x3071,
  29164. paiyannoithai: 0x0E2F,
  29165. pakatakana: 0x30D1,
  29166. palatalizationcyrilliccmb: 0x0484,
  29167. palochkacyrillic: 0x04C0,
  29168. pansioskorean: 0x317F,
  29169. paragraph: 0x00B6,
  29170. parallel: 0x2225,
  29171. parenleft: 0x0028,
  29172. parenleftaltonearabic: 0xFD3E,
  29173. parenleftbt: 0xF8ED,
  29174. parenleftex: 0xF8EC,
  29175. parenleftinferior: 0x208D,
  29176. parenleftmonospace: 0xFF08,
  29177. parenleftsmall: 0xFE59,
  29178. parenleftsuperior: 0x207D,
  29179. parenlefttp: 0xF8EB,
  29180. parenleftvertical: 0xFE35,
  29181. parenright: 0x0029,
  29182. parenrightaltonearabic: 0xFD3F,
  29183. parenrightbt: 0xF8F8,
  29184. parenrightex: 0xF8F7,
  29185. parenrightinferior: 0x208E,
  29186. parenrightmonospace: 0xFF09,
  29187. parenrightsmall: 0xFE5A,
  29188. parenrightsuperior: 0x207E,
  29189. parenrighttp: 0xF8F6,
  29190. parenrightvertical: 0xFE36,
  29191. partialdiff: 0x2202,
  29192. paseqhebrew: 0x05C0,
  29193. pashtahebrew: 0x0599,
  29194. pasquare: 0x33A9,
  29195. patah: 0x05B7,
  29196. patah11: 0x05B7,
  29197. patah1d: 0x05B7,
  29198. patah2a: 0x05B7,
  29199. patahhebrew: 0x05B7,
  29200. patahnarrowhebrew: 0x05B7,
  29201. patahquarterhebrew: 0x05B7,
  29202. patahwidehebrew: 0x05B7,
  29203. pazerhebrew: 0x05A1,
  29204. pbopomofo: 0x3106,
  29205. pcircle: 0x24DF,
  29206. pdotaccent: 0x1E57,
  29207. pe: 0x05E4,
  29208. pecyrillic: 0x043F,
  29209. pedagesh: 0xFB44,
  29210. pedageshhebrew: 0xFB44,
  29211. peezisquare: 0x333B,
  29212. pefinaldageshhebrew: 0xFB43,
  29213. peharabic: 0x067E,
  29214. peharmenian: 0x057A,
  29215. pehebrew: 0x05E4,
  29216. pehfinalarabic: 0xFB57,
  29217. pehinitialarabic: 0xFB58,
  29218. pehiragana: 0x307A,
  29219. pehmedialarabic: 0xFB59,
  29220. pekatakana: 0x30DA,
  29221. pemiddlehookcyrillic: 0x04A7,
  29222. perafehebrew: 0xFB4E,
  29223. percent: 0x0025,
  29224. percentarabic: 0x066A,
  29225. percentmonospace: 0xFF05,
  29226. percentsmall: 0xFE6A,
  29227. period: 0x002E,
  29228. periodarmenian: 0x0589,
  29229. periodcentered: 0x00B7,
  29230. periodhalfwidth: 0xFF61,
  29231. periodinferior: 0xF6E7,
  29232. periodmonospace: 0xFF0E,
  29233. periodsmall: 0xFE52,
  29234. periodsuperior: 0xF6E8,
  29235. perispomenigreekcmb: 0x0342,
  29236. perpendicular: 0x22A5,
  29237. perthousand: 0x2030,
  29238. peseta: 0x20A7,
  29239. pfsquare: 0x338A,
  29240. phabengali: 0x09AB,
  29241. phadeva: 0x092B,
  29242. phagujarati: 0x0AAB,
  29243. phagurmukhi: 0x0A2B,
  29244. phi: 0x03C6,
  29245. phi1: 0x03D5,
  29246. phieuphacirclekorean: 0x327A,
  29247. phieuphaparenkorean: 0x321A,
  29248. phieuphcirclekorean: 0x326C,
  29249. phieuphkorean: 0x314D,
  29250. phieuphparenkorean: 0x320C,
  29251. philatin: 0x0278,
  29252. phinthuthai: 0x0E3A,
  29253. phisymbolgreek: 0x03D5,
  29254. phook: 0x01A5,
  29255. phophanthai: 0x0E1E,
  29256. phophungthai: 0x0E1C,
  29257. phosamphaothai: 0x0E20,
  29258. pi: 0x03C0,
  29259. pieupacirclekorean: 0x3273,
  29260. pieupaparenkorean: 0x3213,
  29261. pieupcieuckorean: 0x3176,
  29262. pieupcirclekorean: 0x3265,
  29263. pieupkiyeokkorean: 0x3172,
  29264. pieupkorean: 0x3142,
  29265. pieupparenkorean: 0x3205,
  29266. pieupsioskiyeokkorean: 0x3174,
  29267. pieupsioskorean: 0x3144,
  29268. pieupsiostikeutkorean: 0x3175,
  29269. pieupthieuthkorean: 0x3177,
  29270. pieuptikeutkorean: 0x3173,
  29271. pihiragana: 0x3074,
  29272. pikatakana: 0x30D4,
  29273. pisymbolgreek: 0x03D6,
  29274. piwrarmenian: 0x0583,
  29275. plus: 0x002B,
  29276. plusbelowcmb: 0x031F,
  29277. pluscircle: 0x2295,
  29278. plusminus: 0x00B1,
  29279. plusmod: 0x02D6,
  29280. plusmonospace: 0xFF0B,
  29281. plussmall: 0xFE62,
  29282. plussuperior: 0x207A,
  29283. pmonospace: 0xFF50,
  29284. pmsquare: 0x33D8,
  29285. pohiragana: 0x307D,
  29286. pointingindexdownwhite: 0x261F,
  29287. pointingindexleftwhite: 0x261C,
  29288. pointingindexrightwhite: 0x261E,
  29289. pointingindexupwhite: 0x261D,
  29290. pokatakana: 0x30DD,
  29291. poplathai: 0x0E1B,
  29292. postalmark: 0x3012,
  29293. postalmarkface: 0x3020,
  29294. pparen: 0x24AB,
  29295. precedes: 0x227A,
  29296. prescription: 0x211E,
  29297. primemod: 0x02B9,
  29298. primereversed: 0x2035,
  29299. product: 0x220F,
  29300. projective: 0x2305,
  29301. prolongedkana: 0x30FC,
  29302. propellor: 0x2318,
  29303. propersubset: 0x2282,
  29304. propersuperset: 0x2283,
  29305. proportion: 0x2237,
  29306. proportional: 0x221D,
  29307. psi: 0x03C8,
  29308. psicyrillic: 0x0471,
  29309. psilipneumatacyrilliccmb: 0x0486,
  29310. pssquare: 0x33B0,
  29311. puhiragana: 0x3077,
  29312. pukatakana: 0x30D7,
  29313. pvsquare: 0x33B4,
  29314. pwsquare: 0x33BA,
  29315. q: 0x0071,
  29316. qadeva: 0x0958,
  29317. qadmahebrew: 0x05A8,
  29318. qafarabic: 0x0642,
  29319. qaffinalarabic: 0xFED6,
  29320. qafinitialarabic: 0xFED7,
  29321. qafmedialarabic: 0xFED8,
  29322. qamats: 0x05B8,
  29323. qamats10: 0x05B8,
  29324. qamats1a: 0x05B8,
  29325. qamats1c: 0x05B8,
  29326. qamats27: 0x05B8,
  29327. qamats29: 0x05B8,
  29328. qamats33: 0x05B8,
  29329. qamatsde: 0x05B8,
  29330. qamatshebrew: 0x05B8,
  29331. qamatsnarrowhebrew: 0x05B8,
  29332. qamatsqatanhebrew: 0x05B8,
  29333. qamatsqatannarrowhebrew: 0x05B8,
  29334. qamatsqatanquarterhebrew: 0x05B8,
  29335. qamatsqatanwidehebrew: 0x05B8,
  29336. qamatsquarterhebrew: 0x05B8,
  29337. qamatswidehebrew: 0x05B8,
  29338. qarneyparahebrew: 0x059F,
  29339. qbopomofo: 0x3111,
  29340. qcircle: 0x24E0,
  29341. qhook: 0x02A0,
  29342. qmonospace: 0xFF51,
  29343. qof: 0x05E7,
  29344. qofdagesh: 0xFB47,
  29345. qofdageshhebrew: 0xFB47,
  29346. qofhebrew: 0x05E7,
  29347. qparen: 0x24AC,
  29348. quarternote: 0x2669,
  29349. qubuts: 0x05BB,
  29350. qubuts18: 0x05BB,
  29351. qubuts25: 0x05BB,
  29352. qubuts31: 0x05BB,
  29353. qubutshebrew: 0x05BB,
  29354. qubutsnarrowhebrew: 0x05BB,
  29355. qubutsquarterhebrew: 0x05BB,
  29356. qubutswidehebrew: 0x05BB,
  29357. question: 0x003F,
  29358. questionarabic: 0x061F,
  29359. questionarmenian: 0x055E,
  29360. questiondown: 0x00BF,
  29361. questiondownsmall: 0xF7BF,
  29362. questiongreek: 0x037E,
  29363. questionmonospace: 0xFF1F,
  29364. questionsmall: 0xF73F,
  29365. quotedbl: 0x0022,
  29366. quotedblbase: 0x201E,
  29367. quotedblleft: 0x201C,
  29368. quotedblmonospace: 0xFF02,
  29369. quotedblprime: 0x301E,
  29370. quotedblprimereversed: 0x301D,
  29371. quotedblright: 0x201D,
  29372. quoteleft: 0x2018,
  29373. quoteleftreversed: 0x201B,
  29374. quotereversed: 0x201B,
  29375. quoteright: 0x2019,
  29376. quoterightn: 0x0149,
  29377. quotesinglbase: 0x201A,
  29378. quotesingle: 0x0027,
  29379. quotesinglemonospace: 0xFF07,
  29380. r: 0x0072,
  29381. raarmenian: 0x057C,
  29382. rabengali: 0x09B0,
  29383. racute: 0x0155,
  29384. radeva: 0x0930,
  29385. radical: 0x221A,
  29386. radicalex: 0xF8E5,
  29387. radoverssquare: 0x33AE,
  29388. radoverssquaredsquare: 0x33AF,
  29389. radsquare: 0x33AD,
  29390. rafe: 0x05BF,
  29391. rafehebrew: 0x05BF,
  29392. ragujarati: 0x0AB0,
  29393. ragurmukhi: 0x0A30,
  29394. rahiragana: 0x3089,
  29395. rakatakana: 0x30E9,
  29396. rakatakanahalfwidth: 0xFF97,
  29397. ralowerdiagonalbengali: 0x09F1,
  29398. ramiddlediagonalbengali: 0x09F0,
  29399. ramshorn: 0x0264,
  29400. ratio: 0x2236,
  29401. rbopomofo: 0x3116,
  29402. rcaron: 0x0159,
  29403. rcedilla: 0x0157,
  29404. rcircle: 0x24E1,
  29405. rcommaaccent: 0x0157,
  29406. rdblgrave: 0x0211,
  29407. rdotaccent: 0x1E59,
  29408. rdotbelow: 0x1E5B,
  29409. rdotbelowmacron: 0x1E5D,
  29410. referencemark: 0x203B,
  29411. reflexsubset: 0x2286,
  29412. reflexsuperset: 0x2287,
  29413. registered: 0x00AE,
  29414. registersans: 0xF8E8,
  29415. registerserif: 0xF6DA,
  29416. reharabic: 0x0631,
  29417. reharmenian: 0x0580,
  29418. rehfinalarabic: 0xFEAE,
  29419. rehiragana: 0x308C,
  29420. rekatakana: 0x30EC,
  29421. rekatakanahalfwidth: 0xFF9A,
  29422. resh: 0x05E8,
  29423. reshdageshhebrew: 0xFB48,
  29424. reshhebrew: 0x05E8,
  29425. reversedtilde: 0x223D,
  29426. reviahebrew: 0x0597,
  29427. reviamugrashhebrew: 0x0597,
  29428. revlogicalnot: 0x2310,
  29429. rfishhook: 0x027E,
  29430. rfishhookreversed: 0x027F,
  29431. rhabengali: 0x09DD,
  29432. rhadeva: 0x095D,
  29433. rho: 0x03C1,
  29434. rhook: 0x027D,
  29435. rhookturned: 0x027B,
  29436. rhookturnedsuperior: 0x02B5,
  29437. rhosymbolgreek: 0x03F1,
  29438. rhotichookmod: 0x02DE,
  29439. rieulacirclekorean: 0x3271,
  29440. rieulaparenkorean: 0x3211,
  29441. rieulcirclekorean: 0x3263,
  29442. rieulhieuhkorean: 0x3140,
  29443. rieulkiyeokkorean: 0x313A,
  29444. rieulkiyeoksioskorean: 0x3169,
  29445. rieulkorean: 0x3139,
  29446. rieulmieumkorean: 0x313B,
  29447. rieulpansioskorean: 0x316C,
  29448. rieulparenkorean: 0x3203,
  29449. rieulphieuphkorean: 0x313F,
  29450. rieulpieupkorean: 0x313C,
  29451. rieulpieupsioskorean: 0x316B,
  29452. rieulsioskorean: 0x313D,
  29453. rieulthieuthkorean: 0x313E,
  29454. rieultikeutkorean: 0x316A,
  29455. rieulyeorinhieuhkorean: 0x316D,
  29456. rightangle: 0x221F,
  29457. righttackbelowcmb: 0x0319,
  29458. righttriangle: 0x22BF,
  29459. rihiragana: 0x308A,
  29460. rikatakana: 0x30EA,
  29461. rikatakanahalfwidth: 0xFF98,
  29462. ring: 0x02DA,
  29463. ringbelowcmb: 0x0325,
  29464. ringcmb: 0x030A,
  29465. ringhalfleft: 0x02BF,
  29466. ringhalfleftarmenian: 0x0559,
  29467. ringhalfleftbelowcmb: 0x031C,
  29468. ringhalfleftcentered: 0x02D3,
  29469. ringhalfright: 0x02BE,
  29470. ringhalfrightbelowcmb: 0x0339,
  29471. ringhalfrightcentered: 0x02D2,
  29472. rinvertedbreve: 0x0213,
  29473. rittorusquare: 0x3351,
  29474. rlinebelow: 0x1E5F,
  29475. rlongleg: 0x027C,
  29476. rlonglegturned: 0x027A,
  29477. rmonospace: 0xFF52,
  29478. rohiragana: 0x308D,
  29479. rokatakana: 0x30ED,
  29480. rokatakanahalfwidth: 0xFF9B,
  29481. roruathai: 0x0E23,
  29482. rparen: 0x24AD,
  29483. rrabengali: 0x09DC,
  29484. rradeva: 0x0931,
  29485. rragurmukhi: 0x0A5C,
  29486. rreharabic: 0x0691,
  29487. rrehfinalarabic: 0xFB8D,
  29488. rrvocalicbengali: 0x09E0,
  29489. rrvocalicdeva: 0x0960,
  29490. rrvocalicgujarati: 0x0AE0,
  29491. rrvocalicvowelsignbengali: 0x09C4,
  29492. rrvocalicvowelsigndeva: 0x0944,
  29493. rrvocalicvowelsigngujarati: 0x0AC4,
  29494. rsuperior: 0xF6F1,
  29495. rtblock: 0x2590,
  29496. rturned: 0x0279,
  29497. rturnedsuperior: 0x02B4,
  29498. ruhiragana: 0x308B,
  29499. rukatakana: 0x30EB,
  29500. rukatakanahalfwidth: 0xFF99,
  29501. rupeemarkbengali: 0x09F2,
  29502. rupeesignbengali: 0x09F3,
  29503. rupiah: 0xF6DD,
  29504. ruthai: 0x0E24,
  29505. rvocalicbengali: 0x098B,
  29506. rvocalicdeva: 0x090B,
  29507. rvocalicgujarati: 0x0A8B,
  29508. rvocalicvowelsignbengali: 0x09C3,
  29509. rvocalicvowelsigndeva: 0x0943,
  29510. rvocalicvowelsigngujarati: 0x0AC3,
  29511. s: 0x0073,
  29512. sabengali: 0x09B8,
  29513. sacute: 0x015B,
  29514. sacutedotaccent: 0x1E65,
  29515. sadarabic: 0x0635,
  29516. sadeva: 0x0938,
  29517. sadfinalarabic: 0xFEBA,
  29518. sadinitialarabic: 0xFEBB,
  29519. sadmedialarabic: 0xFEBC,
  29520. sagujarati: 0x0AB8,
  29521. sagurmukhi: 0x0A38,
  29522. sahiragana: 0x3055,
  29523. sakatakana: 0x30B5,
  29524. sakatakanahalfwidth: 0xFF7B,
  29525. sallallahoualayhewasallamarabic: 0xFDFA,
  29526. samekh: 0x05E1,
  29527. samekhdagesh: 0xFB41,
  29528. samekhdageshhebrew: 0xFB41,
  29529. samekhhebrew: 0x05E1,
  29530. saraaathai: 0x0E32,
  29531. saraaethai: 0x0E41,
  29532. saraaimaimalaithai: 0x0E44,
  29533. saraaimaimuanthai: 0x0E43,
  29534. saraamthai: 0x0E33,
  29535. saraathai: 0x0E30,
  29536. saraethai: 0x0E40,
  29537. saraiileftthai: 0xF886,
  29538. saraiithai: 0x0E35,
  29539. saraileftthai: 0xF885,
  29540. saraithai: 0x0E34,
  29541. saraothai: 0x0E42,
  29542. saraueeleftthai: 0xF888,
  29543. saraueethai: 0x0E37,
  29544. saraueleftthai: 0xF887,
  29545. sarauethai: 0x0E36,
  29546. sarauthai: 0x0E38,
  29547. sarauuthai: 0x0E39,
  29548. sbopomofo: 0x3119,
  29549. scaron: 0x0161,
  29550. scarondotaccent: 0x1E67,
  29551. scedilla: 0x015F,
  29552. schwa: 0x0259,
  29553. schwacyrillic: 0x04D9,
  29554. schwadieresiscyrillic: 0x04DB,
  29555. schwahook: 0x025A,
  29556. scircle: 0x24E2,
  29557. scircumflex: 0x015D,
  29558. scommaaccent: 0x0219,
  29559. sdotaccent: 0x1E61,
  29560. sdotbelow: 0x1E63,
  29561. sdotbelowdotaccent: 0x1E69,
  29562. seagullbelowcmb: 0x033C,
  29563. second: 0x2033,
  29564. secondtonechinese: 0x02CA,
  29565. section: 0x00A7,
  29566. seenarabic: 0x0633,
  29567. seenfinalarabic: 0xFEB2,
  29568. seeninitialarabic: 0xFEB3,
  29569. seenmedialarabic: 0xFEB4,
  29570. segol: 0x05B6,
  29571. segol13: 0x05B6,
  29572. segol1f: 0x05B6,
  29573. segol2c: 0x05B6,
  29574. segolhebrew: 0x05B6,
  29575. segolnarrowhebrew: 0x05B6,
  29576. segolquarterhebrew: 0x05B6,
  29577. segoltahebrew: 0x0592,
  29578. segolwidehebrew: 0x05B6,
  29579. seharmenian: 0x057D,
  29580. sehiragana: 0x305B,
  29581. sekatakana: 0x30BB,
  29582. sekatakanahalfwidth: 0xFF7E,
  29583. semicolon: 0x003B,
  29584. semicolonarabic: 0x061B,
  29585. semicolonmonospace: 0xFF1B,
  29586. semicolonsmall: 0xFE54,
  29587. semivoicedmarkkana: 0x309C,
  29588. semivoicedmarkkanahalfwidth: 0xFF9F,
  29589. sentisquare: 0x3322,
  29590. sentosquare: 0x3323,
  29591. seven: 0x0037,
  29592. sevenarabic: 0x0667,
  29593. sevenbengali: 0x09ED,
  29594. sevencircle: 0x2466,
  29595. sevencircleinversesansserif: 0x2790,
  29596. sevendeva: 0x096D,
  29597. seveneighths: 0x215E,
  29598. sevengujarati: 0x0AED,
  29599. sevengurmukhi: 0x0A6D,
  29600. sevenhackarabic: 0x0667,
  29601. sevenhangzhou: 0x3027,
  29602. sevenideographicparen: 0x3226,
  29603. seveninferior: 0x2087,
  29604. sevenmonospace: 0xFF17,
  29605. sevenoldstyle: 0xF737,
  29606. sevenparen: 0x247A,
  29607. sevenperiod: 0x248E,
  29608. sevenpersian: 0x06F7,
  29609. sevenroman: 0x2176,
  29610. sevensuperior: 0x2077,
  29611. seventeencircle: 0x2470,
  29612. seventeenparen: 0x2484,
  29613. seventeenperiod: 0x2498,
  29614. seventhai: 0x0E57,
  29615. sfthyphen: 0x00AD,
  29616. shaarmenian: 0x0577,
  29617. shabengali: 0x09B6,
  29618. shacyrillic: 0x0448,
  29619. shaddaarabic: 0x0651,
  29620. shaddadammaarabic: 0xFC61,
  29621. shaddadammatanarabic: 0xFC5E,
  29622. shaddafathaarabic: 0xFC60,
  29623. shaddakasraarabic: 0xFC62,
  29624. shaddakasratanarabic: 0xFC5F,
  29625. shade: 0x2592,
  29626. shadedark: 0x2593,
  29627. shadelight: 0x2591,
  29628. shademedium: 0x2592,
  29629. shadeva: 0x0936,
  29630. shagujarati: 0x0AB6,
  29631. shagurmukhi: 0x0A36,
  29632. shalshelethebrew: 0x0593,
  29633. shbopomofo: 0x3115,
  29634. shchacyrillic: 0x0449,
  29635. sheenarabic: 0x0634,
  29636. sheenfinalarabic: 0xFEB6,
  29637. sheeninitialarabic: 0xFEB7,
  29638. sheenmedialarabic: 0xFEB8,
  29639. sheicoptic: 0x03E3,
  29640. sheqel: 0x20AA,
  29641. sheqelhebrew: 0x20AA,
  29642. sheva: 0x05B0,
  29643. sheva115: 0x05B0,
  29644. sheva15: 0x05B0,
  29645. sheva22: 0x05B0,
  29646. sheva2e: 0x05B0,
  29647. shevahebrew: 0x05B0,
  29648. shevanarrowhebrew: 0x05B0,
  29649. shevaquarterhebrew: 0x05B0,
  29650. shevawidehebrew: 0x05B0,
  29651. shhacyrillic: 0x04BB,
  29652. shimacoptic: 0x03ED,
  29653. shin: 0x05E9,
  29654. shindagesh: 0xFB49,
  29655. shindageshhebrew: 0xFB49,
  29656. shindageshshindot: 0xFB2C,
  29657. shindageshshindothebrew: 0xFB2C,
  29658. shindageshsindot: 0xFB2D,
  29659. shindageshsindothebrew: 0xFB2D,
  29660. shindothebrew: 0x05C1,
  29661. shinhebrew: 0x05E9,
  29662. shinshindot: 0xFB2A,
  29663. shinshindothebrew: 0xFB2A,
  29664. shinsindot: 0xFB2B,
  29665. shinsindothebrew: 0xFB2B,
  29666. shook: 0x0282,
  29667. sigma: 0x03C3,
  29668. sigma1: 0x03C2,
  29669. sigmafinal: 0x03C2,
  29670. sigmalunatesymbolgreek: 0x03F2,
  29671. sihiragana: 0x3057,
  29672. sikatakana: 0x30B7,
  29673. sikatakanahalfwidth: 0xFF7C,
  29674. siluqhebrew: 0x05BD,
  29675. siluqlefthebrew: 0x05BD,
  29676. similar: 0x223C,
  29677. sindothebrew: 0x05C2,
  29678. siosacirclekorean: 0x3274,
  29679. siosaparenkorean: 0x3214,
  29680. sioscieuckorean: 0x317E,
  29681. sioscirclekorean: 0x3266,
  29682. sioskiyeokkorean: 0x317A,
  29683. sioskorean: 0x3145,
  29684. siosnieunkorean: 0x317B,
  29685. siosparenkorean: 0x3206,
  29686. siospieupkorean: 0x317D,
  29687. siostikeutkorean: 0x317C,
  29688. six: 0x0036,
  29689. sixarabic: 0x0666,
  29690. sixbengali: 0x09EC,
  29691. sixcircle: 0x2465,
  29692. sixcircleinversesansserif: 0x278F,
  29693. sixdeva: 0x096C,
  29694. sixgujarati: 0x0AEC,
  29695. sixgurmukhi: 0x0A6C,
  29696. sixhackarabic: 0x0666,
  29697. sixhangzhou: 0x3026,
  29698. sixideographicparen: 0x3225,
  29699. sixinferior: 0x2086,
  29700. sixmonospace: 0xFF16,
  29701. sixoldstyle: 0xF736,
  29702. sixparen: 0x2479,
  29703. sixperiod: 0x248D,
  29704. sixpersian: 0x06F6,
  29705. sixroman: 0x2175,
  29706. sixsuperior: 0x2076,
  29707. sixteencircle: 0x246F,
  29708. sixteencurrencydenominatorbengali: 0x09F9,
  29709. sixteenparen: 0x2483,
  29710. sixteenperiod: 0x2497,
  29711. sixthai: 0x0E56,
  29712. slash: 0x002F,
  29713. slashmonospace: 0xFF0F,
  29714. slong: 0x017F,
  29715. slongdotaccent: 0x1E9B,
  29716. smileface: 0x263A,
  29717. smonospace: 0xFF53,
  29718. sofpasuqhebrew: 0x05C3,
  29719. softhyphen: 0x00AD,
  29720. softsigncyrillic: 0x044C,
  29721. sohiragana: 0x305D,
  29722. sokatakana: 0x30BD,
  29723. sokatakanahalfwidth: 0xFF7F,
  29724. soliduslongoverlaycmb: 0x0338,
  29725. solidusshortoverlaycmb: 0x0337,
  29726. sorusithai: 0x0E29,
  29727. sosalathai: 0x0E28,
  29728. sosothai: 0x0E0B,
  29729. sosuathai: 0x0E2A,
  29730. space: 0x0020,
  29731. spacehackarabic: 0x0020,
  29732. spade: 0x2660,
  29733. spadesuitblack: 0x2660,
  29734. spadesuitwhite: 0x2664,
  29735. sparen: 0x24AE,
  29736. squarebelowcmb: 0x033B,
  29737. squarecc: 0x33C4,
  29738. squarecm: 0x339D,
  29739. squarediagonalcrosshatchfill: 0x25A9,
  29740. squarehorizontalfill: 0x25A4,
  29741. squarekg: 0x338F,
  29742. squarekm: 0x339E,
  29743. squarekmcapital: 0x33CE,
  29744. squareln: 0x33D1,
  29745. squarelog: 0x33D2,
  29746. squaremg: 0x338E,
  29747. squaremil: 0x33D5,
  29748. squaremm: 0x339C,
  29749. squaremsquared: 0x33A1,
  29750. squareorthogonalcrosshatchfill: 0x25A6,
  29751. squareupperlefttolowerrightfill: 0x25A7,
  29752. squareupperrighttolowerleftfill: 0x25A8,
  29753. squareverticalfill: 0x25A5,
  29754. squarewhitewithsmallblack: 0x25A3,
  29755. srsquare: 0x33DB,
  29756. ssabengali: 0x09B7,
  29757. ssadeva: 0x0937,
  29758. ssagujarati: 0x0AB7,
  29759. ssangcieuckorean: 0x3149,
  29760. ssanghieuhkorean: 0x3185,
  29761. ssangieungkorean: 0x3180,
  29762. ssangkiyeokkorean: 0x3132,
  29763. ssangnieunkorean: 0x3165,
  29764. ssangpieupkorean: 0x3143,
  29765. ssangsioskorean: 0x3146,
  29766. ssangtikeutkorean: 0x3138,
  29767. ssuperior: 0xF6F2,
  29768. sterling: 0x00A3,
  29769. sterlingmonospace: 0xFFE1,
  29770. strokelongoverlaycmb: 0x0336,
  29771. strokeshortoverlaycmb: 0x0335,
  29772. subset: 0x2282,
  29773. subsetnotequal: 0x228A,
  29774. subsetorequal: 0x2286,
  29775. succeeds: 0x227B,
  29776. suchthat: 0x220B,
  29777. suhiragana: 0x3059,
  29778. sukatakana: 0x30B9,
  29779. sukatakanahalfwidth: 0xFF7D,
  29780. sukunarabic: 0x0652,
  29781. summation: 0x2211,
  29782. sun: 0x263C,
  29783. superset: 0x2283,
  29784. supersetnotequal: 0x228B,
  29785. supersetorequal: 0x2287,
  29786. svsquare: 0x33DC,
  29787. syouwaerasquare: 0x337C,
  29788. t: 0x0074,
  29789. tabengali: 0x09A4,
  29790. tackdown: 0x22A4,
  29791. tackleft: 0x22A3,
  29792. tadeva: 0x0924,
  29793. tagujarati: 0x0AA4,
  29794. tagurmukhi: 0x0A24,
  29795. taharabic: 0x0637,
  29796. tahfinalarabic: 0xFEC2,
  29797. tahinitialarabic: 0xFEC3,
  29798. tahiragana: 0x305F,
  29799. tahmedialarabic: 0xFEC4,
  29800. taisyouerasquare: 0x337D,
  29801. takatakana: 0x30BF,
  29802. takatakanahalfwidth: 0xFF80,
  29803. tatweelarabic: 0x0640,
  29804. tau: 0x03C4,
  29805. tav: 0x05EA,
  29806. tavdages: 0xFB4A,
  29807. tavdagesh: 0xFB4A,
  29808. tavdageshhebrew: 0xFB4A,
  29809. tavhebrew: 0x05EA,
  29810. tbar: 0x0167,
  29811. tbopomofo: 0x310A,
  29812. tcaron: 0x0165,
  29813. tccurl: 0x02A8,
  29814. tcedilla: 0x0163,
  29815. tcheharabic: 0x0686,
  29816. tchehfinalarabic: 0xFB7B,
  29817. tchehinitialarabic: 0xFB7C,
  29818. tchehmedialarabic: 0xFB7D,
  29819. tcircle: 0x24E3,
  29820. tcircumflexbelow: 0x1E71,
  29821. tcommaaccent: 0x0163,
  29822. tdieresis: 0x1E97,
  29823. tdotaccent: 0x1E6B,
  29824. tdotbelow: 0x1E6D,
  29825. tecyrillic: 0x0442,
  29826. tedescendercyrillic: 0x04AD,
  29827. teharabic: 0x062A,
  29828. tehfinalarabic: 0xFE96,
  29829. tehhahinitialarabic: 0xFCA2,
  29830. tehhahisolatedarabic: 0xFC0C,
  29831. tehinitialarabic: 0xFE97,
  29832. tehiragana: 0x3066,
  29833. tehjeeminitialarabic: 0xFCA1,
  29834. tehjeemisolatedarabic: 0xFC0B,
  29835. tehmarbutaarabic: 0x0629,
  29836. tehmarbutafinalarabic: 0xFE94,
  29837. tehmedialarabic: 0xFE98,
  29838. tehmeeminitialarabic: 0xFCA4,
  29839. tehmeemisolatedarabic: 0xFC0E,
  29840. tehnoonfinalarabic: 0xFC73,
  29841. tekatakana: 0x30C6,
  29842. tekatakanahalfwidth: 0xFF83,
  29843. telephone: 0x2121,
  29844. telephoneblack: 0x260E,
  29845. telishagedolahebrew: 0x05A0,
  29846. telishaqetanahebrew: 0x05A9,
  29847. tencircle: 0x2469,
  29848. tenideographicparen: 0x3229,
  29849. tenparen: 0x247D,
  29850. tenperiod: 0x2491,
  29851. tenroman: 0x2179,
  29852. tesh: 0x02A7,
  29853. tet: 0x05D8,
  29854. tetdagesh: 0xFB38,
  29855. tetdageshhebrew: 0xFB38,
  29856. tethebrew: 0x05D8,
  29857. tetsecyrillic: 0x04B5,
  29858. tevirhebrew: 0x059B,
  29859. tevirlefthebrew: 0x059B,
  29860. thabengali: 0x09A5,
  29861. thadeva: 0x0925,
  29862. thagujarati: 0x0AA5,
  29863. thagurmukhi: 0x0A25,
  29864. thalarabic: 0x0630,
  29865. thalfinalarabic: 0xFEAC,
  29866. thanthakhatlowleftthai: 0xF898,
  29867. thanthakhatlowrightthai: 0xF897,
  29868. thanthakhatthai: 0x0E4C,
  29869. thanthakhatupperleftthai: 0xF896,
  29870. theharabic: 0x062B,
  29871. thehfinalarabic: 0xFE9A,
  29872. thehinitialarabic: 0xFE9B,
  29873. thehmedialarabic: 0xFE9C,
  29874. thereexists: 0x2203,
  29875. therefore: 0x2234,
  29876. theta: 0x03B8,
  29877. theta1: 0x03D1,
  29878. thetasymbolgreek: 0x03D1,
  29879. thieuthacirclekorean: 0x3279,
  29880. thieuthaparenkorean: 0x3219,
  29881. thieuthcirclekorean: 0x326B,
  29882. thieuthkorean: 0x314C,
  29883. thieuthparenkorean: 0x320B,
  29884. thirteencircle: 0x246C,
  29885. thirteenparen: 0x2480,
  29886. thirteenperiod: 0x2494,
  29887. thonangmonthothai: 0x0E11,
  29888. thook: 0x01AD,
  29889. thophuthaothai: 0x0E12,
  29890. thorn: 0x00FE,
  29891. thothahanthai: 0x0E17,
  29892. thothanthai: 0x0E10,
  29893. thothongthai: 0x0E18,
  29894. thothungthai: 0x0E16,
  29895. thousandcyrillic: 0x0482,
  29896. thousandsseparatorarabic: 0x066C,
  29897. thousandsseparatorpersian: 0x066C,
  29898. three: 0x0033,
  29899. threearabic: 0x0663,
  29900. threebengali: 0x09E9,
  29901. threecircle: 0x2462,
  29902. threecircleinversesansserif: 0x278C,
  29903. threedeva: 0x0969,
  29904. threeeighths: 0x215C,
  29905. threegujarati: 0x0AE9,
  29906. threegurmukhi: 0x0A69,
  29907. threehackarabic: 0x0663,
  29908. threehangzhou: 0x3023,
  29909. threeideographicparen: 0x3222,
  29910. threeinferior: 0x2083,
  29911. threemonospace: 0xFF13,
  29912. threenumeratorbengali: 0x09F6,
  29913. threeoldstyle: 0xF733,
  29914. threeparen: 0x2476,
  29915. threeperiod: 0x248A,
  29916. threepersian: 0x06F3,
  29917. threequarters: 0x00BE,
  29918. threequartersemdash: 0xF6DE,
  29919. threeroman: 0x2172,
  29920. threesuperior: 0x00B3,
  29921. threethai: 0x0E53,
  29922. thzsquare: 0x3394,
  29923. tihiragana: 0x3061,
  29924. tikatakana: 0x30C1,
  29925. tikatakanahalfwidth: 0xFF81,
  29926. tikeutacirclekorean: 0x3270,
  29927. tikeutaparenkorean: 0x3210,
  29928. tikeutcirclekorean: 0x3262,
  29929. tikeutkorean: 0x3137,
  29930. tikeutparenkorean: 0x3202,
  29931. tilde: 0x02DC,
  29932. tildebelowcmb: 0x0330,
  29933. tildecmb: 0x0303,
  29934. tildecomb: 0x0303,
  29935. tildedoublecmb: 0x0360,
  29936. tildeoperator: 0x223C,
  29937. tildeoverlaycmb: 0x0334,
  29938. tildeverticalcmb: 0x033E,
  29939. timescircle: 0x2297,
  29940. tipehahebrew: 0x0596,
  29941. tipehalefthebrew: 0x0596,
  29942. tippigurmukhi: 0x0A70,
  29943. titlocyrilliccmb: 0x0483,
  29944. tiwnarmenian: 0x057F,
  29945. tlinebelow: 0x1E6F,
  29946. tmonospace: 0xFF54,
  29947. toarmenian: 0x0569,
  29948. tohiragana: 0x3068,
  29949. tokatakana: 0x30C8,
  29950. tokatakanahalfwidth: 0xFF84,
  29951. tonebarextrahighmod: 0x02E5,
  29952. tonebarextralowmod: 0x02E9,
  29953. tonebarhighmod: 0x02E6,
  29954. tonebarlowmod: 0x02E8,
  29955. tonebarmidmod: 0x02E7,
  29956. tonefive: 0x01BD,
  29957. tonesix: 0x0185,
  29958. tonetwo: 0x01A8,
  29959. tonos: 0x0384,
  29960. tonsquare: 0x3327,
  29961. topatakthai: 0x0E0F,
  29962. tortoiseshellbracketleft: 0x3014,
  29963. tortoiseshellbracketleftsmall: 0xFE5D,
  29964. tortoiseshellbracketleftvertical: 0xFE39,
  29965. tortoiseshellbracketright: 0x3015,
  29966. tortoiseshellbracketrightsmall: 0xFE5E,
  29967. tortoiseshellbracketrightvertical: 0xFE3A,
  29968. totaothai: 0x0E15,
  29969. tpalatalhook: 0x01AB,
  29970. tparen: 0x24AF,
  29971. trademark: 0x2122,
  29972. trademarksans: 0xF8EA,
  29973. trademarkserif: 0xF6DB,
  29974. tretroflexhook: 0x0288,
  29975. triagdn: 0x25BC,
  29976. triaglf: 0x25C4,
  29977. triagrt: 0x25BA,
  29978. triagup: 0x25B2,
  29979. ts: 0x02A6,
  29980. tsadi: 0x05E6,
  29981. tsadidagesh: 0xFB46,
  29982. tsadidageshhebrew: 0xFB46,
  29983. tsadihebrew: 0x05E6,
  29984. tsecyrillic: 0x0446,
  29985. tsere: 0x05B5,
  29986. tsere12: 0x05B5,
  29987. tsere1e: 0x05B5,
  29988. tsere2b: 0x05B5,
  29989. tserehebrew: 0x05B5,
  29990. tserenarrowhebrew: 0x05B5,
  29991. tserequarterhebrew: 0x05B5,
  29992. tserewidehebrew: 0x05B5,
  29993. tshecyrillic: 0x045B,
  29994. tsuperior: 0xF6F3,
  29995. ttabengali: 0x099F,
  29996. ttadeva: 0x091F,
  29997. ttagujarati: 0x0A9F,
  29998. ttagurmukhi: 0x0A1F,
  29999. tteharabic: 0x0679,
  30000. ttehfinalarabic: 0xFB67,
  30001. ttehinitialarabic: 0xFB68,
  30002. ttehmedialarabic: 0xFB69,
  30003. tthabengali: 0x09A0,
  30004. tthadeva: 0x0920,
  30005. tthagujarati: 0x0AA0,
  30006. tthagurmukhi: 0x0A20,
  30007. tturned: 0x0287,
  30008. tuhiragana: 0x3064,
  30009. tukatakana: 0x30C4,
  30010. tukatakanahalfwidth: 0xFF82,
  30011. tusmallhiragana: 0x3063,
  30012. tusmallkatakana: 0x30C3,
  30013. tusmallkatakanahalfwidth: 0xFF6F,
  30014. twelvecircle: 0x246B,
  30015. twelveparen: 0x247F,
  30016. twelveperiod: 0x2493,
  30017. twelveroman: 0x217B,
  30018. twentycircle: 0x2473,
  30019. twentyhangzhou: 0x5344,
  30020. twentyparen: 0x2487,
  30021. twentyperiod: 0x249B,
  30022. two: 0x0032,
  30023. twoarabic: 0x0662,
  30024. twobengali: 0x09E8,
  30025. twocircle: 0x2461,
  30026. twocircleinversesansserif: 0x278B,
  30027. twodeva: 0x0968,
  30028. twodotenleader: 0x2025,
  30029. twodotleader: 0x2025,
  30030. twodotleadervertical: 0xFE30,
  30031. twogujarati: 0x0AE8,
  30032. twogurmukhi: 0x0A68,
  30033. twohackarabic: 0x0662,
  30034. twohangzhou: 0x3022,
  30035. twoideographicparen: 0x3221,
  30036. twoinferior: 0x2082,
  30037. twomonospace: 0xFF12,
  30038. twonumeratorbengali: 0x09F5,
  30039. twooldstyle: 0xF732,
  30040. twoparen: 0x2475,
  30041. twoperiod: 0x2489,
  30042. twopersian: 0x06F2,
  30043. tworoman: 0x2171,
  30044. twostroke: 0x01BB,
  30045. twosuperior: 0x00B2,
  30046. twothai: 0x0E52,
  30047. twothirds: 0x2154,
  30048. u: 0x0075,
  30049. uacute: 0x00FA,
  30050. ubar: 0x0289,
  30051. ubengali: 0x0989,
  30052. ubopomofo: 0x3128,
  30053. ubreve: 0x016D,
  30054. ucaron: 0x01D4,
  30055. ucircle: 0x24E4,
  30056. ucircumflex: 0x00FB,
  30057. ucircumflexbelow: 0x1E77,
  30058. ucyrillic: 0x0443,
  30059. udattadeva: 0x0951,
  30060. udblacute: 0x0171,
  30061. udblgrave: 0x0215,
  30062. udeva: 0x0909,
  30063. udieresis: 0x00FC,
  30064. udieresisacute: 0x01D8,
  30065. udieresisbelow: 0x1E73,
  30066. udieresiscaron: 0x01DA,
  30067. udieresiscyrillic: 0x04F1,
  30068. udieresisgrave: 0x01DC,
  30069. udieresismacron: 0x01D6,
  30070. udotbelow: 0x1EE5,
  30071. ugrave: 0x00F9,
  30072. ugujarati: 0x0A89,
  30073. ugurmukhi: 0x0A09,
  30074. uhiragana: 0x3046,
  30075. uhookabove: 0x1EE7,
  30076. uhorn: 0x01B0,
  30077. uhornacute: 0x1EE9,
  30078. uhorndotbelow: 0x1EF1,
  30079. uhorngrave: 0x1EEB,
  30080. uhornhookabove: 0x1EED,
  30081. uhorntilde: 0x1EEF,
  30082. uhungarumlaut: 0x0171,
  30083. uhungarumlautcyrillic: 0x04F3,
  30084. uinvertedbreve: 0x0217,
  30085. ukatakana: 0x30A6,
  30086. ukatakanahalfwidth: 0xFF73,
  30087. ukcyrillic: 0x0479,
  30088. ukorean: 0x315C,
  30089. umacron: 0x016B,
  30090. umacroncyrillic: 0x04EF,
  30091. umacrondieresis: 0x1E7B,
  30092. umatragurmukhi: 0x0A41,
  30093. umonospace: 0xFF55,
  30094. underscore: 0x005F,
  30095. underscoredbl: 0x2017,
  30096. underscoremonospace: 0xFF3F,
  30097. underscorevertical: 0xFE33,
  30098. underscorewavy: 0xFE4F,
  30099. union: 0x222A,
  30100. universal: 0x2200,
  30101. uogonek: 0x0173,
  30102. uparen: 0x24B0,
  30103. upblock: 0x2580,
  30104. upperdothebrew: 0x05C4,
  30105. upsilon: 0x03C5,
  30106. upsilondieresis: 0x03CB,
  30107. upsilondieresistonos: 0x03B0,
  30108. upsilonlatin: 0x028A,
  30109. upsilontonos: 0x03CD,
  30110. uptackbelowcmb: 0x031D,
  30111. uptackmod: 0x02D4,
  30112. uragurmukhi: 0x0A73,
  30113. uring: 0x016F,
  30114. ushortcyrillic: 0x045E,
  30115. usmallhiragana: 0x3045,
  30116. usmallkatakana: 0x30A5,
  30117. usmallkatakanahalfwidth: 0xFF69,
  30118. ustraightcyrillic: 0x04AF,
  30119. ustraightstrokecyrillic: 0x04B1,
  30120. utilde: 0x0169,
  30121. utildeacute: 0x1E79,
  30122. utildebelow: 0x1E75,
  30123. uubengali: 0x098A,
  30124. uudeva: 0x090A,
  30125. uugujarati: 0x0A8A,
  30126. uugurmukhi: 0x0A0A,
  30127. uumatragurmukhi: 0x0A42,
  30128. uuvowelsignbengali: 0x09C2,
  30129. uuvowelsigndeva: 0x0942,
  30130. uuvowelsigngujarati: 0x0AC2,
  30131. uvowelsignbengali: 0x09C1,
  30132. uvowelsigndeva: 0x0941,
  30133. uvowelsigngujarati: 0x0AC1,
  30134. v: 0x0076,
  30135. vadeva: 0x0935,
  30136. vagujarati: 0x0AB5,
  30137. vagurmukhi: 0x0A35,
  30138. vakatakana: 0x30F7,
  30139. vav: 0x05D5,
  30140. vavdagesh: 0xFB35,
  30141. vavdagesh65: 0xFB35,
  30142. vavdageshhebrew: 0xFB35,
  30143. vavhebrew: 0x05D5,
  30144. vavholam: 0xFB4B,
  30145. vavholamhebrew: 0xFB4B,
  30146. vavvavhebrew: 0x05F0,
  30147. vavyodhebrew: 0x05F1,
  30148. vcircle: 0x24E5,
  30149. vdotbelow: 0x1E7F,
  30150. vecyrillic: 0x0432,
  30151. veharabic: 0x06A4,
  30152. vehfinalarabic: 0xFB6B,
  30153. vehinitialarabic: 0xFB6C,
  30154. vehmedialarabic: 0xFB6D,
  30155. vekatakana: 0x30F9,
  30156. venus: 0x2640,
  30157. verticalbar: 0x007C,
  30158. verticallineabovecmb: 0x030D,
  30159. verticallinebelowcmb: 0x0329,
  30160. verticallinelowmod: 0x02CC,
  30161. verticallinemod: 0x02C8,
  30162. vewarmenian: 0x057E,
  30163. vhook: 0x028B,
  30164. vikatakana: 0x30F8,
  30165. viramabengali: 0x09CD,
  30166. viramadeva: 0x094D,
  30167. viramagujarati: 0x0ACD,
  30168. visargabengali: 0x0983,
  30169. visargadeva: 0x0903,
  30170. visargagujarati: 0x0A83,
  30171. vmonospace: 0xFF56,
  30172. voarmenian: 0x0578,
  30173. voicediterationhiragana: 0x309E,
  30174. voicediterationkatakana: 0x30FE,
  30175. voicedmarkkana: 0x309B,
  30176. voicedmarkkanahalfwidth: 0xFF9E,
  30177. vokatakana: 0x30FA,
  30178. vparen: 0x24B1,
  30179. vtilde: 0x1E7D,
  30180. vturned: 0x028C,
  30181. vuhiragana: 0x3094,
  30182. vukatakana: 0x30F4,
  30183. w: 0x0077,
  30184. wacute: 0x1E83,
  30185. waekorean: 0x3159,
  30186. wahiragana: 0x308F,
  30187. wakatakana: 0x30EF,
  30188. wakatakanahalfwidth: 0xFF9C,
  30189. wakorean: 0x3158,
  30190. wasmallhiragana: 0x308E,
  30191. wasmallkatakana: 0x30EE,
  30192. wattosquare: 0x3357,
  30193. wavedash: 0x301C,
  30194. wavyunderscorevertical: 0xFE34,
  30195. wawarabic: 0x0648,
  30196. wawfinalarabic: 0xFEEE,
  30197. wawhamzaabovearabic: 0x0624,
  30198. wawhamzaabovefinalarabic: 0xFE86,
  30199. wbsquare: 0x33DD,
  30200. wcircle: 0x24E6,
  30201. wcircumflex: 0x0175,
  30202. wdieresis: 0x1E85,
  30203. wdotaccent: 0x1E87,
  30204. wdotbelow: 0x1E89,
  30205. wehiragana: 0x3091,
  30206. weierstrass: 0x2118,
  30207. wekatakana: 0x30F1,
  30208. wekorean: 0x315E,
  30209. weokorean: 0x315D,
  30210. wgrave: 0x1E81,
  30211. whitebullet: 0x25E6,
  30212. whitecircle: 0x25CB,
  30213. whitecircleinverse: 0x25D9,
  30214. whitecornerbracketleft: 0x300E,
  30215. whitecornerbracketleftvertical: 0xFE43,
  30216. whitecornerbracketright: 0x300F,
  30217. whitecornerbracketrightvertical: 0xFE44,
  30218. whitediamond: 0x25C7,
  30219. whitediamondcontainingblacksmalldiamond: 0x25C8,
  30220. whitedownpointingsmalltriangle: 0x25BF,
  30221. whitedownpointingtriangle: 0x25BD,
  30222. whiteleftpointingsmalltriangle: 0x25C3,
  30223. whiteleftpointingtriangle: 0x25C1,
  30224. whitelenticularbracketleft: 0x3016,
  30225. whitelenticularbracketright: 0x3017,
  30226. whiterightpointingsmalltriangle: 0x25B9,
  30227. whiterightpointingtriangle: 0x25B7,
  30228. whitesmallsquare: 0x25AB,
  30229. whitesmilingface: 0x263A,
  30230. whitesquare: 0x25A1,
  30231. whitestar: 0x2606,
  30232. whitetelephone: 0x260F,
  30233. whitetortoiseshellbracketleft: 0x3018,
  30234. whitetortoiseshellbracketright: 0x3019,
  30235. whiteuppointingsmalltriangle: 0x25B5,
  30236. whiteuppointingtriangle: 0x25B3,
  30237. wihiragana: 0x3090,
  30238. wikatakana: 0x30F0,
  30239. wikorean: 0x315F,
  30240. wmonospace: 0xFF57,
  30241. wohiragana: 0x3092,
  30242. wokatakana: 0x30F2,
  30243. wokatakanahalfwidth: 0xFF66,
  30244. won: 0x20A9,
  30245. wonmonospace: 0xFFE6,
  30246. wowaenthai: 0x0E27,
  30247. wparen: 0x24B2,
  30248. wring: 0x1E98,
  30249. wsuperior: 0x02B7,
  30250. wturned: 0x028D,
  30251. wynn: 0x01BF,
  30252. x: 0x0078,
  30253. xabovecmb: 0x033D,
  30254. xbopomofo: 0x3112,
  30255. xcircle: 0x24E7,
  30256. xdieresis: 0x1E8D,
  30257. xdotaccent: 0x1E8B,
  30258. xeharmenian: 0x056D,
  30259. xi: 0x03BE,
  30260. xmonospace: 0xFF58,
  30261. xparen: 0x24B3,
  30262. xsuperior: 0x02E3,
  30263. y: 0x0079,
  30264. yaadosquare: 0x334E,
  30265. yabengali: 0x09AF,
  30266. yacute: 0x00FD,
  30267. yadeva: 0x092F,
  30268. yaekorean: 0x3152,
  30269. yagujarati: 0x0AAF,
  30270. yagurmukhi: 0x0A2F,
  30271. yahiragana: 0x3084,
  30272. yakatakana: 0x30E4,
  30273. yakatakanahalfwidth: 0xFF94,
  30274. yakorean: 0x3151,
  30275. yamakkanthai: 0x0E4E,
  30276. yasmallhiragana: 0x3083,
  30277. yasmallkatakana: 0x30E3,
  30278. yasmallkatakanahalfwidth: 0xFF6C,
  30279. yatcyrillic: 0x0463,
  30280. ycircle: 0x24E8,
  30281. ycircumflex: 0x0177,
  30282. ydieresis: 0x00FF,
  30283. ydotaccent: 0x1E8F,
  30284. ydotbelow: 0x1EF5,
  30285. yeharabic: 0x064A,
  30286. yehbarreearabic: 0x06D2,
  30287. yehbarreefinalarabic: 0xFBAF,
  30288. yehfinalarabic: 0xFEF2,
  30289. yehhamzaabovearabic: 0x0626,
  30290. yehhamzaabovefinalarabic: 0xFE8A,
  30291. yehhamzaaboveinitialarabic: 0xFE8B,
  30292. yehhamzaabovemedialarabic: 0xFE8C,
  30293. yehinitialarabic: 0xFEF3,
  30294. yehmedialarabic: 0xFEF4,
  30295. yehmeeminitialarabic: 0xFCDD,
  30296. yehmeemisolatedarabic: 0xFC58,
  30297. yehnoonfinalarabic: 0xFC94,
  30298. yehthreedotsbelowarabic: 0x06D1,
  30299. yekorean: 0x3156,
  30300. yen: 0x00A5,
  30301. yenmonospace: 0xFFE5,
  30302. yeokorean: 0x3155,
  30303. yeorinhieuhkorean: 0x3186,
  30304. yerahbenyomohebrew: 0x05AA,
  30305. yerahbenyomolefthebrew: 0x05AA,
  30306. yericyrillic: 0x044B,
  30307. yerudieresiscyrillic: 0x04F9,
  30308. yesieungkorean: 0x3181,
  30309. yesieungpansioskorean: 0x3183,
  30310. yesieungsioskorean: 0x3182,
  30311. yetivhebrew: 0x059A,
  30312. ygrave: 0x1EF3,
  30313. yhook: 0x01B4,
  30314. yhookabove: 0x1EF7,
  30315. yiarmenian: 0x0575,
  30316. yicyrillic: 0x0457,
  30317. yikorean: 0x3162,
  30318. yinyang: 0x262F,
  30319. yiwnarmenian: 0x0582,
  30320. ymonospace: 0xFF59,
  30321. yod: 0x05D9,
  30322. yoddagesh: 0xFB39,
  30323. yoddageshhebrew: 0xFB39,
  30324. yodhebrew: 0x05D9,
  30325. yodyodhebrew: 0x05F2,
  30326. yodyodpatahhebrew: 0xFB1F,
  30327. yohiragana: 0x3088,
  30328. yoikorean: 0x3189,
  30329. yokatakana: 0x30E8,
  30330. yokatakanahalfwidth: 0xFF96,
  30331. yokorean: 0x315B,
  30332. yosmallhiragana: 0x3087,
  30333. yosmallkatakana: 0x30E7,
  30334. yosmallkatakanahalfwidth: 0xFF6E,
  30335. yotgreek: 0x03F3,
  30336. yoyaekorean: 0x3188,
  30337. yoyakorean: 0x3187,
  30338. yoyakthai: 0x0E22,
  30339. yoyingthai: 0x0E0D,
  30340. yparen: 0x24B4,
  30341. ypogegrammeni: 0x037A,
  30342. ypogegrammenigreekcmb: 0x0345,
  30343. yr: 0x01A6,
  30344. yring: 0x1E99,
  30345. ysuperior: 0x02B8,
  30346. ytilde: 0x1EF9,
  30347. yturned: 0x028E,
  30348. yuhiragana: 0x3086,
  30349. yuikorean: 0x318C,
  30350. yukatakana: 0x30E6,
  30351. yukatakanahalfwidth: 0xFF95,
  30352. yukorean: 0x3160,
  30353. yusbigcyrillic: 0x046B,
  30354. yusbigiotifiedcyrillic: 0x046D,
  30355. yuslittlecyrillic: 0x0467,
  30356. yuslittleiotifiedcyrillic: 0x0469,
  30357. yusmallhiragana: 0x3085,
  30358. yusmallkatakana: 0x30E5,
  30359. yusmallkatakanahalfwidth: 0xFF6D,
  30360. yuyekorean: 0x318B,
  30361. yuyeokorean: 0x318A,
  30362. yyabengali: 0x09DF,
  30363. yyadeva: 0x095F,
  30364. z: 0x007A,
  30365. zaarmenian: 0x0566,
  30366. zacute: 0x017A,
  30367. zadeva: 0x095B,
  30368. zagurmukhi: 0x0A5B,
  30369. zaharabic: 0x0638,
  30370. zahfinalarabic: 0xFEC6,
  30371. zahinitialarabic: 0xFEC7,
  30372. zahiragana: 0x3056,
  30373. zahmedialarabic: 0xFEC8,
  30374. zainarabic: 0x0632,
  30375. zainfinalarabic: 0xFEB0,
  30376. zakatakana: 0x30B6,
  30377. zaqefgadolhebrew: 0x0595,
  30378. zaqefqatanhebrew: 0x0594,
  30379. zarqahebrew: 0x0598,
  30380. zayin: 0x05D6,
  30381. zayindagesh: 0xFB36,
  30382. zayindageshhebrew: 0xFB36,
  30383. zayinhebrew: 0x05D6,
  30384. zbopomofo: 0x3117,
  30385. zcaron: 0x017E,
  30386. zcircle: 0x24E9,
  30387. zcircumflex: 0x1E91,
  30388. zcurl: 0x0291,
  30389. zdot: 0x017C,
  30390. zdotaccent: 0x017C,
  30391. zdotbelow: 0x1E93,
  30392. zecyrillic: 0x0437,
  30393. zedescendercyrillic: 0x0499,
  30394. zedieresiscyrillic: 0x04DF,
  30395. zehiragana: 0x305C,
  30396. zekatakana: 0x30BC,
  30397. zero: 0x0030,
  30398. zeroarabic: 0x0660,
  30399. zerobengali: 0x09E6,
  30400. zerodeva: 0x0966,
  30401. zerogujarati: 0x0AE6,
  30402. zerogurmukhi: 0x0A66,
  30403. zerohackarabic: 0x0660,
  30404. zeroinferior: 0x2080,
  30405. zeromonospace: 0xFF10,
  30406. zerooldstyle: 0xF730,
  30407. zeropersian: 0x06F0,
  30408. zerosuperior: 0x2070,
  30409. zerothai: 0x0E50,
  30410. zerowidthjoiner: 0xFEFF,
  30411. zerowidthnonjoiner: 0x200C,
  30412. zerowidthspace: 0x200B,
  30413. zeta: 0x03B6,
  30414. zhbopomofo: 0x3113,
  30415. zhearmenian: 0x056A,
  30416. zhebrevecyrillic: 0x04C2,
  30417. zhecyrillic: 0x0436,
  30418. zhedescendercyrillic: 0x0497,
  30419. zhedieresiscyrillic: 0x04DD,
  30420. zihiragana: 0x3058,
  30421. zikatakana: 0x30B8,
  30422. zinorhebrew: 0x05AE,
  30423. zlinebelow: 0x1E95,
  30424. zmonospace: 0xFF5A,
  30425. zohiragana: 0x305E,
  30426. zokatakana: 0x30BE,
  30427. zparen: 0x24B5,
  30428. zretroflexhook: 0x0290,
  30429. zstroke: 0x01B6,
  30430. zuhiragana: 0x305A,
  30431. zukatakana: 0x30BA,
  30432. '.notdef': 0x0000
  30433. };
  30434. var PDFImage = (function PDFImageClosure() {
  30435. /**
  30436. * Decode the image in the main thread if it supported. Resovles the promise
  30437. * when the image data is ready.
  30438. */
  30439. function handleImageData(handler, xref, res, image) {
  30440. if (image instanceof JpegStream && image.isNativelyDecodable(xref, res)) {
  30441. // For natively supported jpegs send them to the main thread for decoding.
  30442. var dict = image.dict;
  30443. var colorSpace = dict.get('ColorSpace', 'CS');
  30444. colorSpace = ColorSpace.parse(colorSpace, xref, res);
  30445. var numComps = colorSpace.numComps;
  30446. var decodePromise = handler.sendWithPromise('JpegDecode',
  30447. [image.getIR(), numComps]);
  30448. return decodePromise.then(function (message) {
  30449. var data = message.data;
  30450. return new Stream(data, 0, data.length, image.dict);
  30451. });
  30452. } else {
  30453. return Promise.resolve(image);
  30454. }
  30455. }
  30456. /**
  30457. * Decode and clamp a value. The formula is different from the spec because we
  30458. * don't decode to float range [0,1], we decode it in the [0,max] range.
  30459. */
  30460. function decodeAndClamp(value, addend, coefficient, max) {
  30461. value = addend + value * coefficient;
  30462. // Clamp the value to the range
  30463. return (value < 0 ? 0 : (value > max ? max : value));
  30464. }
  30465. function PDFImage(xref, res, image, inline, smask, mask, isMask) {
  30466. this.image = image;
  30467. var dict = image.dict;
  30468. if (dict.has('Filter')) {
  30469. var filter = dict.get('Filter').name;
  30470. if (filter === 'JPXDecode') {
  30471. var jpxImage = new JpxImage();
  30472. jpxImage.parseImageProperties(image.stream);
  30473. image.stream.reset();
  30474. image.bitsPerComponent = jpxImage.bitsPerComponent;
  30475. image.numComps = jpxImage.componentsCount;
  30476. } else if (filter === 'JBIG2Decode') {
  30477. image.bitsPerComponent = 1;
  30478. image.numComps = 1;
  30479. }
  30480. }
  30481. // TODO cache rendered images?
  30482. this.width = dict.get('Width', 'W');
  30483. this.height = dict.get('Height', 'H');
  30484. if (this.width < 1 || this.height < 1) {
  30485. error('Invalid image width: ' + this.width + ' or height: ' +
  30486. this.height);
  30487. }
  30488. this.interpolate = dict.get('Interpolate', 'I') || false;
  30489. this.imageMask = dict.get('ImageMask', 'IM') || false;
  30490. this.matte = dict.get('Matte') || false;
  30491. var bitsPerComponent = image.bitsPerComponent;
  30492. if (!bitsPerComponent) {
  30493. bitsPerComponent = dict.get('BitsPerComponent', 'BPC');
  30494. if (!bitsPerComponent) {
  30495. if (this.imageMask) {
  30496. bitsPerComponent = 1;
  30497. } else {
  30498. error('Bits per component missing in image: ' + this.imageMask);
  30499. }
  30500. }
  30501. }
  30502. this.bpc = bitsPerComponent;
  30503. if (!this.imageMask) {
  30504. var colorSpace = dict.get('ColorSpace', 'CS');
  30505. if (!colorSpace) {
  30506. info('JPX images (which do not require color spaces)');
  30507. switch (image.numComps) {
  30508. case 1:
  30509. colorSpace = Name.get('DeviceGray');
  30510. break;
  30511. case 3:
  30512. colorSpace = Name.get('DeviceRGB');
  30513. break;
  30514. case 4:
  30515. colorSpace = Name.get('DeviceCMYK');
  30516. break;
  30517. default:
  30518. error('JPX images with ' + this.numComps +
  30519. ' color components not supported.');
  30520. }
  30521. }
  30522. this.colorSpace = ColorSpace.parse(colorSpace, xref, res);
  30523. this.numComps = this.colorSpace.numComps;
  30524. }
  30525. this.decode = dict.get('Decode', 'D');
  30526. this.needsDecode = false;
  30527. if (this.decode &&
  30528. ((this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode)) ||
  30529. (isMask && !ColorSpace.isDefaultDecode(this.decode, 1)))) {
  30530. this.needsDecode = true;
  30531. // Do some preprocessing to avoid more math.
  30532. var max = (1 << bitsPerComponent) - 1;
  30533. this.decodeCoefficients = [];
  30534. this.decodeAddends = [];
  30535. for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
  30536. var dmin = this.decode[i];
  30537. var dmax = this.decode[i + 1];
  30538. this.decodeCoefficients[j] = dmax - dmin;
  30539. this.decodeAddends[j] = max * dmin;
  30540. }
  30541. }
  30542. if (smask) {
  30543. this.smask = new PDFImage(xref, res, smask, false);
  30544. } else if (mask) {
  30545. if (isStream(mask)) {
  30546. this.mask = new PDFImage(xref, res, mask, false, null, null, true);
  30547. } else {
  30548. // Color key mask (just an array).
  30549. this.mask = mask;
  30550. }
  30551. }
  30552. }
  30553. /**
  30554. * Handles processing of image data and returns the Promise that is resolved
  30555. * with a PDFImage when the image is ready to be used.
  30556. */
  30557. PDFImage.buildImage = function PDFImage_buildImage(handler, xref,
  30558. res, image, inline) {
  30559. var imagePromise = handleImageData(handler, xref, res, image);
  30560. var smaskPromise;
  30561. var maskPromise;
  30562. var smask = image.dict.get('SMask');
  30563. var mask = image.dict.get('Mask');
  30564. if (smask) {
  30565. smaskPromise = handleImageData(handler, xref, res, smask);
  30566. maskPromise = Promise.resolve(null);
  30567. } else {
  30568. smaskPromise = Promise.resolve(null);
  30569. if (mask) {
  30570. if (isStream(mask)) {
  30571. maskPromise = handleImageData(handler, xref, res, mask);
  30572. } else if (isArray(mask)) {
  30573. maskPromise = Promise.resolve(mask);
  30574. } else {
  30575. warn('Unsupported mask format.');
  30576. maskPromise = Promise.resolve(null);
  30577. }
  30578. } else {
  30579. maskPromise = Promise.resolve(null);
  30580. }
  30581. }
  30582. return Promise.all([imagePromise, smaskPromise, maskPromise]).then(
  30583. function(results) {
  30584. var imageData = results[0];
  30585. var smaskData = results[1];
  30586. var maskData = results[2];
  30587. return new PDFImage(xref, res, imageData, inline, smaskData, maskData);
  30588. });
  30589. };
  30590. /**
  30591. * Resize an image using the nearest neighbor algorithm. Currently only
  30592. * supports one and three component images.
  30593. * @param {TypedArray} pixels The original image with one component.
  30594. * @param {Number} bpc Number of bits per component.
  30595. * @param {Number} components Number of color components, 1 or 3 is supported.
  30596. * @param {Number} w1 Original width.
  30597. * @param {Number} h1 Original height.
  30598. * @param {Number} w2 New width.
  30599. * @param {Number} h2 New height.
  30600. * @param {TypedArray} dest (Optional) The destination buffer.
  30601. * @param {Number} alpha01 (Optional) Size reserved for the alpha channel.
  30602. * @return {TypedArray} Resized image data.
  30603. */
  30604. PDFImage.resize = function PDFImage_resize(pixels, bpc, components,
  30605. w1, h1, w2, h2, dest, alpha01) {
  30606. if (components !== 1 && components !== 3) {
  30607. error('Unsupported component count for resizing.');
  30608. }
  30609. var length = w2 * h2 * components;
  30610. var temp = dest ? dest : (bpc <= 8 ? new Uint8Array(length) :
  30611. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  30612. var xRatio = w1 / w2;
  30613. var yRatio = h1 / h2;
  30614. var i, j, py, newIndex = 0, oldIndex;
  30615. var xScaled = new Uint16Array(w2);
  30616. var w1Scanline = w1 * components;
  30617. if (alpha01 !== 1) {
  30618. alpha01 = 0;
  30619. }
  30620. for (j = 0; j < w2; j++) {
  30621. xScaled[j] = Math.floor(j * xRatio) * components;
  30622. }
  30623. if (components === 1) {
  30624. for (i = 0; i < h2; i++) {
  30625. py = Math.floor(i * yRatio) * w1Scanline;
  30626. for (j = 0; j < w2; j++) {
  30627. oldIndex = py + xScaled[j];
  30628. temp[newIndex++] = pixels[oldIndex];
  30629. }
  30630. }
  30631. } else if (components === 3) {
  30632. for (i = 0; i < h2; i++) {
  30633. py = Math.floor(i * yRatio) * w1Scanline;
  30634. for (j = 0; j < w2; j++) {
  30635. oldIndex = py + xScaled[j];
  30636. temp[newIndex++] = pixels[oldIndex++];
  30637. temp[newIndex++] = pixels[oldIndex++];
  30638. temp[newIndex++] = pixels[oldIndex++];
  30639. newIndex += alpha01;
  30640. }
  30641. }
  30642. }
  30643. return temp;
  30644. };
  30645. PDFImage.createMask =
  30646. function PDFImage_createMask(imgArray, width, height,
  30647. imageIsFromDecodeStream, inverseDecode) {
  30648. // |imgArray| might not contain full data for every pixel of the mask, so
  30649. // we need to distinguish between |computedLength| and |actualLength|.
  30650. // In particular, if inverseDecode is true, then the array we return must
  30651. // have a length of |computedLength|.
  30652. var computedLength = ((width + 7) >> 3) * height;
  30653. var actualLength = imgArray.byteLength;
  30654. var haveFullData = computedLength == actualLength;
  30655. var data, i;
  30656. if (imageIsFromDecodeStream && (!inverseDecode || haveFullData)) {
  30657. // imgArray came from a DecodeStream and its data is in an appropriate
  30658. // form, so we can just transfer it.
  30659. data = imgArray;
  30660. } else if (!inverseDecode) {
  30661. data = new Uint8Array(actualLength);
  30662. data.set(imgArray);
  30663. } else {
  30664. data = new Uint8Array(computedLength);
  30665. data.set(imgArray);
  30666. for (i = actualLength; i < computedLength; i++) {
  30667. data[i] = 0xff;
  30668. }
  30669. }
  30670. // If necessary, invert the original mask data (but not any extra we might
  30671. // have added above). It's safe to modify the array -- whether it's the
  30672. // original or a copy, we're about to transfer it anyway, so nothing else
  30673. // in this thread can be relying on its contents.
  30674. if (inverseDecode) {
  30675. for (i = 0; i < actualLength; i++) {
  30676. data[i] = ~data[i];
  30677. }
  30678. }
  30679. return {data: data, width: width, height: height};
  30680. };
  30681. PDFImage.prototype = {
  30682. get drawWidth() {
  30683. return Math.max(this.width,
  30684. this.smask && this.smask.width || 0,
  30685. this.mask && this.mask.width || 0);
  30686. },
  30687. get drawHeight() {
  30688. return Math.max(this.height,
  30689. this.smask && this.smask.height || 0,
  30690. this.mask && this.mask.height || 0);
  30691. },
  30692. decodeBuffer: function PDFImage_decodeBuffer(buffer) {
  30693. var bpc = this.bpc;
  30694. var numComps = this.numComps;
  30695. var decodeAddends = this.decodeAddends;
  30696. var decodeCoefficients = this.decodeCoefficients;
  30697. var max = (1 << bpc) - 1;
  30698. var i, ii;
  30699. if (bpc === 1) {
  30700. // If the buffer needed decode that means it just needs to be inverted.
  30701. for (i = 0, ii = buffer.length; i < ii; i++) {
  30702. buffer[i] = +!(buffer[i]);
  30703. }
  30704. return;
  30705. }
  30706. var index = 0;
  30707. for (i = 0, ii = this.width * this.height; i < ii; i++) {
  30708. for (var j = 0; j < numComps; j++) {
  30709. buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j],
  30710. decodeCoefficients[j], max);
  30711. index++;
  30712. }
  30713. }
  30714. },
  30715. getComponents: function PDFImage_getComponents(buffer) {
  30716. var bpc = this.bpc;
  30717. // This image doesn't require any extra work.
  30718. if (bpc === 8) {
  30719. return buffer;
  30720. }
  30721. var width = this.width;
  30722. var height = this.height;
  30723. var numComps = this.numComps;
  30724. var length = width * height * numComps;
  30725. var bufferPos = 0;
  30726. var output = (bpc <= 8 ? new Uint8Array(length) :
  30727. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  30728. var rowComps = width * numComps;
  30729. var max = (1 << bpc) - 1;
  30730. var i = 0, ii, buf;
  30731. if (bpc === 1) {
  30732. // Optimization for reading 1 bpc images.
  30733. var mask, loop1End, loop2End;
  30734. for (var j = 0; j < height; j++) {
  30735. loop1End = i + (rowComps & ~7);
  30736. loop2End = i + rowComps;
  30737. // unroll loop for all full bytes
  30738. while (i < loop1End) {
  30739. buf = buffer[bufferPos++];
  30740. output[i] = (buf >> 7) & 1;
  30741. output[i + 1] = (buf >> 6) & 1;
  30742. output[i + 2] = (buf >> 5) & 1;
  30743. output[i + 3] = (buf >> 4) & 1;
  30744. output[i + 4] = (buf >> 3) & 1;
  30745. output[i + 5] = (buf >> 2) & 1;
  30746. output[i + 6] = (buf >> 1) & 1;
  30747. output[i + 7] = buf & 1;
  30748. i += 8;
  30749. }
  30750. // handle remaing bits
  30751. if (i < loop2End) {
  30752. buf = buffer[bufferPos++];
  30753. mask = 128;
  30754. while (i < loop2End) {
  30755. output[i++] = +!!(buf & mask);
  30756. mask >>= 1;
  30757. }
  30758. }
  30759. }
  30760. } else {
  30761. // The general case that handles all other bpc values.
  30762. var bits = 0;
  30763. buf = 0;
  30764. for (i = 0, ii = length; i < ii; ++i) {
  30765. if (i % rowComps === 0) {
  30766. buf = 0;
  30767. bits = 0;
  30768. }
  30769. while (bits < bpc) {
  30770. buf = (buf << 8) | buffer[bufferPos++];
  30771. bits += 8;
  30772. }
  30773. var remainingBits = bits - bpc;
  30774. var value = buf >> remainingBits;
  30775. output[i] = (value < 0 ? 0 : (value > max ? max : value));
  30776. buf = buf & ((1 << remainingBits) - 1);
  30777. bits = remainingBits;
  30778. }
  30779. }
  30780. return output;
  30781. },
  30782. fillOpacity: function PDFImage_fillOpacity(rgbaBuf, width, height,
  30783. actualHeight, image) {
  30784. var smask = this.smask;
  30785. var mask = this.mask;
  30786. var alphaBuf, sw, sh, i, ii, j;
  30787. if (smask) {
  30788. sw = smask.width;
  30789. sh = smask.height;
  30790. alphaBuf = new Uint8Array(sw * sh);
  30791. smask.fillGrayBuffer(alphaBuf);
  30792. if (sw != width || sh != height) {
  30793. alphaBuf = PDFImage.resize(alphaBuf, smask.bpc, 1, sw, sh, width,
  30794. height);
  30795. }
  30796. } else if (mask) {
  30797. if (mask instanceof PDFImage) {
  30798. sw = mask.width;
  30799. sh = mask.height;
  30800. alphaBuf = new Uint8Array(sw * sh);
  30801. mask.numComps = 1;
  30802. mask.fillGrayBuffer(alphaBuf);
  30803. // Need to invert values in rgbaBuf
  30804. for (i = 0, ii = sw * sh; i < ii; ++i) {
  30805. alphaBuf[i] = 255 - alphaBuf[i];
  30806. }
  30807. if (sw != width || sh != height) {
  30808. alphaBuf = PDFImage.resize(alphaBuf, mask.bpc, 1, sw, sh, width,
  30809. height);
  30810. }
  30811. } else if (isArray(mask)) {
  30812. // Color key mask: if any of the compontents are outside the range
  30813. // then they should be painted.
  30814. alphaBuf = new Uint8Array(width * height);
  30815. var numComps = this.numComps;
  30816. for (i = 0, ii = width * height; i < ii; ++i) {
  30817. var opacity = 0;
  30818. var imageOffset = i * numComps;
  30819. for (j = 0; j < numComps; ++j) {
  30820. var color = image[imageOffset + j];
  30821. var maskOffset = j * 2;
  30822. if (color < mask[maskOffset] || color > mask[maskOffset + 1]) {
  30823. opacity = 255;
  30824. break;
  30825. }
  30826. }
  30827. alphaBuf[i] = opacity;
  30828. }
  30829. } else {
  30830. error('Unknown mask format.');
  30831. }
  30832. }
  30833. if (alphaBuf) {
  30834. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  30835. rgbaBuf[j] = alphaBuf[i];
  30836. }
  30837. } else {
  30838. // No mask.
  30839. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  30840. rgbaBuf[j] = 255;
  30841. }
  30842. }
  30843. },
  30844. undoPreblend: function PDFImage_undoPreblend(buffer, width, height) {
  30845. var matte = this.smask && this.smask.matte;
  30846. if (!matte) {
  30847. return;
  30848. }
  30849. var matteRgb = this.colorSpace.getRgb(matte, 0);
  30850. var matteR = matteRgb[0];
  30851. var matteG = matteRgb[1];
  30852. var matteB = matteRgb[2];
  30853. var length = width * height * 4;
  30854. var r, g, b;
  30855. for (var i = 0; i < length; i += 4) {
  30856. var alpha = buffer[i + 3];
  30857. if (alpha === 0) {
  30858. // according formula we have to get Infinity in all components
  30859. // making it white (typical paper color) should be okay
  30860. buffer[i] = 255;
  30861. buffer[i + 1] = 255;
  30862. buffer[i + 2] = 255;
  30863. continue;
  30864. }
  30865. var k = 255 / alpha;
  30866. r = (buffer[i] - matteR) * k + matteR;
  30867. g = (buffer[i + 1] - matteG) * k + matteG;
  30868. b = (buffer[i + 2] - matteB) * k + matteB;
  30869. buffer[i] = r <= 0 ? 0 : r >= 255 ? 255 : r | 0;
  30870. buffer[i + 1] = g <= 0 ? 0 : g >= 255 ? 255 : g | 0;
  30871. buffer[i + 2] = b <= 0 ? 0 : b >= 255 ? 255 : b | 0;
  30872. }
  30873. },
  30874. createImageData: function PDFImage_createImageData(forceRGBA) {
  30875. var drawWidth = this.drawWidth;
  30876. var drawHeight = this.drawHeight;
  30877. var imgData = { // other fields are filled in below
  30878. width: drawWidth,
  30879. height: drawHeight
  30880. };
  30881. var numComps = this.numComps;
  30882. var originalWidth = this.width;
  30883. var originalHeight = this.height;
  30884. var bpc = this.bpc;
  30885. // Rows start at byte boundary.
  30886. var rowBytes = (originalWidth * numComps * bpc + 7) >> 3;
  30887. var imgArray;
  30888. if (!forceRGBA) {
  30889. // If it is a 1-bit-per-pixel grayscale (i.e. black-and-white) image
  30890. // without any complications, we pass a same-sized copy to the main
  30891. // thread rather than expanding by 32x to RGBA form. This saves *lots*
  30892. // of memory for many scanned documents. It's also much faster.
  30893. //
  30894. // Similarly, if it is a 24-bit-per pixel RGB image without any
  30895. // complications, we avoid expanding by 1.333x to RGBA form.
  30896. var kind;
  30897. if (this.colorSpace.name === 'DeviceGray' && bpc === 1) {
  30898. kind = ImageKind.GRAYSCALE_1BPP;
  30899. } else if (this.colorSpace.name === 'DeviceRGB' && bpc === 8) {
  30900. kind = ImageKind.RGB_24BPP;
  30901. }
  30902. if (kind && !this.smask && !this.mask && !this.needsDecode &&
  30903. drawWidth === originalWidth && drawHeight === originalHeight) {
  30904. imgData.kind = kind;
  30905. imgArray = this.getImageBytes(originalHeight * rowBytes);
  30906. // If imgArray came from a DecodeStream, we're safe to transfer it
  30907. // (and thus neuter it) because it will constitute the entire
  30908. // DecodeStream's data. But if it came from a Stream, we need to
  30909. // copy it because it'll only be a portion of the Stream's data, and
  30910. // the rest will be read later on.
  30911. if (this.image instanceof DecodeStream) {
  30912. imgData.data = imgArray;
  30913. } else {
  30914. var newArray = new Uint8Array(imgArray.length);
  30915. newArray.set(imgArray);
  30916. imgData.data = newArray;
  30917. }
  30918. return imgData;
  30919. }
  30920. if (this.image instanceof JpegStream && !this.smask && !this.mask) {
  30921. imgData.kind = ImageKind.RGB_24BPP;
  30922. imgData.data = this.getImageBytes(originalHeight * rowBytes,
  30923. drawWidth, drawHeight, true);
  30924. return imgData;
  30925. }
  30926. }
  30927. imgArray = this.getImageBytes(originalHeight * rowBytes);
  30928. // imgArray can be incomplete (e.g. after CCITT fax encoding).
  30929. var actualHeight = 0 | (imgArray.length / rowBytes *
  30930. drawHeight / originalHeight);
  30931. var comps = this.getComponents(imgArray);
  30932. // If opacity data is present, use RGBA_32BPP form. Otherwise, use the
  30933. // more compact RGB_24BPP form if allowable.
  30934. var alpha01, maybeUndoPreblend;
  30935. if (!forceRGBA && !this.smask && !this.mask) {
  30936. imgData.kind = ImageKind.RGB_24BPP;
  30937. imgData.data = new Uint8Array(drawWidth * drawHeight * 3);
  30938. alpha01 = 0;
  30939. maybeUndoPreblend = false;
  30940. } else {
  30941. imgData.kind = ImageKind.RGBA_32BPP;
  30942. imgData.data = new Uint8Array(drawWidth * drawHeight * 4);
  30943. alpha01 = 1;
  30944. maybeUndoPreblend = true;
  30945. // Color key masking (opacity) must be performed before decoding.
  30946. this.fillOpacity(imgData.data, drawWidth, drawHeight, actualHeight,
  30947. comps);
  30948. }
  30949. if (this.needsDecode) {
  30950. this.decodeBuffer(comps);
  30951. }
  30952. this.colorSpace.fillRgb(imgData.data, originalWidth, originalHeight,
  30953. drawWidth, drawHeight, actualHeight, bpc, comps,
  30954. alpha01);
  30955. if (maybeUndoPreblend) {
  30956. this.undoPreblend(imgData.data, drawWidth, actualHeight);
  30957. }
  30958. return imgData;
  30959. },
  30960. fillGrayBuffer: function PDFImage_fillGrayBuffer(buffer) {
  30961. var numComps = this.numComps;
  30962. if (numComps != 1) {
  30963. error('Reading gray scale from a color image: ' + numComps);
  30964. }
  30965. var width = this.width;
  30966. var height = this.height;
  30967. var bpc = this.bpc;
  30968. // rows start at byte boundary
  30969. var rowBytes = (width * numComps * bpc + 7) >> 3;
  30970. var imgArray = this.getImageBytes(height * rowBytes);
  30971. var comps = this.getComponents(imgArray);
  30972. var i, length;
  30973. if (bpc === 1) {
  30974. // inline decoding (= inversion) for 1 bpc images
  30975. length = width * height;
  30976. if (this.needsDecode) {
  30977. // invert and scale to {0, 255}
  30978. for (i = 0; i < length; ++i) {
  30979. buffer[i] = (comps[i] - 1) & 255;
  30980. }
  30981. } else {
  30982. // scale to {0, 255}
  30983. for (i = 0; i < length; ++i) {
  30984. buffer[i] = (-comps[i]) & 255;
  30985. }
  30986. }
  30987. return;
  30988. }
  30989. if (this.needsDecode) {
  30990. this.decodeBuffer(comps);
  30991. }
  30992. length = width * height;
  30993. // we aren't using a colorspace so we need to scale the value
  30994. var scale = 255 / ((1 << bpc) - 1);
  30995. for (i = 0; i < length; ++i) {
  30996. buffer[i] = (scale * comps[i]) | 0;
  30997. }
  30998. },
  30999. getImageBytes: function PDFImage_getImageBytes(length,
  31000. drawWidth, drawHeight,
  31001. forceRGB) {
  31002. this.image.reset();
  31003. this.image.drawWidth = drawWidth || this.width;
  31004. this.image.drawHeight = drawHeight || this.height;
  31005. this.image.forceRGB = !!forceRGB;
  31006. return this.image.getBytes(length);
  31007. }
  31008. };
  31009. return PDFImage;
  31010. })();
  31011. // The Metrics object contains glyph widths (in glyph space units).
  31012. // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
  31013. // space unit corresponds to 1/1000th of text space unit.
  31014. var Metrics = {
  31015. 'Courier': 600,
  31016. 'Courier-Bold': 600,
  31017. 'Courier-BoldOblique': 600,
  31018. 'Courier-Oblique': 600,
  31019. 'Helvetica' : {
  31020. 'space': 278,
  31021. 'exclam': 278,
  31022. 'quotedbl': 355,
  31023. 'numbersign': 556,
  31024. 'dollar': 556,
  31025. 'percent': 889,
  31026. 'ampersand': 667,
  31027. 'quoteright': 222,
  31028. 'parenleft': 333,
  31029. 'parenright': 333,
  31030. 'asterisk': 389,
  31031. 'plus': 584,
  31032. 'comma': 278,
  31033. 'hyphen': 333,
  31034. 'period': 278,
  31035. 'slash': 278,
  31036. 'zero': 556,
  31037. 'one': 556,
  31038. 'two': 556,
  31039. 'three': 556,
  31040. 'four': 556,
  31041. 'five': 556,
  31042. 'six': 556,
  31043. 'seven': 556,
  31044. 'eight': 556,
  31045. 'nine': 556,
  31046. 'colon': 278,
  31047. 'semicolon': 278,
  31048. 'less': 584,
  31049. 'equal': 584,
  31050. 'greater': 584,
  31051. 'question': 556,
  31052. 'at': 1015,
  31053. 'A': 667,
  31054. 'B': 667,
  31055. 'C': 722,
  31056. 'D': 722,
  31057. 'E': 667,
  31058. 'F': 611,
  31059. 'G': 778,
  31060. 'H': 722,
  31061. 'I': 278,
  31062. 'J': 500,
  31063. 'K': 667,
  31064. 'L': 556,
  31065. 'M': 833,
  31066. 'N': 722,
  31067. 'O': 778,
  31068. 'P': 667,
  31069. 'Q': 778,
  31070. 'R': 722,
  31071. 'S': 667,
  31072. 'T': 611,
  31073. 'U': 722,
  31074. 'V': 667,
  31075. 'W': 944,
  31076. 'X': 667,
  31077. 'Y': 667,
  31078. 'Z': 611,
  31079. 'bracketleft': 278,
  31080. 'backslash': 278,
  31081. 'bracketright': 278,
  31082. 'asciicircum': 469,
  31083. 'underscore': 556,
  31084. 'quoteleft': 222,
  31085. 'a': 556,
  31086. 'b': 556,
  31087. 'c': 500,
  31088. 'd': 556,
  31089. 'e': 556,
  31090. 'f': 278,
  31091. 'g': 556,
  31092. 'h': 556,
  31093. 'i': 222,
  31094. 'j': 222,
  31095. 'k': 500,
  31096. 'l': 222,
  31097. 'm': 833,
  31098. 'n': 556,
  31099. 'o': 556,
  31100. 'p': 556,
  31101. 'q': 556,
  31102. 'r': 333,
  31103. 's': 500,
  31104. 't': 278,
  31105. 'u': 556,
  31106. 'v': 500,
  31107. 'w': 722,
  31108. 'x': 500,
  31109. 'y': 500,
  31110. 'z': 500,
  31111. 'braceleft': 334,
  31112. 'bar': 260,
  31113. 'braceright': 334,
  31114. 'asciitilde': 584,
  31115. 'exclamdown': 333,
  31116. 'cent': 556,
  31117. 'sterling': 556,
  31118. 'fraction': 167,
  31119. 'yen': 556,
  31120. 'florin': 556,
  31121. 'section': 556,
  31122. 'currency': 556,
  31123. 'quotesingle': 191,
  31124. 'quotedblleft': 333,
  31125. 'guillemotleft': 556,
  31126. 'guilsinglleft': 333,
  31127. 'guilsinglright': 333,
  31128. 'fi': 500,
  31129. 'fl': 500,
  31130. 'endash': 556,
  31131. 'dagger': 556,
  31132. 'daggerdbl': 556,
  31133. 'periodcentered': 278,
  31134. 'paragraph': 537,
  31135. 'bullet': 350,
  31136. 'quotesinglbase': 222,
  31137. 'quotedblbase': 333,
  31138. 'quotedblright': 333,
  31139. 'guillemotright': 556,
  31140. 'ellipsis': 1000,
  31141. 'perthousand': 1000,
  31142. 'questiondown': 611,
  31143. 'grave': 333,
  31144. 'acute': 333,
  31145. 'circumflex': 333,
  31146. 'tilde': 333,
  31147. 'macron': 333,
  31148. 'breve': 333,
  31149. 'dotaccent': 333,
  31150. 'dieresis': 333,
  31151. 'ring': 333,
  31152. 'cedilla': 333,
  31153. 'hungarumlaut': 333,
  31154. 'ogonek': 333,
  31155. 'caron': 333,
  31156. 'emdash': 1000,
  31157. 'AE': 1000,
  31158. 'ordfeminine': 370,
  31159. 'Lslash': 556,
  31160. 'Oslash': 778,
  31161. 'OE': 1000,
  31162. 'ordmasculine': 365,
  31163. 'ae': 889,
  31164. 'dotlessi': 278,
  31165. 'lslash': 222,
  31166. 'oslash': 611,
  31167. 'oe': 944,
  31168. 'germandbls': 611,
  31169. 'Idieresis': 278,
  31170. 'eacute': 556,
  31171. 'abreve': 556,
  31172. 'uhungarumlaut': 556,
  31173. 'ecaron': 556,
  31174. 'Ydieresis': 667,
  31175. 'divide': 584,
  31176. 'Yacute': 667,
  31177. 'Acircumflex': 667,
  31178. 'aacute': 556,
  31179. 'Ucircumflex': 722,
  31180. 'yacute': 500,
  31181. 'scommaaccent': 500,
  31182. 'ecircumflex': 556,
  31183. 'Uring': 722,
  31184. 'Udieresis': 722,
  31185. 'aogonek': 556,
  31186. 'Uacute': 722,
  31187. 'uogonek': 556,
  31188. 'Edieresis': 667,
  31189. 'Dcroat': 722,
  31190. 'commaaccent': 250,
  31191. 'copyright': 737,
  31192. 'Emacron': 667,
  31193. 'ccaron': 500,
  31194. 'aring': 556,
  31195. 'Ncommaaccent': 722,
  31196. 'lacute': 222,
  31197. 'agrave': 556,
  31198. 'Tcommaaccent': 611,
  31199. 'Cacute': 722,
  31200. 'atilde': 556,
  31201. 'Edotaccent': 667,
  31202. 'scaron': 500,
  31203. 'scedilla': 500,
  31204. 'iacute': 278,
  31205. 'lozenge': 471,
  31206. 'Rcaron': 722,
  31207. 'Gcommaaccent': 778,
  31208. 'ucircumflex': 556,
  31209. 'acircumflex': 556,
  31210. 'Amacron': 667,
  31211. 'rcaron': 333,
  31212. 'ccedilla': 500,
  31213. 'Zdotaccent': 611,
  31214. 'Thorn': 667,
  31215. 'Omacron': 778,
  31216. 'Racute': 722,
  31217. 'Sacute': 667,
  31218. 'dcaron': 643,
  31219. 'Umacron': 722,
  31220. 'uring': 556,
  31221. 'threesuperior': 333,
  31222. 'Ograve': 778,
  31223. 'Agrave': 667,
  31224. 'Abreve': 667,
  31225. 'multiply': 584,
  31226. 'uacute': 556,
  31227. 'Tcaron': 611,
  31228. 'partialdiff': 476,
  31229. 'ydieresis': 500,
  31230. 'Nacute': 722,
  31231. 'icircumflex': 278,
  31232. 'Ecircumflex': 667,
  31233. 'adieresis': 556,
  31234. 'edieresis': 556,
  31235. 'cacute': 500,
  31236. 'nacute': 556,
  31237. 'umacron': 556,
  31238. 'Ncaron': 722,
  31239. 'Iacute': 278,
  31240. 'plusminus': 584,
  31241. 'brokenbar': 260,
  31242. 'registered': 737,
  31243. 'Gbreve': 778,
  31244. 'Idotaccent': 278,
  31245. 'summation': 600,
  31246. 'Egrave': 667,
  31247. 'racute': 333,
  31248. 'omacron': 556,
  31249. 'Zacute': 611,
  31250. 'Zcaron': 611,
  31251. 'greaterequal': 549,
  31252. 'Eth': 722,
  31253. 'Ccedilla': 722,
  31254. 'lcommaaccent': 222,
  31255. 'tcaron': 317,
  31256. 'eogonek': 556,
  31257. 'Uogonek': 722,
  31258. 'Aacute': 667,
  31259. 'Adieresis': 667,
  31260. 'egrave': 556,
  31261. 'zacute': 500,
  31262. 'iogonek': 222,
  31263. 'Oacute': 778,
  31264. 'oacute': 556,
  31265. 'amacron': 556,
  31266. 'sacute': 500,
  31267. 'idieresis': 278,
  31268. 'Ocircumflex': 778,
  31269. 'Ugrave': 722,
  31270. 'Delta': 612,
  31271. 'thorn': 556,
  31272. 'twosuperior': 333,
  31273. 'Odieresis': 778,
  31274. 'mu': 556,
  31275. 'igrave': 278,
  31276. 'ohungarumlaut': 556,
  31277. 'Eogonek': 667,
  31278. 'dcroat': 556,
  31279. 'threequarters': 834,
  31280. 'Scedilla': 667,
  31281. 'lcaron': 299,
  31282. 'Kcommaaccent': 667,
  31283. 'Lacute': 556,
  31284. 'trademark': 1000,
  31285. 'edotaccent': 556,
  31286. 'Igrave': 278,
  31287. 'Imacron': 278,
  31288. 'Lcaron': 556,
  31289. 'onehalf': 834,
  31290. 'lessequal': 549,
  31291. 'ocircumflex': 556,
  31292. 'ntilde': 556,
  31293. 'Uhungarumlaut': 722,
  31294. 'Eacute': 667,
  31295. 'emacron': 556,
  31296. 'gbreve': 556,
  31297. 'onequarter': 834,
  31298. 'Scaron': 667,
  31299. 'Scommaaccent': 667,
  31300. 'Ohungarumlaut': 778,
  31301. 'degree': 400,
  31302. 'ograve': 556,
  31303. 'Ccaron': 722,
  31304. 'ugrave': 556,
  31305. 'radical': 453,
  31306. 'Dcaron': 722,
  31307. 'rcommaaccent': 333,
  31308. 'Ntilde': 722,
  31309. 'otilde': 556,
  31310. 'Rcommaaccent': 722,
  31311. 'Lcommaaccent': 556,
  31312. 'Atilde': 667,
  31313. 'Aogonek': 667,
  31314. 'Aring': 667,
  31315. 'Otilde': 778,
  31316. 'zdotaccent': 500,
  31317. 'Ecaron': 667,
  31318. 'Iogonek': 278,
  31319. 'kcommaaccent': 500,
  31320. 'minus': 584,
  31321. 'Icircumflex': 278,
  31322. 'ncaron': 556,
  31323. 'tcommaaccent': 278,
  31324. 'logicalnot': 584,
  31325. 'odieresis': 556,
  31326. 'udieresis': 556,
  31327. 'notequal': 549,
  31328. 'gcommaaccent': 556,
  31329. 'eth': 556,
  31330. 'zcaron': 500,
  31331. 'ncommaaccent': 556,
  31332. 'onesuperior': 333,
  31333. 'imacron': 278,
  31334. 'Euro': 556
  31335. },
  31336. 'Helvetica-Bold': {
  31337. 'space': 278,
  31338. 'exclam': 333,
  31339. 'quotedbl': 474,
  31340. 'numbersign': 556,
  31341. 'dollar': 556,
  31342. 'percent': 889,
  31343. 'ampersand': 722,
  31344. 'quoteright': 278,
  31345. 'parenleft': 333,
  31346. 'parenright': 333,
  31347. 'asterisk': 389,
  31348. 'plus': 584,
  31349. 'comma': 278,
  31350. 'hyphen': 333,
  31351. 'period': 278,
  31352. 'slash': 278,
  31353. 'zero': 556,
  31354. 'one': 556,
  31355. 'two': 556,
  31356. 'three': 556,
  31357. 'four': 556,
  31358. 'five': 556,
  31359. 'six': 556,
  31360. 'seven': 556,
  31361. 'eight': 556,
  31362. 'nine': 556,
  31363. 'colon': 333,
  31364. 'semicolon': 333,
  31365. 'less': 584,
  31366. 'equal': 584,
  31367. 'greater': 584,
  31368. 'question': 611,
  31369. 'at': 975,
  31370. 'A': 722,
  31371. 'B': 722,
  31372. 'C': 722,
  31373. 'D': 722,
  31374. 'E': 667,
  31375. 'F': 611,
  31376. 'G': 778,
  31377. 'H': 722,
  31378. 'I': 278,
  31379. 'J': 556,
  31380. 'K': 722,
  31381. 'L': 611,
  31382. 'M': 833,
  31383. 'N': 722,
  31384. 'O': 778,
  31385. 'P': 667,
  31386. 'Q': 778,
  31387. 'R': 722,
  31388. 'S': 667,
  31389. 'T': 611,
  31390. 'U': 722,
  31391. 'V': 667,
  31392. 'W': 944,
  31393. 'X': 667,
  31394. 'Y': 667,
  31395. 'Z': 611,
  31396. 'bracketleft': 333,
  31397. 'backslash': 278,
  31398. 'bracketright': 333,
  31399. 'asciicircum': 584,
  31400. 'underscore': 556,
  31401. 'quoteleft': 278,
  31402. 'a': 556,
  31403. 'b': 611,
  31404. 'c': 556,
  31405. 'd': 611,
  31406. 'e': 556,
  31407. 'f': 333,
  31408. 'g': 611,
  31409. 'h': 611,
  31410. 'i': 278,
  31411. 'j': 278,
  31412. 'k': 556,
  31413. 'l': 278,
  31414. 'm': 889,
  31415. 'n': 611,
  31416. 'o': 611,
  31417. 'p': 611,
  31418. 'q': 611,
  31419. 'r': 389,
  31420. 's': 556,
  31421. 't': 333,
  31422. 'u': 611,
  31423. 'v': 556,
  31424. 'w': 778,
  31425. 'x': 556,
  31426. 'y': 556,
  31427. 'z': 500,
  31428. 'braceleft': 389,
  31429. 'bar': 280,
  31430. 'braceright': 389,
  31431. 'asciitilde': 584,
  31432. 'exclamdown': 333,
  31433. 'cent': 556,
  31434. 'sterling': 556,
  31435. 'fraction': 167,
  31436. 'yen': 556,
  31437. 'florin': 556,
  31438. 'section': 556,
  31439. 'currency': 556,
  31440. 'quotesingle': 238,
  31441. 'quotedblleft': 500,
  31442. 'guillemotleft': 556,
  31443. 'guilsinglleft': 333,
  31444. 'guilsinglright': 333,
  31445. 'fi': 611,
  31446. 'fl': 611,
  31447. 'endash': 556,
  31448. 'dagger': 556,
  31449. 'daggerdbl': 556,
  31450. 'periodcentered': 278,
  31451. 'paragraph': 556,
  31452. 'bullet': 350,
  31453. 'quotesinglbase': 278,
  31454. 'quotedblbase': 500,
  31455. 'quotedblright': 500,
  31456. 'guillemotright': 556,
  31457. 'ellipsis': 1000,
  31458. 'perthousand': 1000,
  31459. 'questiondown': 611,
  31460. 'grave': 333,
  31461. 'acute': 333,
  31462. 'circumflex': 333,
  31463. 'tilde': 333,
  31464. 'macron': 333,
  31465. 'breve': 333,
  31466. 'dotaccent': 333,
  31467. 'dieresis': 333,
  31468. 'ring': 333,
  31469. 'cedilla': 333,
  31470. 'hungarumlaut': 333,
  31471. 'ogonek': 333,
  31472. 'caron': 333,
  31473. 'emdash': 1000,
  31474. 'AE': 1000,
  31475. 'ordfeminine': 370,
  31476. 'Lslash': 611,
  31477. 'Oslash': 778,
  31478. 'OE': 1000,
  31479. 'ordmasculine': 365,
  31480. 'ae': 889,
  31481. 'dotlessi': 278,
  31482. 'lslash': 278,
  31483. 'oslash': 611,
  31484. 'oe': 944,
  31485. 'germandbls': 611,
  31486. 'Idieresis': 278,
  31487. 'eacute': 556,
  31488. 'abreve': 556,
  31489. 'uhungarumlaut': 611,
  31490. 'ecaron': 556,
  31491. 'Ydieresis': 667,
  31492. 'divide': 584,
  31493. 'Yacute': 667,
  31494. 'Acircumflex': 722,
  31495. 'aacute': 556,
  31496. 'Ucircumflex': 722,
  31497. 'yacute': 556,
  31498. 'scommaaccent': 556,
  31499. 'ecircumflex': 556,
  31500. 'Uring': 722,
  31501. 'Udieresis': 722,
  31502. 'aogonek': 556,
  31503. 'Uacute': 722,
  31504. 'uogonek': 611,
  31505. 'Edieresis': 667,
  31506. 'Dcroat': 722,
  31507. 'commaaccent': 250,
  31508. 'copyright': 737,
  31509. 'Emacron': 667,
  31510. 'ccaron': 556,
  31511. 'aring': 556,
  31512. 'Ncommaaccent': 722,
  31513. 'lacute': 278,
  31514. 'agrave': 556,
  31515. 'Tcommaaccent': 611,
  31516. 'Cacute': 722,
  31517. 'atilde': 556,
  31518. 'Edotaccent': 667,
  31519. 'scaron': 556,
  31520. 'scedilla': 556,
  31521. 'iacute': 278,
  31522. 'lozenge': 494,
  31523. 'Rcaron': 722,
  31524. 'Gcommaaccent': 778,
  31525. 'ucircumflex': 611,
  31526. 'acircumflex': 556,
  31527. 'Amacron': 722,
  31528. 'rcaron': 389,
  31529. 'ccedilla': 556,
  31530. 'Zdotaccent': 611,
  31531. 'Thorn': 667,
  31532. 'Omacron': 778,
  31533. 'Racute': 722,
  31534. 'Sacute': 667,
  31535. 'dcaron': 743,
  31536. 'Umacron': 722,
  31537. 'uring': 611,
  31538. 'threesuperior': 333,
  31539. 'Ograve': 778,
  31540. 'Agrave': 722,
  31541. 'Abreve': 722,
  31542. 'multiply': 584,
  31543. 'uacute': 611,
  31544. 'Tcaron': 611,
  31545. 'partialdiff': 494,
  31546. 'ydieresis': 556,
  31547. 'Nacute': 722,
  31548. 'icircumflex': 278,
  31549. 'Ecircumflex': 667,
  31550. 'adieresis': 556,
  31551. 'edieresis': 556,
  31552. 'cacute': 556,
  31553. 'nacute': 611,
  31554. 'umacron': 611,
  31555. 'Ncaron': 722,
  31556. 'Iacute': 278,
  31557. 'plusminus': 584,
  31558. 'brokenbar': 280,
  31559. 'registered': 737,
  31560. 'Gbreve': 778,
  31561. 'Idotaccent': 278,
  31562. 'summation': 600,
  31563. 'Egrave': 667,
  31564. 'racute': 389,
  31565. 'omacron': 611,
  31566. 'Zacute': 611,
  31567. 'Zcaron': 611,
  31568. 'greaterequal': 549,
  31569. 'Eth': 722,
  31570. 'Ccedilla': 722,
  31571. 'lcommaaccent': 278,
  31572. 'tcaron': 389,
  31573. 'eogonek': 556,
  31574. 'Uogonek': 722,
  31575. 'Aacute': 722,
  31576. 'Adieresis': 722,
  31577. 'egrave': 556,
  31578. 'zacute': 500,
  31579. 'iogonek': 278,
  31580. 'Oacute': 778,
  31581. 'oacute': 611,
  31582. 'amacron': 556,
  31583. 'sacute': 556,
  31584. 'idieresis': 278,
  31585. 'Ocircumflex': 778,
  31586. 'Ugrave': 722,
  31587. 'Delta': 612,
  31588. 'thorn': 611,
  31589. 'twosuperior': 333,
  31590. 'Odieresis': 778,
  31591. 'mu': 611,
  31592. 'igrave': 278,
  31593. 'ohungarumlaut': 611,
  31594. 'Eogonek': 667,
  31595. 'dcroat': 611,
  31596. 'threequarters': 834,
  31597. 'Scedilla': 667,
  31598. 'lcaron': 400,
  31599. 'Kcommaaccent': 722,
  31600. 'Lacute': 611,
  31601. 'trademark': 1000,
  31602. 'edotaccent': 556,
  31603. 'Igrave': 278,
  31604. 'Imacron': 278,
  31605. 'Lcaron': 611,
  31606. 'onehalf': 834,
  31607. 'lessequal': 549,
  31608. 'ocircumflex': 611,
  31609. 'ntilde': 611,
  31610. 'Uhungarumlaut': 722,
  31611. 'Eacute': 667,
  31612. 'emacron': 556,
  31613. 'gbreve': 611,
  31614. 'onequarter': 834,
  31615. 'Scaron': 667,
  31616. 'Scommaaccent': 667,
  31617. 'Ohungarumlaut': 778,
  31618. 'degree': 400,
  31619. 'ograve': 611,
  31620. 'Ccaron': 722,
  31621. 'ugrave': 611,
  31622. 'radical': 549,
  31623. 'Dcaron': 722,
  31624. 'rcommaaccent': 389,
  31625. 'Ntilde': 722,
  31626. 'otilde': 611,
  31627. 'Rcommaaccent': 722,
  31628. 'Lcommaaccent': 611,
  31629. 'Atilde': 722,
  31630. 'Aogonek': 722,
  31631. 'Aring': 722,
  31632. 'Otilde': 778,
  31633. 'zdotaccent': 500,
  31634. 'Ecaron': 667,
  31635. 'Iogonek': 278,
  31636. 'kcommaaccent': 556,
  31637. 'minus': 584,
  31638. 'Icircumflex': 278,
  31639. 'ncaron': 611,
  31640. 'tcommaaccent': 333,
  31641. 'logicalnot': 584,
  31642. 'odieresis': 611,
  31643. 'udieresis': 611,
  31644. 'notequal': 549,
  31645. 'gcommaaccent': 611,
  31646. 'eth': 611,
  31647. 'zcaron': 500,
  31648. 'ncommaaccent': 611,
  31649. 'onesuperior': 333,
  31650. 'imacron': 278,
  31651. 'Euro': 556
  31652. },
  31653. 'Helvetica-BoldOblique': {
  31654. 'space': 278,
  31655. 'exclam': 333,
  31656. 'quotedbl': 474,
  31657. 'numbersign': 556,
  31658. 'dollar': 556,
  31659. 'percent': 889,
  31660. 'ampersand': 722,
  31661. 'quoteright': 278,
  31662. 'parenleft': 333,
  31663. 'parenright': 333,
  31664. 'asterisk': 389,
  31665. 'plus': 584,
  31666. 'comma': 278,
  31667. 'hyphen': 333,
  31668. 'period': 278,
  31669. 'slash': 278,
  31670. 'zero': 556,
  31671. 'one': 556,
  31672. 'two': 556,
  31673. 'three': 556,
  31674. 'four': 556,
  31675. 'five': 556,
  31676. 'six': 556,
  31677. 'seven': 556,
  31678. 'eight': 556,
  31679. 'nine': 556,
  31680. 'colon': 333,
  31681. 'semicolon': 333,
  31682. 'less': 584,
  31683. 'equal': 584,
  31684. 'greater': 584,
  31685. 'question': 611,
  31686. 'at': 975,
  31687. 'A': 722,
  31688. 'B': 722,
  31689. 'C': 722,
  31690. 'D': 722,
  31691. 'E': 667,
  31692. 'F': 611,
  31693. 'G': 778,
  31694. 'H': 722,
  31695. 'I': 278,
  31696. 'J': 556,
  31697. 'K': 722,
  31698. 'L': 611,
  31699. 'M': 833,
  31700. 'N': 722,
  31701. 'O': 778,
  31702. 'P': 667,
  31703. 'Q': 778,
  31704. 'R': 722,
  31705. 'S': 667,
  31706. 'T': 611,
  31707. 'U': 722,
  31708. 'V': 667,
  31709. 'W': 944,
  31710. 'X': 667,
  31711. 'Y': 667,
  31712. 'Z': 611,
  31713. 'bracketleft': 333,
  31714. 'backslash': 278,
  31715. 'bracketright': 333,
  31716. 'asciicircum': 584,
  31717. 'underscore': 556,
  31718. 'quoteleft': 278,
  31719. 'a': 556,
  31720. 'b': 611,
  31721. 'c': 556,
  31722. 'd': 611,
  31723. 'e': 556,
  31724. 'f': 333,
  31725. 'g': 611,
  31726. 'h': 611,
  31727. 'i': 278,
  31728. 'j': 278,
  31729. 'k': 556,
  31730. 'l': 278,
  31731. 'm': 889,
  31732. 'n': 611,
  31733. 'o': 611,
  31734. 'p': 611,
  31735. 'q': 611,
  31736. 'r': 389,
  31737. 's': 556,
  31738. 't': 333,
  31739. 'u': 611,
  31740. 'v': 556,
  31741. 'w': 778,
  31742. 'x': 556,
  31743. 'y': 556,
  31744. 'z': 500,
  31745. 'braceleft': 389,
  31746. 'bar': 280,
  31747. 'braceright': 389,
  31748. 'asciitilde': 584,
  31749. 'exclamdown': 333,
  31750. 'cent': 556,
  31751. 'sterling': 556,
  31752. 'fraction': 167,
  31753. 'yen': 556,
  31754. 'florin': 556,
  31755. 'section': 556,
  31756. 'currency': 556,
  31757. 'quotesingle': 238,
  31758. 'quotedblleft': 500,
  31759. 'guillemotleft': 556,
  31760. 'guilsinglleft': 333,
  31761. 'guilsinglright': 333,
  31762. 'fi': 611,
  31763. 'fl': 611,
  31764. 'endash': 556,
  31765. 'dagger': 556,
  31766. 'daggerdbl': 556,
  31767. 'periodcentered': 278,
  31768. 'paragraph': 556,
  31769. 'bullet': 350,
  31770. 'quotesinglbase': 278,
  31771. 'quotedblbase': 500,
  31772. 'quotedblright': 500,
  31773. 'guillemotright': 556,
  31774. 'ellipsis': 1000,
  31775. 'perthousand': 1000,
  31776. 'questiondown': 611,
  31777. 'grave': 333,
  31778. 'acute': 333,
  31779. 'circumflex': 333,
  31780. 'tilde': 333,
  31781. 'macron': 333,
  31782. 'breve': 333,
  31783. 'dotaccent': 333,
  31784. 'dieresis': 333,
  31785. 'ring': 333,
  31786. 'cedilla': 333,
  31787. 'hungarumlaut': 333,
  31788. 'ogonek': 333,
  31789. 'caron': 333,
  31790. 'emdash': 1000,
  31791. 'AE': 1000,
  31792. 'ordfeminine': 370,
  31793. 'Lslash': 611,
  31794. 'Oslash': 778,
  31795. 'OE': 1000,
  31796. 'ordmasculine': 365,
  31797. 'ae': 889,
  31798. 'dotlessi': 278,
  31799. 'lslash': 278,
  31800. 'oslash': 611,
  31801. 'oe': 944,
  31802. 'germandbls': 611,
  31803. 'Idieresis': 278,
  31804. 'eacute': 556,
  31805. 'abreve': 556,
  31806. 'uhungarumlaut': 611,
  31807. 'ecaron': 556,
  31808. 'Ydieresis': 667,
  31809. 'divide': 584,
  31810. 'Yacute': 667,
  31811. 'Acircumflex': 722,
  31812. 'aacute': 556,
  31813. 'Ucircumflex': 722,
  31814. 'yacute': 556,
  31815. 'scommaaccent': 556,
  31816. 'ecircumflex': 556,
  31817. 'Uring': 722,
  31818. 'Udieresis': 722,
  31819. 'aogonek': 556,
  31820. 'Uacute': 722,
  31821. 'uogonek': 611,
  31822. 'Edieresis': 667,
  31823. 'Dcroat': 722,
  31824. 'commaaccent': 250,
  31825. 'copyright': 737,
  31826. 'Emacron': 667,
  31827. 'ccaron': 556,
  31828. 'aring': 556,
  31829. 'Ncommaaccent': 722,
  31830. 'lacute': 278,
  31831. 'agrave': 556,
  31832. 'Tcommaaccent': 611,
  31833. 'Cacute': 722,
  31834. 'atilde': 556,
  31835. 'Edotaccent': 667,
  31836. 'scaron': 556,
  31837. 'scedilla': 556,
  31838. 'iacute': 278,
  31839. 'lozenge': 494,
  31840. 'Rcaron': 722,
  31841. 'Gcommaaccent': 778,
  31842. 'ucircumflex': 611,
  31843. 'acircumflex': 556,
  31844. 'Amacron': 722,
  31845. 'rcaron': 389,
  31846. 'ccedilla': 556,
  31847. 'Zdotaccent': 611,
  31848. 'Thorn': 667,
  31849. 'Omacron': 778,
  31850. 'Racute': 722,
  31851. 'Sacute': 667,
  31852. 'dcaron': 743,
  31853. 'Umacron': 722,
  31854. 'uring': 611,
  31855. 'threesuperior': 333,
  31856. 'Ograve': 778,
  31857. 'Agrave': 722,
  31858. 'Abreve': 722,
  31859. 'multiply': 584,
  31860. 'uacute': 611,
  31861. 'Tcaron': 611,
  31862. 'partialdiff': 494,
  31863. 'ydieresis': 556,
  31864. 'Nacute': 722,
  31865. 'icircumflex': 278,
  31866. 'Ecircumflex': 667,
  31867. 'adieresis': 556,
  31868. 'edieresis': 556,
  31869. 'cacute': 556,
  31870. 'nacute': 611,
  31871. 'umacron': 611,
  31872. 'Ncaron': 722,
  31873. 'Iacute': 278,
  31874. 'plusminus': 584,
  31875. 'brokenbar': 280,
  31876. 'registered': 737,
  31877. 'Gbreve': 778,
  31878. 'Idotaccent': 278,
  31879. 'summation': 600,
  31880. 'Egrave': 667,
  31881. 'racute': 389,
  31882. 'omacron': 611,
  31883. 'Zacute': 611,
  31884. 'Zcaron': 611,
  31885. 'greaterequal': 549,
  31886. 'Eth': 722,
  31887. 'Ccedilla': 722,
  31888. 'lcommaaccent': 278,
  31889. 'tcaron': 389,
  31890. 'eogonek': 556,
  31891. 'Uogonek': 722,
  31892. 'Aacute': 722,
  31893. 'Adieresis': 722,
  31894. 'egrave': 556,
  31895. 'zacute': 500,
  31896. 'iogonek': 278,
  31897. 'Oacute': 778,
  31898. 'oacute': 611,
  31899. 'amacron': 556,
  31900. 'sacute': 556,
  31901. 'idieresis': 278,
  31902. 'Ocircumflex': 778,
  31903. 'Ugrave': 722,
  31904. 'Delta': 612,
  31905. 'thorn': 611,
  31906. 'twosuperior': 333,
  31907. 'Odieresis': 778,
  31908. 'mu': 611,
  31909. 'igrave': 278,
  31910. 'ohungarumlaut': 611,
  31911. 'Eogonek': 667,
  31912. 'dcroat': 611,
  31913. 'threequarters': 834,
  31914. 'Scedilla': 667,
  31915. 'lcaron': 400,
  31916. 'Kcommaaccent': 722,
  31917. 'Lacute': 611,
  31918. 'trademark': 1000,
  31919. 'edotaccent': 556,
  31920. 'Igrave': 278,
  31921. 'Imacron': 278,
  31922. 'Lcaron': 611,
  31923. 'onehalf': 834,
  31924. 'lessequal': 549,
  31925. 'ocircumflex': 611,
  31926. 'ntilde': 611,
  31927. 'Uhungarumlaut': 722,
  31928. 'Eacute': 667,
  31929. 'emacron': 556,
  31930. 'gbreve': 611,
  31931. 'onequarter': 834,
  31932. 'Scaron': 667,
  31933. 'Scommaaccent': 667,
  31934. 'Ohungarumlaut': 778,
  31935. 'degree': 400,
  31936. 'ograve': 611,
  31937. 'Ccaron': 722,
  31938. 'ugrave': 611,
  31939. 'radical': 549,
  31940. 'Dcaron': 722,
  31941. 'rcommaaccent': 389,
  31942. 'Ntilde': 722,
  31943. 'otilde': 611,
  31944. 'Rcommaaccent': 722,
  31945. 'Lcommaaccent': 611,
  31946. 'Atilde': 722,
  31947. 'Aogonek': 722,
  31948. 'Aring': 722,
  31949. 'Otilde': 778,
  31950. 'zdotaccent': 500,
  31951. 'Ecaron': 667,
  31952. 'Iogonek': 278,
  31953. 'kcommaaccent': 556,
  31954. 'minus': 584,
  31955. 'Icircumflex': 278,
  31956. 'ncaron': 611,
  31957. 'tcommaaccent': 333,
  31958. 'logicalnot': 584,
  31959. 'odieresis': 611,
  31960. 'udieresis': 611,
  31961. 'notequal': 549,
  31962. 'gcommaaccent': 611,
  31963. 'eth': 611,
  31964. 'zcaron': 500,
  31965. 'ncommaaccent': 611,
  31966. 'onesuperior': 333,
  31967. 'imacron': 278,
  31968. 'Euro': 556
  31969. },
  31970. 'Helvetica-Oblique' : {
  31971. 'space': 278,
  31972. 'exclam': 278,
  31973. 'quotedbl': 355,
  31974. 'numbersign': 556,
  31975. 'dollar': 556,
  31976. 'percent': 889,
  31977. 'ampersand': 667,
  31978. 'quoteright': 222,
  31979. 'parenleft': 333,
  31980. 'parenright': 333,
  31981. 'asterisk': 389,
  31982. 'plus': 584,
  31983. 'comma': 278,
  31984. 'hyphen': 333,
  31985. 'period': 278,
  31986. 'slash': 278,
  31987. 'zero': 556,
  31988. 'one': 556,
  31989. 'two': 556,
  31990. 'three': 556,
  31991. 'four': 556,
  31992. 'five': 556,
  31993. 'six': 556,
  31994. 'seven': 556,
  31995. 'eight': 556,
  31996. 'nine': 556,
  31997. 'colon': 278,
  31998. 'semicolon': 278,
  31999. 'less': 584,
  32000. 'equal': 584,
  32001. 'greater': 584,
  32002. 'question': 556,
  32003. 'at': 1015,
  32004. 'A': 667,
  32005. 'B': 667,
  32006. 'C': 722,
  32007. 'D': 722,
  32008. 'E': 667,
  32009. 'F': 611,
  32010. 'G': 778,
  32011. 'H': 722,
  32012. 'I': 278,
  32013. 'J': 500,
  32014. 'K': 667,
  32015. 'L': 556,
  32016. 'M': 833,
  32017. 'N': 722,
  32018. 'O': 778,
  32019. 'P': 667,
  32020. 'Q': 778,
  32021. 'R': 722,
  32022. 'S': 667,
  32023. 'T': 611,
  32024. 'U': 722,
  32025. 'V': 667,
  32026. 'W': 944,
  32027. 'X': 667,
  32028. 'Y': 667,
  32029. 'Z': 611,
  32030. 'bracketleft': 278,
  32031. 'backslash': 278,
  32032. 'bracketright': 278,
  32033. 'asciicircum': 469,
  32034. 'underscore': 556,
  32035. 'quoteleft': 222,
  32036. 'a': 556,
  32037. 'b': 556,
  32038. 'c': 500,
  32039. 'd': 556,
  32040. 'e': 556,
  32041. 'f': 278,
  32042. 'g': 556,
  32043. 'h': 556,
  32044. 'i': 222,
  32045. 'j': 222,
  32046. 'k': 500,
  32047. 'l': 222,
  32048. 'm': 833,
  32049. 'n': 556,
  32050. 'o': 556,
  32051. 'p': 556,
  32052. 'q': 556,
  32053. 'r': 333,
  32054. 's': 500,
  32055. 't': 278,
  32056. 'u': 556,
  32057. 'v': 500,
  32058. 'w': 722,
  32059. 'x': 500,
  32060. 'y': 500,
  32061. 'z': 500,
  32062. 'braceleft': 334,
  32063. 'bar': 260,
  32064. 'braceright': 334,
  32065. 'asciitilde': 584,
  32066. 'exclamdown': 333,
  32067. 'cent': 556,
  32068. 'sterling': 556,
  32069. 'fraction': 167,
  32070. 'yen': 556,
  32071. 'florin': 556,
  32072. 'section': 556,
  32073. 'currency': 556,
  32074. 'quotesingle': 191,
  32075. 'quotedblleft': 333,
  32076. 'guillemotleft': 556,
  32077. 'guilsinglleft': 333,
  32078. 'guilsinglright': 333,
  32079. 'fi': 500,
  32080. 'fl': 500,
  32081. 'endash': 556,
  32082. 'dagger': 556,
  32083. 'daggerdbl': 556,
  32084. 'periodcentered': 278,
  32085. 'paragraph': 537,
  32086. 'bullet': 350,
  32087. 'quotesinglbase': 222,
  32088. 'quotedblbase': 333,
  32089. 'quotedblright': 333,
  32090. 'guillemotright': 556,
  32091. 'ellipsis': 1000,
  32092. 'perthousand': 1000,
  32093. 'questiondown': 611,
  32094. 'grave': 333,
  32095. 'acute': 333,
  32096. 'circumflex': 333,
  32097. 'tilde': 333,
  32098. 'macron': 333,
  32099. 'breve': 333,
  32100. 'dotaccent': 333,
  32101. 'dieresis': 333,
  32102. 'ring': 333,
  32103. 'cedilla': 333,
  32104. 'hungarumlaut': 333,
  32105. 'ogonek': 333,
  32106. 'caron': 333,
  32107. 'emdash': 1000,
  32108. 'AE': 1000,
  32109. 'ordfeminine': 370,
  32110. 'Lslash': 556,
  32111. 'Oslash': 778,
  32112. 'OE': 1000,
  32113. 'ordmasculine': 365,
  32114. 'ae': 889,
  32115. 'dotlessi': 278,
  32116. 'lslash': 222,
  32117. 'oslash': 611,
  32118. 'oe': 944,
  32119. 'germandbls': 611,
  32120. 'Idieresis': 278,
  32121. 'eacute': 556,
  32122. 'abreve': 556,
  32123. 'uhungarumlaut': 556,
  32124. 'ecaron': 556,
  32125. 'Ydieresis': 667,
  32126. 'divide': 584,
  32127. 'Yacute': 667,
  32128. 'Acircumflex': 667,
  32129. 'aacute': 556,
  32130. 'Ucircumflex': 722,
  32131. 'yacute': 500,
  32132. 'scommaaccent': 500,
  32133. 'ecircumflex': 556,
  32134. 'Uring': 722,
  32135. 'Udieresis': 722,
  32136. 'aogonek': 556,
  32137. 'Uacute': 722,
  32138. 'uogonek': 556,
  32139. 'Edieresis': 667,
  32140. 'Dcroat': 722,
  32141. 'commaaccent': 250,
  32142. 'copyright': 737,
  32143. 'Emacron': 667,
  32144. 'ccaron': 500,
  32145. 'aring': 556,
  32146. 'Ncommaaccent': 722,
  32147. 'lacute': 222,
  32148. 'agrave': 556,
  32149. 'Tcommaaccent': 611,
  32150. 'Cacute': 722,
  32151. 'atilde': 556,
  32152. 'Edotaccent': 667,
  32153. 'scaron': 500,
  32154. 'scedilla': 500,
  32155. 'iacute': 278,
  32156. 'lozenge': 471,
  32157. 'Rcaron': 722,
  32158. 'Gcommaaccent': 778,
  32159. 'ucircumflex': 556,
  32160. 'acircumflex': 556,
  32161. 'Amacron': 667,
  32162. 'rcaron': 333,
  32163. 'ccedilla': 500,
  32164. 'Zdotaccent': 611,
  32165. 'Thorn': 667,
  32166. 'Omacron': 778,
  32167. 'Racute': 722,
  32168. 'Sacute': 667,
  32169. 'dcaron': 643,
  32170. 'Umacron': 722,
  32171. 'uring': 556,
  32172. 'threesuperior': 333,
  32173. 'Ograve': 778,
  32174. 'Agrave': 667,
  32175. 'Abreve': 667,
  32176. 'multiply': 584,
  32177. 'uacute': 556,
  32178. 'Tcaron': 611,
  32179. 'partialdiff': 476,
  32180. 'ydieresis': 500,
  32181. 'Nacute': 722,
  32182. 'icircumflex': 278,
  32183. 'Ecircumflex': 667,
  32184. 'adieresis': 556,
  32185. 'edieresis': 556,
  32186. 'cacute': 500,
  32187. 'nacute': 556,
  32188. 'umacron': 556,
  32189. 'Ncaron': 722,
  32190. 'Iacute': 278,
  32191. 'plusminus': 584,
  32192. 'brokenbar': 260,
  32193. 'registered': 737,
  32194. 'Gbreve': 778,
  32195. 'Idotaccent': 278,
  32196. 'summation': 600,
  32197. 'Egrave': 667,
  32198. 'racute': 333,
  32199. 'omacron': 556,
  32200. 'Zacute': 611,
  32201. 'Zcaron': 611,
  32202. 'greaterequal': 549,
  32203. 'Eth': 722,
  32204. 'Ccedilla': 722,
  32205. 'lcommaaccent': 222,
  32206. 'tcaron': 317,
  32207. 'eogonek': 556,
  32208. 'Uogonek': 722,
  32209. 'Aacute': 667,
  32210. 'Adieresis': 667,
  32211. 'egrave': 556,
  32212. 'zacute': 500,
  32213. 'iogonek': 222,
  32214. 'Oacute': 778,
  32215. 'oacute': 556,
  32216. 'amacron': 556,
  32217. 'sacute': 500,
  32218. 'idieresis': 278,
  32219. 'Ocircumflex': 778,
  32220. 'Ugrave': 722,
  32221. 'Delta': 612,
  32222. 'thorn': 556,
  32223. 'twosuperior': 333,
  32224. 'Odieresis': 778,
  32225. 'mu': 556,
  32226. 'igrave': 278,
  32227. 'ohungarumlaut': 556,
  32228. 'Eogonek': 667,
  32229. 'dcroat': 556,
  32230. 'threequarters': 834,
  32231. 'Scedilla': 667,
  32232. 'lcaron': 299,
  32233. 'Kcommaaccent': 667,
  32234. 'Lacute': 556,
  32235. 'trademark': 1000,
  32236. 'edotaccent': 556,
  32237. 'Igrave': 278,
  32238. 'Imacron': 278,
  32239. 'Lcaron': 556,
  32240. 'onehalf': 834,
  32241. 'lessequal': 549,
  32242. 'ocircumflex': 556,
  32243. 'ntilde': 556,
  32244. 'Uhungarumlaut': 722,
  32245. 'Eacute': 667,
  32246. 'emacron': 556,
  32247. 'gbreve': 556,
  32248. 'onequarter': 834,
  32249. 'Scaron': 667,
  32250. 'Scommaaccent': 667,
  32251. 'Ohungarumlaut': 778,
  32252. 'degree': 400,
  32253. 'ograve': 556,
  32254. 'Ccaron': 722,
  32255. 'ugrave': 556,
  32256. 'radical': 453,
  32257. 'Dcaron': 722,
  32258. 'rcommaaccent': 333,
  32259. 'Ntilde': 722,
  32260. 'otilde': 556,
  32261. 'Rcommaaccent': 722,
  32262. 'Lcommaaccent': 556,
  32263. 'Atilde': 667,
  32264. 'Aogonek': 667,
  32265. 'Aring': 667,
  32266. 'Otilde': 778,
  32267. 'zdotaccent': 500,
  32268. 'Ecaron': 667,
  32269. 'Iogonek': 278,
  32270. 'kcommaaccent': 500,
  32271. 'minus': 584,
  32272. 'Icircumflex': 278,
  32273. 'ncaron': 556,
  32274. 'tcommaaccent': 278,
  32275. 'logicalnot': 584,
  32276. 'odieresis': 556,
  32277. 'udieresis': 556,
  32278. 'notequal': 549,
  32279. 'gcommaaccent': 556,
  32280. 'eth': 556,
  32281. 'zcaron': 500,
  32282. 'ncommaaccent': 556,
  32283. 'onesuperior': 333,
  32284. 'imacron': 278,
  32285. 'Euro': 556
  32286. },
  32287. 'Symbol': {
  32288. 'space': 250,
  32289. 'exclam': 333,
  32290. 'universal': 713,
  32291. 'numbersign': 500,
  32292. 'existential': 549,
  32293. 'percent': 833,
  32294. 'ampersand': 778,
  32295. 'suchthat': 439,
  32296. 'parenleft': 333,
  32297. 'parenright': 333,
  32298. 'asteriskmath': 500,
  32299. 'plus': 549,
  32300. 'comma': 250,
  32301. 'minus': 549,
  32302. 'period': 250,
  32303. 'slash': 278,
  32304. 'zero': 500,
  32305. 'one': 500,
  32306. 'two': 500,
  32307. 'three': 500,
  32308. 'four': 500,
  32309. 'five': 500,
  32310. 'six': 500,
  32311. 'seven': 500,
  32312. 'eight': 500,
  32313. 'nine': 500,
  32314. 'colon': 278,
  32315. 'semicolon': 278,
  32316. 'less': 549,
  32317. 'equal': 549,
  32318. 'greater': 549,
  32319. 'question': 444,
  32320. 'congruent': 549,
  32321. 'Alpha': 722,
  32322. 'Beta': 667,
  32323. 'Chi': 722,
  32324. 'Delta': 612,
  32325. 'Epsilon': 611,
  32326. 'Phi': 763,
  32327. 'Gamma': 603,
  32328. 'Eta': 722,
  32329. 'Iota': 333,
  32330. 'theta1': 631,
  32331. 'Kappa': 722,
  32332. 'Lambda': 686,
  32333. 'Mu': 889,
  32334. 'Nu': 722,
  32335. 'Omicron': 722,
  32336. 'Pi': 768,
  32337. 'Theta': 741,
  32338. 'Rho': 556,
  32339. 'Sigma': 592,
  32340. 'Tau': 611,
  32341. 'Upsilon': 690,
  32342. 'sigma1': 439,
  32343. 'Omega': 768,
  32344. 'Xi': 645,
  32345. 'Psi': 795,
  32346. 'Zeta': 611,
  32347. 'bracketleft': 333,
  32348. 'therefore': 863,
  32349. 'bracketright': 333,
  32350. 'perpendicular': 658,
  32351. 'underscore': 500,
  32352. 'radicalex': 500,
  32353. 'alpha': 631,
  32354. 'beta': 549,
  32355. 'chi': 549,
  32356. 'delta': 494,
  32357. 'epsilon': 439,
  32358. 'phi': 521,
  32359. 'gamma': 411,
  32360. 'eta': 603,
  32361. 'iota': 329,
  32362. 'phi1': 603,
  32363. 'kappa': 549,
  32364. 'lambda': 549,
  32365. 'mu': 576,
  32366. 'nu': 521,
  32367. 'omicron': 549,
  32368. 'pi': 549,
  32369. 'theta': 521,
  32370. 'rho': 549,
  32371. 'sigma': 603,
  32372. 'tau': 439,
  32373. 'upsilon': 576,
  32374. 'omega1': 713,
  32375. 'omega': 686,
  32376. 'xi': 493,
  32377. 'psi': 686,
  32378. 'zeta': 494,
  32379. 'braceleft': 480,
  32380. 'bar': 200,
  32381. 'braceright': 480,
  32382. 'similar': 549,
  32383. 'Euro': 750,
  32384. 'Upsilon1': 620,
  32385. 'minute': 247,
  32386. 'lessequal': 549,
  32387. 'fraction': 167,
  32388. 'infinity': 713,
  32389. 'florin': 500,
  32390. 'club': 753,
  32391. 'diamond': 753,
  32392. 'heart': 753,
  32393. 'spade': 753,
  32394. 'arrowboth': 1042,
  32395. 'arrowleft': 987,
  32396. 'arrowup': 603,
  32397. 'arrowright': 987,
  32398. 'arrowdown': 603,
  32399. 'degree': 400,
  32400. 'plusminus': 549,
  32401. 'second': 411,
  32402. 'greaterequal': 549,
  32403. 'multiply': 549,
  32404. 'proportional': 713,
  32405. 'partialdiff': 494,
  32406. 'bullet': 460,
  32407. 'divide': 549,
  32408. 'notequal': 549,
  32409. 'equivalence': 549,
  32410. 'approxequal': 549,
  32411. 'ellipsis': 1000,
  32412. 'arrowvertex': 603,
  32413. 'arrowhorizex': 1000,
  32414. 'carriagereturn': 658,
  32415. 'aleph': 823,
  32416. 'Ifraktur': 686,
  32417. 'Rfraktur': 795,
  32418. 'weierstrass': 987,
  32419. 'circlemultiply': 768,
  32420. 'circleplus': 768,
  32421. 'emptyset': 823,
  32422. 'intersection': 768,
  32423. 'union': 768,
  32424. 'propersuperset': 713,
  32425. 'reflexsuperset': 713,
  32426. 'notsubset': 713,
  32427. 'propersubset': 713,
  32428. 'reflexsubset': 713,
  32429. 'element': 713,
  32430. 'notelement': 713,
  32431. 'angle': 768,
  32432. 'gradient': 713,
  32433. 'registerserif': 790,
  32434. 'copyrightserif': 790,
  32435. 'trademarkserif': 890,
  32436. 'product': 823,
  32437. 'radical': 549,
  32438. 'dotmath': 250,
  32439. 'logicalnot': 713,
  32440. 'logicaland': 603,
  32441. 'logicalor': 603,
  32442. 'arrowdblboth': 1042,
  32443. 'arrowdblleft': 987,
  32444. 'arrowdblup': 603,
  32445. 'arrowdblright': 987,
  32446. 'arrowdbldown': 603,
  32447. 'lozenge': 494,
  32448. 'angleleft': 329,
  32449. 'registersans': 790,
  32450. 'copyrightsans': 790,
  32451. 'trademarksans': 786,
  32452. 'summation': 713,
  32453. 'parenlefttp': 384,
  32454. 'parenleftex': 384,
  32455. 'parenleftbt': 384,
  32456. 'bracketlefttp': 384,
  32457. 'bracketleftex': 384,
  32458. 'bracketleftbt': 384,
  32459. 'bracelefttp': 494,
  32460. 'braceleftmid': 494,
  32461. 'braceleftbt': 494,
  32462. 'braceex': 494,
  32463. 'angleright': 329,
  32464. 'integral': 274,
  32465. 'integraltp': 686,
  32466. 'integralex': 686,
  32467. 'integralbt': 686,
  32468. 'parenrighttp': 384,
  32469. 'parenrightex': 384,
  32470. 'parenrightbt': 384,
  32471. 'bracketrighttp': 384,
  32472. 'bracketrightex': 384,
  32473. 'bracketrightbt': 384,
  32474. 'bracerighttp': 494,
  32475. 'bracerightmid': 494,
  32476. 'bracerightbt': 494,
  32477. 'apple': 790
  32478. },
  32479. 'Times-Roman': {
  32480. 'space': 250,
  32481. 'exclam': 333,
  32482. 'quotedbl': 408,
  32483. 'numbersign': 500,
  32484. 'dollar': 500,
  32485. 'percent': 833,
  32486. 'ampersand': 778,
  32487. 'quoteright': 333,
  32488. 'parenleft': 333,
  32489. 'parenright': 333,
  32490. 'asterisk': 500,
  32491. 'plus': 564,
  32492. 'comma': 250,
  32493. 'hyphen': 333,
  32494. 'period': 250,
  32495. 'slash': 278,
  32496. 'zero': 500,
  32497. 'one': 500,
  32498. 'two': 500,
  32499. 'three': 500,
  32500. 'four': 500,
  32501. 'five': 500,
  32502. 'six': 500,
  32503. 'seven': 500,
  32504. 'eight': 500,
  32505. 'nine': 500,
  32506. 'colon': 278,
  32507. 'semicolon': 278,
  32508. 'less': 564,
  32509. 'equal': 564,
  32510. 'greater': 564,
  32511. 'question': 444,
  32512. 'at': 921,
  32513. 'A': 722,
  32514. 'B': 667,
  32515. 'C': 667,
  32516. 'D': 722,
  32517. 'E': 611,
  32518. 'F': 556,
  32519. 'G': 722,
  32520. 'H': 722,
  32521. 'I': 333,
  32522. 'J': 389,
  32523. 'K': 722,
  32524. 'L': 611,
  32525. 'M': 889,
  32526. 'N': 722,
  32527. 'O': 722,
  32528. 'P': 556,
  32529. 'Q': 722,
  32530. 'R': 667,
  32531. 'S': 556,
  32532. 'T': 611,
  32533. 'U': 722,
  32534. 'V': 722,
  32535. 'W': 944,
  32536. 'X': 722,
  32537. 'Y': 722,
  32538. 'Z': 611,
  32539. 'bracketleft': 333,
  32540. 'backslash': 278,
  32541. 'bracketright': 333,
  32542. 'asciicircum': 469,
  32543. 'underscore': 500,
  32544. 'quoteleft': 333,
  32545. 'a': 444,
  32546. 'b': 500,
  32547. 'c': 444,
  32548. 'd': 500,
  32549. 'e': 444,
  32550. 'f': 333,
  32551. 'g': 500,
  32552. 'h': 500,
  32553. 'i': 278,
  32554. 'j': 278,
  32555. 'k': 500,
  32556. 'l': 278,
  32557. 'm': 778,
  32558. 'n': 500,
  32559. 'o': 500,
  32560. 'p': 500,
  32561. 'q': 500,
  32562. 'r': 333,
  32563. 's': 389,
  32564. 't': 278,
  32565. 'u': 500,
  32566. 'v': 500,
  32567. 'w': 722,
  32568. 'x': 500,
  32569. 'y': 500,
  32570. 'z': 444,
  32571. 'braceleft': 480,
  32572. 'bar': 200,
  32573. 'braceright': 480,
  32574. 'asciitilde': 541,
  32575. 'exclamdown': 333,
  32576. 'cent': 500,
  32577. 'sterling': 500,
  32578. 'fraction': 167,
  32579. 'yen': 500,
  32580. 'florin': 500,
  32581. 'section': 500,
  32582. 'currency': 500,
  32583. 'quotesingle': 180,
  32584. 'quotedblleft': 444,
  32585. 'guillemotleft': 500,
  32586. 'guilsinglleft': 333,
  32587. 'guilsinglright': 333,
  32588. 'fi': 556,
  32589. 'fl': 556,
  32590. 'endash': 500,
  32591. 'dagger': 500,
  32592. 'daggerdbl': 500,
  32593. 'periodcentered': 250,
  32594. 'paragraph': 453,
  32595. 'bullet': 350,
  32596. 'quotesinglbase': 333,
  32597. 'quotedblbase': 444,
  32598. 'quotedblright': 444,
  32599. 'guillemotright': 500,
  32600. 'ellipsis': 1000,
  32601. 'perthousand': 1000,
  32602. 'questiondown': 444,
  32603. 'grave': 333,
  32604. 'acute': 333,
  32605. 'circumflex': 333,
  32606. 'tilde': 333,
  32607. 'macron': 333,
  32608. 'breve': 333,
  32609. 'dotaccent': 333,
  32610. 'dieresis': 333,
  32611. 'ring': 333,
  32612. 'cedilla': 333,
  32613. 'hungarumlaut': 333,
  32614. 'ogonek': 333,
  32615. 'caron': 333,
  32616. 'emdash': 1000,
  32617. 'AE': 889,
  32618. 'ordfeminine': 276,
  32619. 'Lslash': 611,
  32620. 'Oslash': 722,
  32621. 'OE': 889,
  32622. 'ordmasculine': 310,
  32623. 'ae': 667,
  32624. 'dotlessi': 278,
  32625. 'lslash': 278,
  32626. 'oslash': 500,
  32627. 'oe': 722,
  32628. 'germandbls': 500,
  32629. 'Idieresis': 333,
  32630. 'eacute': 444,
  32631. 'abreve': 444,
  32632. 'uhungarumlaut': 500,
  32633. 'ecaron': 444,
  32634. 'Ydieresis': 722,
  32635. 'divide': 564,
  32636. 'Yacute': 722,
  32637. 'Acircumflex': 722,
  32638. 'aacute': 444,
  32639. 'Ucircumflex': 722,
  32640. 'yacute': 500,
  32641. 'scommaaccent': 389,
  32642. 'ecircumflex': 444,
  32643. 'Uring': 722,
  32644. 'Udieresis': 722,
  32645. 'aogonek': 444,
  32646. 'Uacute': 722,
  32647. 'uogonek': 500,
  32648. 'Edieresis': 611,
  32649. 'Dcroat': 722,
  32650. 'commaaccent': 250,
  32651. 'copyright': 760,
  32652. 'Emacron': 611,
  32653. 'ccaron': 444,
  32654. 'aring': 444,
  32655. 'Ncommaaccent': 722,
  32656. 'lacute': 278,
  32657. 'agrave': 444,
  32658. 'Tcommaaccent': 611,
  32659. 'Cacute': 667,
  32660. 'atilde': 444,
  32661. 'Edotaccent': 611,
  32662. 'scaron': 389,
  32663. 'scedilla': 389,
  32664. 'iacute': 278,
  32665. 'lozenge': 471,
  32666. 'Rcaron': 667,
  32667. 'Gcommaaccent': 722,
  32668. 'ucircumflex': 500,
  32669. 'acircumflex': 444,
  32670. 'Amacron': 722,
  32671. 'rcaron': 333,
  32672. 'ccedilla': 444,
  32673. 'Zdotaccent': 611,
  32674. 'Thorn': 556,
  32675. 'Omacron': 722,
  32676. 'Racute': 667,
  32677. 'Sacute': 556,
  32678. 'dcaron': 588,
  32679. 'Umacron': 722,
  32680. 'uring': 500,
  32681. 'threesuperior': 300,
  32682. 'Ograve': 722,
  32683. 'Agrave': 722,
  32684. 'Abreve': 722,
  32685. 'multiply': 564,
  32686. 'uacute': 500,
  32687. 'Tcaron': 611,
  32688. 'partialdiff': 476,
  32689. 'ydieresis': 500,
  32690. 'Nacute': 722,
  32691. 'icircumflex': 278,
  32692. 'Ecircumflex': 611,
  32693. 'adieresis': 444,
  32694. 'edieresis': 444,
  32695. 'cacute': 444,
  32696. 'nacute': 500,
  32697. 'umacron': 500,
  32698. 'Ncaron': 722,
  32699. 'Iacute': 333,
  32700. 'plusminus': 564,
  32701. 'brokenbar': 200,
  32702. 'registered': 760,
  32703. 'Gbreve': 722,
  32704. 'Idotaccent': 333,
  32705. 'summation': 600,
  32706. 'Egrave': 611,
  32707. 'racute': 333,
  32708. 'omacron': 500,
  32709. 'Zacute': 611,
  32710. 'Zcaron': 611,
  32711. 'greaterequal': 549,
  32712. 'Eth': 722,
  32713. 'Ccedilla': 667,
  32714. 'lcommaaccent': 278,
  32715. 'tcaron': 326,
  32716. 'eogonek': 444,
  32717. 'Uogonek': 722,
  32718. 'Aacute': 722,
  32719. 'Adieresis': 722,
  32720. 'egrave': 444,
  32721. 'zacute': 444,
  32722. 'iogonek': 278,
  32723. 'Oacute': 722,
  32724. 'oacute': 500,
  32725. 'amacron': 444,
  32726. 'sacute': 389,
  32727. 'idieresis': 278,
  32728. 'Ocircumflex': 722,
  32729. 'Ugrave': 722,
  32730. 'Delta': 612,
  32731. 'thorn': 500,
  32732. 'twosuperior': 300,
  32733. 'Odieresis': 722,
  32734. 'mu': 500,
  32735. 'igrave': 278,
  32736. 'ohungarumlaut': 500,
  32737. 'Eogonek': 611,
  32738. 'dcroat': 500,
  32739. 'threequarters': 750,
  32740. 'Scedilla': 556,
  32741. 'lcaron': 344,
  32742. 'Kcommaaccent': 722,
  32743. 'Lacute': 611,
  32744. 'trademark': 980,
  32745. 'edotaccent': 444,
  32746. 'Igrave': 333,
  32747. 'Imacron': 333,
  32748. 'Lcaron': 611,
  32749. 'onehalf': 750,
  32750. 'lessequal': 549,
  32751. 'ocircumflex': 500,
  32752. 'ntilde': 500,
  32753. 'Uhungarumlaut': 722,
  32754. 'Eacute': 611,
  32755. 'emacron': 444,
  32756. 'gbreve': 500,
  32757. 'onequarter': 750,
  32758. 'Scaron': 556,
  32759. 'Scommaaccent': 556,
  32760. 'Ohungarumlaut': 722,
  32761. 'degree': 400,
  32762. 'ograve': 500,
  32763. 'Ccaron': 667,
  32764. 'ugrave': 500,
  32765. 'radical': 453,
  32766. 'Dcaron': 722,
  32767. 'rcommaaccent': 333,
  32768. 'Ntilde': 722,
  32769. 'otilde': 500,
  32770. 'Rcommaaccent': 667,
  32771. 'Lcommaaccent': 611,
  32772. 'Atilde': 722,
  32773. 'Aogonek': 722,
  32774. 'Aring': 722,
  32775. 'Otilde': 722,
  32776. 'zdotaccent': 444,
  32777. 'Ecaron': 611,
  32778. 'Iogonek': 333,
  32779. 'kcommaaccent': 500,
  32780. 'minus': 564,
  32781. 'Icircumflex': 333,
  32782. 'ncaron': 500,
  32783. 'tcommaaccent': 278,
  32784. 'logicalnot': 564,
  32785. 'odieresis': 500,
  32786. 'udieresis': 500,
  32787. 'notequal': 549,
  32788. 'gcommaaccent': 500,
  32789. 'eth': 500,
  32790. 'zcaron': 444,
  32791. 'ncommaaccent': 500,
  32792. 'onesuperior': 300,
  32793. 'imacron': 278,
  32794. 'Euro': 500
  32795. },
  32796. 'Times-Bold': {
  32797. 'space': 250,
  32798. 'exclam': 333,
  32799. 'quotedbl': 555,
  32800. 'numbersign': 500,
  32801. 'dollar': 500,
  32802. 'percent': 1000,
  32803. 'ampersand': 833,
  32804. 'quoteright': 333,
  32805. 'parenleft': 333,
  32806. 'parenright': 333,
  32807. 'asterisk': 500,
  32808. 'plus': 570,
  32809. 'comma': 250,
  32810. 'hyphen': 333,
  32811. 'period': 250,
  32812. 'slash': 278,
  32813. 'zero': 500,
  32814. 'one': 500,
  32815. 'two': 500,
  32816. 'three': 500,
  32817. 'four': 500,
  32818. 'five': 500,
  32819. 'six': 500,
  32820. 'seven': 500,
  32821. 'eight': 500,
  32822. 'nine': 500,
  32823. 'colon': 333,
  32824. 'semicolon': 333,
  32825. 'less': 570,
  32826. 'equal': 570,
  32827. 'greater': 570,
  32828. 'question': 500,
  32829. 'at': 930,
  32830. 'A': 722,
  32831. 'B': 667,
  32832. 'C': 722,
  32833. 'D': 722,
  32834. 'E': 667,
  32835. 'F': 611,
  32836. 'G': 778,
  32837. 'H': 778,
  32838. 'I': 389,
  32839. 'J': 500,
  32840. 'K': 778,
  32841. 'L': 667,
  32842. 'M': 944,
  32843. 'N': 722,
  32844. 'O': 778,
  32845. 'P': 611,
  32846. 'Q': 778,
  32847. 'R': 722,
  32848. 'S': 556,
  32849. 'T': 667,
  32850. 'U': 722,
  32851. 'V': 722,
  32852. 'W': 1000,
  32853. 'X': 722,
  32854. 'Y': 722,
  32855. 'Z': 667,
  32856. 'bracketleft': 333,
  32857. 'backslash': 278,
  32858. 'bracketright': 333,
  32859. 'asciicircum': 581,
  32860. 'underscore': 500,
  32861. 'quoteleft': 333,
  32862. 'a': 500,
  32863. 'b': 556,
  32864. 'c': 444,
  32865. 'd': 556,
  32866. 'e': 444,
  32867. 'f': 333,
  32868. 'g': 500,
  32869. 'h': 556,
  32870. 'i': 278,
  32871. 'j': 333,
  32872. 'k': 556,
  32873. 'l': 278,
  32874. 'm': 833,
  32875. 'n': 556,
  32876. 'o': 500,
  32877. 'p': 556,
  32878. 'q': 556,
  32879. 'r': 444,
  32880. 's': 389,
  32881. 't': 333,
  32882. 'u': 556,
  32883. 'v': 500,
  32884. 'w': 722,
  32885. 'x': 500,
  32886. 'y': 500,
  32887. 'z': 444,
  32888. 'braceleft': 394,
  32889. 'bar': 220,
  32890. 'braceright': 394,
  32891. 'asciitilde': 520,
  32892. 'exclamdown': 333,
  32893. 'cent': 500,
  32894. 'sterling': 500,
  32895. 'fraction': 167,
  32896. 'yen': 500,
  32897. 'florin': 500,
  32898. 'section': 500,
  32899. 'currency': 500,
  32900. 'quotesingle': 278,
  32901. 'quotedblleft': 500,
  32902. 'guillemotleft': 500,
  32903. 'guilsinglleft': 333,
  32904. 'guilsinglright': 333,
  32905. 'fi': 556,
  32906. 'fl': 556,
  32907. 'endash': 500,
  32908. 'dagger': 500,
  32909. 'daggerdbl': 500,
  32910. 'periodcentered': 250,
  32911. 'paragraph': 540,
  32912. 'bullet': 350,
  32913. 'quotesinglbase': 333,
  32914. 'quotedblbase': 500,
  32915. 'quotedblright': 500,
  32916. 'guillemotright': 500,
  32917. 'ellipsis': 1000,
  32918. 'perthousand': 1000,
  32919. 'questiondown': 500,
  32920. 'grave': 333,
  32921. 'acute': 333,
  32922. 'circumflex': 333,
  32923. 'tilde': 333,
  32924. 'macron': 333,
  32925. 'breve': 333,
  32926. 'dotaccent': 333,
  32927. 'dieresis': 333,
  32928. 'ring': 333,
  32929. 'cedilla': 333,
  32930. 'hungarumlaut': 333,
  32931. 'ogonek': 333,
  32932. 'caron': 333,
  32933. 'emdash': 1000,
  32934. 'AE': 1000,
  32935. 'ordfeminine': 300,
  32936. 'Lslash': 667,
  32937. 'Oslash': 778,
  32938. 'OE': 1000,
  32939. 'ordmasculine': 330,
  32940. 'ae': 722,
  32941. 'dotlessi': 278,
  32942. 'lslash': 278,
  32943. 'oslash': 500,
  32944. 'oe': 722,
  32945. 'germandbls': 556,
  32946. 'Idieresis': 389,
  32947. 'eacute': 444,
  32948. 'abreve': 500,
  32949. 'uhungarumlaut': 556,
  32950. 'ecaron': 444,
  32951. 'Ydieresis': 722,
  32952. 'divide': 570,
  32953. 'Yacute': 722,
  32954. 'Acircumflex': 722,
  32955. 'aacute': 500,
  32956. 'Ucircumflex': 722,
  32957. 'yacute': 500,
  32958. 'scommaaccent': 389,
  32959. 'ecircumflex': 444,
  32960. 'Uring': 722,
  32961. 'Udieresis': 722,
  32962. 'aogonek': 500,
  32963. 'Uacute': 722,
  32964. 'uogonek': 556,
  32965. 'Edieresis': 667,
  32966. 'Dcroat': 722,
  32967. 'commaaccent': 250,
  32968. 'copyright': 747,
  32969. 'Emacron': 667,
  32970. 'ccaron': 444,
  32971. 'aring': 500,
  32972. 'Ncommaaccent': 722,
  32973. 'lacute': 278,
  32974. 'agrave': 500,
  32975. 'Tcommaaccent': 667,
  32976. 'Cacute': 722,
  32977. 'atilde': 500,
  32978. 'Edotaccent': 667,
  32979. 'scaron': 389,
  32980. 'scedilla': 389,
  32981. 'iacute': 278,
  32982. 'lozenge': 494,
  32983. 'Rcaron': 722,
  32984. 'Gcommaaccent': 778,
  32985. 'ucircumflex': 556,
  32986. 'acircumflex': 500,
  32987. 'Amacron': 722,
  32988. 'rcaron': 444,
  32989. 'ccedilla': 444,
  32990. 'Zdotaccent': 667,
  32991. 'Thorn': 611,
  32992. 'Omacron': 778,
  32993. 'Racute': 722,
  32994. 'Sacute': 556,
  32995. 'dcaron': 672,
  32996. 'Umacron': 722,
  32997. 'uring': 556,
  32998. 'threesuperior': 300,
  32999. 'Ograve': 778,
  33000. 'Agrave': 722,
  33001. 'Abreve': 722,
  33002. 'multiply': 570,
  33003. 'uacute': 556,
  33004. 'Tcaron': 667,
  33005. 'partialdiff': 494,
  33006. 'ydieresis': 500,
  33007. 'Nacute': 722,
  33008. 'icircumflex': 278,
  33009. 'Ecircumflex': 667,
  33010. 'adieresis': 500,
  33011. 'edieresis': 444,
  33012. 'cacute': 444,
  33013. 'nacute': 556,
  33014. 'umacron': 556,
  33015. 'Ncaron': 722,
  33016. 'Iacute': 389,
  33017. 'plusminus': 570,
  33018. 'brokenbar': 220,
  33019. 'registered': 747,
  33020. 'Gbreve': 778,
  33021. 'Idotaccent': 389,
  33022. 'summation': 600,
  33023. 'Egrave': 667,
  33024. 'racute': 444,
  33025. 'omacron': 500,
  33026. 'Zacute': 667,
  33027. 'Zcaron': 667,
  33028. 'greaterequal': 549,
  33029. 'Eth': 722,
  33030. 'Ccedilla': 722,
  33031. 'lcommaaccent': 278,
  33032. 'tcaron': 416,
  33033. 'eogonek': 444,
  33034. 'Uogonek': 722,
  33035. 'Aacute': 722,
  33036. 'Adieresis': 722,
  33037. 'egrave': 444,
  33038. 'zacute': 444,
  33039. 'iogonek': 278,
  33040. 'Oacute': 778,
  33041. 'oacute': 500,
  33042. 'amacron': 500,
  33043. 'sacute': 389,
  33044. 'idieresis': 278,
  33045. 'Ocircumflex': 778,
  33046. 'Ugrave': 722,
  33047. 'Delta': 612,
  33048. 'thorn': 556,
  33049. 'twosuperior': 300,
  33050. 'Odieresis': 778,
  33051. 'mu': 556,
  33052. 'igrave': 278,
  33053. 'ohungarumlaut': 500,
  33054. 'Eogonek': 667,
  33055. 'dcroat': 556,
  33056. 'threequarters': 750,
  33057. 'Scedilla': 556,
  33058. 'lcaron': 394,
  33059. 'Kcommaaccent': 778,
  33060. 'Lacute': 667,
  33061. 'trademark': 1000,
  33062. 'edotaccent': 444,
  33063. 'Igrave': 389,
  33064. 'Imacron': 389,
  33065. 'Lcaron': 667,
  33066. 'onehalf': 750,
  33067. 'lessequal': 549,
  33068. 'ocircumflex': 500,
  33069. 'ntilde': 556,
  33070. 'Uhungarumlaut': 722,
  33071. 'Eacute': 667,
  33072. 'emacron': 444,
  33073. 'gbreve': 500,
  33074. 'onequarter': 750,
  33075. 'Scaron': 556,
  33076. 'Scommaaccent': 556,
  33077. 'Ohungarumlaut': 778,
  33078. 'degree': 400,
  33079. 'ograve': 500,
  33080. 'Ccaron': 722,
  33081. 'ugrave': 556,
  33082. 'radical': 549,
  33083. 'Dcaron': 722,
  33084. 'rcommaaccent': 444,
  33085. 'Ntilde': 722,
  33086. 'otilde': 500,
  33087. 'Rcommaaccent': 722,
  33088. 'Lcommaaccent': 667,
  33089. 'Atilde': 722,
  33090. 'Aogonek': 722,
  33091. 'Aring': 722,
  33092. 'Otilde': 778,
  33093. 'zdotaccent': 444,
  33094. 'Ecaron': 667,
  33095. 'Iogonek': 389,
  33096. 'kcommaaccent': 556,
  33097. 'minus': 570,
  33098. 'Icircumflex': 389,
  33099. 'ncaron': 556,
  33100. 'tcommaaccent': 333,
  33101. 'logicalnot': 570,
  33102. 'odieresis': 500,
  33103. 'udieresis': 556,
  33104. 'notequal': 549,
  33105. 'gcommaaccent': 500,
  33106. 'eth': 500,
  33107. 'zcaron': 444,
  33108. 'ncommaaccent': 556,
  33109. 'onesuperior': 300,
  33110. 'imacron': 278,
  33111. 'Euro': 500
  33112. },
  33113. 'Times-BoldItalic': {
  33114. 'space': 250,
  33115. 'exclam': 389,
  33116. 'quotedbl': 555,
  33117. 'numbersign': 500,
  33118. 'dollar': 500,
  33119. 'percent': 833,
  33120. 'ampersand': 778,
  33121. 'quoteright': 333,
  33122. 'parenleft': 333,
  33123. 'parenright': 333,
  33124. 'asterisk': 500,
  33125. 'plus': 570,
  33126. 'comma': 250,
  33127. 'hyphen': 333,
  33128. 'period': 250,
  33129. 'slash': 278,
  33130. 'zero': 500,
  33131. 'one': 500,
  33132. 'two': 500,
  33133. 'three': 500,
  33134. 'four': 500,
  33135. 'five': 500,
  33136. 'six': 500,
  33137. 'seven': 500,
  33138. 'eight': 500,
  33139. 'nine': 500,
  33140. 'colon': 333,
  33141. 'semicolon': 333,
  33142. 'less': 570,
  33143. 'equal': 570,
  33144. 'greater': 570,
  33145. 'question': 500,
  33146. 'at': 832,
  33147. 'A': 667,
  33148. 'B': 667,
  33149. 'C': 667,
  33150. 'D': 722,
  33151. 'E': 667,
  33152. 'F': 667,
  33153. 'G': 722,
  33154. 'H': 778,
  33155. 'I': 389,
  33156. 'J': 500,
  33157. 'K': 667,
  33158. 'L': 611,
  33159. 'M': 889,
  33160. 'N': 722,
  33161. 'O': 722,
  33162. 'P': 611,
  33163. 'Q': 722,
  33164. 'R': 667,
  33165. 'S': 556,
  33166. 'T': 611,
  33167. 'U': 722,
  33168. 'V': 667,
  33169. 'W': 889,
  33170. 'X': 667,
  33171. 'Y': 611,
  33172. 'Z': 611,
  33173. 'bracketleft': 333,
  33174. 'backslash': 278,
  33175. 'bracketright': 333,
  33176. 'asciicircum': 570,
  33177. 'underscore': 500,
  33178. 'quoteleft': 333,
  33179. 'a': 500,
  33180. 'b': 500,
  33181. 'c': 444,
  33182. 'd': 500,
  33183. 'e': 444,
  33184. 'f': 333,
  33185. 'g': 500,
  33186. 'h': 556,
  33187. 'i': 278,
  33188. 'j': 278,
  33189. 'k': 500,
  33190. 'l': 278,
  33191. 'm': 778,
  33192. 'n': 556,
  33193. 'o': 500,
  33194. 'p': 500,
  33195. 'q': 500,
  33196. 'r': 389,
  33197. 's': 389,
  33198. 't': 278,
  33199. 'u': 556,
  33200. 'v': 444,
  33201. 'w': 667,
  33202. 'x': 500,
  33203. 'y': 444,
  33204. 'z': 389,
  33205. 'braceleft': 348,
  33206. 'bar': 220,
  33207. 'braceright': 348,
  33208. 'asciitilde': 570,
  33209. 'exclamdown': 389,
  33210. 'cent': 500,
  33211. 'sterling': 500,
  33212. 'fraction': 167,
  33213. 'yen': 500,
  33214. 'florin': 500,
  33215. 'section': 500,
  33216. 'currency': 500,
  33217. 'quotesingle': 278,
  33218. 'quotedblleft': 500,
  33219. 'guillemotleft': 500,
  33220. 'guilsinglleft': 333,
  33221. 'guilsinglright': 333,
  33222. 'fi': 556,
  33223. 'fl': 556,
  33224. 'endash': 500,
  33225. 'dagger': 500,
  33226. 'daggerdbl': 500,
  33227. 'periodcentered': 250,
  33228. 'paragraph': 500,
  33229. 'bullet': 350,
  33230. 'quotesinglbase': 333,
  33231. 'quotedblbase': 500,
  33232. 'quotedblright': 500,
  33233. 'guillemotright': 500,
  33234. 'ellipsis': 1000,
  33235. 'perthousand': 1000,
  33236. 'questiondown': 500,
  33237. 'grave': 333,
  33238. 'acute': 333,
  33239. 'circumflex': 333,
  33240. 'tilde': 333,
  33241. 'macron': 333,
  33242. 'breve': 333,
  33243. 'dotaccent': 333,
  33244. 'dieresis': 333,
  33245. 'ring': 333,
  33246. 'cedilla': 333,
  33247. 'hungarumlaut': 333,
  33248. 'ogonek': 333,
  33249. 'caron': 333,
  33250. 'emdash': 1000,
  33251. 'AE': 944,
  33252. 'ordfeminine': 266,
  33253. 'Lslash': 611,
  33254. 'Oslash': 722,
  33255. 'OE': 944,
  33256. 'ordmasculine': 300,
  33257. 'ae': 722,
  33258. 'dotlessi': 278,
  33259. 'lslash': 278,
  33260. 'oslash': 500,
  33261. 'oe': 722,
  33262. 'germandbls': 500,
  33263. 'Idieresis': 389,
  33264. 'eacute': 444,
  33265. 'abreve': 500,
  33266. 'uhungarumlaut': 556,
  33267. 'ecaron': 444,
  33268. 'Ydieresis': 611,
  33269. 'divide': 570,
  33270. 'Yacute': 611,
  33271. 'Acircumflex': 667,
  33272. 'aacute': 500,
  33273. 'Ucircumflex': 722,
  33274. 'yacute': 444,
  33275. 'scommaaccent': 389,
  33276. 'ecircumflex': 444,
  33277. 'Uring': 722,
  33278. 'Udieresis': 722,
  33279. 'aogonek': 500,
  33280. 'Uacute': 722,
  33281. 'uogonek': 556,
  33282. 'Edieresis': 667,
  33283. 'Dcroat': 722,
  33284. 'commaaccent': 250,
  33285. 'copyright': 747,
  33286. 'Emacron': 667,
  33287. 'ccaron': 444,
  33288. 'aring': 500,
  33289. 'Ncommaaccent': 722,
  33290. 'lacute': 278,
  33291. 'agrave': 500,
  33292. 'Tcommaaccent': 611,
  33293. 'Cacute': 667,
  33294. 'atilde': 500,
  33295. 'Edotaccent': 667,
  33296. 'scaron': 389,
  33297. 'scedilla': 389,
  33298. 'iacute': 278,
  33299. 'lozenge': 494,
  33300. 'Rcaron': 667,
  33301. 'Gcommaaccent': 722,
  33302. 'ucircumflex': 556,
  33303. 'acircumflex': 500,
  33304. 'Amacron': 667,
  33305. 'rcaron': 389,
  33306. 'ccedilla': 444,
  33307. 'Zdotaccent': 611,
  33308. 'Thorn': 611,
  33309. 'Omacron': 722,
  33310. 'Racute': 667,
  33311. 'Sacute': 556,
  33312. 'dcaron': 608,
  33313. 'Umacron': 722,
  33314. 'uring': 556,
  33315. 'threesuperior': 300,
  33316. 'Ograve': 722,
  33317. 'Agrave': 667,
  33318. 'Abreve': 667,
  33319. 'multiply': 570,
  33320. 'uacute': 556,
  33321. 'Tcaron': 611,
  33322. 'partialdiff': 494,
  33323. 'ydieresis': 444,
  33324. 'Nacute': 722,
  33325. 'icircumflex': 278,
  33326. 'Ecircumflex': 667,
  33327. 'adieresis': 500,
  33328. 'edieresis': 444,
  33329. 'cacute': 444,
  33330. 'nacute': 556,
  33331. 'umacron': 556,
  33332. 'Ncaron': 722,
  33333. 'Iacute': 389,
  33334. 'plusminus': 570,
  33335. 'brokenbar': 220,
  33336. 'registered': 747,
  33337. 'Gbreve': 722,
  33338. 'Idotaccent': 389,
  33339. 'summation': 600,
  33340. 'Egrave': 667,
  33341. 'racute': 389,
  33342. 'omacron': 500,
  33343. 'Zacute': 611,
  33344. 'Zcaron': 611,
  33345. 'greaterequal': 549,
  33346. 'Eth': 722,
  33347. 'Ccedilla': 667,
  33348. 'lcommaaccent': 278,
  33349. 'tcaron': 366,
  33350. 'eogonek': 444,
  33351. 'Uogonek': 722,
  33352. 'Aacute': 667,
  33353. 'Adieresis': 667,
  33354. 'egrave': 444,
  33355. 'zacute': 389,
  33356. 'iogonek': 278,
  33357. 'Oacute': 722,
  33358. 'oacute': 500,
  33359. 'amacron': 500,
  33360. 'sacute': 389,
  33361. 'idieresis': 278,
  33362. 'Ocircumflex': 722,
  33363. 'Ugrave': 722,
  33364. 'Delta': 612,
  33365. 'thorn': 500,
  33366. 'twosuperior': 300,
  33367. 'Odieresis': 722,
  33368. 'mu': 576,
  33369. 'igrave': 278,
  33370. 'ohungarumlaut': 500,
  33371. 'Eogonek': 667,
  33372. 'dcroat': 500,
  33373. 'threequarters': 750,
  33374. 'Scedilla': 556,
  33375. 'lcaron': 382,
  33376. 'Kcommaaccent': 667,
  33377. 'Lacute': 611,
  33378. 'trademark': 1000,
  33379. 'edotaccent': 444,
  33380. 'Igrave': 389,
  33381. 'Imacron': 389,
  33382. 'Lcaron': 611,
  33383. 'onehalf': 750,
  33384. 'lessequal': 549,
  33385. 'ocircumflex': 500,
  33386. 'ntilde': 556,
  33387. 'Uhungarumlaut': 722,
  33388. 'Eacute': 667,
  33389. 'emacron': 444,
  33390. 'gbreve': 500,
  33391. 'onequarter': 750,
  33392. 'Scaron': 556,
  33393. 'Scommaaccent': 556,
  33394. 'Ohungarumlaut': 722,
  33395. 'degree': 400,
  33396. 'ograve': 500,
  33397. 'Ccaron': 667,
  33398. 'ugrave': 556,
  33399. 'radical': 549,
  33400. 'Dcaron': 722,
  33401. 'rcommaaccent': 389,
  33402. 'Ntilde': 722,
  33403. 'otilde': 500,
  33404. 'Rcommaaccent': 667,
  33405. 'Lcommaaccent': 611,
  33406. 'Atilde': 667,
  33407. 'Aogonek': 667,
  33408. 'Aring': 667,
  33409. 'Otilde': 722,
  33410. 'zdotaccent': 389,
  33411. 'Ecaron': 667,
  33412. 'Iogonek': 389,
  33413. 'kcommaaccent': 500,
  33414. 'minus': 606,
  33415. 'Icircumflex': 389,
  33416. 'ncaron': 556,
  33417. 'tcommaaccent': 278,
  33418. 'logicalnot': 606,
  33419. 'odieresis': 500,
  33420. 'udieresis': 556,
  33421. 'notequal': 549,
  33422. 'gcommaaccent': 500,
  33423. 'eth': 500,
  33424. 'zcaron': 389,
  33425. 'ncommaaccent': 556,
  33426. 'onesuperior': 300,
  33427. 'imacron': 278,
  33428. 'Euro': 500
  33429. },
  33430. 'Times-Italic': {
  33431. 'space': 250,
  33432. 'exclam': 333,
  33433. 'quotedbl': 420,
  33434. 'numbersign': 500,
  33435. 'dollar': 500,
  33436. 'percent': 833,
  33437. 'ampersand': 778,
  33438. 'quoteright': 333,
  33439. 'parenleft': 333,
  33440. 'parenright': 333,
  33441. 'asterisk': 500,
  33442. 'plus': 675,
  33443. 'comma': 250,
  33444. 'hyphen': 333,
  33445. 'period': 250,
  33446. 'slash': 278,
  33447. 'zero': 500,
  33448. 'one': 500,
  33449. 'two': 500,
  33450. 'three': 500,
  33451. 'four': 500,
  33452. 'five': 500,
  33453. 'six': 500,
  33454. 'seven': 500,
  33455. 'eight': 500,
  33456. 'nine': 500,
  33457. 'colon': 333,
  33458. 'semicolon': 333,
  33459. 'less': 675,
  33460. 'equal': 675,
  33461. 'greater': 675,
  33462. 'question': 500,
  33463. 'at': 920,
  33464. 'A': 611,
  33465. 'B': 611,
  33466. 'C': 667,
  33467. 'D': 722,
  33468. 'E': 611,
  33469. 'F': 611,
  33470. 'G': 722,
  33471. 'H': 722,
  33472. 'I': 333,
  33473. 'J': 444,
  33474. 'K': 667,
  33475. 'L': 556,
  33476. 'M': 833,
  33477. 'N': 667,
  33478. 'O': 722,
  33479. 'P': 611,
  33480. 'Q': 722,
  33481. 'R': 611,
  33482. 'S': 500,
  33483. 'T': 556,
  33484. 'U': 722,
  33485. 'V': 611,
  33486. 'W': 833,
  33487. 'X': 611,
  33488. 'Y': 556,
  33489. 'Z': 556,
  33490. 'bracketleft': 389,
  33491. 'backslash': 278,
  33492. 'bracketright': 389,
  33493. 'asciicircum': 422,
  33494. 'underscore': 500,
  33495. 'quoteleft': 333,
  33496. 'a': 500,
  33497. 'b': 500,
  33498. 'c': 444,
  33499. 'd': 500,
  33500. 'e': 444,
  33501. 'f': 278,
  33502. 'g': 500,
  33503. 'h': 500,
  33504. 'i': 278,
  33505. 'j': 278,
  33506. 'k': 444,
  33507. 'l': 278,
  33508. 'm': 722,
  33509. 'n': 500,
  33510. 'o': 500,
  33511. 'p': 500,
  33512. 'q': 500,
  33513. 'r': 389,
  33514. 's': 389,
  33515. 't': 278,
  33516. 'u': 500,
  33517. 'v': 444,
  33518. 'w': 667,
  33519. 'x': 444,
  33520. 'y': 444,
  33521. 'z': 389,
  33522. 'braceleft': 400,
  33523. 'bar': 275,
  33524. 'braceright': 400,
  33525. 'asciitilde': 541,
  33526. 'exclamdown': 389,
  33527. 'cent': 500,
  33528. 'sterling': 500,
  33529. 'fraction': 167,
  33530. 'yen': 500,
  33531. 'florin': 500,
  33532. 'section': 500,
  33533. 'currency': 500,
  33534. 'quotesingle': 214,
  33535. 'quotedblleft': 556,
  33536. 'guillemotleft': 500,
  33537. 'guilsinglleft': 333,
  33538. 'guilsinglright': 333,
  33539. 'fi': 500,
  33540. 'fl': 500,
  33541. 'endash': 500,
  33542. 'dagger': 500,
  33543. 'daggerdbl': 500,
  33544. 'periodcentered': 250,
  33545. 'paragraph': 523,
  33546. 'bullet': 350,
  33547. 'quotesinglbase': 333,
  33548. 'quotedblbase': 556,
  33549. 'quotedblright': 556,
  33550. 'guillemotright': 500,
  33551. 'ellipsis': 889,
  33552. 'perthousand': 1000,
  33553. 'questiondown': 500,
  33554. 'grave': 333,
  33555. 'acute': 333,
  33556. 'circumflex': 333,
  33557. 'tilde': 333,
  33558. 'macron': 333,
  33559. 'breve': 333,
  33560. 'dotaccent': 333,
  33561. 'dieresis': 333,
  33562. 'ring': 333,
  33563. 'cedilla': 333,
  33564. 'hungarumlaut': 333,
  33565. 'ogonek': 333,
  33566. 'caron': 333,
  33567. 'emdash': 889,
  33568. 'AE': 889,
  33569. 'ordfeminine': 276,
  33570. 'Lslash': 556,
  33571. 'Oslash': 722,
  33572. 'OE': 944,
  33573. 'ordmasculine': 310,
  33574. 'ae': 667,
  33575. 'dotlessi': 278,
  33576. 'lslash': 278,
  33577. 'oslash': 500,
  33578. 'oe': 667,
  33579. 'germandbls': 500,
  33580. 'Idieresis': 333,
  33581. 'eacute': 444,
  33582. 'abreve': 500,
  33583. 'uhungarumlaut': 500,
  33584. 'ecaron': 444,
  33585. 'Ydieresis': 556,
  33586. 'divide': 675,
  33587. 'Yacute': 556,
  33588. 'Acircumflex': 611,
  33589. 'aacute': 500,
  33590. 'Ucircumflex': 722,
  33591. 'yacute': 444,
  33592. 'scommaaccent': 389,
  33593. 'ecircumflex': 444,
  33594. 'Uring': 722,
  33595. 'Udieresis': 722,
  33596. 'aogonek': 500,
  33597. 'Uacute': 722,
  33598. 'uogonek': 500,
  33599. 'Edieresis': 611,
  33600. 'Dcroat': 722,
  33601. 'commaaccent': 250,
  33602. 'copyright': 760,
  33603. 'Emacron': 611,
  33604. 'ccaron': 444,
  33605. 'aring': 500,
  33606. 'Ncommaaccent': 667,
  33607. 'lacute': 278,
  33608. 'agrave': 500,
  33609. 'Tcommaaccent': 556,
  33610. 'Cacute': 667,
  33611. 'atilde': 500,
  33612. 'Edotaccent': 611,
  33613. 'scaron': 389,
  33614. 'scedilla': 389,
  33615. 'iacute': 278,
  33616. 'lozenge': 471,
  33617. 'Rcaron': 611,
  33618. 'Gcommaaccent': 722,
  33619. 'ucircumflex': 500,
  33620. 'acircumflex': 500,
  33621. 'Amacron': 611,
  33622. 'rcaron': 389,
  33623. 'ccedilla': 444,
  33624. 'Zdotaccent': 556,
  33625. 'Thorn': 611,
  33626. 'Omacron': 722,
  33627. 'Racute': 611,
  33628. 'Sacute': 500,
  33629. 'dcaron': 544,
  33630. 'Umacron': 722,
  33631. 'uring': 500,
  33632. 'threesuperior': 300,
  33633. 'Ograve': 722,
  33634. 'Agrave': 611,
  33635. 'Abreve': 611,
  33636. 'multiply': 675,
  33637. 'uacute': 500,
  33638. 'Tcaron': 556,
  33639. 'partialdiff': 476,
  33640. 'ydieresis': 444,
  33641. 'Nacute': 667,
  33642. 'icircumflex': 278,
  33643. 'Ecircumflex': 611,
  33644. 'adieresis': 500,
  33645. 'edieresis': 444,
  33646. 'cacute': 444,
  33647. 'nacute': 500,
  33648. 'umacron': 500,
  33649. 'Ncaron': 667,
  33650. 'Iacute': 333,
  33651. 'plusminus': 675,
  33652. 'brokenbar': 275,
  33653. 'registered': 760,
  33654. 'Gbreve': 722,
  33655. 'Idotaccent': 333,
  33656. 'summation': 600,
  33657. 'Egrave': 611,
  33658. 'racute': 389,
  33659. 'omacron': 500,
  33660. 'Zacute': 556,
  33661. 'Zcaron': 556,
  33662. 'greaterequal': 549,
  33663. 'Eth': 722,
  33664. 'Ccedilla': 667,
  33665. 'lcommaaccent': 278,
  33666. 'tcaron': 300,
  33667. 'eogonek': 444,
  33668. 'Uogonek': 722,
  33669. 'Aacute': 611,
  33670. 'Adieresis': 611,
  33671. 'egrave': 444,
  33672. 'zacute': 389,
  33673. 'iogonek': 278,
  33674. 'Oacute': 722,
  33675. 'oacute': 500,
  33676. 'amacron': 500,
  33677. 'sacute': 389,
  33678. 'idieresis': 278,
  33679. 'Ocircumflex': 722,
  33680. 'Ugrave': 722,
  33681. 'Delta': 612,
  33682. 'thorn': 500,
  33683. 'twosuperior': 300,
  33684. 'Odieresis': 722,
  33685. 'mu': 500,
  33686. 'igrave': 278,
  33687. 'ohungarumlaut': 500,
  33688. 'Eogonek': 611,
  33689. 'dcroat': 500,
  33690. 'threequarters': 750,
  33691. 'Scedilla': 500,
  33692. 'lcaron': 300,
  33693. 'Kcommaaccent': 667,
  33694. 'Lacute': 556,
  33695. 'trademark': 980,
  33696. 'edotaccent': 444,
  33697. 'Igrave': 333,
  33698. 'Imacron': 333,
  33699. 'Lcaron': 611,
  33700. 'onehalf': 750,
  33701. 'lessequal': 549,
  33702. 'ocircumflex': 500,
  33703. 'ntilde': 500,
  33704. 'Uhungarumlaut': 722,
  33705. 'Eacute': 611,
  33706. 'emacron': 444,
  33707. 'gbreve': 500,
  33708. 'onequarter': 750,
  33709. 'Scaron': 500,
  33710. 'Scommaaccent': 500,
  33711. 'Ohungarumlaut': 722,
  33712. 'degree': 400,
  33713. 'ograve': 500,
  33714. 'Ccaron': 667,
  33715. 'ugrave': 500,
  33716. 'radical': 453,
  33717. 'Dcaron': 722,
  33718. 'rcommaaccent': 389,
  33719. 'Ntilde': 667,
  33720. 'otilde': 500,
  33721. 'Rcommaaccent': 611,
  33722. 'Lcommaaccent': 556,
  33723. 'Atilde': 611,
  33724. 'Aogonek': 611,
  33725. 'Aring': 611,
  33726. 'Otilde': 722,
  33727. 'zdotaccent': 389,
  33728. 'Ecaron': 611,
  33729. 'Iogonek': 333,
  33730. 'kcommaaccent': 444,
  33731. 'minus': 675,
  33732. 'Icircumflex': 333,
  33733. 'ncaron': 500,
  33734. 'tcommaaccent': 278,
  33735. 'logicalnot': 675,
  33736. 'odieresis': 500,
  33737. 'udieresis': 500,
  33738. 'notequal': 549,
  33739. 'gcommaaccent': 500,
  33740. 'eth': 500,
  33741. 'zcaron': 389,
  33742. 'ncommaaccent': 500,
  33743. 'onesuperior': 300,
  33744. 'imacron': 278,
  33745. 'Euro': 500
  33746. },
  33747. 'ZapfDingbats': {
  33748. 'space': 278,
  33749. 'a1': 974,
  33750. 'a2': 961,
  33751. 'a202': 974,
  33752. 'a3': 980,
  33753. 'a4': 719,
  33754. 'a5': 789,
  33755. 'a119': 790,
  33756. 'a118': 791,
  33757. 'a117': 690,
  33758. 'a11': 960,
  33759. 'a12': 939,
  33760. 'a13': 549,
  33761. 'a14': 855,
  33762. 'a15': 911,
  33763. 'a16': 933,
  33764. 'a105': 911,
  33765. 'a17': 945,
  33766. 'a18': 974,
  33767. 'a19': 755,
  33768. 'a20': 846,
  33769. 'a21': 762,
  33770. 'a22': 761,
  33771. 'a23': 571,
  33772. 'a24': 677,
  33773. 'a25': 763,
  33774. 'a26': 760,
  33775. 'a27': 759,
  33776. 'a28': 754,
  33777. 'a6': 494,
  33778. 'a7': 552,
  33779. 'a8': 537,
  33780. 'a9': 577,
  33781. 'a10': 692,
  33782. 'a29': 786,
  33783. 'a30': 788,
  33784. 'a31': 788,
  33785. 'a32': 790,
  33786. 'a33': 793,
  33787. 'a34': 794,
  33788. 'a35': 816,
  33789. 'a36': 823,
  33790. 'a37': 789,
  33791. 'a38': 841,
  33792. 'a39': 823,
  33793. 'a40': 833,
  33794. 'a41': 816,
  33795. 'a42': 831,
  33796. 'a43': 923,
  33797. 'a44': 744,
  33798. 'a45': 723,
  33799. 'a46': 749,
  33800. 'a47': 790,
  33801. 'a48': 792,
  33802. 'a49': 695,
  33803. 'a50': 776,
  33804. 'a51': 768,
  33805. 'a52': 792,
  33806. 'a53': 759,
  33807. 'a54': 707,
  33808. 'a55': 708,
  33809. 'a56': 682,
  33810. 'a57': 701,
  33811. 'a58': 826,
  33812. 'a59': 815,
  33813. 'a60': 789,
  33814. 'a61': 789,
  33815. 'a62': 707,
  33816. 'a63': 687,
  33817. 'a64': 696,
  33818. 'a65': 689,
  33819. 'a66': 786,
  33820. 'a67': 787,
  33821. 'a68': 713,
  33822. 'a69': 791,
  33823. 'a70': 785,
  33824. 'a71': 791,
  33825. 'a72': 873,
  33826. 'a73': 761,
  33827. 'a74': 762,
  33828. 'a203': 762,
  33829. 'a75': 759,
  33830. 'a204': 759,
  33831. 'a76': 892,
  33832. 'a77': 892,
  33833. 'a78': 788,
  33834. 'a79': 784,
  33835. 'a81': 438,
  33836. 'a82': 138,
  33837. 'a83': 277,
  33838. 'a84': 415,
  33839. 'a97': 392,
  33840. 'a98': 392,
  33841. 'a99': 668,
  33842. 'a100': 668,
  33843. 'a89': 390,
  33844. 'a90': 390,
  33845. 'a93': 317,
  33846. 'a94': 317,
  33847. 'a91': 276,
  33848. 'a92': 276,
  33849. 'a205': 509,
  33850. 'a85': 509,
  33851. 'a206': 410,
  33852. 'a86': 410,
  33853. 'a87': 234,
  33854. 'a88': 234,
  33855. 'a95': 334,
  33856. 'a96': 334,
  33857. 'a101': 732,
  33858. 'a102': 544,
  33859. 'a103': 544,
  33860. 'a104': 910,
  33861. 'a106': 667,
  33862. 'a107': 760,
  33863. 'a108': 760,
  33864. 'a112': 776,
  33865. 'a111': 595,
  33866. 'a110': 694,
  33867. 'a109': 626,
  33868. 'a120': 788,
  33869. 'a121': 788,
  33870. 'a122': 788,
  33871. 'a123': 788,
  33872. 'a124': 788,
  33873. 'a125': 788,
  33874. 'a126': 788,
  33875. 'a127': 788,
  33876. 'a128': 788,
  33877. 'a129': 788,
  33878. 'a130': 788,
  33879. 'a131': 788,
  33880. 'a132': 788,
  33881. 'a133': 788,
  33882. 'a134': 788,
  33883. 'a135': 788,
  33884. 'a136': 788,
  33885. 'a137': 788,
  33886. 'a138': 788,
  33887. 'a139': 788,
  33888. 'a140': 788,
  33889. 'a141': 788,
  33890. 'a142': 788,
  33891. 'a143': 788,
  33892. 'a144': 788,
  33893. 'a145': 788,
  33894. 'a146': 788,
  33895. 'a147': 788,
  33896. 'a148': 788,
  33897. 'a149': 788,
  33898. 'a150': 788,
  33899. 'a151': 788,
  33900. 'a152': 788,
  33901. 'a153': 788,
  33902. 'a154': 788,
  33903. 'a155': 788,
  33904. 'a156': 788,
  33905. 'a157': 788,
  33906. 'a158': 788,
  33907. 'a159': 788,
  33908. 'a160': 894,
  33909. 'a161': 838,
  33910. 'a163': 1016,
  33911. 'a164': 458,
  33912. 'a196': 748,
  33913. 'a165': 924,
  33914. 'a192': 748,
  33915. 'a166': 918,
  33916. 'a167': 927,
  33917. 'a168': 928,
  33918. 'a169': 928,
  33919. 'a170': 834,
  33920. 'a171': 873,
  33921. 'a172': 828,
  33922. 'a173': 924,
  33923. 'a162': 924,
  33924. 'a174': 917,
  33925. 'a175': 930,
  33926. 'a176': 931,
  33927. 'a177': 463,
  33928. 'a178': 883,
  33929. 'a179': 836,
  33930. 'a193': 836,
  33931. 'a180': 867,
  33932. 'a199': 867,
  33933. 'a181': 696,
  33934. 'a200': 696,
  33935. 'a182': 874,
  33936. 'a201': 874,
  33937. 'a183': 760,
  33938. 'a184': 946,
  33939. 'a197': 771,
  33940. 'a185': 865,
  33941. 'a194': 771,
  33942. 'a198': 888,
  33943. 'a186': 967,
  33944. 'a195': 888,
  33945. 'a187': 831,
  33946. 'a188': 873,
  33947. 'a189': 927,
  33948. 'a190': 970,
  33949. 'a191': 918
  33950. }
  33951. };
  33952. var EOF = {};
  33953. function isEOF(v) {
  33954. return (v === EOF);
  33955. }
  33956. var Parser = (function ParserClosure() {
  33957. function Parser(lexer, allowStreams, xref) {
  33958. this.lexer = lexer;
  33959. this.allowStreams = allowStreams;
  33960. this.xref = xref;
  33961. this.imageCache = {
  33962. length: 0,
  33963. adler32: 0,
  33964. stream: null
  33965. };
  33966. this.refill();
  33967. }
  33968. Parser.prototype = {
  33969. refill: function Parser_refill() {
  33970. this.buf1 = this.lexer.getObj();
  33971. this.buf2 = this.lexer.getObj();
  33972. },
  33973. shift: function Parser_shift() {
  33974. if (isCmd(this.buf2, 'ID')) {
  33975. this.buf1 = this.buf2;
  33976. this.buf2 = null;
  33977. } else {
  33978. this.buf1 = this.buf2;
  33979. this.buf2 = this.lexer.getObj();
  33980. }
  33981. },
  33982. getObj: function Parser_getObj(cipherTransform) {
  33983. var buf1 = this.buf1;
  33984. this.shift();
  33985. if (buf1 instanceof Cmd) {
  33986. switch (buf1.cmd) {
  33987. case 'BI': // inline image
  33988. return this.makeInlineImage(cipherTransform);
  33989. case '[': // array
  33990. var array = [];
  33991. while (!isCmd(this.buf1, ']') && !isEOF(this.buf1)) {
  33992. array.push(this.getObj(cipherTransform));
  33993. }
  33994. if (isEOF(this.buf1)) {
  33995. error('End of file inside array');
  33996. }
  33997. this.shift();
  33998. return array;
  33999. case '<<': // dictionary or stream
  34000. var dict = new Dict(this.xref);
  34001. while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) {
  34002. if (!isName(this.buf1)) {
  34003. info('Malformed dictionary: key must be a name object');
  34004. this.shift();
  34005. continue;
  34006. }
  34007. var key = this.buf1.name;
  34008. this.shift();
  34009. if (isEOF(this.buf1)) {
  34010. break;
  34011. }
  34012. dict.set(key, this.getObj(cipherTransform));
  34013. }
  34014. if (isEOF(this.buf1)) {
  34015. error('End of file inside dictionary');
  34016. }
  34017. // Stream objects are not allowed inside content streams or
  34018. // object streams.
  34019. if (isCmd(this.buf2, 'stream')) {
  34020. return (this.allowStreams ?
  34021. this.makeStream(dict, cipherTransform) : dict);
  34022. }
  34023. this.shift();
  34024. return dict;
  34025. default: // simple object
  34026. return buf1;
  34027. }
  34028. }
  34029. if (isInt(buf1)) { // indirect reference or integer
  34030. var num = buf1;
  34031. if (isInt(this.buf1) && isCmd(this.buf2, 'R')) {
  34032. var ref = new Ref(num, this.buf1);
  34033. this.shift();
  34034. this.shift();
  34035. return ref;
  34036. }
  34037. return num;
  34038. }
  34039. if (isString(buf1)) { // string
  34040. var str = buf1;
  34041. if (cipherTransform) {
  34042. str = cipherTransform.decryptString(str);
  34043. }
  34044. return str;
  34045. }
  34046. // simple object
  34047. return buf1;
  34048. },
  34049. makeInlineImage: function Parser_makeInlineImage(cipherTransform) {
  34050. var lexer = this.lexer;
  34051. var stream = lexer.stream;
  34052. // parse dictionary
  34053. var dict = new Dict(null);
  34054. while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
  34055. if (!isName(this.buf1)) {
  34056. error('Dictionary key must be a name object');
  34057. }
  34058. var key = this.buf1.name;
  34059. this.shift();
  34060. if (isEOF(this.buf1)) {
  34061. break;
  34062. }
  34063. dict.set(key, this.getObj(cipherTransform));
  34064. }
  34065. // parse image stream
  34066. var startPos = stream.pos;
  34067. // searching for the /EI\s/
  34068. var state = 0, ch, i, ii;
  34069. while (state != 4 && (ch = stream.getByte()) !== -1) {
  34070. switch (ch | 0) {
  34071. case 0x20:
  34072. case 0x0D:
  34073. case 0x0A:
  34074. // let's check next five bytes to be ASCII... just be sure
  34075. var followingBytes = stream.peekBytes(5);
  34076. for (i = 0, ii = followingBytes.length; i < ii; i++) {
  34077. ch = followingBytes[i];
  34078. if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) {
  34079. // not a LF, CR, SPACE or any visible ASCII character
  34080. state = 0;
  34081. break; // some binary stuff found, resetting the state
  34082. }
  34083. }
  34084. state = (state === 3 ? 4 : 0);
  34085. break;
  34086. case 0x45:
  34087. state = 2;
  34088. break;
  34089. case 0x49:
  34090. state = (state === 2 ? 3 : 0);
  34091. break;
  34092. default:
  34093. state = 0;
  34094. break;
  34095. }
  34096. }
  34097. var length = (stream.pos - 4) - startPos;
  34098. var imageStream = stream.makeSubStream(startPos, length, dict);
  34099. // trying to cache repeat images, first we are trying to "warm up" caching
  34100. // using length, then comparing adler32
  34101. var MAX_LENGTH_TO_CACHE = 1000;
  34102. var cacheImage = false, adler32;
  34103. if (length < MAX_LENGTH_TO_CACHE && this.imageCache.length === length) {
  34104. var imageBytes = imageStream.getBytes();
  34105. imageStream.reset();
  34106. var a = 1;
  34107. var b = 0;
  34108. for (i = 0, ii = imageBytes.length; i < ii; ++i) {
  34109. a = (a + (imageBytes[i] & 0xff)) % 65521;
  34110. b = (b + a) % 65521;
  34111. }
  34112. adler32 = (b << 16) | a;
  34113. if (this.imageCache.stream && this.imageCache.adler32 === adler32) {
  34114. this.buf2 = Cmd.get('EI');
  34115. this.shift();
  34116. this.imageCache.stream.reset();
  34117. return this.imageCache.stream;
  34118. }
  34119. cacheImage = true;
  34120. }
  34121. if (!cacheImage && !this.imageCache.stream) {
  34122. this.imageCache.length = length;
  34123. this.imageCache.stream = null;
  34124. }
  34125. if (cipherTransform) {
  34126. imageStream = cipherTransform.createStream(imageStream, length);
  34127. }
  34128. imageStream = this.filter(imageStream, dict, length);
  34129. imageStream.dict = dict;
  34130. if (cacheImage) {
  34131. imageStream.cacheKey = 'inline_' + length + '_' + adler32;
  34132. this.imageCache.adler32 = adler32;
  34133. this.imageCache.stream = imageStream;
  34134. }
  34135. this.buf2 = Cmd.get('EI');
  34136. this.shift();
  34137. return imageStream;
  34138. },
  34139. fetchIfRef: function Parser_fetchIfRef(obj) {
  34140. // not relying on the xref.fetchIfRef -- xref might not be set
  34141. return (isRef(obj) ? this.xref.fetch(obj) : obj);
  34142. },
  34143. makeStream: function Parser_makeStream(dict, cipherTransform) {
  34144. var lexer = this.lexer;
  34145. var stream = lexer.stream;
  34146. // get stream start position
  34147. lexer.skipToNextLine();
  34148. var pos = stream.pos - 1;
  34149. // get length
  34150. var length = this.fetchIfRef(dict.get('Length'));
  34151. if (!isInt(length)) {
  34152. info('Bad ' + length + ' attribute in stream');
  34153. length = 0;
  34154. }
  34155. // skip over the stream data
  34156. stream.pos = pos + length;
  34157. lexer.nextChar();
  34158. this.shift(); // '>>'
  34159. this.shift(); // 'stream'
  34160. if (!isCmd(this.buf1, 'endstream')) {
  34161. // bad stream length, scanning for endstream
  34162. stream.pos = pos;
  34163. var SCAN_BLOCK_SIZE = 2048;
  34164. var ENDSTREAM_SIGNATURE_LENGTH = 9;
  34165. var ENDSTREAM_SIGNATURE = [0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65,
  34166. 0x61, 0x6D];
  34167. var skipped = 0, found = false, i, j;
  34168. while (stream.pos < stream.end) {
  34169. var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
  34170. var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
  34171. if (scanLength <= 0) {
  34172. break;
  34173. }
  34174. found = false;
  34175. for (i = 0, j = 0; i < scanLength; i++) {
  34176. var b = scanBytes[i];
  34177. if (b !== ENDSTREAM_SIGNATURE[j]) {
  34178. i -= j;
  34179. j = 0;
  34180. } else {
  34181. j++;
  34182. if (j >= ENDSTREAM_SIGNATURE_LENGTH) {
  34183. i++;
  34184. found = true;
  34185. break;
  34186. }
  34187. }
  34188. }
  34189. if (found) {
  34190. skipped += i - ENDSTREAM_SIGNATURE_LENGTH;
  34191. stream.pos += i - ENDSTREAM_SIGNATURE_LENGTH;
  34192. break;
  34193. }
  34194. skipped += scanLength;
  34195. stream.pos += scanLength;
  34196. }
  34197. if (!found) {
  34198. error('Missing endstream');
  34199. }
  34200. length = skipped;
  34201. lexer.nextChar();
  34202. this.shift();
  34203. this.shift();
  34204. }
  34205. this.shift(); // 'endstream'
  34206. stream = stream.makeSubStream(pos, length, dict);
  34207. if (cipherTransform) {
  34208. stream = cipherTransform.createStream(stream, length);
  34209. }
  34210. stream = this.filter(stream, dict, length);
  34211. stream.dict = dict;
  34212. return stream;
  34213. },
  34214. filter: function Parser_filter(stream, dict, length) {
  34215. var filter = this.fetchIfRef(dict.get('Filter', 'F'));
  34216. var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));
  34217. if (isName(filter)) {
  34218. return this.makeFilter(stream, filter.name, length, params);
  34219. }
  34220. var maybeLength = length;
  34221. if (isArray(filter)) {
  34222. var filterArray = filter;
  34223. var paramsArray = params;
  34224. for (var i = 0, ii = filterArray.length; i < ii; ++i) {
  34225. filter = filterArray[i];
  34226. if (!isName(filter)) {
  34227. error('Bad filter name: ' + filter);
  34228. }
  34229. params = null;
  34230. if (isArray(paramsArray) && (i in paramsArray)) {
  34231. params = paramsArray[i];
  34232. }
  34233. stream = this.makeFilter(stream, filter.name, maybeLength, params);
  34234. // after the first stream the length variable is invalid
  34235. maybeLength = null;
  34236. }
  34237. }
  34238. return stream;
  34239. },
  34240. makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
  34241. if (stream.dict.get('Length') === 0) {
  34242. return new NullStream(stream);
  34243. }
  34244. var xrefStreamStats = this.xref.stats.streamTypes;
  34245. if (name == 'FlateDecode' || name == 'Fl') {
  34246. xrefStreamStats[StreamType.FLATE] = true;
  34247. if (params) {
  34248. return new PredictorStream(new FlateStream(stream, maybeLength),
  34249. maybeLength, params);
  34250. }
  34251. return new FlateStream(stream, maybeLength);
  34252. }
  34253. if (name == 'LZWDecode' || name == 'LZW') {
  34254. xrefStreamStats[StreamType.LZW] = true;
  34255. var earlyChange = 1;
  34256. if (params) {
  34257. if (params.has('EarlyChange')) {
  34258. earlyChange = params.get('EarlyChange');
  34259. }
  34260. return new PredictorStream(
  34261. new LZWStream(stream, maybeLength, earlyChange),
  34262. maybeLength, params);
  34263. }
  34264. return new LZWStream(stream, maybeLength, earlyChange);
  34265. }
  34266. if (name == 'DCTDecode' || name == 'DCT') {
  34267. xrefStreamStats[StreamType.DCT] = true;
  34268. return new JpegStream(stream, maybeLength, stream.dict, this.xref);
  34269. }
  34270. if (name == 'JPXDecode' || name == 'JPX') {
  34271. xrefStreamStats[StreamType.JPX] = true;
  34272. return new JpxStream(stream, maybeLength, stream.dict);
  34273. }
  34274. if (name == 'ASCII85Decode' || name == 'A85') {
  34275. xrefStreamStats[StreamType.A85] = true;
  34276. return new Ascii85Stream(stream, maybeLength);
  34277. }
  34278. if (name == 'ASCIIHexDecode' || name == 'AHx') {
  34279. xrefStreamStats[StreamType.AHX] = true;
  34280. return new AsciiHexStream(stream, maybeLength);
  34281. }
  34282. if (name == 'CCITTFaxDecode' || name == 'CCF') {
  34283. xrefStreamStats[StreamType.CCF] = true;
  34284. return new CCITTFaxStream(stream, maybeLength, params);
  34285. }
  34286. if (name == 'RunLengthDecode' || name == 'RL') {
  34287. xrefStreamStats[StreamType.RL] = true;
  34288. return new RunLengthStream(stream, maybeLength);
  34289. }
  34290. if (name == 'JBIG2Decode') {
  34291. xrefStreamStats[StreamType.JBIG] = true;
  34292. return new Jbig2Stream(stream, maybeLength, stream.dict);
  34293. }
  34294. warn('filter "' + name + '" not supported yet');
  34295. return stream;
  34296. }
  34297. };
  34298. return Parser;
  34299. })();
  34300. var Lexer = (function LexerClosure() {
  34301. function Lexer(stream, knownCommands) {
  34302. this.stream = stream;
  34303. this.nextChar();
  34304. // While lexing, we build up many strings one char at a time. Using += for
  34305. // this can result in lots of garbage strings. It's better to build an
  34306. // array of single-char strings and then join() them together at the end.
  34307. // And reusing a single array (i.e. |this.strBuf|) over and over for this
  34308. // purpose uses less memory than using a new array for each string.
  34309. this.strBuf = [];
  34310. // The PDFs might have "glued" commands with other commands, operands or
  34311. // literals, e.g. "q1". The knownCommands is a dictionary of the valid
  34312. // commands and their prefixes. The prefixes are built the following way:
  34313. // if there a command that is a prefix of the other valid command or
  34314. // literal (e.g. 'f' and 'false') the following prefixes must be included,
  34315. // 'fa', 'fal', 'fals'. The prefixes are not needed, if the command has no
  34316. // other commands or literals as a prefix. The knowCommands is optional.
  34317. this.knownCommands = knownCommands;
  34318. }
  34319. Lexer.isSpace = function Lexer_isSpace(ch) {
  34320. // Space is one of the following characters: SPACE, TAB, CR or LF.
  34321. return (ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A);
  34322. };
  34323. // A '1' in this array means the character is white space. A '1' or
  34324. // '2' means the character ends a name or command.
  34325. var specialChars = [
  34326. 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
  34327. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
  34328. 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
  34329. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, // 3x
  34330. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 4x
  34331. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 5x
  34332. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 6x
  34333. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 7x
  34334. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
  34335. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
  34336. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ax
  34337. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // bx
  34338. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // cx
  34339. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // dx
  34340. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ex
  34341. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // fx
  34342. ];
  34343. function toHexDigit(ch) {
  34344. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  34345. return ch & 0x0F;
  34346. }
  34347. if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  34348. // 'A'-'F', 'a'-'f'
  34349. return (ch & 0x0F) + 9;
  34350. }
  34351. return -1;
  34352. }
  34353. Lexer.prototype = {
  34354. nextChar: function Lexer_nextChar() {
  34355. return (this.currentChar = this.stream.getByte());
  34356. },
  34357. peekChar: function Lexer_peekChar() {
  34358. return this.stream.peekBytes(1)[0];
  34359. },
  34360. getNumber: function Lexer_getNumber() {
  34361. var ch = this.currentChar;
  34362. var eNotation = false;
  34363. var divideBy = 0; // different from 0 if it's a floating point value
  34364. var sign = 1;
  34365. if (ch === 0x2D) { // '-'
  34366. sign = -1;
  34367. ch = this.nextChar();
  34368. } else if (ch === 0x2B) { // '+'
  34369. ch = this.nextChar();
  34370. }
  34371. if (ch === 0x2E) { // '.'
  34372. divideBy = 10;
  34373. ch = this.nextChar();
  34374. }
  34375. if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  34376. error('Invalid number: ' + String.fromCharCode(ch));
  34377. return 0;
  34378. }
  34379. var baseValue = ch - 0x30; // '0'
  34380. var powerValue = 0;
  34381. var powerValueSign = 1;
  34382. while ((ch = this.nextChar()) >= 0) {
  34383. if (0x30 <= ch && ch <= 0x39) { // '0' - '9'
  34384. var currentDigit = ch - 0x30; // '0'
  34385. if (eNotation) { // We are after an 'e' or 'E'
  34386. powerValue = powerValue * 10 + currentDigit;
  34387. } else {
  34388. if (divideBy !== 0) { // We are after a point
  34389. divideBy *= 10;
  34390. }
  34391. baseValue = baseValue * 10 + currentDigit;
  34392. }
  34393. } else if (ch === 0x2E) { // '.'
  34394. if (divideBy === 0) {
  34395. divideBy = 1;
  34396. } else {
  34397. // A number can have only one '.'
  34398. break;
  34399. }
  34400. } else if (ch === 0x2D) { // '-'
  34401. // ignore minus signs in the middle of numbers to match
  34402. // Adobe's behavior
  34403. warn('Badly formated number');
  34404. } else if (ch === 0x45 || ch === 0x65) { // 'E', 'e'
  34405. // 'E' can be either a scientific notation or the beginning of a new
  34406. // operator
  34407. ch = this.peekChar();
  34408. if (ch === 0x2B || ch === 0x2D) { // '+', '-'
  34409. powerValueSign = (ch === 0x2D) ? -1 : 1;
  34410. this.nextChar(); // Consume the sign character
  34411. } else if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  34412. // The 'E' must be the beginning of a new operator
  34413. break;
  34414. }
  34415. eNotation = true;
  34416. } else {
  34417. // the last character doesn't belong to us
  34418. break;
  34419. }
  34420. }
  34421. if (divideBy !== 0) {
  34422. baseValue /= divideBy;
  34423. }
  34424. if (eNotation) {
  34425. baseValue *= Math.pow(10, powerValueSign * powerValue);
  34426. }
  34427. return sign * baseValue;
  34428. },
  34429. getString: function Lexer_getString() {
  34430. var numParen = 1;
  34431. var done = false;
  34432. var strBuf = this.strBuf;
  34433. strBuf.length = 0;
  34434. var ch = this.nextChar();
  34435. while (true) {
  34436. var charBuffered = false;
  34437. switch (ch | 0) {
  34438. case -1:
  34439. warn('Unterminated string');
  34440. done = true;
  34441. break;
  34442. case 0x28: // '('
  34443. ++numParen;
  34444. strBuf.push('(');
  34445. break;
  34446. case 0x29: // ')'
  34447. if (--numParen === 0) {
  34448. this.nextChar(); // consume strings ')'
  34449. done = true;
  34450. } else {
  34451. strBuf.push(')');
  34452. }
  34453. break;
  34454. case 0x5C: // '\\'
  34455. ch = this.nextChar();
  34456. switch (ch) {
  34457. case -1:
  34458. warn('Unterminated string');
  34459. done = true;
  34460. break;
  34461. case 0x6E: // 'n'
  34462. strBuf.push('\n');
  34463. break;
  34464. case 0x72: // 'r'
  34465. strBuf.push('\r');
  34466. break;
  34467. case 0x74: // 't'
  34468. strBuf.push('\t');
  34469. break;
  34470. case 0x62: // 'b'
  34471. strBuf.push('\b');
  34472. break;
  34473. case 0x66: // 'f'
  34474. strBuf.push('\f');
  34475. break;
  34476. case 0x5C: // '\'
  34477. case 0x28: // '('
  34478. case 0x29: // ')'
  34479. strBuf.push(String.fromCharCode(ch));
  34480. break;
  34481. case 0x30: case 0x31: case 0x32: case 0x33: // '0'-'3'
  34482. case 0x34: case 0x35: case 0x36: case 0x37: // '4'-'7'
  34483. var x = ch & 0x0F;
  34484. ch = this.nextChar();
  34485. charBuffered = true;
  34486. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  34487. x = (x << 3) + (ch & 0x0F);
  34488. ch = this.nextChar();
  34489. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  34490. charBuffered = false;
  34491. x = (x << 3) + (ch & 0x0F);
  34492. }
  34493. }
  34494. strBuf.push(String.fromCharCode(x));
  34495. break;
  34496. case 0x0D: // CR
  34497. if (this.peekChar() === 0x0A) { // LF
  34498. this.nextChar();
  34499. }
  34500. break;
  34501. case 0x0A: // LF
  34502. break;
  34503. default:
  34504. strBuf.push(String.fromCharCode(ch));
  34505. break;
  34506. }
  34507. break;
  34508. default:
  34509. strBuf.push(String.fromCharCode(ch));
  34510. break;
  34511. }
  34512. if (done) {
  34513. break;
  34514. }
  34515. if (!charBuffered) {
  34516. ch = this.nextChar();
  34517. }
  34518. }
  34519. return strBuf.join('');
  34520. },
  34521. getName: function Lexer_getName() {
  34522. var ch;
  34523. var strBuf = this.strBuf;
  34524. strBuf.length = 0;
  34525. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  34526. if (ch === 0x23) { // '#'
  34527. ch = this.nextChar();
  34528. var x = toHexDigit(ch);
  34529. if (x != -1) {
  34530. var x2 = toHexDigit(this.nextChar());
  34531. if (x2 === -1) {
  34532. error('Illegal digit in hex char in name: ' + x2);
  34533. }
  34534. strBuf.push(String.fromCharCode((x << 4) | x2));
  34535. } else {
  34536. strBuf.push('#', String.fromCharCode(ch));
  34537. }
  34538. } else {
  34539. strBuf.push(String.fromCharCode(ch));
  34540. }
  34541. }
  34542. if (strBuf.length > 128) {
  34543. error('Warning: name token is longer than allowed by the spec: ' +
  34544. strBuf.length);
  34545. }
  34546. return Name.get(strBuf.join(''));
  34547. },
  34548. getHexString: function Lexer_getHexString() {
  34549. var strBuf = this.strBuf;
  34550. strBuf.length = 0;
  34551. var ch = this.currentChar;
  34552. var isFirstHex = true;
  34553. var firstDigit;
  34554. var secondDigit;
  34555. while (true) {
  34556. if (ch < 0) {
  34557. warn('Unterminated hex string');
  34558. break;
  34559. } else if (ch === 0x3E) { // '>'
  34560. this.nextChar();
  34561. break;
  34562. } else if (specialChars[ch] === 1) {
  34563. ch = this.nextChar();
  34564. continue;
  34565. } else {
  34566. if (isFirstHex) {
  34567. firstDigit = toHexDigit(ch);
  34568. if (firstDigit === -1) {
  34569. warn('Ignoring invalid character "' + ch + '" in hex string');
  34570. ch = this.nextChar();
  34571. continue;
  34572. }
  34573. } else {
  34574. secondDigit = toHexDigit(ch);
  34575. if (secondDigit === -1) {
  34576. warn('Ignoring invalid character "' + ch + '" in hex string');
  34577. ch = this.nextChar();
  34578. continue;
  34579. }
  34580. strBuf.push(String.fromCharCode((firstDigit << 4) | secondDigit));
  34581. }
  34582. isFirstHex = !isFirstHex;
  34583. ch = this.nextChar();
  34584. }
  34585. }
  34586. return strBuf.join('');
  34587. },
  34588. getObj: function Lexer_getObj() {
  34589. // skip whitespace and comments
  34590. var comment = false;
  34591. var ch = this.currentChar;
  34592. while (true) {
  34593. if (ch < 0) {
  34594. return EOF;
  34595. }
  34596. if (comment) {
  34597. if (ch === 0x0A || ch === 0x0D) { // LF, CR
  34598. comment = false;
  34599. }
  34600. } else if (ch === 0x25) { // '%'
  34601. comment = true;
  34602. } else if (specialChars[ch] !== 1) {
  34603. break;
  34604. }
  34605. ch = this.nextChar();
  34606. }
  34607. // start reading token
  34608. switch (ch | 0) {
  34609. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  34610. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  34611. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  34612. return this.getNumber();
  34613. case 0x28: // '('
  34614. return this.getString();
  34615. case 0x2F: // '/'
  34616. return this.getName();
  34617. // array punctuation
  34618. case 0x5B: // '['
  34619. this.nextChar();
  34620. return Cmd.get('[');
  34621. case 0x5D: // ']'
  34622. this.nextChar();
  34623. return Cmd.get(']');
  34624. // hex string or dict punctuation
  34625. case 0x3C: // '<'
  34626. ch = this.nextChar();
  34627. if (ch === 0x3C) {
  34628. // dict punctuation
  34629. this.nextChar();
  34630. return Cmd.get('<<');
  34631. }
  34632. return this.getHexString();
  34633. // dict punctuation
  34634. case 0x3E: // '>'
  34635. ch = this.nextChar();
  34636. if (ch === 0x3E) {
  34637. this.nextChar();
  34638. return Cmd.get('>>');
  34639. }
  34640. return Cmd.get('>');
  34641. case 0x7B: // '{'
  34642. this.nextChar();
  34643. return Cmd.get('{');
  34644. case 0x7D: // '}'
  34645. this.nextChar();
  34646. return Cmd.get('}');
  34647. case 0x29: // ')'
  34648. error('Illegal character: ' + ch);
  34649. break;
  34650. }
  34651. // command
  34652. var str = String.fromCharCode(ch);
  34653. var knownCommands = this.knownCommands;
  34654. var knownCommandFound = knownCommands && knownCommands[str] !== undefined;
  34655. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  34656. // stop if known command is found and next character does not make
  34657. // the str a command
  34658. var possibleCommand = str + String.fromCharCode(ch);
  34659. if (knownCommandFound && knownCommands[possibleCommand] === undefined) {
  34660. break;
  34661. }
  34662. if (str.length === 128) {
  34663. error('Command token too long: ' + str.length);
  34664. }
  34665. str = possibleCommand;
  34666. knownCommandFound = knownCommands && knownCommands[str] !== undefined;
  34667. }
  34668. if (str === 'true') {
  34669. return true;
  34670. }
  34671. if (str === 'false') {
  34672. return false;
  34673. }
  34674. if (str === 'null') {
  34675. return null;
  34676. }
  34677. return Cmd.get(str);
  34678. },
  34679. skipToNextLine: function Lexer_skipToNextLine() {
  34680. var ch = this.currentChar;
  34681. while (ch >= 0) {
  34682. if (ch === 0x0D) { // CR
  34683. ch = this.nextChar();
  34684. if (ch === 0x0A) { // LF
  34685. this.nextChar();
  34686. }
  34687. break;
  34688. } else if (ch === 0x0A) { // LF
  34689. this.nextChar();
  34690. break;
  34691. }
  34692. ch = this.nextChar();
  34693. }
  34694. }
  34695. };
  34696. return Lexer;
  34697. })();
  34698. var Linearization = (function LinearizationClosure() {
  34699. function Linearization(stream) {
  34700. this.parser = new Parser(new Lexer(stream), false, null);
  34701. var obj1 = this.parser.getObj();
  34702. var obj2 = this.parser.getObj();
  34703. var obj3 = this.parser.getObj();
  34704. this.linDict = this.parser.getObj();
  34705. if (isInt(obj1) && isInt(obj2) && isCmd(obj3, 'obj') &&
  34706. isDict(this.linDict)) {
  34707. var obj = this.linDict.get('Linearized');
  34708. if (!(isNum(obj) && obj > 0)) {
  34709. this.linDict = null;
  34710. }
  34711. }
  34712. }
  34713. Linearization.prototype = {
  34714. getInt: function Linearization_getInt(name) {
  34715. var linDict = this.linDict;
  34716. var obj;
  34717. if (isDict(linDict) && isInt(obj = linDict.get(name)) && obj > 0) {
  34718. return obj;
  34719. }
  34720. error('"' + name + '" field in linearization table is invalid');
  34721. },
  34722. getHint: function Linearization_getHint(index) {
  34723. var linDict = this.linDict;
  34724. var obj1, obj2;
  34725. if (isDict(linDict) && isArray(obj1 = linDict.get('H')) &&
  34726. obj1.length >= 2 && isInt(obj2 = obj1[index]) && obj2 > 0) {
  34727. return obj2;
  34728. }
  34729. error('Hints table in linearization table is invalid: ' + index);
  34730. },
  34731. get length() {
  34732. if (!isDict(this.linDict)) {
  34733. return 0;
  34734. }
  34735. return this.getInt('L');
  34736. },
  34737. get hintsOffset() {
  34738. return this.getHint(0);
  34739. },
  34740. get hintsLength() {
  34741. return this.getHint(1);
  34742. },
  34743. get hintsOffset2() {
  34744. return this.getHint(2);
  34745. },
  34746. get hintsLenth2() {
  34747. return this.getHint(3);
  34748. },
  34749. get objectNumberFirst() {
  34750. return this.getInt('O');
  34751. },
  34752. get endFirst() {
  34753. return this.getInt('E');
  34754. },
  34755. get numPages() {
  34756. return this.getInt('N');
  34757. },
  34758. get mainXRefEntriesOffset() {
  34759. return this.getInt('T');
  34760. },
  34761. get pageFirst() {
  34762. return this.getInt('P');
  34763. }
  34764. };
  34765. return Linearization;
  34766. })();
  34767. var PostScriptParser = (function PostScriptParserClosure() {
  34768. function PostScriptParser(lexer) {
  34769. this.lexer = lexer;
  34770. this.operators = [];
  34771. this.token = null;
  34772. this.prev = null;
  34773. }
  34774. PostScriptParser.prototype = {
  34775. nextToken: function PostScriptParser_nextToken() {
  34776. this.prev = this.token;
  34777. this.token = this.lexer.getToken();
  34778. },
  34779. accept: function PostScriptParser_accept(type) {
  34780. if (this.token.type == type) {
  34781. this.nextToken();
  34782. return true;
  34783. }
  34784. return false;
  34785. },
  34786. expect: function PostScriptParser_expect(type) {
  34787. if (this.accept(type)) {
  34788. return true;
  34789. }
  34790. error('Unexpected symbol: found ' + this.token.type + ' expected ' +
  34791. type + '.');
  34792. },
  34793. parse: function PostScriptParser_parse() {
  34794. this.nextToken();
  34795. this.expect(PostScriptTokenTypes.LBRACE);
  34796. this.parseBlock();
  34797. this.expect(PostScriptTokenTypes.RBRACE);
  34798. return this.operators;
  34799. },
  34800. parseBlock: function PostScriptParser_parseBlock() {
  34801. while (true) {
  34802. if (this.accept(PostScriptTokenTypes.NUMBER)) {
  34803. this.operators.push(this.prev.value);
  34804. } else if (this.accept(PostScriptTokenTypes.OPERATOR)) {
  34805. this.operators.push(this.prev.value);
  34806. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  34807. this.parseCondition();
  34808. } else {
  34809. return;
  34810. }
  34811. }
  34812. },
  34813. parseCondition: function PostScriptParser_parseCondition() {
  34814. // Add two place holders that will be updated later
  34815. var conditionLocation = this.operators.length;
  34816. this.operators.push(null, null);
  34817. this.parseBlock();
  34818. this.expect(PostScriptTokenTypes.RBRACE);
  34819. if (this.accept(PostScriptTokenTypes.IF)) {
  34820. // The true block is right after the 'if' so it just falls through on
  34821. // true else it jumps and skips the true block.
  34822. this.operators[conditionLocation] = this.operators.length;
  34823. this.operators[conditionLocation + 1] = 'jz';
  34824. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  34825. var jumpLocation = this.operators.length;
  34826. this.operators.push(null, null);
  34827. var endOfTrue = this.operators.length;
  34828. this.parseBlock();
  34829. this.expect(PostScriptTokenTypes.RBRACE);
  34830. this.expect(PostScriptTokenTypes.IFELSE);
  34831. // The jump is added at the end of the true block to skip the false
  34832. // block.
  34833. this.operators[jumpLocation] = this.operators.length;
  34834. this.operators[jumpLocation + 1] = 'j';
  34835. this.operators[conditionLocation] = endOfTrue;
  34836. this.operators[conditionLocation + 1] = 'jz';
  34837. } else {
  34838. error('PS Function: error parsing conditional.');
  34839. }
  34840. }
  34841. };
  34842. return PostScriptParser;
  34843. })();
  34844. var PostScriptTokenTypes = {
  34845. LBRACE: 0,
  34846. RBRACE: 1,
  34847. NUMBER: 2,
  34848. OPERATOR: 3,
  34849. IF: 4,
  34850. IFELSE: 5
  34851. };
  34852. var PostScriptToken = (function PostScriptTokenClosure() {
  34853. function PostScriptToken(type, value) {
  34854. this.type = type;
  34855. this.value = value;
  34856. }
  34857. var opCache = {};
  34858. PostScriptToken.getOperator = function PostScriptToken_getOperator(op) {
  34859. var opValue = opCache[op];
  34860. if (opValue) {
  34861. return opValue;
  34862. }
  34863. return opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op);
  34864. };
  34865. PostScriptToken.LBRACE = new PostScriptToken(PostScriptTokenTypes.LBRACE,
  34866. '{');
  34867. PostScriptToken.RBRACE = new PostScriptToken(PostScriptTokenTypes.RBRACE,
  34868. '}');
  34869. PostScriptToken.IF = new PostScriptToken(PostScriptTokenTypes.IF, 'IF');
  34870. PostScriptToken.IFELSE = new PostScriptToken(PostScriptTokenTypes.IFELSE,
  34871. 'IFELSE');
  34872. return PostScriptToken;
  34873. })();
  34874. var PostScriptLexer = (function PostScriptLexerClosure() {
  34875. function PostScriptLexer(stream) {
  34876. this.stream = stream;
  34877. this.nextChar();
  34878. }
  34879. PostScriptLexer.prototype = {
  34880. nextChar: function PostScriptLexer_nextChar() {
  34881. return (this.currentChar = this.stream.getByte());
  34882. },
  34883. getToken: function PostScriptLexer_getToken() {
  34884. var comment = false;
  34885. var ch = this.currentChar;
  34886. // skip comments
  34887. while (true) {
  34888. if (ch < 0) {
  34889. return EOF;
  34890. }
  34891. if (comment) {
  34892. if (ch === 0x0A || ch === 0x0D) {
  34893. comment = false;
  34894. }
  34895. } else if (ch == 0x25) { // '%'
  34896. comment = true;
  34897. } else if (!Lexer.isSpace(ch)) {
  34898. break;
  34899. }
  34900. ch = this.nextChar();
  34901. }
  34902. switch (ch | 0) {
  34903. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  34904. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  34905. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  34906. return new PostScriptToken(PostScriptTokenTypes.NUMBER,
  34907. this.getNumber());
  34908. case 0x7B: // '{'
  34909. this.nextChar();
  34910. return PostScriptToken.LBRACE;
  34911. case 0x7D: // '}'
  34912. this.nextChar();
  34913. return PostScriptToken.RBRACE;
  34914. }
  34915. // operator
  34916. var str = String.fromCharCode(ch);
  34917. while ((ch = this.nextChar()) >= 0 && // and 'A'-'Z', 'a'-'z'
  34918. ((ch >= 0x41 && ch <= 0x5A) || (ch >= 0x61 && ch <= 0x7A))) {
  34919. str += String.fromCharCode(ch);
  34920. }
  34921. switch (str.toLowerCase()) {
  34922. case 'if':
  34923. return PostScriptToken.IF;
  34924. case 'ifelse':
  34925. return PostScriptToken.IFELSE;
  34926. default:
  34927. return PostScriptToken.getOperator(str);
  34928. }
  34929. },
  34930. getNumber: function PostScriptLexer_getNumber() {
  34931. var ch = this.currentChar;
  34932. var str = String.fromCharCode(ch);
  34933. while ((ch = this.nextChar()) >= 0) {
  34934. if ((ch >= 0x30 && ch <= 0x39) || // '0'-'9'
  34935. ch === 0x2D || ch === 0x2E) { // '-', '.'
  34936. str += String.fromCharCode(ch);
  34937. } else {
  34938. break;
  34939. }
  34940. }
  34941. var value = parseFloat(str);
  34942. if (isNaN(value)) {
  34943. error('Invalid floating point number: ' + value);
  34944. }
  34945. return value;
  34946. }
  34947. };
  34948. return PostScriptLexer;
  34949. })();
  34950. var Stream = (function StreamClosure() {
  34951. function Stream(arrayBuffer, start, length, dict) {
  34952. this.bytes = (arrayBuffer instanceof Uint8Array ?
  34953. arrayBuffer : new Uint8Array(arrayBuffer));
  34954. this.start = start || 0;
  34955. this.pos = this.start;
  34956. this.end = (start + length) || this.bytes.length;
  34957. this.dict = dict;
  34958. }
  34959. // required methods for a stream. if a particular stream does not
  34960. // implement these, an error should be thrown
  34961. Stream.prototype = {
  34962. get length() {
  34963. return this.end - this.start;
  34964. },
  34965. get isEmpty() {
  34966. return this.length === 0;
  34967. },
  34968. getByte: function Stream_getByte() {
  34969. if (this.pos >= this.end) {
  34970. return -1;
  34971. }
  34972. return this.bytes[this.pos++];
  34973. },
  34974. getUint16: function Stream_getUint16() {
  34975. var b0 = this.getByte();
  34976. var b1 = this.getByte();
  34977. return (b0 << 8) + b1;
  34978. },
  34979. getInt32: function Stream_getInt32() {
  34980. var b0 = this.getByte();
  34981. var b1 = this.getByte();
  34982. var b2 = this.getByte();
  34983. var b3 = this.getByte();
  34984. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  34985. },
  34986. // returns subarray of original buffer
  34987. // should only be read
  34988. getBytes: function Stream_getBytes(length) {
  34989. var bytes = this.bytes;
  34990. var pos = this.pos;
  34991. var strEnd = this.end;
  34992. if (!length) {
  34993. return bytes.subarray(pos, strEnd);
  34994. }
  34995. var end = pos + length;
  34996. if (end > strEnd) {
  34997. end = strEnd;
  34998. }
  34999. this.pos = end;
  35000. return bytes.subarray(pos, end);
  35001. },
  35002. peekBytes: function Stream_peekBytes(length) {
  35003. var bytes = this.getBytes(length);
  35004. this.pos -= bytes.length;
  35005. return bytes;
  35006. },
  35007. skip: function Stream_skip(n) {
  35008. if (!n) {
  35009. n = 1;
  35010. }
  35011. this.pos += n;
  35012. },
  35013. reset: function Stream_reset() {
  35014. this.pos = this.start;
  35015. },
  35016. moveStart: function Stream_moveStart() {
  35017. this.start = this.pos;
  35018. },
  35019. makeSubStream: function Stream_makeSubStream(start, length, dict) {
  35020. return new Stream(this.bytes.buffer, start, length, dict);
  35021. },
  35022. isStream: true
  35023. };
  35024. return Stream;
  35025. })();
  35026. var StringStream = (function StringStreamClosure() {
  35027. function StringStream(str) {
  35028. var length = str.length;
  35029. var bytes = new Uint8Array(length);
  35030. for (var n = 0; n < length; ++n) {
  35031. bytes[n] = str.charCodeAt(n);
  35032. }
  35033. Stream.call(this, bytes);
  35034. }
  35035. StringStream.prototype = Stream.prototype;
  35036. return StringStream;
  35037. })();
  35038. // super class for the decoding streams
  35039. var DecodeStream = (function DecodeStreamClosure() {
  35040. function DecodeStream(maybeMinBufferLength) {
  35041. this.pos = 0;
  35042. this.bufferLength = 0;
  35043. this.eof = false;
  35044. this.buffer = null;
  35045. this.minBufferLength = 512;
  35046. if (maybeMinBufferLength) {
  35047. // Compute the first power of two that is as big as maybeMinBufferLength.
  35048. while (this.minBufferLength < maybeMinBufferLength) {
  35049. this.minBufferLength *= 2;
  35050. }
  35051. }
  35052. }
  35053. DecodeStream.prototype = {
  35054. get isEmpty() {
  35055. while (!this.eof && this.bufferLength === 0) {
  35056. this.readBlock();
  35057. }
  35058. return this.bufferLength === 0;
  35059. },
  35060. ensureBuffer: function DecodeStream_ensureBuffer(requested) {
  35061. var buffer = this.buffer;
  35062. var current;
  35063. if (buffer) {
  35064. current = buffer.byteLength;
  35065. if (requested <= current) {
  35066. return buffer;
  35067. }
  35068. } else {
  35069. current = 0;
  35070. }
  35071. var size = this.minBufferLength;
  35072. while (size < requested) {
  35073. size *= 2;
  35074. }
  35075. var buffer2 = new Uint8Array(size);
  35076. if (buffer) {
  35077. buffer2.set(buffer);
  35078. }
  35079. return (this.buffer = buffer2);
  35080. },
  35081. getByte: function DecodeStream_getByte() {
  35082. var pos = this.pos;
  35083. while (this.bufferLength <= pos) {
  35084. if (this.eof) {
  35085. return -1;
  35086. }
  35087. this.readBlock();
  35088. }
  35089. return this.buffer[this.pos++];
  35090. },
  35091. getUint16: function DecodeStream_getUint16() {
  35092. var b0 = this.getByte();
  35093. var b1 = this.getByte();
  35094. return (b0 << 8) + b1;
  35095. },
  35096. getInt32: function DecodeStream_getInt32() {
  35097. var b0 = this.getByte();
  35098. var b1 = this.getByte();
  35099. var b2 = this.getByte();
  35100. var b3 = this.getByte();
  35101. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  35102. },
  35103. getBytes: function DecodeStream_getBytes(length) {
  35104. var end, pos = this.pos;
  35105. if (length) {
  35106. this.ensureBuffer(pos + length);
  35107. end = pos + length;
  35108. while (!this.eof && this.bufferLength < end) {
  35109. this.readBlock();
  35110. }
  35111. var bufEnd = this.bufferLength;
  35112. if (end > bufEnd) {
  35113. end = bufEnd;
  35114. }
  35115. } else {
  35116. while (!this.eof) {
  35117. this.readBlock();
  35118. }
  35119. end = this.bufferLength;
  35120. // checking if bufferLength is still 0 then
  35121. // the buffer has to be initialized
  35122. if (!end) {
  35123. this.buffer = new Uint8Array(0);
  35124. }
  35125. }
  35126. this.pos = end;
  35127. return this.buffer.subarray(pos, end);
  35128. },
  35129. peekBytes: function DecodeStream_peekBytes(length) {
  35130. var bytes = this.getBytes(length);
  35131. this.pos -= bytes.length;
  35132. return bytes;
  35133. },
  35134. makeSubStream: function DecodeStream_makeSubStream(start, length, dict) {
  35135. var end = start + length;
  35136. while (this.bufferLength <= end && !this.eof) {
  35137. this.readBlock();
  35138. }
  35139. return new Stream(this.buffer, start, length, dict);
  35140. },
  35141. skip: function DecodeStream_skip(n) {
  35142. if (!n) {
  35143. n = 1;
  35144. }
  35145. this.pos += n;
  35146. },
  35147. reset: function DecodeStream_reset() {
  35148. this.pos = 0;
  35149. },
  35150. getBaseStreams: function DecodeStream_getBaseStreams() {
  35151. if (this.str && this.str.getBaseStreams) {
  35152. return this.str.getBaseStreams();
  35153. }
  35154. return [];
  35155. }
  35156. };
  35157. return DecodeStream;
  35158. })();
  35159. var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
  35160. function StreamsSequenceStream(streams) {
  35161. this.streams = streams;
  35162. DecodeStream.call(this, /* maybeLength = */ null);
  35163. }
  35164. StreamsSequenceStream.prototype = Object.create(DecodeStream.prototype);
  35165. StreamsSequenceStream.prototype.readBlock =
  35166. function streamSequenceStreamReadBlock() {
  35167. var streams = this.streams;
  35168. if (streams.length === 0) {
  35169. this.eof = true;
  35170. return;
  35171. }
  35172. var stream = streams.shift();
  35173. var chunk = stream.getBytes();
  35174. var bufferLength = this.bufferLength;
  35175. var newLength = bufferLength + chunk.length;
  35176. var buffer = this.ensureBuffer(newLength);
  35177. buffer.set(chunk, bufferLength);
  35178. this.bufferLength = newLength;
  35179. };
  35180. StreamsSequenceStream.prototype.getBaseStreams =
  35181. function StreamsSequenceStream_getBaseStreams() {
  35182. var baseStreams = [];
  35183. for (var i = 0, ii = this.streams.length; i < ii; i++) {
  35184. var stream = this.streams[i];
  35185. if (stream.getBaseStreams) {
  35186. Util.appendToArray(baseStreams, stream.getBaseStreams());
  35187. }
  35188. }
  35189. return baseStreams;
  35190. };
  35191. return StreamsSequenceStream;
  35192. })();
  35193. var FlateStream = (function FlateStreamClosure() {
  35194. var codeLenCodeMap = new Uint32Array([
  35195. 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
  35196. ]);
  35197. var lengthDecode = new Uint32Array([
  35198. 0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a,
  35199. 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f,
  35200. 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073,
  35201. 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102
  35202. ]);
  35203. var distDecode = new Uint32Array([
  35204. 0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d,
  35205. 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1,
  35206. 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01,
  35207. 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001
  35208. ]);
  35209. var fixedLitCodeTab = [new Uint32Array([
  35210. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0,
  35211. 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0,
  35212. 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0,
  35213. 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0,
  35214. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8,
  35215. 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8,
  35216. 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8,
  35217. 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8,
  35218. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4,
  35219. 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4,
  35220. 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4,
  35221. 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4,
  35222. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc,
  35223. 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec,
  35224. 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc,
  35225. 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc,
  35226. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2,
  35227. 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2,
  35228. 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2,
  35229. 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2,
  35230. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca,
  35231. 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea,
  35232. 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da,
  35233. 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa,
  35234. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6,
  35235. 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6,
  35236. 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6,
  35237. 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6,
  35238. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce,
  35239. 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee,
  35240. 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de,
  35241. 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe,
  35242. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1,
  35243. 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1,
  35244. 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1,
  35245. 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1,
  35246. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9,
  35247. 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9,
  35248. 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9,
  35249. 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9,
  35250. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5,
  35251. 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5,
  35252. 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5,
  35253. 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5,
  35254. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd,
  35255. 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed,
  35256. 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd,
  35257. 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd,
  35258. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3,
  35259. 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3,
  35260. 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3,
  35261. 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3,
  35262. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb,
  35263. 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb,
  35264. 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db,
  35265. 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb,
  35266. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7,
  35267. 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7,
  35268. 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7,
  35269. 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7,
  35270. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf,
  35271. 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef,
  35272. 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df,
  35273. 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff
  35274. ]), 9];
  35275. var fixedDistCodeTab = [new Uint32Array([
  35276. 0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c,
  35277. 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000,
  35278. 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d,
  35279. 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000
  35280. ]), 5];
  35281. function FlateStream(str, maybeLength) {
  35282. this.str = str;
  35283. this.dict = str.dict;
  35284. var cmf = str.getByte();
  35285. var flg = str.getByte();
  35286. if (cmf == -1 || flg == -1) {
  35287. error('Invalid header in flate stream: ' + cmf + ', ' + flg);
  35288. }
  35289. if ((cmf & 0x0f) != 0x08) {
  35290. error('Unknown compression method in flate stream: ' + cmf + ', ' + flg);
  35291. }
  35292. if ((((cmf << 8) + flg) % 31) !== 0) {
  35293. error('Bad FCHECK in flate stream: ' + cmf + ', ' + flg);
  35294. }
  35295. if (flg & 0x20) {
  35296. error('FDICT bit set in flate stream: ' + cmf + ', ' + flg);
  35297. }
  35298. this.codeSize = 0;
  35299. this.codeBuf = 0;
  35300. DecodeStream.call(this, maybeLength);
  35301. }
  35302. FlateStream.prototype = Object.create(DecodeStream.prototype);
  35303. FlateStream.prototype.getBits = function FlateStream_getBits(bits) {
  35304. var str = this.str;
  35305. var codeSize = this.codeSize;
  35306. var codeBuf = this.codeBuf;
  35307. var b;
  35308. while (codeSize < bits) {
  35309. if ((b = str.getByte()) === -1) {
  35310. error('Bad encoding in flate stream');
  35311. }
  35312. codeBuf |= b << codeSize;
  35313. codeSize += 8;
  35314. }
  35315. b = codeBuf & ((1 << bits) - 1);
  35316. this.codeBuf = codeBuf >> bits;
  35317. this.codeSize = codeSize -= bits;
  35318. return b;
  35319. };
  35320. FlateStream.prototype.getCode = function FlateStream_getCode(table) {
  35321. var str = this.str;
  35322. var codes = table[0];
  35323. var maxLen = table[1];
  35324. var codeSize = this.codeSize;
  35325. var codeBuf = this.codeBuf;
  35326. var b;
  35327. while (codeSize < maxLen) {
  35328. if ((b = str.getByte()) === -1) {
  35329. // premature end of stream. code might however still be valid.
  35330. // codeSize < codeLen check below guards against incomplete codeVal.
  35331. break;
  35332. }
  35333. codeBuf |= (b << codeSize);
  35334. codeSize += 8;
  35335. }
  35336. var code = codes[codeBuf & ((1 << maxLen) - 1)];
  35337. var codeLen = code >> 16;
  35338. var codeVal = code & 0xffff;
  35339. if (codeLen < 1 || codeSize < codeLen) {
  35340. error('Bad encoding in flate stream');
  35341. }
  35342. this.codeBuf = (codeBuf >> codeLen);
  35343. this.codeSize = (codeSize - codeLen);
  35344. return codeVal;
  35345. };
  35346. FlateStream.prototype.generateHuffmanTable =
  35347. function flateStreamGenerateHuffmanTable(lengths) {
  35348. var n = lengths.length;
  35349. // find max code length
  35350. var maxLen = 0;
  35351. var i;
  35352. for (i = 0; i < n; ++i) {
  35353. if (lengths[i] > maxLen) {
  35354. maxLen = lengths[i];
  35355. }
  35356. }
  35357. // build the table
  35358. var size = 1 << maxLen;
  35359. var codes = new Uint32Array(size);
  35360. for (var len = 1, code = 0, skip = 2;
  35361. len <= maxLen;
  35362. ++len, code <<= 1, skip <<= 1) {
  35363. for (var val = 0; val < n; ++val) {
  35364. if (lengths[val] == len) {
  35365. // bit-reverse the code
  35366. var code2 = 0;
  35367. var t = code;
  35368. for (i = 0; i < len; ++i) {
  35369. code2 = (code2 << 1) | (t & 1);
  35370. t >>= 1;
  35371. }
  35372. // fill the table entries
  35373. for (i = code2; i < size; i += skip) {
  35374. codes[i] = (len << 16) | val;
  35375. }
  35376. ++code;
  35377. }
  35378. }
  35379. }
  35380. return [codes, maxLen];
  35381. };
  35382. FlateStream.prototype.readBlock = function FlateStream_readBlock() {
  35383. var buffer, len;
  35384. var str = this.str;
  35385. // read block header
  35386. var hdr = this.getBits(3);
  35387. if (hdr & 1) {
  35388. this.eof = true;
  35389. }
  35390. hdr >>= 1;
  35391. if (hdr === 0) { // uncompressed block
  35392. var b;
  35393. if ((b = str.getByte()) === -1) {
  35394. error('Bad block header in flate stream');
  35395. }
  35396. var blockLen = b;
  35397. if ((b = str.getByte()) === -1) {
  35398. error('Bad block header in flate stream');
  35399. }
  35400. blockLen |= (b << 8);
  35401. if ((b = str.getByte()) === -1) {
  35402. error('Bad block header in flate stream');
  35403. }
  35404. var check = b;
  35405. if ((b = str.getByte()) === -1) {
  35406. error('Bad block header in flate stream');
  35407. }
  35408. check |= (b << 8);
  35409. if (check != (~blockLen & 0xffff) &&
  35410. (blockLen !== 0 || check !== 0)) {
  35411. // Ignoring error for bad "empty" block (see issue 1277)
  35412. error('Bad uncompressed block length in flate stream');
  35413. }
  35414. this.codeBuf = 0;
  35415. this.codeSize = 0;
  35416. var bufferLength = this.bufferLength;
  35417. buffer = this.ensureBuffer(bufferLength + blockLen);
  35418. var end = bufferLength + blockLen;
  35419. this.bufferLength = end;
  35420. if (blockLen === 0) {
  35421. if (str.peekBytes(1).length === 0) {
  35422. this.eof = true;
  35423. }
  35424. } else {
  35425. for (var n = bufferLength; n < end; ++n) {
  35426. if ((b = str.getByte()) === -1) {
  35427. this.eof = true;
  35428. break;
  35429. }
  35430. buffer[n] = b;
  35431. }
  35432. }
  35433. return;
  35434. }
  35435. var litCodeTable;
  35436. var distCodeTable;
  35437. if (hdr == 1) { // compressed block, fixed codes
  35438. litCodeTable = fixedLitCodeTab;
  35439. distCodeTable = fixedDistCodeTab;
  35440. } else if (hdr == 2) { // compressed block, dynamic codes
  35441. var numLitCodes = this.getBits(5) + 257;
  35442. var numDistCodes = this.getBits(5) + 1;
  35443. var numCodeLenCodes = this.getBits(4) + 4;
  35444. // build the code lengths code table
  35445. var codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
  35446. var i;
  35447. for (i = 0; i < numCodeLenCodes; ++i) {
  35448. codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
  35449. }
  35450. var codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
  35451. // build the literal and distance code tables
  35452. len = 0;
  35453. i = 0;
  35454. var codes = numLitCodes + numDistCodes;
  35455. var codeLengths = new Uint8Array(codes);
  35456. var bitsLength, bitsOffset, what;
  35457. while (i < codes) {
  35458. var code = this.getCode(codeLenCodeTab);
  35459. if (code == 16) {
  35460. bitsLength = 2; bitsOffset = 3; what = len;
  35461. } else if (code == 17) {
  35462. bitsLength = 3; bitsOffset = 3; what = (len = 0);
  35463. } else if (code == 18) {
  35464. bitsLength = 7; bitsOffset = 11; what = (len = 0);
  35465. } else {
  35466. codeLengths[i++] = len = code;
  35467. continue;
  35468. }
  35469. var repeatLength = this.getBits(bitsLength) + bitsOffset;
  35470. while (repeatLength-- > 0) {
  35471. codeLengths[i++] = what;
  35472. }
  35473. }
  35474. litCodeTable =
  35475. this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes));
  35476. distCodeTable =
  35477. this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes));
  35478. } else {
  35479. error('Unknown block type in flate stream');
  35480. }
  35481. buffer = this.buffer;
  35482. var limit = buffer ? buffer.length : 0;
  35483. var pos = this.bufferLength;
  35484. while (true) {
  35485. var code1 = this.getCode(litCodeTable);
  35486. if (code1 < 256) {
  35487. if (pos + 1 >= limit) {
  35488. buffer = this.ensureBuffer(pos + 1);
  35489. limit = buffer.length;
  35490. }
  35491. buffer[pos++] = code1;
  35492. continue;
  35493. }
  35494. if (code1 == 256) {
  35495. this.bufferLength = pos;
  35496. return;
  35497. }
  35498. code1 -= 257;
  35499. code1 = lengthDecode[code1];
  35500. var code2 = code1 >> 16;
  35501. if (code2 > 0) {
  35502. code2 = this.getBits(code2);
  35503. }
  35504. len = (code1 & 0xffff) + code2;
  35505. code1 = this.getCode(distCodeTable);
  35506. code1 = distDecode[code1];
  35507. code2 = code1 >> 16;
  35508. if (code2 > 0) {
  35509. code2 = this.getBits(code2);
  35510. }
  35511. var dist = (code1 & 0xffff) + code2;
  35512. if (pos + len >= limit) {
  35513. buffer = this.ensureBuffer(pos + len);
  35514. limit = buffer.length;
  35515. }
  35516. for (var k = 0; k < len; ++k, ++pos) {
  35517. buffer[pos] = buffer[pos - dist];
  35518. }
  35519. }
  35520. };
  35521. return FlateStream;
  35522. })();
  35523. var PredictorStream = (function PredictorStreamClosure() {
  35524. function PredictorStream(str, maybeLength, params) {
  35525. var predictor = this.predictor = params.get('Predictor') || 1;
  35526. if (predictor <= 1) {
  35527. return str; // no prediction
  35528. }
  35529. if (predictor !== 2 && (predictor < 10 || predictor > 15)) {
  35530. error('Unsupported predictor: ' + predictor);
  35531. }
  35532. if (predictor === 2) {
  35533. this.readBlock = this.readBlockTiff;
  35534. } else {
  35535. this.readBlock = this.readBlockPng;
  35536. }
  35537. this.str = str;
  35538. this.dict = str.dict;
  35539. var colors = this.colors = params.get('Colors') || 1;
  35540. var bits = this.bits = params.get('BitsPerComponent') || 8;
  35541. var columns = this.columns = params.get('Columns') || 1;
  35542. this.pixBytes = (colors * bits + 7) >> 3;
  35543. this.rowBytes = (columns * colors * bits + 7) >> 3;
  35544. DecodeStream.call(this, maybeLength);
  35545. return this;
  35546. }
  35547. PredictorStream.prototype = Object.create(DecodeStream.prototype);
  35548. PredictorStream.prototype.readBlockTiff =
  35549. function predictorStreamReadBlockTiff() {
  35550. var rowBytes = this.rowBytes;
  35551. var bufferLength = this.bufferLength;
  35552. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  35553. var bits = this.bits;
  35554. var colors = this.colors;
  35555. var rawBytes = this.str.getBytes(rowBytes);
  35556. this.eof = !rawBytes.length;
  35557. if (this.eof) {
  35558. return;
  35559. }
  35560. var inbuf = 0, outbuf = 0;
  35561. var inbits = 0, outbits = 0;
  35562. var pos = bufferLength;
  35563. var i;
  35564. if (bits === 1) {
  35565. for (i = 0; i < rowBytes; ++i) {
  35566. var c = rawBytes[i];
  35567. inbuf = (inbuf << 8) | c;
  35568. // bitwise addition is exclusive or
  35569. // first shift inbuf and then add
  35570. buffer[pos++] = (c ^ (inbuf >> colors)) & 0xFF;
  35571. // truncate inbuf (assumes colors < 16)
  35572. inbuf &= 0xFFFF;
  35573. }
  35574. } else if (bits === 8) {
  35575. for (i = 0; i < colors; ++i) {
  35576. buffer[pos++] = rawBytes[i];
  35577. }
  35578. for (; i < rowBytes; ++i) {
  35579. buffer[pos] = buffer[pos - colors] + rawBytes[i];
  35580. pos++;
  35581. }
  35582. } else {
  35583. var compArray = new Uint8Array(colors + 1);
  35584. var bitMask = (1 << bits) - 1;
  35585. var j = 0, k = bufferLength;
  35586. var columns = this.columns;
  35587. for (i = 0; i < columns; ++i) {
  35588. for (var kk = 0; kk < colors; ++kk) {
  35589. if (inbits < bits) {
  35590. inbuf = (inbuf << 8) | (rawBytes[j++] & 0xFF);
  35591. inbits += 8;
  35592. }
  35593. compArray[kk] = (compArray[kk] +
  35594. (inbuf >> (inbits - bits))) & bitMask;
  35595. inbits -= bits;
  35596. outbuf = (outbuf << bits) | compArray[kk];
  35597. outbits += bits;
  35598. if (outbits >= 8) {
  35599. buffer[k++] = (outbuf >> (outbits - 8)) & 0xFF;
  35600. outbits -= 8;
  35601. }
  35602. }
  35603. }
  35604. if (outbits > 0) {
  35605. buffer[k++] = (outbuf << (8 - outbits)) +
  35606. (inbuf & ((1 << (8 - outbits)) - 1));
  35607. }
  35608. }
  35609. this.bufferLength += rowBytes;
  35610. };
  35611. PredictorStream.prototype.readBlockPng =
  35612. function predictorStreamReadBlockPng() {
  35613. var rowBytes = this.rowBytes;
  35614. var pixBytes = this.pixBytes;
  35615. var predictor = this.str.getByte();
  35616. var rawBytes = this.str.getBytes(rowBytes);
  35617. this.eof = !rawBytes.length;
  35618. if (this.eof) {
  35619. return;
  35620. }
  35621. var bufferLength = this.bufferLength;
  35622. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  35623. var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
  35624. if (prevRow.length === 0) {
  35625. prevRow = new Uint8Array(rowBytes);
  35626. }
  35627. var i, j = bufferLength, up, c;
  35628. switch (predictor) {
  35629. case 0:
  35630. for (i = 0; i < rowBytes; ++i) {
  35631. buffer[j++] = rawBytes[i];
  35632. }
  35633. break;
  35634. case 1:
  35635. for (i = 0; i < pixBytes; ++i) {
  35636. buffer[j++] = rawBytes[i];
  35637. }
  35638. for (; i < rowBytes; ++i) {
  35639. buffer[j] = (buffer[j - pixBytes] + rawBytes[i]) & 0xFF;
  35640. j++;
  35641. }
  35642. break;
  35643. case 2:
  35644. for (i = 0; i < rowBytes; ++i) {
  35645. buffer[j++] = (prevRow[i] + rawBytes[i]) & 0xFF;
  35646. }
  35647. break;
  35648. case 3:
  35649. for (i = 0; i < pixBytes; ++i) {
  35650. buffer[j++] = (prevRow[i] >> 1) + rawBytes[i];
  35651. }
  35652. for (; i < rowBytes; ++i) {
  35653. buffer[j] = (((prevRow[i] + buffer[j - pixBytes]) >> 1) +
  35654. rawBytes[i]) & 0xFF;
  35655. j++;
  35656. }
  35657. break;
  35658. case 4:
  35659. // we need to save the up left pixels values. the simplest way
  35660. // is to create a new buffer
  35661. for (i = 0; i < pixBytes; ++i) {
  35662. up = prevRow[i];
  35663. c = rawBytes[i];
  35664. buffer[j++] = up + c;
  35665. }
  35666. for (; i < rowBytes; ++i) {
  35667. up = prevRow[i];
  35668. var upLeft = prevRow[i - pixBytes];
  35669. var left = buffer[j - pixBytes];
  35670. var p = left + up - upLeft;
  35671. var pa = p - left;
  35672. if (pa < 0) {
  35673. pa = -pa;
  35674. }
  35675. var pb = p - up;
  35676. if (pb < 0) {
  35677. pb = -pb;
  35678. }
  35679. var pc = p - upLeft;
  35680. if (pc < 0) {
  35681. pc = -pc;
  35682. }
  35683. c = rawBytes[i];
  35684. if (pa <= pb && pa <= pc) {
  35685. buffer[j++] = left + c;
  35686. } else if (pb <= pc) {
  35687. buffer[j++] = up + c;
  35688. } else {
  35689. buffer[j++] = upLeft + c;
  35690. }
  35691. }
  35692. break;
  35693. default:
  35694. error('Unsupported predictor: ' + predictor);
  35695. }
  35696. this.bufferLength += rowBytes;
  35697. };
  35698. return PredictorStream;
  35699. })();
  35700. /**
  35701. * Depending on the type of JPEG a JpegStream is handled in different ways. For
  35702. * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image
  35703. * data is stored and then loaded by the browser. For unsupported JPEG's we use
  35704. * a library to decode these images and the stream behaves like all the other
  35705. * DecodeStreams.
  35706. */
  35707. var JpegStream = (function JpegStreamClosure() {
  35708. function JpegStream(stream, maybeLength, dict, xref) {
  35709. // TODO: per poppler, some images may have 'junk' before that
  35710. // need to be removed
  35711. this.stream = stream;
  35712. this.maybeLength = maybeLength;
  35713. this.dict = dict;
  35714. DecodeStream.call(this, maybeLength);
  35715. }
  35716. JpegStream.prototype = Object.create(DecodeStream.prototype);
  35717. Object.defineProperty(JpegStream.prototype, 'bytes', {
  35718. get: function JpegStream_bytes() {
  35719. // If this.maybeLength is null, we'll get the entire stream.
  35720. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  35721. },
  35722. configurable: true
  35723. });
  35724. JpegStream.prototype.ensureBuffer = function JpegStream_ensureBuffer(req) {
  35725. if (this.bufferLength) {
  35726. return;
  35727. }
  35728. try {
  35729. var jpegImage = new JpegImage();
  35730. // checking if values needs to be transformed before conversion
  35731. if (this.dict && isArray(this.dict.get('Decode'))) {
  35732. var decodeArr = this.dict.get('Decode');
  35733. var bitsPerComponent = this.dict.get('BitsPerComponent') || 8;
  35734. var decodeArrLength = decodeArr.length;
  35735. var transform = new Int32Array(decodeArrLength);
  35736. var transformNeeded = false;
  35737. var maxValue = (1 << bitsPerComponent) - 1;
  35738. for (var i = 0; i < decodeArrLength; i += 2) {
  35739. transform[i] = ((decodeArr[i + 1] - decodeArr[i]) * 256) | 0;
  35740. transform[i + 1] = (decodeArr[i] * maxValue) | 0;
  35741. if (transform[i] !== 256 || transform[i + 1] !== 0) {
  35742. transformNeeded = true;
  35743. }
  35744. }
  35745. if (transformNeeded) {
  35746. jpegImage.decodeTransform = transform;
  35747. }
  35748. }
  35749. jpegImage.parse(this.bytes);
  35750. var data = jpegImage.getData(this.drawWidth, this.drawHeight,
  35751. this.forceRGB);
  35752. this.buffer = data;
  35753. this.bufferLength = data.length;
  35754. this.eof = true;
  35755. } catch (e) {
  35756. error('JPEG error: ' + e);
  35757. }
  35758. };
  35759. JpegStream.prototype.getBytes = function JpegStream_getBytes(length) {
  35760. this.ensureBuffer();
  35761. return this.buffer;
  35762. };
  35763. JpegStream.prototype.getIR = function JpegStream_getIR() {
  35764. return PDFJS.createObjectURL(this.bytes, 'image/jpeg');
  35765. };
  35766. /**
  35767. * Checks if the image can be decoded and displayed by the browser without any
  35768. * further processing such as color space conversions.
  35769. */
  35770. JpegStream.prototype.isNativelySupported =
  35771. function JpegStream_isNativelySupported(xref, res) {
  35772. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  35773. return cs.name === 'DeviceGray' || cs.name === 'DeviceRGB';
  35774. };
  35775. /**
  35776. * Checks if the image can be decoded by the browser.
  35777. */
  35778. JpegStream.prototype.isNativelyDecodable =
  35779. function JpegStream_isNativelyDecodable(xref, res) {
  35780. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  35781. var numComps = cs.numComps;
  35782. return numComps == 1 || numComps == 3;
  35783. };
  35784. return JpegStream;
  35785. })();
  35786. /**
  35787. * For JPEG 2000's we use a library to decode these images and
  35788. * the stream behaves like all the other DecodeStreams.
  35789. */
  35790. var JpxStream = (function JpxStreamClosure() {
  35791. function JpxStream(stream, maybeLength, dict) {
  35792. this.stream = stream;
  35793. this.maybeLength = maybeLength;
  35794. this.dict = dict;
  35795. DecodeStream.call(this, maybeLength);
  35796. }
  35797. JpxStream.prototype = Object.create(DecodeStream.prototype);
  35798. Object.defineProperty(JpxStream.prototype, 'bytes', {
  35799. get: function JpxStream_bytes() {
  35800. // If this.maybeLength is null, we'll get the entire stream.
  35801. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  35802. },
  35803. configurable: true
  35804. });
  35805. JpxStream.prototype.ensureBuffer = function JpxStream_ensureBuffer(req) {
  35806. if (this.bufferLength) {
  35807. return;
  35808. }
  35809. var jpxImage = new JpxImage();
  35810. jpxImage.parse(this.bytes);
  35811. var width = jpxImage.width;
  35812. var height = jpxImage.height;
  35813. var componentsCount = jpxImage.componentsCount;
  35814. var tileCount = jpxImage.tiles.length;
  35815. if (tileCount === 1) {
  35816. this.buffer = jpxImage.tiles[0].items;
  35817. } else {
  35818. var data = new Uint8Array(width * height * componentsCount);
  35819. for (var k = 0; k < tileCount; k++) {
  35820. var tileComponents = jpxImage.tiles[k];
  35821. var tileWidth = tileComponents.width;
  35822. var tileHeight = tileComponents.height;
  35823. var tileLeft = tileComponents.left;
  35824. var tileTop = tileComponents.top;
  35825. var src = tileComponents.items;
  35826. var srcPosition = 0;
  35827. var dataPosition = (width * tileTop + tileLeft) * componentsCount;
  35828. var imgRowSize = width * componentsCount;
  35829. var tileRowSize = tileWidth * componentsCount;
  35830. for (var j = 0; j < tileHeight; j++) {
  35831. var rowBytes = src.subarray(srcPosition, srcPosition + tileRowSize);
  35832. data.set(rowBytes, dataPosition);
  35833. srcPosition += tileRowSize;
  35834. dataPosition += imgRowSize;
  35835. }
  35836. }
  35837. this.buffer = data;
  35838. }
  35839. this.bufferLength = this.buffer.length;
  35840. this.eof = true;
  35841. };
  35842. return JpxStream;
  35843. })();
  35844. /**
  35845. * For JBIG2's we use a library to decode these images and
  35846. * the stream behaves like all the other DecodeStreams.
  35847. */
  35848. var Jbig2Stream = (function Jbig2StreamClosure() {
  35849. function Jbig2Stream(stream, maybeLength, dict) {
  35850. this.stream = stream;
  35851. this.maybeLength = maybeLength;
  35852. this.dict = dict;
  35853. DecodeStream.call(this, maybeLength);
  35854. }
  35855. Jbig2Stream.prototype = Object.create(DecodeStream.prototype);
  35856. Object.defineProperty(Jbig2Stream.prototype, 'bytes', {
  35857. get: function Jbig2Stream_bytes() {
  35858. // If this.maybeLength is null, we'll get the entire stream.
  35859. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  35860. },
  35861. configurable: true
  35862. });
  35863. Jbig2Stream.prototype.ensureBuffer = function Jbig2Stream_ensureBuffer(req) {
  35864. if (this.bufferLength) {
  35865. return;
  35866. }
  35867. var jbig2Image = new Jbig2Image();
  35868. var chunks = [], decodeParams = this.dict.get('DecodeParms');
  35869. // According to the PDF specification, DecodeParms can be either
  35870. // a dictionary, or an array whose elements are dictionaries.
  35871. if (isArray(decodeParams)) {
  35872. if (decodeParams.length > 1) {
  35873. warn('JBIG2 - \'DecodeParms\' array with multiple elements ' +
  35874. 'not supported.');
  35875. }
  35876. decodeParams = decodeParams[0];
  35877. }
  35878. if (decodeParams && decodeParams.has('JBIG2Globals')) {
  35879. var globalsStream = decodeParams.get('JBIG2Globals');
  35880. var globals = globalsStream.getBytes();
  35881. chunks.push({data: globals, start: 0, end: globals.length});
  35882. }
  35883. chunks.push({data: this.bytes, start: 0, end: this.bytes.length});
  35884. var data = jbig2Image.parseChunks(chunks);
  35885. var dataLength = data.length;
  35886. // JBIG2 had black as 1 and white as 0, inverting the colors
  35887. for (var i = 0; i < dataLength; i++) {
  35888. data[i] ^= 0xFF;
  35889. }
  35890. this.buffer = data;
  35891. this.bufferLength = dataLength;
  35892. this.eof = true;
  35893. };
  35894. return Jbig2Stream;
  35895. })();
  35896. var DecryptStream = (function DecryptStreamClosure() {
  35897. function DecryptStream(str, maybeLength, decrypt) {
  35898. this.str = str;
  35899. this.dict = str.dict;
  35900. this.decrypt = decrypt;
  35901. this.nextChunk = null;
  35902. this.initialized = false;
  35903. DecodeStream.call(this, maybeLength);
  35904. }
  35905. var chunkSize = 512;
  35906. DecryptStream.prototype = Object.create(DecodeStream.prototype);
  35907. DecryptStream.prototype.readBlock = function DecryptStream_readBlock() {
  35908. var chunk;
  35909. if (this.initialized) {
  35910. chunk = this.nextChunk;
  35911. } else {
  35912. chunk = this.str.getBytes(chunkSize);
  35913. this.initialized = true;
  35914. }
  35915. if (!chunk || chunk.length === 0) {
  35916. this.eof = true;
  35917. return;
  35918. }
  35919. this.nextChunk = this.str.getBytes(chunkSize);
  35920. var hasMoreData = this.nextChunk && this.nextChunk.length > 0;
  35921. var decrypt = this.decrypt;
  35922. chunk = decrypt(chunk, !hasMoreData);
  35923. var bufferLength = this.bufferLength;
  35924. var i, n = chunk.length;
  35925. var buffer = this.ensureBuffer(bufferLength + n);
  35926. for (i = 0; i < n; i++) {
  35927. buffer[bufferLength++] = chunk[i];
  35928. }
  35929. this.bufferLength = bufferLength;
  35930. };
  35931. return DecryptStream;
  35932. })();
  35933. var Ascii85Stream = (function Ascii85StreamClosure() {
  35934. function Ascii85Stream(str, maybeLength) {
  35935. this.str = str;
  35936. this.dict = str.dict;
  35937. this.input = new Uint8Array(5);
  35938. // Most streams increase in size when decoded, but Ascii85 streams
  35939. // typically shrink by ~20%.
  35940. if (maybeLength) {
  35941. maybeLength = 0.8 * maybeLength;
  35942. }
  35943. DecodeStream.call(this, maybeLength);
  35944. }
  35945. Ascii85Stream.prototype = Object.create(DecodeStream.prototype);
  35946. Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() {
  35947. var TILDA_CHAR = 0x7E; // '~'
  35948. var Z_LOWER_CHAR = 0x7A; // 'z'
  35949. var EOF = -1;
  35950. var str = this.str;
  35951. var c = str.getByte();
  35952. while (Lexer.isSpace(c)) {
  35953. c = str.getByte();
  35954. }
  35955. if (c === EOF || c === TILDA_CHAR) {
  35956. this.eof = true;
  35957. return;
  35958. }
  35959. var bufferLength = this.bufferLength, buffer;
  35960. var i;
  35961. // special code for z
  35962. if (c == Z_LOWER_CHAR) {
  35963. buffer = this.ensureBuffer(bufferLength + 4);
  35964. for (i = 0; i < 4; ++i) {
  35965. buffer[bufferLength + i] = 0;
  35966. }
  35967. this.bufferLength += 4;
  35968. } else {
  35969. var input = this.input;
  35970. input[0] = c;
  35971. for (i = 1; i < 5; ++i) {
  35972. c = str.getByte();
  35973. while (Lexer.isSpace(c)) {
  35974. c = str.getByte();
  35975. }
  35976. input[i] = c;
  35977. if (c === EOF || c == TILDA_CHAR) {
  35978. break;
  35979. }
  35980. }
  35981. buffer = this.ensureBuffer(bufferLength + i - 1);
  35982. this.bufferLength += i - 1;
  35983. // partial ending;
  35984. if (i < 5) {
  35985. for (; i < 5; ++i) {
  35986. input[i] = 0x21 + 84;
  35987. }
  35988. this.eof = true;
  35989. }
  35990. var t = 0;
  35991. for (i = 0; i < 5; ++i) {
  35992. t = t * 85 + (input[i] - 0x21);
  35993. }
  35994. for (i = 3; i >= 0; --i) {
  35995. buffer[bufferLength + i] = t & 0xFF;
  35996. t >>= 8;
  35997. }
  35998. }
  35999. };
  36000. return Ascii85Stream;
  36001. })();
  36002. var AsciiHexStream = (function AsciiHexStreamClosure() {
  36003. function AsciiHexStream(str, maybeLength) {
  36004. this.str = str;
  36005. this.dict = str.dict;
  36006. this.firstDigit = -1;
  36007. // Most streams increase in size when decoded, but AsciiHex streams shrink
  36008. // by 50%.
  36009. if (maybeLength) {
  36010. maybeLength = 0.5 * maybeLength;
  36011. }
  36012. DecodeStream.call(this, maybeLength);
  36013. }
  36014. AsciiHexStream.prototype = Object.create(DecodeStream.prototype);
  36015. AsciiHexStream.prototype.readBlock = function AsciiHexStream_readBlock() {
  36016. var UPSTREAM_BLOCK_SIZE = 8000;
  36017. var bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
  36018. if (!bytes.length) {
  36019. this.eof = true;
  36020. return;
  36021. }
  36022. var maxDecodeLength = (bytes.length + 1) >> 1;
  36023. var buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
  36024. var bufferLength = this.bufferLength;
  36025. var firstDigit = this.firstDigit;
  36026. for (var i = 0, ii = bytes.length; i < ii; i++) {
  36027. var ch = bytes[i], digit;
  36028. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  36029. digit = ch & 0x0F;
  36030. } else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  36031. // 'A'-'Z', 'a'-'z'
  36032. digit = (ch & 0x0F) + 9;
  36033. } else if (ch === 0x3E) { // '>'
  36034. this.eof = true;
  36035. break;
  36036. } else { // probably whitespace
  36037. continue; // ignoring
  36038. }
  36039. if (firstDigit < 0) {
  36040. firstDigit = digit;
  36041. } else {
  36042. buffer[bufferLength++] = (firstDigit << 4) | digit;
  36043. firstDigit = -1;
  36044. }
  36045. }
  36046. if (firstDigit >= 0 && this.eof) {
  36047. // incomplete byte
  36048. buffer[bufferLength++] = (firstDigit << 4);
  36049. firstDigit = -1;
  36050. }
  36051. this.firstDigit = firstDigit;
  36052. this.bufferLength = bufferLength;
  36053. };
  36054. return AsciiHexStream;
  36055. })();
  36056. var RunLengthStream = (function RunLengthStreamClosure() {
  36057. function RunLengthStream(str, maybeLength) {
  36058. this.str = str;
  36059. this.dict = str.dict;
  36060. DecodeStream.call(this, maybeLength);
  36061. }
  36062. RunLengthStream.prototype = Object.create(DecodeStream.prototype);
  36063. RunLengthStream.prototype.readBlock = function RunLengthStream_readBlock() {
  36064. // The repeatHeader has following format. The first byte defines type of run
  36065. // and amount of bytes to repeat/copy: n = 0 through 127 - copy next n bytes
  36066. // (in addition to the second byte from the header), n = 129 through 255 -
  36067. // duplicate the second byte from the header (257 - n) times, n = 128 - end.
  36068. var repeatHeader = this.str.getBytes(2);
  36069. if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] == 128) {
  36070. this.eof = true;
  36071. return;
  36072. }
  36073. var buffer;
  36074. var bufferLength = this.bufferLength;
  36075. var n = repeatHeader[0];
  36076. if (n < 128) {
  36077. // copy n bytes
  36078. buffer = this.ensureBuffer(bufferLength + n + 1);
  36079. buffer[bufferLength++] = repeatHeader[1];
  36080. if (n > 0) {
  36081. var source = this.str.getBytes(n);
  36082. buffer.set(source, bufferLength);
  36083. bufferLength += n;
  36084. }
  36085. } else {
  36086. n = 257 - n;
  36087. var b = repeatHeader[1];
  36088. buffer = this.ensureBuffer(bufferLength + n + 1);
  36089. for (var i = 0; i < n; i++) {
  36090. buffer[bufferLength++] = b;
  36091. }
  36092. }
  36093. this.bufferLength = bufferLength;
  36094. };
  36095. return RunLengthStream;
  36096. })();
  36097. var CCITTFaxStream = (function CCITTFaxStreamClosure() {
  36098. var ccittEOL = -2;
  36099. var twoDimPass = 0;
  36100. var twoDimHoriz = 1;
  36101. var twoDimVert0 = 2;
  36102. var twoDimVertR1 = 3;
  36103. var twoDimVertL1 = 4;
  36104. var twoDimVertR2 = 5;
  36105. var twoDimVertL2 = 6;
  36106. var twoDimVertR3 = 7;
  36107. var twoDimVertL3 = 8;
  36108. var twoDimTable = [
  36109. [-1, -1], [-1, -1], // 000000x
  36110. [7, twoDimVertL3], // 0000010
  36111. [7, twoDimVertR3], // 0000011
  36112. [6, twoDimVertL2], [6, twoDimVertL2], // 000010x
  36113. [6, twoDimVertR2], [6, twoDimVertR2], // 000011x
  36114. [4, twoDimPass], [4, twoDimPass], // 0001xxx
  36115. [4, twoDimPass], [4, twoDimPass],
  36116. [4, twoDimPass], [4, twoDimPass],
  36117. [4, twoDimPass], [4, twoDimPass],
  36118. [3, twoDimHoriz], [3, twoDimHoriz], // 001xxxx
  36119. [3, twoDimHoriz], [3, twoDimHoriz],
  36120. [3, twoDimHoriz], [3, twoDimHoriz],
  36121. [3, twoDimHoriz], [3, twoDimHoriz],
  36122. [3, twoDimHoriz], [3, twoDimHoriz],
  36123. [3, twoDimHoriz], [3, twoDimHoriz],
  36124. [3, twoDimHoriz], [3, twoDimHoriz],
  36125. [3, twoDimHoriz], [3, twoDimHoriz],
  36126. [3, twoDimVertL1], [3, twoDimVertL1], // 010xxxx
  36127. [3, twoDimVertL1], [3, twoDimVertL1],
  36128. [3, twoDimVertL1], [3, twoDimVertL1],
  36129. [3, twoDimVertL1], [3, twoDimVertL1],
  36130. [3, twoDimVertL1], [3, twoDimVertL1],
  36131. [3, twoDimVertL1], [3, twoDimVertL1],
  36132. [3, twoDimVertL1], [3, twoDimVertL1],
  36133. [3, twoDimVertL1], [3, twoDimVertL1],
  36134. [3, twoDimVertR1], [3, twoDimVertR1], // 011xxxx
  36135. [3, twoDimVertR1], [3, twoDimVertR1],
  36136. [3, twoDimVertR1], [3, twoDimVertR1],
  36137. [3, twoDimVertR1], [3, twoDimVertR1],
  36138. [3, twoDimVertR1], [3, twoDimVertR1],
  36139. [3, twoDimVertR1], [3, twoDimVertR1],
  36140. [3, twoDimVertR1], [3, twoDimVertR1],
  36141. [3, twoDimVertR1], [3, twoDimVertR1],
  36142. [1, twoDimVert0], [1, twoDimVert0], // 1xxxxxx
  36143. [1, twoDimVert0], [1, twoDimVert0],
  36144. [1, twoDimVert0], [1, twoDimVert0],
  36145. [1, twoDimVert0], [1, twoDimVert0],
  36146. [1, twoDimVert0], [1, twoDimVert0],
  36147. [1, twoDimVert0], [1, twoDimVert0],
  36148. [1, twoDimVert0], [1, twoDimVert0],
  36149. [1, twoDimVert0], [1, twoDimVert0],
  36150. [1, twoDimVert0], [1, twoDimVert0],
  36151. [1, twoDimVert0], [1, twoDimVert0],
  36152. [1, twoDimVert0], [1, twoDimVert0],
  36153. [1, twoDimVert0], [1, twoDimVert0],
  36154. [1, twoDimVert0], [1, twoDimVert0],
  36155. [1, twoDimVert0], [1, twoDimVert0],
  36156. [1, twoDimVert0], [1, twoDimVert0],
  36157. [1, twoDimVert0], [1, twoDimVert0],
  36158. [1, twoDimVert0], [1, twoDimVert0],
  36159. [1, twoDimVert0], [1, twoDimVert0],
  36160. [1, twoDimVert0], [1, twoDimVert0],
  36161. [1, twoDimVert0], [1, twoDimVert0],
  36162. [1, twoDimVert0], [1, twoDimVert0],
  36163. [1, twoDimVert0], [1, twoDimVert0],
  36164. [1, twoDimVert0], [1, twoDimVert0],
  36165. [1, twoDimVert0], [1, twoDimVert0],
  36166. [1, twoDimVert0], [1, twoDimVert0],
  36167. [1, twoDimVert0], [1, twoDimVert0],
  36168. [1, twoDimVert0], [1, twoDimVert0],
  36169. [1, twoDimVert0], [1, twoDimVert0],
  36170. [1, twoDimVert0], [1, twoDimVert0],
  36171. [1, twoDimVert0], [1, twoDimVert0],
  36172. [1, twoDimVert0], [1, twoDimVert0],
  36173. [1, twoDimVert0], [1, twoDimVert0]
  36174. ];
  36175. var whiteTable1 = [
  36176. [-1, -1], // 00000
  36177. [12, ccittEOL], // 00001
  36178. [-1, -1], [-1, -1], // 0001x
  36179. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 001xx
  36180. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 010xx
  36181. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 011xx
  36182. [11, 1792], [11, 1792], // 1000x
  36183. [12, 1984], // 10010
  36184. [12, 2048], // 10011
  36185. [12, 2112], // 10100
  36186. [12, 2176], // 10101
  36187. [12, 2240], // 10110
  36188. [12, 2304], // 10111
  36189. [11, 1856], [11, 1856], // 1100x
  36190. [11, 1920], [11, 1920], // 1101x
  36191. [12, 2368], // 11100
  36192. [12, 2432], // 11101
  36193. [12, 2496], // 11110
  36194. [12, 2560] // 11111
  36195. ];
  36196. var whiteTable2 = [
  36197. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000000xx
  36198. [8, 29], [8, 29], // 00000010x
  36199. [8, 30], [8, 30], // 00000011x
  36200. [8, 45], [8, 45], // 00000100x
  36201. [8, 46], [8, 46], // 00000101x
  36202. [7, 22], [7, 22], [7, 22], [7, 22], // 0000011xx
  36203. [7, 23], [7, 23], [7, 23], [7, 23], // 0000100xx
  36204. [8, 47], [8, 47], // 00001010x
  36205. [8, 48], [8, 48], // 00001011x
  36206. [6, 13], [6, 13], [6, 13], [6, 13], // 000011xxx
  36207. [6, 13], [6, 13], [6, 13], [6, 13],
  36208. [7, 20], [7, 20], [7, 20], [7, 20], // 0001000xx
  36209. [8, 33], [8, 33], // 00010010x
  36210. [8, 34], [8, 34], // 00010011x
  36211. [8, 35], [8, 35], // 00010100x
  36212. [8, 36], [8, 36], // 00010101x
  36213. [8, 37], [8, 37], // 00010110x
  36214. [8, 38], [8, 38], // 00010111x
  36215. [7, 19], [7, 19], [7, 19], [7, 19], // 0001100xx
  36216. [8, 31], [8, 31], // 00011010x
  36217. [8, 32], [8, 32], // 00011011x
  36218. [6, 1], [6, 1], [6, 1], [6, 1], // 000111xxx
  36219. [6, 1], [6, 1], [6, 1], [6, 1],
  36220. [6, 12], [6, 12], [6, 12], [6, 12], // 001000xxx
  36221. [6, 12], [6, 12], [6, 12], [6, 12],
  36222. [8, 53], [8, 53], // 00100100x
  36223. [8, 54], [8, 54], // 00100101x
  36224. [7, 26], [7, 26], [7, 26], [7, 26], // 0010011xx
  36225. [8, 39], [8, 39], // 00101000x
  36226. [8, 40], [8, 40], // 00101001x
  36227. [8, 41], [8, 41], // 00101010x
  36228. [8, 42], [8, 42], // 00101011x
  36229. [8, 43], [8, 43], // 00101100x
  36230. [8, 44], [8, 44], // 00101101x
  36231. [7, 21], [7, 21], [7, 21], [7, 21], // 0010111xx
  36232. [7, 28], [7, 28], [7, 28], [7, 28], // 0011000xx
  36233. [8, 61], [8, 61], // 00110010x
  36234. [8, 62], [8, 62], // 00110011x
  36235. [8, 63], [8, 63], // 00110100x
  36236. [8, 0], [8, 0], // 00110101x
  36237. [8, 320], [8, 320], // 00110110x
  36238. [8, 384], [8, 384], // 00110111x
  36239. [5, 10], [5, 10], [5, 10], [5, 10], // 00111xxxx
  36240. [5, 10], [5, 10], [5, 10], [5, 10],
  36241. [5, 10], [5, 10], [5, 10], [5, 10],
  36242. [5, 10], [5, 10], [5, 10], [5, 10],
  36243. [5, 11], [5, 11], [5, 11], [5, 11], // 01000xxxx
  36244. [5, 11], [5, 11], [5, 11], [5, 11],
  36245. [5, 11], [5, 11], [5, 11], [5, 11],
  36246. [5, 11], [5, 11], [5, 11], [5, 11],
  36247. [7, 27], [7, 27], [7, 27], [7, 27], // 0100100xx
  36248. [8, 59], [8, 59], // 01001010x
  36249. [8, 60], [8, 60], // 01001011x
  36250. [9, 1472], // 010011000
  36251. [9, 1536], // 010011001
  36252. [9, 1600], // 010011010
  36253. [9, 1728], // 010011011
  36254. [7, 18], [7, 18], [7, 18], [7, 18], // 0100111xx
  36255. [7, 24], [7, 24], [7, 24], [7, 24], // 0101000xx
  36256. [8, 49], [8, 49], // 01010010x
  36257. [8, 50], [8, 50], // 01010011x
  36258. [8, 51], [8, 51], // 01010100x
  36259. [8, 52], [8, 52], // 01010101x
  36260. [7, 25], [7, 25], [7, 25], [7, 25], // 0101011xx
  36261. [8, 55], [8, 55], // 01011000x
  36262. [8, 56], [8, 56], // 01011001x
  36263. [8, 57], [8, 57], // 01011010x
  36264. [8, 58], [8, 58], // 01011011x
  36265. [6, 192], [6, 192], [6, 192], [6, 192], // 010111xxx
  36266. [6, 192], [6, 192], [6, 192], [6, 192],
  36267. [6, 1664], [6, 1664], [6, 1664], [6, 1664], // 011000xxx
  36268. [6, 1664], [6, 1664], [6, 1664], [6, 1664],
  36269. [8, 448], [8, 448], // 01100100x
  36270. [8, 512], [8, 512], // 01100101x
  36271. [9, 704], // 011001100
  36272. [9, 768], // 011001101
  36273. [8, 640], [8, 640], // 01100111x
  36274. [8, 576], [8, 576], // 01101000x
  36275. [9, 832], // 011010010
  36276. [9, 896], // 011010011
  36277. [9, 960], // 011010100
  36278. [9, 1024], // 011010101
  36279. [9, 1088], // 011010110
  36280. [9, 1152], // 011010111
  36281. [9, 1216], // 011011000
  36282. [9, 1280], // 011011001
  36283. [9, 1344], // 011011010
  36284. [9, 1408], // 011011011
  36285. [7, 256], [7, 256], [7, 256], [7, 256], // 0110111xx
  36286. [4, 2], [4, 2], [4, 2], [4, 2], // 0111xxxxx
  36287. [4, 2], [4, 2], [4, 2], [4, 2],
  36288. [4, 2], [4, 2], [4, 2], [4, 2],
  36289. [4, 2], [4, 2], [4, 2], [4, 2],
  36290. [4, 2], [4, 2], [4, 2], [4, 2],
  36291. [4, 2], [4, 2], [4, 2], [4, 2],
  36292. [4, 2], [4, 2], [4, 2], [4, 2],
  36293. [4, 2], [4, 2], [4, 2], [4, 2],
  36294. [4, 3], [4, 3], [4, 3], [4, 3], // 1000xxxxx
  36295. [4, 3], [4, 3], [4, 3], [4, 3],
  36296. [4, 3], [4, 3], [4, 3], [4, 3],
  36297. [4, 3], [4, 3], [4, 3], [4, 3],
  36298. [4, 3], [4, 3], [4, 3], [4, 3],
  36299. [4, 3], [4, 3], [4, 3], [4, 3],
  36300. [4, 3], [4, 3], [4, 3], [4, 3],
  36301. [4, 3], [4, 3], [4, 3], [4, 3],
  36302. [5, 128], [5, 128], [5, 128], [5, 128], // 10010xxxx
  36303. [5, 128], [5, 128], [5, 128], [5, 128],
  36304. [5, 128], [5, 128], [5, 128], [5, 128],
  36305. [5, 128], [5, 128], [5, 128], [5, 128],
  36306. [5, 8], [5, 8], [5, 8], [5, 8], // 10011xxxx
  36307. [5, 8], [5, 8], [5, 8], [5, 8],
  36308. [5, 8], [5, 8], [5, 8], [5, 8],
  36309. [5, 8], [5, 8], [5, 8], [5, 8],
  36310. [5, 9], [5, 9], [5, 9], [5, 9], // 10100xxxx
  36311. [5, 9], [5, 9], [5, 9], [5, 9],
  36312. [5, 9], [5, 9], [5, 9], [5, 9],
  36313. [5, 9], [5, 9], [5, 9], [5, 9],
  36314. [6, 16], [6, 16], [6, 16], [6, 16], // 101010xxx
  36315. [6, 16], [6, 16], [6, 16], [6, 16],
  36316. [6, 17], [6, 17], [6, 17], [6, 17], // 101011xxx
  36317. [6, 17], [6, 17], [6, 17], [6, 17],
  36318. [4, 4], [4, 4], [4, 4], [4, 4], // 1011xxxxx
  36319. [4, 4], [4, 4], [4, 4], [4, 4],
  36320. [4, 4], [4, 4], [4, 4], [4, 4],
  36321. [4, 4], [4, 4], [4, 4], [4, 4],
  36322. [4, 4], [4, 4], [4, 4], [4, 4],
  36323. [4, 4], [4, 4], [4, 4], [4, 4],
  36324. [4, 4], [4, 4], [4, 4], [4, 4],
  36325. [4, 4], [4, 4], [4, 4], [4, 4],
  36326. [4, 5], [4, 5], [4, 5], [4, 5], // 1100xxxxx
  36327. [4, 5], [4, 5], [4, 5], [4, 5],
  36328. [4, 5], [4, 5], [4, 5], [4, 5],
  36329. [4, 5], [4, 5], [4, 5], [4, 5],
  36330. [4, 5], [4, 5], [4, 5], [4, 5],
  36331. [4, 5], [4, 5], [4, 5], [4, 5],
  36332. [4, 5], [4, 5], [4, 5], [4, 5],
  36333. [4, 5], [4, 5], [4, 5], [4, 5],
  36334. [6, 14], [6, 14], [6, 14], [6, 14], // 110100xxx
  36335. [6, 14], [6, 14], [6, 14], [6, 14],
  36336. [6, 15], [6, 15], [6, 15], [6, 15], // 110101xxx
  36337. [6, 15], [6, 15], [6, 15], [6, 15],
  36338. [5, 64], [5, 64], [5, 64], [5, 64], // 11011xxxx
  36339. [5, 64], [5, 64], [5, 64], [5, 64],
  36340. [5, 64], [5, 64], [5, 64], [5, 64],
  36341. [5, 64], [5, 64], [5, 64], [5, 64],
  36342. [4, 6], [4, 6], [4, 6], [4, 6], // 1110xxxxx
  36343. [4, 6], [4, 6], [4, 6], [4, 6],
  36344. [4, 6], [4, 6], [4, 6], [4, 6],
  36345. [4, 6], [4, 6], [4, 6], [4, 6],
  36346. [4, 6], [4, 6], [4, 6], [4, 6],
  36347. [4, 6], [4, 6], [4, 6], [4, 6],
  36348. [4, 6], [4, 6], [4, 6], [4, 6],
  36349. [4, 6], [4, 6], [4, 6], [4, 6],
  36350. [4, 7], [4, 7], [4, 7], [4, 7], // 1111xxxxx
  36351. [4, 7], [4, 7], [4, 7], [4, 7],
  36352. [4, 7], [4, 7], [4, 7], [4, 7],
  36353. [4, 7], [4, 7], [4, 7], [4, 7],
  36354. [4, 7], [4, 7], [4, 7], [4, 7],
  36355. [4, 7], [4, 7], [4, 7], [4, 7],
  36356. [4, 7], [4, 7], [4, 7], [4, 7],
  36357. [4, 7], [4, 7], [4, 7], [4, 7]
  36358. ];
  36359. var blackTable1 = [
  36360. [-1, -1], [-1, -1], // 000000000000x
  36361. [12, ccittEOL], [12, ccittEOL], // 000000000001x
  36362. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000001xx
  36363. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000010xx
  36364. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000011xx
  36365. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000100xx
  36366. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000101xx
  36367. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000110xx
  36368. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000111xx
  36369. [11, 1792], [11, 1792], [11, 1792], [11, 1792], // 00000001000xx
  36370. [12, 1984], [12, 1984], // 000000010010x
  36371. [12, 2048], [12, 2048], // 000000010011x
  36372. [12, 2112], [12, 2112], // 000000010100x
  36373. [12, 2176], [12, 2176], // 000000010101x
  36374. [12, 2240], [12, 2240], // 000000010110x
  36375. [12, 2304], [12, 2304], // 000000010111x
  36376. [11, 1856], [11, 1856], [11, 1856], [11, 1856], // 00000001100xx
  36377. [11, 1920], [11, 1920], [11, 1920], [11, 1920], // 00000001101xx
  36378. [12, 2368], [12, 2368], // 000000011100x
  36379. [12, 2432], [12, 2432], // 000000011101x
  36380. [12, 2496], [12, 2496], // 000000011110x
  36381. [12, 2560], [12, 2560], // 000000011111x
  36382. [10, 18], [10, 18], [10, 18], [10, 18], // 0000001000xxx
  36383. [10, 18], [10, 18], [10, 18], [10, 18],
  36384. [12, 52], [12, 52], // 000000100100x
  36385. [13, 640], // 0000001001010
  36386. [13, 704], // 0000001001011
  36387. [13, 768], // 0000001001100
  36388. [13, 832], // 0000001001101
  36389. [12, 55], [12, 55], // 000000100111x
  36390. [12, 56], [12, 56], // 000000101000x
  36391. [13, 1280], // 0000001010010
  36392. [13, 1344], // 0000001010011
  36393. [13, 1408], // 0000001010100
  36394. [13, 1472], // 0000001010101
  36395. [12, 59], [12, 59], // 000000101011x
  36396. [12, 60], [12, 60], // 000000101100x
  36397. [13, 1536], // 0000001011010
  36398. [13, 1600], // 0000001011011
  36399. [11, 24], [11, 24], [11, 24], [11, 24], // 00000010111xx
  36400. [11, 25], [11, 25], [11, 25], [11, 25], // 00000011000xx
  36401. [13, 1664], // 0000001100100
  36402. [13, 1728], // 0000001100101
  36403. [12, 320], [12, 320], // 000000110011x
  36404. [12, 384], [12, 384], // 000000110100x
  36405. [12, 448], [12, 448], // 000000110101x
  36406. [13, 512], // 0000001101100
  36407. [13, 576], // 0000001101101
  36408. [12, 53], [12, 53], // 000000110111x
  36409. [12, 54], [12, 54], // 000000111000x
  36410. [13, 896], // 0000001110010
  36411. [13, 960], // 0000001110011
  36412. [13, 1024], // 0000001110100
  36413. [13, 1088], // 0000001110101
  36414. [13, 1152], // 0000001110110
  36415. [13, 1216], // 0000001110111
  36416. [10, 64], [10, 64], [10, 64], [10, 64], // 0000001111xxx
  36417. [10, 64], [10, 64], [10, 64], [10, 64]
  36418. ];
  36419. var blackTable2 = [
  36420. [8, 13], [8, 13], [8, 13], [8, 13], // 00000100xxxx
  36421. [8, 13], [8, 13], [8, 13], [8, 13],
  36422. [8, 13], [8, 13], [8, 13], [8, 13],
  36423. [8, 13], [8, 13], [8, 13], [8, 13],
  36424. [11, 23], [11, 23], // 00000101000x
  36425. [12, 50], // 000001010010
  36426. [12, 51], // 000001010011
  36427. [12, 44], // 000001010100
  36428. [12, 45], // 000001010101
  36429. [12, 46], // 000001010110
  36430. [12, 47], // 000001010111
  36431. [12, 57], // 000001011000
  36432. [12, 58], // 000001011001
  36433. [12, 61], // 000001011010
  36434. [12, 256], // 000001011011
  36435. [10, 16], [10, 16], [10, 16], [10, 16], // 0000010111xx
  36436. [10, 17], [10, 17], [10, 17], [10, 17], // 0000011000xx
  36437. [12, 48], // 000001100100
  36438. [12, 49], // 000001100101
  36439. [12, 62], // 000001100110
  36440. [12, 63], // 000001100111
  36441. [12, 30], // 000001101000
  36442. [12, 31], // 000001101001
  36443. [12, 32], // 000001101010
  36444. [12, 33], // 000001101011
  36445. [12, 40], // 000001101100
  36446. [12, 41], // 000001101101
  36447. [11, 22], [11, 22], // 00000110111x
  36448. [8, 14], [8, 14], [8, 14], [8, 14], // 00000111xxxx
  36449. [8, 14], [8, 14], [8, 14], [8, 14],
  36450. [8, 14], [8, 14], [8, 14], [8, 14],
  36451. [8, 14], [8, 14], [8, 14], [8, 14],
  36452. [7, 10], [7, 10], [7, 10], [7, 10], // 0000100xxxxx
  36453. [7, 10], [7, 10], [7, 10], [7, 10],
  36454. [7, 10], [7, 10], [7, 10], [7, 10],
  36455. [7, 10], [7, 10], [7, 10], [7, 10],
  36456. [7, 10], [7, 10], [7, 10], [7, 10],
  36457. [7, 10], [7, 10], [7, 10], [7, 10],
  36458. [7, 10], [7, 10], [7, 10], [7, 10],
  36459. [7, 10], [7, 10], [7, 10], [7, 10],
  36460. [7, 11], [7, 11], [7, 11], [7, 11], // 0000101xxxxx
  36461. [7, 11], [7, 11], [7, 11], [7, 11],
  36462. [7, 11], [7, 11], [7, 11], [7, 11],
  36463. [7, 11], [7, 11], [7, 11], [7, 11],
  36464. [7, 11], [7, 11], [7, 11], [7, 11],
  36465. [7, 11], [7, 11], [7, 11], [7, 11],
  36466. [7, 11], [7, 11], [7, 11], [7, 11],
  36467. [7, 11], [7, 11], [7, 11], [7, 11],
  36468. [9, 15], [9, 15], [9, 15], [9, 15], // 000011000xxx
  36469. [9, 15], [9, 15], [9, 15], [9, 15],
  36470. [12, 128], // 000011001000
  36471. [12, 192], // 000011001001
  36472. [12, 26], // 000011001010
  36473. [12, 27], // 000011001011
  36474. [12, 28], // 000011001100
  36475. [12, 29], // 000011001101
  36476. [11, 19], [11, 19], // 00001100111x
  36477. [11, 20], [11, 20], // 00001101000x
  36478. [12, 34], // 000011010010
  36479. [12, 35], // 000011010011
  36480. [12, 36], // 000011010100
  36481. [12, 37], // 000011010101
  36482. [12, 38], // 000011010110
  36483. [12, 39], // 000011010111
  36484. [11, 21], [11, 21], // 00001101100x
  36485. [12, 42], // 000011011010
  36486. [12, 43], // 000011011011
  36487. [10, 0], [10, 0], [10, 0], [10, 0], // 0000110111xx
  36488. [7, 12], [7, 12], [7, 12], [7, 12], // 0000111xxxxx
  36489. [7, 12], [7, 12], [7, 12], [7, 12],
  36490. [7, 12], [7, 12], [7, 12], [7, 12],
  36491. [7, 12], [7, 12], [7, 12], [7, 12],
  36492. [7, 12], [7, 12], [7, 12], [7, 12],
  36493. [7, 12], [7, 12], [7, 12], [7, 12],
  36494. [7, 12], [7, 12], [7, 12], [7, 12],
  36495. [7, 12], [7, 12], [7, 12], [7, 12]
  36496. ];
  36497. var blackTable3 = [
  36498. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000xx
  36499. [6, 9], // 000100
  36500. [6, 8], // 000101
  36501. [5, 7], [5, 7], // 00011x
  36502. [4, 6], [4, 6], [4, 6], [4, 6], // 0010xx
  36503. [4, 5], [4, 5], [4, 5], [4, 5], // 0011xx
  36504. [3, 1], [3, 1], [3, 1], [3, 1], // 010xxx
  36505. [3, 1], [3, 1], [3, 1], [3, 1],
  36506. [3, 4], [3, 4], [3, 4], [3, 4], // 011xxx
  36507. [3, 4], [3, 4], [3, 4], [3, 4],
  36508. [2, 3], [2, 3], [2, 3], [2, 3], // 10xxxx
  36509. [2, 3], [2, 3], [2, 3], [2, 3],
  36510. [2, 3], [2, 3], [2, 3], [2, 3],
  36511. [2, 3], [2, 3], [2, 3], [2, 3],
  36512. [2, 2], [2, 2], [2, 2], [2, 2], // 11xxxx
  36513. [2, 2], [2, 2], [2, 2], [2, 2],
  36514. [2, 2], [2, 2], [2, 2], [2, 2],
  36515. [2, 2], [2, 2], [2, 2], [2, 2]
  36516. ];
  36517. function CCITTFaxStream(str, maybeLength, params) {
  36518. this.str = str;
  36519. this.dict = str.dict;
  36520. params = params || Dict.empty;
  36521. this.encoding = params.get('K') || 0;
  36522. this.eoline = params.get('EndOfLine') || false;
  36523. this.byteAlign = params.get('EncodedByteAlign') || false;
  36524. this.columns = params.get('Columns') || 1728;
  36525. this.rows = params.get('Rows') || 0;
  36526. var eoblock = params.get('EndOfBlock');
  36527. if (eoblock === null || eoblock === undefined) {
  36528. eoblock = true;
  36529. }
  36530. this.eoblock = eoblock;
  36531. this.black = params.get('BlackIs1') || false;
  36532. this.codingLine = new Uint32Array(this.columns + 1);
  36533. this.refLine = new Uint32Array(this.columns + 2);
  36534. this.codingLine[0] = this.columns;
  36535. this.codingPos = 0;
  36536. this.row = 0;
  36537. this.nextLine2D = this.encoding < 0;
  36538. this.inputBits = 0;
  36539. this.inputBuf = 0;
  36540. this.outputBits = 0;
  36541. var code1;
  36542. while ((code1 = this.lookBits(12)) === 0) {
  36543. this.eatBits(1);
  36544. }
  36545. if (code1 == 1) {
  36546. this.eatBits(12);
  36547. }
  36548. if (this.encoding > 0) {
  36549. this.nextLine2D = !this.lookBits(1);
  36550. this.eatBits(1);
  36551. }
  36552. DecodeStream.call(this, maybeLength);
  36553. }
  36554. CCITTFaxStream.prototype = Object.create(DecodeStream.prototype);
  36555. CCITTFaxStream.prototype.readBlock = function CCITTFaxStream_readBlock() {
  36556. while (!this.eof) {
  36557. var c = this.lookChar();
  36558. this.ensureBuffer(this.bufferLength + 1);
  36559. this.buffer[this.bufferLength++] = c;
  36560. }
  36561. };
  36562. CCITTFaxStream.prototype.addPixels =
  36563. function ccittFaxStreamAddPixels(a1, blackPixels) {
  36564. var codingLine = this.codingLine;
  36565. var codingPos = this.codingPos;
  36566. if (a1 > codingLine[codingPos]) {
  36567. if (a1 > this.columns) {
  36568. info('row is wrong length');
  36569. this.err = true;
  36570. a1 = this.columns;
  36571. }
  36572. if ((codingPos & 1) ^ blackPixels) {
  36573. ++codingPos;
  36574. }
  36575. codingLine[codingPos] = a1;
  36576. }
  36577. this.codingPos = codingPos;
  36578. };
  36579. CCITTFaxStream.prototype.addPixelsNeg =
  36580. function ccittFaxStreamAddPixelsNeg(a1, blackPixels) {
  36581. var codingLine = this.codingLine;
  36582. var codingPos = this.codingPos;
  36583. if (a1 > codingLine[codingPos]) {
  36584. if (a1 > this.columns) {
  36585. info('row is wrong length');
  36586. this.err = true;
  36587. a1 = this.columns;
  36588. }
  36589. if ((codingPos & 1) ^ blackPixels) {
  36590. ++codingPos;
  36591. }
  36592. codingLine[codingPos] = a1;
  36593. } else if (a1 < codingLine[codingPos]) {
  36594. if (a1 < 0) {
  36595. info('invalid code');
  36596. this.err = true;
  36597. a1 = 0;
  36598. }
  36599. while (codingPos > 0 && a1 < codingLine[codingPos - 1]) {
  36600. --codingPos;
  36601. }
  36602. codingLine[codingPos] = a1;
  36603. }
  36604. this.codingPos = codingPos;
  36605. };
  36606. CCITTFaxStream.prototype.lookChar = function CCITTFaxStream_lookChar() {
  36607. var refLine = this.refLine;
  36608. var codingLine = this.codingLine;
  36609. var columns = this.columns;
  36610. var refPos, blackPixels, bits, i;
  36611. if (this.outputBits === 0) {
  36612. if (this.eof) {
  36613. return null;
  36614. }
  36615. this.err = false;
  36616. var code1, code2, code3;
  36617. if (this.nextLine2D) {
  36618. for (i = 0; codingLine[i] < columns; ++i) {
  36619. refLine[i] = codingLine[i];
  36620. }
  36621. refLine[i++] = columns;
  36622. refLine[i] = columns;
  36623. codingLine[0] = 0;
  36624. this.codingPos = 0;
  36625. refPos = 0;
  36626. blackPixels = 0;
  36627. while (codingLine[this.codingPos] < columns) {
  36628. code1 = this.getTwoDimCode();
  36629. switch (code1) {
  36630. case twoDimPass:
  36631. this.addPixels(refLine[refPos + 1], blackPixels);
  36632. if (refLine[refPos + 1] < columns) {
  36633. refPos += 2;
  36634. }
  36635. break;
  36636. case twoDimHoriz:
  36637. code1 = code2 = 0;
  36638. if (blackPixels) {
  36639. do {
  36640. code1 += (code3 = this.getBlackCode());
  36641. } while (code3 >= 64);
  36642. do {
  36643. code2 += (code3 = this.getWhiteCode());
  36644. } while (code3 >= 64);
  36645. } else {
  36646. do {
  36647. code1 += (code3 = this.getWhiteCode());
  36648. } while (code3 >= 64);
  36649. do {
  36650. code2 += (code3 = this.getBlackCode());
  36651. } while (code3 >= 64);
  36652. }
  36653. this.addPixels(codingLine[this.codingPos] +
  36654. code1, blackPixels);
  36655. if (codingLine[this.codingPos] < columns) {
  36656. this.addPixels(codingLine[this.codingPos] + code2,
  36657. blackPixels ^ 1);
  36658. }
  36659. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36660. refLine[refPos] < columns) {
  36661. refPos += 2;
  36662. }
  36663. break;
  36664. case twoDimVertR3:
  36665. this.addPixels(refLine[refPos] + 3, blackPixels);
  36666. blackPixels ^= 1;
  36667. if (codingLine[this.codingPos] < columns) {
  36668. ++refPos;
  36669. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36670. refLine[refPos] < columns) {
  36671. refPos += 2;
  36672. }
  36673. }
  36674. break;
  36675. case twoDimVertR2:
  36676. this.addPixels(refLine[refPos] + 2, blackPixels);
  36677. blackPixels ^= 1;
  36678. if (codingLine[this.codingPos] < columns) {
  36679. ++refPos;
  36680. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36681. refLine[refPos] < columns) {
  36682. refPos += 2;
  36683. }
  36684. }
  36685. break;
  36686. case twoDimVertR1:
  36687. this.addPixels(refLine[refPos] + 1, blackPixels);
  36688. blackPixels ^= 1;
  36689. if (codingLine[this.codingPos] < columns) {
  36690. ++refPos;
  36691. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36692. refLine[refPos] < columns) {
  36693. refPos += 2;
  36694. }
  36695. }
  36696. break;
  36697. case twoDimVert0:
  36698. this.addPixels(refLine[refPos], blackPixels);
  36699. blackPixels ^= 1;
  36700. if (codingLine[this.codingPos] < columns) {
  36701. ++refPos;
  36702. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36703. refLine[refPos] < columns) {
  36704. refPos += 2;
  36705. }
  36706. }
  36707. break;
  36708. case twoDimVertL3:
  36709. this.addPixelsNeg(refLine[refPos] - 3, blackPixels);
  36710. blackPixels ^= 1;
  36711. if (codingLine[this.codingPos] < columns) {
  36712. if (refPos > 0) {
  36713. --refPos;
  36714. } else {
  36715. ++refPos;
  36716. }
  36717. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36718. refLine[refPos] < columns) {
  36719. refPos += 2;
  36720. }
  36721. }
  36722. break;
  36723. case twoDimVertL2:
  36724. this.addPixelsNeg(refLine[refPos] - 2, blackPixels);
  36725. blackPixels ^= 1;
  36726. if (codingLine[this.codingPos] < columns) {
  36727. if (refPos > 0) {
  36728. --refPos;
  36729. } else {
  36730. ++refPos;
  36731. }
  36732. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36733. refLine[refPos] < columns) {
  36734. refPos += 2;
  36735. }
  36736. }
  36737. break;
  36738. case twoDimVertL1:
  36739. this.addPixelsNeg(refLine[refPos] - 1, blackPixels);
  36740. blackPixels ^= 1;
  36741. if (codingLine[this.codingPos] < columns) {
  36742. if (refPos > 0) {
  36743. --refPos;
  36744. } else {
  36745. ++refPos;
  36746. }
  36747. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36748. refLine[refPos] < columns) {
  36749. refPos += 2;
  36750. }
  36751. }
  36752. break;
  36753. case EOF:
  36754. this.addPixels(columns, 0);
  36755. this.eof = true;
  36756. break;
  36757. default:
  36758. info('bad 2d code');
  36759. this.addPixels(columns, 0);
  36760. this.err = true;
  36761. }
  36762. }
  36763. } else {
  36764. codingLine[0] = 0;
  36765. this.codingPos = 0;
  36766. blackPixels = 0;
  36767. while (codingLine[this.codingPos] < columns) {
  36768. code1 = 0;
  36769. if (blackPixels) {
  36770. do {
  36771. code1 += (code3 = this.getBlackCode());
  36772. } while (code3 >= 64);
  36773. } else {
  36774. do {
  36775. code1 += (code3 = this.getWhiteCode());
  36776. } while (code3 >= 64);
  36777. }
  36778. this.addPixels(codingLine[this.codingPos] + code1, blackPixels);
  36779. blackPixels ^= 1;
  36780. }
  36781. }
  36782. if (this.byteAlign) {
  36783. this.inputBits &= ~7;
  36784. }
  36785. var gotEOL = false;
  36786. if (!this.eoblock && this.row == this.rows - 1) {
  36787. this.eof = true;
  36788. } else {
  36789. code1 = this.lookBits(12);
  36790. while (code1 === 0) {
  36791. this.eatBits(1);
  36792. code1 = this.lookBits(12);
  36793. }
  36794. if (code1 == 1) {
  36795. this.eatBits(12);
  36796. gotEOL = true;
  36797. } else if (code1 == EOF) {
  36798. this.eof = true;
  36799. }
  36800. }
  36801. if (!this.eof && this.encoding > 0) {
  36802. this.nextLine2D = !this.lookBits(1);
  36803. this.eatBits(1);
  36804. }
  36805. if (this.eoblock && gotEOL) {
  36806. code1 = this.lookBits(12);
  36807. if (code1 == 1) {
  36808. this.eatBits(12);
  36809. if (this.encoding > 0) {
  36810. this.lookBits(1);
  36811. this.eatBits(1);
  36812. }
  36813. if (this.encoding >= 0) {
  36814. for (i = 0; i < 4; ++i) {
  36815. code1 = this.lookBits(12);
  36816. if (code1 != 1) {
  36817. info('bad rtc code: ' + code1);
  36818. }
  36819. this.eatBits(12);
  36820. if (this.encoding > 0) {
  36821. this.lookBits(1);
  36822. this.eatBits(1);
  36823. }
  36824. }
  36825. }
  36826. this.eof = true;
  36827. }
  36828. } else if (this.err && this.eoline) {
  36829. while (true) {
  36830. code1 = this.lookBits(13);
  36831. if (code1 == EOF) {
  36832. this.eof = true;
  36833. return null;
  36834. }
  36835. if ((code1 >> 1) == 1) {
  36836. break;
  36837. }
  36838. this.eatBits(1);
  36839. }
  36840. this.eatBits(12);
  36841. if (this.encoding > 0) {
  36842. this.eatBits(1);
  36843. this.nextLine2D = !(code1 & 1);
  36844. }
  36845. }
  36846. if (codingLine[0] > 0) {
  36847. this.outputBits = codingLine[this.codingPos = 0];
  36848. } else {
  36849. this.outputBits = codingLine[this.codingPos = 1];
  36850. }
  36851. this.row++;
  36852. }
  36853. var c;
  36854. if (this.outputBits >= 8) {
  36855. c = (this.codingPos & 1) ? 0 : 0xFF;
  36856. this.outputBits -= 8;
  36857. if (this.outputBits === 0 && codingLine[this.codingPos] < columns) {
  36858. this.codingPos++;
  36859. this.outputBits = (codingLine[this.codingPos] -
  36860. codingLine[this.codingPos - 1]);
  36861. }
  36862. } else {
  36863. bits = 8;
  36864. c = 0;
  36865. do {
  36866. if (this.outputBits > bits) {
  36867. c <<= bits;
  36868. if (!(this.codingPos & 1)) {
  36869. c |= 0xFF >> (8 - bits);
  36870. }
  36871. this.outputBits -= bits;
  36872. bits = 0;
  36873. } else {
  36874. c <<= this.outputBits;
  36875. if (!(this.codingPos & 1)) {
  36876. c |= 0xFF >> (8 - this.outputBits);
  36877. }
  36878. bits -= this.outputBits;
  36879. this.outputBits = 0;
  36880. if (codingLine[this.codingPos] < columns) {
  36881. this.codingPos++;
  36882. this.outputBits = (codingLine[this.codingPos] -
  36883. codingLine[this.codingPos - 1]);
  36884. } else if (bits > 0) {
  36885. c <<= bits;
  36886. bits = 0;
  36887. }
  36888. }
  36889. } while (bits);
  36890. }
  36891. if (this.black) {
  36892. c ^= 0xFF;
  36893. }
  36894. return c;
  36895. };
  36896. // This functions returns the code found from the table.
  36897. // The start and end parameters set the boundaries for searching the table.
  36898. // The limit parameter is optional. Function returns an array with three
  36899. // values. The first array element indicates whether a valid code is being
  36900. // returned. The second array element is the actual code. The third array
  36901. // element indicates whether EOF was reached.
  36902. CCITTFaxStream.prototype.findTableCode =
  36903. function ccittFaxStreamFindTableCode(start, end, table, limit) {
  36904. var limitValue = limit || 0;
  36905. for (var i = start; i <= end; ++i) {
  36906. var code = this.lookBits(i);
  36907. if (code == EOF) {
  36908. return [true, 1, false];
  36909. }
  36910. if (i < end) {
  36911. code <<= end - i;
  36912. }
  36913. if (!limitValue || code >= limitValue) {
  36914. var p = table[code - limitValue];
  36915. if (p[0] == i) {
  36916. this.eatBits(i);
  36917. return [true, p[1], true];
  36918. }
  36919. }
  36920. }
  36921. return [false, 0, false];
  36922. };
  36923. CCITTFaxStream.prototype.getTwoDimCode =
  36924. function ccittFaxStreamGetTwoDimCode() {
  36925. var code = 0;
  36926. var p;
  36927. if (this.eoblock) {
  36928. code = this.lookBits(7);
  36929. p = twoDimTable[code];
  36930. if (p && p[0] > 0) {
  36931. this.eatBits(p[0]);
  36932. return p[1];
  36933. }
  36934. } else {
  36935. var result = this.findTableCode(1, 7, twoDimTable);
  36936. if (result[0] && result[2]) {
  36937. return result[1];
  36938. }
  36939. }
  36940. info('Bad two dim code');
  36941. return EOF;
  36942. };
  36943. CCITTFaxStream.prototype.getWhiteCode =
  36944. function ccittFaxStreamGetWhiteCode() {
  36945. var code = 0;
  36946. var p;
  36947. if (this.eoblock) {
  36948. code = this.lookBits(12);
  36949. if (code == EOF) {
  36950. return 1;
  36951. }
  36952. if ((code >> 5) === 0) {
  36953. p = whiteTable1[code];
  36954. } else {
  36955. p = whiteTable2[code >> 3];
  36956. }
  36957. if (p[0] > 0) {
  36958. this.eatBits(p[0]);
  36959. return p[1];
  36960. }
  36961. } else {
  36962. var result = this.findTableCode(1, 9, whiteTable2);
  36963. if (result[0]) {
  36964. return result[1];
  36965. }
  36966. result = this.findTableCode(11, 12, whiteTable1);
  36967. if (result[0]) {
  36968. return result[1];
  36969. }
  36970. }
  36971. info('bad white code');
  36972. this.eatBits(1);
  36973. return 1;
  36974. };
  36975. CCITTFaxStream.prototype.getBlackCode =
  36976. function ccittFaxStreamGetBlackCode() {
  36977. var code, p;
  36978. if (this.eoblock) {
  36979. code = this.lookBits(13);
  36980. if (code == EOF) {
  36981. return 1;
  36982. }
  36983. if ((code >> 7) === 0) {
  36984. p = blackTable1[code];
  36985. } else if ((code >> 9) === 0 && (code >> 7) !== 0) {
  36986. p = blackTable2[(code >> 1) - 64];
  36987. } else {
  36988. p = blackTable3[code >> 7];
  36989. }
  36990. if (p[0] > 0) {
  36991. this.eatBits(p[0]);
  36992. return p[1];
  36993. }
  36994. } else {
  36995. var result = this.findTableCode(2, 6, blackTable3);
  36996. if (result[0]) {
  36997. return result[1];
  36998. }
  36999. result = this.findTableCode(7, 12, blackTable2, 64);
  37000. if (result[0]) {
  37001. return result[1];
  37002. }
  37003. result = this.findTableCode(10, 13, blackTable1);
  37004. if (result[0]) {
  37005. return result[1];
  37006. }
  37007. }
  37008. info('bad black code');
  37009. this.eatBits(1);
  37010. return 1;
  37011. };
  37012. CCITTFaxStream.prototype.lookBits = function CCITTFaxStream_lookBits(n) {
  37013. var c;
  37014. while (this.inputBits < n) {
  37015. if ((c = this.str.getByte()) === -1) {
  37016. if (this.inputBits === 0) {
  37017. return EOF;
  37018. }
  37019. return ((this.inputBuf << (n - this.inputBits)) &
  37020. (0xFFFF >> (16 - n)));
  37021. }
  37022. this.inputBuf = (this.inputBuf << 8) + c;
  37023. this.inputBits += 8;
  37024. }
  37025. return (this.inputBuf >> (this.inputBits - n)) & (0xFFFF >> (16 - n));
  37026. };
  37027. CCITTFaxStream.prototype.eatBits = function CCITTFaxStream_eatBits(n) {
  37028. if ((this.inputBits -= n) < 0) {
  37029. this.inputBits = 0;
  37030. }
  37031. };
  37032. return CCITTFaxStream;
  37033. })();
  37034. var LZWStream = (function LZWStreamClosure() {
  37035. function LZWStream(str, maybeLength, earlyChange) {
  37036. this.str = str;
  37037. this.dict = str.dict;
  37038. this.cachedData = 0;
  37039. this.bitsCached = 0;
  37040. var maxLzwDictionarySize = 4096;
  37041. var lzwState = {
  37042. earlyChange: earlyChange,
  37043. codeLength: 9,
  37044. nextCode: 258,
  37045. dictionaryValues: new Uint8Array(maxLzwDictionarySize),
  37046. dictionaryLengths: new Uint16Array(maxLzwDictionarySize),
  37047. dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize),
  37048. currentSequence: new Uint8Array(maxLzwDictionarySize),
  37049. currentSequenceLength: 0
  37050. };
  37051. for (var i = 0; i < 256; ++i) {
  37052. lzwState.dictionaryValues[i] = i;
  37053. lzwState.dictionaryLengths[i] = 1;
  37054. }
  37055. this.lzwState = lzwState;
  37056. DecodeStream.call(this, maybeLength);
  37057. }
  37058. LZWStream.prototype = Object.create(DecodeStream.prototype);
  37059. LZWStream.prototype.readBits = function LZWStream_readBits(n) {
  37060. var bitsCached = this.bitsCached;
  37061. var cachedData = this.cachedData;
  37062. while (bitsCached < n) {
  37063. var c = this.str.getByte();
  37064. if (c === -1) {
  37065. this.eof = true;
  37066. return null;
  37067. }
  37068. cachedData = (cachedData << 8) | c;
  37069. bitsCached += 8;
  37070. }
  37071. this.bitsCached = (bitsCached -= n);
  37072. this.cachedData = cachedData;
  37073. this.lastCode = null;
  37074. return (cachedData >>> bitsCached) & ((1 << n) - 1);
  37075. };
  37076. LZWStream.prototype.readBlock = function LZWStream_readBlock() {
  37077. var blockSize = 512;
  37078. var estimatedDecodedSize = blockSize * 2, decodedSizeDelta = blockSize;
  37079. var i, j, q;
  37080. var lzwState = this.lzwState;
  37081. if (!lzwState) {
  37082. return; // eof was found
  37083. }
  37084. var earlyChange = lzwState.earlyChange;
  37085. var nextCode = lzwState.nextCode;
  37086. var dictionaryValues = lzwState.dictionaryValues;
  37087. var dictionaryLengths = lzwState.dictionaryLengths;
  37088. var dictionaryPrevCodes = lzwState.dictionaryPrevCodes;
  37089. var codeLength = lzwState.codeLength;
  37090. var prevCode = lzwState.prevCode;
  37091. var currentSequence = lzwState.currentSequence;
  37092. var currentSequenceLength = lzwState.currentSequenceLength;
  37093. var decodedLength = 0;
  37094. var currentBufferLength = this.bufferLength;
  37095. var buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  37096. for (i = 0; i < blockSize; i++) {
  37097. var code = this.readBits(codeLength);
  37098. var hasPrev = currentSequenceLength > 0;
  37099. if (code < 256) {
  37100. currentSequence[0] = code;
  37101. currentSequenceLength = 1;
  37102. } else if (code >= 258) {
  37103. if (code < nextCode) {
  37104. currentSequenceLength = dictionaryLengths[code];
  37105. for (j = currentSequenceLength - 1, q = code; j >= 0; j--) {
  37106. currentSequence[j] = dictionaryValues[q];
  37107. q = dictionaryPrevCodes[q];
  37108. }
  37109. } else {
  37110. currentSequence[currentSequenceLength++] = currentSequence[0];
  37111. }
  37112. } else if (code == 256) {
  37113. codeLength = 9;
  37114. nextCode = 258;
  37115. currentSequenceLength = 0;
  37116. continue;
  37117. } else {
  37118. this.eof = true;
  37119. delete this.lzwState;
  37120. break;
  37121. }
  37122. if (hasPrev) {
  37123. dictionaryPrevCodes[nextCode] = prevCode;
  37124. dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1;
  37125. dictionaryValues[nextCode] = currentSequence[0];
  37126. nextCode++;
  37127. codeLength = (nextCode + earlyChange) & (nextCode + earlyChange - 1) ?
  37128. codeLength : Math.min(Math.log(nextCode + earlyChange) /
  37129. 0.6931471805599453 + 1, 12) | 0;
  37130. }
  37131. prevCode = code;
  37132. decodedLength += currentSequenceLength;
  37133. if (estimatedDecodedSize < decodedLength) {
  37134. do {
  37135. estimatedDecodedSize += decodedSizeDelta;
  37136. } while (estimatedDecodedSize < decodedLength);
  37137. buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  37138. }
  37139. for (j = 0; j < currentSequenceLength; j++) {
  37140. buffer[currentBufferLength++] = currentSequence[j];
  37141. }
  37142. }
  37143. lzwState.nextCode = nextCode;
  37144. lzwState.codeLength = codeLength;
  37145. lzwState.prevCode = prevCode;
  37146. lzwState.currentSequenceLength = currentSequenceLength;
  37147. this.bufferLength = currentBufferLength;
  37148. };
  37149. return LZWStream;
  37150. })();
  37151. var NullStream = (function NullStreamClosure() {
  37152. function NullStream() {
  37153. Stream.call(this, new Uint8Array(0));
  37154. }
  37155. NullStream.prototype = Stream.prototype;
  37156. return NullStream;
  37157. })();
  37158. var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
  37159. setup: function wphSetup(handler) {
  37160. var pdfManager;
  37161. function loadDocument(recoveryMode) {
  37162. var loadDocumentCapability = createPromiseCapability();
  37163. var parseSuccess = function parseSuccess() {
  37164. var numPagesPromise = pdfManager.ensureDoc('numPages');
  37165. var fingerprintPromise = pdfManager.ensureDoc('fingerprint');
  37166. var encryptedPromise = pdfManager.ensureXRef('encrypt');
  37167. Promise.all([numPagesPromise, fingerprintPromise,
  37168. encryptedPromise]).then(function onDocReady(results) {
  37169. var doc = {
  37170. numPages: results[0],
  37171. fingerprint: results[1],
  37172. encrypted: !!results[2],
  37173. };
  37174. loadDocumentCapability.resolve(doc);
  37175. },
  37176. parseFailure);
  37177. };
  37178. var parseFailure = function parseFailure(e) {
  37179. loadDocumentCapability.reject(e);
  37180. };
  37181. pdfManager.ensureDoc('checkHeader', []).then(function() {
  37182. pdfManager.ensureDoc('parseStartXRef', []).then(function() {
  37183. pdfManager.ensureDoc('parse', [recoveryMode]).then(
  37184. parseSuccess, parseFailure);
  37185. }, parseFailure);
  37186. }, parseFailure);
  37187. return loadDocumentCapability.promise;
  37188. }
  37189. function getPdfManager(data) {
  37190. var pdfManagerCapability = createPromiseCapability();
  37191. var source = data.source;
  37192. var disableRange = data.disableRange;
  37193. if (source.data) {
  37194. try {
  37195. pdfManager = new LocalPdfManager(source.data, source.password);
  37196. pdfManagerCapability.resolve();
  37197. } catch (ex) {
  37198. pdfManagerCapability.reject(ex);
  37199. }
  37200. return pdfManagerCapability.promise;
  37201. } else if (source.chunkedViewerLoading) {
  37202. try {
  37203. pdfManager = new NetworkPdfManager(source, handler);
  37204. pdfManagerCapability.resolve();
  37205. } catch (ex) {
  37206. pdfManagerCapability.reject(ex);
  37207. }
  37208. return pdfManagerCapability.promise;
  37209. }
  37210. var networkManager = new NetworkManager(source.url, {
  37211. httpHeaders: source.httpHeaders,
  37212. withCredentials: source.withCredentials
  37213. });
  37214. var fullRequestXhrId = networkManager.requestFull({
  37215. onHeadersReceived: function onHeadersReceived() {
  37216. if (disableRange) {
  37217. return;
  37218. }
  37219. var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
  37220. if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
  37221. return;
  37222. }
  37223. var contentEncoding =
  37224. fullRequestXhr.getResponseHeader('Content-Encoding') || 'identity';
  37225. if (contentEncoding !== 'identity') {
  37226. return;
  37227. }
  37228. var length = fullRequestXhr.getResponseHeader('Content-Length');
  37229. length = parseInt(length, 10);
  37230. if (!isInt(length)) {
  37231. return;
  37232. }
  37233. source.length = length;
  37234. if (length <= 2 * RANGE_CHUNK_SIZE) {
  37235. // The file size is smaller than the size of two chunks, so it does
  37236. // not make any sense to abort the request and retry with a range
  37237. // request.
  37238. return;
  37239. }
  37240. // NOTE: by cancelling the full request, and then issuing range
  37241. // requests, there will be an issue for sites where you can only
  37242. // request the pdf once. However, if this is the case, then the
  37243. // server should not be returning that it can support range requests.
  37244. networkManager.abortRequest(fullRequestXhrId);
  37245. try {
  37246. pdfManager = new NetworkPdfManager(source, handler);
  37247. pdfManagerCapability.resolve(pdfManager);
  37248. } catch (ex) {
  37249. pdfManagerCapability.reject(ex);
  37250. }
  37251. },
  37252. onDone: function onDone(args) {
  37253. // the data is array, instantiating directly from it
  37254. try {
  37255. pdfManager = new LocalPdfManager(args.chunk, source.password);
  37256. pdfManagerCapability.resolve();
  37257. } catch (ex) {
  37258. pdfManagerCapability.reject(ex);
  37259. }
  37260. },
  37261. onError: function onError(status) {
  37262. if (status == 404) {
  37263. var exception = new MissingPDFException('Missing PDF "' +
  37264. source.url + '".');
  37265. handler.send('MissingPDF', { exception: exception });
  37266. } else {
  37267. handler.send('DocError', 'Unexpected server response (' +
  37268. status + ') while retrieving PDF "' +
  37269. source.url + '".');
  37270. }
  37271. },
  37272. onProgress: function onProgress(evt) {
  37273. handler.send('DocProgress', {
  37274. loaded: evt.loaded,
  37275. total: evt.lengthComputable ? evt.total : source.length
  37276. });
  37277. }
  37278. });
  37279. return pdfManagerCapability.promise;
  37280. }
  37281. handler.on('test', function wphSetupTest(data) {
  37282. // check if Uint8Array can be sent to worker
  37283. if (!(data instanceof Uint8Array)) {
  37284. handler.send('test', false);
  37285. return;
  37286. }
  37287. // making sure postMessage transfers are working
  37288. var supportTransfers = data[0] === 255;
  37289. handler.postMessageTransfers = supportTransfers;
  37290. // check if the response property is supported by xhr
  37291. var xhr = new XMLHttpRequest();
  37292. var responseExists = 'response' in xhr;
  37293. // check if the property is actually implemented
  37294. try {
  37295. var dummy = xhr.responseType;
  37296. } catch (e) {
  37297. responseExists = false;
  37298. }
  37299. if (!responseExists) {
  37300. handler.send('test', false);
  37301. return;
  37302. }
  37303. handler.send('test', {
  37304. supportTypedArray: true,
  37305. supportTransfers: supportTransfers
  37306. });
  37307. });
  37308. handler.on('GetDocRequest', function wphSetupDoc(data) {
  37309. var onSuccess = function(doc) {
  37310. handler.send('GetDoc', { pdfInfo: doc });
  37311. };
  37312. var onFailure = function(e) {
  37313. if (e instanceof PasswordException) {
  37314. if (e.code === PasswordResponses.NEED_PASSWORD) {
  37315. handler.send('NeedPassword', {
  37316. exception: e
  37317. });
  37318. } else if (e.code === PasswordResponses.INCORRECT_PASSWORD) {
  37319. handler.send('IncorrectPassword', {
  37320. exception: e
  37321. });
  37322. }
  37323. } else if (e instanceof InvalidPDFException) {
  37324. handler.send('InvalidPDF', {
  37325. exception: e
  37326. });
  37327. } else if (e instanceof MissingPDFException) {
  37328. handler.send('MissingPDF', {
  37329. exception: e
  37330. });
  37331. } else {
  37332. handler.send('UnknownError', {
  37333. exception: new UnknownErrorException(e.message, e.toString())
  37334. });
  37335. }
  37336. };
  37337. PDFJS.maxImageSize = data.maxImageSize === undefined ?
  37338. -1 : data.maxImageSize;
  37339. PDFJS.disableFontFace = data.disableFontFace;
  37340. PDFJS.disableCreateObjectURL = data.disableCreateObjectURL;
  37341. PDFJS.verbosity = data.verbosity;
  37342. PDFJS.cMapUrl = data.cMapUrl === undefined ?
  37343. null : data.cMapUrl;
  37344. PDFJS.cMapPacked = data.cMapPacked === true;
  37345. getPdfManager(data).then(function () {
  37346. pdfManager.onLoadedStream().then(function(stream) {
  37347. handler.send('DataLoaded', { length: stream.bytes.byteLength });
  37348. });
  37349. }).then(function pdfManagerReady() {
  37350. loadDocument(false).then(onSuccess, function loadFailure(ex) {
  37351. // Try again with recoveryMode == true
  37352. if (!(ex instanceof XRefParseException)) {
  37353. if (ex instanceof PasswordException) {
  37354. // after password exception prepare to receive a new password
  37355. // to repeat loading
  37356. pdfManager.passwordChanged().then(pdfManagerReady);
  37357. }
  37358. onFailure(ex);
  37359. return;
  37360. }
  37361. pdfManager.requestLoadedStream();
  37362. pdfManager.onLoadedStream().then(function() {
  37363. loadDocument(true).then(onSuccess, onFailure);
  37364. });
  37365. }, onFailure);
  37366. }, onFailure);
  37367. });
  37368. handler.on('GetPage', function wphSetupGetPage(data) {
  37369. return pdfManager.getPage(data.pageIndex).then(function(page) {
  37370. var rotatePromise = pdfManager.ensure(page, 'rotate');
  37371. var refPromise = pdfManager.ensure(page, 'ref');
  37372. var viewPromise = pdfManager.ensure(page, 'view');
  37373. return Promise.all([rotatePromise, refPromise, viewPromise]).then(
  37374. function(results) {
  37375. return {
  37376. rotate: results[0],
  37377. ref: results[1],
  37378. view: results[2]
  37379. };
  37380. });
  37381. });
  37382. });
  37383. handler.on('GetPageIndex', function wphSetupGetPageIndex(data) {
  37384. var ref = new Ref(data.ref.num, data.ref.gen);
  37385. var catalog = pdfManager.pdfDocument.catalog;
  37386. return catalog.getPageIndex(ref);
  37387. });
  37388. handler.on('GetDestinations',
  37389. function wphSetupGetDestinations(data) {
  37390. return pdfManager.ensureCatalog('destinations');
  37391. }
  37392. );
  37393. handler.on('GetAttachments',
  37394. function wphSetupGetAttachments(data) {
  37395. return pdfManager.ensureCatalog('attachments');
  37396. }
  37397. );
  37398. handler.on('GetJavaScript',
  37399. function wphSetupGetJavaScript(data) {
  37400. return pdfManager.ensureCatalog('javaScript');
  37401. }
  37402. );
  37403. handler.on('GetOutline',
  37404. function wphSetupGetOutline(data) {
  37405. return pdfManager.ensureCatalog('documentOutline');
  37406. }
  37407. );
  37408. handler.on('GetMetadata',
  37409. function wphSetupGetMetadata(data) {
  37410. return Promise.all([pdfManager.ensureDoc('documentInfo'),
  37411. pdfManager.ensureCatalog('metadata')]);
  37412. }
  37413. );
  37414. handler.on('GetData', function wphSetupGetData(data) {
  37415. pdfManager.requestLoadedStream();
  37416. return pdfManager.onLoadedStream().then(function(stream) {
  37417. return stream.bytes;
  37418. });
  37419. });
  37420. handler.on('GetStats',
  37421. function wphSetupGetStats(data) {
  37422. return pdfManager.pdfDocument.xref.stats;
  37423. }
  37424. );
  37425. handler.on('UpdatePassword', function wphSetupUpdatePassword(data) {
  37426. pdfManager.updatePassword(data);
  37427. });
  37428. handler.on('GetAnnotations', function wphSetupGetAnnotations(data) {
  37429. return pdfManager.getPage(data.pageIndex).then(function(page) {
  37430. return pdfManager.ensure(page, 'getAnnotationsData', []);
  37431. });
  37432. });
  37433. handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
  37434. pdfManager.getPage(data.pageIndex).then(function(page) {
  37435. var pageNum = data.pageIndex + 1;
  37436. var start = Date.now();
  37437. // Pre compile the pdf page and fetch the fonts/images.
  37438. page.getOperatorList(handler, data.intent).then(function(operatorList) {
  37439. info('page=' + pageNum + ' - getOperatorList: time=' +
  37440. (Date.now() - start) + 'ms, len=' + operatorList.fnArray.length);
  37441. }, function(e) {
  37442. var minimumStackMessage =
  37443. 'worker.js: while trying to getPage() and getOperatorList()';
  37444. var wrappedException;
  37445. // Turn the error into an obj that can be serialized
  37446. if (typeof e === 'string') {
  37447. wrappedException = {
  37448. message: e,
  37449. stack: minimumStackMessage
  37450. };
  37451. } else if (typeof e === 'object') {
  37452. wrappedException = {
  37453. message: e.message || e.toString(),
  37454. stack: e.stack || minimumStackMessage
  37455. };
  37456. } else {
  37457. wrappedException = {
  37458. message: 'Unknown exception type: ' + (typeof e),
  37459. stack: minimumStackMessage
  37460. };
  37461. }
  37462. handler.send('PageError', {
  37463. pageNum: pageNum,
  37464. error: wrappedException,
  37465. intent: data.intent
  37466. });
  37467. });
  37468. });
  37469. }, this);
  37470. handler.on('GetTextContent', function wphExtractText(data) {
  37471. return pdfManager.getPage(data.pageIndex).then(function(page) {
  37472. var pageNum = data.pageIndex + 1;
  37473. var start = Date.now();
  37474. return page.extractTextContent().then(function(textContent) {
  37475. info('text indexing: page=' + pageNum + ' - time=' +
  37476. (Date.now() - start) + 'ms');
  37477. return textContent;
  37478. });
  37479. });
  37480. });
  37481. handler.on('Cleanup', function wphCleanup(data) {
  37482. return pdfManager.cleanup();
  37483. });
  37484. handler.on('Terminate', function wphTerminate(data) {
  37485. pdfManager.terminate();
  37486. });
  37487. }
  37488. };
  37489. var consoleTimer = {};
  37490. var workerConsole = {
  37491. log: function log() {
  37492. var args = Array.prototype.slice.call(arguments);
  37493. globalScope.postMessage({
  37494. action: 'console_log',
  37495. data: args
  37496. });
  37497. },
  37498. error: function error() {
  37499. var args = Array.prototype.slice.call(arguments);
  37500. globalScope.postMessage({
  37501. action: 'console_error',
  37502. data: args
  37503. });
  37504. throw 'pdf.js execution error';
  37505. },
  37506. time: function time(name) {
  37507. consoleTimer[name] = Date.now();
  37508. },
  37509. timeEnd: function timeEnd(name) {
  37510. var time = consoleTimer[name];
  37511. if (!time) {
  37512. error('Unknown timer name ' + name);
  37513. }
  37514. this.log('Timer:', name, Date.now() - time);
  37515. }
  37516. };
  37517. // Worker thread?
  37518. if (typeof window === 'undefined') {
  37519. if (!('console' in globalScope)) {
  37520. globalScope.console = workerConsole;
  37521. }
  37522. // Listen for unsupported features so we can pass them on to the main thread.
  37523. PDFJS.UnsupportedManager.listen(function (msg) {
  37524. globalScope.postMessage({
  37525. action: '_unsupported_feature',
  37526. data: msg
  37527. });
  37528. });
  37529. var handler = new MessageHandler('worker_processor', this);
  37530. WorkerMessageHandler.setup(handler);
  37531. }
  37532. /* This class implements the QM Coder decoding as defined in
  37533. * JPEG 2000 Part I Final Committee Draft Version 1.0
  37534. * Annex C.3 Arithmetic decoding procedure
  37535. * available at http://www.jpeg.org/public/fcd15444-1.pdf
  37536. *
  37537. * The arithmetic decoder is used in conjunction with context models to decode
  37538. * JPEG2000 and JBIG2 streams.
  37539. */
  37540. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  37541. // Table C-2
  37542. var QeTable = [
  37543. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  37544. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  37545. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  37546. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  37547. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  37548. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  37549. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  37550. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  37551. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  37552. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  37553. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  37554. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  37555. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  37556. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  37557. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  37558. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  37559. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  37560. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  37561. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  37562. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  37563. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  37564. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  37565. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  37566. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  37567. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  37568. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  37569. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  37570. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  37571. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  37572. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  37573. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  37574. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  37575. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  37576. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  37577. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  37578. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  37579. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  37580. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  37581. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  37582. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  37583. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  37584. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  37585. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  37586. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  37587. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  37588. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  37589. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  37590. ];
  37591. // C.3.5 Initialisation of the decoder (INITDEC)
  37592. function ArithmeticDecoder(data, start, end) {
  37593. this.data = data;
  37594. this.bp = start;
  37595. this.dataEnd = end;
  37596. this.chigh = data[start];
  37597. this.clow = 0;
  37598. this.byteIn();
  37599. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  37600. this.clow = (this.clow << 7) & 0xFFFF;
  37601. this.ct -= 7;
  37602. this.a = 0x8000;
  37603. }
  37604. ArithmeticDecoder.prototype = {
  37605. // C.3.4 Compressed data input (BYTEIN)
  37606. byteIn: function ArithmeticDecoder_byteIn() {
  37607. var data = this.data;
  37608. var bp = this.bp;
  37609. if (data[bp] == 0xFF) {
  37610. var b1 = data[bp + 1];
  37611. if (b1 > 0x8F) {
  37612. this.clow += 0xFF00;
  37613. this.ct = 8;
  37614. } else {
  37615. bp++;
  37616. this.clow += (data[bp] << 9);
  37617. this.ct = 7;
  37618. this.bp = bp;
  37619. }
  37620. } else {
  37621. bp++;
  37622. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  37623. this.ct = 8;
  37624. this.bp = bp;
  37625. }
  37626. if (this.clow > 0xFFFF) {
  37627. this.chigh += (this.clow >> 16);
  37628. this.clow &= 0xFFFF;
  37629. }
  37630. },
  37631. // C.3.2 Decoding a decision (DECODE)
  37632. readBit: function ArithmeticDecoder_readBit(contexts, pos) {
  37633. // contexts are packed into 1 byte:
  37634. // highest 7 bits carry cx.index, lowest bit carries cx.mps
  37635. var cx_index = contexts[pos] >> 1, cx_mps = contexts[pos] & 1;
  37636. var qeTableIcx = QeTable[cx_index];
  37637. var qeIcx = qeTableIcx.qe;
  37638. var d;
  37639. var a = this.a - qeIcx;
  37640. if (this.chigh < qeIcx) {
  37641. // exchangeLps
  37642. if (a < qeIcx) {
  37643. a = qeIcx;
  37644. d = cx_mps;
  37645. cx_index = qeTableIcx.nmps;
  37646. } else {
  37647. a = qeIcx;
  37648. d = 1 ^ cx_mps;
  37649. if (qeTableIcx.switchFlag === 1) {
  37650. cx_mps = d;
  37651. }
  37652. cx_index = qeTableIcx.nlps;
  37653. }
  37654. } else {
  37655. this.chigh -= qeIcx;
  37656. if ((a & 0x8000) !== 0) {
  37657. this.a = a;
  37658. return cx_mps;
  37659. }
  37660. // exchangeMps
  37661. if (a < qeIcx) {
  37662. d = 1 ^ cx_mps;
  37663. if (qeTableIcx.switchFlag === 1) {
  37664. cx_mps = d;
  37665. }
  37666. cx_index = qeTableIcx.nlps;
  37667. } else {
  37668. d = cx_mps;
  37669. cx_index = qeTableIcx.nmps;
  37670. }
  37671. }
  37672. // C.3.3 renormD;
  37673. do {
  37674. if (this.ct === 0) {
  37675. this.byteIn();
  37676. }
  37677. a <<= 1;
  37678. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  37679. this.clow = (this.clow << 1) & 0xFFFF;
  37680. this.ct--;
  37681. } while ((a & 0x8000) === 0);
  37682. this.a = a;
  37683. contexts[pos] = cx_index << 1 | cx_mps;
  37684. return d;
  37685. }
  37686. };
  37687. return ArithmeticDecoder;
  37688. })();
  37689. var JpegImage = (function jpegImage() {
  37690. var dctZigZag = new Uint8Array([
  37691. 0,
  37692. 1, 8,
  37693. 16, 9, 2,
  37694. 3, 10, 17, 24,
  37695. 32, 25, 18, 11, 4,
  37696. 5, 12, 19, 26, 33, 40,
  37697. 48, 41, 34, 27, 20, 13, 6,
  37698. 7, 14, 21, 28, 35, 42, 49, 56,
  37699. 57, 50, 43, 36, 29, 22, 15,
  37700. 23, 30, 37, 44, 51, 58,
  37701. 59, 52, 45, 38, 31,
  37702. 39, 46, 53, 60,
  37703. 61, 54, 47,
  37704. 55, 62,
  37705. 63
  37706. ]);
  37707. var dctCos1 = 4017; // cos(pi/16)
  37708. var dctSin1 = 799; // sin(pi/16)
  37709. var dctCos3 = 3406; // cos(3*pi/16)
  37710. var dctSin3 = 2276; // sin(3*pi/16)
  37711. var dctCos6 = 1567; // cos(6*pi/16)
  37712. var dctSin6 = 3784; // sin(6*pi/16)
  37713. var dctSqrt2 = 5793; // sqrt(2)
  37714. var dctSqrt1d2 = 2896; // sqrt(2) / 2
  37715. function constructor() {
  37716. }
  37717. function buildHuffmanTable(codeLengths, values) {
  37718. var k = 0, code = [], i, j, length = 16;
  37719. while (length > 0 && !codeLengths[length - 1]) {
  37720. length--;
  37721. }
  37722. code.push({children: [], index: 0});
  37723. var p = code[0], q;
  37724. for (i = 0; i < length; i++) {
  37725. for (j = 0; j < codeLengths[i]; j++) {
  37726. p = code.pop();
  37727. p.children[p.index] = values[k];
  37728. while (p.index > 0) {
  37729. p = code.pop();
  37730. }
  37731. p.index++;
  37732. code.push(p);
  37733. while (code.length <= i) {
  37734. code.push(q = {children: [], index: 0});
  37735. p.children[p.index] = q.children;
  37736. p = q;
  37737. }
  37738. k++;
  37739. }
  37740. if (i + 1 < length) {
  37741. // p here points to last code
  37742. code.push(q = {children: [], index: 0});
  37743. p.children[p.index] = q.children;
  37744. p = q;
  37745. }
  37746. }
  37747. return code[0].children;
  37748. }
  37749. function getBlockBufferOffset(component, row, col) {
  37750. return 64 * ((component.blocksPerLine + 1) * row + col);
  37751. }
  37752. function decodeScan(data, offset, frame, components, resetInterval,
  37753. spectralStart, spectralEnd, successivePrev, successive) {
  37754. var precision = frame.precision;
  37755. var samplesPerLine = frame.samplesPerLine;
  37756. var scanLines = frame.scanLines;
  37757. var mcusPerLine = frame.mcusPerLine;
  37758. var progressive = frame.progressive;
  37759. var maxH = frame.maxH, maxV = frame.maxV;
  37760. var startOffset = offset, bitsData = 0, bitsCount = 0;
  37761. function readBit() {
  37762. if (bitsCount > 0) {
  37763. bitsCount--;
  37764. return (bitsData >> bitsCount) & 1;
  37765. }
  37766. bitsData = data[offset++];
  37767. if (bitsData == 0xFF) {
  37768. var nextByte = data[offset++];
  37769. if (nextByte) {
  37770. throw 'unexpected marker: ' +
  37771. ((bitsData << 8) | nextByte).toString(16);
  37772. }
  37773. // unstuff 0
  37774. }
  37775. bitsCount = 7;
  37776. return bitsData >>> 7;
  37777. }
  37778. function decodeHuffman(tree) {
  37779. var node = tree;
  37780. var bit;
  37781. while ((bit = readBit()) !== null) {
  37782. node = node[bit];
  37783. if (typeof node === 'number') {
  37784. return node;
  37785. }
  37786. if (typeof node !== 'object') {
  37787. throw 'invalid huffman sequence';
  37788. }
  37789. }
  37790. return null;
  37791. }
  37792. function receive(length) {
  37793. var n = 0;
  37794. while (length > 0) {
  37795. var bit = readBit();
  37796. if (bit === null) {
  37797. return;
  37798. }
  37799. n = (n << 1) | bit;
  37800. length--;
  37801. }
  37802. return n;
  37803. }
  37804. function receiveAndExtend(length) {
  37805. if (length === 1) {
  37806. return readBit() === 1 ? 1 : -1;
  37807. }
  37808. var n = receive(length);
  37809. if (n >= 1 << (length - 1)) {
  37810. return n;
  37811. }
  37812. return n + (-1 << length) + 1;
  37813. }
  37814. function decodeBaseline(component, offset) {
  37815. var t = decodeHuffman(component.huffmanTableDC);
  37816. var diff = t === 0 ? 0 : receiveAndExtend(t);
  37817. component.blockData[offset] = (component.pred += diff);
  37818. var k = 1;
  37819. while (k < 64) {
  37820. var rs = decodeHuffman(component.huffmanTableAC);
  37821. var s = rs & 15, r = rs >> 4;
  37822. if (s === 0) {
  37823. if (r < 15) {
  37824. break;
  37825. }
  37826. k += 16;
  37827. continue;
  37828. }
  37829. k += r;
  37830. var z = dctZigZag[k];
  37831. component.blockData[offset + z] = receiveAndExtend(s);
  37832. k++;
  37833. }
  37834. }
  37835. function decodeDCFirst(component, offset) {
  37836. var t = decodeHuffman(component.huffmanTableDC);
  37837. var diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);
  37838. component.blockData[offset] = (component.pred += diff);
  37839. }
  37840. function decodeDCSuccessive(component, offset) {
  37841. component.blockData[offset] |= readBit() << successive;
  37842. }
  37843. var eobrun = 0;
  37844. function decodeACFirst(component, offset) {
  37845. if (eobrun > 0) {
  37846. eobrun--;
  37847. return;
  37848. }
  37849. var k = spectralStart, e = spectralEnd;
  37850. while (k <= e) {
  37851. var rs = decodeHuffman(component.huffmanTableAC);
  37852. var s = rs & 15, r = rs >> 4;
  37853. if (s === 0) {
  37854. if (r < 15) {
  37855. eobrun = receive(r) + (1 << r) - 1;
  37856. break;
  37857. }
  37858. k += 16;
  37859. continue;
  37860. }
  37861. k += r;
  37862. var z = dctZigZag[k];
  37863. component.blockData[offset + z] =
  37864. receiveAndExtend(s) * (1 << successive);
  37865. k++;
  37866. }
  37867. }
  37868. var successiveACState = 0, successiveACNextValue;
  37869. function decodeACSuccessive(component, offset) {
  37870. var k = spectralStart;
  37871. var e = spectralEnd;
  37872. var r = 0;
  37873. var s;
  37874. var rs;
  37875. while (k <= e) {
  37876. var z = dctZigZag[k];
  37877. switch (successiveACState) {
  37878. case 0: // initial state
  37879. rs = decodeHuffman(component.huffmanTableAC);
  37880. s = rs & 15;
  37881. r = rs >> 4;
  37882. if (s === 0) {
  37883. if (r < 15) {
  37884. eobrun = receive(r) + (1 << r);
  37885. successiveACState = 4;
  37886. } else {
  37887. r = 16;
  37888. successiveACState = 1;
  37889. }
  37890. } else {
  37891. if (s !== 1) {
  37892. throw 'invalid ACn encoding';
  37893. }
  37894. successiveACNextValue = receiveAndExtend(s);
  37895. successiveACState = r ? 2 : 3;
  37896. }
  37897. continue;
  37898. case 1: // skipping r zero items
  37899. case 2:
  37900. if (component.blockData[offset + z]) {
  37901. component.blockData[offset + z] += (readBit() << successive);
  37902. } else {
  37903. r--;
  37904. if (r === 0) {
  37905. successiveACState = successiveACState == 2 ? 3 : 0;
  37906. }
  37907. }
  37908. break;
  37909. case 3: // set value for a zero item
  37910. if (component.blockData[offset + z]) {
  37911. component.blockData[offset + z] += (readBit() << successive);
  37912. } else {
  37913. component.blockData[offset + z] =
  37914. successiveACNextValue << successive;
  37915. successiveACState = 0;
  37916. }
  37917. break;
  37918. case 4: // eob
  37919. if (component.blockData[offset + z]) {
  37920. component.blockData[offset + z] += (readBit() << successive);
  37921. }
  37922. break;
  37923. }
  37924. k++;
  37925. }
  37926. if (successiveACState === 4) {
  37927. eobrun--;
  37928. if (eobrun === 0) {
  37929. successiveACState = 0;
  37930. }
  37931. }
  37932. }
  37933. function decodeMcu(component, decode, mcu, row, col) {
  37934. var mcuRow = (mcu / mcusPerLine) | 0;
  37935. var mcuCol = mcu % mcusPerLine;
  37936. var blockRow = mcuRow * component.v + row;
  37937. var blockCol = mcuCol * component.h + col;
  37938. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  37939. decode(component, offset);
  37940. }
  37941. function decodeBlock(component, decode, mcu) {
  37942. var blockRow = (mcu / component.blocksPerLine) | 0;
  37943. var blockCol = mcu % component.blocksPerLine;
  37944. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  37945. decode(component, offset);
  37946. }
  37947. var componentsLength = components.length;
  37948. var component, i, j, k, n;
  37949. var decodeFn;
  37950. if (progressive) {
  37951. if (spectralStart === 0) {
  37952. decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;
  37953. } else {
  37954. decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;
  37955. }
  37956. } else {
  37957. decodeFn = decodeBaseline;
  37958. }
  37959. var mcu = 0, marker;
  37960. var mcuExpected;
  37961. if (componentsLength == 1) {
  37962. mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
  37963. } else {
  37964. mcuExpected = mcusPerLine * frame.mcusPerColumn;
  37965. }
  37966. if (!resetInterval) {
  37967. resetInterval = mcuExpected;
  37968. }
  37969. var h, v;
  37970. while (mcu < mcuExpected) {
  37971. // reset interval stuff
  37972. for (i = 0; i < componentsLength; i++) {
  37973. components[i].pred = 0;
  37974. }
  37975. eobrun = 0;
  37976. if (componentsLength == 1) {
  37977. component = components[0];
  37978. for (n = 0; n < resetInterval; n++) {
  37979. decodeBlock(component, decodeFn, mcu);
  37980. mcu++;
  37981. }
  37982. } else {
  37983. for (n = 0; n < resetInterval; n++) {
  37984. for (i = 0; i < componentsLength; i++) {
  37985. component = components[i];
  37986. h = component.h;
  37987. v = component.v;
  37988. for (j = 0; j < v; j++) {
  37989. for (k = 0; k < h; k++) {
  37990. decodeMcu(component, decodeFn, mcu, j, k);
  37991. }
  37992. }
  37993. }
  37994. mcu++;
  37995. }
  37996. }
  37997. // find marker
  37998. bitsCount = 0;
  37999. marker = (data[offset] << 8) | data[offset + 1];
  38000. if (marker <= 0xFF00) {
  38001. throw 'marker was not found';
  38002. }
  38003. if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx
  38004. offset += 2;
  38005. } else {
  38006. break;
  38007. }
  38008. }
  38009. return offset - startOffset;
  38010. }
  38011. // A port of poppler's IDCT method which in turn is taken from:
  38012. // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,
  38013. // 'Practical Fast 1-D DCT Algorithms with 11 Multiplications',
  38014. // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,
  38015. // 988-991.
  38016. function quantizeAndInverse(component, blockBufferOffset, p) {
  38017. var qt = component.quantizationTable, blockData = component.blockData;
  38018. var v0, v1, v2, v3, v4, v5, v6, v7;
  38019. var p0, p1, p2, p3, p4, p5, p6, p7;
  38020. var t;
  38021. // inverse DCT on rows
  38022. for (var row = 0; row < 64; row += 8) {
  38023. // gather block data
  38024. p0 = blockData[blockBufferOffset + row];
  38025. p1 = blockData[blockBufferOffset + row + 1];
  38026. p2 = blockData[blockBufferOffset + row + 2];
  38027. p3 = blockData[blockBufferOffset + row + 3];
  38028. p4 = blockData[blockBufferOffset + row + 4];
  38029. p5 = blockData[blockBufferOffset + row + 5];
  38030. p6 = blockData[blockBufferOffset + row + 6];
  38031. p7 = blockData[blockBufferOffset + row + 7];
  38032. // dequant p0
  38033. p0 *= qt[row];
  38034. // check for all-zero AC coefficients
  38035. if ((p1 | p2 | p3 | p4 | p5 | p6 | p7) === 0) {
  38036. t = (dctSqrt2 * p0 + 512) >> 10;
  38037. p[row] = t;
  38038. p[row + 1] = t;
  38039. p[row + 2] = t;
  38040. p[row + 3] = t;
  38041. p[row + 4] = t;
  38042. p[row + 5] = t;
  38043. p[row + 6] = t;
  38044. p[row + 7] = t;
  38045. continue;
  38046. }
  38047. // dequant p1 ... p7
  38048. p1 *= qt[row + 1];
  38049. p2 *= qt[row + 2];
  38050. p3 *= qt[row + 3];
  38051. p4 *= qt[row + 4];
  38052. p5 *= qt[row + 5];
  38053. p6 *= qt[row + 6];
  38054. p7 *= qt[row + 7];
  38055. // stage 4
  38056. v0 = (dctSqrt2 * p0 + 128) >> 8;
  38057. v1 = (dctSqrt2 * p4 + 128) >> 8;
  38058. v2 = p2;
  38059. v3 = p6;
  38060. v4 = (dctSqrt1d2 * (p1 - p7) + 128) >> 8;
  38061. v7 = (dctSqrt1d2 * (p1 + p7) + 128) >> 8;
  38062. v5 = p3 << 4;
  38063. v6 = p5 << 4;
  38064. // stage 3
  38065. v0 = (v0 + v1 + 1) >> 1;
  38066. v1 = v0 - v1;
  38067. t = (v2 * dctSin6 + v3 * dctCos6 + 128) >> 8;
  38068. v2 = (v2 * dctCos6 - v3 * dctSin6 + 128) >> 8;
  38069. v3 = t;
  38070. v4 = (v4 + v6 + 1) >> 1;
  38071. v6 = v4 - v6;
  38072. v7 = (v7 + v5 + 1) >> 1;
  38073. v5 = v7 - v5;
  38074. // stage 2
  38075. v0 = (v0 + v3 + 1) >> 1;
  38076. v3 = v0 - v3;
  38077. v1 = (v1 + v2 + 1) >> 1;
  38078. v2 = v1 - v2;
  38079. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  38080. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  38081. v7 = t;
  38082. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  38083. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  38084. v6 = t;
  38085. // stage 1
  38086. p[row] = v0 + v7;
  38087. p[row + 7] = v0 - v7;
  38088. p[row + 1] = v1 + v6;
  38089. p[row + 6] = v1 - v6;
  38090. p[row + 2] = v2 + v5;
  38091. p[row + 5] = v2 - v5;
  38092. p[row + 3] = v3 + v4;
  38093. p[row + 4] = v3 - v4;
  38094. }
  38095. // inverse DCT on columns
  38096. for (var col = 0; col < 8; ++col) {
  38097. p0 = p[col];
  38098. p1 = p[col + 8];
  38099. p2 = p[col + 16];
  38100. p3 = p[col + 24];
  38101. p4 = p[col + 32];
  38102. p5 = p[col + 40];
  38103. p6 = p[col + 48];
  38104. p7 = p[col + 56];
  38105. // check for all-zero AC coefficients
  38106. if ((p1 | p2 | p3 | p4 | p5 | p6 | p7) === 0) {
  38107. t = (dctSqrt2 * p0 + 8192) >> 14;
  38108. // convert to 8 bit
  38109. t = (t < -2040) ? 0 : (t >= 2024) ? 255 : (t + 2056) >> 4;
  38110. blockData[blockBufferOffset + col] = t;
  38111. blockData[blockBufferOffset + col + 8] = t;
  38112. blockData[blockBufferOffset + col + 16] = t;
  38113. blockData[blockBufferOffset + col + 24] = t;
  38114. blockData[blockBufferOffset + col + 32] = t;
  38115. blockData[blockBufferOffset + col + 40] = t;
  38116. blockData[blockBufferOffset + col + 48] = t;
  38117. blockData[blockBufferOffset + col + 56] = t;
  38118. continue;
  38119. }
  38120. // stage 4
  38121. v0 = (dctSqrt2 * p0 + 2048) >> 12;
  38122. v1 = (dctSqrt2 * p4 + 2048) >> 12;
  38123. v2 = p2;
  38124. v3 = p6;
  38125. v4 = (dctSqrt1d2 * (p1 - p7) + 2048) >> 12;
  38126. v7 = (dctSqrt1d2 * (p1 + p7) + 2048) >> 12;
  38127. v5 = p3;
  38128. v6 = p5;
  38129. // stage 3
  38130. // Shift v0 by 128.5 << 5 here, so we don't need to shift p0...p7 when
  38131. // converting to UInt8 range later.
  38132. v0 = ((v0 + v1 + 1) >> 1) + 4112;
  38133. v1 = v0 - v1;
  38134. t = (v2 * dctSin6 + v3 * dctCos6 + 2048) >> 12;
  38135. v2 = (v2 * dctCos6 - v3 * dctSin6 + 2048) >> 12;
  38136. v3 = t;
  38137. v4 = (v4 + v6 + 1) >> 1;
  38138. v6 = v4 - v6;
  38139. v7 = (v7 + v5 + 1) >> 1;
  38140. v5 = v7 - v5;
  38141. // stage 2
  38142. v0 = (v0 + v3 + 1) >> 1;
  38143. v3 = v0 - v3;
  38144. v1 = (v1 + v2 + 1) >> 1;
  38145. v2 = v1 - v2;
  38146. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  38147. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  38148. v7 = t;
  38149. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  38150. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  38151. v6 = t;
  38152. // stage 1
  38153. p0 = v0 + v7;
  38154. p7 = v0 - v7;
  38155. p1 = v1 + v6;
  38156. p6 = v1 - v6;
  38157. p2 = v2 + v5;
  38158. p5 = v2 - v5;
  38159. p3 = v3 + v4;
  38160. p4 = v3 - v4;
  38161. // convert to 8-bit integers
  38162. p0 = (p0 < 16) ? 0 : (p0 >= 4080) ? 255 : p0 >> 4;
  38163. p1 = (p1 < 16) ? 0 : (p1 >= 4080) ? 255 : p1 >> 4;
  38164. p2 = (p2 < 16) ? 0 : (p2 >= 4080) ? 255 : p2 >> 4;
  38165. p3 = (p3 < 16) ? 0 : (p3 >= 4080) ? 255 : p3 >> 4;
  38166. p4 = (p4 < 16) ? 0 : (p4 >= 4080) ? 255 : p4 >> 4;
  38167. p5 = (p5 < 16) ? 0 : (p5 >= 4080) ? 255 : p5 >> 4;
  38168. p6 = (p6 < 16) ? 0 : (p6 >= 4080) ? 255 : p6 >> 4;
  38169. p7 = (p7 < 16) ? 0 : (p7 >= 4080) ? 255 : p7 >> 4;
  38170. // store block data
  38171. blockData[blockBufferOffset + col] = p0;
  38172. blockData[blockBufferOffset + col + 8] = p1;
  38173. blockData[blockBufferOffset + col + 16] = p2;
  38174. blockData[blockBufferOffset + col + 24] = p3;
  38175. blockData[blockBufferOffset + col + 32] = p4;
  38176. blockData[blockBufferOffset + col + 40] = p5;
  38177. blockData[blockBufferOffset + col + 48] = p6;
  38178. blockData[blockBufferOffset + col + 56] = p7;
  38179. }
  38180. }
  38181. function buildComponentData(frame, component) {
  38182. var blocksPerLine = component.blocksPerLine;
  38183. var blocksPerColumn = component.blocksPerColumn;
  38184. var computationBuffer = new Int16Array(64);
  38185. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  38186. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  38187. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  38188. quantizeAndInverse(component, offset, computationBuffer);
  38189. }
  38190. }
  38191. return component.blockData;
  38192. }
  38193. function clamp0to255(a) {
  38194. return a <= 0 ? 0 : a >= 255 ? 255 : a;
  38195. }
  38196. constructor.prototype = {
  38197. parse: function parse(data) {
  38198. function readUint16() {
  38199. var value = (data[offset] << 8) | data[offset + 1];
  38200. offset += 2;
  38201. return value;
  38202. }
  38203. function readDataBlock() {
  38204. var length = readUint16();
  38205. var array = data.subarray(offset, offset + length - 2);
  38206. offset += array.length;
  38207. return array;
  38208. }
  38209. function prepareComponents(frame) {
  38210. var mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / frame.maxH);
  38211. var mcusPerColumn = Math.ceil(frame.scanLines / 8 / frame.maxV);
  38212. for (var i = 0; i < frame.components.length; i++) {
  38213. component = frame.components[i];
  38214. var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
  38215. component.h / frame.maxH);
  38216. var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
  38217. component.v / frame.maxV);
  38218. var blocksPerLineForMcu = mcusPerLine * component.h;
  38219. var blocksPerColumnForMcu = mcusPerColumn * component.v;
  38220. var blocksBufferSize = 64 * blocksPerColumnForMcu *
  38221. (blocksPerLineForMcu + 1);
  38222. component.blockData = new Int16Array(blocksBufferSize);
  38223. component.blocksPerLine = blocksPerLine;
  38224. component.blocksPerColumn = blocksPerColumn;
  38225. }
  38226. frame.mcusPerLine = mcusPerLine;
  38227. frame.mcusPerColumn = mcusPerColumn;
  38228. }
  38229. var offset = 0, length = data.length;
  38230. var jfif = null;
  38231. var adobe = null;
  38232. var pixels = null;
  38233. var frame, resetInterval;
  38234. var quantizationTables = [];
  38235. var huffmanTablesAC = [], huffmanTablesDC = [];
  38236. var fileMarker = readUint16();
  38237. if (fileMarker != 0xFFD8) { // SOI (Start of Image)
  38238. throw 'SOI not found';
  38239. }
  38240. fileMarker = readUint16();
  38241. while (fileMarker != 0xFFD9) { // EOI (End of image)
  38242. var i, j, l;
  38243. switch(fileMarker) {
  38244. case 0xFFE0: // APP0 (Application Specific)
  38245. case 0xFFE1: // APP1
  38246. case 0xFFE2: // APP2
  38247. case 0xFFE3: // APP3
  38248. case 0xFFE4: // APP4
  38249. case 0xFFE5: // APP5
  38250. case 0xFFE6: // APP6
  38251. case 0xFFE7: // APP7
  38252. case 0xFFE8: // APP8
  38253. case 0xFFE9: // APP9
  38254. case 0xFFEA: // APP10
  38255. case 0xFFEB: // APP11
  38256. case 0xFFEC: // APP12
  38257. case 0xFFED: // APP13
  38258. case 0xFFEE: // APP14
  38259. case 0xFFEF: // APP15
  38260. case 0xFFFE: // COM (Comment)
  38261. var appData = readDataBlock();
  38262. if (fileMarker === 0xFFE0) {
  38263. if (appData[0] === 0x4A && appData[1] === 0x46 &&
  38264. appData[2] === 0x49 && appData[3] === 0x46 &&
  38265. appData[4] === 0) { // 'JFIF\x00'
  38266. jfif = {
  38267. version: { major: appData[5], minor: appData[6] },
  38268. densityUnits: appData[7],
  38269. xDensity: (appData[8] << 8) | appData[9],
  38270. yDensity: (appData[10] << 8) | appData[11],
  38271. thumbWidth: appData[12],
  38272. thumbHeight: appData[13],
  38273. thumbData: appData.subarray(14, 14 +
  38274. 3 * appData[12] * appData[13])
  38275. };
  38276. }
  38277. }
  38278. // TODO APP1 - Exif
  38279. if (fileMarker === 0xFFEE) {
  38280. if (appData[0] === 0x41 && appData[1] === 0x64 &&
  38281. appData[2] === 0x6F && appData[3] === 0x62 &&
  38282. appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
  38283. adobe = {
  38284. version: appData[6],
  38285. flags0: (appData[7] << 8) | appData[8],
  38286. flags1: (appData[9] << 8) | appData[10],
  38287. transformCode: appData[11]
  38288. };
  38289. }
  38290. }
  38291. break;
  38292. case 0xFFDB: // DQT (Define Quantization Tables)
  38293. var quantizationTablesLength = readUint16();
  38294. var quantizationTablesEnd = quantizationTablesLength + offset - 2;
  38295. var z;
  38296. while (offset < quantizationTablesEnd) {
  38297. var quantizationTableSpec = data[offset++];
  38298. var tableData = new Uint16Array(64);
  38299. if ((quantizationTableSpec >> 4) === 0) { // 8 bit values
  38300. for (j = 0; j < 64; j++) {
  38301. z = dctZigZag[j];
  38302. tableData[z] = data[offset++];
  38303. }
  38304. } else if ((quantizationTableSpec >> 4) === 1) { //16 bit
  38305. for (j = 0; j < 64; j++) {
  38306. z = dctZigZag[j];
  38307. tableData[z] = readUint16();
  38308. }
  38309. } else {
  38310. throw 'DQT: invalid table spec';
  38311. }
  38312. quantizationTables[quantizationTableSpec & 15] = tableData;
  38313. }
  38314. break;
  38315. case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)
  38316. case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)
  38317. case 0xFFC2: // SOF2 (Start of Frame, Progressive DCT)
  38318. if (frame) {
  38319. throw 'Only single frame JPEGs supported';
  38320. }
  38321. readUint16(); // skip data length
  38322. frame = {};
  38323. frame.extended = (fileMarker === 0xFFC1);
  38324. frame.progressive = (fileMarker === 0xFFC2);
  38325. frame.precision = data[offset++];
  38326. frame.scanLines = readUint16();
  38327. frame.samplesPerLine = readUint16();
  38328. frame.components = [];
  38329. frame.componentIds = {};
  38330. var componentsCount = data[offset++], componentId;
  38331. var maxH = 0, maxV = 0;
  38332. for (i = 0; i < componentsCount; i++) {
  38333. componentId = data[offset];
  38334. var h = data[offset + 1] >> 4;
  38335. var v = data[offset + 1] & 15;
  38336. if (maxH < h) {
  38337. maxH = h;
  38338. }
  38339. if (maxV < v) {
  38340. maxV = v;
  38341. }
  38342. var qId = data[offset + 2];
  38343. l = frame.components.push({
  38344. h: h,
  38345. v: v,
  38346. quantizationTable: quantizationTables[qId]
  38347. });
  38348. frame.componentIds[componentId] = l - 1;
  38349. offset += 3;
  38350. }
  38351. frame.maxH = maxH;
  38352. frame.maxV = maxV;
  38353. prepareComponents(frame);
  38354. break;
  38355. case 0xFFC4: // DHT (Define Huffman Tables)
  38356. var huffmanLength = readUint16();
  38357. for (i = 2; i < huffmanLength;) {
  38358. var huffmanTableSpec = data[offset++];
  38359. var codeLengths = new Uint8Array(16);
  38360. var codeLengthSum = 0;
  38361. for (j = 0; j < 16; j++, offset++) {
  38362. codeLengthSum += (codeLengths[j] = data[offset]);
  38363. }
  38364. var huffmanValues = new Uint8Array(codeLengthSum);
  38365. for (j = 0; j < codeLengthSum; j++, offset++) {
  38366. huffmanValues[j] = data[offset];
  38367. }
  38368. i += 17 + codeLengthSum;
  38369. ((huffmanTableSpec >> 4) === 0 ?
  38370. huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] =
  38371. buildHuffmanTable(codeLengths, huffmanValues);
  38372. }
  38373. break;
  38374. case 0xFFDD: // DRI (Define Restart Interval)
  38375. readUint16(); // skip data length
  38376. resetInterval = readUint16();
  38377. break;
  38378. case 0xFFDA: // SOS (Start of Scan)
  38379. var scanLength = readUint16();
  38380. var selectorsCount = data[offset++];
  38381. var components = [], component;
  38382. for (i = 0; i < selectorsCount; i++) {
  38383. var componentIndex = frame.componentIds[data[offset++]];
  38384. component = frame.components[componentIndex];
  38385. var tableSpec = data[offset++];
  38386. component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
  38387. component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
  38388. components.push(component);
  38389. }
  38390. var spectralStart = data[offset++];
  38391. var spectralEnd = data[offset++];
  38392. var successiveApproximation = data[offset++];
  38393. var processed = decodeScan(data, offset,
  38394. frame, components, resetInterval,
  38395. spectralStart, spectralEnd,
  38396. successiveApproximation >> 4, successiveApproximation & 15);
  38397. offset += processed;
  38398. break;
  38399. default:
  38400. if (data[offset - 3] == 0xFF &&
  38401. data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {
  38402. // could be incorrect encoding -- last 0xFF byte of the previous
  38403. // block was eaten by the encoder
  38404. offset -= 3;
  38405. break;
  38406. }
  38407. throw 'unknown JPEG marker ' + fileMarker.toString(16);
  38408. }
  38409. fileMarker = readUint16();
  38410. }
  38411. this.width = frame.samplesPerLine;
  38412. this.height = frame.scanLines;
  38413. this.jfif = jfif;
  38414. this.adobe = adobe;
  38415. this.components = [];
  38416. for (i = 0; i < frame.components.length; i++) {
  38417. component = frame.components[i];
  38418. this.components.push({
  38419. output: buildComponentData(frame, component),
  38420. scaleX: component.h / frame.maxH,
  38421. scaleY: component.v / frame.maxV,
  38422. blocksPerLine: component.blocksPerLine,
  38423. blocksPerColumn: component.blocksPerColumn
  38424. });
  38425. }
  38426. this.numComponents = this.components.length;
  38427. },
  38428. _getLinearizedBlockData: function getLinearizedBlockData(width, height) {
  38429. var scaleX = this.width / width, scaleY = this.height / height;
  38430. var component, componentScaleX, componentScaleY, blocksPerScanline;
  38431. var x, y, i, j, k;
  38432. var index;
  38433. var offset = 0;
  38434. var output;
  38435. var numComponents = this.components.length;
  38436. var dataLength = width * height * numComponents;
  38437. var data = new Uint8Array(dataLength);
  38438. var xScaleBlockOffset = new Uint32Array(width);
  38439. var mask3LSB = 0xfffffff8; // used to clear the 3 LSBs
  38440. for (i = 0; i < numComponents; i++) {
  38441. component = this.components[i];
  38442. componentScaleX = component.scaleX * scaleX;
  38443. componentScaleY = component.scaleY * scaleY;
  38444. offset = i;
  38445. output = component.output;
  38446. blocksPerScanline = (component.blocksPerLine + 1) << 3;
  38447. // precalculate the xScaleBlockOffset
  38448. for (x = 0; x < width; x++) {
  38449. j = 0 | (x * componentScaleX);
  38450. xScaleBlockOffset[x] = ((j & mask3LSB) << 3) | (j & 7);
  38451. }
  38452. // linearize the blocks of the component
  38453. for (y = 0; y < height; y++) {
  38454. j = 0 | (y * componentScaleY);
  38455. index = blocksPerScanline * (j & mask3LSB) | ((j & 7) << 3);
  38456. for (x = 0; x < width; x++) {
  38457. data[offset] = output[index + xScaleBlockOffset[x]];
  38458. offset += numComponents;
  38459. }
  38460. }
  38461. }
  38462. // decodeTransform will contains pairs of multiplier (-256..256) and
  38463. // additive
  38464. var transform = this.decodeTransform;
  38465. if (transform) {
  38466. for (i = 0; i < dataLength;) {
  38467. for (j = 0, k = 0; j < numComponents; j++, i++, k += 2) {
  38468. data[i] = ((data[i] * transform[k]) >> 8) + transform[k + 1];
  38469. }
  38470. }
  38471. }
  38472. return data;
  38473. },
  38474. _isColorConversionNeeded: function isColorConversionNeeded() {
  38475. if (this.adobe && this.adobe.transformCode) {
  38476. // The adobe transform marker overrides any previous setting
  38477. return true;
  38478. } else if (this.numComponents == 3) {
  38479. return true;
  38480. } else {
  38481. return false;
  38482. }
  38483. },
  38484. _convertYccToRgb: function convertYccToRgb(data) {
  38485. var Y, Cb, Cr;
  38486. for (var i = 0, length = data.length; i < length; i += 3) {
  38487. Y = data[i ];
  38488. Cb = data[i + 1];
  38489. Cr = data[i + 2];
  38490. data[i ] = clamp0to255(Y - 179.456 + 1.402 * Cr);
  38491. data[i + 1] = clamp0to255(Y + 135.459 - 0.344 * Cb - 0.714 * Cr);
  38492. data[i + 2] = clamp0to255(Y - 226.816 + 1.772 * Cb);
  38493. }
  38494. return data;
  38495. },
  38496. _convertYcckToRgb: function convertYcckToRgb(data) {
  38497. var Y, Cb, Cr, k, CbCb, CbCr, CbY, Cbk, CrCr, Crk, CrY, YY, Yk, kk;
  38498. var offset = 0;
  38499. for (var i = 0, length = data.length; i < length; i += 4) {
  38500. Y = data[i];
  38501. Cb = data[i + 1];
  38502. Cr = data[i + 2];
  38503. k = data[i + 3];
  38504. CbCb = Cb * Cb;
  38505. CbCr = Cb * Cr;
  38506. CbY = Cb * Y;
  38507. Cbk = Cb * k;
  38508. CrCr = Cr * Cr;
  38509. Crk = Cr * k;
  38510. CrY = Cr * Y;
  38511. YY = Y * Y;
  38512. Yk = Y * k;
  38513. kk = k * k;
  38514. var r = - 122.67195406894 -
  38515. 6.60635669420364e-5 * CbCb + 0.000437130475926232 * CbCr -
  38516. 5.4080610064599e-5* CbY + 0.00048449797120281* Cbk -
  38517. 0.154362151871126 * Cb - 0.000957964378445773 * CrCr +
  38518. 0.000817076911346625 * CrY - 0.00477271405408747 * Crk +
  38519. 1.53380253221734 * Cr + 0.000961250184130688 * YY -
  38520. 0.00266257332283933 * Yk + 0.48357088451265 * Y -
  38521. 0.000336197177618394 * kk + 0.484791561490776 * k;
  38522. var g = 107.268039397724 +
  38523. 2.19927104525741e-5 * CbCb - 0.000640992018297945 * CbCr +
  38524. 0.000659397001245577* CbY + 0.000426105652938837* Cbk -
  38525. 0.176491792462875 * Cb - 0.000778269941513683 * CrCr +
  38526. 0.00130872261408275 * CrY + 0.000770482631801132 * Crk -
  38527. 0.151051492775562 * Cr + 0.00126935368114843 * YY -
  38528. 0.00265090189010898 * Yk + 0.25802910206845 * Y -
  38529. 0.000318913117588328 * kk - 0.213742400323665 * k;
  38530. var b = - 20.810012546947 -
  38531. 0.000570115196973677 * CbCb - 2.63409051004589e-5 * CbCr +
  38532. 0.0020741088115012* CbY - 0.00288260236853442* Cbk +
  38533. 0.814272968359295 * Cb - 1.53496057440975e-5 * CrCr -
  38534. 0.000132689043961446 * CrY + 0.000560833691242812 * Crk -
  38535. 0.195152027534049 * Cr + 0.00174418132927582 * YY -
  38536. 0.00255243321439347 * Yk + 0.116935020465145 * Y -
  38537. 0.000343531996510555 * kk + 0.24165260232407 * k;
  38538. data[offset++] = clamp0to255(r);
  38539. data[offset++] = clamp0to255(g);
  38540. data[offset++] = clamp0to255(b);
  38541. }
  38542. return data;
  38543. },
  38544. _convertYcckToCmyk: function convertYcckToCmyk(data) {
  38545. var Y, Cb, Cr;
  38546. for (var i = 0, length = data.length; i < length; i += 4) {
  38547. Y = data[i];
  38548. Cb = data[i + 1];
  38549. Cr = data[i + 2];
  38550. data[i ] = clamp0to255(434.456 - Y - 1.402 * Cr);
  38551. data[i + 1] = clamp0to255(119.541 - Y + 0.344 * Cb + 0.714 * Cr);
  38552. data[i + 2] = clamp0to255(481.816 - Y - 1.772 * Cb);
  38553. // K in data[i + 3] is unchanged
  38554. }
  38555. return data;
  38556. },
  38557. _convertCmykToRgb: function convertCmykToRgb(data) {
  38558. var c, m, y, k;
  38559. var offset = 0;
  38560. var min = -255 * 255 * 255;
  38561. var scale = 1 / 255 / 255;
  38562. for (var i = 0, length = data.length; i < length; i += 4) {
  38563. c = data[i];
  38564. m = data[i + 1];
  38565. y = data[i + 2];
  38566. k = data[i + 3];
  38567. var r =
  38568. c * (-4.387332384609988 * c + 54.48615194189176 * m +
  38569. 18.82290502165302 * y + 212.25662451639585 * k -
  38570. 72734.4411664936) +
  38571. m * (1.7149763477362134 * m - 5.6096736904047315 * y -
  38572. 17.873870861415444 * k - 1401.7366389350734) +
  38573. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  38574. 4465.541406466231) -
  38575. k * (21.86122147463605 * k + 48317.86113160301);
  38576. var g =
  38577. c * (8.841041422036149 * c + 60.118027045597366 * m +
  38578. 6.871425592049007 * y + 31.159100130055922 * k -
  38579. 20220.756542821975) +
  38580. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  38581. 131.35250912493976 * k - 48691.05921601825) +
  38582. y * (4.444339102852739 * y + 9.8632861493405 * k -
  38583. 6341.191035517494) -
  38584. k * (20.737325471181034 * k + 47890.15695978492);
  38585. var b =
  38586. c * (0.8842522430003296 * c + 8.078677503112928 * m +
  38587. 30.89978309703729 * y - 0.23883238689178934 * k -
  38588. 3616.812083916688) +
  38589. m * (10.49593273432072 * m + 63.02378494754052 * y +
  38590. 50.606957656360734 * k - 28620.90484698408) +
  38591. y * (0.03296041114873217 * y + 115.60384449646641 * k -
  38592. 49363.43385999684) -
  38593. k * (22.33816807309886 * k + 45932.16563550634);
  38594. data[offset++] = r >= 0 ? 255 : r <= min ? 0 : 255 + r * scale | 0;
  38595. data[offset++] = g >= 0 ? 255 : g <= min ? 0 : 255 + g * scale | 0;
  38596. data[offset++] = b >= 0 ? 255 : b <= min ? 0 : 255 + b * scale | 0;
  38597. }
  38598. return data;
  38599. },
  38600. getData: function getData(width, height, forceRGBoutput) {
  38601. if (this.numComponents > 4) {
  38602. throw 'Unsupported color mode';
  38603. }
  38604. // type of data: Uint8Array(width * height * numComponents)
  38605. var data = this._getLinearizedBlockData(width, height);
  38606. if (this.numComponents === 3) {
  38607. return this._convertYccToRgb(data);
  38608. } else if (this.numComponents === 4) {
  38609. if (this._isColorConversionNeeded()) {
  38610. if (forceRGBoutput) {
  38611. return this._convertYcckToRgb(data);
  38612. } else {
  38613. return this._convertYcckToCmyk(data);
  38614. }
  38615. } else if (forceRGBoutput) {
  38616. return this._convertCmykToRgb(data);
  38617. }
  38618. }
  38619. return data;
  38620. }
  38621. };
  38622. return constructor;
  38623. })();
  38624. var JpxImage = (function JpxImageClosure() {
  38625. // Table E.1
  38626. var SubbandsGainLog2 = {
  38627. 'LL': 0,
  38628. 'LH': 1,
  38629. 'HL': 1,
  38630. 'HH': 2
  38631. };
  38632. function JpxImage() {
  38633. this.failOnCorruptedImage = false;
  38634. }
  38635. JpxImage.prototype = {
  38636. parse: function JpxImage_parse(data) {
  38637. var head = readUint16(data, 0);
  38638. // No box header, immediate start of codestream (SOC)
  38639. if (head === 0xFF4F) {
  38640. this.parseCodestream(data, 0, data.length);
  38641. return;
  38642. }
  38643. var position = 0, length = data.length;
  38644. while (position < length) {
  38645. var headerSize = 8;
  38646. var lbox = readUint32(data, position);
  38647. var tbox = readUint32(data, position + 4);
  38648. position += headerSize;
  38649. if (lbox === 1) {
  38650. // XLBox: read UInt64 according to spec.
  38651. // JavaScript's int precision of 53 bit should be sufficient here.
  38652. lbox = readUint32(data, position) * 4294967296 +
  38653. readUint32(data, position + 4);
  38654. position += 8;
  38655. headerSize += 8;
  38656. }
  38657. if (lbox === 0) {
  38658. lbox = length - position + headerSize;
  38659. }
  38660. if (lbox < headerSize) {
  38661. throw new Error('JPX Error: Invalid box field size');
  38662. }
  38663. var dataLength = lbox - headerSize;
  38664. var jumpDataLength = true;
  38665. switch (tbox) {
  38666. case 0x6A501A1A: // 'jP\032\032'
  38667. // TODO
  38668. break;
  38669. case 0x6A703268: // 'jp2h'
  38670. jumpDataLength = false; // parsing child boxes
  38671. break;
  38672. case 0x636F6C72: // 'colr'
  38673. // TODO
  38674. break;
  38675. case 0x6A703263: // 'jp2c'
  38676. this.parseCodestream(data, position, position + dataLength);
  38677. break;
  38678. }
  38679. if (jumpDataLength) {
  38680. position += dataLength;
  38681. }
  38682. }
  38683. },
  38684. parseImageProperties: function JpxImage_parseImageProperties(stream) {
  38685. var newByte = stream.getByte();
  38686. while (newByte >= 0) {
  38687. var oldByte = newByte;
  38688. newByte = stream.getByte();
  38689. var code = (oldByte << 8) | newByte;
  38690. // Image and tile size (SIZ)
  38691. if (code == 0xFF51) {
  38692. stream.skip(4);
  38693. var Xsiz = stream.getInt32() >>> 0; // Byte 4
  38694. var Ysiz = stream.getInt32() >>> 0; // Byte 8
  38695. var XOsiz = stream.getInt32() >>> 0; // Byte 12
  38696. var YOsiz = stream.getInt32() >>> 0; // Byte 16
  38697. stream.skip(16);
  38698. var Csiz = stream.getUint16(); // Byte 36
  38699. this.width = Xsiz - XOsiz;
  38700. this.height = Ysiz - YOsiz;
  38701. this.componentsCount = Csiz;
  38702. // Results are always returned as Uint8Arrays
  38703. this.bitsPerComponent = 8;
  38704. return;
  38705. }
  38706. }
  38707. throw new Error('JPX Error: No size marker found in JPX stream');
  38708. },
  38709. parseCodestream: function JpxImage_parseCodestream(data, start, end) {
  38710. var context = {};
  38711. try {
  38712. var doNotRecover = false;
  38713. var position = start;
  38714. while (position + 1 < end) {
  38715. var code = readUint16(data, position);
  38716. position += 2;
  38717. var length = 0, j, sqcd, spqcds, spqcdSize, scalarExpounded, tile;
  38718. switch (code) {
  38719. case 0xFF4F: // Start of codestream (SOC)
  38720. context.mainHeader = true;
  38721. break;
  38722. case 0xFFD9: // End of codestream (EOC)
  38723. break;
  38724. case 0xFF51: // Image and tile size (SIZ)
  38725. length = readUint16(data, position);
  38726. var siz = {};
  38727. siz.Xsiz = readUint32(data, position + 4);
  38728. siz.Ysiz = readUint32(data, position + 8);
  38729. siz.XOsiz = readUint32(data, position + 12);
  38730. siz.YOsiz = readUint32(data, position + 16);
  38731. siz.XTsiz = readUint32(data, position + 20);
  38732. siz.YTsiz = readUint32(data, position + 24);
  38733. siz.XTOsiz = readUint32(data, position + 28);
  38734. siz.YTOsiz = readUint32(data, position + 32);
  38735. var componentsCount = readUint16(data, position + 36);
  38736. siz.Csiz = componentsCount;
  38737. var components = [];
  38738. j = position + 38;
  38739. for (var i = 0; i < componentsCount; i++) {
  38740. var component = {
  38741. precision: (data[j] & 0x7F) + 1,
  38742. isSigned: !!(data[j] & 0x80),
  38743. XRsiz: data[j + 1],
  38744. YRsiz: data[j + 1]
  38745. };
  38746. calculateComponentDimensions(component, siz);
  38747. components.push(component);
  38748. }
  38749. context.SIZ = siz;
  38750. context.components = components;
  38751. calculateTileGrids(context, components);
  38752. context.QCC = [];
  38753. context.COC = [];
  38754. break;
  38755. case 0xFF55: // Tile-part lengths, main header (TLM)
  38756. var Ltlm = readUint16(data, position); // Marker segment length
  38757. // Skip tile length markers
  38758. position += Ltlm;
  38759. break;
  38760. case 0xFF5C: // Quantization default (QCD)
  38761. length = readUint16(data, position);
  38762. var qcd = {};
  38763. j = position + 2;
  38764. sqcd = data[j++];
  38765. switch (sqcd & 0x1F) {
  38766. case 0:
  38767. spqcdSize = 8;
  38768. scalarExpounded = true;
  38769. break;
  38770. case 1:
  38771. spqcdSize = 16;
  38772. scalarExpounded = false;
  38773. break;
  38774. case 2:
  38775. spqcdSize = 16;
  38776. scalarExpounded = true;
  38777. break;
  38778. default:
  38779. throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
  38780. }
  38781. qcd.noQuantization = (spqcdSize == 8);
  38782. qcd.scalarExpounded = scalarExpounded;
  38783. qcd.guardBits = sqcd >> 5;
  38784. spqcds = [];
  38785. while (j < length + position) {
  38786. var spqcd = {};
  38787. if (spqcdSize == 8) {
  38788. spqcd.epsilon = data[j++] >> 3;
  38789. spqcd.mu = 0;
  38790. } else {
  38791. spqcd.epsilon = data[j] >> 3;
  38792. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  38793. j += 2;
  38794. }
  38795. spqcds.push(spqcd);
  38796. }
  38797. qcd.SPqcds = spqcds;
  38798. if (context.mainHeader) {
  38799. context.QCD = qcd;
  38800. } else {
  38801. context.currentTile.QCD = qcd;
  38802. context.currentTile.QCC = [];
  38803. }
  38804. break;
  38805. case 0xFF5D: // Quantization component (QCC)
  38806. length = readUint16(data, position);
  38807. var qcc = {};
  38808. j = position + 2;
  38809. var cqcc;
  38810. if (context.SIZ.Csiz < 257) {
  38811. cqcc = data[j++];
  38812. } else {
  38813. cqcc = readUint16(data, j);
  38814. j += 2;
  38815. }
  38816. sqcd = data[j++];
  38817. switch (sqcd & 0x1F) {
  38818. case 0:
  38819. spqcdSize = 8;
  38820. scalarExpounded = true;
  38821. break;
  38822. case 1:
  38823. spqcdSize = 16;
  38824. scalarExpounded = false;
  38825. break;
  38826. case 2:
  38827. spqcdSize = 16;
  38828. scalarExpounded = true;
  38829. break;
  38830. default:
  38831. throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
  38832. }
  38833. qcc.noQuantization = (spqcdSize == 8);
  38834. qcc.scalarExpounded = scalarExpounded;
  38835. qcc.guardBits = sqcd >> 5;
  38836. spqcds = [];
  38837. while (j < (length + position)) {
  38838. spqcd = {};
  38839. if (spqcdSize == 8) {
  38840. spqcd.epsilon = data[j++] >> 3;
  38841. spqcd.mu = 0;
  38842. } else {
  38843. spqcd.epsilon = data[j] >> 3;
  38844. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  38845. j += 2;
  38846. }
  38847. spqcds.push(spqcd);
  38848. }
  38849. qcc.SPqcds = spqcds;
  38850. if (context.mainHeader) {
  38851. context.QCC[cqcc] = qcc;
  38852. } else {
  38853. context.currentTile.QCC[cqcc] = qcc;
  38854. }
  38855. break;
  38856. case 0xFF52: // Coding style default (COD)
  38857. length = readUint16(data, position);
  38858. var cod = {};
  38859. j = position + 2;
  38860. var scod = data[j++];
  38861. cod.entropyCoderWithCustomPrecincts = !!(scod & 1);
  38862. cod.sopMarkerUsed = !!(scod & 2);
  38863. cod.ephMarkerUsed = !!(scod & 4);
  38864. cod.progressionOrder = data[j++];
  38865. cod.layersCount = readUint16(data, j);
  38866. j += 2;
  38867. cod.multipleComponentTransform = data[j++];
  38868. cod.decompositionLevelsCount = data[j++];
  38869. cod.xcb = (data[j++] & 0xF) + 2;
  38870. cod.ycb = (data[j++] & 0xF) + 2;
  38871. var blockStyle = data[j++];
  38872. cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
  38873. cod.resetContextProbabilities = !!(blockStyle & 2);
  38874. cod.terminationOnEachCodingPass = !!(blockStyle & 4);
  38875. cod.verticalyStripe = !!(blockStyle & 8);
  38876. cod.predictableTermination = !!(blockStyle & 16);
  38877. cod.segmentationSymbolUsed = !!(blockStyle & 32);
  38878. cod.reversibleTransformation = data[j++];
  38879. if (cod.entropyCoderWithCustomPrecincts) {
  38880. var precinctsSizes = [];
  38881. while (j < length + position) {
  38882. var precinctsSize = data[j++];
  38883. precinctsSizes.push({
  38884. PPx: precinctsSize & 0xF,
  38885. PPy: precinctsSize >> 4
  38886. });
  38887. }
  38888. cod.precinctsSizes = precinctsSizes;
  38889. }
  38890. var unsupported = [];
  38891. if (cod.sopMarkerUsed) {
  38892. unsupported.push('sopMarkerUsed');
  38893. }
  38894. if (cod.ephMarkerUsed) {
  38895. unsupported.push('ephMarkerUsed');
  38896. }
  38897. if (cod.selectiveArithmeticCodingBypass) {
  38898. unsupported.push('selectiveArithmeticCodingBypass');
  38899. }
  38900. if (cod.resetContextProbabilities) {
  38901. unsupported.push('resetContextProbabilities');
  38902. }
  38903. if (cod.terminationOnEachCodingPass) {
  38904. unsupported.push('terminationOnEachCodingPass');
  38905. }
  38906. if (cod.verticalyStripe) {
  38907. unsupported.push('verticalyStripe');
  38908. }
  38909. if (cod.predictableTermination) {
  38910. unsupported.push('predictableTermination');
  38911. }
  38912. if (unsupported.length > 0) {
  38913. doNotRecover = true;
  38914. throw new Error('JPX Error: Unsupported COD options (' +
  38915. unsupported.join(', ') + ')');
  38916. }
  38917. if (context.mainHeader) {
  38918. context.COD = cod;
  38919. } else {
  38920. context.currentTile.COD = cod;
  38921. context.currentTile.COC = [];
  38922. }
  38923. break;
  38924. case 0xFF90: // Start of tile-part (SOT)
  38925. length = readUint16(data, position);
  38926. tile = {};
  38927. tile.index = readUint16(data, position + 2);
  38928. tile.length = readUint32(data, position + 4);
  38929. tile.dataEnd = tile.length + position - 2;
  38930. tile.partIndex = data[position + 8];
  38931. tile.partsCount = data[position + 9];
  38932. context.mainHeader = false;
  38933. if (tile.partIndex === 0) {
  38934. // reset component specific settings
  38935. tile.COD = context.COD;
  38936. tile.COC = context.COC.slice(0); // clone of the global COC
  38937. tile.QCD = context.QCD;
  38938. tile.QCC = context.QCC.slice(0); // clone of the global COC
  38939. }
  38940. context.currentTile = tile;
  38941. break;
  38942. case 0xFF93: // Start of data (SOD)
  38943. tile = context.currentTile;
  38944. if (tile.partIndex === 0) {
  38945. initializeTile(context, tile.index);
  38946. buildPackets(context);
  38947. }
  38948. // moving to the end of the data
  38949. length = tile.dataEnd - position;
  38950. parseTilePackets(context, data, position, length);
  38951. break;
  38952. case 0xFF64: // Comment (COM)
  38953. length = readUint16(data, position);
  38954. // skipping content
  38955. break;
  38956. case 0xFF53: // Coding style component (COC)
  38957. throw new Error('JPX Error: Codestream code 0xFF53 (COC) is ' +
  38958. 'not implemented');
  38959. default:
  38960. throw new Error('JPX Error: Unknown codestream code: ' +
  38961. code.toString(16));
  38962. }
  38963. position += length;
  38964. }
  38965. } catch (e) {
  38966. if (doNotRecover || this.failOnCorruptedImage) {
  38967. throw e;
  38968. } else {
  38969. warn('Trying to recover from ' + e.message);
  38970. }
  38971. }
  38972. this.tiles = transformComponents(context);
  38973. this.width = context.SIZ.Xsiz - context.SIZ.XOsiz;
  38974. this.height = context.SIZ.Ysiz - context.SIZ.YOsiz;
  38975. this.componentsCount = context.SIZ.Csiz;
  38976. }
  38977. };
  38978. function calculateComponentDimensions(component, siz) {
  38979. // Section B.2 Component mapping
  38980. component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
  38981. component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
  38982. component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
  38983. component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
  38984. component.width = component.x1 - component.x0;
  38985. component.height = component.y1 - component.y0;
  38986. }
  38987. function calculateTileGrids(context, components) {
  38988. var siz = context.SIZ;
  38989. // Section B.3 Division into tile and tile-components
  38990. var tile, tiles = [];
  38991. var numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz);
  38992. var numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz);
  38993. for (var q = 0; q < numYtiles; q++) {
  38994. for (var p = 0; p < numXtiles; p++) {
  38995. tile = {};
  38996. tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz);
  38997. tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz);
  38998. tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz);
  38999. tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz);
  39000. tile.width = tile.tx1 - tile.tx0;
  39001. tile.height = tile.ty1 - tile.ty0;
  39002. tile.components = [];
  39003. tiles.push(tile);
  39004. }
  39005. }
  39006. context.tiles = tiles;
  39007. var componentsCount = siz.Csiz;
  39008. for (var i = 0, ii = componentsCount; i < ii; i++) {
  39009. var component = components[i];
  39010. for (var j = 0, jj = tiles.length; j < jj; j++) {
  39011. var tileComponent = {};
  39012. tile = tiles[j];
  39013. tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
  39014. tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
  39015. tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
  39016. tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
  39017. tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0;
  39018. tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0;
  39019. tile.components[i] = tileComponent;
  39020. }
  39021. }
  39022. }
  39023. function getBlocksDimensions(context, component, r) {
  39024. var codOrCoc = component.codingStyleParameters;
  39025. var result = {};
  39026. if (!codOrCoc.entropyCoderWithCustomPrecincts) {
  39027. result.PPx = 15;
  39028. result.PPy = 15;
  39029. } else {
  39030. result.PPx = codOrCoc.precinctsSizes[r].PPx;
  39031. result.PPy = codOrCoc.precinctsSizes[r].PPy;
  39032. }
  39033. // calculate codeblock size as described in section B.7
  39034. result.xcb_ = (r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) :
  39035. Math.min(codOrCoc.xcb, result.PPx));
  39036. result.ycb_ = (r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) :
  39037. Math.min(codOrCoc.ycb, result.PPy));
  39038. return result;
  39039. }
  39040. function buildPrecincts(context, resolution, dimensions) {
  39041. // Section B.6 Division resolution to precincts
  39042. var precinctWidth = 1 << dimensions.PPx;
  39043. var precinctHeight = 1 << dimensions.PPy;
  39044. var numprecinctswide = (resolution.trx1 > resolution.trx0 ?
  39045. Math.ceil(resolution.trx1 / precinctWidth) -
  39046. Math.floor(resolution.trx0 / precinctWidth) : 0);
  39047. var numprecinctshigh = (resolution.try1 > resolution.try0 ?
  39048. Math.ceil(resolution.try1 / precinctHeight) -
  39049. Math.floor(resolution.try0 / precinctHeight) : 0);
  39050. var numprecincts = numprecinctswide * numprecinctshigh;
  39051. var precinctXOffset = Math.floor(resolution.trx0 / precinctWidth) *
  39052. precinctWidth;
  39053. var precinctYOffset = Math.floor(resolution.try0 / precinctHeight) *
  39054. precinctHeight;
  39055. resolution.precinctParameters = {
  39056. precinctXOffset: precinctXOffset,
  39057. precinctYOffset: precinctYOffset,
  39058. precinctWidth: precinctWidth,
  39059. precinctHeight: precinctHeight,
  39060. numprecinctswide: numprecinctswide,
  39061. numprecinctshigh: numprecinctshigh,
  39062. numprecincts: numprecincts
  39063. };
  39064. }
  39065. function buildCodeblocks(context, subband, dimensions) {
  39066. // Section B.7 Division sub-band into code-blocks
  39067. var xcb_ = dimensions.xcb_;
  39068. var ycb_ = dimensions.ycb_;
  39069. var codeblockWidth = 1 << xcb_;
  39070. var codeblockHeight = 1 << ycb_;
  39071. var cbx0 = subband.tbx0 >> xcb_;
  39072. var cby0 = subband.tby0 >> ycb_;
  39073. var cbx1 = (subband.tbx1 + codeblockWidth - 1) >> xcb_;
  39074. var cby1 = (subband.tby1 + codeblockHeight - 1) >> ycb_;
  39075. var precinctParameters = subband.resolution.precinctParameters;
  39076. var codeblocks = [];
  39077. var precincts = [];
  39078. var i, j, codeblock, precinctNumber;
  39079. for (j = cby0; j < cby1; j++) {
  39080. for (i = cbx0; i < cbx1; i++) {
  39081. codeblock = {
  39082. cbx: i,
  39083. cby: j,
  39084. tbx0: codeblockWidth * i,
  39085. tby0: codeblockHeight * j,
  39086. tbx1: codeblockWidth * (i + 1),
  39087. tby1: codeblockHeight * (j + 1)
  39088. };
  39089. // calculate precinct number
  39090. var pi = Math.floor((codeblock.tbx0 -
  39091. precinctParameters.precinctXOffset) /
  39092. precinctParameters.precinctWidth);
  39093. var pj = Math.floor((codeblock.tby0 -
  39094. precinctParameters.precinctYOffset) /
  39095. precinctParameters.precinctHeight);
  39096. precinctNumber = pj + pi * precinctParameters.numprecinctswide;
  39097. codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0);
  39098. codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0);
  39099. codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1);
  39100. codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1);
  39101. codeblock.precinctNumber = precinctNumber;
  39102. codeblock.subbandType = subband.type;
  39103. codeblock.Lblock = 3;
  39104. codeblocks.push(codeblock);
  39105. // building precinct for the sub-band
  39106. var precinct = precincts[precinctNumber];
  39107. if (precinct !== undefined) {
  39108. if (i < precinct.cbxMin) {
  39109. precinct.cbxMin = i;
  39110. } else if (i > precinct.cbxMax) {
  39111. precinct.cbxMax = i;
  39112. }
  39113. if (j < precinct.cbyMin) {
  39114. precinct.cbxMin = j;
  39115. } else if (j > precinct.cbyMax) {
  39116. precinct.cbyMax = j;
  39117. }
  39118. } else {
  39119. precincts[precinctNumber] = precinct = {
  39120. cbxMin: i,
  39121. cbyMin: j,
  39122. cbxMax: i,
  39123. cbyMax: j
  39124. };
  39125. }
  39126. codeblock.precinct = precinct;
  39127. }
  39128. }
  39129. subband.codeblockParameters = {
  39130. codeblockWidth: xcb_,
  39131. codeblockHeight: ycb_,
  39132. numcodeblockwide: cbx1 - cbx0 + 1,
  39133. numcodeblockhigh: cby1 - cby1 + 1
  39134. };
  39135. subband.codeblocks = codeblocks;
  39136. subband.precincts = precincts;
  39137. }
  39138. function createPacket(resolution, precinctNumber, layerNumber) {
  39139. var precinctCodeblocks = [];
  39140. // Section B.10.8 Order of info in packet
  39141. var subbands = resolution.subbands;
  39142. // sub-bands already ordered in 'LL', 'HL', 'LH', and 'HH' sequence
  39143. for (var i = 0, ii = subbands.length; i < ii; i++) {
  39144. var subband = subbands[i];
  39145. var codeblocks = subband.codeblocks;
  39146. for (var j = 0, jj = codeblocks.length; j < jj; j++) {
  39147. var codeblock = codeblocks[j];
  39148. if (codeblock.precinctNumber != precinctNumber) {
  39149. continue;
  39150. }
  39151. precinctCodeblocks.push(codeblock);
  39152. }
  39153. }
  39154. return {
  39155. layerNumber: layerNumber,
  39156. codeblocks: precinctCodeblocks
  39157. };
  39158. }
  39159. function LayerResolutionComponentPositionIterator(context) {
  39160. var siz = context.SIZ;
  39161. var tileIndex = context.currentTile.index;
  39162. var tile = context.tiles[tileIndex];
  39163. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  39164. var componentsCount = siz.Csiz;
  39165. var maxDecompositionLevelsCount = 0;
  39166. for (var q = 0; q < componentsCount; q++) {
  39167. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  39168. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  39169. }
  39170. var l = 0, r = 0, i = 0, k = 0;
  39171. this.nextPacket = function JpxImage_nextPacket() {
  39172. // Section B.12.1.1 Layer-resolution-component-position
  39173. for (; l < layersCount; l++) {
  39174. for (; r <= maxDecompositionLevelsCount; r++) {
  39175. for (; i < componentsCount; i++) {
  39176. var component = tile.components[i];
  39177. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  39178. continue;
  39179. }
  39180. var resolution = component.resolutions[r];
  39181. var numprecincts = resolution.precinctParameters.numprecincts;
  39182. for (; k < numprecincts;) {
  39183. var packet = createPacket(resolution, k, l);
  39184. k++;
  39185. return packet;
  39186. }
  39187. k = 0;
  39188. }
  39189. i = 0;
  39190. }
  39191. r = 0;
  39192. }
  39193. throw new Error('JPX Error: Out of packets');
  39194. };
  39195. }
  39196. function ResolutionLayerComponentPositionIterator(context) {
  39197. var siz = context.SIZ;
  39198. var tileIndex = context.currentTile.index;
  39199. var tile = context.tiles[tileIndex];
  39200. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  39201. var componentsCount = siz.Csiz;
  39202. var maxDecompositionLevelsCount = 0;
  39203. for (var q = 0; q < componentsCount; q++) {
  39204. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  39205. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  39206. }
  39207. var r = 0, l = 0, i = 0, k = 0;
  39208. this.nextPacket = function JpxImage_nextPacket() {
  39209. // Section B.12.1.2 Resolution-layer-component-position
  39210. for (; r <= maxDecompositionLevelsCount; r++) {
  39211. for (; l < layersCount; l++) {
  39212. for (; i < componentsCount; i++) {
  39213. var component = tile.components[i];
  39214. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  39215. continue;
  39216. }
  39217. var resolution = component.resolutions[r];
  39218. var numprecincts = resolution.precinctParameters.numprecincts;
  39219. for (; k < numprecincts;) {
  39220. var packet = createPacket(resolution, k, l);
  39221. k++;
  39222. return packet;
  39223. }
  39224. k = 0;
  39225. }
  39226. i = 0;
  39227. }
  39228. l = 0;
  39229. }
  39230. throw new Error('JPX Error: Out of packets');
  39231. };
  39232. }
  39233. function buildPackets(context) {
  39234. var siz = context.SIZ;
  39235. var tileIndex = context.currentTile.index;
  39236. var tile = context.tiles[tileIndex];
  39237. var componentsCount = siz.Csiz;
  39238. // Creating resolutions and sub-bands for each component
  39239. for (var c = 0; c < componentsCount; c++) {
  39240. var component = tile.components[c];
  39241. var decompositionLevelsCount =
  39242. component.codingStyleParameters.decompositionLevelsCount;
  39243. // Section B.5 Resolution levels and sub-bands
  39244. var resolutions = [];
  39245. var subbands = [];
  39246. for (var r = 0; r <= decompositionLevelsCount; r++) {
  39247. var blocksDimensions = getBlocksDimensions(context, component, r);
  39248. var resolution = {};
  39249. var scale = 1 << (decompositionLevelsCount - r);
  39250. resolution.trx0 = Math.ceil(component.tcx0 / scale);
  39251. resolution.try0 = Math.ceil(component.tcy0 / scale);
  39252. resolution.trx1 = Math.ceil(component.tcx1 / scale);
  39253. resolution.try1 = Math.ceil(component.tcy1 / scale);
  39254. buildPrecincts(context, resolution, blocksDimensions);
  39255. resolutions.push(resolution);
  39256. var subband;
  39257. if (r === 0) {
  39258. // one sub-band (LL) with last decomposition
  39259. subband = {};
  39260. subband.type = 'LL';
  39261. subband.tbx0 = Math.ceil(component.tcx0 / scale);
  39262. subband.tby0 = Math.ceil(component.tcy0 / scale);
  39263. subband.tbx1 = Math.ceil(component.tcx1 / scale);
  39264. subband.tby1 = Math.ceil(component.tcy1 / scale);
  39265. subband.resolution = resolution;
  39266. buildCodeblocks(context, subband, blocksDimensions);
  39267. subbands.push(subband);
  39268. resolution.subbands = [subband];
  39269. } else {
  39270. var bscale = 1 << (decompositionLevelsCount - r + 1);
  39271. var resolutionSubbands = [];
  39272. // three sub-bands (HL, LH and HH) with rest of decompositions
  39273. subband = {};
  39274. subband.type = 'HL';
  39275. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  39276. subband.tby0 = Math.ceil(component.tcy0 / bscale);
  39277. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  39278. subband.tby1 = Math.ceil(component.tcy1 / bscale);
  39279. subband.resolution = resolution;
  39280. buildCodeblocks(context, subband, blocksDimensions);
  39281. subbands.push(subband);
  39282. resolutionSubbands.push(subband);
  39283. subband = {};
  39284. subband.type = 'LH';
  39285. subband.tbx0 = Math.ceil(component.tcx0 / bscale);
  39286. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  39287. subband.tbx1 = Math.ceil(component.tcx1 / bscale);
  39288. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  39289. subband.resolution = resolution;
  39290. buildCodeblocks(context, subband, blocksDimensions);
  39291. subbands.push(subband);
  39292. resolutionSubbands.push(subband);
  39293. subband = {};
  39294. subband.type = 'HH';
  39295. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  39296. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  39297. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  39298. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  39299. subband.resolution = resolution;
  39300. buildCodeblocks(context, subband, blocksDimensions);
  39301. subbands.push(subband);
  39302. resolutionSubbands.push(subband);
  39303. resolution.subbands = resolutionSubbands;
  39304. }
  39305. }
  39306. component.resolutions = resolutions;
  39307. component.subbands = subbands;
  39308. }
  39309. // Generate the packets sequence
  39310. var progressionOrder = tile.codingStyleDefaultParameters.progressionOrder;
  39311. switch (progressionOrder) {
  39312. case 0:
  39313. tile.packetsIterator =
  39314. new LayerResolutionComponentPositionIterator(context);
  39315. break;
  39316. case 1:
  39317. tile.packetsIterator =
  39318. new ResolutionLayerComponentPositionIterator(context);
  39319. break;
  39320. default:
  39321. throw new Error('JPX Error: Unsupported progression order ' +
  39322. progressionOrder);
  39323. }
  39324. }
  39325. function parseTilePackets(context, data, offset, dataLength) {
  39326. var position = 0;
  39327. var buffer, bufferSize = 0, skipNextBit = false;
  39328. function readBits(count) {
  39329. while (bufferSize < count) {
  39330. var b = data[offset + position];
  39331. position++;
  39332. if (skipNextBit) {
  39333. buffer = (buffer << 7) | b;
  39334. bufferSize += 7;
  39335. skipNextBit = false;
  39336. } else {
  39337. buffer = (buffer << 8) | b;
  39338. bufferSize += 8;
  39339. }
  39340. if (b == 0xFF) {
  39341. skipNextBit = true;
  39342. }
  39343. }
  39344. bufferSize -= count;
  39345. return (buffer >>> bufferSize) & ((1 << count) - 1);
  39346. }
  39347. function alignToByte() {
  39348. bufferSize = 0;
  39349. if (skipNextBit) {
  39350. position++;
  39351. skipNextBit = false;
  39352. }
  39353. }
  39354. function readCodingpasses() {
  39355. if (readBits(1) === 0) {
  39356. return 1;
  39357. }
  39358. if (readBits(1) === 0) {
  39359. return 2;
  39360. }
  39361. var value = readBits(2);
  39362. if (value < 3) {
  39363. return value + 3;
  39364. }
  39365. value = readBits(5);
  39366. if (value < 31) {
  39367. return value + 6;
  39368. }
  39369. value = readBits(7);
  39370. return value + 37;
  39371. }
  39372. var tileIndex = context.currentTile.index;
  39373. var tile = context.tiles[tileIndex];
  39374. var packetsIterator = tile.packetsIterator;
  39375. while (position < dataLength) {
  39376. var packet = packetsIterator.nextPacket();
  39377. if (!readBits(1)) {
  39378. alignToByte();
  39379. continue;
  39380. }
  39381. var layerNumber = packet.layerNumber;
  39382. var queue = [], codeblock;
  39383. for (var i = 0, ii = packet.codeblocks.length; i < ii; i++) {
  39384. codeblock = packet.codeblocks[i];
  39385. var precinct = codeblock.precinct;
  39386. var codeblockColumn = codeblock.cbx - precinct.cbxMin;
  39387. var codeblockRow = codeblock.cby - precinct.cbyMin;
  39388. var codeblockIncluded = false;
  39389. var firstTimeInclusion = false;
  39390. var valueReady;
  39391. if ('included' in codeblock) {
  39392. codeblockIncluded = !!readBits(1);
  39393. } else {
  39394. // reading inclusion tree
  39395. precinct = codeblock.precinct;
  39396. var inclusionTree, zeroBitPlanesTree;
  39397. if ('inclusionTree' in precinct) {
  39398. inclusionTree = precinct.inclusionTree;
  39399. } else {
  39400. // building inclusion and zero bit-planes trees
  39401. var width = precinct.cbxMax - precinct.cbxMin + 1;
  39402. var height = precinct.cbyMax - precinct.cbyMin + 1;
  39403. inclusionTree = new InclusionTree(width, height, layerNumber);
  39404. zeroBitPlanesTree = new TagTree(width, height);
  39405. precinct.inclusionTree = inclusionTree;
  39406. precinct.zeroBitPlanesTree = zeroBitPlanesTree;
  39407. }
  39408. if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
  39409. while (true) {
  39410. if (readBits(1)) {
  39411. valueReady = !inclusionTree.nextLevel();
  39412. if (valueReady) {
  39413. codeblock.included = true;
  39414. codeblockIncluded = firstTimeInclusion = true;
  39415. break;
  39416. }
  39417. } else {
  39418. inclusionTree.incrementValue(layerNumber);
  39419. break;
  39420. }
  39421. }
  39422. }
  39423. }
  39424. if (!codeblockIncluded) {
  39425. continue;
  39426. }
  39427. if (firstTimeInclusion) {
  39428. zeroBitPlanesTree = precinct.zeroBitPlanesTree;
  39429. zeroBitPlanesTree.reset(codeblockColumn, codeblockRow);
  39430. while (true) {
  39431. if (readBits(1)) {
  39432. valueReady = !zeroBitPlanesTree.nextLevel();
  39433. if (valueReady) {
  39434. break;
  39435. }
  39436. } else {
  39437. zeroBitPlanesTree.incrementValue();
  39438. }
  39439. }
  39440. codeblock.zeroBitPlanes = zeroBitPlanesTree.value;
  39441. }
  39442. var codingpasses = readCodingpasses();
  39443. while (readBits(1)) {
  39444. codeblock.Lblock++;
  39445. }
  39446. var codingpassesLog2 = log2(codingpasses);
  39447. // rounding down log2
  39448. var bits = ((codingpasses < (1 << codingpassesLog2)) ?
  39449. codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock;
  39450. var codedDataLength = readBits(bits);
  39451. queue.push({
  39452. codeblock: codeblock,
  39453. codingpasses: codingpasses,
  39454. dataLength: codedDataLength
  39455. });
  39456. }
  39457. alignToByte();
  39458. while (queue.length > 0) {
  39459. var packetItem = queue.shift();
  39460. codeblock = packetItem.codeblock;
  39461. if (!('data' in codeblock)) {
  39462. codeblock.data = [];
  39463. }
  39464. codeblock.data.push({
  39465. data: data,
  39466. start: offset + position,
  39467. end: offset + position + packetItem.dataLength,
  39468. codingpasses: packetItem.codingpasses
  39469. });
  39470. position += packetItem.dataLength;
  39471. }
  39472. }
  39473. return position;
  39474. }
  39475. function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
  39476. delta, mb, reversible, segmentationSymbolUsed) {
  39477. var x0 = subband.tbx0;
  39478. var y0 = subband.tby0;
  39479. var width = subband.tbx1 - subband.tbx0;
  39480. var codeblocks = subband.codeblocks;
  39481. var right = subband.type.charAt(0) === 'H' ? 1 : 0;
  39482. var bottom = subband.type.charAt(1) === 'H' ? levelWidth : 0;
  39483. for (var i = 0, ii = codeblocks.length; i < ii; ++i) {
  39484. var codeblock = codeblocks[i];
  39485. var blockWidth = codeblock.tbx1_ - codeblock.tbx0_;
  39486. var blockHeight = codeblock.tby1_ - codeblock.tby0_;
  39487. if (blockWidth === 0 || blockHeight === 0) {
  39488. continue;
  39489. }
  39490. if (!('data' in codeblock)) {
  39491. continue;
  39492. }
  39493. var bitModel, currentCodingpassType;
  39494. bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType,
  39495. codeblock.zeroBitPlanes, mb);
  39496. currentCodingpassType = 2; // first bit plane starts from cleanup
  39497. // collect data
  39498. var data = codeblock.data, totalLength = 0, codingpasses = 0;
  39499. var j, jj, dataItem;
  39500. for (j = 0, jj = data.length; j < jj; j++) {
  39501. dataItem = data[j];
  39502. totalLength += dataItem.end - dataItem.start;
  39503. codingpasses += dataItem.codingpasses;
  39504. }
  39505. var encodedData = new Uint8Array(totalLength);
  39506. var position = 0;
  39507. for (j = 0, jj = data.length; j < jj; j++) {
  39508. dataItem = data[j];
  39509. var chunk = dataItem.data.subarray(dataItem.start, dataItem.end);
  39510. encodedData.set(chunk, position);
  39511. position += chunk.length;
  39512. }
  39513. // decoding the item
  39514. var decoder = new ArithmeticDecoder(encodedData, 0, totalLength);
  39515. bitModel.setDecoder(decoder);
  39516. for (j = 0; j < codingpasses; j++) {
  39517. switch (currentCodingpassType) {
  39518. case 0:
  39519. bitModel.runSignificancePropogationPass();
  39520. break;
  39521. case 1:
  39522. bitModel.runMagnitudeRefinementPass();
  39523. break;
  39524. case 2:
  39525. bitModel.runCleanupPass();
  39526. if (segmentationSymbolUsed) {
  39527. bitModel.checkSegmentationSymbol();
  39528. }
  39529. break;
  39530. }
  39531. currentCodingpassType = (currentCodingpassType + 1) % 3;
  39532. }
  39533. var offset = (codeblock.tbx0_ - x0) + (codeblock.tby0_ - y0) * width;
  39534. var sign = bitModel.coefficentsSign;
  39535. var magnitude = bitModel.coefficentsMagnitude;
  39536. var bitsDecoded = bitModel.bitsDecoded;
  39537. var magnitudeCorrection = reversible ? 0 : 0.5;
  39538. var k, n, nb;
  39539. position = 0;
  39540. // Do the interleaving of Section F.3.3 here, so we do not need
  39541. // to copy later. LL level is not interleaved, just copied.
  39542. var interleave = (subband.type !== 'LL');
  39543. for (j = 0; j < blockHeight; j++) {
  39544. var row = (offset / width) | 0; // row in the non-interleaved subband
  39545. var levelOffset = 2 * row * (levelWidth - width) + right + bottom;
  39546. for (k = 0; k < blockWidth; k++) {
  39547. n = magnitude[position];
  39548. if (n !== 0) {
  39549. n = (n + magnitudeCorrection) * delta;
  39550. if (sign[position] !== 0) {
  39551. n = -n;
  39552. }
  39553. nb = bitsDecoded[position];
  39554. var pos = interleave ? (levelOffset + (offset << 1)) : offset;
  39555. if (reversible && (nb >= mb)) {
  39556. coefficients[pos] = n;
  39557. } else {
  39558. coefficients[pos] = n * (1 << (mb - nb));
  39559. }
  39560. }
  39561. offset++;
  39562. position++;
  39563. }
  39564. offset += width - blockWidth;
  39565. }
  39566. }
  39567. }
  39568. function transformTile(context, tile, c) {
  39569. var component = tile.components[c];
  39570. var codingStyleParameters = component.codingStyleParameters;
  39571. var quantizationParameters = component.quantizationParameters;
  39572. var decompositionLevelsCount =
  39573. codingStyleParameters.decompositionLevelsCount;
  39574. var spqcds = quantizationParameters.SPqcds;
  39575. var scalarExpounded = quantizationParameters.scalarExpounded;
  39576. var guardBits = quantizationParameters.guardBits;
  39577. var segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed;
  39578. var precision = context.components[c].precision;
  39579. var reversible = codingStyleParameters.reversibleTransformation;
  39580. var transform = (reversible ? new ReversibleTransform() :
  39581. new IrreversibleTransform());
  39582. var subbandCoefficients = [];
  39583. var b = 0;
  39584. for (var i = 0; i <= decompositionLevelsCount; i++) {
  39585. var resolution = component.resolutions[i];
  39586. var width = resolution.trx1 - resolution.trx0;
  39587. var height = resolution.try1 - resolution.try0;
  39588. // Allocate space for the whole sublevel.
  39589. var coefficients = new Float32Array(width * height);
  39590. for (var j = 0, jj = resolution.subbands.length; j < jj; j++) {
  39591. var mu, epsilon;
  39592. if (!scalarExpounded) {
  39593. // formula E-5
  39594. mu = spqcds[0].mu;
  39595. epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0);
  39596. } else {
  39597. mu = spqcds[b].mu;
  39598. epsilon = spqcds[b].epsilon;
  39599. b++;
  39600. }
  39601. var subband = resolution.subbands[j];
  39602. var gainLog2 = SubbandsGainLog2[subband.type];
  39603. // calulate quantization coefficient (Section E.1.1.1)
  39604. var delta = (reversible ? 1 :
  39605. Math.pow(2, precision + gainLog2 - epsilon) * (1 + mu / 2048));
  39606. var mb = (guardBits + epsilon - 1);
  39607. // In the first resolution level, copyCoefficients will fill the
  39608. // whole array with coefficients. In the succeding passes,
  39609. // copyCoefficients will consecutively fill in the values that belong
  39610. // to the interleaved positions of the HL, LH, and HH coefficients.
  39611. // The LL coefficients will then be interleaved in Transform.iterate().
  39612. copyCoefficients(coefficients, width, height, subband, delta, mb,
  39613. reversible, segmentationSymbolUsed);
  39614. }
  39615. subbandCoefficients.push({
  39616. width: width,
  39617. height: height,
  39618. items: coefficients
  39619. });
  39620. }
  39621. var result = transform.calculate(subbandCoefficients,
  39622. component.tcx0, component.tcy0);
  39623. return {
  39624. left: component.tcx0,
  39625. top: component.tcy0,
  39626. width: result.width,
  39627. height: result.height,
  39628. items: result.items
  39629. };
  39630. }
  39631. function transformComponents(context) {
  39632. var siz = context.SIZ;
  39633. var components = context.components;
  39634. var componentsCount = siz.Csiz;
  39635. var resultImages = [];
  39636. for (var i = 0, ii = context.tiles.length; i < ii; i++) {
  39637. var tile = context.tiles[i];
  39638. var transformedTiles = [];
  39639. var c;
  39640. for (c = 0; c < componentsCount; c++) {
  39641. transformedTiles[c] = transformTile(context, tile, c);
  39642. }
  39643. var tile0 = transformedTiles[0];
  39644. var out = new Uint8Array(tile0.items.length * componentsCount);
  39645. var result = {
  39646. left: tile0.left,
  39647. top: tile0.top,
  39648. width: tile0.width,
  39649. height: tile0.height,
  39650. items: out
  39651. };
  39652. // Section G.2.2 Inverse multi component transform
  39653. var shift, offset, max, min, maxK;
  39654. var pos = 0, j, jj, y0, y1, y2, r, g, b, k, val;
  39655. if (tile.codingStyleDefaultParameters.multipleComponentTransform) {
  39656. var fourComponents = componentsCount === 4;
  39657. var y0items = transformedTiles[0].items;
  39658. var y1items = transformedTiles[1].items;
  39659. var y2items = transformedTiles[2].items;
  39660. var y3items = fourComponents ? transformedTiles[3].items : null;
  39661. // HACK: The multiple component transform formulas below assume that
  39662. // all components have the same precision. With this in mind, we
  39663. // compute shift and offset only once.
  39664. shift = components[0].precision - 8;
  39665. offset = (128 << shift) + 0.5;
  39666. max = 255 * (1 << shift);
  39667. maxK = max * 0.5;
  39668. min = -maxK;
  39669. var component0 = tile.components[0];
  39670. var alpha01 = componentsCount - 3;
  39671. jj = y0items.length;
  39672. if (!component0.codingStyleParameters.reversibleTransformation) {
  39673. // inverse irreversible multiple component transform
  39674. for (j = 0; j < jj; j++, pos += alpha01) {
  39675. y0 = y0items[j] + offset;
  39676. y1 = y1items[j];
  39677. y2 = y2items[j];
  39678. r = y0 + 1.402 * y2;
  39679. g = y0 - 0.34413 * y1 - 0.71414 * y2;
  39680. b = y0 + 1.772 * y1;
  39681. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  39682. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  39683. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  39684. }
  39685. } else {
  39686. // inverse reversible multiple component transform
  39687. for (j = 0; j < jj; j++, pos += alpha01) {
  39688. y0 = y0items[j] + offset;
  39689. y1 = y1items[j];
  39690. y2 = y2items[j];
  39691. g = y0 - ((y2 + y1) >> 2);
  39692. r = g + y2;
  39693. b = g + y1;
  39694. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  39695. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  39696. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  39697. }
  39698. }
  39699. if (fourComponents) {
  39700. for (j = 0, pos = 3; j < jj; j++, pos += 4) {
  39701. k = y3items[j];
  39702. out[pos] = k <= min ? 0 : k >= maxK ? 255 : (k + offset) >> shift;
  39703. }
  39704. }
  39705. } else { // no multi-component transform
  39706. for (c = 0; c < componentsCount; c++) {
  39707. var items = transformedTiles[c].items;
  39708. shift = components[c].precision - 8;
  39709. offset = (128 << shift) + 0.5;
  39710. max = (127.5 * (1 << shift));
  39711. min = -max;
  39712. for (pos = c, j = 0, jj = items.length; j < jj; j++) {
  39713. val = items[j];
  39714. out[pos] = val <= min ? 0 :
  39715. val >= max ? 255 : (val + offset) >> shift;
  39716. pos += componentsCount;
  39717. }
  39718. }
  39719. }
  39720. resultImages.push(result);
  39721. }
  39722. return resultImages;
  39723. }
  39724. function initializeTile(context, tileIndex) {
  39725. var siz = context.SIZ;
  39726. var componentsCount = siz.Csiz;
  39727. var tile = context.tiles[tileIndex];
  39728. for (var c = 0; c < componentsCount; c++) {
  39729. var component = tile.components[c];
  39730. var qcdOrQcc = (c in context.currentTile.QCC ?
  39731. context.currentTile.QCC[c] : context.currentTile.QCD);
  39732. component.quantizationParameters = qcdOrQcc;
  39733. var codOrCoc = (c in context.currentTile.COC ?
  39734. context.currentTile.COC[c] : context.currentTile.COD);
  39735. component.codingStyleParameters = codOrCoc;
  39736. }
  39737. tile.codingStyleDefaultParameters = context.currentTile.COD;
  39738. }
  39739. // Section B.10.2 Tag trees
  39740. var TagTree = (function TagTreeClosure() {
  39741. function TagTree(width, height) {
  39742. var levelsLength = log2(Math.max(width, height)) + 1;
  39743. this.levels = [];
  39744. for (var i = 0; i < levelsLength; i++) {
  39745. var level = {
  39746. width: width,
  39747. height: height,
  39748. items: []
  39749. };
  39750. this.levels.push(level);
  39751. width = Math.ceil(width / 2);
  39752. height = Math.ceil(height / 2);
  39753. }
  39754. }
  39755. TagTree.prototype = {
  39756. reset: function TagTree_reset(i, j) {
  39757. var currentLevel = 0, value = 0, level;
  39758. while (currentLevel < this.levels.length) {
  39759. level = this.levels[currentLevel];
  39760. var index = i + j * level.width;
  39761. if (index in level.items) {
  39762. value = level.items[index];
  39763. break;
  39764. }
  39765. level.index = index;
  39766. i >>= 1;
  39767. j >>= 1;
  39768. currentLevel++;
  39769. }
  39770. currentLevel--;
  39771. level = this.levels[currentLevel];
  39772. level.items[level.index] = value;
  39773. this.currentLevel = currentLevel;
  39774. delete this.value;
  39775. },
  39776. incrementValue: function TagTree_incrementValue() {
  39777. var level = this.levels[this.currentLevel];
  39778. level.items[level.index]++;
  39779. },
  39780. nextLevel: function TagTree_nextLevel() {
  39781. var currentLevel = this.currentLevel;
  39782. var level = this.levels[currentLevel];
  39783. var value = level.items[level.index];
  39784. currentLevel--;
  39785. if (currentLevel < 0) {
  39786. this.value = value;
  39787. return false;
  39788. }
  39789. this.currentLevel = currentLevel;
  39790. level = this.levels[currentLevel];
  39791. level.items[level.index] = value;
  39792. return true;
  39793. }
  39794. };
  39795. return TagTree;
  39796. })();
  39797. var InclusionTree = (function InclusionTreeClosure() {
  39798. function InclusionTree(width, height, defaultValue) {
  39799. var levelsLength = log2(Math.max(width, height)) + 1;
  39800. this.levels = [];
  39801. for (var i = 0; i < levelsLength; i++) {
  39802. var items = new Uint8Array(width * height);
  39803. for (var j = 0, jj = items.length; j < jj; j++) {
  39804. items[j] = defaultValue;
  39805. }
  39806. var level = {
  39807. width: width,
  39808. height: height,
  39809. items: items
  39810. };
  39811. this.levels.push(level);
  39812. width = Math.ceil(width / 2);
  39813. height = Math.ceil(height / 2);
  39814. }
  39815. }
  39816. InclusionTree.prototype = {
  39817. reset: function InclusionTree_reset(i, j, stopValue) {
  39818. var currentLevel = 0;
  39819. while (currentLevel < this.levels.length) {
  39820. var level = this.levels[currentLevel];
  39821. var index = i + j * level.width;
  39822. level.index = index;
  39823. var value = level.items[index];
  39824. if (value == 0xFF) {
  39825. break;
  39826. }
  39827. if (value > stopValue) {
  39828. this.currentLevel = currentLevel;
  39829. // already know about this one, propagating the value to top levels
  39830. this.propagateValues();
  39831. return false;
  39832. }
  39833. i >>= 1;
  39834. j >>= 1;
  39835. currentLevel++;
  39836. }
  39837. this.currentLevel = currentLevel - 1;
  39838. return true;
  39839. },
  39840. incrementValue: function InclusionTree_incrementValue(stopValue) {
  39841. var level = this.levels[this.currentLevel];
  39842. level.items[level.index] = stopValue + 1;
  39843. this.propagateValues();
  39844. },
  39845. propagateValues: function InclusionTree_propagateValues() {
  39846. var levelIndex = this.currentLevel;
  39847. var level = this.levels[levelIndex];
  39848. var currentValue = level.items[level.index];
  39849. while (--levelIndex >= 0) {
  39850. level = this.levels[levelIndex];
  39851. level.items[level.index] = currentValue;
  39852. }
  39853. },
  39854. nextLevel: function InclusionTree_nextLevel() {
  39855. var currentLevel = this.currentLevel;
  39856. var level = this.levels[currentLevel];
  39857. var value = level.items[level.index];
  39858. level.items[level.index] = 0xFF;
  39859. currentLevel--;
  39860. if (currentLevel < 0) {
  39861. return false;
  39862. }
  39863. this.currentLevel = currentLevel;
  39864. level = this.levels[currentLevel];
  39865. level.items[level.index] = value;
  39866. return true;
  39867. }
  39868. };
  39869. return InclusionTree;
  39870. })();
  39871. // Section D. Coefficient bit modeling
  39872. var BitModel = (function BitModelClosure() {
  39873. var UNIFORM_CONTEXT = 17;
  39874. var RUNLENGTH_CONTEXT = 18;
  39875. // Table D-1
  39876. // The index is binary presentation: 0dddvvhh, ddd - sum of Di (0..4),
  39877. // vv - sum of Vi (0..2), and hh - sum of Hi (0..2)
  39878. var LLAndLHContextsLabel = new Uint8Array([
  39879. 0, 5, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 1, 6, 8, 0, 3, 7, 8, 0, 4,
  39880. 7, 8, 0, 0, 0, 0, 0, 2, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 2, 6,
  39881. 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 2, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8
  39882. ]);
  39883. var HLContextLabel = new Uint8Array([
  39884. 0, 3, 4, 0, 5, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 1, 3, 4, 0, 6, 7, 7, 0, 8,
  39885. 8, 8, 0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 2, 3,
  39886. 4, 0, 6, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8
  39887. ]);
  39888. var HHContextLabel = new Uint8Array([
  39889. 0, 1, 2, 0, 1, 2, 2, 0, 2, 2, 2, 0, 0, 0, 0, 0, 3, 4, 5, 0, 4, 5, 5, 0, 5,
  39890. 5, 5, 0, 0, 0, 0, 0, 6, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 0, 0, 0, 0, 8, 8,
  39891. 8, 0, 8, 8, 8, 0, 8, 8, 8, 0, 0, 0, 0, 0, 8, 8, 8, 0, 8, 8, 8, 0, 8, 8, 8
  39892. ]);
  39893. function BitModel(width, height, subband, zeroBitPlanes, mb) {
  39894. this.width = width;
  39895. this.height = height;
  39896. this.contextLabelTable = (subband == 'HH' ? HHContextLabel :
  39897. (subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel));
  39898. var coefficientCount = width * height;
  39899. // coefficients outside the encoding region treated as insignificant
  39900. // add border state cells for significanceState
  39901. this.neighborsSignificance = new Uint8Array(coefficientCount);
  39902. this.coefficentsSign = new Uint8Array(coefficientCount);
  39903. this.coefficentsMagnitude = mb > 14 ? new Uint32Array(coefficientCount) :
  39904. mb > 6 ? new Uint16Array(coefficientCount) :
  39905. new Uint8Array(coefficientCount);
  39906. this.processingFlags = new Uint8Array(coefficientCount);
  39907. var bitsDecoded = new Uint8Array(coefficientCount);
  39908. if (zeroBitPlanes !== 0) {
  39909. for (var i = 0; i < coefficientCount; i++) {
  39910. bitsDecoded[i] = zeroBitPlanes;
  39911. }
  39912. }
  39913. this.bitsDecoded = bitsDecoded;
  39914. this.reset();
  39915. }
  39916. BitModel.prototype = {
  39917. setDecoder: function BitModel_setDecoder(decoder) {
  39918. this.decoder = decoder;
  39919. },
  39920. reset: function BitModel_reset() {
  39921. // We have 17 contexts that are accessed via context labels,
  39922. // plus the uniform and runlength context.
  39923. this.contexts = new Int8Array(19);
  39924. // Contexts are packed into 1 byte:
  39925. // highest 7 bits carry the index, lowest bit carries mps
  39926. this.contexts[0] = (4 << 1) | 0;
  39927. this.contexts[UNIFORM_CONTEXT] = (46 << 1) | 0;
  39928. this.contexts[RUNLENGTH_CONTEXT] = (3 << 1) | 0;
  39929. },
  39930. setNeighborsSignificance:
  39931. function BitModel_setNeighborsSignificance(row, column, index) {
  39932. var neighborsSignificance = this.neighborsSignificance;
  39933. var width = this.width, height = this.height;
  39934. var left = (column > 0);
  39935. var right = (column + 1 < width);
  39936. var i;
  39937. if (row > 0) {
  39938. i = index - width;
  39939. if (left) {
  39940. neighborsSignificance[i - 1] += 0x10;
  39941. }
  39942. if (right) {
  39943. neighborsSignificance[i + 1] += 0x10;
  39944. }
  39945. neighborsSignificance[i] += 0x04;
  39946. }
  39947. if (row + 1 < height) {
  39948. i = index + width;
  39949. if (left) {
  39950. neighborsSignificance[i - 1] += 0x10;
  39951. }
  39952. if (right) {
  39953. neighborsSignificance[i + 1] += 0x10;
  39954. }
  39955. neighborsSignificance[i] += 0x04;
  39956. }
  39957. if (left) {
  39958. neighborsSignificance[index - 1] += 0x01;
  39959. }
  39960. if (right) {
  39961. neighborsSignificance[index + 1] += 0x01;
  39962. }
  39963. neighborsSignificance[index] |= 0x80;
  39964. },
  39965. runSignificancePropogationPass:
  39966. function BitModel_runSignificancePropogationPass() {
  39967. var decoder = this.decoder;
  39968. var width = this.width, height = this.height;
  39969. var coefficentsMagnitude = this.coefficentsMagnitude;
  39970. var coefficentsSign = this.coefficentsSign;
  39971. var neighborsSignificance = this.neighborsSignificance;
  39972. var processingFlags = this.processingFlags;
  39973. var contexts = this.contexts;
  39974. var labels = this.contextLabelTable;
  39975. var bitsDecoded = this.bitsDecoded;
  39976. var processedInverseMask = ~1;
  39977. var processedMask = 1;
  39978. var firstMagnitudeBitMask = 2;
  39979. for (var i0 = 0; i0 < height; i0 += 4) {
  39980. for (var j = 0; j < width; j++) {
  39981. var index = i0 * width + j;
  39982. for (var i1 = 0; i1 < 4; i1++, index += width) {
  39983. var i = i0 + i1;
  39984. if (i >= height) {
  39985. break;
  39986. }
  39987. // clear processed flag first
  39988. processingFlags[index] &= processedInverseMask;
  39989. if (coefficentsMagnitude[index] ||
  39990. !neighborsSignificance[index]) {
  39991. continue;
  39992. }
  39993. var contextLabel = labels[neighborsSignificance[index]];
  39994. var decision = decoder.readBit(contexts, contextLabel);
  39995. if (decision) {
  39996. var sign = this.decodeSignBit(i, j, index);
  39997. coefficentsSign[index] = sign;
  39998. coefficentsMagnitude[index] = 1;
  39999. this.setNeighborsSignificance(i, j, index);
  40000. processingFlags[index] |= firstMagnitudeBitMask;
  40001. }
  40002. bitsDecoded[index]++;
  40003. processingFlags[index] |= processedMask;
  40004. }
  40005. }
  40006. }
  40007. },
  40008. decodeSignBit: function BitModel_decodeSignBit(row, column, index) {
  40009. var width = this.width, height = this.height;
  40010. var coefficentsMagnitude = this.coefficentsMagnitude;
  40011. var coefficentsSign = this.coefficentsSign;
  40012. var contribution, sign0, sign1, significance1;
  40013. var contextLabel, decoded;
  40014. // calculate horizontal contribution
  40015. significance1 = (column > 0 && coefficentsMagnitude[index - 1] !== 0);
  40016. if (column + 1 < width && coefficentsMagnitude[index + 1] !== 0) {
  40017. sign1 = coefficentsSign[index + 1];
  40018. if (significance1) {
  40019. sign0 = coefficentsSign[index - 1];
  40020. contribution = 1 - sign1 - sign0;
  40021. } else {
  40022. contribution = 1 - sign1 - sign1;
  40023. }
  40024. } else if (significance1) {
  40025. sign0 = coefficentsSign[index - 1];
  40026. contribution = 1 - sign0 - sign0;
  40027. } else {
  40028. contribution = 0;
  40029. }
  40030. var horizontalContribution = 3 * contribution;
  40031. // calculate vertical contribution and combine with the horizontal
  40032. significance1 = (row > 0 && coefficentsMagnitude[index - width] !== 0);
  40033. if (row + 1 < height && coefficentsMagnitude[index + width] !== 0) {
  40034. sign1 = coefficentsSign[index + width];
  40035. if (significance1) {
  40036. sign0 = coefficentsSign[index - width];
  40037. contribution = 1 - sign1 - sign0 + horizontalContribution;
  40038. } else {
  40039. contribution = 1 - sign1 - sign1 + horizontalContribution;
  40040. }
  40041. } else if (significance1) {
  40042. sign0 = coefficentsSign[index - width];
  40043. contribution = 1 - sign0 - sign0 + horizontalContribution;
  40044. } else {
  40045. contribution = horizontalContribution;
  40046. }
  40047. if (contribution >= 0) {
  40048. contextLabel = 9 + contribution;
  40049. decoded = this.decoder.readBit(this.contexts, contextLabel);
  40050. } else {
  40051. contextLabel = 9 - contribution;
  40052. decoded = this.decoder.readBit(this.contexts, contextLabel) ^ 1;
  40053. }
  40054. return decoded;
  40055. },
  40056. runMagnitudeRefinementPass:
  40057. function BitModel_runMagnitudeRefinementPass() {
  40058. var decoder = this.decoder;
  40059. var width = this.width, height = this.height;
  40060. var coefficentsMagnitude = this.coefficentsMagnitude;
  40061. var neighborsSignificance = this.neighborsSignificance;
  40062. var contexts = this.contexts;
  40063. var bitsDecoded = this.bitsDecoded;
  40064. var processingFlags = this.processingFlags;
  40065. var processedMask = 1;
  40066. var firstMagnitudeBitMask = 2;
  40067. var length = width * height;
  40068. var width4 = width * 4;
  40069. for (var index0 = 0, indexNext; index0 < length; index0 = indexNext) {
  40070. indexNext = Math.min(length, index0 + width4);
  40071. for (var j = 0; j < width; j++) {
  40072. for (var index = index0 + j; index < indexNext; index += width) {
  40073. // significant but not those that have just become
  40074. if (!coefficentsMagnitude[index] ||
  40075. (processingFlags[index] & processedMask) !== 0) {
  40076. continue;
  40077. }
  40078. var contextLabel = 16;
  40079. if ((processingFlags[index] & firstMagnitudeBitMask) !== 0) {
  40080. processingFlags[index] ^= firstMagnitudeBitMask;
  40081. // first refinement
  40082. var significance = neighborsSignificance[index] & 127;
  40083. contextLabel = significance === 0 ? 15 : 14;
  40084. }
  40085. var bit = decoder.readBit(contexts, contextLabel);
  40086. coefficentsMagnitude[index] =
  40087. (coefficentsMagnitude[index] << 1) | bit;
  40088. bitsDecoded[index]++;
  40089. processingFlags[index] |= processedMask;
  40090. }
  40091. }
  40092. }
  40093. },
  40094. runCleanupPass: function BitModel_runCleanupPass() {
  40095. var decoder = this.decoder;
  40096. var width = this.width, height = this.height;
  40097. var neighborsSignificance = this.neighborsSignificance;
  40098. var coefficentsMagnitude = this.coefficentsMagnitude;
  40099. var coefficentsSign = this.coefficentsSign;
  40100. var contexts = this.contexts;
  40101. var labels = this.contextLabelTable;
  40102. var bitsDecoded = this.bitsDecoded;
  40103. var processingFlags = this.processingFlags;
  40104. var processedMask = 1;
  40105. var firstMagnitudeBitMask = 2;
  40106. var oneRowDown = width;
  40107. var twoRowsDown = width * 2;
  40108. var threeRowsDown = width * 3;
  40109. var iNext;
  40110. for (var i0 = 0; i0 < height; i0 = iNext) {
  40111. iNext = Math.min(i0 + 4, height);
  40112. var indexBase = i0 * width;
  40113. var checkAllEmpty = i0 + 3 < height;
  40114. for (var j = 0; j < width; j++) {
  40115. var index0 = indexBase + j;
  40116. // using the property: labels[neighborsSignificance[index]] == 0
  40117. // when neighborsSignificance[index] == 0
  40118. var allEmpty = (checkAllEmpty &&
  40119. processingFlags[index0] === 0 &&
  40120. processingFlags[index0 + oneRowDown] === 0 &&
  40121. processingFlags[index0 + twoRowsDown] === 0 &&
  40122. processingFlags[index0 + threeRowsDown] === 0 &&
  40123. neighborsSignificance[index0] === 0 &&
  40124. neighborsSignificance[index0 + oneRowDown] === 0 &&
  40125. neighborsSignificance[index0 + twoRowsDown] === 0 &&
  40126. neighborsSignificance[index0 + threeRowsDown] === 0);
  40127. var i1 = 0, index = index0;
  40128. var i = i0, sign;
  40129. if (allEmpty) {
  40130. var hasSignificantCoefficent =
  40131. decoder.readBit(contexts, RUNLENGTH_CONTEXT);
  40132. if (!hasSignificantCoefficent) {
  40133. bitsDecoded[index0]++;
  40134. bitsDecoded[index0 + oneRowDown]++;
  40135. bitsDecoded[index0 + twoRowsDown]++;
  40136. bitsDecoded[index0 + threeRowsDown]++;
  40137. continue; // next column
  40138. }
  40139. i1 = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  40140. decoder.readBit(contexts, UNIFORM_CONTEXT);
  40141. if (i1 !== 0) {
  40142. i = i0 + i1;
  40143. index += i1 * width;
  40144. }
  40145. sign = this.decodeSignBit(i, j, index);
  40146. coefficentsSign[index] = sign;
  40147. coefficentsMagnitude[index] = 1;
  40148. this.setNeighborsSignificance(i, j, index);
  40149. processingFlags[index] |= firstMagnitudeBitMask;
  40150. index = index0;
  40151. for (var i2 = i0; i2 <= i; i2++, index += width) {
  40152. bitsDecoded[index]++;
  40153. }
  40154. i1++;
  40155. }
  40156. for (i = i0 + i1; i < iNext; i++, index += width) {
  40157. if (coefficentsMagnitude[index] ||
  40158. (processingFlags[index] & processedMask) !== 0) {
  40159. continue;
  40160. }
  40161. var contextLabel = labels[neighborsSignificance[index]];
  40162. var decision = decoder.readBit(contexts, contextLabel);
  40163. if (decision === 1) {
  40164. sign = this.decodeSignBit(i, j, index);
  40165. coefficentsSign[index] = sign;
  40166. coefficentsMagnitude[index] = 1;
  40167. this.setNeighborsSignificance(i, j, index);
  40168. processingFlags[index] |= firstMagnitudeBitMask;
  40169. }
  40170. bitsDecoded[index]++;
  40171. }
  40172. }
  40173. }
  40174. },
  40175. checkSegmentationSymbol: function BitModel_checkSegmentationSymbol() {
  40176. var decoder = this.decoder;
  40177. var contexts = this.contexts;
  40178. var symbol = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 3) |
  40179. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 2) |
  40180. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  40181. decoder.readBit(contexts, UNIFORM_CONTEXT);
  40182. if (symbol != 0xA) {
  40183. throw new Error('JPX Error: Invalid segmentation symbol');
  40184. }
  40185. }
  40186. };
  40187. return BitModel;
  40188. })();
  40189. // Section F, Discrete wavelet transformation
  40190. var Transform = (function TransformClosure() {
  40191. function Transform() {}
  40192. Transform.prototype.calculate =
  40193. function transformCalculate(subbands, u0, v0) {
  40194. var ll = subbands[0];
  40195. for (var i = 1, ii = subbands.length; i < ii; i++) {
  40196. ll = this.iterate(ll, subbands[i], u0, v0);
  40197. }
  40198. return ll;
  40199. };
  40200. Transform.prototype.extend = function extend(buffer, offset, size) {
  40201. // Section F.3.7 extending... using max extension of 4
  40202. var i1 = offset - 1, j1 = offset + 1;
  40203. var i2 = offset + size - 2, j2 = offset + size;
  40204. buffer[i1--] = buffer[j1++];
  40205. buffer[j2++] = buffer[i2--];
  40206. buffer[i1--] = buffer[j1++];
  40207. buffer[j2++] = buffer[i2--];
  40208. buffer[i1--] = buffer[j1++];
  40209. buffer[j2++] = buffer[i2--];
  40210. buffer[i1] = buffer[j1];
  40211. buffer[j2] = buffer[i2];
  40212. };
  40213. Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
  40214. u0, v0) {
  40215. var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
  40216. var width = hl_lh_hh.width;
  40217. var height = hl_lh_hh.height;
  40218. var items = hl_lh_hh.items;
  40219. var i, j, k, l, u, v;
  40220. // Interleave LL according to Section F.3.3
  40221. for (k = 0, i = 0; i < llHeight; i++) {
  40222. l = i * 2 * width;
  40223. for (j = 0; j < llWidth; j++, k++, l += 2) {
  40224. items[l] = llItems[k];
  40225. }
  40226. }
  40227. // The LL band is not needed anymore.
  40228. llItems = ll.items = null;
  40229. var bufferPadding = 4;
  40230. var rowBuffer = new Float32Array(width + 2 * bufferPadding);
  40231. // Section F.3.4 HOR_SR
  40232. if (width === 1) {
  40233. // if width = 1, when u0 even keep items as is, when odd divide by 2
  40234. if ((u0 & 1) !== 0) {
  40235. for (v = 0, k = 0; v < height; v++, k += width) {
  40236. items[k] *= 0.5;
  40237. }
  40238. }
  40239. } else {
  40240. for (v = 0, k = 0; v < height; v++, k += width) {
  40241. rowBuffer.set(items.subarray(k, k + width), bufferPadding);
  40242. this.extend(rowBuffer, bufferPadding, width);
  40243. this.filter(rowBuffer, bufferPadding, width);
  40244. items.set(
  40245. rowBuffer.subarray(bufferPadding, bufferPadding + width),
  40246. k);
  40247. }
  40248. }
  40249. // Accesses to the items array can take long, because it may not fit into
  40250. // CPU cache and has to be fetched from main memory. Since subsequent
  40251. // accesses to the items array are not local when reading columns, we
  40252. // have a cache miss every time. To reduce cache misses, get up to
  40253. // 'numBuffers' items at a time and store them into the individual
  40254. // buffers. The colBuffers should be small enough to fit into CPU cache.
  40255. var numBuffers = 16;
  40256. var colBuffers = [];
  40257. for (i = 0; i < numBuffers; i++) {
  40258. colBuffers.push(new Float32Array(height + 2 * bufferPadding));
  40259. }
  40260. var b, currentBuffer = 0;
  40261. ll = bufferPadding + height;
  40262. // Section F.3.5 VER_SR
  40263. if (height === 1) {
  40264. // if height = 1, when v0 even keep items as is, when odd divide by 2
  40265. if ((v0 & 1) !== 0) {
  40266. for (u = 0; u < width; u++) {
  40267. items[u] *= 0.5;
  40268. }
  40269. }
  40270. } else {
  40271. for (u = 0; u < width; u++) {
  40272. // if we ran out of buffers, copy several image columns at once
  40273. if (currentBuffer === 0) {
  40274. numBuffers = Math.min(width - u, numBuffers);
  40275. for (k = u, l = bufferPadding; l < ll; k += width, l++) {
  40276. for (b = 0; b < numBuffers; b++) {
  40277. colBuffers[b][l] = items[k + b];
  40278. }
  40279. }
  40280. currentBuffer = numBuffers;
  40281. }
  40282. currentBuffer--;
  40283. var buffer = colBuffers[currentBuffer];
  40284. this.extend(buffer, bufferPadding, height);
  40285. this.filter(buffer, bufferPadding, height);
  40286. // If this is last buffer in this group of buffers, flush all buffers.
  40287. if (currentBuffer === 0) {
  40288. k = u - numBuffers + 1;
  40289. for (l = bufferPadding; l < ll; k += width, l++) {
  40290. for (b = 0; b < numBuffers; b++) {
  40291. items[k + b] = colBuffers[b][l];
  40292. }
  40293. }
  40294. }
  40295. }
  40296. }
  40297. return {
  40298. width: width,
  40299. height: height,
  40300. items: items
  40301. };
  40302. };
  40303. return Transform;
  40304. })();
  40305. // Section 3.8.2 Irreversible 9-7 filter
  40306. var IrreversibleTransform = (function IrreversibleTransformClosure() {
  40307. function IrreversibleTransform() {
  40308. Transform.call(this);
  40309. }
  40310. IrreversibleTransform.prototype = Object.create(Transform.prototype);
  40311. IrreversibleTransform.prototype.filter =
  40312. function irreversibleTransformFilter(x, offset, length) {
  40313. var len = length >> 1;
  40314. offset = offset | 0;
  40315. var j, n, current, next;
  40316. var alpha = -1.586134342059924;
  40317. var beta = -0.052980118572961;
  40318. var gamma = 0.882911075530934;
  40319. var delta = 0.443506852043971;
  40320. var K = 1.230174104914001;
  40321. var K_ = 1 / K;
  40322. // step 1 is combined with step 3
  40323. // step 2
  40324. j = offset - 3;
  40325. for (n = len + 4; n--; j += 2) {
  40326. x[j] *= K_;
  40327. }
  40328. // step 1 & 3
  40329. j = offset - 2;
  40330. current = delta * x[j -1];
  40331. for (n = len + 3; n--; j += 2) {
  40332. next = delta * x[j + 1];
  40333. x[j] = K * x[j] - current - next;
  40334. if (n--) {
  40335. j += 2;
  40336. current = delta * x[j + 1];
  40337. x[j] = K * x[j] - current - next;
  40338. } else {
  40339. break;
  40340. }
  40341. }
  40342. // step 4
  40343. j = offset - 1;
  40344. current = gamma * x[j - 1];
  40345. for (n = len + 2; n--; j += 2) {
  40346. next = gamma * x[j + 1];
  40347. x[j] -= current + next;
  40348. if (n--) {
  40349. j += 2;
  40350. current = gamma * x[j + 1];
  40351. x[j] -= current + next;
  40352. } else {
  40353. break;
  40354. }
  40355. }
  40356. // step 5
  40357. j = offset;
  40358. current = beta * x[j - 1];
  40359. for (n = len + 1; n--; j += 2) {
  40360. next = beta * x[j + 1];
  40361. x[j] -= current + next;
  40362. if (n--) {
  40363. j += 2;
  40364. current = beta * x[j + 1];
  40365. x[j] -= current + next;
  40366. } else {
  40367. break;
  40368. }
  40369. }
  40370. // step 6
  40371. if (len !== 0) {
  40372. j = offset + 1;
  40373. current = alpha * x[j - 1];
  40374. for (n = len; n--; j += 2) {
  40375. next = alpha * x[j + 1];
  40376. x[j] -= current + next;
  40377. if (n--) {
  40378. j += 2;
  40379. current = alpha * x[j + 1];
  40380. x[j] -= current + next;
  40381. } else {
  40382. break;
  40383. }
  40384. }
  40385. }
  40386. };
  40387. return IrreversibleTransform;
  40388. })();
  40389. // Section 3.8.1 Reversible 5-3 filter
  40390. var ReversibleTransform = (function ReversibleTransformClosure() {
  40391. function ReversibleTransform() {
  40392. Transform.call(this);
  40393. }
  40394. ReversibleTransform.prototype = Object.create(Transform.prototype);
  40395. ReversibleTransform.prototype.filter =
  40396. function reversibleTransformFilter(x, offset, length) {
  40397. var len = length >> 1;
  40398. offset = offset | 0;
  40399. var j, n;
  40400. for (j = offset, n = len + 1; n--; j += 2) {
  40401. x[j] -= (x[j - 1] + x[j + 1] + 2) >> 2;
  40402. }
  40403. for (j = offset + 1, n = len; n--; j += 2) {
  40404. x[j] += (x[j - 1] + x[j + 1]) >> 1;
  40405. }
  40406. };
  40407. return ReversibleTransform;
  40408. })();
  40409. return JpxImage;
  40410. })();
  40411. var Jbig2Image = (function Jbig2ImageClosure() {
  40412. // Utility data structures
  40413. function ContextCache() {}
  40414. ContextCache.prototype = {
  40415. getContexts: function(id) {
  40416. if (id in this) {
  40417. return this[id];
  40418. }
  40419. return (this[id] = new Int8Array(1 << 16));
  40420. }
  40421. };
  40422. function DecodingContext(data, start, end) {
  40423. this.data = data;
  40424. this.start = start;
  40425. this.end = end;
  40426. }
  40427. DecodingContext.prototype = {
  40428. get decoder() {
  40429. var decoder = new ArithmeticDecoder(this.data, this.start, this.end);
  40430. return shadow(this, 'decoder', decoder);
  40431. },
  40432. get contextCache() {
  40433. var cache = new ContextCache();
  40434. return shadow(this, 'contextCache', cache);
  40435. }
  40436. };
  40437. // Annex A. Arithmetic Integer Decoding Procedure
  40438. // A.2 Procedure for decoding values
  40439. function decodeInteger(contextCache, procedure, decoder) {
  40440. var contexts = contextCache.getContexts(procedure);
  40441. var prev = 1;
  40442. function readBits(length) {
  40443. var v = 0;
  40444. for (var i = 0; i < length; i++) {
  40445. var bit = decoder.readBit(contexts, prev);
  40446. prev = (prev < 256 ? (prev << 1) | bit :
  40447. (((prev << 1) | bit) & 511) | 256);
  40448. v = (v << 1) | bit;
  40449. }
  40450. return v >>> 0;
  40451. }
  40452. var sign = readBits(1);
  40453. var value = readBits(1) ?
  40454. (readBits(1) ?
  40455. (readBits(1) ?
  40456. (readBits(1) ?
  40457. (readBits(1) ?
  40458. (readBits(32) + 4436) :
  40459. readBits(12) + 340) :
  40460. readBits(8) + 84) :
  40461. readBits(6) + 20) :
  40462. readBits(4) + 4) :
  40463. readBits(2);
  40464. return (sign === 0 ? value : (value > 0 ? -value : null));
  40465. }
  40466. // A.3 The IAID decoding procedure
  40467. function decodeIAID(contextCache, decoder, codeLength) {
  40468. var contexts = contextCache.getContexts('IAID');
  40469. var prev = 1;
  40470. for (var i = 0; i < codeLength; i++) {
  40471. var bit = decoder.readBit(contexts, prev);
  40472. prev = (prev << 1) | bit;
  40473. }
  40474. if (codeLength < 31) {
  40475. return prev & ((1 << codeLength) - 1);
  40476. }
  40477. return prev & 0x7FFFFFFF;
  40478. }
  40479. // 7.3 Segment types
  40480. var SegmentTypes = [
  40481. 'SymbolDictionary', null, null, null, 'IntermediateTextRegion', null,
  40482. 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null,
  40483. null, null, null, null, null, 'patternDictionary', null, null, null,
  40484. 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion',
  40485. 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null,
  40486. null, null, null, null, null, 'IntermediateGenericRegion', null,
  40487. 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion',
  40488. 'IntermediateGenericRefinementRegion', null,
  40489. 'ImmediateGenericRefinementRegion',
  40490. 'ImmediateLosslessGenericRefinementRegion', null, null, null, null,
  40491. 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles',
  40492. 'Tables', null, null, null, null, null, null, null, null,
  40493. 'Extension'
  40494. ];
  40495. var CodingTemplates = [
  40496. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  40497. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: 2, y: -1},
  40498. {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  40499. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: 2, y: -2},
  40500. {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1},
  40501. {x: 2, y: -1}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  40502. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  40503. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -2, y: 0},
  40504. {x: -1, y: 0}],
  40505. [{x: -3, y: -1}, {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1},
  40506. {x: 1, y: -1}, {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}]
  40507. ];
  40508. var RefinementTemplates = [
  40509. {
  40510. coding: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  40511. reference: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}, {x: 0, y: 0},
  40512. {x: 1, y: 0}, {x: -1, y: 1}, {x: 0, y: 1}, {x: 1, y: 1}]
  40513. },
  40514. {
  40515. coding: [{x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  40516. reference: [{x: 0, y: -1}, {x: -1, y: 0}, {x: 0, y: 0}, {x: 1, y: 0},
  40517. {x: 0, y: 1}, {x: 1, y: 1}]
  40518. }
  40519. ];
  40520. var ReusedContexts = [
  40521. 0x1CD3, // '00111001101' (template) + '0011' (at),
  40522. 0x079A, // '001111001101' + '0',
  40523. 0x00E3, // '001110001' + '1',
  40524. 0x018B // '011000101' + '1'
  40525. ];
  40526. var RefinementReusedContexts = [
  40527. 0x0020, // '000' + '0' (coding) + '00010000' + '0' (reference)
  40528. 0x0008 // '0000' + '001000'
  40529. ];
  40530. // 6.2 Generic Region Decoding Procedure
  40531. function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at,
  40532. decodingContext) {
  40533. if (mmr) {
  40534. error('JBIG2 error: MMR encoding is not supported');
  40535. }
  40536. var useskip = !!skip;
  40537. var template = CodingTemplates[templateIndex].concat(at);
  40538. // Sorting is non-standard, and it is not required. But sorting increases
  40539. // the number of template bits that can be reused from the previous
  40540. // contextLabel in the main loop.
  40541. template.sort(function (a, b) {
  40542. return (a.y - b.y) || (a.x - b.x);
  40543. });
  40544. var templateLength = template.length;
  40545. var templateX = new Int8Array(templateLength);
  40546. var templateY = new Int8Array(templateLength);
  40547. var changingTemplateEntries = [];
  40548. var reuseMask = 0, minX = 0, maxX = 0, minY = 0;
  40549. var c, k;
  40550. for (k = 0; k < templateLength; k++) {
  40551. templateX[k] = template[k].x;
  40552. templateY[k] = template[k].y;
  40553. minX = Math.min(minX, template[k].x);
  40554. maxX = Math.max(maxX, template[k].x);
  40555. minY = Math.min(minY, template[k].y);
  40556. // Check if the template pixel appears in two consecutive context labels,
  40557. // so it can be reused. Otherwise, we add it to the list of changing
  40558. // template entries.
  40559. if (k < templateLength - 1 &&
  40560. template[k].y === template[k + 1].y &&
  40561. template[k].x === template[k + 1].x - 1) {
  40562. reuseMask |= 1 << (templateLength - 1 - k);
  40563. } else {
  40564. changingTemplateEntries.push(k);
  40565. }
  40566. }
  40567. var changingEntriesLength = changingTemplateEntries.length;
  40568. var changingTemplateX = new Int8Array(changingEntriesLength);
  40569. var changingTemplateY = new Int8Array(changingEntriesLength);
  40570. var changingTemplateBit = new Uint16Array(changingEntriesLength);
  40571. for (c = 0; c < changingEntriesLength; c++) {
  40572. k = changingTemplateEntries[c];
  40573. changingTemplateX[c] = template[k].x;
  40574. changingTemplateY[c] = template[k].y;
  40575. changingTemplateBit[c] = 1 << (templateLength - 1 - k);
  40576. }
  40577. // Get the safe bounding box edges from the width, height, minX, maxX, minY
  40578. var sbb_left = -minX;
  40579. var sbb_top = -minY;
  40580. var sbb_right = width - maxX;
  40581. var pseudoPixelContext = ReusedContexts[templateIndex];
  40582. var row = new Uint8Array(width);
  40583. var bitmap = [];
  40584. var decoder = decodingContext.decoder;
  40585. var contexts = decodingContext.contextCache.getContexts('GB');
  40586. var ltp = 0, j, i0, j0, contextLabel = 0, bit, shift;
  40587. for (var i = 0; i < height; i++) {
  40588. if (prediction) {
  40589. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  40590. ltp ^= sltp;
  40591. if (ltp) {
  40592. bitmap.push(row); // duplicate previous row
  40593. continue;
  40594. }
  40595. }
  40596. row = new Uint8Array(row);
  40597. bitmap.push(row);
  40598. for (j = 0; j < width; j++) {
  40599. if (useskip && skip[i][j]) {
  40600. row[j] = 0;
  40601. continue;
  40602. }
  40603. // Are we in the middle of a scanline, so we can reuse contextLabel
  40604. // bits?
  40605. if (j >= sbb_left && j < sbb_right && i >= sbb_top) {
  40606. // If yes, we can just shift the bits that are reusable and only
  40607. // fetch the remaining ones.
  40608. contextLabel = (contextLabel << 1) & reuseMask;
  40609. for (k = 0; k < changingEntriesLength; k++) {
  40610. i0 = i + changingTemplateY[k];
  40611. j0 = j + changingTemplateX[k];
  40612. bit = bitmap[i0][j0];
  40613. if (bit) {
  40614. bit = changingTemplateBit[k];
  40615. contextLabel |= bit;
  40616. }
  40617. }
  40618. } else {
  40619. // compute the contextLabel from scratch
  40620. contextLabel = 0;
  40621. shift = templateLength - 1;
  40622. for (k = 0; k < templateLength; k++, shift--) {
  40623. j0 = j + templateX[k];
  40624. if (j0 >= 0 && j0 < width) {
  40625. i0 = i + templateY[k];
  40626. if (i0 >= 0) {
  40627. bit = bitmap[i0][j0];
  40628. if (bit) {
  40629. contextLabel |= bit << shift;
  40630. }
  40631. }
  40632. }
  40633. }
  40634. }
  40635. var pixel = decoder.readBit(contexts, contextLabel);
  40636. row[j] = pixel;
  40637. }
  40638. }
  40639. return bitmap;
  40640. }
  40641. // 6.3.2 Generic Refinement Region Decoding Procedure
  40642. function decodeRefinement(width, height, templateIndex, referenceBitmap,
  40643. offsetX, offsetY, prediction, at,
  40644. decodingContext) {
  40645. var codingTemplate = RefinementTemplates[templateIndex].coding;
  40646. if (templateIndex === 0) {
  40647. codingTemplate = codingTemplate.concat([at[0]]);
  40648. }
  40649. var codingTemplateLength = codingTemplate.length;
  40650. var codingTemplateX = new Int32Array(codingTemplateLength);
  40651. var codingTemplateY = new Int32Array(codingTemplateLength);
  40652. var k;
  40653. for (k = 0; k < codingTemplateLength; k++) {
  40654. codingTemplateX[k] = codingTemplate[k].x;
  40655. codingTemplateY[k] = codingTemplate[k].y;
  40656. }
  40657. var referenceTemplate = RefinementTemplates[templateIndex].reference;
  40658. if (templateIndex === 0) {
  40659. referenceTemplate = referenceTemplate.concat([at[1]]);
  40660. }
  40661. var referenceTemplateLength = referenceTemplate.length;
  40662. var referenceTemplateX = new Int32Array(referenceTemplateLength);
  40663. var referenceTemplateY = new Int32Array(referenceTemplateLength);
  40664. for (k = 0; k < referenceTemplateLength; k++) {
  40665. referenceTemplateX[k] = referenceTemplate[k].x;
  40666. referenceTemplateY[k] = referenceTemplate[k].y;
  40667. }
  40668. var referenceWidth = referenceBitmap[0].length;
  40669. var referenceHeight = referenceBitmap.length;
  40670. var pseudoPixelContext = RefinementReusedContexts[templateIndex];
  40671. var bitmap = [];
  40672. var decoder = decodingContext.decoder;
  40673. var contexts = decodingContext.contextCache.getContexts('GR');
  40674. var ltp = 0;
  40675. for (var i = 0; i < height; i++) {
  40676. if (prediction) {
  40677. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  40678. ltp ^= sltp;
  40679. if (ltp) {
  40680. error('JBIG2 error: prediction is not supported');
  40681. }
  40682. }
  40683. var row = new Uint8Array(width);
  40684. bitmap.push(row);
  40685. for (var j = 0; j < width; j++) {
  40686. var i0, j0;
  40687. var contextLabel = 0;
  40688. for (k = 0; k < codingTemplateLength; k++) {
  40689. i0 = i + codingTemplateY[k];
  40690. j0 = j + codingTemplateX[k];
  40691. if (i0 < 0 || j0 < 0 || j0 >= width) {
  40692. contextLabel <<= 1; // out of bound pixel
  40693. } else {
  40694. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  40695. }
  40696. }
  40697. for (k = 0; k < referenceTemplateLength; k++) {
  40698. i0 = i + referenceTemplateY[k] + offsetY;
  40699. j0 = j + referenceTemplateX[k] + offsetX;
  40700. if (i0 < 0 || i0 >= referenceHeight || j0 < 0 ||
  40701. j0 >= referenceWidth) {
  40702. contextLabel <<= 1; // out of bound pixel
  40703. } else {
  40704. contextLabel = (contextLabel << 1) | referenceBitmap[i0][j0];
  40705. }
  40706. }
  40707. var pixel = decoder.readBit(contexts, contextLabel);
  40708. row[j] = pixel;
  40709. }
  40710. }
  40711. return bitmap;
  40712. }
  40713. // 6.5.5 Decoding the symbol dictionary
  40714. function decodeSymbolDictionary(huffman, refinement, symbols,
  40715. numberOfNewSymbols, numberOfExportedSymbols,
  40716. huffmanTables, templateIndex, at,
  40717. refinementTemplateIndex, refinementAt,
  40718. decodingContext) {
  40719. if (huffman) {
  40720. error('JBIG2 error: huffman is not supported');
  40721. }
  40722. var newSymbols = [];
  40723. var currentHeight = 0;
  40724. var symbolCodeLength = log2(symbols.length + numberOfNewSymbols);
  40725. var decoder = decodingContext.decoder;
  40726. var contextCache = decodingContext.contextCache;
  40727. while (newSymbols.length < numberOfNewSymbols) {
  40728. var deltaHeight = decodeInteger(contextCache, 'IADH', decoder); // 6.5.6
  40729. currentHeight += deltaHeight;
  40730. var currentWidth = 0;
  40731. var totalWidth = 0;
  40732. while (true) {
  40733. var deltaWidth = decodeInteger(contextCache, 'IADW', decoder); // 6.5.7
  40734. if (deltaWidth === null) {
  40735. break; // OOB
  40736. }
  40737. currentWidth += deltaWidth;
  40738. totalWidth += currentWidth;
  40739. var bitmap;
  40740. if (refinement) {
  40741. // 6.5.8.2 Refinement/aggregate-coded symbol bitmap
  40742. var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder);
  40743. if (numberOfInstances > 1) {
  40744. bitmap = decodeTextRegion(huffman, refinement,
  40745. currentWidth, currentHeight, 0,
  40746. numberOfInstances, 1, //strip size
  40747. symbols.concat(newSymbols),
  40748. symbolCodeLength,
  40749. 0, //transposed
  40750. 0, //ds offset
  40751. 1, //top left 7.4.3.1.1
  40752. 0, //OR operator
  40753. huffmanTables,
  40754. refinementTemplateIndex, refinementAt,
  40755. decodingContext);
  40756. } else {
  40757. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  40758. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  40759. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  40760. var symbol = (symbolId < symbols.length ? symbols[symbolId] :
  40761. newSymbols[symbolId - symbols.length]);
  40762. bitmap = decodeRefinement(currentWidth, currentHeight,
  40763. refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt,
  40764. decodingContext);
  40765. }
  40766. } else {
  40767. // 6.5.8.1 Direct-coded symbol bitmap
  40768. bitmap = decodeBitmap(false, currentWidth, currentHeight,
  40769. templateIndex, false, null, at, decodingContext);
  40770. }
  40771. newSymbols.push(bitmap);
  40772. }
  40773. }
  40774. // 6.5.10 Exported symbols
  40775. var exportedSymbols = [];
  40776. var flags = [], currentFlag = false;
  40777. var totalSymbolsLength = symbols.length + numberOfNewSymbols;
  40778. while (flags.length < totalSymbolsLength) {
  40779. var runLength = decodeInteger(contextCache, 'IAEX', decoder);
  40780. while (runLength--) {
  40781. flags.push(currentFlag);
  40782. }
  40783. currentFlag = !currentFlag;
  40784. }
  40785. for (var i = 0, ii = symbols.length; i < ii; i++) {
  40786. if (flags[i]) {
  40787. exportedSymbols.push(symbols[i]);
  40788. }
  40789. }
  40790. for (var j = 0; j < numberOfNewSymbols; i++, j++) {
  40791. if (flags[i]) {
  40792. exportedSymbols.push(newSymbols[j]);
  40793. }
  40794. }
  40795. return exportedSymbols;
  40796. }
  40797. function decodeTextRegion(huffman, refinement, width, height,
  40798. defaultPixelValue, numberOfSymbolInstances,
  40799. stripSize, inputSymbols, symbolCodeLength,
  40800. transposed, dsOffset, referenceCorner,
  40801. combinationOperator, huffmanTables,
  40802. refinementTemplateIndex, refinementAt,
  40803. decodingContext) {
  40804. if (huffman) {
  40805. error('JBIG2 error: huffman is not supported');
  40806. }
  40807. // Prepare bitmap
  40808. var bitmap = [];
  40809. var i, row;
  40810. for (i = 0; i < height; i++) {
  40811. row = new Uint8Array(width);
  40812. if (defaultPixelValue) {
  40813. for (var j = 0; j < width; j++) {
  40814. row[j] = defaultPixelValue;
  40815. }
  40816. }
  40817. bitmap.push(row);
  40818. }
  40819. var decoder = decodingContext.decoder;
  40820. var contextCache = decodingContext.contextCache;
  40821. var stripT = -decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  40822. var firstS = 0;
  40823. i = 0;
  40824. while (i < numberOfSymbolInstances) {
  40825. var deltaT = decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  40826. stripT += deltaT;
  40827. var deltaFirstS = decodeInteger(contextCache, 'IAFS', decoder); // 6.4.7
  40828. firstS += deltaFirstS;
  40829. var currentS = firstS;
  40830. do {
  40831. var currentT = (stripSize == 1 ? 0 :
  40832. decodeInteger(contextCache, 'IAIT', decoder)); // 6.4.9
  40833. var t = stripSize * stripT + currentT;
  40834. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  40835. var applyRefinement = (refinement &&
  40836. decodeInteger(contextCache, 'IARI', decoder));
  40837. var symbolBitmap = inputSymbols[symbolId];
  40838. var symbolWidth = symbolBitmap[0].length;
  40839. var symbolHeight = symbolBitmap.length;
  40840. if (applyRefinement) {
  40841. var rdw = decodeInteger(contextCache, 'IARDW', decoder); // 6.4.11.1
  40842. var rdh = decodeInteger(contextCache, 'IARDH', decoder); // 6.4.11.2
  40843. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  40844. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  40845. symbolWidth += rdw;
  40846. symbolHeight += rdh;
  40847. symbolBitmap = decodeRefinement(symbolWidth, symbolHeight,
  40848. refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx,
  40849. (rdh >> 1) + rdy, false, refinementAt,
  40850. decodingContext);
  40851. }
  40852. var offsetT = t - ((referenceCorner & 1) ? 0 : symbolHeight);
  40853. var offsetS = currentS - ((referenceCorner & 2) ? symbolWidth : 0);
  40854. var s2, t2, symbolRow;
  40855. if (transposed) {
  40856. // Place Symbol Bitmap from T1,S1
  40857. for (s2 = 0; s2 < symbolHeight; s2++) {
  40858. row = bitmap[offsetS + s2];
  40859. if (!row) {
  40860. continue;
  40861. }
  40862. symbolRow = symbolBitmap[s2];
  40863. // To ignore Parts of Symbol bitmap which goes
  40864. // outside bitmap region
  40865. var maxWidth = Math.min(width - offsetT, symbolWidth);
  40866. switch (combinationOperator) {
  40867. case 0: // OR
  40868. for (t2 = 0; t2 < maxWidth; t2++) {
  40869. row[offsetT + t2] |= symbolRow[t2];
  40870. }
  40871. break;
  40872. case 2: // XOR
  40873. for (t2 = 0; t2 < maxWidth; t2++) {
  40874. row[offsetT + t2] ^= symbolRow[t2];
  40875. }
  40876. break;
  40877. default:
  40878. error('JBIG2 error: operator ' + combinationOperator +
  40879. ' is not supported');
  40880. }
  40881. }
  40882. currentS += symbolHeight - 1;
  40883. } else {
  40884. for (t2 = 0; t2 < symbolHeight; t2++) {
  40885. row = bitmap[offsetT + t2];
  40886. if (!row) {
  40887. continue;
  40888. }
  40889. symbolRow = symbolBitmap[t2];
  40890. switch (combinationOperator) {
  40891. case 0: // OR
  40892. for (s2 = 0; s2 < symbolWidth; s2++) {
  40893. row[offsetS + s2] |= symbolRow[s2];
  40894. }
  40895. break;
  40896. case 2: // XOR
  40897. for (s2 = 0; s2 < symbolWidth; s2++) {
  40898. row[offsetS + s2] ^= symbolRow[s2];
  40899. }
  40900. break;
  40901. default:
  40902. error('JBIG2 error: operator ' + combinationOperator +
  40903. ' is not supported');
  40904. }
  40905. }
  40906. currentS += symbolWidth - 1;
  40907. }
  40908. i++;
  40909. var deltaS = decodeInteger(contextCache, 'IADS', decoder); // 6.4.8
  40910. if (deltaS === null) {
  40911. break; // OOB
  40912. }
  40913. currentS += deltaS + dsOffset;
  40914. } while (true);
  40915. }
  40916. return bitmap;
  40917. }
  40918. function readSegmentHeader(data, start) {
  40919. var segmentHeader = {};
  40920. segmentHeader.number = readUint32(data, start);
  40921. var flags = data[start + 4];
  40922. var segmentType = flags & 0x3F;
  40923. if (!SegmentTypes[segmentType]) {
  40924. error('JBIG2 error: invalid segment type: ' + segmentType);
  40925. }
  40926. segmentHeader.type = segmentType;
  40927. segmentHeader.typeName = SegmentTypes[segmentType];
  40928. segmentHeader.deferredNonRetain = !!(flags & 0x80);
  40929. var pageAssociationFieldSize = !!(flags & 0x40);
  40930. var referredFlags = data[start + 5];
  40931. var referredToCount = (referredFlags >> 5) & 7;
  40932. var retainBits = [referredFlags & 31];
  40933. var position = start + 6;
  40934. if (referredFlags == 7) {
  40935. referredToCount = readUint32(data, position - 1) & 0x1FFFFFFF;
  40936. position += 3;
  40937. var bytes = (referredToCount + 7) >> 3;
  40938. retainBits[0] = data[position++];
  40939. while (--bytes > 0) {
  40940. retainBits.push(data[position++]);
  40941. }
  40942. } else if (referredFlags == 5 || referredFlags == 6) {
  40943. error('JBIG2 error: invalid referred-to flags');
  40944. }
  40945. segmentHeader.retainBits = retainBits;
  40946. var referredToSegmentNumberSize = (segmentHeader.number <= 256 ? 1 :
  40947. (segmentHeader.number <= 65536 ? 2 : 4));
  40948. var referredTo = [];
  40949. var i, ii;
  40950. for (i = 0; i < referredToCount; i++) {
  40951. var number = (referredToSegmentNumberSize == 1 ? data[position] :
  40952. (referredToSegmentNumberSize == 2 ? readUint16(data, position) :
  40953. readUint32(data, position)));
  40954. referredTo.push(number);
  40955. position += referredToSegmentNumberSize;
  40956. }
  40957. segmentHeader.referredTo = referredTo;
  40958. if (!pageAssociationFieldSize) {
  40959. segmentHeader.pageAssociation = data[position++];
  40960. } else {
  40961. segmentHeader.pageAssociation = readUint32(data, position);
  40962. position += 4;
  40963. }
  40964. segmentHeader.length = readUint32(data, position);
  40965. position += 4;
  40966. if (segmentHeader.length == 0xFFFFFFFF) {
  40967. // 7.2.7 Segment data length, unknown segment length
  40968. if (segmentType === 38) { // ImmediateGenericRegion
  40969. var genericRegionInfo = readRegionSegmentInformation(data, position);
  40970. var genericRegionSegmentFlags = data[position +
  40971. RegionSegmentInformationFieldLength];
  40972. var genericRegionMmr = !!(genericRegionSegmentFlags & 1);
  40973. // searching for the segment end
  40974. var searchPatternLength = 6;
  40975. var searchPattern = new Uint8Array(searchPatternLength);
  40976. if (!genericRegionMmr) {
  40977. searchPattern[0] = 0xFF;
  40978. searchPattern[1] = 0xAC;
  40979. }
  40980. searchPattern[2] = (genericRegionInfo.height >>> 24) & 0xFF;
  40981. searchPattern[3] = (genericRegionInfo.height >> 16) & 0xFF;
  40982. searchPattern[4] = (genericRegionInfo.height >> 8) & 0xFF;
  40983. searchPattern[5] = genericRegionInfo.height & 0xFF;
  40984. for (i = position, ii = data.length; i < ii; i++) {
  40985. var j = 0;
  40986. while (j < searchPatternLength && searchPattern[j] === data[i + j]) {
  40987. j++;
  40988. }
  40989. if (j == searchPatternLength) {
  40990. segmentHeader.length = i + searchPatternLength;
  40991. break;
  40992. }
  40993. }
  40994. if (segmentHeader.length == 0xFFFFFFFF) {
  40995. error('JBIG2 error: segment end was not found');
  40996. }
  40997. } else {
  40998. error('JBIG2 error: invalid unknown segment length');
  40999. }
  41000. }
  41001. segmentHeader.headerEnd = position;
  41002. return segmentHeader;
  41003. }
  41004. function readSegments(header, data, start, end) {
  41005. var segments = [];
  41006. var position = start;
  41007. while (position < end) {
  41008. var segmentHeader = readSegmentHeader(data, position);
  41009. position = segmentHeader.headerEnd;
  41010. var segment = {
  41011. header: segmentHeader,
  41012. data: data
  41013. };
  41014. if (!header.randomAccess) {
  41015. segment.start = position;
  41016. position += segmentHeader.length;
  41017. segment.end = position;
  41018. }
  41019. segments.push(segment);
  41020. if (segmentHeader.type == 51) {
  41021. break; // end of file is found
  41022. }
  41023. }
  41024. if (header.randomAccess) {
  41025. for (var i = 0, ii = segments.length; i < ii; i++) {
  41026. segments[i].start = position;
  41027. position += segments[i].header.length;
  41028. segments[i].end = position;
  41029. }
  41030. }
  41031. return segments;
  41032. }
  41033. // 7.4.1 Region segment information field
  41034. function readRegionSegmentInformation(data, start) {
  41035. return {
  41036. width: readUint32(data, start),
  41037. height: readUint32(data, start + 4),
  41038. x: readUint32(data, start + 8),
  41039. y: readUint32(data, start + 12),
  41040. combinationOperator: data[start + 16] & 7
  41041. };
  41042. }
  41043. var RegionSegmentInformationFieldLength = 17;
  41044. function processSegment(segment, visitor) {
  41045. var header = segment.header;
  41046. var data = segment.data, position = segment.start, end = segment.end;
  41047. var args, at, i, atLength;
  41048. switch (header.type) {
  41049. case 0: // SymbolDictionary
  41050. // 7.4.2 Symbol dictionary segment syntax
  41051. var dictionary = {};
  41052. var dictionaryFlags = readUint16(data, position); // 7.4.2.1.1
  41053. dictionary.huffman = !!(dictionaryFlags & 1);
  41054. dictionary.refinement = !!(dictionaryFlags & 2);
  41055. dictionary.huffmanDHSelector = (dictionaryFlags >> 2) & 3;
  41056. dictionary.huffmanDWSelector = (dictionaryFlags >> 4) & 3;
  41057. dictionary.bitmapSizeSelector = (dictionaryFlags >> 6) & 1;
  41058. dictionary.aggregationInstancesSelector = (dictionaryFlags >> 7) & 1;
  41059. dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256);
  41060. dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512);
  41061. dictionary.template = (dictionaryFlags >> 10) & 3;
  41062. dictionary.refinementTemplate = (dictionaryFlags >> 12) & 1;
  41063. position += 2;
  41064. if (!dictionary.huffman) {
  41065. atLength = dictionary.template === 0 ? 4 : 1;
  41066. at = [];
  41067. for (i = 0; i < atLength; i++) {
  41068. at.push({
  41069. x: readInt8(data, position),
  41070. y: readInt8(data, position + 1)
  41071. });
  41072. position += 2;
  41073. }
  41074. dictionary.at = at;
  41075. }
  41076. if (dictionary.refinement && !dictionary.refinementTemplate) {
  41077. at = [];
  41078. for (i = 0; i < 2; i++) {
  41079. at.push({
  41080. x: readInt8(data, position),
  41081. y: readInt8(data, position + 1)
  41082. });
  41083. position += 2;
  41084. }
  41085. dictionary.refinementAt = at;
  41086. }
  41087. dictionary.numberOfExportedSymbols = readUint32(data, position);
  41088. position += 4;
  41089. dictionary.numberOfNewSymbols = readUint32(data, position);
  41090. position += 4;
  41091. args = [dictionary, header.number, header.referredTo,
  41092. data, position, end];
  41093. break;
  41094. case 6: // ImmediateTextRegion
  41095. case 7: // ImmediateLosslessTextRegion
  41096. var textRegion = {};
  41097. textRegion.info = readRegionSegmentInformation(data, position);
  41098. position += RegionSegmentInformationFieldLength;
  41099. var textRegionSegmentFlags = readUint16(data, position);
  41100. position += 2;
  41101. textRegion.huffman = !!(textRegionSegmentFlags & 1);
  41102. textRegion.refinement = !!(textRegionSegmentFlags & 2);
  41103. textRegion.stripSize = 1 << ((textRegionSegmentFlags >> 2) & 3);
  41104. textRegion.referenceCorner = (textRegionSegmentFlags >> 4) & 3;
  41105. textRegion.transposed = !!(textRegionSegmentFlags & 64);
  41106. textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
  41107. textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
  41108. textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
  41109. textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
  41110. if (textRegion.huffman) {
  41111. var textRegionHuffmanFlags = readUint16(data, position);
  41112. position += 2;
  41113. textRegion.huffmanFS = (textRegionHuffmanFlags) & 3;
  41114. textRegion.huffmanDS = (textRegionHuffmanFlags >> 2) & 3;
  41115. textRegion.huffmanDT = (textRegionHuffmanFlags >> 4) & 3;
  41116. textRegion.huffmanRefinementDW = (textRegionHuffmanFlags >> 6) & 3;
  41117. textRegion.huffmanRefinementDH = (textRegionHuffmanFlags >> 8) & 3;
  41118. textRegion.huffmanRefinementDX = (textRegionHuffmanFlags >> 10) & 3;
  41119. textRegion.huffmanRefinementDY = (textRegionHuffmanFlags >> 12) & 3;
  41120. textRegion.huffmanRefinementSizeSelector =
  41121. !!(textRegionHuffmanFlags & 14);
  41122. }
  41123. if (textRegion.refinement && !textRegion.refinementTemplate) {
  41124. at = [];
  41125. for (i = 0; i < 2; i++) {
  41126. at.push({
  41127. x: readInt8(data, position),
  41128. y: readInt8(data, position + 1)
  41129. });
  41130. position += 2;
  41131. }
  41132. textRegion.refinementAt = at;
  41133. }
  41134. textRegion.numberOfSymbolInstances = readUint32(data, position);
  41135. position += 4;
  41136. // TODO 7.4.3.1.7 Symbol ID Huffman table decoding
  41137. if (textRegion.huffman) {
  41138. error('JBIG2 error: huffman is not supported');
  41139. }
  41140. args = [textRegion, header.referredTo, data, position, end];
  41141. break;
  41142. case 38: // ImmediateGenericRegion
  41143. case 39: // ImmediateLosslessGenericRegion
  41144. var genericRegion = {};
  41145. genericRegion.info = readRegionSegmentInformation(data, position);
  41146. position += RegionSegmentInformationFieldLength;
  41147. var genericRegionSegmentFlags = data[position++];
  41148. genericRegion.mmr = !!(genericRegionSegmentFlags & 1);
  41149. genericRegion.template = (genericRegionSegmentFlags >> 1) & 3;
  41150. genericRegion.prediction = !!(genericRegionSegmentFlags & 8);
  41151. if (!genericRegion.mmr) {
  41152. atLength = genericRegion.template === 0 ? 4 : 1;
  41153. at = [];
  41154. for (i = 0; i < atLength; i++) {
  41155. at.push({
  41156. x: readInt8(data, position),
  41157. y: readInt8(data, position + 1)
  41158. });
  41159. position += 2;
  41160. }
  41161. genericRegion.at = at;
  41162. }
  41163. args = [genericRegion, data, position, end];
  41164. break;
  41165. case 48: // PageInformation
  41166. var pageInfo = {
  41167. width: readUint32(data, position),
  41168. height: readUint32(data, position + 4),
  41169. resolutionX: readUint32(data, position + 8),
  41170. resolutionY: readUint32(data, position + 12)
  41171. };
  41172. if (pageInfo.height == 0xFFFFFFFF) {
  41173. delete pageInfo.height;
  41174. }
  41175. var pageSegmentFlags = data[position + 16];
  41176. var pageStripingInformatiom = readUint16(data, position + 17);
  41177. pageInfo.lossless = !!(pageSegmentFlags & 1);
  41178. pageInfo.refinement = !!(pageSegmentFlags & 2);
  41179. pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
  41180. pageInfo.combinationOperator = (pageSegmentFlags >> 3) & 3;
  41181. pageInfo.requiresBuffer = !!(pageSegmentFlags & 32);
  41182. pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
  41183. args = [pageInfo];
  41184. break;
  41185. case 49: // EndOfPage
  41186. break;
  41187. case 50: // EndOfStripe
  41188. break;
  41189. case 51: // EndOfFile
  41190. break;
  41191. case 62: // 7.4.15 defines 2 extension types which
  41192. // are comments and can be ignored.
  41193. break;
  41194. default:
  41195. error('JBIG2 error: segment type ' + header.typeName + '(' +
  41196. header.type + ') is not implemented');
  41197. }
  41198. var callbackName = 'on' + header.typeName;
  41199. if (callbackName in visitor) {
  41200. visitor[callbackName].apply(visitor, args);
  41201. }
  41202. }
  41203. function processSegments(segments, visitor) {
  41204. for (var i = 0, ii = segments.length; i < ii; i++) {
  41205. processSegment(segments[i], visitor);
  41206. }
  41207. }
  41208. function parseJbig2(data, start, end) {
  41209. var position = start;
  41210. if (data[position] != 0x97 || data[position + 1] != 0x4A ||
  41211. data[position + 2] != 0x42 || data[position + 3] != 0x32 ||
  41212. data[position + 4] != 0x0D || data[position + 5] != 0x0A ||
  41213. data[position + 6] != 0x1A || data[position + 7] != 0x0A) {
  41214. error('JBIG2 error: invalid header');
  41215. }
  41216. var header = {};
  41217. position += 8;
  41218. var flags = data[position++];
  41219. header.randomAccess = !(flags & 1);
  41220. if (!(flags & 2)) {
  41221. header.numberOfPages = readUint32(data, position);
  41222. position += 4;
  41223. }
  41224. var segments = readSegments(header, data, position, end);
  41225. error('Not implemented');
  41226. // processSegments(segments, new SimpleSegmentVisitor());
  41227. }
  41228. function parseJbig2Chunks(chunks) {
  41229. var visitor = new SimpleSegmentVisitor();
  41230. for (var i = 0, ii = chunks.length; i < ii; i++) {
  41231. var chunk = chunks[i];
  41232. var segments = readSegments({}, chunk.data, chunk.start, chunk.end);
  41233. processSegments(segments, visitor);
  41234. }
  41235. return visitor.buffer;
  41236. }
  41237. function SimpleSegmentVisitor() {}
  41238. SimpleSegmentVisitor.prototype = {
  41239. onPageInformation: function SimpleSegmentVisitor_onPageInformation(info) {
  41240. this.currentPageInfo = info;
  41241. var rowSize = (info.width + 7) >> 3;
  41242. var buffer = new Uint8Array(rowSize * info.height);
  41243. // The contents of ArrayBuffers are initialized to 0.
  41244. // Fill the buffer with 0xFF only if info.defaultPixelValue is set
  41245. if (info.defaultPixelValue) {
  41246. for (var i = 0, ii = buffer.length; i < ii; i++) {
  41247. buffer[i] = 0xFF;
  41248. }
  41249. }
  41250. this.buffer = buffer;
  41251. },
  41252. drawBitmap: function SimpleSegmentVisitor_drawBitmap(regionInfo, bitmap) {
  41253. var pageInfo = this.currentPageInfo;
  41254. var width = regionInfo.width, height = regionInfo.height;
  41255. var rowSize = (pageInfo.width + 7) >> 3;
  41256. var combinationOperator = pageInfo.combinationOperatorOverride ?
  41257. regionInfo.combinationOperator : pageInfo.combinationOperator;
  41258. var buffer = this.buffer;
  41259. var mask0 = 128 >> (regionInfo.x & 7);
  41260. var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
  41261. var i, j, mask, offset;
  41262. switch (combinationOperator) {
  41263. case 0: // OR
  41264. for (i = 0; i < height; i++) {
  41265. mask = mask0;
  41266. offset = offset0;
  41267. for (j = 0; j < width; j++) {
  41268. if (bitmap[i][j]) {
  41269. buffer[offset] |= mask;
  41270. }
  41271. mask >>= 1;
  41272. if (!mask) {
  41273. mask = 128;
  41274. offset++;
  41275. }
  41276. }
  41277. offset0 += rowSize;
  41278. }
  41279. break;
  41280. case 2: // XOR
  41281. for (i = 0; i < height; i++) {
  41282. mask = mask0;
  41283. offset = offset0;
  41284. for (j = 0; j < width; j++) {
  41285. if (bitmap[i][j]) {
  41286. buffer[offset] ^= mask;
  41287. }
  41288. mask >>= 1;
  41289. if (!mask) {
  41290. mask = 128;
  41291. offset++;
  41292. }
  41293. }
  41294. offset0 += rowSize;
  41295. }
  41296. break;
  41297. default:
  41298. error('JBIG2 error: operator ' + combinationOperator +
  41299. ' is not supported');
  41300. }
  41301. },
  41302. onImmediateGenericRegion:
  41303. function SimpleSegmentVisitor_onImmediateGenericRegion(region, data,
  41304. start, end) {
  41305. var regionInfo = region.info;
  41306. var decodingContext = new DecodingContext(data, start, end);
  41307. var bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height,
  41308. region.template, region.prediction, null,
  41309. region.at, decodingContext);
  41310. this.drawBitmap(regionInfo, bitmap);
  41311. },
  41312. onImmediateLosslessGenericRegion:
  41313. function SimpleSegmentVisitor_onImmediateLosslessGenericRegion() {
  41314. this.onImmediateGenericRegion.apply(this, arguments);
  41315. },
  41316. onSymbolDictionary:
  41317. function SimpleSegmentVisitor_onSymbolDictionary(dictionary,
  41318. currentSegment,
  41319. referredSegments,
  41320. data, start, end) {
  41321. var huffmanTables;
  41322. if (dictionary.huffman) {
  41323. error('JBIG2 error: huffman is not supported');
  41324. }
  41325. // Combines exported symbols from all referred segments
  41326. var symbols = this.symbols;
  41327. if (!symbols) {
  41328. this.symbols = symbols = {};
  41329. }
  41330. var inputSymbols = [];
  41331. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  41332. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  41333. }
  41334. var decodingContext = new DecodingContext(data, start, end);
  41335. symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman,
  41336. dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols,
  41337. dictionary.numberOfExportedSymbols, huffmanTables,
  41338. dictionary.template, dictionary.at,
  41339. dictionary.refinementTemplate, dictionary.refinementAt,
  41340. decodingContext);
  41341. },
  41342. onImmediateTextRegion:
  41343. function SimpleSegmentVisitor_onImmediateTextRegion(region,
  41344. referredSegments,
  41345. data, start, end) {
  41346. var regionInfo = region.info;
  41347. var huffmanTables;
  41348. // Combines exported symbols from all referred segments
  41349. var symbols = this.symbols;
  41350. var inputSymbols = [];
  41351. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  41352. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  41353. }
  41354. var symbolCodeLength = log2(inputSymbols.length);
  41355. var decodingContext = new DecodingContext(data, start, end);
  41356. var bitmap = decodeTextRegion(region.huffman, region.refinement,
  41357. regionInfo.width, regionInfo.height, region.defaultPixelValue,
  41358. region.numberOfSymbolInstances, region.stripSize, inputSymbols,
  41359. symbolCodeLength, region.transposed, region.dsOffset,
  41360. region.referenceCorner, region.combinationOperator, huffmanTables,
  41361. region.refinementTemplate, region.refinementAt, decodingContext);
  41362. this.drawBitmap(regionInfo, bitmap);
  41363. },
  41364. onImmediateLosslessTextRegion:
  41365. function SimpleSegmentVisitor_onImmediateLosslessTextRegion() {
  41366. this.onImmediateTextRegion.apply(this, arguments);
  41367. }
  41368. };
  41369. function Jbig2Image() {}
  41370. Jbig2Image.prototype = {
  41371. parseChunks: function Jbig2Image_parseChunks(chunks) {
  41372. return parseJbig2Chunks(chunks);
  41373. }
  41374. };
  41375. return Jbig2Image;
  41376. })();
  41377. var bidi = PDFJS.bidi = (function bidiClosure() {
  41378. // Character types for symbols from 0000 to 00FF.
  41379. var baseTypes = [
  41380. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
  41381. 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  41382. 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON',
  41383. 'ON', 'ON', 'ON', 'ON', 'ON', 'CS', 'ON', 'CS', 'ON', 'EN', 'EN', 'EN',
  41384. 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'ON', 'ON', 'ON', 'ON', 'ON',
  41385. 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41386. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON',
  41387. 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41388. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41389. 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN',
  41390. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  41391. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  41392. 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON',
  41393. 'ON', 'ON', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON',
  41394. 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41395. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41396. 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41397. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41398. 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L'
  41399. ];
  41400. // Character types for symbols from 0600 to 06FF
  41401. var arabicTypes = [
  41402. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41403. 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL',
  41404. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41405. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41406. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41407. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41408. 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  41409. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL',
  41410. 'AL', 'AL', 'AL', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN',
  41411. 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', 'AL', 'AL', 'AL', 'AL',
  41412. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41413. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41414. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41415. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41416. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41417. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41418. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41419. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41420. 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  41421. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'ON', 'NSM',
  41422. 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41423. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL'
  41424. ];
  41425. function isOdd(i) {
  41426. return (i & 1) !== 0;
  41427. }
  41428. function isEven(i) {
  41429. return (i & 1) === 0;
  41430. }
  41431. function findUnequal(arr, start, value) {
  41432. for (var j = start, jj = arr.length; j < jj; ++j) {
  41433. if (arr[j] != value) {
  41434. return j;
  41435. }
  41436. }
  41437. return j;
  41438. }
  41439. function setValues(arr, start, end, value) {
  41440. for (var j = start; j < end; ++j) {
  41441. arr[j] = value;
  41442. }
  41443. }
  41444. function reverseValues(arr, start, end) {
  41445. for (var i = start, j = end - 1; i < j; ++i, --j) {
  41446. var temp = arr[i];
  41447. arr[i] = arr[j];
  41448. arr[j] = temp;
  41449. }
  41450. }
  41451. function createBidiText(str, isLTR, vertical) {
  41452. return {
  41453. str: str,
  41454. dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'))
  41455. };
  41456. }
  41457. // These are used in bidi(), which is called frequently. We re-use them on
  41458. // each call to avoid unnecessary allocations.
  41459. var chars = [];
  41460. var types = [];
  41461. function bidi(str, startLevel, vertical) {
  41462. var isLTR = true;
  41463. var strLength = str.length;
  41464. if (strLength === 0 || vertical) {
  41465. return createBidiText(str, isLTR, vertical);
  41466. }
  41467. // Get types and fill arrays
  41468. chars.length = 0;
  41469. types.length = 0;
  41470. var numBidi = 0;
  41471. var i, ii;
  41472. for (i = 0; i < strLength; ++i) {
  41473. chars[i] = str.charAt(i);
  41474. var charCode = str.charCodeAt(i);
  41475. var charType = 'L';
  41476. if (charCode <= 0x00ff) {
  41477. charType = baseTypes[charCode];
  41478. } else if (0x0590 <= charCode && charCode <= 0x05f4) {
  41479. charType = 'R';
  41480. } else if (0x0600 <= charCode && charCode <= 0x06ff) {
  41481. charType = arabicTypes[charCode & 0xff];
  41482. } else if (0x0700 <= charCode && charCode <= 0x08AC) {
  41483. charType = 'AL';
  41484. }
  41485. if (charType == 'R' || charType == 'AL' || charType == 'AN') {
  41486. numBidi++;
  41487. }
  41488. types[i] = charType;
  41489. }
  41490. // Detect the bidi method
  41491. // - If there are no rtl characters then no bidi needed
  41492. // - If less than 30% chars are rtl then string is primarily ltr
  41493. // - If more than 30% chars are rtl then string is primarily rtl
  41494. if (numBidi === 0) {
  41495. isLTR = true;
  41496. return createBidiText(str, isLTR);
  41497. }
  41498. if (startLevel == -1) {
  41499. if ((strLength / numBidi) < 0.3) {
  41500. isLTR = true;
  41501. startLevel = 0;
  41502. } else {
  41503. isLTR = false;
  41504. startLevel = 1;
  41505. }
  41506. }
  41507. var levels = [];
  41508. for (i = 0; i < strLength; ++i) {
  41509. levels[i] = startLevel;
  41510. }
  41511. /*
  41512. X1-X10: skip most of this, since we are NOT doing the embeddings.
  41513. */
  41514. var e = (isOdd(startLevel) ? 'R' : 'L');
  41515. var sor = e;
  41516. var eor = sor;
  41517. /*
  41518. W1. Examine each non-spacing mark (NSM) in the level run, and change the
  41519. type of the NSM to the type of the previous character. If the NSM is at the
  41520. start of the level run, it will get the type of sor.
  41521. */
  41522. var lastType = sor;
  41523. for (i = 0; i < strLength; ++i) {
  41524. if (types[i] == 'NSM') {
  41525. types[i] = lastType;
  41526. } else {
  41527. lastType = types[i];
  41528. }
  41529. }
  41530. /*
  41531. W2. Search backwards from each instance of a European number until the
  41532. first strong type (R, L, AL, or sor) is found. If an AL is found, change
  41533. the type of the European number to Arabic number.
  41534. */
  41535. lastType = sor;
  41536. var t;
  41537. for (i = 0; i < strLength; ++i) {
  41538. t = types[i];
  41539. if (t == 'EN') {
  41540. types[i] = (lastType == 'AL') ? 'AN' : 'EN';
  41541. } else if (t == 'R' || t == 'L' || t == 'AL') {
  41542. lastType = t;
  41543. }
  41544. }
  41545. /*
  41546. W3. Change all ALs to R.
  41547. */
  41548. for (i = 0; i < strLength; ++i) {
  41549. t = types[i];
  41550. if (t == 'AL') {
  41551. types[i] = 'R';
  41552. }
  41553. }
  41554. /*
  41555. W4. A single European separator between two European numbers changes to a
  41556. European number. A single common separator between two numbers of the same
  41557. type changes to that type:
  41558. */
  41559. for (i = 1; i < strLength - 1; ++i) {
  41560. if (types[i] == 'ES' && types[i - 1] == 'EN' && types[i + 1] == 'EN') {
  41561. types[i] = 'EN';
  41562. }
  41563. if (types[i] == 'CS' && (types[i - 1] == 'EN' || types[i - 1] == 'AN') &&
  41564. types[i + 1] == types[i - 1]) {
  41565. types[i] = types[i - 1];
  41566. }
  41567. }
  41568. /*
  41569. W5. A sequence of European terminators adjacent to European numbers changes
  41570. to all European numbers:
  41571. */
  41572. for (i = 0; i < strLength; ++i) {
  41573. if (types[i] == 'EN') {
  41574. // do before
  41575. var j;
  41576. for (j = i - 1; j >= 0; --j) {
  41577. if (types[j] != 'ET') {
  41578. break;
  41579. }
  41580. types[j] = 'EN';
  41581. }
  41582. // do after
  41583. for (j = i + 1; j < strLength; --j) {
  41584. if (types[j] != 'ET') {
  41585. break;
  41586. }
  41587. types[j] = 'EN';
  41588. }
  41589. }
  41590. }
  41591. /*
  41592. W6. Otherwise, separators and terminators change to Other Neutral:
  41593. */
  41594. for (i = 0; i < strLength; ++i) {
  41595. t = types[i];
  41596. if (t == 'WS' || t == 'ES' || t == 'ET' || t == 'CS') {
  41597. types[i] = 'ON';
  41598. }
  41599. }
  41600. /*
  41601. W7. Search backwards from each instance of a European number until the
  41602. first strong type (R, L, or sor) is found. If an L is found, then change
  41603. the type of the European number to L.
  41604. */
  41605. lastType = sor;
  41606. for (i = 0; i < strLength; ++i) {
  41607. t = types[i];
  41608. if (t == 'EN') {
  41609. types[i] = ((lastType == 'L') ? 'L' : 'EN');
  41610. } else if (t == 'R' || t == 'L') {
  41611. lastType = t;
  41612. }
  41613. }
  41614. /*
  41615. N1. A sequence of neutrals takes the direction of the surrounding strong
  41616. text if the text on both sides has the same direction. European and Arabic
  41617. numbers are treated as though they were R. Start-of-level-run (sor) and
  41618. end-of-level-run (eor) are used at level run boundaries.
  41619. */
  41620. for (i = 0; i < strLength; ++i) {
  41621. if (types[i] == 'ON') {
  41622. var end = findUnequal(types, i + 1, 'ON');
  41623. var before = sor;
  41624. if (i > 0) {
  41625. before = types[i - 1];
  41626. }
  41627. var after = eor;
  41628. if (end + 1 < strLength) {
  41629. after = types[end + 1];
  41630. }
  41631. if (before != 'L') {
  41632. before = 'R';
  41633. }
  41634. if (after != 'L') {
  41635. after = 'R';
  41636. }
  41637. if (before == after) {
  41638. setValues(types, i, end, before);
  41639. }
  41640. i = end - 1; // reset to end (-1 so next iteration is ok)
  41641. }
  41642. }
  41643. /*
  41644. N2. Any remaining neutrals take the embedding direction.
  41645. */
  41646. for (i = 0; i < strLength; ++i) {
  41647. if (types[i] == 'ON') {
  41648. types[i] = e;
  41649. }
  41650. }
  41651. /*
  41652. I1. For all characters with an even (left-to-right) embedding direction,
  41653. those of type R go up one level and those of type AN or EN go up two
  41654. levels.
  41655. I2. For all characters with an odd (right-to-left) embedding direction,
  41656. those of type L, EN or AN go up one level.
  41657. */
  41658. for (i = 0; i < strLength; ++i) {
  41659. t = types[i];
  41660. if (isEven(levels[i])) {
  41661. if (t == 'R') {
  41662. levels[i] += 1;
  41663. } else if (t == 'AN' || t == 'EN') {
  41664. levels[i] += 2;
  41665. }
  41666. } else { // isOdd
  41667. if (t == 'L' || t == 'AN' || t == 'EN') {
  41668. levels[i] += 1;
  41669. }
  41670. }
  41671. }
  41672. /*
  41673. L1. On each line, reset the embedding level of the following characters to
  41674. the paragraph embedding level:
  41675. segment separators,
  41676. paragraph separators,
  41677. any sequence of whitespace characters preceding a segment separator or
  41678. paragraph separator, and any sequence of white space characters at the end
  41679. of the line.
  41680. */
  41681. // don't bother as text is only single line
  41682. /*
  41683. L2. From the highest level found in the text to the lowest odd level on
  41684. each line, reverse any contiguous sequence of characters that are at that
  41685. level or higher.
  41686. */
  41687. // find highest level & lowest odd level
  41688. var highestLevel = -1;
  41689. var lowestOddLevel = 99;
  41690. var level;
  41691. for (i = 0, ii = levels.length; i < ii; ++i) {
  41692. level = levels[i];
  41693. if (highestLevel < level) {
  41694. highestLevel = level;
  41695. }
  41696. if (lowestOddLevel > level && isOdd(level)) {
  41697. lowestOddLevel = level;
  41698. }
  41699. }
  41700. // now reverse between those limits
  41701. for (level = highestLevel; level >= lowestOddLevel; --level) {
  41702. // find segments to reverse
  41703. var start = -1;
  41704. for (i = 0, ii = levels.length; i < ii; ++i) {
  41705. if (levels[i] < level) {
  41706. if (start >= 0) {
  41707. reverseValues(chars, start, i);
  41708. start = -1;
  41709. }
  41710. } else if (start < 0) {
  41711. start = i;
  41712. }
  41713. }
  41714. if (start >= 0) {
  41715. reverseValues(chars, start, levels.length);
  41716. }
  41717. }
  41718. /*
  41719. L3. Combining marks applied to a right-to-left base character will at this
  41720. point precede their base character. If the rendering engine expects them to
  41721. follow the base characters in the final display process, then the ordering
  41722. of the marks and the base character must be reversed.
  41723. */
  41724. // don't bother for now
  41725. /*
  41726. L4. A character that possesses the mirrored property as specified by
  41727. Section 4.7, Mirrored, must be depicted by a mirrored glyph if the resolved
  41728. directionality of that character is R.
  41729. */
  41730. // don't mirror as characters are already mirrored in the pdf
  41731. // Finally, return string
  41732. var result = '';
  41733. for (i = 0, ii = chars.length; i < ii; ++i) {
  41734. var ch = chars[i];
  41735. if (ch != '<' && ch != '>') {
  41736. result += ch;
  41737. }
  41738. }
  41739. return createBidiText(result, isLTR);
  41740. }
  41741. return bidi;
  41742. })();
  41743. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  41744. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  41745. /* Copyright 2014 Opera Software ASA
  41746. *
  41747. * Licensed under the Apache License, Version 2.0 (the "License");
  41748. * you may not use this file except in compliance with the License.
  41749. * You may obtain a copy of the License at
  41750. *
  41751. * http://www.apache.org/licenses/LICENSE-2.0
  41752. *
  41753. * Unless required by applicable law or agreed to in writing, software
  41754. * distributed under the License is distributed on an "AS IS" BASIS,
  41755. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  41756. * See the License for the specific language governing permissions and
  41757. * limitations under the License.
  41758. *
  41759. *
  41760. * Based on https://code.google.com/p/smhasher/wiki/MurmurHash3.
  41761. * Hashes roughly 100 KB per millisecond on i7 3.4 GHz.
  41762. */
  41763. /* globals Uint32ArrayView */
  41764. 'use strict';
  41765. var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
  41766. // Workaround for missing math precison in JS.
  41767. var MASK_HIGH = 0xffff0000;
  41768. var MASK_LOW = 0xffff;
  41769. function MurmurHash3_64 (seed) {
  41770. var SEED = 0xc3d2e1f0;
  41771. this.h1 = seed ? seed & 0xffffffff : SEED;
  41772. this.h2 = seed ? seed & 0xffffffff : SEED;
  41773. }
  41774. var alwaysUseUint32ArrayView = false;
  41775. // old webkits have issues with non-aligned arrays
  41776. try {
  41777. new Uint32Array(new Uint8Array(5).buffer, 0, 1);
  41778. } catch (e) {
  41779. alwaysUseUint32ArrayView = true;
  41780. }
  41781. MurmurHash3_64.prototype = {
  41782. update: function MurmurHash3_64_update(input) {
  41783. var useUint32ArrayView = alwaysUseUint32ArrayView;
  41784. var i;
  41785. if (typeof input == 'string') {
  41786. var data = new Uint8Array(input.length * 2);
  41787. var length = 0;
  41788. for (i = 0; i < input.length; i++) {
  41789. var code = input.charCodeAt(i);
  41790. if (code <= 0xff) {
  41791. data[length++] = code;
  41792. }
  41793. else {
  41794. data[length++] = code >>> 8;
  41795. data[length++] = code & 0xff;
  41796. }
  41797. }
  41798. } else if (input instanceof Uint8Array) {
  41799. data = input;
  41800. length = data.length;
  41801. } else if (typeof input === 'object' && ('length' in input)) {
  41802. // processing regular arrays as well, e.g. for IE9
  41803. data = input;
  41804. length = data.length;
  41805. useUint32ArrayView = true;
  41806. } else {
  41807. throw new Error('Wrong data format in MurmurHash3_64_update. ' +
  41808. 'Input must be a string or array.');
  41809. }
  41810. var blockCounts = length >> 2;
  41811. var tailLength = length - blockCounts * 4;
  41812. // we don't care about endianness here
  41813. var dataUint32 = useUint32ArrayView ?
  41814. new Uint32ArrayView(data, blockCounts) :
  41815. new Uint32Array(data.buffer, 0, blockCounts);
  41816. var k1 = 0;
  41817. var k2 = 0;
  41818. var h1 = this.h1;
  41819. var h2 = this.h2;
  41820. var C1 = 0xcc9e2d51;
  41821. var C2 = 0x1b873593;
  41822. var C1_LOW = C1 & MASK_LOW;
  41823. var C2_LOW = C2 & MASK_LOW;
  41824. for (i = 0; i < blockCounts; i++) {
  41825. if (i & 1) {
  41826. k1 = dataUint32[i];
  41827. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  41828. k1 = k1 << 15 | k1 >>> 17;
  41829. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  41830. h1 ^= k1;
  41831. h1 = h1 << 13 | h1 >>> 19;
  41832. h1 = h1 * 5 + 0xe6546b64;
  41833. } else {
  41834. k2 = dataUint32[i];
  41835. k2 = (k2 * C1 & MASK_HIGH) | (k2 * C1_LOW & MASK_LOW);
  41836. k2 = k2 << 15 | k2 >>> 17;
  41837. k2 = (k2 * C2 & MASK_HIGH) | (k2 * C2_LOW & MASK_LOW);
  41838. h2 ^= k2;
  41839. h2 = h2 << 13 | h2 >>> 19;
  41840. h2 = h2 * 5 + 0xe6546b64;
  41841. }
  41842. }
  41843. k1 = 0;
  41844. switch (tailLength) {
  41845. case 3:
  41846. k1 ^= data[blockCounts * 4 + 2] << 16;
  41847. /* falls through */
  41848. case 2:
  41849. k1 ^= data[blockCounts * 4 + 1] << 8;
  41850. /* falls through */
  41851. case 1:
  41852. k1 ^= data[blockCounts * 4];
  41853. /* falls through */
  41854. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  41855. k1 = k1 << 15 | k1 >>> 17;
  41856. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  41857. if (blockCounts & 1) {
  41858. h1 ^= k1;
  41859. } else {
  41860. h2 ^= k1;
  41861. }
  41862. }
  41863. this.h1 = h1;
  41864. this.h2 = h2;
  41865. return this;
  41866. },
  41867. hexdigest: function MurmurHash3_64_hexdigest () {
  41868. var h1 = this.h1;
  41869. var h2 = this.h2;
  41870. h1 ^= h2 >>> 1;
  41871. h1 = (h1 * 0xed558ccd & MASK_HIGH) | (h1 * 0x8ccd & MASK_LOW);
  41872. h2 = (h2 * 0xff51afd7 & MASK_HIGH) |
  41873. (((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16);
  41874. h1 ^= h2 >>> 1;
  41875. h1 = (h1 * 0x1a85ec53 & MASK_HIGH) | (h1 * 0xec53 & MASK_LOW);
  41876. h2 = (h2 * 0xc4ceb9fe & MASK_HIGH) |
  41877. (((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16);
  41878. h1 ^= h2 >>> 1;
  41879. for (var i = 0, arr = [h1, h2], str = ''; i < arr.length; i++) {
  41880. var hex = (arr[i] >>> 0).toString(16);
  41881. while (hex.length < 8) {
  41882. hex = '0' + hex;
  41883. }
  41884. str += hex;
  41885. }
  41886. return str;
  41887. }
  41888. };
  41889. return MurmurHash3_64;
  41890. })();
  41891. }).call((typeof window === 'undefined') ? this : window);
  41892. if (!PDFJS.workerSrc && typeof document !== 'undefined') {
  41893. // workerSrc is not set -- using last script url to define default location
  41894. PDFJS.workerSrc = (function () {
  41895. 'use strict';
  41896. var scriptTagContainer = document.body ||
  41897. document.getElementsByTagName('head')[0];
  41898. var pdfjsSrc = scriptTagContainer.lastChild.src;
  41899. return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');
  41900. })();
  41901. }